2002-11-10 Andrew Cagney <ac131313@redhat.com>
[binutils-gdb.git] / gdb / ChangeLog
1 2002-11-10 Andrew Cagney <ac131313@redhat.com>
2
3 * breakpoint.h (deprecated_frame_in_dummy): Rename frame_in_dummy.
4 * stack.c (print_frame_info_base): Update.
5 (print_frame_info_base, frame_info): Update.
6 * sparc-tdep.c (sparc_init_extra_frame_info): Update.
7 (sparc_frame_saved_pc): Update.
8 * ada-lang.c (find_printable_frame): Update.
9 * breakpoint.c (deprecated_frame_in_dummy): Update.
10
11 2002-11-09 Mark Kettenis <kettenis@gnu.org>
12
13 * i386-linux-nat.c (ORIG_EAX): Define to -1 if not already
14 defined.
15 (regmap): Extend to cover all registers.
16 (PT_READ_U, PT_WRITE_U, PTRACE_XFER_TYPE,
17 OLD_CANNOT_FETCH_REGISTERS, OLD_CANNOT_STORE_REGISTERS): Remove
18 definitions.
19 (fetch_register, sore_register): Simplify.
20 (old_fetch_inferior_registers, old_store_inferior_registers):
21 Remove functions.
22 (cannot_fetch_register, cannot_store_register): Change
23 implementation to use regmap array to decide which registers
24 cannot be fetched/stored. This removes $orig_eax from the
25 registers that cannot be fetched/stored.
26 (fetch_inferior_registers): Call fetch_register directly instead
27 of calling old_fetch_inferior_registers.
28 (store_inferior_registers): Call store_register directly instead
29 of calling old_store_inferior_registers.
30 (i386_linux_dr_get): Replace PT_READ_U with PTRACE_PEEKUSER.
31 (i386_linux_dr_set): Replace PT_WRITE_U with PTRACE_POKEUSER.
32 * config/i386/nm-linux.h (U_REGS_OFFSET): Remove definition.
33
34 2002-11-09 Klee Dienes <kdienes@apple.com>
35
36 * i387-tdep.c (i387_supply_register): When called with NULL as a
37 buffer, mark the register as not provided (to mirror the behavior
38 of supply_register).
39 (i387_supply_fxsave): Ditto.
40 (i387_supply_fsave): Ditto (inherits the behavior from
41 i387_supply_register).
42
43 2002-11-09 Klee Dienes <kdienes@apple.com>
44
45 * blockframe.c (sigtramp_saved_pc): Use
46 builtin_type_void_code_ptr, not builtin_type_void_data_ptr (we are
47 extracting the PC). Use TYPE_LENGTH (builtin_type_void_code_ptr)
48 instead of (TARGET_PTR_BIT / TARGET_CHAR_BIT).
49
50 2002-11-09 Andrew Cagney <ac131313@redhat.com>
51
52 * frame.c (get_prev_frame): Test prev_p to identify a previously
53 unwound frame. Initialize prev_p.
54 * frame.h (struct frame_info): Add field prev_p. Expand prev/next
55 comment.
56
57 2002-11-09 Andrew Cagney <ac131313@redhat.com>
58
59 * frame.c (get_prev_frame): Cleanups. Eliminate redundant tests
60 for a NULL NEXT_FRAME. Simplify fromleaf initialization. Add
61 more comments. Zap dead code.
62
63 2002-11-09 Mark Kettenis <kettenis@gnu.org>
64
65 * infcmd.c (print_vector_info, print_float_info): Move code that
66 checks whether the target has any registers and whether there is a
67 selected frame up, such that it is also used if a target provides
68 multi-arch definitions of these functions.
69
70 2002-11-08 Andrew Cagney <ac131313@redhat.com>
71
72 * Makefile.in (DESTDIR): Define.
73 (install-only, install-gdbtk, uninstall-gdbtk): Add $(DESTDIR)
74 prefix.
75
76 * config/djgpp/fnchange.lst: 8.3 proof i386obsd-nat.c and
77 i386obsd-tdep.c. Rename to "gdb.cxx", paths containing "gdb.c++".
78
79 2002-11-08 Andrew Cagney <ac131313@redhat.com>
80
81 * i386-linux-tdep.c: Include "reggroups.h".
82 (i386_linux_register_reggroup_p): New function.
83 (i386_linux_init_abi): Set register_reggroup_p to
84 i386_linux_register_reggroup_p.
85 * i386-tdep.h (i386_register_reggroup_p): Declare.
86 * i386-tdep.c: Include "reggroups.h".
87 (i386_init_reggroups): New function.
88 (i386_add_reggroups): New function.
89 (i386_register_reggroup_p): New function.
90 (i386_sse_reggroup, i386_mmx_reggroup): New variables.
91 (_initialize_i386_tdep): Call i386_init_reggroups.
92 (i386_gdbarch_init): Set register_reggroup_p and add in the i386
93 specific reggroups.
94
95 2002-11-09 Mark Kettenis <kettenis@gnu.org>
96
97 * infptrace.c (child_xfer_memory): Make use of the new PT_IO
98 request that's available in *BSD.
99
100 * i386-tdep.h (IS_FPU_CTRL_REGNUM): Remove.
101
102 * i387-tdep.c (i387_fill_fxsave): Use FOOFF_REGNUM instead of
103 FDOFF_REGNUM.
104
105 2002-11-08 Andrew Cagney <ac131313@redhat.com>
106
107 * frame.c (set_unwind_by_pc): Use dummy_frame_register_unwind.
108 * dummy-frame.c (find_dummy_frame): Rename
109 generic_find_dummy_frame, make static. Return the dummy frame
110 instead of the regcache.
111 (generic_find_dummy_frame): Re-implement using find_dummy_frame,
112 (cached_find_dummy_frame): New function. Use find_dummy_frame.
113 (dummy_frame_register_unwind): Rename
114 generic_call_dummy_register_unwind. Use cached_find_dummy_frame.
115 * dummy-frame.h (dummy_frame_register_unwind): Rename
116 generic_call_dummy_register_unwind.
117
118 2002-11-08 Mark Kettenis <kettenis@gnu.org>
119
120 * config/i386/tm-i386v42mp.h: Remove file. Move its contents,
121 except the inclusion of "i386/tm-i386.h", to...
122 * config/i386/nm-i386v42mp.h: ...here.
123 * config/i386/i386v42mp.mt (TM_FILE): Set to tm-i386.h.
124
125 2002-11-08 Andrew Cagney <ac131313@redhat.com>
126
127 * Makefile.in (frame.o): Update dependencies.
128 * blockframe.c (current_frame, frame_obstack_alloc)
129 (frame_saved_regs_zalloc, get_current_frame)
130 (set_current_frame, create_new_frame)
131 (set_unwind_by_pc, get_next_frame)
132 (flush_cached_frames, reinit_frame_cache)
133 (frame_saved_regs_register_unwind)
134 (deprecated_generic_get_saved_register)
135 (get_prev_frame, get_frame_pc, get_frame_saved_regs)
136 (_initialize_blockframe): Move frame code from here...
137 * frame.c: ...to here. Include "gdb_obstack.h", "gdbcore.h",
138 "annotate.h" and "dummy-frame.h".
139 (_initialize_frame): New function.
140
141 2002-11-08 Jim Blandy <jimb@redhat.com>
142
143 * dwarf2read.c (read_func_scope): Restore list_in_scope properly
144 when we finish a function a context.
145 * buildsym.h (outermost_context_p): New macro.
146 (Bug analyzed by David Edelsohn.)
147
148 2002-11-08 Andrew Cagney <ac131313@redhat.com>
149
150 * blockframe.c: Include "dummy-frame.h".
151 (struct dummy_frame, dummy_frame_stack)
152 (generic_find_dummy_frame, deprecated_generic_find_dummy_frame)
153 (generic_pc_in_call_dummy, deprecated_read_register_dummy)
154 (generic_push_dummy_frame, generic_save_dummy_frame_tos)
155 (generic_save_call_dummy_addr, generic_pop_current_frame)
156 (generic_pop_dummy_frame, generic_fix_call_dummy)
157 (generic_fix_call_dummy, generic_call_dummy_register_unwind): Move
158 dummy frame code from here...
159 * dummy-frame.c: ...to here. New file.
160 * dummy-frame.h: New file.
161 (generic_call_dummy_register_unwind): Declare.
162 (generic_find_dummy_frame): Declare.
163 * Makefile.in (SFILES): Add dummy-frame.c.
164 (dummy-frame.o): Specify dependencies.
165 (dummy_frame_h): Define.
166 (COMMON_OBS): Add dummy-frame.o.
167 (blockframe.o): Update dependencies.
168
169 2002-11-08 Jim Blandy <jimb@redhat.com>
170
171 * dwarf2read.c (read_func_scope): Restore local_symbols and
172 param_symbols after we finish the function context. (Based on a
173 patch from David Edelsohn.)
174
175 2002-11-08 David Carlton <carlton@math.stanford.edu>
176
177 * linespec.c (symbol_found): New function.
178 (minsym_found): New function.
179 (decode_line_1): Separate out some code into separate functions.
180
181 2002-11-08 Joel Brobecker <brobecker@gnat.com>
182
183 * i386-tdep.c (i386_frameless_signal_p): Make non static for
184 the benefit of the interix target.
185 * i386-tdep.h (i386_frameless_signal_p): Declare.
186
187 2002-11-08 Andrew Cagney <ac131313@redhat.com>
188
189 * i386-tdep.h (i386_linux_orig_eax_regnum_p): Delete stray
190 declaration that snuck in from change below.
191
192 2002-11-06 Andrew Cagney <cagney@redhat.com>
193
194 * i386-tdep.c (i386_mmx_regnum_p): Rename mmx_regnum_p. Update
195 all callers.
196 (i386_fp_regnum_p): New function. Use instead of FP_REGNUM_P.
197 (i386_fpc_regnum_p): New function. Use instead of FPC_REGNUM_P.
198 (i386_sse_regnum_p): New function. Use instead of SSE_REGNUM_P.
199 (i386_mxcsr_regnum_p): new function. Use instead of
200 MXCSR_REGNUM_P.
201 * i386-tdep.h (SSE_REGNUM_P): Delete macro.
202 (i386_sse_regnum_p): Declare.
203 (i386_mxcsr_regnum_p): Declare.
204 (FP_REGNUM_P, FPC_REGNUM_P): Delete macros.
205 (i386_fp_regnum_p, i386_fpc_regnum_p): Declare.
206 (IS_FP_REGNUM): Update definition.
207 (IS_FPU_CTRL_REGNUM): Update definition..
208 (IS_SSE_REGNUM): Update definition..
209 * i386v-nat.c (register_u_addr): Update.
210 * go32-nat.c (fetch_register): Update.
211 (store_register): Update.
212
213 2002-11-07 Joel Brobecker <brobecker@gnat.com>
214
215 Preparation work to convert the hppa targets to multiarch partial.
216
217 * hppa-tdep.c: Add new functions replacing macro bodies from
218 config/pa/tm-hppa.h. These function will be used to initialize
219 the gdbarch structure. Import some comments from tm-hppa.h,
220 and place them where appropriate, to avoid loosing them when
221 we cleanup this file.
222 (hppa_reg_struct_has_addr): New function.
223 (hppa_inner_than): New function.
224 (hppa_stack_align): New function.
225 (hppa_pc_requires_run_before_use): New function.
226 (hppa_instruction_nullified): New function.
227 (hppa_register_byte): New function.
228 (hppa_register_virtual_type): New function.
229 (hppa_store_struct_return): New function.
230 (hppa_cannot_store_register): New function.
231 (hppa_frame_args_address): New function.
232 (hppa_frame_locals_address): New function.
233 (hppa_smash_text_address): New function.
234 (hppa_coerce_float_to_double): New function. Requires the inclusion
235 of "language.h".
236
237 * Makefile.in (hppa-tdep.o): Add dependency on language.h.
238
239 * tm-hppa.h (REG_STRUCT_HAS_ADDR): Change the definition of this
240 gdbarch-eligible macro to a call to the new associated function
241 created in hppa-tdep.c.
242 (INNER_THAN): Likewise.
243 (STACK_ALIGN): Likewise.
244 (PC_REQUIRES_RUN_BEFORE_USE): Likewise.
245 (INSTRUCTION_NULLIFIED): Likewise.
246 (REGISTER_BYTE): Likewise.
247 (REGISTER_VIRTUAL_TYPE): Likewise.
248 (STORE_STRUCT_RETURN): Likewise.
249 (CANNOT_STORE_REGISTER): Likewise.
250 (FRAME_ARGS_ADDRESS): Likewise.
251 (FRAME_LOCALS_ADDRESS): Likewise.
252 (SMASH_TEXT_ADDRESS): Likewise.
253 (COERCE_FLOAT_TO_DOUBLE): Likewise.
254 (ABOUT_TO_RETURN): Delete, as no longer used.
255
256 2002-11-07 Fernando Nasser <fnasser@redhat.com>
257
258 * printcmd.c (disassemble_command): Remove obsolete function.
259 (_initialize_printcmd): Do not create disassemble command here.
260 * cli/cli-cmds.c (disassemble_command): New function. Implements
261 disassemble command.
262 (init_cli_cmds): Create disassemble command here instead.
263
264 2002-11-07 Andrew Cagney <ac131313@redhat.com>
265
266 * MAINTAINERS: Add Daniel Jacobowitz to global maintainers list.
267
268 2002-11-07 Andrew Cagney <ac131313@redhat.com>
269
270 * regcache.h (regcache_cooked_read_using_offset_hack)
271 (regcache_cooked_write_using_offset_hack): Delete declarations.
272 (register_changed): Delete declaration.
273 * regcache.c (regcache_cooked_read_using_offset_hack)
274 (regcache_cooked_write_using_offset_hack): Delete functions.
275 (cooked_xfer_using_offset_hack): Delete function.
276 (register_changed): Delete function.
277
278 2002-11-07 Jim Blandy <jimb@redhat.com>
279
280 * macroscope.c: #include "complaints.h".
281 (sal_macro_scope): Cope with filenames that appear in the symtabs,
282 but not in the macro table.
283 * Makefile.in (macroscope.o): Record dependency.
284
285 2002-11-07 Joel Brobecker <brobecker@gnat.com>
286
287 * PROBLEMS: Document gdb/816 (unable to read core file on alpha-osf).
288
289 2002-11-07 Andrew Cagney <ac131313@redhat.com>
290
291 * regcache.c (deprecated_registers_fetched): Update.
292 * regcache.h (deprecated_registers_fetched): Rename
293 registers_fetched.
294 * remote-vxsparc.c (vx_read_register): Update.
295 * remote-vxmips.c (vx_read_register): Update.
296 * remote-vx68.c (vx_read_register): Update.
297 * irix5-nat.c (fetch_core_registers): Update.
298 * mipsm3-nat.c (fetch_inferior_registers): Update.
299 * sun3-nat.c (fetch_inferior_registers): Update.
300 * symm-nat.c (fetch_inferior_registers): Update.
301 * ns32knbsd-nat.c (fetch_inferior_registers): Update.
302 (fetch_core_registers): Update.
303 (fetch_kcore_registers): Update.
304 * mips-nat.c (fetch_inferior_registers): Update.
305 * corelow.c (get_core_registers): Update.
306 * a68v-nat.c (fetch_inferior_registers): Update.
307
308 2002-11-06 Joel Brobecker <brobecker@gnat.com>
309
310 Put in place the framework necessary for multiarching the hppa targets.
311 * hppa-tdep.c (hppa_gdbarch_init): New function.
312 (hppa_dump_tdep): New function.
313 (_initialize_hppa_tdep): Register the hppa gdbarch init function and
314 tdep structure dumper.
315 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): New macro, defined to 0
316 until the multi-arching conversion has partially been completed.
317
318 2002-11-06 Andrew Cagney <ac131313@redhat.com>
319
320 * valops.c (value_assign): Merge lval_register case into
321 lval_reg_frame_relative. Use frame_register and
322 regcache_cooked_write instead of get_saved_register and
323 write_register_bytes. After flushing the register cache, try to
324 re-select the selected frame.
325
326 2002-11-06 Andrew Cagney <ac131313@redhat.com>
327
328 * regcache.h (deprecated_register_valid): Rename register_valid.
329 * regcache.c: Update.
330 * ia64-aix-nat.c: Update.
331 * i386gnu-nat.c: Update.
332 * alpha-nat.c: Update.
333 * sparc-nat.c: Update.
334 * lynx-nat.c: Update.
335 * remote-mips.c: Update.
336
337 2002-11-06 Joel Brobecker <brobecker@gnat.com>
338
339 * hppa-tdep.c (_initialize_hppa_tdep): Move function body
340 to end of file, to be more consistent with the pratice followed
341 by other targets.
342
343 2002-11-06 Andrew Cagney <ac131313@redhat.com>
344
345 * infcmd.c: Include "reggroups.h" and <ctype.h>.
346 (print_float_info): Print registers in float_reggroup.
347 (print_vector_info): Print registers in vector_reggroup.
348 (default_print_registers_info): When all, print registers in
349 all_reggroup. Otherwize, print registers in general_reggroup.
350 (registers_info): Rewrite. Add support for register groups.
351 Eliminate a goto.
352
353 2002-11-06 Elena Zannoni <ezannoni@redhat.com>
354
355 * symtab.c (methods_info): Delete. It has been ifdeffed out for
356 ages.
357 (symtab_symbol_info): Remove eons old ifdeffed out code.
358 (_initialize_symtab): Remove prehistoric disabled 'info methods'
359 command.
360
361 2002-11-06 Theodore A. Roth <troth@openavr.org>
362
363 * c-exp.y: Add missing semi-colons.
364 * f-exp.y: Add missing semi-colons.
365 * m2-exp.y: Add missing semi-colons.
366 * p-exp.y: Add missing semi-colons.
367 Add empty action to start rule to avoid a type clash error when
368 building with bison >= 1.50.
369
370 2002-11-06 Jim Blandy <jimb@redhat.com>
371
372 * macrotab.h (struct macro_source_file): Doc fix.
373
374 2002-11-05 Jeff Johnston <jjohnstn@redhat.com>
375
376 * varobj.c (child_exists, cplus_number_of_children): Change
377 STREQ macro references to strcmp.
378 (cplus_name_of_child): Change code to handle the fact that
379 fields are not necessarily contiguous with regards to their
380 access control. This is a fix for PR gdb/792.
381
382 2002-11-05 Andrew Cagney <ac131313@redhat.com>
383
384 * gdbarch.sh (GET_SAVED_REGISTER): Change to a predicate function.
385 * gdbarch.h, gdbarch.c: Regnerate.
386 * frame.h (frame_register): Declare.
387 * frame.c (frame_register): New function.
388 (get_saved_register): Test GET_SAVED_REGISTER_P before calling
389 GET_SAVED_REGISTER, otherwize call
390 generic_unwind_get_saved_register.
391 (frame_register_read): Use frame_register instead of
392 get_saved_register.
393
394 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
395
396 From Jim Ingham <jingham@apple.com>:
397 * event-top.c (gdb_disable_readline): New function.
398 (_initialize_event_loop): Move comment.
399
400 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
401
402 * event-loop.c (start_event_loop): Add comment.
403 Update copyright.
404
405 2002-11-05 Andrew Cagney <ac131313@redhat.com>
406
407 * infcmd.c (default_print_registers_info): Do not call
408 PRINT_REGISTER_HOOK.
409
410 2002-11-05 Andrew Cagney <ac131313@redhat.com>
411
412 * sparc-tdep.c (sparc_print_register_hook): Make static.
413 (sparc_print_registers_info): New function.
414 (sparc_do_registers_info): New function.
415 (sparclet_print_registers_info): New function.
416 (sparclet_do_registers_info): New function.
417 (do_sparc_print_registers_info): New function.
418 (sparc_print_registers): New static function, clone of infcmd.c's
419 default_print_registers_info.
420 * config/sparc/tm-sparclet.h (PRINT_REGISTER_HOOK): Delete macro.
421 (sparclet_do_registers_info): Declare.
422 (DEPRECATED_DO_REGISTERS_INFO): Re-define.
423 * config/sparc/tm-sparc.h (DEPRECATED_DO_REGISTERS_INFO):
424 Re-define.
425 (sparc_do_registers_info): Declare.
426 (PRINT_REGISTER_HOOK): Delete macro.
427 (sparc_print_register_hook): Delete declaration.
428
429 2002-11-05 David Carlton <carlton@math.stanford.edu>
430
431 * symtab.c (lookup_symbol_aux): Move chunks of code into separate
432 functions.
433 (lookup_symbol_aux_local): New function.
434 (lookup_symbol_aux_symtabs): New function.
435 (lookup_symbol_aux_psymtabs): New function.
436
437 2002-11-05 David Carlton <carlton@math.stanford.edu>
438
439 * symtab.c (lookup_symbol_aux): In minsym sections, don't use the
440 previous values of 'objfile' and 'block'.
441
442 2002-11-05 Pierre Muller <muller@ics.u-strasbg.fr>
443
444 * values.c (value_change_enclosing_type): Set
445 enclosing_type field correctly also for the case where
446 more memory needs to be allocated.
447
448 2002-11-03 Mark Kettenis <kettenis@gnu.org>
449
450 * i387-tdep.c (i387_print_float_info): Call fputs_filtered instead
451 of puts_filtered.
452
453 * i387-tdep.c (i387_print_float_info): Replace calls to
454 register_read and deprecated_read_register_gen with calls to
455 frame_register_read, and make the necessary adjustments to the
456 surrounding code.
457
458 2002-11-02 Andrew Cagney <ac131313@redhat.com>
459
460 * gdbarch.sh (register_reggroup_p): Allow default value.
461 * gdbarch.h, gdbarch.c: Regenerate.
462
463 2002-11-02 Andrew Cagney <ac131313@redhat.com>
464
465 * regcache.h: Add coment indicating replacements for deprecated
466 functions.
467
468 2002-11-02 Andrew Cagney <cagney@redhat.com>
469
470 * reggroups.h, reggroups.c: New files.
471 * regcache.c: Include "reggroups.h".
472 (enum regcache_dump_what): Add `regcache_dump_groups'.
473 (regcache_dump): Contract size of the "Type" column. When
474 specified, dump the register's groups.
475 (maintenance_print_register_groups): New function.
476 (_initialize_regcache): Add command `maint print register-groups'.
477 * Makefile.in (COMMON_OBS): Add reggroups.o
478 (SFILES): Add reggroups.c.
479 (reggroups_h): Define.
480 (regcache.o, gdbarch.o): Update dependencies.
481 (reggroups.o): Specify dependencies.
482 * gdbarch.sh (register_reggroup_p): Add pure multi-arch method.
483 Add opaque declaration for `struct reggroup' in generated .h file.
484 Include "reggroups.h" in generated .c file.
485 gdbarch.h, gdbarch.c: Re-generate.
486
487 2002-11-02 Andrew Cagney <cagney@redhat.com>
488
489 * regcache.h (deprecated_read_register_gen): Rename
490 read_register_gen.
491 (deprecated_write_register_gen): Rename write_register_gen.
492 * i387-tdep.c: Update.
493 * x86-64-linux-nat.c: Update
494 * wince.c: Update.
495 * thread-db.c: Update.
496 * win32-nat.c: Update.
497 * mips-tdep.c: Update.
498 * d10v-tdep.c: Update.
499 * cris-tdep.c: Update.
500 * remote-sim.c: Update.
501 * remote-rdi.c: Update.
502 * remote-rdp.c: Update.
503 * frame.c: Update.
504 * target.c: Update.
505 * blockframe.c: Update.
506 * x86-64-tdep.c: Update.
507 * xstormy16-tdep.c: Update.
508 * sh-tdep.c: Update.
509 * s390-tdep.c: Update.
510 * rs6000-tdep.c: Update.
511 * sparc-tdep.c: Update.
512 * i386-tdep.c: Update.
513 * dwarf2cfi.c: Update.
514 * regcache.c: Update.
515
516 2002-11-01 Joel Brobecker <brobecker@gnat.com>
517
518 New interix-specific files:
519 * config/i386/nm-interix.h: New file.
520 * config/i386/interix.mh: New file.
521 * config/i386/interix.mt: New file.
522 * i386-interix-nat.c: New file.
523 * i386-interix-tdep.c: New file.
524
525 2002-11-01 Andrew Cagney <cagney@redhat.com>
526
527 * frame.h (deprecated_generic_get_saved_register): Rename
528 generic_get_saved_register.
529 * blockframe.c (deprecated_generic_get_saved_register): Update.
530 * xstormy16-tdep.c (xstormy16_get_saved_register): Update.
531 (xstormy16_frame_saved_register): Update.
532 * sh-tdep.c (sh_gdbarch_init): Update.
533 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
534 * ia64-tdep.c (ia64_get_saved_register): Update.
535 * cris-tdep.c (cris_gdbarch_init): Update.
536 * config/m32r/tm-m32r.h (GET_SAVED_REGISTER): Update.
537 * arm-tdep.c (arm_gdbarch_init): Update.
538
539 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
540
541 * lin-lwp.c (lin_lwp_resume): Remove resume_all test for !step.
542
543 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
544
545 * i386-linux-tdep.c (i386_linux_pc_in_sigtramp): Check for
546 trampolines in sigaction.
547
548 2002-10-31 Andrew Cagney <cagney@redhat.com>
549
550 * h8300-tdep.c: Include "gdb_assert.h".
551 (h8300_print_register): Add gdbarch, file and frame parameters.
552 Use frame_read_unsigned_register to read the register's value.
553 Use fprintf_filtered to display output.
554 (h8300_print_registers_info): Replace h8300_do_registers_info.
555 (h8300_gdbarch_init): Set print_registers_info.
556
557 2002-10-31 Andrew Cagney <cagney@redhat.com>
558
559 * frame.c (frame_read_unsigned_register): New function.
560 (frame_read_signed_register): New function.
561 * frame.h (frame_read_unsigned_register): Declare.
562 (frame_read_signed_register): Declare.
563
564 2002-10-31 Andrew Cagney <cagney@redhat.com>
565
566 * h8500-tdep.c (h8500_print_registers_info): New static function,
567 clone of infcmd.c's default_print_registers_info.
568 (h8500_do_registers_info): New funtion.
569 (h8500_print_register_hook): Rename print_register_hook, make
570 static.
571
572 * config/h8500/tm-h8500.h: Update copyright.
573 (DEPRECATED_DO_REGISTERS_INFO): Define.
574 (h8500_do_registers_info: Declare.
575 (PRINT_REGISTER_HOOK): Delete macro.
576 (print_register_hook): Delete function.
577
578 2002-10-31 Andrew Cagney <cagney@redhat.com>
579
580 * z8k-tdep.c (z8k_print_register_hook): Make static.
581 (z8k_print_registers_info): New static function, clone of
582 infcmd.c's default_print_registers_info.
583 (z8k_do_registers_info): New function. Wrap
584 z8k_print_registers_info.
585 * config/z8k/tm-z8k.h: Update copyright.
586 (PRINT_REGISTER_HOOK): Delete macro.
587 (z8k_print_register_hook): Delete declaration.
588 (DEPRECATED_DO_REGISTERS_INFO): Define.
589 (z8k_do_registers_info): Declare.
590
591 2002-10-30 Joel Brobecker <brobecker@gnat.com>
592
593 * hppa-tdep.c (find_function_in_inferior): Remove this extern,
594 as this is already provided by value.h, and was actually causing
595 a compilation error because of a conflict in parameter type
596 declaration due to a missing const keyword.
597 (low_text_segment_addres): Fix a compilation warning.
598
599 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
600
601 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
602 registers without a name.
603 (mips_linux_cannot_store_register): Don't store registers without
604 a name.
605
606 2002-10-28 David Carlton <carlton@math.stanford.edu>
607
608 * symtab.c (find_addr_symbol): Delete. (It was already commented
609 out.)
610 * symtab.h: Delete prototype for find_addr_symbol.
611
612 2002-10-26 Andrew Cagney <cagney@redhat.com>
613
614 * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
615 DO_REGISTERS_INFO.
616 gdbarch.h, gdbarch.c: Re-generate.
617 * infcmd.c (default_print_registers_info): Update reference.
618 * mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info.
619 (mips_dump_tdep): Do not print DO_REGISTERS_INFO.
620 * sh-tdep.c (sh_gdbarch_init): Ditto.
621 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
622 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
623
624 2002-10-26 Mark Kettenis <kettenis@gnu.org>
625
626 * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
627 cfi_init_extra_frame_info.
628 * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
629 * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
630
631 * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
632 target where necessary. Add more comments and remove the ones
633 that don't provide any useful information.
634
635 * i386-tdep.c (i386_frame_saved_pc): Replace call to
636 deprecated_read_register_dummy with
637 frame_unwind_unsigned_register.
638
639 * i386-tdep.c (i386_extract_struct_value_address): Use
640 regcache_raw_read_unsigned instead of
641 regcache_cooked_read_unsigned since we know that the register
642 we're reading isn't a pseudo register. Rename variable 'val' into
643 the more descriptive 'addr'.
644
645 * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
646 (x86_64_push_return_address): Add comment.
647 (x86_64_pop_frame): Make static.
648 (examine_argument): Clarify comment.
649 (x86_64_skip_prologue): Make prolog_expact variable static.
650
651 * dwarf2cfi.c: Fix some formatting problems.
652 (context_cpy, read_encoded_pointer): Clarify comments.
653
654 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
655 (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
656 i386 target back into x86_64_gdbarch_init. Add some comments and
657 remove meaningless ones.
658
659 2002-10-25 Andrew Cagney <cagney@redhat.com>
660
661 * complaints.h (struct deprecated_complaint): Rename `struct
662 complaint'.
663 * complaints.c (complain): Update.
664 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
665 incorrect comment indicating that "symfile.h" was being included
666 for the `struct complaint' definition.
667 * remote-vx.c: Update.
668 * objc-lang.c: Update.
669 * xcoffread.c: Update.
670 * hpread.c: Update.
671 * mdebugread.c: Update.
672 * stabsread.c: Update.
673 * dwarf2read.c: Update.
674 * dwarfread.c: Update.
675 * elfread.c: Update.
676 * coffread.c: Update.
677 * stabsread.h: Update.
678 * dbxread.c: Update.
679 * buildsym.c: Update.
680 * gdbtypes.c: Update.
681 * macrotab.c: Update.
682
683 2002-10-25 Mark Kettenis <kettenis@gnu.org>
684
685 * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
686 the version in i386-tdep.c. Move set_gdbarch_* calls out into...
687 (x86_64_init_abi): ...new function.
688
689 * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
690 * i386v-nat.c: Include "i386-tdep.h".
691
692 2002-10-25 Andrew Cagney <cagney@redhat.com>
693
694 * gdbtypes.c (address_space_name_to_int): Update.
695 (address_space_int_to_name): Update.
696 * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
697 multi-arch predicate.
698 (address_class_name_to_type_flags): Ditto.
699 * gdbarch.h, gdbarch.c: Re-generate.
700
701 * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
702
703 2002-10-24 Martin M. Hunt <hunt@redhat.com>
704
705 * utils.c (string_to_core_addr): Revert patch from 11 Oct.
706
707 2002-10-24 Elena Zannoni <ezannoni@redhat.com>
708
709 * symtab.h (INIT_SAL): Delete macro.
710 (init_sal): Export.
711 * symtab.c (init_sal): New function.
712
713 * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
714 to init_sal function call.
715 (find_sal_from_funcs_and_line): Ditto.
716 (all_sals_for_line): Ditto.
717 * breakpoint.c (create_internal_breakpoint): Ditto.
718 (create_fork_vfork_event_catchpoint): Ditto.
719 (create_exec_event_catchpoint): Ditto.
720 (parse_breakpoint_sals): Ditto.
721 (watch_command_1): Ditto.
722 (handle_gnu_4_16_catch_command): Ditto.
723 (clear_command): Ditto.
724 * hppa-tdep.c (child_enable_exception_callback): Ditto.
725 * infcmd.c (run_stack_dummy): Ditto.
726 * infrun.c (process_event_stop_test): Ditto.
727 (check_sigtramp2): Ditto.
728 (step_over_function): Ditto.
729 * linespec.c (decode_line_2): Ditto.
730 (decode_line_1): Ditto.
731 * source.c (line_info): Ditto.
732 * symtab.c (find_pc_sect_line): Ditto.
733
734 2002-10-24 Michal Ludvig <mludvig@suse.cz>
735
736 * dwarf2cfi.c (struct context)
737 (struct context_reg): Moved to dwarf2cfi.h
738 (context_alloc, frame_state_alloc, context_cpy):
739 Made extern instead of static, removed prototypes.
740 * dwarf2cfi.h (struct context)
741 (struct context_reg): New, moved from dwarf2cfi.c
742 (context_alloc, frame_state_alloc, context_cpy):
743 New prototypes.
744 * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
745 Changed from static to extern.
746 (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
747 (LINUX_SIGCONTEXT_FP_OFFSET)
748 (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
749 (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
750 (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
751 * x86-64-tdep.c (x86_64_gdbarch_init): Several
752 set_gdbarch_*() calls now use x86-64 specific functions
753 instead of DWARF2 CFI ones.
754 * x86-64-tdep.h (x86_64_linux_in_sigtramp)
755 (x86_64_linux_frame_chain, x86_64_init_frame_pc)
756 (x86_64_init_extra_frame_info): New prototypes.
757
758 2002-10-23 David Carlton <carlton@math.stanford.edu>
759
760 * linespec.c: #include "parser-defs.h".
761 Delete prototype for find_template_name_end.
762 * Makefile.in (linespec.o): Depend on $(parser_defs_h).
763
764 2002-10-23 Jeff Johnston <jjohnstn@redhat.com>
765
766 * NEWS: add recent mi fixes.
767 * varobj.c (struct varobj): Add new "updated" flag.
768 (new_variable): Default "updated" flag to 0.
769 (varobj_set_value): Set "updated" flag to 1 if value
770 changes.
771 (varobj_update): Check varobj "updated" flag before
772 comparing old and refreshed values. Fix for
773 PR gdb/702.
774
775 2002-10-23 David Carlton <carlton@math.stanford.edu>
776
777 * parse.c (parse_exp_1): Use BLOCK_START.
778 * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
779 SYMBOL_BLOCK_VALUE.
780 * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
781
782 2002-10-23 David Carlton <carlton@math.stanford.edu>
783
784 * symtab.c: Delete cplusplus_hint.
785 Delete prototype for find_template_name_end.
786
787 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
788
789 * symtab.h: Update comment.
790
791 2002-10-23 Michael Snyder <msnyder@redhat.com>
792
793 * printcmd.c (address_info): Restore quotes in output.
794 * valops.c (value_of_local): Restore quotes in error message.
795
796 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
797
798 * symtab.c (symbol_demangled_name): New function.
799 * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
800 turning most of it into a function.
801 (symbol_demangled_name): Export.
802
803 2002-10-23 Michael Snyder <msnyder@redhat.com>
804
805 * valops.c (value_of_local): Restore quotes in error message.
806
807 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
808
809 * symtab.c (symbol_init_language_specific): New function.
810 * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
811 turning most of it into a function.
812 (symbol_init_language_specific): Export.
813
814 2002-10-23 David Carlton <carlton@math.stanford.edu>
815
816 * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
817 (dwarf_attr_name): Ditto.
818 (dwarf_type_encoding_name): Ditto.
819 (scan_partial_symbols): Descend into DW_TAG_namespace entries.
820 (process_die): Handle DW_TAG_namespace,
821 DW_TAG_imported_declaration, DW_TAG_imported_module.
822 (read_namespace): New function.
823
824 2002-10-22 Joel Brobecker <brobecker@gnat.com>
825
826 * configure.in: Define NEW_PROC_API on Interix too.
827 * configure: Regenerate.
828
829 2002-10-21 Joel Brobecker <brobecker@gnat.com>
830
831 * configure: Regenerate using the proper version of autoconf.
832
833 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
834
835 * findvar.c (read_var_value): Temporarily disable TLS code, until
836 complete TLS support is added.
837
838 2002-10-21 Jim Blandy <jimb@redhat.com>
839 Elena Zannoni <ezannoni@redhat.com>
840
841 * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
842 for thread local storage locations.
843 (struct symbol): Add objfile field.
844 (SYMBOL_OBJFILE): Define.
845 * dwarf2read.c (is_thread_local): New static variable.
846 (new_symbol): If variable is in thread local fill in address class
847 and objfile appropriately.
848 (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
849 stack operation.
850 * printcmd.c (address_info): Print the information for thread
851 local storage variable.
852 * findvar.c (read_var_value): In case of thread local variable,
853 defer to the target vector code to compute address.
854
855 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
856
857 * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
858 * solib-svr4.h (svr4_fetch_objfile_link_map): Export.
859
860 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
861
862 * symtab.h (address_class): Rename
863 LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
864 * hpread.c (hpread_process_one_debug_symbol): Ditto.
865 * printcmd.c (address_info): Ditto.
866 * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
867
868 2002-10-20 Mark Kettenis <kettenis@gnu.org>
869
870 * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
871 DBREG_DRX macro to acces debug registers.
872
873 * Makefile.in (i386obsd-tdep.o): New target.
874
875 * solib-sunos.c: Include "bcache.h" and "regcache.h".
876 * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
877
878 * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
879 * config/i386/obsd.mt: New file.
880 * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
881 i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
882 * i386obsd-nat.c (_initialize_i386obsd_nat): Set
883 i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
884 i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
885 * i386obsd-tdep.c: New file.
886
887 2002-10-19 Adam Fedor <fedor@gnu.org>
888
889 * objc-exp.y (name_not_typename): Fix invalid comment.
890
891 2002-10-20 Mark Kettenis <kettenis@gnu.org>
892
893 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
894 to allocate partial syms and macro byte caches.
895
896 2002-10-18 David Carlton <carlton@math.stanford.edu>
897
898 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
899
900 2002-10-18 Adam Fedor <fedor@gnu.org>
901
902 * stabsread.c (find_name_end): New function.
903 (define_symbol): Use it.
904
905 2002-10-18 Daniel Jacobowitz <drow@mvista.com>
906
907 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
908 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
909 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
910 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
911
912 2002-10-17 David Carlton <carlton@math.stanford.edu>
913
914 * symfile.h: Add opaque declaration for struct obstack.
915 Declare obsavestring to take a const char *.
916 * symfile.c (obsavestring): Make first argument a const char *.
917
918 2002-10-16 Adam Fedor <fedor@gnu.org>
919
920 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
921 names when matching breakpoints in current file.
922
923 2002-10-16 Kevin Buettner <kevinb@redhat.com>
924
925 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
926 (read_tag_pointer_type): Add address class support.
927 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
928 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
929 New methods.
930 * gdbarch.h, gdbarch.c: Regenerate.
931 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
932 (make_type_with_address_space, recursive_type_dump): Add address
933 class support.
934 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
935 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
936 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
937
938 2002-10-16 Klee Dienes <kdienes@apple.com>
939
940 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
941 to get the last character of a char[] buffer, not
942 name[sizeof(vptr_name)-1].
943
944 2002-10-14 Adam Fedor <fedor@gnu.org>
945
946 * symtab.h: New objc_specific struct.
947 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
948 (SYMBOL_DEMANGLED_NAME): Likewise.
949
950 2002-10-14 Adam Fedor <fedor@gnu.org>
951
952 * symfile.c (init_filename_language_table): Add ObjC file extension.
953
954 2002-10-14 Adam Fedor <fedor@gnu.org>
955
956 * utils.c (puts_filtered_tabular): New function.
957 (fprintf_symbol_filtered): Get ObjC demangled name.
958 * defs.h (puts_filtered_tabular): Declared.
959
960 2002-10-14 Kevin Buettner <kevinb@redhat.com>
961
962 * c-lang.h (c_type_print_varspec_prefix): Delete.
963 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
964 ``need_post_space'' parameter. Adjust all callers.
965
966 2002-10-14 Daniel Jacobowitz <drow@mvista.com>
967
968 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
969 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
970 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
971 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
972
973 2002-10-13 Adam Fedor <fedor@gnu.org>
974
975 * source.c (print_source_lines): Update comments.
976
977 2002-10-13 Adam Fedor <fedor@gnu.org>
978
979 * valops.c (value_of_local): New function.
980 (value_of_this): Use it.
981 * value.h (value_of_local): Declared.
982
983 2002-10-13 Adam Fedor <fedor@gnu.org>
984
985 * parse.c: (length_of_subexp, prefixify_subexp): Handle
986 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
987
988 2002-10-12 Adam Fedor <fedor@gnu.org>
989
990 * language.c (binop_result_type): Add language_objc to case.
991 (integral_type): Likewise.
992 (character_type): Likewise.
993 (string_type): Likewise.
994 (boolean_type): Likewise.
995 (structured_type): Likewise.
996 (binop_type_check): Likewise.
997
998 2002-10-11 Adam Fedor <fedor@gnu.org>
999
1000 * printcmd.c (address_info): Print 'self' for ObjC.
1001
1002 2002-10-11 Adam Fedor <fedor@gnu.org>
1003
1004 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
1005 OP_SELF.
1006
1007 2002-10-11 Adam Fedor <fedor@gnu.org>
1008
1009 * language.h (CAST_IS_CONVERSION): Add language_objc.
1010
1011 2002-10-11 Adam Fedor <fedor@gnu.org>
1012
1013 * defs.h (enum language): Add language_objc.
1014
1015 2002-10-11 Klee Dienes <kdienes@apple.com>
1016
1017 * corefile.c (read_memory_typed_address): New function.
1018 * gdbcore.h (read_memory_typed_address): Add prototype.
1019 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
1020 to read a value destined for a CORE_ADDR, not read_memory_integer.
1021 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
1022 (f77_get_dynamic_lowerbound): Ditto.
1023
1024 2002-10-11 Martin M. Hunt <hunt@redhat.com>
1025
1026 * utils.c (string_to_core_addr): After turning string into
1027 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
1028 which will do necessary sign-extension, etc.
1029
1030 2002-10-11 Daniel Jacobowitz <drow@mvista.com>
1031
1032 * c-exp.y (THIS): Delete token and grammar rule.
1033 (yylex): Don't return THIS.
1034 * cp-valprint.c (vtbl_ptr_name_old): Delete.
1035 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
1036 * demangle.c (cplus_markers): Update comment. Put '$'
1037 first. Remove CPLUS_MARKER.
1038 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
1039 * jv-exp.y (THIS): Delete token and grammar rule.
1040 (yylex): Don't return THIS.
1041 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
1042 * objc-exp.y (THIS): Delete token and grammar rule.
1043 (yylex): Don't return THIS.
1044 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
1045 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
1046 (read_member_functions): Likewise for opname.
1047 (read_tilde_fields): Use is_cplus_marker.
1048
1049 * defs.h (CPLUS_MARKER): Don't define.
1050 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
1051 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
1052 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
1053 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
1054 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
1055
1056 * config/i386/tm-i386v4.h: Delete file.
1057 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
1058 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
1059 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
1060 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
1061 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
1062 * config/i386/i386sco5.mt (TM_FILE): Likewise.
1063 * config/i386/i386v4.mt (TM_FILE): Likewise.
1064 * config/i386/ncr3000.mt (TM_FILE): Likewise.
1065
1066 2002-10-10 Marko Mlinar <markom@opencores.org>
1067
1068 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
1069 accidentially not commited 2002-10-09
1070 * gdbarch.h, gdbarch.c: Re-generate.
1071
1072 2002-10-09 Marko Mlinar <markom@opencores.org>
1073
1074 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
1075 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
1076 * gdbarch.h, gdbarch.c: Re-generate.
1077
1078 2002-10-08 Petr Sorfa <petrs@caldera.com>
1079
1080 Revised and re-submitted by John Wolfe <jlw@caldera.com>
1081
1082 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
1083 so we can work on more than one compilation unit at a time. This
1084 helps prepare GDB to handle inter-CU die references.
1085 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
1086 the code to be defined before struct comp_unit_head.
1087 (comp_unit_head): Added new members - offset, cu_head,
1088 begin_die, next and dwarf2_abbrevs.
1089 (dwarf2_abbrevs): Removed single static var; now member of
1090 struct comp_unit_head.
1091 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
1092 members.
1093 (psymtab_to_symtab_1): Changed to work with the new
1094 struct comp_unit_head.
1095 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
1096 constructs the dwarf2_abbrevs[] inside the cu_header.
1097 (dwarf2_empty_abbrev_table): Now expects a ptr to a
1098 dwarf2_abbrev table to clean up.
1099 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
1100 handling of dwarf2_abbrevs inside the cu_header.
1101 (read_partial_die): Now supports the call to the new
1102 dwarf2_lookup_abbrev.
1103 (read_full_die): Now supports the call to the new
1104 dwarf2_lookup_abbrev.
1105
1106 2002-10-06 Christopher Faylor <cgf@redhat.com>
1107
1108 * Makefile.in (install-gdbtk): Add missing continuation backslash to
1109 insure that shell variables, such as "transformed_name" are propagated
1110 to later shell statements in rule.
1111
1112 2002-10-06 Mark Kettenis <kettenis@gnu.org>
1113
1114 * config/i386/nm-i386sco.h: Add protection against
1115 multiple-inclusion. Include "i386/nm-i386v.h".
1116 (REGISTER_U_ADDR): Remove define.
1117 (i386_register_u_addr): Remove prototype.
1118
1119 2002-10-04 Michael Snyder <msnyder@redhat.com>
1120
1121 * m32r-stub.c (handle_exception): Make sure exception is "trap"
1122 before treating it as a single-step event.
1123
1124 2002-10-03 Adam Fedor <fedor@gnu.org>
1125
1126 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
1127 (objc_demangle): Remove assignment in if statements, Replace
1128 free with xfree.
1129 (add_msglist): Likewise.
1130 (end_msglist): Likewise.
1131 (complare_selectors): Likewise.
1132 (selectors_info): Likewise.
1133 (compare_classes): Likewise.
1134 (classes_info): Likewise.
1135 (print_object_command): Likewise.
1136 (find_objc_msgcall_submethod): Replace PTR with void *.
1137 * objc-lang.h: Remove check for __STDC__.
1138
1139 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
1140
1141 * ui-out.h (ui_out_field_fmt_int): New prototype.
1142 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
1143 of field width and alignment.
1144 * stack.c (print_frame_info_base): When printing frame level, use
1145 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
1146 PR gdb/192
1147
1148 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
1149
1150 * MAINTAINERS: Add self to Write After Approval list.
1151
1152 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
1153
1154 * infcmd.c (interrupt_target_command_wrapper): Delete.
1155 (interrupt_target_command): Make non static.
1156 (nofp_registers_info): Make static.
1157 * stack.c (return_command_wrapper): Delete.
1158 (return_command): Make non static.
1159
1160 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
1161
1162 * event-top.c (gdb_setup_readline): New function. Code moved from
1163 _initialize_event_loop().
1164 (_initialize_event_loop): Call gdb_setup_readline().
1165
1166 2002-10-02 Andrew Cagney <ac131313@redhat.com>
1167
1168 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
1169 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
1170 * gdbarch.h, gdbarch.c: Re-generate.
1171
1172 2002-10-02 Daniel Jacobowitz <drow@mvista.com>
1173
1174 Fix PR gdb/778
1175 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
1176 before recursing.
1177 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
1178 of fill_in_vptr_fieldno.
1179
1180 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
1181
1182 * inferior.h (registers_info, stepi_command, nexti_command,
1183 continue_command, interrupt_target_command): Export from infcmd.c.
1184 * frame.h (args_info, selected_frame_level_changed_hook,
1185 return_command): Export from stack.c.
1186 * v850ice.c (stepi_command, nexti_command, continue_command): use
1187 prototypes from inferior.h.
1188 * tracepoint.c (registers_info, args_info, locals_info): Use
1189 prototypes from frame.h and inferior.h.
1190 * Makefile.in (mi-main.o): Add dependency on frame.h.
1191
1192 2002-10-02 Andrew Cagney <ac131313@redhat.com>
1193
1194 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
1195 value in register 3 adjusted by ppc_gp0_regnum.
1196
1197 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
1198
1199 2002-10-02 Marko Mlinar <markom@opencores.org>
1200
1201 * MAINTAINERS: Add myself to the Write After Approval list.
1202
1203 2002-10-01 Alexandre Oliva <aoliva@redhat.com>
1204
1205 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
1206 of the section for the N64 ABI, fixed.
1207
1208 * config/mips/tm-irix6.h: Include solib.h.
1209
1210 2002-10-01 Elena Zannoni <ezannoni@redhat.com>
1211
1212 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
1213 GNU operators.
1214
1215 2002-10-01 Andrew Cagney <ac131313@redhat.com>
1216
1217 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
1218 and that "mi0" syntax has been removed.
1219
1220 2002-09-30 David Carlton <carlton@math.stanford.edu>
1221
1222 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
1223 * ppc-sysv-tdep.c: #include "gdb_string.h".
1224 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
1225 pacify GCC.
1226
1227 2002-10-01 Andrew Cagney <ac131313@redhat.com>
1228
1229 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
1230 "vrsave"'s register number.
1231
1232 2002-09-30 Andrew Cagney <ac131313@redhat.com>
1233
1234 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
1235 use frame_unwind_signed_register to obtain the PC.
1236 (mips_frame_chain): Handle a generic dummy frame.
1237 (mips_init_extra_frame_info): When a generic dummy frame, don't
1238 re-compute the frame base.
1239 (mips_pop_frame): Handle generic dummy frames.
1240 (mips_gdbarch_init): When generic dummy frames, set
1241 use_generic_dummy_frames, push_dummy_frame to
1242 generic_push_dummy_frame, pc_in_call_dummy to
1243 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
1244 generic_save_dummy_frame_tos.
1245
1246 2002-09-30 Andrew Cagney <ac131313@redhat.com>
1247
1248 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
1249 against TOP when TOP was explictly set.
1250 (generic_push_dummy_frame): Set TOP to zero.
1251
1252 2002-09-30 Elena Zannoni <ezannoni@redhat.com>
1253
1254 * event-loop.c (start_event_loop): Rename variable 'result' to
1255 'gdb_result', to avoid conflicts with upcoming intepreters changes.
1256
1257 2002-09-30 Keith Seitz <keiths@redhat.com>
1258
1259 * gdb-events.sh (selected_thread_changed): New event.
1260 * gdb-events.c: Regenerated.
1261 * gdb-events.h: Regenerated.
1262
1263 2002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
1264
1265 * MAINTAINERS: Add self to Write After Approval list.
1266
1267 2002-09-30 Fernando Nasser <fnasser@redhat.com>
1268
1269 * disasm.c: New file.
1270 * disasm.h: New file.
1271 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
1272 (compare_lines): Ditto.
1273 (dump_insns): Ditto.
1274 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
1275 argument.
1276 (do_assembly_only): Ditto.
1277 (do_disassembly): Renamed to gdb_disassembly and moved to
1278 disasm.c. Sdded uiout argument.
1279 * Makefile.in: Add new files. Reorder SFILES list. Update
1280 dependencies. Include libgdb.a later in the insight executable.
1281
1282 2002-09-29 Andrew Cagney <ac131313@redhat.com>
1283
1284 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
1285 bfd/elf64-alpha-fbsd.c.
1286
1287 2002-09-29 Andrew Cagney <ac131313@redhat.com>
1288
1289 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
1290 i386gnu-tdep.c.
1291
1292 2002-09-29 Andrew Cagney <ac131313@redhat.com>
1293
1294 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
1295 __FUNCTION__.
1296 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
1297 function name.
1298 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
1299 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
1300 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
1301 (S_msg_sig_post_reply): Ditto.
1302
1303 2002-09-28 Corinna Vinschen <vinschen@redhat.com>
1304
1305 * sh-tdep.c (sh_use_struct_convention): Use definition according
1306 to ABI.
1307 (sh_push_arguments): Store in register with correct endianess.
1308 (sh_default_store_return_value): Ditto.
1309 (sh_gdbarch_init): Set sizeof long double to 8.
1310
1311 2002-09-27 Mark Kettenis <kettenis@gnu.org>
1312
1313 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
1314 Fix some whitespace problems.
1315
1316 2002-09-27 David Carlton <carlton@math.stanford.edu>
1317
1318 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
1319 (mcore-tdep.o): Ditto.
1320 (ns32k-tdep.o): Ditto.
1321 (ns32knbsd-tdep.o): Ditto.
1322 (sh3-rom.o): Ditto.
1323 (vax-tdep.o): Ditto.
1324 * cris-tdep.c: #include "gdb_string.h"
1325 * mcore-tdep.c: Ditto.
1326 * ns32k-tdep.c: Ditto.
1327 * ns32knbsd-tdep.c: Ditto.
1328 * sh3-rom.c: Ditto.
1329 * vax-tdep.c: Ditto.
1330
1331 2002-09-27 David Carlton <carlton@math.stanford.edu>
1332
1333 * config/djgpp/fnchange.lst: Add entries for
1334 gdb/testsuite/gdb.c++/m-static files.
1335
1336 2002-09-27 Jim Wilson <wilson@redhat.com>
1337
1338 * MAINTAINERS: Add myself to the Write After Approval list.
1339
1340 2002-09-26 Martin M. Hunt <hunt@redhat.com>
1341
1342 * mips-tdep.c (find_proc_desc): Initialize startaddr.
1343
1344
1345 2002-09-26 Andrew Cagney <ac131313@redhat.com>
1346
1347 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
1348 frame.
1349
1350 2002-09-26 Andrew Cagney <ac131313@redhat.com>
1351
1352 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
1353 (rs6000_struct_return_address): Delete variable.
1354 (rs6000_store_struct_return): Update.
1355 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
1356 deprecated_extract_struct_value_address.
1357 (rs6000_frame_align): New function.
1358 (rs6000_gdbarch_init): Set frame_align.
1359
1360 2002-09-26 Andrew Cagney <ac131313@redhat.com>
1361
1362 From Grace Sainsbury <graces@redhat.com>:
1363 * Makefile.in (gdbtk-main.o): New target.
1364 (gdb.o): New target.
1365 (main_h): Define.
1366 (main.o): Update dependencies.
1367 (gdb$(EXEEXT)): Add gdb.o.
1368 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
1369 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
1370 (SUBDIR_GDBTK_CLEAN): Set.
1371 (install-gdbtk): Install the insight binary.
1372 (uninstall-gdbtk): New target.
1373 (all-gdbtk, clean-gdbtk): New rule.
1374 * top.c (use_windows): Default to zero.
1375 * main.c: Include "main.h".
1376 (main): Delete.
1377 (struct captured_main_args): Delete.
1378 (gdb_main): New function.
1379 * main.h: New file.
1380 * gdb.c: New File.
1381
1382 2002-09-25 Andrew Cagney <cagney@redhat.com>
1383
1384 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
1385 (frame_map_regnum_to_name): New function.
1386 (frame_map_name_to_regnum): New function.
1387 * frame.h (frame_map_name_to_regnum): Declare.
1388 (frame_map_regnum_to_name): Declare.
1389 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
1390 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
1391 * parse.c: Do not include "builtin-regs.h".
1392 (target_map_name_to_register): Delete function.
1393 (write_dollar_variable): Use frame_map_name_to_regnum.
1394 * parser-defs.h (target_map_name_to_register): Delete declaration.
1395 * expprint.c: Include "frame.h".
1396 (print_subexp): Use frame_map_regnum_to_name.
1397 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
1398 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
1399
1400 2002-09-25 Andrew Cagney <ac131313@redhat.com>
1401
1402 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
1403 wasn't saved, and the next innermost frame is a dummy, return the
1404 dummy frame's link register.
1405
1406 2002-09-24 Jim Blandy <jimb@redhat.com>
1407
1408 Fix from Paul Breed:
1409 * main.c (captured_main): Add a `break' after the case for 'b'.
1410
1411 2002-09-24 Keith Seitz <keiths@redhat.com>
1412
1413 * varobj.c (c_type_of_child): Use get_target_type instead
1414 of TYPE_TARGET_TYPE.
1415
1416 2002-09-22 Fernando Nasser <fnasser@redhat.com>
1417
1418 * source.c (get_current_or_default_source_symtab_and_line): Remove
1419 function.
1420 (set_default_source_symtab_and_line): New function. Attempts to
1421 determine a source file to list lines from if one is not currently
1422 defined.
1423 (get_current_source_symtab_and_line): Initialize sal.pc and
1424 sal.end fields.
1425 (set_current_source_symtab_and_line): Mark argument as const.
1426 * source.h: Update declarations and comments.
1427 * linespec.c (decode_line_1): Replace call to removed routine above.
1428 * stack.c (print_frame_info_base): Ditto.
1429 * cli/cli-cmds.c (edit_command): Ditto.
1430 (list_command): Ditto.
1431
1432 2002-09-22 Fernando Nasser <fnasser@redhat.com>
1433
1434 * source.c (get_current_or_default_source_symtab_and_line): Initialize
1435 sal.pc and sal.end fields.
1436 (get_current_or_default_source_symtab_and_line): Ditto.
1437 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
1438 so we do not cause a new source symtab to be searched for (reverting an
1439 unintentional change from the 2002-09-20 patch).
1440 * scm-lang.c (scm_unpac): Ditto.
1441
1442 2002-09-21 Andrew Cagney <cagney@redhat.com>
1443
1444 * complaints.c (symfile_explanations): Remove new-line from
1445 ``isolated_message''.
1446 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
1447 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
1448
1449 2002-09-20 Nick Clifton <nickc@redhat.com>
1450
1451 * NEWS: Announce that V850EA ISA is no longer supported.
1452 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
1453
1454 2002-09-20 David Carlton <carlton@math.stanford.edu>
1455
1456 * Makefile.in (c-lang.o): Correct dependencies.
1457 (utils.o): Gather dependencies.
1458 (charset.o): Move.
1459 * c-lang.c: #include "gdb_string.h"
1460
1461 2002-09-20 Fernando Nasser <fnasser@redhat.com>
1462
1463 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
1464 * cli/cli-cmds.c (list_command): New function. Implements the new
1465 cli edit command.
1466 (_init_cli_cmds): Add new command definition.
1467 * gdb.1: Document edit command.
1468 * doc/gdb.texinfo: Document edit command.
1469
1470 2002-09-20 Fernando Nasser <fnasser@redhat.com>
1471
1472 * source.c: Make global variables current_source_symtab and
1473 current_source_line static.
1474 (list_command): Moved to cli/cli-cmds.c.
1475 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
1476 (get_first_line_listed): New accessor function.
1477 (get_lines_to_list): New accessor function.
1478 (get_current_source_symtab_and_line): New function. Retrieves the
1479 position in the source code that we consider current.
1480 (get_current_or_default_source_symtab_and_line): New function.
1481 Like the above but attempts to determine a default position if one
1482 is not currently defined.
1483 (set_current_source_symtab_and_line): New function. Sets the source
1484 code position considered current and returns the previously set one.
1485 (clear_current_source_symtab_and_line): Reset stored information about
1486 a current source line.
1487 (_initialize_source): Remove registration for the "list" command and
1488 its alias.
1489 * source.h: Add declarations for the new functions above.
1490 * symtab.h: Remove declarations for the global variables mentioned
1491 above.
1492 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
1493 obtain current source line.
1494 * linespec.c (decode_line_1): Ditto.
1495 * macroscope.c (default_macro_scope): Ditto.
1496 * scm-lang.c (scm_unpac): Ditto.
1497 * stack.c (print_frame_info_base): Ditto.
1498 * symfile.c (clear_symtab_users): Ditto.
1499 * symtab.c (decode_line_spec): Ditto.
1500 * cli/cli-cmds.c (list_command): Moved here from source.c.
1501 (ambiguous_line_spec): Moved here from source.c.
1502 (_init_cli_cmds): Add definition for "list" and its alias.
1503 * Makefile.in: Update dependencies.
1504
1505 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
1506
1507 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
1508 with what gcc thinks is correct.
1509
1510 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
1511
1512 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
1513 multiple register push instruction.
1514
1515 2002-09-19 Jim Blandy <jimb@redhat.com>
1516
1517 Add support for distinct host and target character sets.
1518 * charset.c, charset.h: New files.
1519 * c-exp.y: #include "charset.h".
1520 (yylex): Convert character and string literals to the target
1521 character set, before returning them as the semantic value of the
1522 token.
1523 * c-lang.c: #include "charset.h".
1524 (c_emit_char): Use charset-specific methods to recognize
1525 characters with backslash escape forms, to decide which characters
1526 to print literally and which to print using numeric escape
1527 sequences, and to convert target characters to host characters
1528 before printing.
1529 * utils.c: #include "charset.h".
1530 (no_control_char_error): New function.
1531 (parse_escape): Use charset-specific methods to recognize
1532 backslash escapes, parse `control character' notation, and convert
1533 characters from the host character set to the target character set.
1534 * configure.in: Set the default host character set.
1535 Check where to find iconv, and what its argument types might be.
1536 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
1537 * Makefile.in (SFILES): List charset.c.
1538 (COMMON_OBS): List charset.o.
1539 (charset.o): New rule.
1540 (charset_h): New header dependency variable.
1541 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
1542 (LIBICONV): New variable, set by configure.
1543 (CLIBS): Include $(LIBICONV) here.
1544 * aclocal.m4, config.in, configure: Regenerated.
1545
1546 2002-09-19 Joel Brobecker <brobecker@gnat.com>
1547
1548 * ada-exp.y: Add missing semicolons to end rules. Fixes a
1549 bison 1.35 warning.
1550
1551 2002-09-19 Richard Earnshaw <rearnsha@arm.com>
1552
1553 * gdb_mbuild.sh: New file.
1554
1555 2002-09-19 Andrew Cagney <ac131313@redhat.com>
1556
1557 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
1558
1559 2002-09-18 Andrew Cagney <ac131313@redhat.com>
1560
1561 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
1562 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
1563 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
1564 valops.c, value.h: Revert previous change.
1565
1566 2002-09-18 Michael Snyder <msnyder@redhat.com>
1567
1568 Preliminary support for Objective-C:
1569 * defs.h (language_objc): New enum value.
1570 (puts_filtered_tabular): Declaration only, exported from utils.c.
1571 (skip_quoted): Delete, declared in completer.h.
1572 * c-exp.y: Include completer.h.
1573 * p-exp.y: Ditto.
1574 * jv-exp.y: Ditto.
1575 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
1576 New operator enum values.
1577 * language.h (CAST_IS_CONVERSION): Test for language_objc.
1578 * language.c (binop_result_type): Handle language_objc case.
1579 (integral_type, character_type, string_type, boolean_type,
1580 structured_type, binop_type_check): Ditto.
1581 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
1582 (struct objc_specific): Add to general_symbol_info.
1583 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
1584 (SYMBOL_DEMANGLED_NAME): Handle objc case.
1585 * parser-defs.h (struct objc_class_str): New struct type.
1586 (start_msglist, end_msglist, add_msglist): Declaration only,
1587 exported from objc-lang.c.
1588 * value.h (value_of_local, value_nsstring,
1589 call_function_by_hand_expecting_type): Exported from valops.c.
1590 * valops.c (find_function_addr): Export.
1591 (call_function_by_hand_expecting_type): New function.
1592 (value_of_local): New function.
1593 * symfile.c (init_filename_language_table): Add ".m" extension
1594 for Objective-C.
1595 * utils.c (puts_filtered_tabular): New function.
1596 (fprintf_symbol_filtered): Add objc demangling support (disabled).
1597 (set/show demangle): Extend help-string to refer to ObjC.
1598 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
1599 * stabsread.c (symbol_reference_defined): Objective-C symbols
1600 may contain colons: make allowances when scanning stabs strings
1601 for colons.
1602 (objc_find_colon): New function.
1603 * printcmd.c (address_info): If language == objc then print
1604 "self" instead of "this".
1605 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
1606 OP_NSSTRING, and OP_SELF.
1607 (prefixify_subexp): Ditto.
1608 * source.c (print_source_lines): Mention objc in comment.
1609 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
1610 method names.
1611
1612 2002-09-18 Andrew Cagney <ac131313@redhat.com>
1613
1614 * complaints.h: Update copyright.
1615 (struct complaints): Declare.
1616 (struct complaint): Make `message' constant.
1617 (internal_complaint): Declare.
1618 (complaint): Declare.
1619 (complaint_root): Delete declaration.
1620 (symfile_complaints): Delete declaration.
1621 (struct complaints): Add opaque declaration.
1622 (clear_complaints): Add a complaints parameter.
1623 * complaints.c: Update copyright.
1624 (enum complaint_series): Define.
1625 (complaint_root): Delete.
1626 (struct complaints): Define.
1627 (complaint_sentinel, symfile_complaint_book): New variables.
1628 (symfile_explanations, symfile_complaints): New variables.
1629 New variables.
1630 (get_complaints): New function.
1631 (vcomplaint): New function.
1632 (complaint): New function.
1633 (internal_complaint): New function.
1634 (complain): Call vcomplain with symfile_complaint.
1635 (clear_complaints): Rewrite.
1636 (_initialize_complaints): Use add_setshow_command.
1637 * Makefile.in (complaints.o): Update dependencies.
1638 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
1639 to call to clear_complaints.
1640 (new_symfile_objfile, reread_symbols): Ditto.
1641 (oldsyms_complaint): Delete.
1642 (empty_symtab_complaint, unknown_option_complaint): Delete.
1643 (free_named_symtabs): Use complaint instead of complain.
1644
1645 2002-09-18 Michael Snyder <msnyder@redhat.com>
1646
1647 Contributed by Apple Computer, Inc. Merged with current sources
1648 by Adam Fedor <fedor@doc.com> [cagney].
1649
1650 * objc-lang.c: First clean-up round: comments, indentation.
1651 * objc-lang.h: Ditto.
1652 * objc-lang.y: Ditto.
1653
1654 2002-09-18 Andrew Cagney <ac131313@redhat.com>
1655
1656 * maint.c (maintenance_internal_error): Print the parameter as the
1657 error message.
1658 (maintenance_internal_warning): New function.
1659 (_initialize_maint_cmds): Add command `maint internal-warning'.
1660
1661 * defs.h (internal_warning, internal_vwarning): Declare.
1662 * utils.c (struct internal_problem): Define.
1663 (internal_vproblem): New function.
1664 (internal_warning): New function.
1665 (internal_vwarning): New function.
1666 (internal_warning_problem, internal_error_problem): New variables.
1667 (internal_verror): Just call internal_vproblem.
1668
1669 2002-09-18 Michael Snyder <msnyder@redhat.com>
1670
1671 * objc-lang.c: New file, support for Objective-C.
1672 Preliminary check-in, not yet integrated into gdb.
1673 * objc-lang.h: New file.
1674 * objc-exp.y: New file.
1675
1676 2002-09-18 Andrew Cagney <ac131313@redhat.com>
1677
1678 * infrun.c (signal_stop_update): Convert definition to ISO C.
1679 (signal_print_update): Ditto.
1680 (signal_pass_update): Ditto.
1681 * inflow.c (terminal_save_ours): Ditto.
1682
1683 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
1684 comments.
1685
1686 * config/djgpp/fnchange.lst: Handle name clashes between
1687 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
1688 bfd/coff-tic80.c.
1689
1690 * i386-linux-tdep.h: Fix tipo.
1691
1692 2002-09-18 Adam Fedor <fedor@gnu.org>
1693
1694 * MAINTAINERS: Add myself to the Write After Approval list.
1695
1696 2002-09-18 Jim Blandy <jimb@redhat.com>
1697
1698 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
1699 texthigh and textlow to reader-specific structs caused
1700 objfile_relocate to miss them. This is fixable, but the work that
1701 the change was supposed to prepare GDB for never got done anyway.
1702
1703 2002-09-18 David Carlton <carlton@math.stanford.edu>
1704
1705 * MAINTAINERS: Alphabetize Write After Approval list.
1706
1707 2002-09-18 Daniel Jacobowitz <drow@mvista.com>
1708
1709 Fix PR gdb/709
1710 * values.c (value_static_field): Call read_var_value.
1711
1712 2002-09-18 Andrew Cagney <ac131313@redhat.com>
1713
1714 * valops.c (hand_function_call): Align the initial stack pointer
1715 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
1716 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
1717 return value.
1718 * mips-tdep.c (mips_frame_align): New function.
1719 (mips_gdbarch_init): Set frame_align.
1720 * gdbarch.sh (FRAME_ALIGN): New method.
1721 * gdbarch.h, gdbarch.c: Re-generate.
1722
1723 2002-09-18 Michal Ludvig <mludvig@suse.cz>
1724
1725 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
1726 registers.
1727
1728 2002-09-17 Andrew Cagney <ac131313@redhat.com>
1729
1730 * NEWS: Mention that MIPS $fp behavior changed.
1731 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
1732 reference to FP_REGNUM.
1733 (mipsnbsd_cannot_store_register): Ditto.
1734 * mips-linux-nat.c: Update copyright.
1735 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
1736 (mips_linux_cannot_store_register): Ditto.
1737 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
1738 * config/mips/tm-mips.h: Update copyright.
1739 (FP_REGNUM): Delete macro.
1740 (MIPS_REGISTER_NAMES): Replace "fp" with "".
1741 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
1742 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
1743 (mips_r3041_reg_names, mips_r3051_reg_names)
1744 (mips_r3081_reg_names): Replace "fp" with "".
1745 Fix PR gdb/480.
1746
1747 2002-09-17 Theodore A. Roth <troth@verinet.com>
1748
1749 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
1750 generic_read_register_dummy() (PR gdb/703).
1751 (avr_push_return_address): #if 0 out unused vars.
1752 (avr_gdbarch_init): Enable use of avr_push_return_address().
1753
1754 2002-09-17 Michael Snyder <msnyder@redhat.com>
1755
1756 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
1757 RTE will take care of it.
1758
1759 2002-09-17 Andrew Cagney <ac131313@redhat.com>
1760
1761 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
1762 invalid, return SP_REGNUM.
1763
1764 2002-09-17 Michael Snyder <msnyder@redhat.com>
1765
1766 * mips-tdep.c (mips_pop_frame): Read saved values of floating
1767 point registers without sign extension.
1768
1769 2002-09-17 Andrew Cagney <cagney@redhat.com>
1770
1771 * blockframe.c (deprecated_read_register_dummy): Rename
1772 generic_read_register_dummy.
1773 * frame.c (frame_unwind_signed_register): New function.
1774 (frame_unwind_unsigned_register): New function.
1775 * frame.h (frame_unwind_signed_register): Declare.
1776 (frame_unwind_unsigned_register): Declare.
1777 (deprecated_read_register_dummy): Rename
1778 generic_read_register_dummy.
1779
1780 * h8300-tdep.c (h8300_frame_chain): Update.
1781 (h8300_frame_saved_pc): Update.
1782 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
1783 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
1784 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
1785 (s390_frame_chain): Update.
1786 * v850-tdep.c (v850_find_callers_reg): Update.
1787 (v850_frame_saved_pc): Update.
1788 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
1789 (m32r_find_callers_reg): Update.
1790 (m32r_frame_saved_pc): Update.
1791 * sh-tdep.c (sh_find_callers_reg): Update.
1792 (sh64_get_saved_pr): Update.
1793 (sh_init_extra_frame_info): Update.
1794 (sh_init_extra_frame_info): Update.
1795 (sh64_init_extra_frame_info): Update.
1796 (sh64_init_extra_frame_info): Update.
1797 * mcore-tdep.c (mcore_find_callers_reg): Update.
1798 (mcore_frame_saved_pc): Update.
1799 (mcore_init_extra_frame_info): Update.
1800 * i386-tdep.c (i386_frame_saved_pc): Update.
1801 * ia64-tdep.c (ia64_frame_saved_pc): Update.
1802 (ia64_init_extra_frame_info): Update.
1803 (ia64_init_extra_frame_info): Update.
1804 * d10v-tdep.c (d10v_frame_saved_pc): Update.
1805 * cris-tdep.c (cris_init_extra_frame_info): Update.
1806 * avr-tdep.c (avr_frame_chain): Update.
1807 (avr_init_extra_frame_info): Update.
1808 (avr_frame_saved_pc): Update.
1809 * arm-tdep.c (arm_find_callers_reg): Update.
1810 (arm_init_extra_frame_info): Update.
1811 (arm_frame_saved_pc): Update.
1812
1813 2002-09-17 Tom Tromey <tromey@redhat.com>
1814
1815 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
1816 is "'".
1817
1818 2002-09-17 Corinna Vinschen <vinschen@redhat.com>
1819
1820 * MAINTAINERS: Remove "non multi-arched" text from h8300.
1821 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
1822 NEXT_PROLOGUE_INSN.
1823 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
1824 NEXT_PROLOGUE_INSN.
1825
1826 2002-09-16 Joel Brobecker <brobecker@gnat.com>
1827
1828 * osfsolib.c: Remove file, replaced by solib-osf.c.
1829 * Makefile.in: Remove compilation rules for osfsolib.c.
1830
1831 2002-09-16 David Carlton <carlton@math.stanford.edu>
1832
1833 * cp-valprint.c (cp_print_class_method): Correct args to
1834 check_stub_method_group.
1835
1836 2002-09-16 Corinna Vinschen <vinschen@redhat.com>
1837
1838 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
1839 `set architecture'. Unify naming convention of functions.
1840 (h8300_skip_prologue): Improve prologue analysis.
1841 (h8300_push_arguments): Rewritten to more closely match GCC's
1842 bizarre argument-passing behavior, along with the comment describing
1843 said behavior.
1844 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
1845 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
1846 sim, remote-e7000.c, remote-hms.c and remote.c
1847
1848 2002-09-15 Mark Kettenis <kettenis@gnu.org>
1849
1850 * i386-tdep.c (gdb_print_insn_i386): Removed.
1851 (i386_print_insn): New function.
1852 (i386_gdbarch_init): Set print_insn to i386_print_insns.
1853 (_initialize_i386_tdep): Don't initialize tm_print_insn and
1854 tm_print_insn_info.
1855
1856 2002-09-14 Mark Kettenis <kettenis@gnu.org>
1857
1858 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
1859 zero.
1860
1861 2002-09-14 Corinna Vinschen <vinschen@redhat.com>
1862
1863 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
1864 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
1865 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
1866
1867 2002-09-13 Christopher Faylor <cgf@redhat.com>
1868
1869 * win32-nat.c (child_create_inferior): Honor 'tty' command.
1870
1871 2002-09-13 Daniel Jacobowitz <drow@mvista.com>
1872
1873 * gdbtypes.c (check_stub_method): Make static.
1874 (check_stub_method_group): New function.
1875 * gdbtypes.h: Update prototypes.
1876 * cp-support.c: New file.
1877 * cp-support.h: New file.
1878
1879 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
1880 (update_method_name_from_physname): New function.
1881 (read_member_functions): Correct method names for operators
1882 and v3 constructors/destructors. Separate v2 constructors and
1883 destructors.
1884 * Makefile.in (stabsread.o): Update dependencies.
1885 (SFILES): Add cp-support.c.
1886 (COMMON_OBS): Add cp-support.o.
1887 (cp_support_h, cp-support.o): Add.
1888
1889 * cp-valprint.c (cp_print_class_method): Call
1890 check_stub_method_group instead of check_stub_method. Remove
1891 extraneous QUITs.
1892 * p-valprint.c (pascal_object_print_class_method): Likewise.
1893 * valops.c (search_struct_method): Likewise.
1894 (find_method_list, value_struct_elt_for_reference): Likewise.
1895
1896 2002-09-13 Andrew Cagney <cagney@redhat.com>
1897
1898 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
1899 * gdbarch.h, gdbarch.c: Regenerate.
1900
1901 2002-09-13 Andrew Cagney <ac131313@redhat.com>
1902
1903 * frame.c (find_saved_register): Delete function.
1904 * frame.h (find_saved_register): Delete declaration.
1905 Fix PR gdb/631.
1906
1907 Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
1908
1909 * mips-tdep.c (read_next_frame_reg): Re-hack using
1910 frame_register_unwind.
1911
1912 Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
1913
1914 * mips-tdep.c (mips_get_saved_register): Re-hack using
1915 frame_register_unwind.
1916
1917 2002-09-12 Joel Brobecker <brobecker@gnat.com>
1918
1919 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
1920 vector. Will be useful for Interix.
1921 * gdbarch.h, gdbarch.c: Regenerate.
1922
1923 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
1924 name of the malloc function by NAME_OF_MALLOC.
1925
1926 2002-09-12 Joel Brobecker <brobecker@gnat.com>
1927
1928 * value.h (find_function_in_inferior): Add const keyword to
1929 one of the parameters. Allows us to invoke this function with
1930 a const char *.
1931 * valops.c (find_function_in_inferior): Likewise.
1932
1933 2002-09-12 Joel Brobecker <brobecker@gnat.com>
1934
1935 * exec.c (xfer_memory): Fix compilation warning with old versions
1936 of GCC.
1937 * tracepoint.c (trace_find_tracepoint_command): Likewise.
1938
1939 2002-09-12 David Carlton <carlton@math.stanford.edu>
1940
1941 * symtab.h: Run through gdb_indent.h.
1942 Add 2002 to Copyright year list.
1943
1944 2002-09-12 Alan Modra <amodra@bigpond.net.au>
1945
1946 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
1947 mach constants.
1948 * MAINTAINERS: Add myself to write after approval list.
1949
1950 2002-09-11 J. Brobecker <brobecker@gnat.com>
1951
1952 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
1953
1954 2002-09-11 J. Brobecker <brobecker@gnat.com>
1955
1956 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
1957 Interix.
1958
1959 2002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
1960
1961 * procfs.c (do_detach): Clear current signal, not just fault.
1962 Corrects problem with breakpoint trap signal leaking to detached
1963 process on Tru64.
1964
1965 2002-09-10 Michael Snyder <msnyder@redhat.com>
1966
1967 * buildsym.c (finish_block): Protect against null pointer.
1968
1969 2002-09-10 Andrew Cagney <cagney@redhat.com>
1970
1971 * infcmd.c (default_print_registers_info): Send all output to
1972 ``file'' instead of ``gdb_stdout''.
1973
1974 2002-09-10 Michael Snyder <msnyder@redhat.com>
1975
1976 * mips-tdep.c (mips_extract_struct_value_address): Make val a
1977 LONGEST, and use signed register read (addresses are sign-
1978 extended for mips).
1979
1980 2002-09-10 Stephane Carrez <stcarrez@nerim.fr>
1981
1982 * event-loop.c (gdb_do_one_event): Make public.
1983 * event-loop.h (gdb_do_one_event): Declare.
1984
1985 2002-09-10 Jeff Law <law@redhat.com>
1986
1987 * infttrace.c (child_resume): Simplify and rework to avoid
1988 TT_PROC_CONTINUE.
1989
1990 2002-09-09 Fred Fish <fnf@intrinsity.com>
1991
1992 * printcmd.c (print_scalar_formatted): "len" is the number of
1993 target bytes, NOT the number of target bits.
1994
1995 2002-09-09 Elena Zannoni <ezannoni@redhat.com>
1996
1997 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
1998 * top.c (init_main): Set rl_terminal_name.
1999
2000 2002-09-08 Aidan Skinner <aidan@velvet.net>
2001
2002 * ada-lang.c (ada_array_bound, ada_type_match,
2003 _initialize_ada_language): Fix K&R definitions.
2004 * ada-tasks.c (get_current_task): Fix K&R definitions.
2005 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
2006
2007 2002-09-07 Christopher Faylor <cgf@redhat.com>
2008
2009 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
2010 Add XP.
2011
2012 2002-09-06 Mark Kettenis <kettenis@gnu.org>
2013
2014 * i386-tdep.c (i386_register_virtual_type,
2015 i386_register_convertible, i386_register_convert_to_virtual,
2016 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
2017 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
2018 (i386_gdbarch_init): Fix comment. Add comments on calls that set
2019 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
2020 Don't set push_arguments twice.
2021
2022 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
2023 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
2024 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
2025 sigtramp_end to NULL.
2026 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
2027 defines.
2028 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
2029
2030 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
2031 whitespace.
2032
2033 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
2034 * gdbarch.h, gdbarch.c: Re-generate.
2035 * blockframe.c (find_pc_sect_partial_function): Convert to use
2036 SIGTRAMP_START_P predicate.
2037
2038 2002-09-05 Michael Snyder <msnyder@redhat.com>
2039
2040 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
2041 generic_dummy_frame method and old method. Also distinguish
2042 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
2043 (arm_extract_return_value): Use new regcache method.
2044
2045 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
2046 adjustment that doesn't conform to the ABI.
2047 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
2048 saved regcache, not from current regcache.
2049
2050 2002-09-05 Andrew Cagney <ac131313@redhat.com>
2051
2052 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
2053 * README: Update.
2054
2055 2002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
2056
2057 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
2058 if arm_apcs_32 is false.
2059
2060 2002-09-04 Andrew Cagney <ac131313@redhat.com>
2061
2062 GDB 5.3 branch created.
2063
2064 2002-09-03 Theodore A. Roth <troth@verinet.com>
2065
2066 * gdb/avr-tdep.c (avr_gdbarch_init): Use
2067 generic_unwind_get_saved_register.
2068
2069 2002-09-03 David Carlton <carlton@math.stanford.edu>
2070
2071 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
2072 argument (PR gdb/653). Update call to smash_to_method_type.
2073 (read_structure_scope): Update call to dwarf2_add_member_fn.
2074
2075 2002-09-03 Michal Ludvig <mludvig@suse.cz>
2076
2077 * x86-64-linux-tdep.c: Include gdb_string.h
2078 * x86-64-linux-nat.c: Ditto.
2079
2080 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
2081
2082 * ada-exp.y (yyname, yyrule): Remap global variables that appear
2083 when YYDEBUG is set to 1.
2084 * c-exp.y: Likewise.
2085 * f-exp.y: Likewise.
2086 * jv-exp.y: Likewise.
2087 * m2-exp.y: Likewise.
2088 * p-exp.y: Likewise.
2089
2090 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
2091
2092 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
2093 dependency list.
2094 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
2095 solib_svr4_fetch_link_map_offsets to
2096 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
2097 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
2098 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
2099 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
2100 solib-svr4.o, and solib-legacy.o.
2101 * config/i386/tm-nbsd.h: Include solib.h.
2102
2103 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
2104
2105 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
2106 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
2107 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
2108 comment noting that this needs its own target configuration.
2109 * config/i386/nbsd.mt: New file.
2110 * config/i386/nbsdaout.mt: Remove.
2111 * config/i386/nbsdelf.mt: Ditto.
2112 * config/i386/tm-nbsdaout.h: Ditto.
2113
2114 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
2115
2116 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
2117 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
2118 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
2119 tdep->sigtramp_end.
2120 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
2121 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
2122 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
2123
2124 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
2125
2126 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
2127 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
2128 * i386-tdep.h (i386bsd_init_abi): New prototype.
2129 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
2130 function declaration.
2131 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
2132 for NetBSD-a.out or NetBSD-ELF.
2133 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
2134 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
2135 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
2136 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
2137 and nbsd-tdep.h.
2138 (i386nbsd_pc_in_sigtramp): New function.
2139 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
2140 i386nbsd_pc_in_sigtramp.
2141 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
2142 and i386nbsdelf_init_abi OS ABI handlers.
2143 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
2144 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
2145
2146 2002-09-02 Mark Kettenis <kettenis@gnu.org>
2147
2148 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
2149 registers if the target really has them.
2150
2151 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
2152
2153 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
2154 than nbsd-tdep.h.
2155
2156 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
2157
2158 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
2159 list.
2160 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
2161 (alphanbsd_skip_sigtramp_frame): New functions.
2162 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
2163 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
2164 to alphanbsd_sigcontext_addr.
2165
2166 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
2167
2168 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
2169 list.
2170 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
2171 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
2172 nbsd_pc_in_sigtramp.
2173 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
2174 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
2175 * nbsd-tdep.c: Include gdb_string.h.
2176 (nbsd_pc_in_sigtramp): New function.
2177 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
2178 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
2179 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
2180 ppcnbsd_pc_in_sigtramp.
2181 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
2182 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
2183 shnbsd_pc_in_sigtramp.
2184 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
2185 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
2186 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
2187
2188 2002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
2189
2190 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
2191 watchpoints to NULL.
2192 (insert_breakpoints): set val field of watchpoints if NULL.
2193
2194
2195 2002-08-29 Jim Blandy <jimb@redhat.com>
2196
2197 * symtab.c (lookup_symbol_aux): In the cases where we find a
2198 minimal symbol of an appropriate name and use its address to
2199 select a symtab to read and search, use `name' (as passed to us)
2200 as the demangled name when searching the symtab's global and
2201 static blocks, not the minsym's name.
2202
2203 2002-08-29 Keith Seitz <keiths@redhat.com>
2204
2205 * stack.c (print_frame_info_base): Always set current_source_symtab
2206 and current_source_line.
2207
2208 2002-08-29 Donn Terry <donnte@microsoft.com>
2209
2210 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
2211
2212 2002-08-28 Keith Seitz <keiths@redhat.com>
2213
2214 * stack.c (select_frame): Add FIXME concerning selected-frame
2215 events.
2216 (select_frame_command): Send selected-frame-level-changed
2217 event notification, but only if the level actually changed.
2218 (up_silently_base): Add selected-frame-level-changed event
2219 notification.
2220 (down_silently_base): Likewise.
2221
2222 2002-08-28 Andrew Cagney <ac131313@redhat.com>
2223
2224 * Makefile.in: Update dependencies for all gdb/*.c files.
2225
2226 2002-08-27 Tom Tromey <tromey@redhat.com>
2227
2228 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
2229 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
2230 Update dependencies.
2231 * i387-tdep.c: Include gdb_string.h.
2232 * osabi.c: Likewise.
2233 * i386-linux-nat.c: Likewise.
2234 * lin-lwp.c: Likewise.
2235 * ax-gdb.c: Likewise.
2236 * signals/signals.c: Likewise.
2237 * jv-valprint.c: Likewise.
2238 * p-lang.c: Likewise.
2239 * c-valprint.c: Likewise.
2240 * cp-abi.c: Likewise.
2241
2242 2002-08-27 Elena Zannoni <ezannoni@redhat.com>
2243
2244 * cli/cli-script.h (copy_command_lines): Export.
2245 * breakpoint.c: Include cli/cli-script.h.
2246 * Makefile.in (breakpoint.o): Update dependencies.
2247
2248 2002-08-26 Michael Snyder <msnyder@redhat.com>
2249
2250 * breakpoint.c (insert_breakpoints): Protect all references
2251 to 'process_warning'. Shorten long lines.
2252
2253 2002-08-26 Joel Brobecker <brobecker@gnat.com>
2254
2255 * cli/cli-script.c (copy_command_lines): New function.
2256 * defs.h (copy_command_lines): Export.
2257 * testsuite/gdb.base/commands.exp: New tests for commands
2258 attached to a temporary breakpoint, and for commands that
2259 delete the breakpoint they are attached to.
2260
2261 2002-08-26 Michael Snyder <msnyder@redhat.com>
2262
2263 * breakpoint.c (bpstat_stop_status): Instead of copying the
2264 pointer to the breakpoint commands struct, make a new copy
2265 of the struct and point to that.
2266 (bpstat_clear): Free the commands struct.
2267 (bpstat_clear_actions): Free the commands struct.
2268 (bpstat_do_actions): Free the command actions. Also execute
2269 the local cleanups, instead of deleting them.
2270 (delete_breakpoint): Leave the commands field of the bpstat
2271 chain alone -- it will be freed later.
2272
2273 2002-08-26 Kevin Buettner <kevinb@redhat.com>
2274
2275 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
2276 deleted in 2002-08-20 commit. This function is still used by
2277 ppc-linux-nat.c.
2278
2279 2002-08-26 Keith Seitz <keiths@redhat.com>
2280
2281 * gdb-events.sh: Add selected-frame-level-changed event.
2282 * gdb-events.c: Regenerated.
2283 * gdb-events.h: Regenerated.
2284
2285 2002-08-26 Stephane Carrez <stcarrez@nerim.fr>
2286
2287 Fix PR gdb/393:
2288 * inflow.c (terminal_save_ours): New function to save terminal
2289 settings.
2290 * inferior.h (terminal_save_ours): Declare.
2291 * target.c (debug_to_terminal_save_ours): New function.
2292 (cleanup_target): Defaults to_terminal_save_ours.
2293 (update_current_target): Inherit to_terminal_save_ours.
2294 (setup_target_debug): Set to_terminal_save_ours.
2295 * target.h (target_terminal_save_ours): New to save terminal settings.
2296 (target_ops): New member to_terminal_save_ours.
2297 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
2298 * hpux-thread.c (init_hpux_thread_ops): Likewise.
2299 * inftarg.c (init_child_ops): Likewise.
2300 * m3-nat.c (init_m3_ops): Likewise.
2301 * procfs.c (init_procfs_ops): Likewise.
2302 * wince.c (init_child_ops): Likewise.
2303 * win32-nat.c (init_child_ops): Likewise.
2304 * sol-thread.c (init_sol_thread_ops): Likewise.
2305
2306 2002-08-26 Mark Kettenis <kettenis@gnu.org>
2307
2308 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
2309 use regcache_* functions.
2310 (i386_gdbarch_init): Set store_return_value instead of
2311 deprecated_store_return_value.
2312
2313 * regcache.c (regcache_raw_write_signed,
2314 regcache_raw_write_unsigned): New functions.
2315 * regcache.h (regcache_raw_write_signed,
2316 regcache_raw_write_unsigned): New prototypes.
2317
2318 2002-08-25 Andrew Cagney <ac131313@redhat.com>
2319
2320 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
2321 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
2322 source file dependencies. Cleanup corresponding generator rules.
2323
2324 2002-08-25 Andrew Cagney <ac131313@redhat.com>
2325
2326 * regcache.h (register_offset_hack): Declare.
2327 (regcache_cooked_read_using_offset_hack): Declare.
2328 (regcache_cooked_write_using_offset_hack): Declare.
2329
2330 * regcache.c (register_offset_hack): New function.
2331 (regcache_cooked_read_using_offset_hack): New function.
2332 (regcache_cooked_write_using_offset_hack): New function.
2333 (regcache_dump): Check that the registers, according to their
2334 offset, are packed hard against each other.
2335 (cooked_xfer_using_offset_hack): New function.
2336
2337 2002-08-25 Andrew Cagney <ac131313@redhat.com>
2338
2339 * regcache.c (struct regcache_descr): Add field register_type.
2340 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
2341 in as a parameter
2342 (init_regcache_descr): Initialize register_type. Pass the descr
2343 to init_legacy_regcache_descr. Use register_type instead of
2344 REGISTER_VIRTUAL_TYPE.
2345 (register_type): New function.
2346 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
2347 * regcache.h (register_type): Declare.
2348
2349 2002-08-25 Andrew Cagney <ac131313@redhat.com>
2350
2351 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
2352 instead of deprecated_store_return_value. Fix fallout from
2353 2002-08-23 Andrew Cagney <cagney@redhat.com>.
2354
2355 2002-08-25 Andrew Cagney <ac131313@redhat.com>
2356
2357 * regcache.c (max_register_size): New function.
2358 (init_legacy_regcache_descr): Ensure that max_register_size is
2359 large enough for REGISTER_VIRTUAL_SIZE.
2360 * regcache.h (max_register_size): Declare.
2361
2362 2002-08-24 Andrew Cagney <ac131313@redhat.com>
2363
2364 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
2365 store_return_value.
2366 (e500_extract_return_value): Change type of valbuf pointer to
2367 void.
2368
2369 2002-08-24 Mark Kettenis <kettenis@gnu.org>
2370
2371 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
2372 workaround.
2373
2374 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
2375 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
2376 long long) to prevent compiler warning on 64-bit systems.
2377
2378 2002-08-23 Andrew Cagney <cagney@redhat.com>
2379
2380 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
2381 (DEPRECATED_STORE_RETURN_VALUE): New method.
2382 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
2383 * gdbarch.h, gdbarch.c: Re-generate.
2384
2385 * values.c (set_return_value): Pass current_regcache to
2386 STORE_RETURN_VALUE.
2387 * arch-utils.h (legacy_store_return_value): Declare.
2388 * arch-utils.c (legacy_store_return_value): New function.
2389 (legacy_extract_return_value): Update parameters.
2390
2391 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
2392 STORE_RETURN_VALUE.
2393 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2394 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2395 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2396 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2397 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2398 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2399 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2400 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2401 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2402 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2403
2404 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2405 * i386-tdep.c (i386_extract_return_value): Update.
2406 * arch-utils.c (legacy_extract_return_value): Update.
2407 * frv-tdep.c (frv_gdbarch_init): Update.
2408 * cris-tdep.c (cris_gdbarch_init): Update.
2409 * d10v-tdep.c (d10v_gdbarch_init): Update.
2410 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2411 * m68k-tdep.c (m68k_gdbarch_init): Update.
2412 * mcore-tdep.c (mcore_gdbarch_init): Update.
2413 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2414 * s390-tdep.c (s390_gdbarch_init): Update.
2415 * sparc-tdep.c (sparc_gdbarch_init): Update.
2416 * sh-tdep.c (sh_gdbarch_init): Update.
2417 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
2418 * v850-tdep.c (v850_gdbarch_init): Update.
2419 * avr-tdep.c (avr_gdbarch_init): Update.
2420 * ia64-tdep.c (ia64_gdbarch_init): Update.
2421 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2422 * vax-tdep.c (vax_gdbarch_init): Update.
2423 * alpha-tdep.c (alpha_gdbarch_init): Update.
2424 * arm-tdep.c (arm_gdbarch_init): Update.
2425 * mips-tdep.c (mips_gdbarch_init): Update.
2426 * i386-tdep.c (i386_gdbarch_init): Update.
2427
2428 2002-08-23 Andrew Cagney <ac131313@redhat.com>
2429
2430 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
2431 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
2432
2433 2002-08-24 Mark Kettenis <kettenis@gnu.org>
2434
2435 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
2436 problems.
2437
2438 2002-08-23 Joel Brobecker <brobecker@gnat.com>
2439
2440 * infrun.c (handle_inferior_event): Move a comment outside of a
2441 function call, in order to avoid indent reformatting this part
2442 of the code in an unreadable way.
2443
2444 2002-08-23 Grace Sainsbury <graces@redhat.com>
2445
2446 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
2447 when breakpoints fail. Move general breakpoint error messages to
2448 insert_breakpoints.
2449 * breakpoint.c (insert_breakpoints): Change warnings when
2450 breakpoints are nto inserted to specify the type. Remove call to
2451 memory_error when hardware breakpoints can't be inserted. Remove
2452 multiple calls to warning so all messages are sent to the user at
2453 once.
2454 (delete_breakpoints): Make insert error messsages more explicit.
2455
2456 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
2457
2458 * ChangeLog: Move gdbserver entries after GDB 5.2 to
2459 gdbserver/ChangeLog.
2460
2461 2002-08-23 Mark Kettenis <kettenis@gnu.org>
2462
2463 * i386-tdep.c: Include "objfiles.h".
2464 (i386_svr4_init_abi): Set in_solib_call_trampoline and
2465 skip_trampoline_code.
2466 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
2467 (CPLUS_MARKER): Define to '.'.
2468
2469 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
2470 member.
2471 (linux_corefile_thread_callback): Increase args->num_notes.
2472 (linux_make_note_section): Initialize thread_args.num_notes, and
2473 use it to determine whether notes for any threads were created.
2474
2475 2002-08-23 Donn Terry <donnte@microsoft.com>
2476
2477 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
2478 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
2479 and PCUNKILL.
2480 (write_with_trace): Conditionalize out the switch branch handling
2481 PCSHOLD if the corresponding macro is not defined. Likewise for
2482 PRSABORT and PRSTOP.
2483 This change will be needed by the Interix port.
2484
2485 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
2486
2487 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
2488 write_register wherever possible instead of manipulating the
2489 register bytes directly.
2490 Assign VALUE_CONTENTS to a variable and use that.
2491 The GPR numbers are now dependent on the architecture.
2492
2493 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
2494
2495 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
2496 ev_offset fields.
2497 (skip_prologue): Add support for BookE/e500 instructions.
2498 (e500_extract_return_value): New function.
2499 (frame_get_saved_regs): Add support for saving ev registers and
2500 pseudo gpr's.
2501 (e500_store_return_value): New function.
2502 (rs6000_gdbarch_init): Move up default intializations of
2503 deprecated_extract_return_value and store_return_value. Overwrite
2504 init of store_return_value with e500 specific version.
2505 Set extract_return_value for e500.
2506
2507 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
2508
2509 * blockframe.c (generic_call_dummy_register_unwind): Use
2510 regcache_cooked_read to catch cases in which the variable is
2511 stored in a pseudo register.
2512
2513 2002-08-22 Andrew Cagney <cagney@redhat.com>
2514
2515 * NEWS: Mention that the i960 has been made obsolete.
2516 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
2517 i960-tdep.c
2518 (remote-nrom.o): Obsolete target.
2519 (remote-nindy.o, i960-tdep.o): Ditto.
2520 * remote-nrom.c: Make file obsolete.
2521 * remote-nindy.c, remote-vx960.c: Ditto.
2522 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
2523 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
2524 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
2525 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
2526 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
2527 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
2528 i960-*-vxworks* obsolete.
2529 * MAINTAINERS: Note that the i960 is obsolete.
2530
2531 2002-08-21 Corinna Vinschen <vinschen@redhat.com
2532
2533 * aix-thread.c (aix_thread_detach): Disable thread debugging on
2534 detach to allow reinitialization.
2535
2536 2002-08-22 Andrew Cagney <ac131313@redhat.com>
2537
2538 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
2539 attempt).
2540
2541 2002-08-22 Jim Blandy <jimb@redhat.com>
2542
2543 * coffread.c (coff_symfile_read): Don't try to read the line
2544 number table from disk if the image file doesn't have a symbol
2545 table; we'll never actually look at the info anyway, and Windows
2546 ships DLL's with bogus file offsets for the line number data.
2547
2548 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
2549
2550 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
2551 an e500 executable.
2552
2553 2002-08-21 Michael Snyder <msnyder@redhat.com>
2554
2555 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
2556 (MSYMBOL_SIZE): Replace macro with function.
2557 (DEFAULT_MIPS_TYPE): Delete unused macro.
2558 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
2559 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
2560
2561 2002-08-21 Jim Blandy <jimb@redhat.com>
2562
2563 * valops.c (value_cast): Simplify and correct logic for doing a
2564 static cast from a pointer to a base class to a pointer to a
2565 derived class.
2566
2567 2002-08-21 Andrew Cagney <ac131313@redhat.com>
2568
2569 * infcmd.c (default_print_registers_info): Replace
2570 do_registers_info.
2571 (registers_info): Use gdbarch_print_registers_info instead of
2572 DO_REGISTERS_INFO.
2573 * inferior.h (default_print_registers_info): Replace
2574 do_registers_info.
2575 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
2576 (DO_REGISTERS_INFO): Change to a predicate function.
2577 * gdbarch.h, gdbarch.c: Regenerate.
2578
2579 2002-08-21 Keith Seitz <keiths@redhat.com>
2580
2581 * gdb-events.sh: Add target-changed event.
2582 * gdb-events.c: Regenerated.
2583 * gdb-events.c: Regenerated.
2584 * valops.c (value_assign): Add target-changed event notification
2585 to inlval_register, lval_memory, and lval_reg_frame_relative.
2586
2587 2002-08-21 Joel Brobecker <brobecker@gnat.com>
2588
2589 * NEWS: Add an entry regarding the improvement of the next/step
2590 operation on Alpha Tru64 multi-processor machines.
2591
2592 2002-08-21 Andrew Cagney <ac131313@redhat.com>
2593
2594 * Makefile.in: Update dependencies for mi/ cli/ and tui/
2595 directores.
2596 * Makefile.in: Update all _h macro definitions.
2597 * Makefile.in (install-gdbtk): Move to install section.
2598 (rdi-share/libangsd.a): Move to end of file.
2599
2600 2002-08-19 Andrew Cagney <ac131313@redhat.com>
2601
2602 * frame.c (frame_register_unwind): When a register, set addrp to
2603 the register's byte.
2604
2605 2002-08-20 Michael Snyder <msnyder@redhat.com>
2606
2607 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
2608 used locally, so move them from the target machine header to here.
2609 (mips_set_processor_type, mips_register_name, mips32_next_pc,
2610 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
2611 Make static.
2612 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
2613
2614 2002-08-20 Andrew Cagney <cagney@redhat.com>
2615
2616 * NEWS: Mention that the Apollo line was made obsolete.
2617 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
2618 m68*-hp-hpux* obsolete.
2619 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
2620 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
2621 * buildsym.c (make_blockvector): Make static.
2622 * buildsym.h (make_blockvector): Make extern declaration obsolete.
2623 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
2624 (ALLDEPFILES): Remove dstread.c.
2625 (dstread.o): Obsolete make rule.
2626 * dstread.c: Makefile obsolete.
2627 * dst.h: Ditto.
2628 * config/m68k/hp300hpux.mt: Ditto.
2629 * config/m68k/hp300hpux.mh: Ditto.
2630 * config/m68k/hp300bsd.mt: Ditto.
2631 * config/m68k/hp300bsd.mh: Ditto.
2632 * config/m68k/apollo68b.mt: Ditto.
2633 * config/m68k/apollo68v.mh: Ditto.
2634 * config/m68k/apollo68b.mh: Ditto.
2635
2636 2002-08-20 Michael Snyder <msnyder@redhat.com>
2637
2638 * mips-tdep.c (mips_in_return_stub): Make static.
2639 (mips_gdbarch_init): Set in_solib_return_trampoline.
2640 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
2641
2642 2002-08-20 Michael Snyder <msnyder@redhat.com>
2643
2644 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
2645 * gdbarch.c, gdbarch.h: Regenerate.
2646 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
2647 Add.
2648 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
2649
2650 2002-08-20 Michael Snyder <msnyder@redhat.com>
2651
2652 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
2653 (mips_gdbarch_init): Set skip_trampoline_code,
2654 in_solib_call_trampoline.
2655 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
2656 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
2657
2658 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
2659
2660 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
2661
2662 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
2663 vector type for ev registers.
2664 (e500_pseudo_register_read): New function.
2665 (e500_pseudo_register_write): New function.
2666 (e500_dwarf2_reg_to_regnum): New function.
2667 (PPC_UISA_NOFP_SPRS): New macro.
2668 (PPC_EV_REGS): New macro.
2669 (PPC_GPRS_PSEUDO_REGS): New macro.
2670 (registers_e500): New register set for e500.
2671 (variants): Add e500 variant.
2672 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
2673 before setting architectural dependent variations. Initialize ev
2674 registers numbers. Add case for e500 architecture. Set the
2675 number of pseudo registers.
2676
2677 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
2678
2679 * rs6000-tdep.c: Clean up comments.
2680
2681 2002-08-20 Andrew Cagney <cagney@redhat.com>
2682
2683 * h8300-tdep.c: Re-indent file.
2684
2685 2002-08-20 Jim Blandy <jimb@redhat.com>
2686
2687 * Makefile.in (LDFLAGS): Allow the configure script to establish a
2688 default for this.
2689
2690 2002-08-20 Keith Seitz <keiths@redhat.com>
2691
2692 * breakpoints.c (watch_command_1): Use internal breakpoint
2693 when setting a watchpoint_scope breakpoint.
2694
2695 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
2696
2697 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
2698 (build_builtin_type_vec64i): Ditto.
2699 (build_builtin_type_vec128): Ditto.
2700 (build_builtin_type_vec128i): Ditto.
2701
2702 2002-08-19 Michael Snyder <msnyder@redhat.com>
2703
2704 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
2705 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
2706 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
2707 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
2708 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
2709 CALL_DUMMY_ADDRESS): Delete.
2710 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
2711 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
2712 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
2713 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
2714 push_return_address.
2715 (mips_register_raw_size, mips_eabi_use_struct_convention,
2716 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
2717 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
2718 mips_init_extra_frame_info, mips_eabi_push_arguments,
2719 mips_n32n64_push_arguments, mips_push_return_address,
2720 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
2721 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
2722
2723 2002-08-19 Michael Snyder <msnyder@redhat.com>
2724
2725 * mips-tdep.c (mips_frame_num_args): New function.
2726 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
2727 frame_saved_pc, frame_args_address, frame_locals_address,
2728 frame_num_args, and frame_args_skip.
2729 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
2730 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
2731 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
2732 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
2733
2734 2002-08-20 Michael Snyder <msnyder@redhat.com>
2735
2736 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
2737 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
2738 * mips-tdep.c (mips_store_struct_return): New function.
2739 (mips_extract_struct_value_address): New function.
2740 (mips_gdbarch_init): Set store_struct_return and
2741 extract_struct_value_address.
2742
2743 2002-08-20 David Carlton <carlton@math.stanford.edu>
2744
2745 * dwarf2read.c (dwarf2_build_psymtabs): Check that
2746 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
2747 (read_file_scope): Check that line_header is nonzero before
2748 decoding macro information.
2749
2750 2002-08-20 Mark Kettenis <kettenis@gnu.org>
2751
2752 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
2753 flag the general-purpose registers as floating-point on targets
2754 that don't support the floating-point registers.
2755
2756 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
2757
2758 * rs6000-tdep.c (altivec_register_p): Delete.
2759 (rs6000_do_altivec_registers): Delete.
2760 (rs6000_altivec_registers_info): Delete.
2761 (rs6000_do_registers_info): Delete.
2762 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
2763 (rs6000_gdbarch_init): Remove setting of do_registers_info.
2764
2765 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
2766
2767 * infcmd.c (do_registers_info): Print vector registers in hex
2768 format only.
2769 (print_vector_info): Check that printing registers
2770 makes sense.
2771 (print_float_info): Ditto.
2772
2773 2002-08-20 Andrew Cagney <ac131313@redhat.com>
2774
2775 * mips-tdep.c (mips_gdbarch_init): Update.
2776 (mips_o32_extract_return_value): Rewrite.
2777 (mips_o32_store_return_value): Rewrite.
2778 (mips_o32_xfer_return_value): New function.
2779 (mips_xfer_register): Tweak debug print message. Allow for
2780 buf_offset when dumping the value transfered.
2781
2782 2002-08-20 Andrew Cagney <ac131313@redhat.com>
2783
2784 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
2785 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
2786 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
2787 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
2788 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
2789
2790 2002-08-14 Michael Snyder <msnyder@redhat.com>
2791
2792 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
2793
2794 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
2795
2796 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
2797 register.
2798 (P): New macro to define a register as a pseudo register.
2799 (R, R4, R8, R16, FR32, R64, R0): Updated.
2800 (struct variant): Add new fields for number of pseudo registers
2801 and number of total registers.
2802 (tot_num_registers): New macro replacing....
2803 (num_registers): ...deleted macro.
2804 (num_registers): New function.
2805 (num_pseudo_registers): New function.
2806 (variants): Update all variants to intialize new fields correctly.
2807 Postpone initialization of number of pseudo regs and real regs.
2808 (init_variants): New function.
2809 (rs6000_gdbarch_init): Initialize variants. Update calculation of
2810 registers offsets.
2811
2812 2002-08-19 David Carlton <carlton@math.stanford.edu>
2813
2814 * valops.c (search_struct_field): Change error message to treat
2815 return value of 0 from value_static_field as meaning that field is
2816 optimized out.
2817 (value_struct_elt_for_reference): Ditto.
2818 * values.c (value_static_field): Treat an unresolved location the
2819 same as a nonexistent symbol. Fix PR gdb/635.
2820 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
2821 enclosed. Fix PR gdb/574.
2822 * MAINTAINERS: Add self to Write After Approval list.
2823
2824 2002-08-19 Andrew Cagney <ac131313@redhat.com>
2825
2826 * mips-tdep.c (mips_xfer_register): New function.
2827 (mips_n32n64_extract_return_value): Rewrite.
2828 (mips_gdbarch_init): For N32 and N64, set extract_return_value
2829 instead of deprecated_extract_return_value.
2830
2831 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
2832
2833 * rs6000-tdep.c (TDEP): Delete macro.
2834 (branch_dest): Replace use of TDEP macro with its body.
2835 (rs6000_pop_frame): Ditto.
2836 (rs6000_push_arguments): Ditto.
2837 (rs6000_skip_trampoline_code): Ditto.
2838 (rs6000_frame_saved_pc): Ditto.
2839 (rs6000_frame_chain): Ditto.
2840 (rs6000_register_name): Ditto.
2841 (rs6000_register_byte): Ditto.
2842 (rs6000_register_raw_size): Ditto.
2843 (rs6000_register_virtual_type): Ditto.
2844 (rs6000_register_convertible): Ditto.
2845 (rs6000_convert_from_func_ptr_addr): Ditto.
2846
2847 2002-08-19 Daniel Jacobowitz <drow@mvista.com>
2848
2849 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
2850 conditionally.
2851 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
2852 MIPS_LINUX_JB_ELEMENT_SIZE.
2853 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
2854 for MAX_REGISTER_RAW_SIZE arrays.
2855 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
2856 MIPS_LINUX_JB_ELEMENT_SIZE.
2857
2858 2002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
2859
2860 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
2861
2862 2002-08-19 Aidan Skinner <aidan@velvet.net>
2863
2864 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
2865 ada-valprint.c ada-tasks.c.
2866 (YYFILES): Add ada-exp.y.
2867 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
2868 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
2869 (ada-exp.tab.o): New target.
2870
2871 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2872
2873 * regcache.c (regcache_xfer_part): New function.
2874 (regcache_raw_read_part): New function.
2875 (regcache_raw_write_part): New function.
2876 (regcache_cooked_read_part): New function.
2877 (regcache_cooked_write_part): New function.
2878 * regcache.h (regcache_raw_read_part): Declare.
2879 (regcache_raw_write_part): Declare.
2880 (regcache_cooked_read_part): Declare.
2881 (regcache_cooked_write_part): Declare.
2882
2883 2002-08-18 Daniel Jacobowitz <drow@mvista.com>
2884
2885 * remote.c (remote_open_1): Add async_p.
2886 (remote_async_open_1): Delete.
2887 (open_remote_target): Delete.
2888 (remote_open, extended_remote_open): Update calls to remote_open_1.
2889 (remote_async_open, extended_remote_async_open): Call
2890 remote_open_1 instead of remote_async_open_1.
2891
2892 2002-08-19 Mark Kettenis <kettenis@gnu.org>
2893
2894 * blockframe.c: Fix a few coding standard violations.
2895
2896 2002-08-19 Mark Kettenis <kettenis@gnu.org>
2897
2898 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
2899 here from ...
2900 * config/i386/tm-i386sco5.h: ... here. File removed.
2901 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
2902
2903 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
2904 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
2905 (TM_FILE): Set to tm-i386.h.
2906 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
2907 * config/i386/tm-i386v.h: Remove file.
2908 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
2909 instead of "i386/tm-i386v.h".
2910 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
2911 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
2912 "i386/tm-i386v.h".
2913 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
2914 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
2915 "i386/tm-i386.h".
2916
2917 2002-08-18 Mark Kettenis <kettenis@gnu.org>
2918
2919 * config/i386/nm-i386v.h: Add protection against
2920 multiple-inclusion.
2921 (i386_register_u_addr): Remove prototype.
2922 (register_u_addr): New prototype.
2923 (REGISTER_U_ADDR): Redefine accordingly.
2924 * i386v-nat.c: Improve several comments.
2925 (i386_register_u_addr): Change signature and rename to
2926 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
2927 ubase variable.
2928
2929 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2930
2931 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
2932 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
2933 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
2934 deprecated_extract_return_value.
2935 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
2936 rename mips_o32o64_push_arguments.
2937 (mips_gdbarch_init): Update.
2938 (mips_extract_return_value): Delete.
2939 (mips_o32_extract_return_value): Clone mips_extract_return_value.
2940 (mips_o64_extract_return_value): Clone mips_extract_return_value.
2941 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
2942 (mips_n32n64_extract_return_value): Clone
2943 mips_extract_return_value.
2944 (mips_store_return_value): Delete.
2945 (mips_o32_store_return_value): Clone mips_store_return_value.
2946 (mips_o64_store_return_value): Clone mips_store_return_value.
2947 (mips_eabi_store_return_value): Clone mips_store_return_value.
2948 (mips_n32n64_store_return_value): Clone mips_store_return_value.
2949
2950 2002-08-18 Aidan Skinner <aidan@velvet.net>
2951
2952 * ada-lang.c: Use gdb_string.h instead of <string.h>.
2953 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
2954
2955 2002-08-18 Aidan Skinner <aidan@velvet.net>
2956
2957 * ada-lang.c: Run through gdb_indent.sh.
2958 * ada-lang.h: Run through gdb_indent.sh.
2959 * ada-tasks.c: Run through gdb_indent.sh.
2960 * ada-typeprint.c: Run through gdb_indent.sh.
2961 * ada-valprint.c: Run through gdb_indent.sh.
2962
2963 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2964
2965 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
2966 ABI.
2967
2968 2002-08-18 Mark Kettenis <kettenis@gnu.org>
2969
2970 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
2971
2972 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
2973 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
2974
2975 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
2976 write_register_gen instead of write_register_bytes.
2977
2978 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
2979 i[3456]-*-osf1mk* configurations have been made obsolete.
2980 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
2981 i[3456]86-*-osf1mk* hosts obsolete.
2982 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
2983 targets obsolete.
2984 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
2985 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
2986 config/i386/i386m3.mt, config/i386/nm-m3.h,
2987 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
2988 config/i386/i386mk.mh, config/i386/i386mk.mt,
2989 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
2990 obsolete.
2991 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
2992 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
2993 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
2994
2995 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2996
2997 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
2998 (hppa_value_returned_from_stack): Declare.
2999 (hppa_extract_return_value): Declare.
3000 * config/pa/hppa.mt: New file.
3001 * configure.tgt: Recognize hppa*-*-*.
3002 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
3003
3004 2002-08-18 Mark Kettenis <kettenis@gnu.org>
3005
3006 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
3007 comment.
3008
3009 2002-08-17 Mark Kettenis <kettenis@gnu.org>
3010
3011 * top.c (gdb_rl_operate_and_get_next): Make sure
3012 operate-and-get-next functions correctly even when the history
3013 list is completely filled.
3014
3015 2002-08-18 Andrew Cagney <ac131313@redhat.com>
3016
3017 * MAINTAINERS (Target Instruction Set Architectures): Rename
3018 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
3019 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
3020 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
3021 already listed under Host/Native.
3022
3023 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
3024 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
3025 mips*-*-*.
3026
3027 2002-08-17 Andrew Cagney <ac131313@redhat.com>
3028
3029 * config/ia64/ia64.mt: New file.
3030 * config/alpha/alpha.mt: New file.
3031 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
3032 ia64-linux-gnu. Mention that ia64-elf is broken.
3033 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
3034
3035 2002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
3036
3037 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
3038 generic_func_frame_valid instead of func_frame_valid.
3039
3040 2002-08-16 Joel Brobecker <brobecker@gnat.com>
3041
3042 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
3043 procfs appears to be broken when debugging on multi-processor
3044 machines. So enable software single stepping in order to avoid
3045 using the procfs interface to do next/step operations, using
3046 internal breakpoints instead.
3047
3048 * infrun.c (handle_inferior_event): Readjust the stop_pc by
3049 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
3050 make this pc address equal to the value it would have if the
3051 system stepping capability was used. Also set a new flag used
3052 to ensure that we don't readjust the PC one more time later.
3053
3054 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
3055 address by DECR_PC_AFTER_BREAK when software single step is
3056 in use for this architecture, as this has already been taken
3057 care of in handle_inferior_event().
3058
3059 2002-08-16 Joel Brobecker <brobecker@gnat.com>
3060
3061 * infrun.c (handle_inferior_event): Minor reformatting, to make
3062 a rather long condition expression easier to read.
3063
3064 2002-08-16 Andrew Cagney <ac131313@redhat.com>
3065
3066 * Makefile.in (gdbtk.o): Move to end of file.
3067 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
3068 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
3069 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
3070 (gdbtk-wrapper.o, gdbres.o): Ditto.
3071
3072 2002-08-16 Andrew Cagney <ac131313@redhat.com>
3073
3074 * Makefile.in (copying.o): Separate out compile rule.
3075 (hpux-thread.o, procfs.o, signals.o): Ditto.
3076 (v850ice.o, z8k-tdep.o): Ditto.
3077 (tui-file.o): Move to TUI section.
3078 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
3079 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
3080
3081 2002-08-16 Joel Brobecker <brobecker@gnat.com>
3082
3083 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
3084 skip_trampoline_code, for better namespace-proofing.
3085
3086 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
3087
3088 2002-08-16 Joel Brobecker <brobecker@gnat.com>
3089
3090 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
3091
3092 2002-08-16 Joel Brobecker <brobecker@gnat.com>
3093
3094 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
3095 signal, check whether we hit a breakpoint before checking for a
3096 single step breakpoint. Otherwise, GDB fails to notice that a
3097 breakpoint has been hit when stepping onto a breakpoint.
3098
3099 2002-08-16 Keith Seitz <keiths@redhat.com>
3100
3101 * gdb-events.sh (clear_gdb_event_hooks): New function.
3102 * gdb-events.c: Regenerate.
3103 * gdb-events.h: Regenerate.
3104
3105 2002-08-16 Andrew Cagney <ac131313@redhat.com>
3106
3107 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
3108 not_a_sw_breakpoint.
3109 * breakpoint.h (bpstat_stop_status): Add parameter names.
3110
3111 2002-08-16 Grace Sainsbury <graces@redhat.com>
3112
3113 * remote.c (remote_insert_hw_breakpoint)
3114 (remote_remove_hw_breakpoint): Fix calculation of length field
3115 for Z-packet.
3116
3117 2002-08-15 Michael Snyder <msnyder@redhat.com>
3118
3119 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
3120 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
3121 (supply_fpregset): Ditto.
3122
3123 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
3124 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
3125 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
3126 (TARGET_READ_SP): Delete.
3127 (DO_REGISTERS_INFO): Delete.
3128 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
3129 Delete.
3130 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
3131 from macros to functions.
3132
3133 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
3134 (mips_register_convertible, mips_register_convert_to_virtual,
3135 mips_register_convert_to_raw): Make static.
3136 (mips_read_sp): New function.
3137 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
3138 (mips_do_registers_info): Make static.
3139 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
3140 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
3141 (mips_register_convert_from_type, mips_register_convert_to_type):
3142 New functions.
3143 (mips_gdbarch_init): Set up function_start_offset,
3144 register_virtual_size, pc_in_sigtramp.
3145
3146 2002-08-15 Andrew Cagney <ac131313@redhat.com>
3147
3148 * infcmd.c (vector_info): New function.
3149 (_initialize_infcmd): Add command "info vector".
3150 (print_vector_info): New function.
3151
3152 * gdbarch.sh (PRINT_VECTOR_INFO): New method
3153 * gdbarch.h, gdbarch.c: Regenerate.
3154
3155 2002-08-15 Andrew Cagney <ac131313@redhat.com>
3156
3157 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
3158 ``print_all''. Only print vector registers when ``print_all''.
3159
3160 2002-08-15 Andrew Cagney <ac131313@redhat.com>
3161
3162 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
3163 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
3164
3165 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
3166 Add `args' parameter.
3167 * gdbarch.h, gdbarch.c: Regenerate.
3168
3169 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
3170
3171 * infcmd.c (float_info): Call print_float_info.
3172 (print_float_info): New function. By default, print the
3173 floating-point registers.
3174
3175 * arch-utils.h (default_print_float_info): Delete declaration.
3176 * arch-utils.c (default_print_float_info): Delete function.
3177
3178 2002-08-16 Mark Kettenis <kettenis@gnu.org>
3179
3180 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
3181 out define.
3182
3183 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
3184 FRAME.
3185
3186 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
3187 * configure.host: Make i[3456]86-*-aix host obsolete.
3188 * configure.tgt: Make i[3456]86-*-aix target obsolete.
3189 * config/i386/i386aix.mh, config/i386/i386aix.mt,
3190 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
3191 config/i386/xm-i386aix.h: Make files obsolete.
3192 * i386aix-nat.c: Make file obsolete.
3193 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
3194 (i386aix-nat.o): Make target obsolete.
3195
3196 * config/i386/nm-gnu.h: Removed.
3197 * config/i386/nm-i386gnu.h: New file.
3198 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
3199 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
3200 Moved here from ...
3201 * config/i386/tm-i386gnu.h: ... here. Removed.
3202 * config/i386/xm-i386gnu.h: Removed.
3203 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
3204 (NAT_FILE): Set to nm-i386gnu.h.
3205 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
3206 * i386-tdep.c: New file.
3207 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
3208 (i386gnu-tdep.o): Specify dependencies.
3209
3210 2002-08-15 Mark Kettenis <kettenis@gnu.org>
3211
3212 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
3213 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
3214 Adjust a few comments to reflect reality a bit closer.
3215 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
3216 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
3217 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
3218 target_insert_watchpoint, target_remove_watchpoint):
3219 Move defines to ...
3220 * config/i386/nm-i386sco5.h: ... here.
3221 (kernel_u_size): Add prototype. Improve a few comments and add
3222 protection against multiple inclusion.
3223
3224 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
3225 out define.
3226
3227 * uw-thread.c (SP_ARG0): Define if not already defined.
3228 * config/i386/tm-i386.h (SO_ARG0): Remove define.
3229
3230 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
3231
3232 * config/i386/tm-i386.h: Don't include "regcache.h".
3233
3234 * i387-tdep.h (i387_print_float_info): New prototype.
3235 * i387-tdep.c (print_i387_value, print_i387_ext,
3236 print_i387_status_word, print_i387_control_word): Add `struct
3237 ui_file *' argument and use it for output.
3238 (i387_print_float_info): Renamed from i387_float_info. Add
3239 `struct gdbarch *' and `struct ui_file *' arguments and use the
3240 latter for output.
3241 * i386-tdep.c: Include "i387-tdep.h".
3242 (i386_gdbarch_init): Set print_float_info.
3243 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
3244 (FLOAT_INFO): Remove define.
3245
3246 2002-08-13 Michael Snyder <msnyder@redhat.com>
3247
3248 * mips-tdep.c (mips_push_arguments): Rename to
3249 mips_eabi_push_arguments, and tune for EABI.
3250 (MIPS_REGS_HAVE_HOME_P): Delete.
3251 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
3252 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
3253 Delete references to mips_regs_have_home_p.
3254
3255 2002-08-14 Keith Seitz <keiths@redhat.com>
3256
3257 * Makefile.in (install-gdbtk): Create insight plugin directory.
3258 Install plugins.tcl file.
3259
3260 2002-08-14 Keith Seitz <keiths@redhat.com>
3261
3262 * configure.in: Move SUBDIRS to near top of the file so that
3263 --enable options may add things to it.
3264 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
3265 * configure: Regenerate.
3266
3267 2002-08-13 Michael Snyder <msnyder@redhat.com>
3268
3269 * mips-tdep.c (mips_o32o64_push_arguments): New function,
3270 cloned from mips_push_arguments, tuned for o32/o64 ABI.
3271 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
3272
3273 2002-08-13 Andrew Cagney <ac131313@redhat.com>
3274
3275 * vax-tdep.c (vax_get_saved_register): Delete function.
3276 (vax_gdbarch_init): Update.
3277 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
3278 (ns32k_gdbarch_init): Update.
3279 * alpha-tdep.c (alpha_get_saved_register): Delete function.
3280 (alpha_gdbarch_init): Update.
3281
3282 2002-08-13 Andrew Cagney <cagney@redhat.com>
3283
3284 * regcache.c (init_regcache_descr): Overallocate the
3285 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
3286 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
3287 nr_raw_registers.
3288 (set_register_cached): Add range checking assertions. Use
3289 current_regcache.
3290
3291 2002-08-13 Mark Kettenis <kettenis@gnu.org>
3292
3293 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
3294 numbers for MMX registers.
3295
3296 2002-08-13 Andrew Cagney <cagney@redhat.com>
3297
3298 * i386-tdep.c (i386_gdbarch_init): Use
3299 generic_unwind_get_saved_register.
3300
3301 2002-08-13 Kevin Buettner <kevinb@redhat.com>
3302
3303 * procfs.c (procfs_can_use_hw_breakpoint): New function.
3304 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
3305 target vector.
3306 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
3307 Delete. Add comment regarding this now-deleted target method.
3308
3309 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
3310
3311 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
3312 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
3313 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
3314 real PC and the page number (if it's within the memory bank window).
3315 (m68hc11_pseudo_register_write): Likewise when saving.
3316 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
3317 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
3318 (m68hc11_register_raw_size): And use 32-bit for it.
3319 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
3320 16K memory bank is used by the prog; also use the virtual pc.
3321
3322 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
3323
3324 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
3325 (m68hc11_gdbarch_init): Install it in gdbarch.
3326 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
3327 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
3328 (MSYMBOL_SIZE): New for documentation.
3329 (insn_return_kind): Enum to specify how a function returns.
3330 (frame_extra_info): Cleanup and record the return mode.
3331 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
3332 register in address computation.
3333 (m68hc11_get_return_insn): New to obtain the return instruction used
3334 by the function.
3335 (m68hc11_frame_init_saved_regs): Take into account the return
3336 instruction used by the function for far and interrupt functions.
3337 (m68hc11_init_extra_frame_info): Take into account page register.
3338 (m68hc11_frame_args_address): Adjust according to the return mode.
3339 (show_regs): Print page register only when it's used.
3340
3341 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
3342
3343 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
3344 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
3345 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
3346 registers.
3347 (m68hc11_register_raw_size): Likewise.
3348
3349 2002-08-13 Andrew Cagney <cagney@redhat.com>
3350
3351 * i386-tdep.c (i386_register_name): Handle mmx registers.
3352 (mmx_regnum_p): New function.
3353 (i386_mmx_names): New array.
3354 (mmx_num_regs): New variable.
3355 (i386_pseudo_register_read): New function.
3356 (i386_pseudo_register_write): New function.
3357 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
3358
3359 * regcache.c (regcache_raw_read_unsigned): New function.
3360 (regcache_raw_read_signed): New function.
3361 * regcache.h (regcache_raw_read_unsigned): Declare.
3362 (regcache_raw_read_signed): Declare.
3363
3364 2002-08-13 Andrew Cagney <cagney@redhat.com>
3365
3366 * regcache.c (regcache_raw_read_as_address): Delete function.
3367 (regcache_cooked_read_signed): New function.
3368 (regcache_cooked_read_unsigned): New function.
3369 * regcache.h (regcache_cooked_read_signed): Declare.
3370 (regcache_cooked_read_unsigned): Declare.
3371 (regcache_raw_read_as_address): Delete declaration.
3372
3373 * blockframe.c (generic_read_register_dummy): Use
3374 regcache_cooked_read_unsigned.
3375 * i386-tdep.c (i386_extract_struct_value_address): Use
3376 regcache_cooked_read_unsigned.
3377
3378 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
3379
3380 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
3381 double sizes according to ELF ABI flags.
3382 (gdbarch_tdep): Record elf_flags.
3383
3384 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
3385
3386 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
3387 (m6812_prolog): They can appear in 68HC12 function prologue.
3388 (m68hc11_frame_chain): Cleanup.
3389
3390 2002-08-12 Andrew Cagney <cagney@redhat.com>
3391
3392 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
3393 declarations.
3394 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
3395 (i386_linux_register_raw_size): Delete function.
3396 (i386_linux_init_abi): Update.
3397 * i386-tdep.c (i386_register_raw_size): Delete function.
3398 (i386_register_byte): Delete function.
3399 (i386_gdbarch_init): Update.
3400 (i386_register_size): Delete array.
3401 (i386_register_offset): Delete array.
3402
3403 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
3404 (REGISTER_RAW_SIZE): Delete macro.
3405 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
3406 (REGISTER_BYTE): Delete macro.
3407
3408 2002-08-11 Aidan Skinner <aidan@velvet.net>
3409
3410 * ada-lang.c (ada_lookup_partial_symbol)
3411 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
3412 prototype names so that grep ^func works properly.
3413
3414 * ada-lang.c (ada_array_element_type)
3415 (ada_lookup_partial_symbol): Fix typos in parameter list.
3416
3417 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
3418 Fix prototype names so that grep ^func works properly.
3419
3420 2002-08-10 Andrew Cagney <cagney@redhat.com>
3421 Elena Zannoni <ezannoni@redhat.com>
3422 Martin M. Hunt <hunt@redhat.com>
3423
3424 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
3425 (build_builtin_type_vec128i): Set the vector bit.
3426 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
3427 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
3428 (build_builtin_type_vec64): New function.
3429 (build_builtin_type_vec64i): New function.
3430 (build_gdbtypes): Initialize builtin_type_vec64 and
3431 builtin_type_vec64i.
3432
3433 2002-08-09 Andrew Cagney <cagney@redhat.com>
3434
3435 * regcache.c (regcache_dump): Compare the register offset
3436 with REGISTER_BYTE.
3437 * arch-utils.c (generic_register_byte): New function.
3438 * arch-utils.h (generic_register_byte): Declare.
3439 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
3440 * gdbarch.h, gdbarch.c: Regenerate.
3441
3442 2002-08-09 Andrew Cagney <cagney@redhat.com>
3443
3444 * regcache.c: Include "gdbcmd.h"
3445 (_initialize_regcache): Add commands "maintenance print
3446 registers", "maintenance print raw-registers" and "maintenance
3447 print cooked-registers".
3448 (enum regcache_dump_what): Define.
3449 (dump_endian_bytes): New function.
3450 (regcache_dump): New function.
3451 (regcache_print): New function.
3452 (maintenance_print_registers): New function.
3453 (maintenance_print_raw_registers): New function.
3454 (maintenance_print_cooked_registers): New function.
3455 * Makefile.in (regcache.o): Update dependencies.
3456
3457 2002-08-09 Michael Snyder <msnyder@redhat.com>
3458
3459 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
3460 (mips_push_arguments): Correct some comments. Use paddr_nz
3461 for printing addresses in debug output. Replace static
3462 allocation using MAX_REGISTER_RAW_SIZE with alloca.
3463 (mips_n32n64_push_arguments): New function, cloned from
3464 mips_push_arguments and tuned for the n32/n64 ABI.
3465 (mips_push_register): Buffer needs dynamic allocation.
3466 (mips_print_register): Ditto.
3467 (do_gp_register_row): Ditto.
3468 (mips_store_return_value): Ditto.
3469 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
3470
3471 2002-08-09 Don Howard <dhoward@redhat.com>
3472
3473 * memattr.c (mem_info_command): Print special case of upper bound
3474 as max CORE_ADDR + 1.
3475
3476 2002-08-08 Michael Snyder <msnyder@redhat.com>
3477
3478 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
3479 returns structs by ref if they're too big to fit in two registers.
3480
3481 2002-08-09 Kevin Buettner <kevinb@redhat.com>
3482
3483 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
3484 saved regs value.
3485 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
3486 mips_find_saved_regs().
3487 (mips_pop_frame): Likewise.
3488
3489 2002-08-09 Kevin Buettner <kevinb@redhat.com>
3490
3491 * blockframe.c (frame_saved_regs_register_unwind): Revise
3492 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
3493 frames are in use.
3494
3495 2002-08-09 Grace Sainsbury <graces@redhat.com>
3496
3497 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
3498 T-packets; the 'a' is not taken as a register number.
3499 (remote_check_watch_resources, remote_stopped_by_watchpoint)
3500 (remote_stopped_data_address): New functions; add to target
3501 vector.
3502 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
3503 prototypes to match other implementations of this
3504 function. replace integer argument with pointer -- the length
3505 field in the Z-packet is the length of what is pointed to or 1 if
3506 pointer is null. Add to target vector.
3507 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
3508 target vector.
3509
3510 From Mark Salter:
3511 * remote.c (remote_wait): Add support to extract optional
3512 watchpoint information from T-packet. Ignore unrecognized
3513 optional info in T-packet.
3514 (remote_async_wait): Ditto.
3515
3516 2002-08-09 Corinna Vinschen <vinschen@redhat.com>
3517
3518 * cli/cli-dump.c: Change fopen modes to use binary open modes
3519 as defined in include/fopen-bin.h throughout.
3520
3521 2002-08-08 Michael Snyder <msnyder@redhat.com>
3522
3523 * mips-tdep.c: Minor whitespace and indentation clean-ups.
3524
3525 2002-08-08 Kevin Buettner <kevinb@redhat.com>
3526
3527 * doublest.c (store_floating): Avoid floatformat_from_doublest()
3528 assertion failure by returning early after a warning.
3529
3530 2002-08-08 Kevin Buettner <kevinb@redhat.com>
3531
3532 * mips-tdep.c (mips_find_saved_regs): Make static.
3533 (mips_frame_init_saved_regs): New function.
3534 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
3535 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
3536 (mips_find_saved_regs): Delete declaration.
3537
3538 2002-08-08 Grace Sainsbury <graces@redhat.com>
3539
3540 * remote.c (remote_wait, remote_async_wait): Change
3541 thread_num from int to ULONGEST.
3542 (unpack_varlen_hex): Change result parameter from
3543 int * to ULONGEST *.
3544
3545 2002-08-08 Andrew Cagney <ac131313@redhat.com>
3546
3547 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
3548 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
3549 powerpc*-*-*.
3550 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
3551
3552 2002-08-08 Andrew Cagney <cagney@redhat.com>
3553
3554 * gcore.c (override_derive_stack_segment): Delete variable.
3555 (preempt_derive_stack_segment): Delete function.
3556 (derive_stack_segment): Delete function.
3557 (default_derive_stack_segment): Renamed to derive_stack_segment.
3558 (override_derive_heap_segment): Delete variable.
3559 (preempt_derive_heap_segment): Delete function.
3560 (derive_heap_segment): Delete function.
3561 (default_derive_heap_segment): Rename to derive_heap_segment.
3562
3563 2002-08-06 Michael Snyder <msnyder@redhat.com>
3564
3565 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
3566 * mips-tdep.c (mips_EABI_use_struct_convention,
3567 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
3568 New functions. (mips_use_struct_convention): Delete.
3569 (mips_gdbarch_init): set use_gdbarch_convention.
3570
3571 2002-08-06 Michael Snyder <msnyder@redhat.com>
3572
3573 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
3574 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
3575 mips_o32_reg_struct_has_addr): New functions.
3576 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
3577
3578 2002-08-07 Andrew Cagney <ac131313@redhat.com>
3579
3580 * regcache.c (pseudo_register): Delete function.
3581 (fetch_register): Delete function.
3582 (store_register): Delete function.
3583 (regcache_raw_read, legacy_read_register_gen): Use
3584 target_fetch_registers instead of fetch_register.
3585 (legacy_write_register_gen, regcache_raw_write): Use
3586 target_store_register instead of store_register.
3587 (write_register_bytes): Ditto.
3588
3589 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
3590 (STORE_PSEUDO_REGISTER): Delete.
3591 * gdbarch.h, gdbarch.c: Regenerate.
3592
3593 2002-08-06 Corinna Vinschen <vinschen@redhat.com>
3594
3595 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
3596 write dump file binary.
3597
3598 2002-08-05 Michael Snyder <msnyder@redhat.com>
3599
3600 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
3601 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
3602 (mips_gdbarch_init): Set N32 target to be mips64.
3603
3604 2002-08-06 Kevin Buettner <kevinb@redhat.com>
3605
3606 * frame.c (find_saved_register): Break out of loop once saved
3607 register address is found. Don't mention sparc in loop comment
3608 anymore.
3609
3610 2002-08-06 Kevin Buettner <kevinb@redhat.com>
3611
3612 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
3613 mips_default_saved_regsize to 8.
3614
3615 2002-08-06 Andrew Cagney <ac131313@redhat.com>
3616
3617 * gcore.c: Do not include <sys/procfs.h>.
3618 * Makefile.in (gcore.o): Update dependencies.
3619
3620 2002-08-06 Andrew Cagney <cagney@redhat.com>
3621
3622 * configure.tgt: Make arc-*-* obsolete.
3623 * NEWS: Mention that arc-*-* has been identifed as obsolete.
3624 * MAINTAINERS: Make arc-elf obsolete.
3625 * arc-tdep.c: Make file obsolete.
3626 * config/arc/arc.mt: Ditto.
3627 * config/arc/tm-arc.h: Ditto.
3628
3629 2002-08-05 Theodore A. Roth <troth@verinet.com>
3630
3631 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
3632
3633 2002-08-05 Andrew Cagney <ac131313@redhat.com>
3634
3635 * mcore-tdep.c (mcore_gdbarch_init): Use
3636 generic_unwind_get_saved_register instead of
3637 generic_get_saved_register.
3638 * v850-tdep.c (v850_gdbarch_init): Ditto.
3639 * frv-tdep.c (frv_gdbarch_init): Ditto.
3640 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3641 * s390-tdep.c (s390_gdbarch_init): Ditto.
3642 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
3643 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
3644 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
3645
3646 2002-08-05 Joel Brobecker <brobecker@gnat.com>
3647
3648 * objfiles.h: Add missing #include "symfile.h"
3649
3650 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
3651
3652 2002-08-04 Andrew Cagney <ac131313@redhat.com>
3653
3654 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
3655 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
3656 of FIELD_BITSIZE.
3657
3658 2002-08-04 Daniel Jacobowitz <drow@mvista.com>
3659
3660 * NEWS: Cleanup and nitpick.
3661
3662 2002-08-03 Andrew Cagney <ac131313@redhat.com>
3663
3664 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
3665
3666 2002-08-03 Andrew Cagney <ac131313@redhat.com>
3667
3668 * Makefile.in (gdbtk-bp.o): Update dependencies.
3669 (gdbtk-register.o): Ditto.
3670 (gdbtk-varobj.o): Ditto.
3671
3672 2002-08-03 Andrew Cagney <cagney@redhat.com>
3673
3674 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
3675 m68hc11_fetch_pseudo_register.
3676 (m68hc11_pseudo_register_write): Replace
3677 m68hc11_store_pseudo_register.
3678 (m68hc11_gdbarch_init): Update.
3679
3680 Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
3681
3682 * gdbarch.sh: Include "gdb_string.h".
3683 * gdbarch.c: Regenerate.
3684
3685 * regcache.c: Include "gdb_string.h".
3686 * ax-general.c: Ditto.
3687 * varobj.c: Ditto.
3688 * std-regs.c: Ditto.
3689 * fbsd-proc.c: Ditto.
3690 * thread.c: Ditto.
3691
3692 * Makefile.in (regcache.o): Update dependencies.
3693 (thread.o, gdbarch.o): Ditto.
3694 (ax-general.o, gdbarch.o): Ditto.
3695 (varobj.o, std-regs.o): Ditto.
3696 (fbsd-proc.o): Specify dependencies.
3697
3698 2002-08-02 Andrew Cagney <cagney@redhat.com>
3699
3700 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
3701 regnum.
3702 (regcache_cooked_write): Ditto.
3703
3704 2002-08-02 Andrew Cagney <ac131313@redhat.com>
3705
3706 * regcache.c (regcache_cooked_read): New function.
3707 (regcache_cooked_write): New function.
3708 (read_register_gen): Rewrite using regcache_cooked_read.
3709 (write_register_gen): Rewrite using regcache_cooked_write.
3710
3711 * regcache.h (regcache_cooked_read, regcache_cooked_write):
3712 Declare.
3713
3714 2002-08-02 Andrew Cagney <cagney@redhat.com>
3715
3716 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
3717 Replace the architecture methods register_read and register_write.
3718 * gdbarch.h, gdbarch.c: Regenerate.
3719 * regcache.c (init_regcache_descr): Update.
3720 (read_register_gen): Update.
3721 (write_register_gen): Update.
3722 (supply_register): Update comment.
3723
3724 * sh-tdep.c (sh_gdbarch_init): Update.
3725 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
3726 `regcache' and `gdbarch' parameters. Make `buffer' a void
3727 pointer. Update code.
3728 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
3729 `regcache' and `gdbarch' parameters. Make `buffer' a constant
3730 void pointer. Update code.
3731 (sh64_register_write): Delete.
3732 (sh4_register_read): Delete.
3733 (sh64_register_read): Delete.
3734 (sh4_register_write): Delete.
3735 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
3736 void pointer, `to' parameter a void pointer.
3737 (sh_sh64_register_convert_to_raw): Ditto.
3738
3739 2002-08-01 Kevin Buettner <kevinb@redhat.com>
3740
3741 * mips-tdep.c (mips_register_virtual_type): Use architecture
3742 invariant return values.
3743
3744 2002-08-01 Andrew Cagney <cagney@redhat.com>
3745
3746 * linux-proc.c: Include "gdb_string.h".
3747 * Makefile.in (linux-proc.o): Update dependency list.
3748
3749 2002-08-01 Kevin Buettner <kevinb@redhat.com>
3750
3751 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
3752 comment.
3753
3754 2002-08-01 Grace Sainsbury <graces@redhat.com>
3755
3756 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
3757 to_insert_watchpoint, to_remove_watchpoint,
3758 to_stopped_by_watchpoint, to_stopped_data_address,
3759 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
3760 target vecctor. Define their corresponding macros so they call
3761 them.
3762
3763 * target.c: Add default and debug versions of for
3764 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
3765 to_insert_watchpoint, to_remove_watchpoint,
3766 to_stopped_by_watchpoint, to_stopped_data_address,
3767 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
3768
3769 2002-08-01 Kevin Buettner <kevinb@redhat.com>
3770
3771 * mips-tdep.c (mips_register_virtual_type): New function.
3772 (mips_gdbarch_init): Register mips_register_virtual_type()
3773 with gdbarch machinery.
3774 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
3775 this file instead of tm-bigmips.h.
3776 (MIPS_REGSIZE): Delete this macro.
3777 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
3778 multiarch version in mips-tdep.c will be found.
3779
3780 2002-08-01 Andrew Cagney <cagney@redhat.com>
3781
3782 * NEWS: Menion that CHILL has been made obsolete.
3783
3784 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
3785 * stabsread.c (read_range_type): Ditto.
3786 * gdbtypes.h: Ditto.
3787 * language.c (binop_type_check): Ditto.
3788 (binop_result_type): Ditto.
3789 (integral_type): Ditto.
3790 (character_type): Ditto.
3791 (string_type): Ditto.
3792 (boolean_type): Ditto.
3793 (structured_type): Ditto.
3794 (lang_bool_type): Ditto.
3795 (binop_type_check): Ditto.
3796 * language.h (_LANG_chill): Ditto.
3797 * dwarfread.c (set_cu_language): Ditto.
3798 * dwarfread.c (CHILL_PRODUCER): Ditto.
3799 * dwarfread.c (handle_producer): Ditto.
3800 * expression.h (enum exp_opcode): Ditto.
3801 * eval.c: Ditto for comments.
3802 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
3803 * expprint.c (print_subexp): Ditto.
3804 (print_subexp): Ditto.
3805 * valops.c (value_cast): Ditto.
3806 (search_struct_field): Ditto.
3807 * value.h (COERCE_VARYING_ARRAY): Ditto.
3808 * symfile.c (init_filename_language_table): Ditto.
3809 (add_psymbol_with_dem_name_to_list): Ditto.
3810 * valarith.c (value_binop): Ditto.
3811 (value_neg): Ditto.
3812 * valops.c (value_slice): Ditto.
3813 * symtab.h (union language_specific): Ditto.
3814 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
3815 (SYMBOL_DEMANGLED_NAME): Ditto.
3816 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
3817 * defs.h (enum language): Ditto.
3818 * symtab.c (got_symtab): Ditto.
3819 * utils.c (fprintf_symbol_filtered): Ditto.
3820
3821 * ch-typeprint.c: Make file obsolete.
3822 * ch-valprint.c: Make file obsolete.
3823 * ch-lang.h: Make file obsolete.
3824 * ch-exp.c: Make file obsolete.
3825 * ch-lang.c: Make file obsolete.
3826
3827 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
3828 CHILL_LIB.
3829 (TARGET_FLAGS_TO_PASS): Ditto.
3830 (CHILLFLAGS): Obsolete.
3831 (CHILL): Obsolete.
3832 (CHILL_FOR_TARGET): Obsolete.
3833 (CHILL_LIB): Obsolete.
3834 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
3835 ch-valprint.c.
3836 (HFILES_NO_SRCDIR): Remove ch-lang.h.
3837 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
3838 ch-lang.o.
3839 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
3840 targets.
3841
3842 2002-07-31 Joel Brobecker <brobecker@gnat.com>
3843
3844 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
3845 This does not change anything at the moment, but will be helpful
3846 later when full Ada support is integrated.
3847
3848 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3849
3850 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
3851 help message.
3852
3853 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3854
3855 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
3856 and save it in a local variable. Use variable in later test.
3857
3858 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3859
3860 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
3861 test. (Thanks to Daniel Jacobowitz.)
3862
3863 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3864
3865 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
3866 (mips_abi_strings): Add "n64".
3867 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
3868
3869 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3870
3871 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
3872 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
3873
3874 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3875
3876 * utils.c (host_pointer_to_address, address_to_host_pointer):
3877 Use gdb_assert() instead of explicit call to internal_error().
3878
3879 2002-07-30 Kevin Buettner <kevinb@redhat.com>
3880
3881 * Makefile.in (rs6000-nat.o): Update dependencies.
3882
3883 From Nicholas Duffek:
3884 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
3885 (aix-thread.o): New rule.
3886 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
3887 * config/powerpc/aix432.mh: New file.
3888
3889 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
3890
3891 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
3892 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
3893 (fetch_core_registers, ppc_linux_supply_gregset)
3894 (ppc_linux_supply_fpregset): New functions.
3895 (ppc_linux_regset_core_fns): New.
3896 (_initialize_ppc_linux_tdep): Call add_core_fns.
3897 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
3898 and ppc_linux_supply_gregset.
3899 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
3900 (supply_fpregset): Call ppc_linux_supply_fpregset.
3901 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
3902 corelow.o.
3903 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
3904
3905 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
3906
3907 * symtab.c (lookup_symbol): Demangle before lowercasing.
3908
3909 2002-07-30 Andrew Cagney <ac131313@redhat.com>
3910
3911 * symtab.h: Replace #include "gdb_obstack.h" with opaque
3912 declaration.
3913 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
3914 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
3915 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
3916 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
3917 "gdb_string.h".
3918 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
3919 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
3920 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
3921 (avr-tdep.o, mon960-rom.o): Ditto.
3922 (aout_stabs_gnu_h): Define.
3923 (symtab_h): Remove $(gdb_obstack_h).
3924
3925 2002-07-30 Jim Blandy <jimb@redhat.com>
3926
3927 Patch from David Carlton <carlton@math.stanford.edu>:
3928 * gdbinit.in: Move the `dir' commands that add GDB's own source
3929 directory to the search path to the end, so that the `gdb' source
3930 directory will be searched first.
3931
3932 2002-07-29 Andrew Cagney <ac131313@redhat.com>
3933
3934 * gdb_obstack.h: New file.
3935 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
3936 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
3937 * objfiles.h: Include "gdb_obstack.h".
3938 * Makefile.in (gdb_obstack_h): Define.
3939 (symtab_h): Add $(gdb_obstack_h).
3940 (objfiles_h): Add $(gdb_obstack_h).
3941
3942 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
3943 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
3944 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
3945 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
3946 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
3947 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
3948 * symfile.c, coffread.c, c-typeprint.c: Ditto.
3949 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
3950
3951 * Makefile.in (bcache.o): Update dependencies.
3952 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
3953 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
3954 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
3955 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
3956 (stabsread.o, symfile.o, symmisc.o): Ditto.
3957 (symtab.o, typeprint.o, macroexp.o): Ditto.
3958 (macrotab.o, mdebugread.o): Ditto.
3959 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
3960 (coff_ecoff_h, aout_aout64_h): Define.
3961 (aout_stabs_gnu_h, libaout_h): Define.
3962
3963 2002-07-29 Andrew Cagney <cagney@redhat.com>
3964
3965 * regcache.c (struct regcache_descr): Rename nr_registers to
3966 nr_cooked_registers. Revise comments describing the structure
3967 member fields.
3968 (init_regcache_descr): Update.
3969 (init_legacy_regcache_descr): Update.
3970 (read_register_gen, write_register_gen): When a cooked register in
3971 the raw register range, directly access the value from the raw
3972 register cache.
3973
3974 2002-07-29 Andrew Cagney <ac131313@redhat.com>
3975
3976 * z8k-tdep.c: Do not include "obstack.h".
3977 * h8300-tdep.c, h8500-tdep.c: Ditto.
3978 * m68hc11-tdep.c, sh-tdep.c: Ditto.
3979 * valprint.c, v850-tdep.c: Ditto.
3980 * d10v-tdep.c, mn10300-tdep.c: Ditto.
3981 * mn10200-tdep.c: Ditto.
3982
3983 * Makefile.in (z8k-tdep.o): Update dependencies.
3984 (m68hc11-tdep.o, valprint.o): Ditto.
3985 (v850-tdep.o, d10v-tdep.o): Ditto.
3986 (mn10300-tdep.o, sparc-tdep.o): Ditto.
3987 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
3988 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
3989 (sh_opc_h, gdb_sim_sh_h): Define.
3990 (elf_sh_h, elf_bfd_h): Define.
3991 (opcode_m68hc11_h): Define.
3992 (OPCODES_SRC, OPCODES_DIR): define.
3993 (OPCODES): Use $(OPCODES_DIR).
3994 (gdb_sim_d10v_h): Rename sim_d10v_h.
3995 (gdb_sim_arm_h): Rename sim_arm_h.
3996
3997 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3998
3999 * utils.c (host_pointer_to_address, address_to_host_pointer):
4000 Change internal_error() message to indicate function responsible
4001 for the error.
4002
4003 2002-07-26 Kevin Buettner <kevinb@redhat.com>
4004
4005 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
4006 calls to local_hex_string_custom().
4007
4008 2002-07-26 Kevin Buettner <kevinb@redhat.com>
4009
4010 * irix5-nat.c: Move IRIX shared library support from here...
4011 * solib-irix.c: ...to here. Revised substantially to work with
4012 generic solib framework.
4013
4014 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
4015 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
4016 * mips-irix-tdep.c: New file.
4017
4018 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
4019 (mips-irix-tdep.o, solib-irix.o): New rules.
4020 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
4021 solib-irix.o.
4022 * config/mips/irix6.mt (TDEPFILES): Likewise.
4023 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
4024
4025 2002-07-26 Kevin Buettner <kevinb@redhat.com>
4026
4027 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
4028 disabled (via ``#if 0'') includes.
4029
4030 2002-07-26 Kevin Buettner <kevinb@redhat.com>
4031
4032 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
4033 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
4034 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
4035 Add support for the fpscr register.
4036 * rs6000-nat.c (regmap, fetch_inferior_registers)
4037 (store_inferior_registers, fetch_core_registers): Likewise.
4038
4039 2002-07-26 Kevin Buettner <kevinb@redhat.com>
4040
4041 * rs6000-nat.c (language.h): Include.
4042 (special_regs): Delete this array.
4043 (regmap): New function.
4044 (fetch_register, store_register): Use regmap() to map gdb
4045 register numbers to ptrace register numbers. Also, use
4046 outputs from regmap() to make decisions regarding type of
4047 ptrace() call to make. In particular, don't compare against
4048 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
4049 (fetch_inferior_registers, store_inferior_registers): Where
4050 possible, obtain register numbers from tdep struct. Don't
4051 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
4052 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
4053 (LAST_UISA_SP_REGNUM): Delete.
4054
4055 2002-07-25 Kevin Buettner <kevinb@redhat.com>
4056
4057 * rs6000-nat.c (ppc-tdep.h): Include.
4058 (fetch_registers, store_register, fetch_core_registers): Don't
4059 access registers[] directly. Instead, use supply_register() or
4060 regcache_collect() as appropriate.
4061 (find_toc_address): Format hex address with local_hex_string().
4062
4063 2002-07-25 Andrew Cagney <ac131313@redhat.com>
4064
4065 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
4066 bfd/elf32-frv.c.
4067
4068 2002-07-24 Tom Tromey <tromey@redhat.com>
4069
4070 * jv-exp.y: Marked all strings with _().
4071 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
4072 internal_error.
4073 (MethodInvocation, CastExpression, parse_number, yyerror,
4074 java_type_from_name, push_expression_name, yylex): Typo fixes.
4075
4076 2002-07-24 Daniel Jacobowitz <drow@mvista.com>
4077
4078 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
4079 (tee_file_flush, tee_file_write, tee_file_fputs)
4080 (tee_file_isatty): New.
4081 * ui-file.h (tee_file_new): Add prototype.
4082
4083 2002-07-24 Aidan Skinner <aidan@velvet.net>
4084
4085 * ada-lang.c: Change k&r style function definitions to prototyped
4086 form.
4087 * ada-typeprint.c: Change k&r style function definitions to prototyped
4088 form.
4089 * ada-valprint.c: Change k&r style function definitions to prototyped
4090 form.
4091
4092 2002-07-24 Andrew Cagney <cagney@redhat.com>
4093
4094 * README: Remove reference to remote-bug.
4095 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
4096 remote-bug.c.
4097 (m88k-nat.o): Delete rule.
4098 (m88k-tdep.o): Delete rule.
4099 (remote-bug.o): Delete rule.
4100 * MAINTAINERS: Mark as obsolete.
4101 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
4102 * m88k-tdep.c: Make file obsolete.
4103 * config/m88k/m88k.mh: Ditto.
4104 * config/m88k/delta88v4.mh: Ditto.
4105 * config/m88k/delta88v4.mt: Ditto.
4106 * config/m88k/delta88.mt: Ditto.
4107 * config/m88k/delta88.mh: Ditto.
4108 * remote-bug.c: Ditto.
4109 * config/m88k/tm-delta88.h: Ditto.
4110 * config/m88k/nm-delta88v4.h: Ditto.
4111 * config/m88k/xm-delta88.h: Ditto.
4112 * config/m88k/xm-dgux.h: Ditto.
4113 * config/m88k/tm-m88k.h: Ditto.
4114 * config/m88k/nm-m88k.h: Ditto.
4115 * config/m88k/tm-delta88v4.h: Ditto.
4116 * m88k-nat.c: Ditto.
4117 * cxux-nat.c: Ditto.
4118 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
4119 and m88*-*-* obsolete.
4120 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
4121 m88*-*-* obsolete.
4122
4123 2002-07-24 Andrew Cagney <cagney@redhat.com>
4124
4125 * findvar.c (extract_unsigned_integer): Make `addr' parameter
4126 constant. Same for local pointer variables.
4127 (extract_signed_integer): Ditto.
4128 * defs.h (extract_unsigned_integer): Update.
4129 (extract_signed_integer): Update.
4130
4131 2002-07-24 Andrew Cagney <cagney@redhat.com>
4132
4133 * regcache.c (regcache_raw_write): Change buf parameter to a
4134 constant void pointer.
4135 (regcache_raw_read): Change buf parameter to a void pointer.
4136 (legacy_write_register_gen): Change myaddr parameter a constant
4137 void pointer.
4138 (supply_register): Change val parameter to a const void pointer.
4139 * regcache.h (regcache_raw_write): Update declaration.
4140 (regcache_raw_read): Update declaration.
4141 (supply_register): Update declaration.
4142
4143 2002-07-24 Tom Tromey <tromey@redhat.com>
4144
4145 * defs.h (gdb_readline_wrapper): Declare.
4146 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
4147 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
4148 * top.c (gdb_readline_wrapper): New function.
4149 (command_line_input): Use it.
4150
4151 2002-07-24 Andrew Cagney <cagney@redhat.com>
4152
4153 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
4154 regcache_read and regcache_write.
4155 (regcache_raw_read_as_address): Replace regcache_read_as_address.
4156 * regcache.c: Update.
4157 * sh-tdep.c (sh64_push_arguments): Update comment.
4158 (sh_pseudo_register_read): Update.
4159 (sh_pseudo_register_write): Update.
4160 (sh4_register_read): Update.
4161 (sh4_register_write): Update.
4162 (sh64_pseudo_register_read): Update.
4163 (sh64_pseudo_register_write): Update.
4164 (sh64_register_read): Update.
4165 (sh64_register_write): Update.
4166 * i386-tdep.c (i386_extract_return_value): Update.
4167 (i386_extract_struct_value_address): Update.
4168 (i386_extract_return_value): Update.
4169 * blockframe.c (generic_read_register_dummy): Update.
4170 (generic_call_dummy_register_unwind): Update
4171 * infrun.c (write_inferior_status_register): Update.
4172
4173 2002-07-23 Jim Blandy <jimb@redhat.com>
4174
4175 * parser-defs.h (expression_context_pc): Make this extern.
4176 (Thanks to Michael Snyder.)
4177
4178 2002-07-23 Andrew Cagney <ac131313@redhat.com>
4179
4180 GDB 5.2.1 released from 5.2 branch.
4181 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
4182 * README: Update to mention 5.2.1.
4183
4184 2002-07-23 Mark Salter <msalter@redhat.com>
4185
4186 * remote.c (remote_read_bytes): Fix check for error.
4187
4188 2002-07-22 Kevin Buettner <kevinb@redhat.com>
4189
4190 * aix-thread.c (language.h): Include.
4191 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
4192 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
4193 Print newlines at end of debug messages.
4194 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
4195 (pdc_write_data): Use local_hex_string() instead of %llx formats.
4196
4197 2002-07-22 Kevin Buettner <kevinb@redhat.com>
4198
4199 * aix-thread.c (ppc-tdep.h): Include.
4200 (special_register_p): New function.
4201 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
4202 (store_regs_user_thread): Use register number information from
4203 gdbarch_tdep struct instead of hardcoded offsets relative to
4204 FIRST_UISA_SP_REGNUM.
4205 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
4206 special_register_p() instead of using FPLAST_REGNUM and
4207 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
4208 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
4209 will be MQ's register number.
4210
4211 2002-07-22 Michael Snyder <msnyder@redhat.com>
4212
4213 * aix-thread.c (ops): Rename to aix_thread_ops.
4214 (base_ops): Rename to base_target.
4215 (ops_attach): Rename to aix_thread_attach.
4216 (ops_detach): Rename to aix_thread_detach.
4217 (ops_resume): Rename to aix_thread_detach.
4218 (ops_wait): Rename to aix_thread_wait.
4219 (ops_kill): Rename to aix_thread_kill.
4220 (init_ops): Rename to init_aix_thread_ops.
4221 (ops_fetch_register): Rename to aix_thread_fetch_register.
4222 (ops_store_register): Rename to aix_thread_store_register.
4223 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
4224 (ops_thread_alive): Rename to aix_thread_thread_alive.
4225 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
4226 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
4227 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
4228 (fetch_regs_lib): Rename to fetch_regs_user_thread.
4229 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
4230 (store_regs_lib): Rename to store_regs_user_thread.
4231 (store_regs_kern): Rename to store_regs_kernel_thread.
4232
4233 2002-07-22 Michael Snyder <msnyder@redhat.com>
4234
4235 * aix-thread.c (ops_prepare_to_store): Eliminate.
4236 (init_ops): Don't initialize ops.prepare_to_store.
4237 (store_regs_kern): Pre-fetch register buffers from child,
4238 because some registers may not be in the cache. Copy
4239 regs from register cache only if they are cached.
4240 (store_regs_lib): Copy regs from register cache only
4241 if they are cached.
4242 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
4243 fill_gprs64): Ditto.
4244
4245 2002-07-22 Kevin Buettner <kevinb@redhat.com>
4246
4247 * aix-thread.c (gdb_assert.h): Include.
4248 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
4249 register sizes (from register cache) match size of buffer holding
4250 register data.
4251 (fill_sprs32): Change parameter types to match those in the ptrace()
4252 buffer.
4253 (store_regs_lib): Likewise, but for 32-bit temporary variables.
4254 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
4255
4256 2002-07-22 Michael Snyder <msnyder@redhat.com>
4257
4258 * aix-thread.c (supply_sprs64): Cosmetic change.
4259 (supply_sprs32): Cosmetic change.
4260 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
4261 (fill_sprs64): Use regcache_collect instead of read_register.
4262 (store_regs_lib): Use regcache_collect instead of
4263 read_register. Use fill_sprs32 instead of fill_sprs64,
4264 if debugging a 32-bit architecture.
4265 (store_regs_kern): Use fill_gprs64 etc. to pull the values
4266 out of the register cache, instead of passing a pointer into
4267 the register cache directly to ptrace. Use regcache_collect
4268 insteaad of read_register.
4269 (ops_prepare_to_store): Use target_read_registers instead
4270 of read_register_bytes.
4271
4272 2002-07-20 Aidan Skinner <aidan@velvet.net>
4273
4274 * MAINTAINERS: Add self under write after approval.
4275
4276 2002-07-20 Aidan Skinner <aidan@velvet.net>
4277
4278 * ada-tasks.c: Change k&r style function definitions to prototyped
4279 form.
4280
4281 2002-07-19 Andrew Cagney <ac131313@redhat.com>
4282
4283 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
4284 * x86-64-tdep.c: Include "objfiles.h".
4285 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
4286 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
4287
4288 2002-07-17 Michal Ludvig <michal@suse.cz>
4289
4290 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
4291 (update_context): Initialise cfa variable.
4292
4293 2002-07-17 Michael Snyder <msnyder@redhat.com>
4294
4295 * aix-thread.c: Shorten some long lines.
4296 Bring comments into line with code spec.
4297
4298 2002-07-18 Joel Brobecker <brobecker@gnat.com>
4299
4300 * infrun.c: Re-indent using gdb_indent.sh.
4301
4302 2002-07-18 Joel Brobecker <brobecker@gnat.com>
4303
4304 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
4305 Leave the indentation temporarily untouched, to minimize the diffs.
4306
4307 2002-07-18 Elena Zannoni <ezannoni@redhat.com>
4308
4309 * stabsread.c: Make os9k sections of the code obsolete,
4310 for real this time.
4311 * stabsread.h: Make os9k sections of the code obsolete.
4312
4313 2002-07-18 Michal Ludvig <mludvig@suse.cz>
4314
4315 * linux-low.c (regsets_store_inferior_registers): Add free()
4316 at the end of a loop to prevent memory leak.
4317 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
4318 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
4319 * config/sparc/tm-sp64linux.h: Make the rest of #endif
4320 line a comment.
4321 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
4322
4323 2002-07-17 Jim Blandy <jimb@redhat.com>
4324
4325 * macrocmd.c (info_macro_command): Remove newline from error
4326 message.
4327
4328 2002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
4329
4330 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
4331 (sh_gdbarch_init): Use it for sh-dsp.
4332
4333 2002-07-16 Kevin Buettner <kevinb@redhat.com>
4334
4335 * dwarf2read.c (read_initial_length): Handle older, non-standard,
4336 64-bit DWARF2 format.
4337
4338 2002-07-16 Joel Brobecker <brobecker@gnat.com>
4339
4340 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
4341 <sys/proc.h> when not available.
4342
4343 2002-07-16 Andrew Cagney <ac131313@redhat.com>
4344
4345 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
4346 * stabsread.c: Make os9k sections of the code obsolete.
4347 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
4348 * config/i386/i386os9k.mt: Make file obsolete.
4349 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
4350 (COMMON_OBS): Remove os9kread.o
4351 (SFILES): Remove os9kread.c.
4352 (os9kread.o, remote-os9k.o): Make target obsolete.
4353 * remote-os9k.c: Make file obsolete.
4354 * os9kread.c: Make file obsolete.
4355 * Makefile.in
4356
4357 2002-07-16 Andrew Cagney <ac131313@redhat.com>
4358
4359 * NEWS: Mention that the FR30 has been made obsolete.
4360 * fr30-tdep.c: Make file obsolete.
4361 * config/fr30/tm-fr30.h: Ditto.
4362 * config/fr30/fr30.mt: Ditto.
4363 * configure.tgt: Make fr30-*-elf obsolete.
4364 * MAINTAINERS: Make fr30-elf obsolete.
4365
4366 2002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
4367
4368 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
4369 found is not inside a section.
4370
4371 2002-07-15 Kevin Buettner <kevinb@redhat.com>
4372
4373 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
4374 strerror().
4375 (pdc_realloc): Use xrealloc() instead of realloc().
4376
4377 2002-07-15 Kevin Buettner <kevinb@redhat.com>
4378
4379 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
4380 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
4381 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
4382 macros.
4383
4384 2002-07-15 Kevin Buettner <kevinb@redhat.com>
4385
4386 * aix-thread.c (ptrace_check): Eliminate goto.
4387 (sync_threadlists): Eliminate gotos. Also, fix array overrun
4388 problem.
4389
4390 2002-07-15 Kevin Buettner <kevinb@redhat.com>
4391
4392 * aix-thread.c (gdbcmd.h): Include.
4393 (DEBUG, DBG, DBG2, dbg): Eliminate.
4394 (debug_aix_thread): New static global.
4395 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
4396 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
4397 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
4398 invocations to DBG and DBG2 macros to test against
4399 ``debug_aix_thread'' and call fprintf_unfiltered().
4400 (_initialize_aix_thread): Add new command "set debug aix-thread".
4401
4402 2002-07-15 Andrew Cagney <ac131313@redhat.com>
4403
4404 From Gerhard Tonn <TON@de.ibm.com>:
4405 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
4406 instead of supply_register.
4407
4408 2002-07-15 Andrew Cagney <ac131313@redhat.com>
4409
4410 * dwarf2cfi.c: Include "gdb_assert.h".
4411 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
4412 non-NULL.
4413 (update_context): Do not use __func__. Add missing ``break''.
4414 (update_context): Do not use __func__.
4415
4416 2002-07-15 Elena Zannoni <ezannoni@redhat.com>
4417
4418 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
4419 and its setting. Set gdbarch instruction printing functions
4420 directly. For non-rs6000 case use new function
4421 gdb_print_insn_powerpc.
4422 (gdb_print_insn_powerpc): New function.
4423
4424 2002-07-13 Andrew Cagney <ac131313@redhat.com>
4425
4426 * NEWS: Mention that the d30v has been marked obsolete.
4427 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
4428 * configure.tgt: Mark d30v-*-* as obsolete.
4429 * d30v-tdep.c: Mark file as obsolete.
4430 * config/d30v/d30v.mt: Ditto.
4431 * config/d30v/tm-d30v.h: Ditto.
4432
4433 2002-07-13 Aidan Skinner <aidan@velvet.net>
4434
4435 * ada-tasks.c (add_task_entry): replace calls to
4436 malloc() with xmalloc
4437 * ada-tasks.c (init_task_list): replace calls to free with xfree()
4438
4439 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
4440 ada_finish_decode_line_1, all_sals_for_line
4441 ada_breakpoint_rewrite): replace calls to free() with xfree()
4442
4443 2002-07-12 Kevin Buettner <kevinb@redhat.com>
4444
4445 From Nicholas Duffek (with minor changes by Martin Hunt,
4446 Louis Hamilton, and Kevin Buettner):
4447 * aix-thread.c: New file.
4448
4449 2002-07-12 Petr Sorfa <petrs@caldera.com>
4450
4451 * dwarf2read.c (dwarf2_invalid_attrib_class): New
4452 complaint for invalid attribute class or form.
4453 (read_func_scope): DW_AT_frame_base
4454 better handling of DW_AT_block*.
4455 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
4456 better handling of DW_AT_block*.
4457 (read_common_block): DW_AT_location
4458 better handling of DW_AT_block*.
4459 (read_partial_die): DW_AT_location better handling
4460 of DW_AT_block*.
4461 (new_symbol): DW_AT_external better handling of
4462 DW_AT_block*. Proper initialization of variable
4463 "addr".
4464 (attr_form_is_block): New function that returns true
4465 if the attribute's form is of DW_FORM_block*.
4466
4467 2002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
4468
4469 * valops.c (find_method_list): Remove comment about
4470 removed STATIC_MEMFUNCP argument.
4471 (value_find_oload_method_list): Likewise.
4472
4473 2002-07-12 Kevin Buettner <kevinb@redhat.com>
4474
4475 From Nicholas Duffek:
4476 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
4477 target_new_objfile_hook.
4478
4479 2002-07-12 Kevin Buettner <kevinb@redhat.com>
4480
4481 From Nicholas Duffek:
4482 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
4483 csect.
4484
4485 2002-07-12 Andrew Cagney <cagney@redhat.com>
4486
4487 * MAINTAINERS: Mention --enable-sim-build-warnings.
4488 (m68hc11-elf): Disable sim build warnings.
4489 (m32r-elf): Mark as broken obsolete candidate.
4490 (x86_64-linux-gnu): Mark as buildable with -Werror.
4491 (arm-elf): Change -w to ``,'' which enables warnings but not
4492 -Werror.
4493
4494 2002-07-12 Andrew Cagney <ac131313@redhat.com>
4495
4496 * bcache.h: Update copyright.
4497 (struct bstring, struct bcache): Move definition to "bcache.c".
4498 Replaced by opaque declaration.
4499 (bcache_xfree): Replace free_bcache.
4500 (bcache_xmalloc, bcache_memory_used): Declare.
4501
4502 * bcache.c: Update copyright.
4503 (struct bstring, struct bcache): Moved to here from "bcache.h".
4504 Update comments.
4505 (bcache_xmalloc, bcache_memory_used): New functions.
4506 (bcache_xfree): Replace function free_bcache.
4507
4508 * Makefile.in (objfiles.o): Add $(bcache_h).
4509 (objfiles_h): Remove $(bcache_h).
4510 (symfile.o): Add $(bcache_h).
4511
4512 * symmisc.c: Update copyright.
4513 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
4514 (print_objfile_statistics): Use bcache_memory_used.
4515
4516 * symfile.c: Include "bcache.h".
4517 (reread_symbols): Use bcache_xfree.
4518 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
4519 (add_psymbol_to_list): Pass psymbol_cache by value.
4520 (add_psymbol_with_dem_name_to_list): Ditto.
4521
4522 * objfiles.h: Update copyright.
4523 (struct bcache): Declare opaque. Do not include "bcache.h".
4524 (struct objfile): Change psymbol_cache and macro_cache to ``struct
4525 bcache'' pointers.
4526 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
4527
4528 * objfiles.c: Include "bcache.h". Update copyright.
4529 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
4530 macro_cache.
4531 (free_objfile): Use bcache_xfree.
4532
4533 2002-07-11 Grace Sainsbury <graces@redhat.com>
4534
4535 * monitor.c (monitor_fetch_register): Make name a constant.
4536 (monitor_store_register): Same.
4537
4538 2002-07-11 Daniel Jacobowitz <drow@mvista.com>
4539
4540 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
4541 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
4542 (finish_block) For non-function blocks, hash the symbol table. For
4543 function blocks, mark the symbol table as unhashed.
4544 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
4545 (msymbol_hash_iw): Likewise.
4546 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
4547 value.
4548 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
4549 (lookup_minimal_symbol): Likewise for both.
4550 * symtab.h (struct block): Add `hashtable' flag. Comment the
4551 hashtable.
4552 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
4553 (ALL_BLOCK_SYMBOLS): Update.
4554 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
4555 (struct symbol): Add `hash_next' pointer.
4556 * symtab.c (lookup_block_symbol): Search using the hash table when
4557 possible.
4558 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
4559 (search_symbols, find_addr_symbol): Likewise.
4560
4561 * dstread.c (process_dst_block): Clear hashtable bit for new block.
4562 (read_dst_symtab): Likewise.
4563 * jv-lang.c (get_java_class_symtab): Likewise.
4564 * mdebugread.c: Include "gdb_assert.h".
4565 (shrink_block): Assert that the block being modified is not hashed.
4566 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
4567 * symmisc.c (free_symtab_block): Walk the hash table when freeing
4568 symbols.
4569 (dump_symtab): Recognize hashed blocks.
4570 * printcmd.c (print_frame_args): Assert that function blocks do not
4571 have hashed symbol tables.
4572 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
4573 (fill_in_ada_prototype, debug_print_block): Likewise.
4574 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
4575
4576 2002-07-11 Corinna Vinschen <vinschen@redhat.com>
4577
4578 * stack.c (print_frame): Use result of frame_address_in_block()
4579 instead of fi->pc when evaluating symbols.
4580 (backtrace_command_1): Ditto.
4581
4582 2002-07-11 Andrew Cagney <cagney@redhat.com>
4583
4584 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
4585 Make static.
4586
4587 * arm-tdep.c (arm_register_name): Make return type constant.
4588
4589 2002-07-10 Andrew Cagney <ac131313@redhat.com>
4590
4591 * win32-nat.c (has_detach_ability): Convert to strict ISO C
4592 prototype.
4593 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
4594 * s390-tdep.c (s390_fp_regnum): Ditto.
4595 (s390_read_fp): Ditto.
4596 (s390_pop_frame): Ditto.
4597 (_initialize_s390_tdep): Ditto.
4598 * remote.c (get_remote_state): Ditto.
4599 * procfs.c (mappingflags): Ditto.
4600 * memattr.c (_initialize_mem): Ditto.
4601 * mcore-tdep.c (mcore_pop_frame): Ditto.
4602 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
4603 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
4604 * language.c (set_case_str): Ditto.
4605 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
4606 * frv-tdep.c (new_variant): Ditto.
4607 (frv_stopped_data_address): Ditto.
4608 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
4609 (context_alloc): Ditto.
4610 (frame_state_alloc): Ditto.
4611 (unwind_tmp_obstack_init): Ditto.
4612 (unwind_tmp_obstack_free): Ditto.
4613 (cfi_read_fp): Ditto.
4614 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
4615 (cris_pop_frame): Ditto.
4616 * c-lang.c (scanning_macro_expansion): Ditto.
4617 (finished_macro_expansion): Ditto.
4618 (c_preprocess_and_parse): Ditto.
4619 * gdbarch.sh: Ditto.
4620 * gdbarch.h, gdbarch.c: Regenerate.
4621 * config/mn10200/tm-mn10200.h: Adjust indentation.
4622 * target.c: Adjust indentation.
4623 * symtab.h: Adjust indentation.
4624 * stabsread.h: Adjust indentation.
4625 * remote-es.c: Adjust indentation.
4626 * os9kread.c: Adjust indentation.
4627
4628 2002-07-10 Andrew Cagney <ac131313@redhat.com>
4629
4630 * wince.c (_initialize_wince): Rename _initialize_inftarg.
4631 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
4632
4633 2002-07-10 Grace Sainsbury <graces@redhat.com>
4634
4635 * NEWS: Mention m68k, mcore multi-arching.
4636 * MAINTAINERS: Change status of m68k, mcore to reflect
4637 multi-arching.
4638
4639 2002-07-10 Daniel Jacobowitz <drow@mvista.com>
4640
4641 * valops.c (find_overload_match): Free oload_syms.
4642
4643 2002-07-09 Joel Brobecker <brobecker@gnat.com>
4644
4645 Define HAVE_SYS_PROC_H if sys/proc.h exists
4646 * configure.in: Add check for sys/proc.h
4647 * config.in: Regenerate.
4648 * configure: Regenerate.
4649
4650 2002-07-09 Grace Sainsbury <graces@redhat.com>
4651
4652 * config/m68k/tm-m68k.h: Remove macros wrapped in
4653 #if !GDB_MULTI_ARCH.
4654
4655 2002-07-08 Andrew Cagney <ac131313@redhat.com>
4656
4657 * config.in, configure: Regenerate.
4658
4659 2002-07-08 Mark Kettenis <kettenis@gnu.org>
4660
4661 * dwarf2cfi.c: Include "gcore.h".
4662 (execute_stack_op): Fix implementation of the
4663 DW_OP_deref and DW_OP_deref_size operators by letting do their
4664 lookup in the target.
4665
4666 2002-07-07 Mark Kettenis <kettenis@gnu.org>
4667
4668 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
4669 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
4670 tdep->sc_sp_offset.
4671
4672 2002-07-05 Daniel Jacobowitz <drow@mvista.com>
4673
4674 Fix PR gdb/595, gdb/602
4675 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
4676 Don't call value_cast, just read the vtable pointer; update comments
4677 to match.
4678
4679 2002-07-05 Grace Sainsbury <graces@redhat.com>
4680
4681 * config/mcore/tm-mcore.h: Remove file.
4682 * config/mcore/mcore.mt: Remove definition of TM_FILE
4683 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
4684
4685 2002-07-05 Mark Kettenis <kettenis@gnu.org>
4686
4687 * i386bsd-tdep.c: Include "gdb_string.h".
4688
4689 2002-07-04 Grace Sainsbury <graces@redhat.com>
4690
4691 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
4692 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
4693 mcore-tdep.
4694 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
4695 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
4696 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
4697 (RETVAL_REGNUM): Move macros from tm-mcore.h
4698 (mcore_reg_struct_has_addr): New function.
4699 (mcore_gdbarch_init): Added initializations for the macros removed
4700 from tm-mcore.h.
4701
4702 2002-07-04 Mark Kettenis <kettenis@gnu.org>
4703
4704 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
4705 traditonal string branding within the ELF header.
4706
4707 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
4708
4709 * symtab.c (remove_params): New function.
4710 (make_symbol_overload_list): Use it instead of cplus_demangle.
4711 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
4712
4713 2002-07-04 Mark Kettenis <kettenis@gnu.org>
4714
4715 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
4716
4717 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
4718 New variables.
4719 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
4720 and tdep->sigtramp_end.
4721 * i386obsd-nat.c: New file.
4722 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
4723
4724 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
4725 Don't call get_current_frame().
4726
4727 2002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
4728
4729 * i386-nat.c (child_post_startup_inferior): New function
4730 calling i386_cleanup_dregs if
4731 I386_USE_GENERIC_WATCHPOINTS is defined.
4732 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
4733 conditional to acknowledge that i386-nat.c has its
4734 own child_post_startup_inferior function.
4735
4736 2002-07-04 Mark Kettenis <kettenis@gnu.org>
4737
4738 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
4739 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
4740 instead of MAX_REGISTER_RAW_SIZE.
4741 (i386_extract_return_value, i386_extract_struct_value_address):
4742 Convert to use regcache.
4743 (i386_gdbarch_init): Set max_register_raw_size and
4744 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
4745 Set extract_return_value and extract_struct_value_address instead
4746 of their deprecated variants.
4747
4748 Convert i386 target to generic dummy frames.
4749 * i386-tdep.c: Include "symfile.h".
4750 (i386_frameless_signal_p): Consider a function to be frameless if
4751 the pc points at the first instruction of the function.
4752 (i386_frame_chain): Handle (generic) call dummies.
4753 (i386_frame_saved_pc): Likewise.
4754 (i386_frame_init_saved_regs): Remove code dealing with call
4755 dummies on the stack.
4756 (i386_push_dummy_frame): Removed.
4757 (i386_call_dummy_words): Removed.
4758 (i386_fix_call_dummy): Removed.
4759 (i386_push_return_address): New function.
4760 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
4761 parameter, and don't call get_current_frame.
4762 (i386_pop_frame): New function.
4763 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
4764 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
4765 entry_point_address, set call_dummy_breakpoint_offset to 0, set
4766 call_dummy_length to 0, set call_dummy_words to NULL, set
4767 sizeof_call_dummy_words to 0, set fix_call_dummy to
4768 generic_fix_call_dummy, set pc_in_call_dummy to
4769 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
4770 generic_push_dummy_frame, set push_return_address to
4771 i386_push_return_address and set frame_chain_valid to
4772 generic_file_frame_chain_valid.
4773
4774 2002-07-03 Andrew Cagney <ac131313@redhat.com>
4775
4776 * gdbarch.sh (struct regcache): Add opaque declaration.
4777 (EXTRACT_RETURN_VALUE): New architecture method.
4778 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
4779 * gdbarch.h, gdbarch.c: Regenerate.
4780 * arch-utils.c (legacy_extract_return_value): New function.
4781 * arch-utils.h (legacy_extract_return_value): Declare.
4782 * values.c (value_being_returned): Re-enable code handling
4783 EXTRACT_STRUCT_VALUE_ADDRESS. Move
4784 deprecated_grub_regcache_for_registers call to block handling
4785 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
4786 (EXTRACT_RETURN_VALUE): Do not define.
4787
4788 2002-07-03 Grace Sainsbury <graces@redhat.com>
4789
4790 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
4791 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
4792 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
4793 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
4794 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
4795 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
4796 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
4797 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
4798 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
4799 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
4800 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
4801 argument so the function fits the prototype in the architecture
4802 vector.
4803 (mcore_pop_frame): Remove argument so the function fits the
4804 prototype. Use get_current_frame instead of the argument.
4805 (mcore_push_arguments): Change type of struct_return so the
4806 function can be used in the architecture vector.
4807 (mcore_store_struct_return): Add.
4808 (mcore_frame_init_saved_regs): Add.
4809 (mcore_gdbarch_init): Add function calls to replace the macros
4810 removed from tm-mcore.h
4811
4812 2002-07-03 Andrew Cagney <ac131313@redhat.com>
4813
4814 * infcmd.c (print_return_value): Remove compatibility code calling
4815 deprecated_grub_regcache_for_registers.
4816
4817 * values.c: Include "regcache.h".
4818 (value_being_returned): Update. Use
4819 deprecated_grub_regcache_for_registers to extract the register
4820 buffer address.
4821 * value.h (value_being_returned): Change ``retbuf'' parameter to a
4822 ``struct regcache''.
4823 * Makefile.in (values.o): Add dependency on $(regcache_h).
4824
4825 * inferior.h (run_stack_dummy): Change type of second parameter to
4826 a ``struct regcache''.
4827 * valops.c (hand_function_call): Change type of retbuf to ``struct
4828 regcache''. Allocate using regcache_xmalloc, clean using
4829 make_cleanup_regcache_xfree.
4830 * infcmd.c (run_stack_dummy): Update. Use
4831 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
4832
4833 * regcache.c (do_regcache_xfree): New function.
4834 (make_cleanup_regcache_xfree): New function.
4835 * regcache.h (make_cleanup_regcache_xfree): Declare.
4836
4837 2002-07-03 Martin M. Hunt <hunt@redhat.com>
4838
4839 * event-top.c (command_line_handler): Don't read past
4840 beginning of buffer.
4841
4842 2002-07-03 Martin M. Hunt <hunt@redhat.com>
4843
4844 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
4845 struct frame_id.
4846 (varobj_create): Store frame_id for root.
4847 (varobj_gen_name): Use xasprintf.
4848 (varobj_update): Save and restore frame using get_frame_id() and
4849 frame_find_by_id().
4850 (create_child): Use xasprintf.
4851 (new_root_variable): Initialize frame_id.
4852 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
4853 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
4854 to prevent memory leak.
4855
4856 2002-07-03 Andrew Cagney <ac131313@redhat.com>
4857
4858 * valops.c (hand_function_call): Move declaration of retbuf to
4859 start of function, allocate using malloc, add a cleanup but before
4860 the inf_status cleanup, cleanup the buffer. Rename local variable
4861 old_chain to inf_status_cleanup.
4862
4863 2002-07-03 Martin M. Hunt <hunt@redhat.com>
4864
4865 * top.c (execute_command): Use cmd_func() and cmd_func_p().
4866
4867 * cli/cli-decode.c (cmd_func_p): New function.
4868 (cmd_func): New function.
4869
4870 * command.h: Add cmd_func() and cmd_func_p().
4871
4872 2002-07-03 Grace Sainsbury <graces@redhat.com>
4873
4874 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
4875 (REGISTER_SIZE): Remove.
4876 (MAX_REGISTER_RAW_SIZE): Remove.
4877 (REGISTER_VIRTUAL_TYPE): Remove.
4878 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
4879 (REGISTER_NAME): Remove.
4880 (USE_GENERIC_DUMMY_FRAMES): Remove.
4881 (CALL_DUMMY): Remove.
4882 (CALL_DUMMY_START_OFFSET): Remove.
4883 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
4884 (CALL_DUMMY_LOCATION): Remove.
4885 (FIX_CALL_DUMMY): Remove.
4886 (CALL_DUMMY_ADDRESS): Remove.
4887 (SIZEOF_CALL_DUMMY_WORDS): Remove.
4888 (SAVE_DUMMY_FRAME_TOS): Remove.
4889 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
4890 (mcore_register_virtual_type): New function.
4891 (mcore_register_byte): New function.
4892 (mcore_register_size): New function.
4893 (mcore_register_name): New function.
4894 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
4895 macros removed from tm-mcore.h.
4896 (mcore_dump_tdep): Add.
4897 (_initialize_mcore_tdep): Add gdbarch_register call.
4898
4899 2002-07-03 Mark Kettenis <kettenis@gnu.org>
4900
4901 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
4902 frameless_look_for_prologue, such that we actually call this
4903 function.
4904
4905 2002-07-02 Joel Brobecker <brobecker@gnat.com>
4906
4907 * frame.h (frame_address_in_block): New function.
4908
4909 * blockframe.c (frame_address_in_block): New function extracted
4910 from get_frame_block().
4911 (get_frame_block): Use frame_address_in_block().
4912 (block_innermost_frame): Use frame_address_in_block() to match
4913 the frame pc address against the block boundaries rather than
4914 the frame pc directly. This prevents a failure when a frame pc
4915 is actually a return-address pointing immediately after the end
4916 of the given block.
4917
4918 2002-07-02 Grace Sainsbury <graces@redhat.com>
4919
4920 * MAINTAINERS: Add self under write after approval.
4921
4922 2002-07-02 Grace Sainsbury <graces@redhat.com>
4923
4924 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
4925 used in architecture vector. The default is
4926 m68k_local_breakpoint_from_pc.
4927 (m68k_local_breakpoint_from_pc): Add.
4928 (enum): Add register numbers from tm-m68k.h.
4929 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
4930 vector.
4931 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
4932 GDB_MULTI_ARCH_PARTIAL.
4933 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
4934 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
4935 m68k-tdep.c.
4936 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
4937 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
4938 to enum in m68k-tdep.c
4939
4940 2002-07-02 Joel Brobecker <brobecker@gnat.com>
4941
4942 * solib-osf.c (open_map): Compute the list of shared libraries
4943 loaded by the inferior, rather than the list of libraries loaded
4944 by GDB itself. Otherwise, GDB ends up reading the symbols from
4945 the wrong shared libraries...
4946
4947 2002-07-02 Mark Kettenis <kettenis@gnu.org>
4948
4949 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
4950 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
4951 macros.
4952 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
4953 Remove functions.
4954 (FRAMELESS_SIGNAL): Remove function.
4955 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
4956 i386_linux_saved_pc_after_call): Removed.
4957 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
4958 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
4959 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
4960
4961 * i386-tdep.c (i386_frameless_signal_p): New function.
4962 (i386_frame_chain): Deal with frameless signals.
4963 (i386_sigtramp_saved_sp): New function.
4964 (i386_frame_saved_pc): Deal with frameless signals.
4965 (i386_saved_pc_after_call): Make sure the correct value is
4966 returned just after entry into a sigtramp.
4967 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
4968 i386fbsd4_sc_sp_offset): New variables.
4969 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
4970 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
4971 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
4972 similiar to what we already did for sc_pc_offset.
4973 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
4974 tdep->sc_sp_offset.
4975
4976 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
4977
4978 2002-07-02 Michal Ludvig <mludvig@suse.cz>
4979
4980 * config/i386/tm-x86-64linux.h: New.
4981 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
4982 definitions.
4983 * config/i386/nm-x86-64.h: Rename to ...
4984 * config/i386/nm-x86-64linux.h: ... this one.
4985 * config/i386/x86-64linux.mh: Reflect the above change.
4986
4987 2002-07-01 Mark Kettenis <kettenis@gnu.org>
4988
4989 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
4990 with sigcontext_addr. Add sc_sp_offset.
4991 (i386bsd_sigtramp_saved_pc): Remove prototype.
4992 (i386bsd_sicontext_addr): Add prototype.
4993 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
4994 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
4995 (i386_svr4_sigtramp_saved_pc): Removed.
4996 (i386_svr4_sigcontext_addr): New function.
4997 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
4998 Initialize tdep->sigcontext_addr instead. Initialize
4999 tdep->sc_pc_offset and tdep->sc_sp_offset.
5000 (i386_gdbarch_init): Likewise.
5001 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
5002 any more.
5003 (i386bsd_sigtramp_saved_pc): Remove function.
5004 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
5005 Initialize tdep->sigcontext_addr instead. Initialize
5006 tdep->sc_pc_offset.
5007 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
5008 of tdep->sigtramp_saved_pc.
5009 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
5010 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
5011 instead.
5012
5013 * i386-tdep.c (i386_frameless_function_invocation,
5014 i386_frame_num_args, i386_frame_init_saved_regs,
5015 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
5016 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
5017 i386_extract_return_value, i386_store_return_value,
5018 i386_extract_struct_value_address, i386_register_virtual_type,
5019 i386_register_convertible, i386_register_convert_to_virtual,
5020 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
5021 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
5022 static.
5023
5024 2002-07-01 Mark Kettenis <kettenis@gnu.org>
5025
5026 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
5027
5028 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
5029 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
5030 this macro. Include "value.h".
5031
5032 2002-06-30 Aidan Skinner <aidan@velvet.net>
5033
5034 * ada-exp.tab.c: remove as it's a generated file
5035 * ada-lex.c: remove as it's a generated file
5036
5037 2002-06-30 Mark Kettenis <kettenis@gnu.org>
5038
5039 * config/i386/tm-i386.h (struct frame_info, struct
5040 frame_saved_regs, struct value, struct type): Remove forward
5041 declarations.
5042
5043 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
5044 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
5045 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
5046 (FILL_FPXREGSET): Define.
5047
5048 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
5049
5050 * configure.tgt (i[3456]86-*-openbsd*): Fold into
5051 i[3456]86-*-netbsd* case.
5052 * config/i386/tm-obsd.h: Removed.
5053 * config/i386/obsd.mt: Removed.
5054 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
5055 core-aout.o.
5056 (MH_CFLAGS): Add -DYYDEBUG=0.
5057
5058 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
5059 i386nbsd_sc_pc_offset on OpenBSD too.
5060
5061 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
5062 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
5063 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
5064 define.
5065 * i386bsd-tdep.c: Include "arch-utils.h".
5066 (i386bsd_aout_in_solib_call_trampoline): New function.
5067 (i386bsd_init_abi): Set in_solib_call_trampoline to
5068 i386bsd_aout_in_solib_call_trampoline.
5069 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
5070 in_solib_call_trampoline to generic_in_solib_call_trampoline.
5071
5072 2002-06-28 Andrew Cagney <ac131313@redhat.com>
5073
5074 * macrotab.h: Do not include "obstack.h" or "bcache.h".
5075 (struct obstack, struct bcache): Add opaque declarations.
5076 * Makefile.in (macrotab_h): Update
5077
5078 2002-06-28 Andrew Cagney <ac131313@redhat.com>
5079
5080 * blockframe.c (generic_find_dummy_frame): Change return type to
5081 ``struct regcache''.
5082 (struct dummy_frame): Replace field ``registers'' with regcache, a
5083 struct regcache object.
5084 (generic_find_dummy_frame): Update.
5085 (generic_push_dummy_frame): Update. Use regcache_xfree,
5086 regcache_xmalloc and regcache_cpy.
5087 (generic_pop_dummy_frame): Update. Use regcache_cpy and
5088 regcache_xfree.
5089 (deprecated_generic_find_dummy_frame): Update.
5090 (generic_read_register_dummy): Update. Use
5091 regcache_read_as_address.
5092 (generic_call_dummy_register_unwind): Update. Use regcache_read.
5093 (generic_get_saved_register): Update. Use regcache_read.
5094
5095 2002-06-28 Andrew Cagney <ac131313@redhat.com>
5096
5097 * Makefile.in (objfiles_h): Add $(bcache_h).
5098 * objfiles.h: Include "bcache.h".
5099
5100 * Makefile.in (symtab_h): Remove $(bcache_h).
5101 * symtab.h: Do not include "bcache.h".
5102
5103 2002-06-28 Andrew Cagney <ac131313@redhat.com>
5104
5105 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
5106 generic_func_frame_chain_valid.
5107
5108 2002-06-28 David O'Brien <obrien@FreeBSD.org>
5109
5110 * config/i386/nm-fbsd.h: Include <sys/param.h>.
5111 * config/i386/tm-fbsd.h: Likewise.
5112
5113 2002-06-28 Andrew Cagney <ac131313@redhat.com>
5114
5115 * rs6000-tdep.c (rs6000_gdbarch_init): Use
5116 generic_unwind_get_saved_register.
5117
5118 2002-06-27 Andrew Cagney <ac131313@redhat.com>
5119
5120 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
5121 * regcache.c (supply_register): Add missing argument to
5122 register_buffer call.
5123
5124 2002-06-27 Andrew Cagney <ac131313@redhat.com>
5125
5126 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
5127 Solaris /bin/grep does not not like it. From Peter Schauer.
5128
5129 2002-06-26 Tom Tromey <tromey@redhat.com>
5130
5131 * command.h (add_setshow_cmd): Declare.
5132 (add_setshow_cmd_full): Declare.
5133 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
5134 returns void. Use add_setshow_cmd_full.
5135 (add_setshow_cmd_full): New function.
5136 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
5137 (add_setshow_boolean_cmd): Likewise.
5138
5139 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
5140
5141 * config/vax/tm-vax.h: Protect from multiple inclusion.
5142 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
5143 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
5144 * config/vax/tm-vaxbsd.h: ...here. New file.
5145 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
5146
5147 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
5148
5149 * config/vax/tm-vax.h (BREAKPOINT): Remove.
5150 (BELIEVE_PCC_PROMOTION): Remove.
5151 (AP_REGNUM): Move to...
5152 * config/vax/nm-vax.h: ...here.
5153 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
5154 (vax_breakpoint_from_pc): New function.
5155 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
5156 and gdbarch_believe_pcc_promotion.
5157
5158 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
5159
5160 * Makefile.in (vax_tdep_h): Define.
5161 (vax-tdep.o): Use $(vax_tdep_h).
5162 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
5163 (vax_dump_tdep): New function.
5164 (_initialize_vax_tdep): Register vax_dump_tdep.
5165 * vax-tdep.h: Include osabi.h.
5166 (struct gdbarch_tdep): New.
5167
5168 2002-06-26 Andrew Cagney <cagney@redhat.com>
5169
5170 * frame.h (deprecated_generic_find_dummy_frame): Rename
5171 generic_find_dummy_frame.
5172 * blockframe.c (generic_find_dummy_frame): Make static.
5173 (deprecated_generic_find_dummy_frame): New function.
5174 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
5175 generic_find_dummy_frame with deprecated_find_dummy_frame.
5176 (sh64_nofp_frame_init_saved_regs): Ditto.
5177 (sh_fp_frame_init_saved_regs): Ditto.
5178 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
5179 (s390_frame_chain): Ditto.
5180 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
5181
5182 2002-06-26 Grace Sainsbury <graces@redhat.com>
5183
5184 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
5185 gdbarch vector are at the top.
5186 (NUM_REGS): Remove.
5187 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
5188 (FRAME_ARGS_ADDRESS): Remove.
5189 (FRAME_LOCALS_ADDRESS): Remove.
5190 (FRAME_NUM_ARGS): Remove.
5191 (FRAME_ARGS_SKIP): Remove.
5192 * m68k-tdep.c (enum): Add eumeration of special register numbers.
5193 (m68k_gdbarch_init): Add gdbarch initializations for macros
5194 undefined in tm-m68k.h
5195
5196 2002-06-26 Grace Sainsbury <graces@redhat.com>
5197
5198 * monitor.h: Add the function regname to monitor_ops
5199 structure. This way NUM_REGS does not have to be a constant.
5200 * monitor.c (monitor_fetch_register): Added support for regname
5201 function. The function is called if the array regnames is NULL.
5202 (monitor_store_register): Same.
5203 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
5204 regnames array.
5205 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
5206 cpu32bug_cmds.regname to point to new function.
5207 * abug-rom.c (abug_regname): Same as above.
5208 (init_abug_cmds): Same.
5209 * dbug-rom.c (dbug_regname): Same as above.
5210 (init_dbug_cmds): Same.
5211 * remote-est.c (est_regname): Same.
5212 (init_est_cmds): Same.
5213 * rom68k-rom.c (rom68k_regname): Same.
5214 (init_rom68k_cmds): Same.
5215
5216 2002-06-25 Tom Tromey <tromey@redhat.com>
5217
5218 * breakpoint.c (delete_command): Don't repeat `delete' commands.
5219
5220 2002-06-25 Andrew Cagney <cagney@redhat.com>
5221
5222 * infrun.c (stop_registers): Change variable's type to ``struct
5223 regcache'''.
5224 (xmalloc_inferior_status): Delete function.
5225 (free_inferior_status): Delete function.
5226 (normal_stop): Use regcache_cpy.
5227 (struct inferior_status): Change type of fields ``stop_registers''
5228 and ``registers'' to ``struct regcache''.
5229 (write_inferior_status_register): Use regcache_write.
5230 (save_inferior_status): Instead of calling
5231 xmalloc_inferior_status, allocate the inf_status buffer directly.
5232 Use regcache_dup_no_passthrough and regcache_dup to save the
5233 buffers.
5234 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
5235 Replace the stop_registers regcache instead of overriding it. Use
5236 regcache_xfree. Instead of calling free_inferior_status, xfree
5237 the buffer directly.
5238 (discard_inferior_status): Use regcache_xfree. Instead of calling
5239 free_inferior_status, xfree the buffer directly.
5240 (build_infrun): Use regcache_xmalloc.
5241 (_initialize_infrun): Delete redundant call to build_infrun.
5242
5243 * Makefile.in (infcmd.o): Add $(regcache_h).
5244
5245 * infcmd.c: Include "regcache.h".
5246 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
5247 obtain the address of `stop_registers' register buffer.
5248 (print_return_value): Ditto.
5249
5250 * inferior.h (struct regcache): Add opaque declaration.
5251 (stop_registers): Change variable's declared type to ``struct
5252 regcache''.
5253
5254 2002-06-24 Tom Tromey <tromey@redhat.com>
5255
5256 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
5257 * target.c (initialize_targets): Fixed typo in
5258 trust-readonly-sections `show' documentation.
5259
5260 * main.c: Marked all strings with _().
5261
5262 2002-06-24 Don Howard <dhoward@redhat.com>
5263
5264 * memattr.c (create_mem_region): Treat hi == 0 as a special case
5265 that means max CORE_ADDR+1.
5266 (lookup_mem_region): Ditto.
5267 (mem_info_command): Ditto.
5268
5269 2002-06-24 Grace Sainsbury <graces@redhat.com>
5270
5271 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
5272 (REGISTER_BYTES_OK): Remove.
5273 (REGISTER_BYTES): Remove.
5274 (STORE_STRUCT_RETURN): Remove.
5275 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
5276 (STORE_RETURN_VALUE): Remove.
5277 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
5278 (FRAME_CHAIN): Remove.
5279 (FRAMELESS_FUNCTION_INVOCATION): Remove.
5280 (FRAME_SAVED_PC): Remove.
5281 * m68k-tdep.c (m68k_register_bytes_ok):Add.
5282 (m68k_store_struct_return): Add.
5283 (m68k_deprecated_extract_return_value): Add.
5284 (m68k_deprecated_extract_struct_value_address): Add.
5285 (m68k_store_return_value): Add.
5286 (m68k_frame_chain): Add.
5287 (m68k_frameless_function_invocation): Add.
5288 (m68k_frame_saved_pc): Add.
5289 (m68k_gdbarch_init): added set_gdbarch calls for new
5290 functions and deleted macros.
5291
5292 2002-06-23 Tom Tromey <tromey@redhat.com>
5293
5294 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
5295 (ALLDEPFILES): Likewise.
5296 (udiheaders): Removed.
5297 (udip2soc.o): Likewise.
5298 (udi2go32.o): Likewise.
5299 (udr.o): Likewise.
5300 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
5301
5302 2002-06-22 Andrew Cagney <ac131313@redhat.com>
5303
5304 * infrun.c (_initialize_infrun): Delete unnecessary call to
5305 build_infrun.
5306
5307 * regcache.h: Update comments describing the regcache_cpy family
5308 of functions.
5309 (regcache_save, regcache_restore): Delete declaration.
5310 (regcache_save_no_passthrough): Delete declaration.
5311 (regcache_restore_no_passthrough): Delete declaration.
5312 * regcache.c (regcache_save): Delete function.
5313 (regcache_save_no_passthrough): Delete function.
5314 (regcache_restore): Delete function.
5315 (regcache_restore_no_passthrough): Delete function.
5316
5317 2002-06-21 Andrew Cagney <ac131313@redhat.com>
5318
5319 * config/m68k/tm-m68k.h: Fix typo.
5320 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
5321 (m68k_frame_init_saved_regs): Declare.
5322
5323 2002-06-21 Jim Blandy <jimb@redhat.com>
5324
5325 Remove some vestiges of Harris 88k support.
5326 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
5327 register numbering quirk.
5328 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
5329 odd symbols occurring in Harris 88k ELF targets.
5330
5331 2002-06-21 Tom Tromey <tromey@redhat.com>
5332
5333 * gdb_locale.h: New file.
5334 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
5335 (defs_h): Added gdb_locale.h.
5336 * configure, config.in: Rebuilt.
5337 * configure.in (PACKAGE): Define.
5338 * defs.h: Include gdb_locale.h.
5339 * main.c (captured_main): Call setlocale, bindtextdomain,
5340 textdomain.
5341
5342 2002-06-21 Dave Brolley <brolley@redhat.com>
5343
5344 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
5345 * config/frv/frv.mt: New file.
5346 * config/frv/tm-frv.h: New file.
5347 * configure.tgt: Support frv-*-*.
5348 * Makefile.in (frv-tdep.o): New target.
5349 * frv-tdep.c: New file.
5350 * NEWS: Mention frv.
5351
5352 2002-06-21 Dave Brolley <brolley@redhat.com>
5353
5354 * MAINTAINERS: Add self to "Write After Approval" list.
5355
5356 2002-06-21 Grace Sainsbury <graces@redhat.com>
5357
5358 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
5359 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
5360 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
5361 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
5362 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
5363
5364 * m68k-tdep.c: Include arch-utils.h
5365 (m68k_register_raw_size): Add.
5366 (m68k_register_virtual_size): Add.
5367 (m68k_register_virtual_type): Add.
5368 (m68k_register_name): Add.
5369 (m68k_stack_align): Add.
5370 (m68k_register_byte): Add.
5371 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
5372 tm-m68k.h.
5373
5374 2002-06-21 Grace Sainsbury <graces@redhat.com>
5375
5376 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
5377 m68k_find_saved_regs.
5378 (m68k_pop_frame): Removed saved_regs structure, and replaced
5379 references to it with frame->saved_regs.
5380 (m68k_gdbarch_init): Added function calls to initialize the
5381 gdbarch structure.
5382 (m68k_fix_call_dummy): Add.
5383 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
5384 (CALL_DUMMY): Remove.
5385 (CALL_DUMMY_LENGTH): Remove.
5386 (CALL_DUMMY_START_OFFSET): Remove.
5387 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
5388 (FIX_CALL_DUMMY): Remove.
5389 (PUSH_DUMMY_FRAME): Remove.
5390 (POP_FRAME): Remove.
5391
5392 2002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
5393
5394 * parse.c (parse_fprintf): New function used to avoid calls to
5395 fprintf in bison parser generated debug code.
5396 * parser-defs.h: Declaration of new parse_fprintf function.
5397 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
5398 Set YYDEBUG to 1 by default.
5399 Set YYFPRINTF as parse_fprintf.
5400
5401 2002-06-21 Michal Ludvig <mludvig@suse.cz>
5402
5403 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
5404 encoding anymore.
5405 (pointer_encoding, enum ptr_encoding): New.
5406 (execute_cfa_program): Take care about pointer encoding.
5407 (dwarf2_build_frame_info): Only call parse_frame_info for
5408 .debug_frame and .eh_frame.
5409 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
5410 fixed augmentation handling, added relative addressing,
5411 ignore duplicate FDEs. Added comments.
5412 * dwarf2cfi.c: Reindented.
5413
5414 2002-06-20 Elena Zannoni <ezannoni@redhat.com>
5415
5416 * event-top.c (command_handler): Don't use space_at_cmd_start
5417 unless there is sbrk() on the host. Assign time and space data
5418 to union fields of the appropriate length.
5419
5420 2002-06-20 Michal Ludvig <mludvig@suse.cz>
5421
5422 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
5423 x86_64_register_name. Return type changed to 'const char *'.
5424 (x86_64_register_name2nr): Rename to x86_64_register_number.
5425 (x86_64_gdbarch_init): Update to reflect the change.
5426 * x86-64-tdep.h: Ditto.
5427 * x86-64-linux-nat.c (x86_64_fxsave_offset)
5428 (supply_fpregset): Ditto.
5429
5430 2002-06-19 Andrew Cagney <cagney@redhat.com>
5431
5432 * regcache.h: Update copyright.
5433 (struct regcache, struct gdbarch): Add opaque declarations.
5434 (current_regcache): Declare global variable.
5435 (regcache_read, regcache_write): Add gdbarch parameter.
5436 (regcache_save, regcache_save_no_passthrough)
5437 (regcache_restore, regcache_restore_no_passthrough)
5438 (regcache_dup, regcache_dup_no_passthrough)
5439 (regcache_cpy, regcache_cpy_no_passthrough)
5440 (deprecated_grub_regcache_for_registers)
5441 (deprecated_grub_regcache_for_register_valid)
5442 (regcache_valid_p): Add function declarations.
5443
5444 * regcache.c: Update copyright.
5445 (regcache_descr_handle): New global variable.
5446 (struct regcache_descr): Define.
5447 (init_legacy_regcache_descr, init_regcache_descr): New functions.
5448 (regcache_descr, xfree_regcache_descr): New functions.
5449 (struct regcache): Define.
5450 (regcache_xmalloc, regcache_xfree): New functions.
5451 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
5452 (regcache_dup, regcache_dup_no_passthrough): New functions.
5453 (regcache_valid_p, regcache_read_as_address): New functions.
5454 (deprecated_grub_regcache_for_registers): New function.
5455 (deprecated_grub_regcache_for_register_valid): New function.
5456 (current_regcache): New global variable.
5457 (register_buffer): Add regcache parameter. Update calls.
5458 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
5459 (read_register_gen, write_register_gen): Update register_buffer
5460 call. Test for legacy_p instead of gdbarch_register_read_p or
5461 gdbarch_register_write_p.
5462 (regcache_collect): Update register_buffer call.
5463 (build_regcache): Rewrite. Use deprecated grub functions.
5464 (regcache_save, regcache_save_no_passthrough): New functions.
5465 (regcache_restore, regcache_restore_no_passthrough): New
5466 functions.
5467 (_initialize_regcache): Create the regcache_data_handle. Swap
5468 current_regcache global variable.
5469
5470 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
5471 parameter to regcache_read and regcache_write calls.
5472 (sh4_register_read): Ditto.
5473 (sh64_pseudo_register_read): Ditto.
5474 (sh64_register_read): Ditto.
5475 (sh_pseudo_register_write): Ditto.
5476 (sh4_register_write): Ditto.
5477 (sh64_pseudo_register_write): Ditto.
5478 (sh64_register_write): Ditto.
5479
5480 * defs.h (XCALLOC): Define.
5481
5482 2002-06-19 Grace Sainsbury <graces@redhat.com>
5483
5484 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
5485 * m68k-tdep.c (m68k_gdbarch_init): Added.
5486 (m68k_dump_tdep): Added.
5487
5488 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
5489
5490 * ada-lang.c (fill_in_ada_prototype): Update comment.
5491
5492 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
5493
5494 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
5495 MIPS_ABI_LAST.
5496 (mips_abi_string, mips_abi_strings): New.
5497 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
5498 (mips_gdbarch_init): Set tdep->found_abi. Don't set
5499 tdep->mips_abi_string. Honor mips_abi_string. Default to
5500 O32 if no ABI is found.
5501 (mips_dump_tdep): Use mips_abi_strings.
5502 (mips_abi_update): New function.
5503 (_initialize_mips_tdep): Initialize mips_abi_string. Add
5504 ``set mips abi'' and ``show mips abi''. Check the size of
5505 mips_abi_strings.
5506
5507 2002-06-19 Andrew Cagney <cagney@redhat.com>
5508
5509 * i386-linux-tdep.c (i386_linux_register_name): Make return type
5510 constant.
5511
5512 2002-06-18 Joel Brobecker <brobecker@gnat.com>
5513
5514 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
5515 current frame using only the first stack size adjustment. All
5516 subsequent size adjustments are not considered to be part of
5517 the "static" part of the current frame.
5518 Compute the address of the saved registers relative to the
5519 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
5520 in use in this frame.
5521
5522 2002-06-18 Don Howard <dhoward@redhat.com>
5523
5524 * valops.c (value_ind): Use value_at_lazy() when dereferencing
5525 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
5526 suggesting this solution.
5527
5528 2002-06-18 Andrew Cagney <ac131313@redhat.com>
5529
5530 * config/romp/xm-rtbsd.h: Delete file.
5531 * config/romp/rtbsd.mh: Delete file.
5532
5533 2002-06-18 Keith Seitz <keiths@redhat.com>
5534
5535 * breakpoint.c (condition_command): Post breakpoint_modify
5536 when a condition is added to an existing breakpoint.
5537 (commands_command): Likewise for commands.
5538 (set_ignore_count): Likewise for ignore counts.
5539 If no tty, do not simply return, still need to send event
5540 notification.
5541 (ignore_command): Only print a newline if the command came
5542 from a tty.
5543 Don't call breakpoints_changed, since this is now properly
5544 handled by set_ignore_count.
5545
5546 2002-06-18 Andrew Cagney <cagney@redhat.com>
5547
5548 * MAINTAINERS: Note that cris-elf target can be compiled with
5549 -Werror.
5550 * cris-tdep.c (cris_register_name): Make return type constant.
5551 (cris_breakpoint_from_pc): Ditto.
5552
5553 2002-06-18 Michal Ludvig <mludvig@suse.cz>
5554
5555 * frame.h (struct frame_info): Change type of context to
5556 'struct context'.
5557
5558 2002-06-17 Andrew Cagney <cagney@redhat.com>
5559
5560 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
5561 pointer.
5562 * gdbarch.h, gdbarch.c: Regenerate.
5563 * config/mips/tm-mips.h (mips_register_name): Update.
5564 * i386-tdep.h (i386_register_name): Update.
5565 * mips-tdep.c (mips_register_name): Update
5566 * alpha-tdep.c (alpha_register_name): Update.
5567 * arch-utils.c (legacy_register_name): Update.
5568 * arch-utils.h (legacy_register_name): Update.
5569 * avr-tdep.c (avr_register_name): Update.
5570 * ia64-tdep.c (ia64_register_name): Update.
5571 * i386-tdep.c (i386_register_name): Update.
5572 * sparc-tdep.c (sparc32_register_name): Update.
5573 (sparc64_register_name): Update.
5574 (sparclite_register_name): Update.
5575 (sparclet_register_name): Update.
5576 * sh-tdep.c (sh_generic_register_name): Update.
5577 (sh_sh_register_name): Update.
5578 (sh_sh3_register_name): Update.
5579 (sh_sh3e_register_name): Update.
5580 (sh_sh_dsp_register_name): Update.
5581 (sh_sh3_dsp_register_name): Update.
5582 (sh_sh4_register_name): Update.
5583 (sh_sh64_register_name): Update.
5584 * s390-tdep.c (s390_register_name): Update.
5585 * rs6000-tdep.c (rs6000_register_name): Update.
5586 * ns32k-tdep.c (ns32k_register_name_32082): Update.
5587 (ns32k_register_name_32382): Update.
5588 * d10v-tdep.c (d10v_ts2_register_name): Update.
5589 (d10v_ts3_register_name): Update.
5590 * xstormy16-tdep.c (xstormy16_register_name): Update.
5591 * vax-tdep.c (vax_register_name): Update.
5592 * v850-tdep.c (v850_register_name): Update.
5593 * m68hc11-tdep.c (m68hc11_register_name): Update.
5594 * mn10300-tdep.c (mn10300_generic_register_name): Update.
5595 (am33_register_name): Update.
5596
5597 2002-06-17 Grace Sainsbury <graces@redhat.com>
5598
5599 * m68k-tdep.c: Reindented.
5600
5601 2002-06-17 Andrew Cagney <ac131313@redhat.com>
5602
5603 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
5604 list of predefined types.
5605
5606 2002-06-16 Mark Kettenis <kettenis@gnu.org>
5607
5608 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
5609 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
5610 REGISTER_CONVERT_TO_RAW): Remove defines.
5611 (i386_register_virtual_type, i386_register_convertible,
5612 i386_register_convert_to_virtual, i386_register_convert_to_raw):
5613 Remove prototypes.
5614 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
5615 macros mentioned above.
5616
5617 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
5618 (i386lynx_saved_pc_after_call): Remove prototype.
5619 * i386ly-tdep.c: Include "i386-tdep.h".
5620 (i386lynx_saved_pc_after_call): Make static. Use
5621 read_memory_nobpt instead of read_memory. Use
5622 read_memory_unsigned_integer instead of read_memory_integer.
5623 (i386lynx_init_abi): New function.
5624 (i386lynx_coff_osabi_sniffer): New function.
5625 (_initialize_i386bsd_tdep): New function.
5626
5627 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
5628 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
5629 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
5630 (i386_fix_call_dummy): Remove prototype.
5631 * i386-tdep.c (i386_call_dummy_words): New variable.
5632 (i386_gdbarch_init): Adjust for removal of the
5633 macros mentioned above.
5634
5635 2002-06-15 Andrew Cagney <ac131313@redhat.com>
5636
5637 * command.h (add_setshow_auto_boolean_cmd): Replace
5638 add_set_auto_boolean_cmd.
5639 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
5640 add_set_auto_boolean_cmd.
5641 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
5642 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
5643 mask-address'' command.
5644 (show_mask_address): Add cmd parameter.
5645 * remote.c (add_packet_config_cmd): Update. Change type of
5646 set_func and show_func to cmd_sfunc_ftype.
5647 (_initialize_remote): Update `set remote Z-packet'
5648 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
5649 (show_remote_protocol_e_packet_cmd): Ditto.
5650 (show_remote_protocol_E_packet_cmd): Ditto.
5651 (show_remote_protocol_P_packet_cmd): Ditto.
5652 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
5653 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
5654 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
5655 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
5656 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
5657 (show_remote_protocol_Z_packet_cmd): Ditto.
5658 (show_remote_protocol_binary_download_cmd): Ditto.
5659 (show_remote_cmd): Pass NULL to all of above.
5660
5661 2002-06-15 Mark Kettenis <kettenis@gnu.org>
5662
5663 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
5664 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
5665 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
5666 POP_FRAME): Remove defines.
5667 (i386_push_arguments, i386_store_struct_return,
5668 i386_extract_return_value, i386_store_return_value,
5669 i386_extract_struct_value_address, i386_push_dummy_frame,
5670 i386_pop_frame): Renove prototypes.
5671 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
5672 macros mentioned above.
5673
5674 2002-06-15 Andrew Cagney <ac131313@redhat.com>
5675
5676 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
5677 add_set_boolean_cmd.
5678 (add_setshow_cmd): New function.
5679 * command.h (add_setshow_boolean_cmd): Replace
5680 add_set_boolean_cmd.
5681 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
5682 and ``set rdiromatzero''.
5683 * maint.c (_initialize_maint_cmds): Update commented out code.
5684 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
5685 * target.c (initialize_targets): Update `set
5686 trust-readonly-sections'.
5687 * remote.c (_initialize_remote): Update `set remotebreak'.
5688
5689 2002-06-15 Mark Kettenis <kettenis@gnu.org>
5690
5691 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
5692 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
5693 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
5694 fit into multi-arch framework.
5695 (i386_breakpoint_from_pc): New function.
5696 (i386_gdbarch_init): Adjust for removal of the macros mentioned
5697 above.
5698
5699 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
5700 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
5701 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
5702 (i386_frameless_function_invocation, i386_frame_num_args,
5703 i386_frame_init_saved_regs): Remove prototypes.
5704 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
5705 macros mentioned above.
5706
5707 2002-06-15 Andrew Cagney <ac131313@redhat.com>
5708
5709 * cli/cli-decode.c (set_cmd_cfunc): Update.
5710 (set_cmd_sfunc): Update.
5711 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
5712 (set_cmd_sfunc, set_cmd_cfunc): Update.
5713 * cli/cli-decode.h: Update.
5714
5715 2002-06-15 Mark Kettenis <kettenis@gnu.org>
5716
5717 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
5718 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
5719
5720 2002-06-15 Andrew Cagney <ac131313@redhat.com>
5721
5722 * defs.h (auto_boolean): Declare enum.
5723 * command.h (cmd_auto_boolean): Delete enum.
5724 * mips-tdep.c (mask_address_var): Update.
5725 (mips_mask_address_p): Update.
5726 (show_mask_address): Update.
5727 * remote.c (struct packet_config): Update.
5728 (update_packet_config): Update.
5729 (show_packet_config_cmd): Update.
5730 (packet_ok): Update.
5731 (add_packet_config_cmd): Update.
5732 (_initialize_remote):
5733 * command.h: Update.
5734 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
5735 (do_setshow_command): Update.
5736 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
5737 * cli/cli-decode.h: Update.
5738
5739 2002-06-15 Mark Kettenis <kettenis@gnu.org>
5740
5741 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
5742 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
5743 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
5744 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
5745 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
5746 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
5747
5748 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
5749 list of DJGPP COFF targets.
5750
5751 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
5752 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
5753 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
5754 (FP0_REGNUM): Remove define.
5755 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
5756 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
5757 (i386_register_virtual_size): Remove protoype.
5758 * i386-tdep.c (i386_register_virtual_size): Removed.
5759 (i386_extract_return_value, i386_store_return_value): Use
5760 FP0_REGNUM instead of NUM_FREGS to determine whether the
5761 floating-point registers are available.
5762 (i386_gdbarch_init): Tweak FIXME about FPU registers.
5763 Adjust for removal of macros mentioned above.
5764
5765 2002-06-15 Mark Kettenis <kettenis@gnu.org>
5766
5767 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
5768 comments.
5769 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
5770 Remove prototypes.
5771 (supply_gregset, fill_gregset): Remove use of register keyword and
5772 remove declaration for regmap. Use I386_NUM_GREGS instead of
5773 NUM_REGS and NUM_FREGS.
5774 (FPREGSET_FSAVE_OFFSET): Remove.
5775 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
5776 NUM_FREGS to determine whether the floating-point registers are
5777 available.
5778
5779 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
5780 gnu_store_registers): Replace usage of NUM_GREGS with
5781 I386_NUM_GREGS.
5782
5783 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
5784 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
5785 usage of NUM_GREGS with I386_NUM_GREGS.
5786
5787 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
5788
5789 * i386bsd-nat.c: Include "i386-tdep.h".
5790 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
5791 I386_NUM_GREGS.
5792
5793 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
5794 and associated comment. They no longer make any sense, since we
5795 don't use this file anymore on Linux.
5796
5797 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
5798 * i386-tdep.c (i386_register_offset, i386_register_size): Use
5799 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
5800 elements in these arrays.
5801 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
5802 MAX_NUM_REGS.
5803
5804 2002-06-15 Mark Kettenis <kettenis@gnu.org>
5805
5806 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
5807 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
5808
5809 2002-06-14 Andrew Cagney <cagney@redhat.com>
5810
5811 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
5812 EXTRACT_RETURN_VALUE.
5813 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
5814 EXTRACT_STRUCT_VALUE_ADDRESS.
5815 * gdbarch.h, gdbarch.c: Regenerate.
5816
5817 * values.c (value_being_returned): Handle
5818 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
5819 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
5820
5821 * arm-linux-tdep.c (arm_linux_init_abi): Update.
5822 * arm-tdep.c (arm_gdbarch_init): Update.
5823 * avr-tdep.c (avr_gdbarch_init): Update.
5824 * cris-tdep.c (cris_gdbarch_init): Update.
5825 * d10v-tdep.c (d10v_gdbarch_init): Update.
5826 * ia64-tdep.c (ia64_gdbarch_init): Update.
5827 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5828 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5829 * s390-tdep.c (s390_gdbarch_init): Update.
5830 * sh-tdep.c (sh_gdbarch_init): Update.
5831 * s390-tdep.c (s390_gdbarch_init): Update.
5832 * sparc-tdep.c (sparc_gdbarch_init): Update.
5833 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5834 * v850-tdep.c (v850_gdbarch_init): Update.
5835 * vax-tdep.c (vax_gdbarch_init): Update.
5836 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
5837 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5838
5839 * config/arc/tm-arc.h: Update.
5840 * config/d30v/tm-d30v.h: Update.
5841 * config/fr30/tm-fr30.h: Update.
5842 * config/h8300/tm-h8300.h: Update.
5843 * config/h8500/tm-h8500.h: Update.
5844 * config/i386/tm-i386.h: Update.
5845 * config/i386/tm-ptx.h: Update.
5846 * config/i386/tm-symmetry.h: Update.
5847 * config/i960/tm-i960.h: Update.
5848 * config/m32r/tm-m32r.h: Update.
5849 * config/m68k/tm-delta68.h: Update.
5850 * config/m68k/tm-linux.h: Update.
5851 * config/m68k/tm-m68k.h: Update.
5852 * config/m88k/tm-m88k.h: Update.
5853 * config/mcore/tm-mcore.h: Update.
5854 * config/mips/tm-mips.h: Update.
5855 * config/mn10200/tm-mn10200.h: Update.
5856 * config/pa/tm-hppa.h: Update.
5857 * config/pa/tm-hppa64.h: Update.
5858 * config/sparc/tm-sp64.h: Update.
5859 * config/sparc/tm-sparc.h: Update.
5860 * config/sparc/tm-sparclet.h: Update.
5861 * config/z8k/tm-z8k.h: Update.
5862
5863 2002-06-14 Andrew Cagney <cagney@redhat.com>
5864
5865 * Makefile.in (i386_linux_tdep_h): Define.
5866 (i386_tdep_h, i387_tdep_h): Define.
5867 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
5868 $(i386_tdep_h) and $(i387_tdep_h).
5869 * i386-linux-nat.c: Include "i386-linux-tdep.h".
5870
5871 2002-06-14 Mark Kettenis <kettenis@gnu.org>
5872
5873 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
5874 Already covered by the default.
5875
5876 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
5877 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
5878 (i386_gdbarch_init): Initialize long_double_format and long_double
5879 bit.
5880
5881 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
5882 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
5883 Move these to ...
5884 * config/i386/i386sol2.mh: ... here.
5885 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
5886 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
5887 (SIGCONTEXT_PC_OFFSET): Remove define.
5888 (IN_SIGTRAMP): Remove define.
5889 * i386-sol2-tdep.c: New file.
5890
5891 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
5892 * config/i386/tm-i386nw.h: Removed.
5893
5894 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
5895 USE_STRUCT_CONVENTION): Remove defines.
5896 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5897 (get_longjmp_target): Remove prototype.
5898 (IN_SIGTRAMP): Remove define.
5899 (i386bsd_in_sigtramp): Remove prototype.
5900 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
5901 function. Update comment accordingly
5902 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
5903 (FRAME_SAVED_PC): Remove define.
5904 (i386bsd_frame_saved_pc): Remove prototype.
5905 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
5906 GET_LONGJMP_TARGET): Remove defines.
5907 (get_longjmp_target): Remove prototype.
5908 (IN_SIGTRAMP): Remove define.
5909 (i386bsd_in_sigtramp): Remove prototype.
5910 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
5911 function. Update comment accordingly
5912 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
5913 (FRAME_SAVED_PC): Remove define.
5914 (i386bsd_frame_saved_pc): Remove prototype.
5915 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
5916 Remove prototype.
5917 (USE_STRUCT_CONVENTION): Remove prototype.
5918 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
5919 declaration.
5920 (_initialize_i386bsd_nat): Revise logic to determine some
5921 constants at compile time when compiling a native GDB. Warn if
5922 things don't match up with what we expect.
5923 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
5924 Remove variables.
5925 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
5926 to use date stored in `struct gdbarch_tdep'.
5927 (i386bsd_sigcontext_offset): Remove varaible.
5928 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
5929 stored in `struct gdbarch_tdep'.
5930 (i386bsd_frame_saved_pc): Make static.
5931 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
5932 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
5933 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
5934 i386fbsd4_sc_pc_offset): New variables.
5935 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
5936 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
5937 functions.
5938 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
5939 functions.
5940 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
5941 Modify the value of i386fbsd_sigtramp_start and
5942 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
5943 i386fbsd_sigtramp_end.
5944 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
5945 function.
5946
5947 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
5948 define to i386-linux-tdep.h.
5949 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
5950 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
5951 defines.
5952 (i386_linux_register_name, i386_linux_register_byte,
5953 i386_linux_register_raw_size): Remove prototypes.
5954 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
5955 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
5956 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
5957 TARGET_WRITE_PC): Remove defines.
5958 (i386_linux_in_sigtramp, i386_linux_frame_chain,
5959 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
5960 i386_linux_write_pc): Remove prototypes.
5961 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5962 (get_longjmp_target): Remove prototype.
5963 * i386-linux-tdep.h: New file.
5964 * i386-linux-nat.c: Include "i386-linux-tdep.h".
5965 * i386-linux-tdep.c: Include "i386-tdep.h" and
5966 "i386-linux-tdep.h".
5967 (i386_linux_register_name, i386_linux_register_byte,
5968 i386_linux_register_raw_size, i386_linux_in_sigtramp,
5969 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
5970 Make static.
5971 (i386_linux_init_abi): New function.
5972 (_initialize_i386_linux_tdep): New function.
5973
5974 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
5975 (i386_saved_pc_after_call): Remove prototype.
5976 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
5977 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
5978 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
5979 (i386_register_name, i386_stab_reg_to_regnum,
5980 i386_dwarf_reg_to_regnum): Remove prototypes.
5981 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
5982 SIZEOF_SSE_REGS): Remove defines.
5983 (REGISTER_BYTES): Remove define.
5984 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
5985 (i386_register_byte, i386_register_raw_size): Remove prototypes.
5986 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
5987 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
5988 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
5989 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
5990 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
5991 (get_longjmp_target): Remove prototype.
5992 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
5993 (sigtramp_saved_pc): Remove define.
5994 (i386v4_sigtramp_saved_pc): Remove prototype.
5995 * config/i386/tm-go32.h (FRAME_CHAIN,
5996 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
5997 (i386go32_frame_saved_pc): Remove prototype.
5998 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5999 (get_longjmp_target): Remove prototype.
6000 * i386-tdep.h: Include "osabi.h".
6001 (enum i386_abi): Removed.
6002 (enum struct_return): New enum.
6003 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
6004 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
6005 sc_pc_offset members.
6006 (i386_gdbarch_register_os_abi): Remove prototype.
6007 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
6008 I386_SSE_NUM_REGS): New defines.
6009 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
6010 I386_SSE_SIZEOF_REGS): New defines.
6011 (i386_register_name, i386_register_byte, i386_register_raw_size):
6012 New prototypes.
6013 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
6014 (i386bsd_sigtramp_saved_pc): New prototype.
6015 * i386-tdep.c: Don't include "elf-bfd.h".
6016 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
6017 i386_frame_chain, i386_saved_pc_after_call): Make static.
6018 (i386_frame_saved_pc): Rewrite to call architecture dependent
6019 function to deal with signal handlers. Make static.
6020 (i386go32_frame_saved_pc): Removed.
6021 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
6022 Removed.
6023 (i386_get_longjmp_target): New function.
6024 (default_struct_convention, pcc_struct_convention,
6025 reg_struct_convention, valid_conventions, struct_convention): New
6026 variables.
6027 (i386_use_struct_convention): New function.
6028 (i386v4_sigtramp_saved_pc): Renamed to
6029 i386_svr4_sigtramp_saved_pc. Made static. Moved.
6030 (i386_pc_in_sigtramp): New function.
6031 (i386_abi_names): Removed.
6032 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
6033 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
6034 Removed.
6035 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
6036 i386_gdbarch_register_os_abi): Removed.
6037 (struct i386_abi_handler): Removed.
6038 (i386_abi_handler_list): Removed.
6039 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
6040 functions.
6041 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
6042 i386_nw_init_abi): New functions.
6043 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
6044 Use set_gdbarch_xxx() calls instead of relying on macros for a
6045 number of calls.
6046 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
6047 (_initialize_i386_tdep): Add new 'struct-convcention' command.
6048 Register the various architecture variants defined in this file.
6049
6050 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
6051
6052 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
6053 (struct main_type): Remove arg_types member. Update comments for
6054 struct field.
6055 (TYPE_ARG_TYPES): Remove.
6056 (TYPE_FN_FIELD_ARGS): Update.
6057 (smash_to_method_type): Update prototype.
6058
6059 * c-typeprint.c (cp_type_print_method_args): Take method type
6060 instead of argument list. Use new argument layout. Simplify.
6061 (c_type_print_args): Use new argument layout. Simplify.
6062 (c_type_print_base): Update call to cp_type_print_method_args.
6063 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
6064 argument; use die->type instead. Update call to
6065 smash_to_method_type.
6066 (read_structure_scope): Update call to dwarf2_add_member_fn.
6067 * gdbtypes.c (allocate_stub_method): Update comment.
6068 (smash_to_method_type): Take new NARGS and VARARGS arguments.
6069 Use new argument layout.
6070 (check_stub_method): Use new argument layout. Don't count
6071 void as an argument.
6072 (print_arg_types): Update comments. Use new argument layout.
6073 (recursive_dump_type): Don't print arg_types member.
6074 * hpread.c (hpread_read_struct_type): Use new argument layout.
6075 (fixup_class_method_type): Likewise.
6076 (hpread_type_lookup): Likewise.
6077 * stabsread.c (read_type): Update calls to read_args and
6078 smash_to_method_type.
6079 (read_args): Use new argument layout. Simplify.
6080 * valops.c (typecmp): Use new argument layout. Update parameters
6081 and comments. Simplify.
6082 (hand_function_call): Use new argument layout.
6083 (search_struct_method): Update call to typecmp.
6084 (find_overload_match): Use new argument layout.
6085
6086 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
6087
6088 * NEWS: Mention multithreaded debug support for gdbserver.
6089
6090 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
6091
6092 * MAINTAINERS: Mention NEWS.
6093
6094 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
6095
6096 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
6097 (struct mips_objfile_private, compare_pdr_entries): New.
6098 (non_heuristic_proc_desc): Read the ".pdr" section if it
6099 is present.
6100
6101 2002-06-12 Andrew Cagney <ac131313@redhat.com>
6102
6103 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
6104 (arm_debug): New static variable.
6105 (_initialize_arm_tdep): Add ``set debug arm'' command.
6106
6107 2002-06-12 Andrew Cagney <ac131313@redhat.com>
6108
6109 * Makefile.in (sim_arm_h): Define.
6110 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
6111 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
6112 (arm_register_sim_regno): New function, map an internal REGNUM
6113 onto a simulator register number.
6114 (arm_gdbarch_init): Set register_sim_regno.
6115
6116 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
6117
6118 * MAINTAINERS: Add self.
6119
6120 2002-06-11 Jim Blandy <jimb@redhat.com>
6121
6122 * source.c (source_info): Mention whether the symtab has
6123 information about preprocessor macros.
6124
6125 Call the command `info macro', not `show macro'.
6126 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
6127 Fix error message.
6128 (_initialize_macrocmd): Register `info_macro_command' in
6129 `infolist', not `showlist'.
6130
6131 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
6132
6133 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
6134 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
6135 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
6136 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
6137 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
6138 unconditionally.
6139 (set_mipsfpu_single_command, set_mipsfpu_double_command)
6140 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
6141 (_initialize_mips_tdep): Remove dead code.
6142 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
6143 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
6144 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
6145 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
6146 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
6147 MIPS_LAST_FP_ARG_REGNUM): Remove.
6148
6149 2002-06-11 Michal Ludvig <mludvig@suse.cz>
6150
6151 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
6152 (unwind_tmp_obstack_free, parse_frame_info)
6153 (update_context, cfi_read_fp, cfi_write_fp)
6154 (cfi_frame_chain, cfi_init_extra_frame_info)
6155 (cfi_virtual_frame_pointer): Use the above function.
6156 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
6157
6158 2002-06-11 Corinna Vinschen <vinschen@redhat.com>
6159
6160 * v850-tdep.c (v850_type_is_scalar): New function.
6161 (v850_use_struct_convention): Match current gcc implementation
6162 as close as possible.
6163 (v850_push_arguments): Fix stack_offset handling. Don't write
6164 struct_addr into register. This is done by v850_store_struct_return.
6165 (v850_extract_return_value): Care for structs.
6166 (v850_store_return_value): Ditto.
6167 (v850_store_struct_return): Actually write address.
6168
6169 2002-06-11 Michal Ludvig <mludvig@suse.cz>
6170
6171 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
6172 without debug information too.
6173
6174 2002-06-10 Andrew Cagney <ac131313@redhat.com>
6175
6176 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
6177 Make multi-arch pure.
6178 * gdbarch.h, gdbarch.c: Re-generate.
6179 * arm-tdep.c (arm_print_float_info): Update.
6180 * arch-utils.h (default_print_float_info): Update.
6181 * arch-utils.c (default_print_float_info): Update.
6182 * infcmd.c (float_info): Update call.
6183
6184 2002-06-10 Andrew Cagney <ac131313@redhat.com>
6185
6186 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
6187 the front of the initialize list.
6188
6189 2002-06-10 Andrew Cagney <ac131313@redhat.com>
6190
6191 * infrun.c (struct inferior_status): Replace fields
6192 selected_frame_address and selected_level with field
6193 selected_frame_id.
6194 (save_inferior_status): Update. Use get_frame_id.
6195 (struct restore_selected_frame_args): Delete.
6196 (restore_selected_frame): Update. Use frame_find_by_id.
6197 (restore_inferior_status): Update.
6198
6199 * breakpoint.h (struct breakpoint): Change type of
6200 watchpoint_frame to frame_id.
6201 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
6202 call to get_current_frame.
6203 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
6204 get_current_frame.
6205 (watchpoint_check): Use frame_find_by_id.
6206
6207 * frame.h (record_selected_frame): Delete declaration.
6208 * stack.c (record_selected_frame): Delete function.
6209
6210 * frame.h (struct frame_id): Define.
6211 (get_frame_id): Declare.
6212 (frame_find_by_id): Declare.
6213 * frame.c (frame_find_by_id): New function.
6214 (get_frame_id): New function.
6215
6216 2002-06-10 Andrey Volkov <avolkov@transas.com>
6217
6218 * ser-e7kpc.c: Fix duplicated define and call of
6219 _initialize_ser_e7000pc
6220
6221 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
6222
6223 * signals/signals.c (target_signal_from_host): Fix #ifdef
6224 SIGRTMIN case.
6225 (do_target_signal_to_host): Likewise.
6226
6227 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
6228
6229 * mips-tdep.c (mips_find_abi_section): New function.
6230 (mips_gdbarch_init): Call it.
6231
6232 2002-06-09 Mark Kettenis <kettenis@gnu.org>
6233
6234 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
6235 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
6236 after Andrew's 2002-06-08 gdbarch change.
6237
6238 2002-06-09 Mark Kettenis <kettenis@gnu.org>
6239
6240 * i386-linux-nat.c (suppy_gregset): Don't supply
6241 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
6242 register cache.
6243 (fill_gregset): Don't fetch it under the same circumstances.
6244
6245 2002-06-09 Andrew Cagney <cagney@redhat.com>
6246
6247 * Makefile.in (callback_h): Define.
6248 (remote_sim_h): Update path to remote-sim.h.
6249 (remote-rdp.o): Add $(callback_h).
6250 (remote-sim.o): Use $(callback_h).
6251 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
6252 * remote-rdp.c: Include "gdb/callback.h".
6253
6254 2002-06-09 Mark Kettenis <kettenis@gnu.org>
6255
6256 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
6257 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
6258
6259 2002-06-08 Andrew Cagney <ac131313@redhat.com>
6260
6261 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
6262 * rdi-share/serpardr.c: Ditto.
6263 * rdi-share/unixcomm.c: Ditto.
6264 * rdi-share/serdrv.c: Ditto.
6265 * rdi-share/hostchan.h: Ditto.
6266 * rdi-share/hostchan.c: Ditto.
6267 * rdi-share/host.h: Ditto.
6268 * rdi-share/devsw.c: Ditto.
6269
6270 * objfiles.h: Change type of obj_private to void pointer.
6271 * pa64solib.c: Update copyright. Don't include "assert.h", use
6272 strcmp instead of STREQ, use LONGEST, do not use PTR
6273 * somsolib.c: Ditto.
6274
6275 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
6276 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
6277 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
6278
6279 2002-06-08 Andrew Cagney <ac131313@redhat.com>
6280
6281 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
6282 (default_get_saved_register): Delete function.
6283 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
6284 generic_unwind_get_saved_register.
6285 * gdbarch.h, gdbarch.c: Re-generate.
6286
6287 2002-06-08 Andrew Cagney <ac131313@redhat.com>
6288
6289 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
6290 generic_func_frame_chain_valid.
6291 * gdbarch.h, gdbarch.c: Re-generate.
6292 * blockframe.c (generic_func_frame_chain_valid): Only check
6293 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
6294 passing FP to PC_IN_CALL_DUMMY.
6295 Fix PR gdb/360.
6296
6297 2002-06-08 Andrew Cagney <ac131313@redhat.com>
6298
6299 * gdbarch.sh (struct gdbarch_data): Add field init_p.
6300 (register_gdbarch_data): Initialize init_p.
6301 (gdbarch_data): Initialize data pointer using the init function.
6302 (init_gdbarch_data): Delete function.
6303 (gdbarch_update_p): Update.
6304 (initialize_non_multiarch): Update.
6305 (struct gdbarch): Add field initialized_p.
6306 * gdbarch.h, gdbarch.c: Re-generate.
6307
6308 2002-06-07 Michal Ludvig <mludvig@suse.cz>
6309
6310 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
6311 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
6312 better do the things actually here.
6313 * x86-64-tdep.c (x86_64_register_name2nr): New.
6314 (x86_64_register_name): Renamed to x86_64_register_nr2name.
6315 (x86_64_gdbarch_init): Respect the above change.
6316 * x86-64-tdep.h (x86_64_register_name2nr)
6317 (x86_64_register_nr2name): Add prototypes.
6318 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
6319
6320 2002-06-06 Michael Snyder <msnyder@redhat.com>
6321
6322 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
6323 Delete extra braces and re-indent.
6324 (d10v_store_return_value): Char return values
6325 must be shifted over by one byte in R0.
6326 (d10v_extract_return_value): Delete extra braces, re-indent.
6327
6328 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
6329
6330 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
6331 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
6332 (d10v_integer_to_address): Rewrite.
6333 (d10v_frame_init_saved_regs): When reading fp and sp registers use
6334 the d10v specific functions which take care of converting to the
6335 correct space.
6336
6337 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
6338
6339 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
6340 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
6341
6342 2002-06-02 Andrew Cagney <ac131313@redhat.com>
6343
6344 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
6345 includes.
6346 * config/tm-linux.h: Ditto.
6347 * config/alpha/tm-alphalinux.h: Ditto.
6348 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
6349 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
6350 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
6351 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
6352 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
6353 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
6354 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
6355 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
6356 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
6357 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
6358 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
6359 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
6360 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
6361 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
6362 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
6363 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
6364 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
6365 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
6366 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
6367 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
6368 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
6369 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
6370 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
6371 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
6372 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
6373 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
6374 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
6375 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
6376 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
6377 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
6378 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
6379 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
6380 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
6381 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
6382 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
6383 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
6384 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
6385
6386 2002-05-04 Aidan Skinner <aidan@velvet.net>
6387
6388 * ada-exp.tab.c: New file
6389 * ada-exp.y: New file
6390 * ada-lang.c: New file
6391 * ada-lang.h: New file
6392 * ada-lex.c: New file
6393 * ada-lex.l: New file
6394 * ada-tasks.c: New file
6395 * ada-typeprint.c: New file
6396 * ada-valprint.c: New file
6397
6398 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
6399
6400 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
6401 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
6402
6403 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
6404
6405 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
6406 insetead of ppc-linux-tdep.o.
6407 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
6408 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
6409
6410 2002-06-02 Andrew Cagney <ac131313@redhat.com>
6411
6412 2002-05-07 Christian Groessler <chris@groessler.org>
6413 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
6414 bit register contents for little endian hosts.
6415
6416 2002-06-01 Andrew Cagney <ac131313@redhat.com>
6417
6418 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
6419 any maintainer.
6420
6421 2002-06-01 Andrew Cagney <ac131313@redhat.com>
6422
6423 * gdbarch.h: Regenerate.
6424
6425 2002-06-01 Andrew Cagney <ac131313@redhat.com>
6426
6427 * MAINTAINERS: Add everyone to write-after-approval list.
6428
6429 2002-06-01 Andrew Cagney <ac131313@redhat.com>
6430
6431 * stack.c (frame_info): Use frame_register_unwind instead of
6432 saved_regs. Mention when the SP is on the stack or in a register.
6433
6434 * frame.h (frame_register_unwind_ftype): Define. Document.
6435 (struct frame_info): Add field register_unwind and
6436 register_unwind_cache.
6437 (frame_register_unwind): Declare.
6438 (generic_unwind_get_saved_register): Declare.
6439
6440 * frame.c (frame_register_unwind): New function.
6441 (generic_unwind_get_saved_register): New function.
6442
6443 * blockframe.c (generic_call_dummy_register_unwind): New function.
6444 (frame_saved_regs_register_unwind): New function.
6445 (set_unwind_by_pc): New function.
6446 (create_new_frame): New function.
6447 (get_prev_frame): New function.
6448
6449 2002-05-30 Andrew Cagney <ac131313@redhat.com>
6450
6451 * a29k-share/: Delete directory.
6452 * remote-vx29k.c: Delete file.
6453
6454 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
6455
6456 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
6457 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
6458
6459 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
6460
6461 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
6462 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
6463 (sparc64nbsd-nat.o)
6464 (sparcnbsd-nat.o)
6465 (sparcnbsd-tdep.o): New dependency lists.
6466 * NEWS: Note new UltraSPARC NetBSD native configuration.
6467 * configure.host (sparc64-*-netbsd*): New host.
6468 * configure.tgt (sparc-*-netbsdelf*)
6469 (sparc-*-netbsd*): Set gdb_target to nbsd.
6470 (sparc64-*-netbsd*): New target.
6471 * sparc64nbsd-nat.c: New file.
6472 * sparcnbsd-nat.c: New file.
6473 * sparcnbsd-tdep.c: New file.
6474 * sparcnbsd-tdep.h: New file.
6475 * config/sparc/nbsd.mt: New file.
6476 * config/sparc/nbsd64.mh: New file.
6477 * config/sparc/nbsd64.mt: New file.
6478 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
6479 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
6480 (HOST_IPC): Remove.
6481 * config/sparc/nbsdaout.mt: Remove.
6482 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
6483 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
6484 (HOST_IPC): Remove.
6485 * config/sparc/nbsdelf.mt: Remove.
6486 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
6487 sparc-nat.c compatiblity defines.
6488 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
6489 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
6490 * config/sparc/tm-nbsd64.h: New file.
6491 * config/sparc/tm-nbsdaout.h: Remove.
6492 * config/sparc/xm-nbsd.h: Remove.
6493
6494 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
6495
6496 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
6497 * sparc-tdep.c: Include osabi.h.
6498 (gdbarch_tdep): Add osabi member.
6499 (_initialize_sparc_tdep): Use gdbarch_register.
6500 (sparc_gdbarch_init): Use generic OS ABI framework.
6501 (sparc_dump_tdep): New function.
6502
6503 2002-05-30 Kevin Buettner <kevinb@redhat.com>
6504
6505 * corefile.c (do_captured_read_memory_integer): Return non-zero
6506 result.
6507 (safe_read_memory_integer): Copy result of memory read when
6508 status is non-zero. Also, add comments.
6509
6510 2002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
6511
6512 * Makefile.in (ppc_tdep_h): Define.
6513 (ppc-linux-nat.o)
6514 (ppc-linux-tdep.o)
6515 (rs6000-tdep.o): Use $(ppc_tdep_h).
6516 (ppc-sysv-tdep.o)
6517 (ppcnbsd-nat.o)
6518 (ppcnbsd-tdep.o): New dependency lists.
6519 * ppc-tdep.h: Use generic OS ABI framework.
6520 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
6521 (ppc_linux_init_abi): New functions.
6522 (ppc_sysv_abi_broken_use_struct_convention)
6523 (ppc_sysv_abi_use_struct_convention)
6524 (ppc_sysv_abi_push_arguments): Move to...
6525 * ppc-sysv-tdep.c: ...here.
6526 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
6527 * rs6000-tdep.c (process_note_abi_tag_sections)
6528 (get_elfosabi): Remove.
6529 (rs6000_gdbarch_init): Use generic OS ABI framework.
6530 (rs6000_dump_tdep): New function.
6531 (_initialize_rs6000_tdep): Use gdbarch_register.
6532 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
6533 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
6534 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
6535 of ppc-linux-tdep.o.
6536 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
6537 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
6538 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
6539 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
6540 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
6541 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
6542
6543 2002-05-29 Jim Blandy <jimb@redhat.com>
6544
6545 * macroscope.c (default_macro_scope): Put `void' in empty argument
6546 list.
6547
6548 2002-05-29 Andrew Cagney <ac131313@redhat.com>
6549
6550 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
6551 * arch-utils.c: Include "sim-regno.h".
6552 * gdbarch.sh: Don't include "sim-regno.h".
6553 * gdbarch.h, gdbarch.c: Regenerate.
6554 * sim-regno.h (legacy_register_sim_regno): Move declaration from
6555 here.
6556 * arch-utils.h (legacy_register_sim_regno): To here.
6557 * remote-sim.c (legacy_register_sim_regno): Move function from
6558 here.
6559 * arch-utils.c (legacy_register_sim_regno): To here.
6560
6561 2002-05-28 Andrew Cagney <ac131313@redhat.com>
6562
6563 * sim-regno.h: New file.
6564 * Makefile.in (sim_regno_h): Define.
6565 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
6566 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
6567 (legacy_register_sim_regno): New function.
6568 (one2one_register_sim_regno): New function.
6569 (gdbsim_fetch_register): Rewrite.
6570 (gdbsim_store_register): Only store a register when
6571 REGISTER_SIM_REGNO is valid.
6572 * d10v-tdep.c: Include "sim-regno.h".
6573 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
6574 (d10v_ts3_register_sim_regno): Ditto.
6575 * gdbarch.sh: Include "sim-regno.h".
6576 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
6577 * gdbarch.h, gdbarch.c: Regenerate.
6578 * arch-utils.h (default_register_sim_regno): Delete declaration.
6579 * arch-utils.c (default_register_sim_regno): Delete function.
6580
6581 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
6582
6583 * ppcnbsd-nat.c: Rewrite.
6584 * ppcnbsd-tdep.c: New file.
6585 * ppcnbsd-tdep.h: New file.
6586 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
6587 solib.o, and solib-svr4.o.
6588 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
6589 nbsd-tdep.o, and corelow.o.
6590
6591 2002-05-28 Andrew Cagney <ac131313@redhat.com>
6592
6593 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
6594 `tr' and `sed'. Mention that `broken' targets are not expected to
6595 build.
6596
6597 2002-05-27 Michal Ludvig <mludvig@suse.cz>
6598
6599 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
6600 Let PC point right after the prologue before looking up symbols.
6601
6602 2002-05-27 Martin M. Hunt <hunt@redhat.com>
6603
6604 * i386-tdep.c (i386_register_virtual_type): Return
6605 builtin_type_vec128i for SSE registers.
6606
6607 * gdbtypes.h (builtin_type_vec128i): Declare.
6608
6609 * gdbtypes.c (build_builtin_type_vec128i): New function.
6610 (builtin_type_v2_double, builtin_type_v4_int64): New types.
6611 (builtin_type_vec128i): New type for SSE2 128-bit registers.
6612 (build_gdbtypes): Initialize new builtin vector types.
6613 (_initialize_gdbtypes): Register new vector types with gdbarch.
6614
6615 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6616
6617 * MAINTAINERS: ns32k is not longer an obsolete candidate,
6618 since it has been multi-arch'd.
6619 * NEWS: Note that ns32k-*-* is now partial multi-arch.
6620 Move Alpha and VAX multi-arch news entries to same section
6621 as other multi-arch news.
6622
6623 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6624
6625 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
6626 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
6627 static. Rename some register numbers to put them in ns32k-tdep
6628 private namespace.
6629 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
6630 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
6631 functions.
6632 (_initialize_ns32k_tdep): Use gdbarch_register.
6633 * ns32k-tdep.h: New file.
6634 * ns32knbsd-tdep.c: New file.
6635 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
6636 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
6637 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
6638 REGISTER_BYTES, REGISTER_BYTE): Remove.
6639 * config/ns32k/tm-ns32k.h: New file.
6640 * config/ns32k/tm-umax.h: Remove.
6641
6642 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6643
6644 * ns32k-tdep.c (ns32k_saved_pc_after_call,
6645 ns32k_store_struct_return, ns32k_extract_return_value,
6646 ns32k_store_return_value, ns32k_extract_struct_value_address): New
6647 functions.
6648 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
6649 ns32k_saved_pc_after_call.
6650 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
6651 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
6652 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
6653 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
6654 ns32k_extract_struct_value_address.
6655
6656 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6657
6658 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
6659 ns32k_fix_call_dummy): New.
6660 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
6661 ns32k_call_dummy_words.
6662 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
6663 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
6664 CALL_DUMMY_NARGS): Remove.
6665 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
6666
6667 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6668
6669 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
6670 ns32k_frame_saved_pc, ns32k_frame_args_address,
6671 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
6672 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
6673 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
6674 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
6675 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
6676 (BREAKPOINT): Remove..
6677 (FRAME_CHAIN): Define as ns32k_frame_chain.
6678 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
6679 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
6680 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
6681 (FRAME_FIND_SAVED_REGS): Remove.
6682 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
6683 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
6684 (POP_FRAME): Define as ns32k_pop_frame.
6685
6686 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6687
6688 * ns32k-tdep.c (ns32k_register_byte_32082,
6689 ns32k_register_byte_32382, ns32k_register_raw_size,
6690 ns32k_register_virtual_size, ns32k_register_virtual_type): New
6691 functions.
6692 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
6693 ns32k_register_byte_32382.
6694 * config/ns32k/tm-umax.h: Update copyright years.
6695 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
6696 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
6697 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
6698 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
6699 (ns32k_get_enter_addr): Fix prototype.
6700
6701 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6702
6703 * ns32k-tdep.c: Update copyright years.
6704 (ns32k_register_name_32082): New function.
6705 (ns32k_register_name_32382): Ditto.
6706 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
6707 (REGISTER_NAME): Define as ns32k_register_name_32382.
6708 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
6709 (REGISTER_NAME): Define as ns32k_register_name_32082.
6710
6711 2002-05-24 Jim Blandy <jimb@redhat.com>
6712
6713 * dwarf2read.c (free_line_header): Use xfree, not free.
6714
6715 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
6716
6717 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
6718 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
6719
6720 2002-05-23 Andrew Cagney <ac131313@redhat.com>
6721
6722 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
6723
6724 2002-05-23 Andrew Cagney <ac131313@redhat.com>
6725
6726 From Ross Alexander at NEC Europe:
6727 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
6728
6729 2002-05-23 Michael Snyder <msnyder@redhat.com>
6730
6731 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
6732 for input, rather than parse_and_eval_address.
6733
6734 2002-05-23 Andrew Cagney <ac131313@redhat.com>
6735
6736 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
6737 * Makefile.in (sim_d10v_h): Update definition.
6738
6739 2002-05-24 Andrew Cagney <cagney@redhat.com>
6740
6741 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
6742 change `2002-05-22 Michael Snyder' below.
6743 (d10v_push_arguments): Ditto.
6744 (d10v_extract_return_value): Ditto.
6745
6746 2002-05-23 Jim Blandy <jimb@redhat.com>
6747
6748 * macrotab.c (check_for_redefinition): Don't complain if the new
6749 definition is the same as the previous one. Take more arguments
6750 to allow the comparison.
6751 (macro_define_object, macro_define_function): Pass more arguments
6752 to check_for_redefinition.
6753
6754 2002-05-22 Michael Snyder <msnyder@redhat.com>
6755
6756 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
6757 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
6758 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
6759 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
6760 Don't bail if return_pc is PC_IN_CALL_DUMMY.
6761 Add a temp variable to save a call (and a memory read).
6762 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
6763 if possible (so that PC_IN_CALL_DUMMY will work).
6764
6765 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
6766
6767 * MAINTAINERS: Remove status `OBSOLETE' from v850.
6768
6769 2002-05-22 Michal Ludvig <mludvig@suse.cz>
6770
6771 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
6772 fde->cie_ptr.
6773 (dwarf2_build_frame_info): Corrected handling of eh_frame.
6774 (dwarf2_build_frame_info): Add offset to fde->initial_location
6775 so that frames of shared libraries are mapped correctly.
6776 (execute_stack_op): Change type of 'result' from ULONGEST to
6777 CORE_ADDR.
6778
6779 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
6780
6781 * config/alpha/tm-nbsd.h: Include solib.h.
6782
6783 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
6784
6785 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
6786 assumptions about the host's byte order.
6787
6788 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
6789
6790 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
6791 to dependency list.
6792 * alphanbsd-tdep.c: Include solib-svr4.h.
6793 * shnbsd-tdep.c: Ditto.
6794
6795 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
6796
6797 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
6798 nbsd-tdep.h to dependency list.
6799 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
6800 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
6801 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
6802 nbsdaout.mh and nbsdelf.mh consistently.
6803 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
6804 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
6805 nbsdaout.mt and nbsdelf.mh consistently.
6806 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
6807 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
6808 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
6809 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
6810 a.out shared library stuff from here...
6811 * config/nm-nbsdaout.h: ...to here.
6812 * config/tm-nbsd.h: Remove.
6813 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
6814 * config/arm/nbsd.mh: Remove.
6815 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
6816 nbsd-tdep.o.
6817 * config/arm/nbsdaout.mh: New file.
6818 * config/arm/nbsdelf.mh: New file.
6819 * config/arm/nm-nbsdaout.h: New file.
6820 * config/i386/nbsd.mh: Remove.
6821 * config/i386/nbsd.mt: Remove.
6822 * config/i386/nbsdaout.mh: New file.
6823 * config/i386/nbsdaout.mt: New file.
6824 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
6825 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
6826 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
6827 i386_register_u_addr): Remove.
6828 * config/i386/nm-nbsdaout.h: New file.
6829 * config/i386/nm-nbsdelf.h: Remove.
6830 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
6831 (USE_STRUCT_CONVENTION): Remove.
6832 * config/i386/tm-nbsdaout.h: New file.
6833 * config/i386/tm-nbsdelf.h: Remove.
6834 * config/m68k/nbsd.mh: Remove.
6835 * config/m68k/nbsd.mt: Remove.
6836 * config/m68k/nbsdaout.mh: New file.
6837 * config/m68k/nbsdaout.mt: New file.
6838 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
6839 * config/m68k/nm-nbsdaout.h: New file.
6840 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
6841 (IN_SOLIB_CALL_TRAMPOLINE): Define.
6842 * config/ns32k/nbsd.mh: Remove.
6843 * config/ns32k/nbsd.mt: Remove.
6844 * config/ns32k/nbsdaout.mh: New file.
6845 * config/ns32k/nbsdaout.mt: New file.
6846 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
6847 * config/ns32k/nm-nbsdaout.h: New file.
6848 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
6849 (IN_SOLIB_CALL_TRAMPOLINE): Define.
6850 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
6851 (SVR4_SHARED_LIBS): Remove.
6852 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
6853 * config/sparc/nbsd.mh: Remove.
6854 * config/sparc/nbsd.mt: Remove.
6855 * config/sparc/nbsdaout.mh: New file.
6856 * config/sparc/nbsdaout.mt: New file.
6857 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
6858 * config/sparc/nbsdelf.mt: New file.
6859 * config/sparc/nm-nbsdaout.h: New file.
6860 * config/sparc/nm-nbsdelf.h: Remove.
6861 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
6862 * config/sparc/tm-nbsdaout.h: New file.
6863
6864 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6865
6866 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
6867 mipsnbsd-tdep.c
6868 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
6869
6870 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6871
6872 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
6873 shnbsd-nat.c.
6874 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
6875
6876 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6877
6878 * NEWS: Note new MIPS NetBSD native configuration.
6879 * configure.host (mips*-*-netbsd*): New host.
6880 * configure.tgt (mips*-*-netbsd*): New target.
6881 * mipsnbsd-nat.c: New file.
6882 * mipsnbsd-tdep.c: New file.
6883 * mipsnbsd-tdep.h: New file.
6884 * config/mips/nbsd.mh: New file.
6885 * config/mips/nbsd.mt: New file.
6886 * config/mips/nm-nbsd.h: New file.
6887 * config/mips/tm-nbsd.h: New file.
6888
6889 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6890
6891 * Makefile.in (SFILES): Add osabi.c.
6892 (COMMON_OBS): Add osabi.o.
6893 (osabi.o): New dependency list.
6894 * osabi.c: New file.
6895 * osabi.h: New file.
6896 * doc/gdbint.texinfo: Document new generic OS ABI framework.
6897
6898 * Makefile.in (alpha_tdep_h): Define and use instead of
6899 alpha-tdep.h.
6900 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
6901 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
6902 Remove.
6903 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
6904 * alpha-tdep.h: Include osabi.h.
6905 (alpha_abi): Remove.
6906 (gdbarch_tdep): Use generic OS ABI framework.
6907 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
6908 gdbarch_register_osabi.
6909 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
6910 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
6911 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
6912
6913 * Makefile.in (sh_tdep_h): Add osabi.h.
6914 * sh-tdep.h (sh_osabi): Remove.
6915 (gdbarch_tdep): Use generic OS ABI framework.
6916 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
6917 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
6918 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
6919 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
6920
6921 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
6922 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
6923 gdbarch_register_osabi.
6924 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
6925 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
6926 (get_elfosabi): Rename to...
6927 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
6928 ABI framework support routines.
6929 (arm_gdbarch_init): Use generic OS ABI framework.
6930 (arm_dump_tdep): Likewise.
6931 (_initialize_arm_tdep): Likewise.
6932 * arm-tdep.h: Include osabi.h.
6933 (arm_abi): Remove.
6934 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
6935 osabi member.
6936 (arm_gdbarch_register_os_abi): Remove prototype.
6937 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
6938 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
6939
6940 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
6941 * mips-tdep.c: Include osabi.h.
6942 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
6943 OS ABI framework.
6944
6945 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
6946
6947 * h8300-tdep.c: Fix formatting.
6948
6949 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
6950
6951 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
6952 printing vector registers.
6953
6954 2002-05-19 Andrew Cagney <ac131313@redhat.com>
6955
6956 From Fernando Nasser:
6957 * remote.c (remote_async_open_1): Re-throw the exception when the
6958 connection fails.
6959 (remote_cisco_open): Ditto.
6960 (remote_open_1): Ditto.
6961
6962 2002-05-19 Andrew Cagney <ac131313@redhat.com>
6963
6964 * remote.c (remote_start_remote_dummy): Add uiout parameter.
6965 (remote_start_remote): Add uiout parameter. Pass through to
6966 remote_start_remote_dummy.
6967 (remote_open_1): Use catch_exception instead of catch_errors.
6968 (remote_async_open_1): Ditto.
6969 (remote_cisco_open): Ditto.
6970
6971 2002-05-19 Andrew Cagney <ac131313@redhat.com>
6972
6973 * remote.c (remote_start_remote): Replace PTR with void pointer.
6974 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
6975 static.
6976
6977 2002-05-18 Andrew Cagney <ac131313@redhat.com>
6978
6979 * gdb_indent.sh: Allow the script to be run in the sim directory.
6980
6981 2002-05-18 Mark Kettenis <kettenis@gnu.org>
6982
6983 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
6984 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
6985
6986 * corelow.c (core_open): Only call set_gdbarch_from_file if
6987 exec_bfd is NULL.
6988
6989 2002-05-17 Andrey Volkov <avolkov@transas.com>
6990
6991 * h8300-tdep.c: Add support of EXR register
6992 * config/h8300/tm-h8300.h: Ditto.
6993
6994 2002-05-17 Andrey Volkov <avolkov@transas.com>
6995
6996 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
6997
6998 2002-05-17 Andrey Volkov <avolkov@transas.com>
6999
7000 * h8300-tdep.c: Change literal regnums to REGNO.
7001
7002 2002-05-17 Jim Blandy <jimb@redhat.com>
7003
7004 * NEWS: Note addition of macro support.
7005
7006 Expand preprocessor macros in C expressions.
7007 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
7008 (scan_macro_expansion, scanning_macro_expansion,
7009 finished_macro_expansion): New function declarations.
7010 (expression_macro_lookup_func, expression_macro_lookup_baton): New
7011 variable declarations.
7012 * parser-defs.h (expression_context_pc): New declaration.
7013 * parse.c (expression_context_pc): New variable.
7014 (parse_exp_1): Set expression_context_pc, as well as
7015 expression_context_block.
7016 * c-exp.y (yylex): If we're not already reading the result of a
7017 macro expansion, try to macro-expand the next token. When we're
7018 done scanning a macro expansion, switch back to the mainline text.
7019 Commas and `if's in a macro's expansion don't terminate the input.
7020 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
7021 (macro_original_text, macro_expanded_text,
7022 expression_macro_lookup_func, expression_macro_lookup_baton): New
7023 variables.
7024 (scan_macro_expansion, scanning_macro_expansion,
7025 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
7026 c_preprocess_and_parse): New functions.
7027 (c_language_defn, cplus_language_defn, asm_language_defn): Call
7028 c_preprocess_and_parse, instead of c_parse.
7029 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
7030 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
7031
7032 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
7033
7034 * sh-tdep.c (gdb_print_insn_sh64): Delete.
7035 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
7036 (sh_gdbarch_init): Always use gdb_print_insn_sh.
7037
7038 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
7039
7040 * NEWS: Add section for multi-arched targets. Add v850 to that section.
7041
7042 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
7043
7044 * Makefile.in (sh_tdep_h): Define and use.
7045 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
7046 register enum): Move to...
7047 * * sh-tdep.h: ...here.
7048 * sh-tdep.c: Include sh-tdep.h.
7049 * sh3-rom.c: Likewise.
7050 * shnbsd-tdep.c: Likewise.
7051
7052 2002-05-16 Michael Snyder <msnyder@redhat.com>
7053
7054 * arm-tdep.c: Spelling fix in comment.
7055
7056 2002-05-16 Jim Blandy <jimb@redhat.com>
7057
7058 Add commands for manually expanding macros and showing their
7059 definitions.
7060 * macrocmd.c, macroscope.c, macroscope.h: New files.
7061 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
7062 (macroscope_h): New variable.
7063 (HFILES_NO_SRCDIR): Add macroscope.h.
7064 (COMMON_OBS): Add macrocmd.o, macroscope.o.
7065 (macroscope.o, macrocmd.o): New rules.
7066
7067 Teach the Dwarf 2 reader to read macro information.
7068 * dwarf2read.c: #include "macrotab.h".
7069 (dwarf_macinfo_buffer): New variable.
7070 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
7071 dwarf_macinfo_size.
7072 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
7073 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
7074 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
7075 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
7076 dwarf2_macro_spaces_in_definition): New complaints.
7077 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
7078 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
7079 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
7080 the partial symbol table.
7081 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
7082 from what's recorded in the partial symbol table.
7083 (read_file_scope): If the compilation unit has a
7084 `DW_AT_macro_info' attribute, read its macro information.
7085 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
7086
7087 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
7088
7089 Fix PR gdb/546
7090 * ser-tcp.c: Don't include <netinet/udp.h>.
7091
7092 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
7093
7094 * MAINTAINERS: Update my email address.
7095
7096 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
7097
7098 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
7099 include file of the same name.
7100
7101 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
7102
7103 * configure.tgt: Mark v850 as multi-arched.
7104 * config/v850/tm-v850.h: Remove file.
7105 * config/v850/v850.mt: Eliminate TM_FILE.
7106
7107 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
7108
7109 * v850-tdep.c: Full multi-arch.
7110 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
7111 Define GDB_MULTI_ARCH to 2.
7112
7113 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
7114
7115 * p-exp.y (current_type): New static variable.
7116 Carries the type of the expression at the position that is parsed.
7117 (push_current_type, pop_current_type): Two new functions. Used
7118 to store/restore current_type in expression on specific tokens.
7119 (search_field): New static variable. Set to one after parsing a point
7120 as at that point only a FIELDNAME token should be searched.
7121 (FIELDNAME): New token. After a point only a token belonging to
7122 current_type type definition is allowed.
7123 (all over token rules): reset and change current_type according
7124 to rules.
7125 (exp '[' rule): insert implicit array index field if
7126 exp is a pascal string type.
7127
7128 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
7129
7130 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
7131 frame info. Use frame_info's saved_regs instead of matching member
7132 in extra_frame_info throughout.
7133 (v850_frame_init_saved_regs): New function.
7134 (v850_init_extra_frame_info): Move most functionality into
7135 v850_frame_init_saved_regs().
7136 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
7137 (v850_frame_find_saved_regs): Remove declaration.
7138 (FRAME_FIND_SAVED_REGS): Remove definition.
7139 (v850_frame_init_saved_regs): Add declaration.
7140 (FRAME_INIT_SAVED_REGS): Add definition.
7141
7142 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
7143
7144 * v850-tdep.c: Begin multi-arch'ing v850.
7145 (v850_target_architecture_hook): Remove function.
7146 (v850_gdbarch_init): New function. Add code previously in
7147 v850_target_architecture_hook().
7148 (_initialize_v850_tdep): Don't set target_architecture_hook.
7149 Call register_gdbarch_init() instead.
7150
7151 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
7152
7153 * gdbtypes.h (struct cplus_struct_type): Remove args field.
7154 * hpread.c (hpread_read_struct_type): Remove assignments to args.
7155 (fixup_class_method_type): Likewise.
7156
7157 2002-05-15 Jim Blandy <jimb@redhat.com>
7158
7159 Add macro structures to GDB's symbol tables. Nobody puts anything
7160 in them yet.
7161 * symtab.h (struct symtab): New member: `macro_table'.
7162 * buildsym.h (pending_macros): New global variable.
7163 * buildsym.c: #include "macrotab.h".
7164 (buildsym_init): Initialize `pending_macros'.
7165 (end_symtab): If we found macro information while reading a CU's
7166 debugging info, do build a symtab structure for it. Make the
7167 symtab point to the macro information, and clear the
7168 `pending_macros' pointer which held it while we were reading the
7169 debug info.
7170 (really_free_pendings): Free any pending macro table.
7171 * objfiles.h (struct objfile): New member: `macro_cache'.
7172 * objfiles.c (allocate_objfile): Set allocate and free functions
7173 for the macro cache's objstack.
7174 (free_objfile): Empty the macro cache's obstack.
7175 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
7176 set new allocate and free functions for it.
7177 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
7178 free functions for the macro cache's objstack. (Why is this
7179 function building its own objfile?)
7180 * symmisc.c (print_objfile_statistics): Print statistics on the
7181 macro bcache.
7182 * Makefile.in: Note that buildsym.o depends on macrotab.h.
7183
7184 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
7185
7186 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
7187 (REGISTER_U_ADDR): Delete definition.
7188 (arm_register_u_addr): Delete declaration.
7189
7190 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
7191
7192 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
7193 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
7194
7195 2002-05-14 Andrew Cagney <ac131313@redhat.com>
7196
7197 * regcache.c (register_valid): Revise comments refering to "Not
7198 available" and "unavailable".
7199 * frame.c (frame_register_read): Ditto.
7200 * findvar.c (value_of_register): Ditto.
7201
7202 2002-05-15 Andrew Cagney <cagney@redhat.com>
7203
7204 * Makefile.in (remote_sim_h): Replace remote-sim_h.
7205 (remote-sim.o): Update dependencies.
7206 (d10v-tdep.o): Specify dependencies.
7207 (sim_d10v_h): Define.
7208
7209 2002-05-14 Jim Blandy <jimb@redhat.com>
7210
7211 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
7212 * macrotab.c (macro_lookup_inclusion, find_definition,
7213 new_macro_table): Same.
7214
7215 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
7216 not `! strcmp ()'. This is a dubious improvement.
7217 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
7218
7219 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
7220 although it's not necessary, to avoid a warning.
7221
7222 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
7223
7224 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
7225 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
7226 TYPE_INSTANCE_FLAGS.
7227 (struct main_type): New.
7228 (struct type): Move most members to struct main_type. Change
7229 cv_type and as_type to new type_chain member. Add instance_flags.
7230 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
7231 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
7232 (finish_cv_type): Remove prototype.
7233 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
7234 Set TYPE_CHAIN.
7235 (alloc_type_instance): New function.
7236 (smash_type): New function.
7237 (make_pointer_type, make_reference_type, make_function_type)
7238 (smash_to_member_type, smash_to_method_type): Call smash_type.
7239 (make_qualified_type): New function.
7240 (make_type_with_address_space): Call make_qualified_type.
7241 (make_cv_type): Likewise.
7242 (finish_cv_type): Remove unnecessary function.
7243 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
7244 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
7245 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
7246 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
7247 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
7248 * hpread.c (hpread_read_struct_type): Likewise.
7249 * stabsread.c (read_struct_type): Likewise.
7250
7251 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
7252
7253 * configure.tgt: Add a catch all sh* target, for cases like
7254 sh[2,3,4]-elf and sh-hms.
7255
7256 2002-05-14 Keith Seitz <keiths@redhat.com>
7257
7258 * event-loop.c (create_file_handler): Don't do anything but
7259 update data when we are given a fd which we are already
7260 monitoring.
7261
7262 2002-05-14 Michal Ludvig <mludvig@suse.cz>
7263
7264 * dwarf2cfi.c (context_cpy): Copy registers correctly.
7265 (update_context): Use __func__ in warnings.
7266
7267 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
7268
7269 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
7270 and tcp_close to net_open and net_close.
7271 (net_open): Accept "udp:" and "tcp:" specifications. Connect
7272 using UDP if requested. Don't try to disable Nagle on UDP
7273 sockets.
7274 * remote.c (remote_serial_open): New function. Warn about UDP.
7275 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
7276
7277 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
7278
7279 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
7280
7281 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
7282
7283 * configure.tgt: Remove sh-hms target.
7284 * MAINTAINERS: Don't list sh-hms as a separate target.
7285
7286 2002-05-13 Jim Blandy <jimb@redhat.com>
7287
7288 Add first preprocessor macro-expansion files.
7289 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
7290 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
7291 (splay_tree_h, macroexp_h, macrotab_h): New variable.
7292 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
7293 (COMMON_OBS): Add macrotab.o, macroexp.o.
7294 (macroexp.o, macrotab.o): New rules.
7295
7296 2002-05-13 Andrew Cagney <ac131313@redhat.com>
7297
7298 * config/m88k/tm-m88k.h: Update copyright.
7299 (m88k_target_write_pc): Declare
7300 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
7301 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
7302 (SHIFT_INST_REGS): Update definition.
7303 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
7304 using old definition of TARGET_WRITE_PC.
7305 * regcache.c (generic_target_write_pc): Delete code handling
7306 NNPC_REGNUM.
7307 * gdbarch.sh (NNPC_REGNUM): Delete.
7308 * gdbarch.h, gdbarch.c: Regenerate.
7309
7310 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
7311
7312 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
7313 builtin reg number.
7314
7315 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
7316
7317 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
7318 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
7319 (gen_address_of, gen_struct_ref, gen_repeat): Use type
7320 access macros.
7321 * c-typeprint.c (cp_type_print_method_args): Likewise.
7322 (c_type_print_args): Likewise.
7323 * d10v-tdep.c (d10v_push_arguments): Likewise.
7324 (d10v_extract_return_value): Likewise.
7325 * expprint.c (print_subexp): Likewise.
7326 * gdbtypes.c (lookup_primitive_typename): Likewise.
7327 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
7328 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
7329 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
7330 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
7331 (TYPE_VECTOR): Likewise.
7332 * hpread.c (hpread_read_struct_type)
7333 (fix_static_member_physnames, fixup_class_method_type)
7334 (hpread_type_lookup): Likewise.
7335 * mdebugread.c (parse_symbol, parse_type): Likewise.
7336 * p-lang.c (is_pascal_string_type): Likewise.
7337 * valops.c (hand_function_call): Likewise.
7338 * x86-64-tdep.c (classify_argument): Likewise.
7339
7340 * hpread.c (hpread_read_function_type)
7341 (hpread_read_doc_function_type): Call replace_type.
7342 * dstread.c (create_new_type): Delete.
7343 (decode_dst_structure, process_dst_function): Call alloc_type.
7344 Use type access macros.
7345
7346 2002-05-12 Mark Kettenis <kettenis@gnu.org>
7347
7348 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
7349 the're not supported by the current architecture.
7350 (i387_fill_fxsave): Likewise.
7351
7352 2002-05-12 Fred Fish <fnf@redhat.com>
7353
7354 * symfile.c (default_symfile_offsets): Arrange for uninitialized
7355 sect_index_xxx members to index the first slot in section_offsets
7356 if all of the section_offsets are zero.
7357
7358 2002-05-12 Mark Kettenis <kettenis@gnu.org>
7359
7360 * configure.tgt (sparc-*openbsd): Remove entry accidentially
7361 checked in with last change.
7362
7363 2002-05-12 Mark Kettenis <kettenis@gnu.org>
7364
7365 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
7366 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
7367 config.sub.
7368
7369 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
7370
7371 * Makefile.in: Update dependencies.
7372
7373 2002-05-11 Andrew Cagney <ac131313@redhat.com>
7374
7375 * language.c (local_hex_string_custom): Simplify. Do not depend
7376 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
7377
7378 * memattr.c (mem_info_command): Replace calls to
7379 longest_local_hex_string and longest_local_hex_string_custom.
7380 * buildsym.c (make_blockvector): Ditto.
7381 * solib.c (info_sharedlibrary_command): Ditto.
7382 * tracepoint.c (tracepoints_info): Ditto.
7383 * symtab.c (print_msymbol_info): Ditto.
7384
7385 * language.c (local_hex_string): Delete.
7386 (local_hex_string_custom): Delete.
7387 (longest_local_hex_string): Rename to local_hex_string.
7388 (longest_local_hex_string_custom): Rename to
7389 local_hex_string_custom.
7390 * language.h (local_hex_string): Change parameter type to LONGEST.
7391 (local_hex_string_custom): Ditto.
7392 (longest_local_hex_string): Delete declaration.
7393 (longest_local_hex_string_custom): Ditto.
7394
7395 * solib.c: Update copyright.
7396 * memattr.c: Update copyright.
7397
7398 2002-05-11 Andrew Cagney <ac131313@redhat.com>
7399
7400 * arch-utils.h (legacy_register_to_value): Declare.
7401 (legacy_value_to_register): Declare.
7402 (legacy_convert_register_p): Declare.
7403 * arch-utils.c (legacy_register_to_value): New function.
7404 (legacy_value_to_register): New function.
7405 (legacy_convert_register_p): New function.
7406
7407 * gdbarch.sh (REGISTER_TO_VALUE): Define.
7408 (VALUE_TO_REGISTER): Define.
7409 (CONVERT_REGISTER_P): Define.
7410 * gdbarch.h, gdbarch.c: Regenerate.
7411
7412 * valops.c (value_assign): Use CONVERT_REGISTER_P and
7413 VALUE_TO_REGISTER.
7414 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
7415 CONVERT_REGISTER_P.
7416
7417 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
7418 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7419
7420 * Makefile.in: Update dependencies for valops.c.
7421 * valops.c: Include "gdb_assert.h".
7422 (typecmp): Skip THIS parameter to methods.
7423 (find_method_list): Remove static_memfuncp argument,
7424 update callers. Check for stub methods.
7425 (find_value_oload_method_list): Don't set *static_memfuncp.
7426 (find_overload_match): Don't check for stub methods. Assert
7427 that methods are not stubbed. Handle static methods.
7428 (value_find_oload_method_list): Remove static_memfuncp argument.
7429 * gdbtypes.c (check_stub_method): Do not add THIS pointer
7430 to the argument list for static stub methods.
7431 * value.h (value_find_oload_method_list): Update prototype.
7432
7433 2002-05-11 Andrew Cagney <ac131313@redhat.com>
7434
7435 * arch-utils.h (generic_register_size): Declare.
7436 (generic_register_raw_size, generic_register_virtual_size): Delete
7437 declarations.
7438 * arch-utils.c (generic_register_raw_size): Delete.
7439 (generic_register_size): New function.
7440 (generic_register_virtual_size): Delete.
7441
7442 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
7443 default generic_register_size.
7444 * gdbarch.h, gdbarch.c: Re-generate.
7445
7446 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
7447 register_virtual_size.
7448 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
7449 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7450
7451 2002-05-11 Andrew Cagney <ac131313@redhat.com>
7452
7453 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
7454 * gdbarch.h, gdbarch.c: Regenerate.
7455 * gnu-v3-abi.c: Update copyright.
7456 (vtable_address_point_offset): Update.
7457 (gnuv3_rtti_type): Update.
7458 (gnuv3_baseclass_offset): Update.
7459 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
7460 (init_fetch_link_map_offsets): Update.
7461 * remote.c (get_remote_state): Update.
7462
7463 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
7464
7465 * TODO: Remove value_headof/value_from_vtable_info comment.
7466 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
7467 * values.c (value_headof, value_from_vtable_info): Delete.
7468 * value.h (value_from_vtable_info): Delete prototype.
7469
7470 2002-05-11 Andrew Cagney <ac131313@redhat.com>
7471
7472 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
7473 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
7474 $(gdb_regex_h).
7475 (gdb_assert_h): Define.
7476 (gdb_wait_h): Define.
7477 (gdb_regex_h): Define.
7478
7479 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
7480
7481 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
7482 * linespec.c (find_methods): Handle GCC 3.x template constructors.
7483
7484 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7485
7486 * nbsd-tdep.c: Fix comment.
7487
7488 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7489
7490 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
7491 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
7492 (nbsd-tdep.o): New dependency list.
7493 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
7494 nbsd-tdep.h.
7495 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
7496 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
7497 * nbsd-tdep.c: New file.
7498 * nbsd-tdep.h: New file.
7499 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
7500 nbsd-tdep.h.
7501 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
7502 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
7503 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
7504 * config/sh/nbsd.mt (TDEPFILES): Ditto.
7505
7506 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7507
7508 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
7509 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
7510 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
7511 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
7512 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
7513 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
7514
7515 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7516
7517 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
7518 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
7519 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
7520 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
7521 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
7522 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
7523 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
7524
7525 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7526
7527 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
7528 fetch_elfcore_registers to...
7529 * i386nbsd-tdep.c: ...here.
7530 (i386nbsd_use_struct_convention): Rename to...
7531 (i386nbsd_aout_use_struct_convention): ...this.
7532 (i386nbsd_supply_reg): New function.
7533 (i386nbsd_fill_reg): New function.
7534 (fetch_core_registers): Use i386nbsd_supply_reg.
7535 (fetch_elfcore_registers): Likewise.
7536 (_initialize_i386nbsd_tdep): New function.
7537 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
7538 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
7539 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
7540 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
7541 (i386nbsd_aout_use_struct_convention): ...this.
7542
7543 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7544
7545 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
7546 (store_inferior_registers): Use shnbsd_fill_reg.
7547 * shnbsd-tdep.c (sh_nbsd_supply_registers,
7548 sh_nbsd_supply_register): Collapse into...
7549 (shnbsd_supply_reg): ...this.
7550 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
7551 (shnbsd_fill_reg): ...this.
7552 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
7553 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
7554 (fetch_core_registers): Use shnbsd_supply_reg.
7555 (fetch_elfcore_registers): Use shnbsd_supply_reg.
7556 (sh_nbsd_core_fns): Rename to...
7557 (shnbsd_core_fns): ...this.
7558 (sh_nbsd_elfcore_fns): Rename to...
7559 (shnbsd_elfcore_fns): ...this.
7560 (sh_nbsd_init_abi): Rename to...
7561 (shnbsd_init_abi): ...this.
7562 (_initialize_sh_nbsd_tdep): Rename to...
7563 (_initialize_shnbsd_tdep): ...this.
7564 * shnbsd-tdep.h (sh_nbsd_supply_registers,
7565 sh_nbsd_supply_register, sh_nbsd_fill_registers,
7566 sh_nbsd_fill_register): Remove prototypes.
7567 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
7568
7569 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7570
7571 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
7572 (i387-nat.o): Delete dependency list.
7573 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
7574 (x86-64-linux-nat.o): Likewise.
7575 * i387-nat.c: Delete file, moving contents to...
7576 * i387-tdep.c: ...here.
7577 * i387-nat.h: Rename...
7578 * i387-tdep.h: ...to this.
7579 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
7580 * i386-linux-nat.c: Likewise.
7581 * i386bsd-nat.c: Likewise.
7582 * i386gnu-nat.c: Likewise.
7583 * i386nbsd-nat.c: Likewise.
7584 * i386v4-nat.c: Likewise.
7585 * x86-64-linux-nat.c: Likewise.
7586 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
7587 * config/i386/go32.mh (NATDEPFILES): Likewise.
7588 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
7589 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
7590 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
7591 * config/i386/linux.mh (NATDEPFILES): Likewise.
7592 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
7593 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
7594 * config/i386/obsd.mh (NATDEPFILES): Likewise.
7595 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
7596
7597 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7598
7599 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
7600 (alphanbsd-nat.o): Remove dependency list.
7601 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
7602 * alphanbsd-nat.c: Delete. Contents moved to...
7603 * alphanbsd-tdep.c: ...here.
7604 (_initialize_alphanbsd_tdep): Register core functions.
7605 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
7606
7607 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7608
7609 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
7610 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
7611 (alphanbsd-nat.o): Likewise.
7612 (alphabsd-tdep.o): New dependency list.
7613 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
7614 (fill_gregset): Use alphabsd_fill_reg.
7615 (supply_fpregset): Use alphabsd_supply_fpreg.
7616 (fill_fpregset): Use alphabsd_fill_fpreg.
7617 (fetch_inferior_registers): Use struct reg and struct fpreg
7618 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
7619 and alphabsd_supply_fpreg.
7620 (store_inferior_registers): Use struct reg and struct fpreg
7621 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
7622 and alphabsd_fill_fpreg.
7623 * alphabsd-tdep.c: New file.
7624 * alphabsd-tdep.h: New file.
7625 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
7626 (fetch_elfcore_registers): Use alphabsd_supply_reg and
7627 alphabsd_supply_fpreg.
7628 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
7629 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
7630
7631 2002-05-11 Eric Christopher <echristo@redhat.com>
7632
7633 * mips-tdep.c (mips_double_register_type): Fix thinko.
7634 (mips_single_register_type): Ditto.
7635 * MAINTAINERS: Add self.
7636
7637 2002-05-11 Mark Kettenis <kettenis@gnu.org>
7638
7639 * i387-nat.c (i387_supply_register, i387_fill_fsave,
7640 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
7641 right thing on architectures with different endianness and/or
7642 integer sizes.
7643
7644 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
7645
7646 From Christian Limpach <chris@Pin.LU>
7647 * configure.in: Change sed expression which comments out
7648 NATDEPFILES to also comment out continuation lines.
7649 * configure: Regenerate.
7650
7651 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
7652
7653 * sh-tdep.c: Clean up code erroneously reintroduced by previous
7654 big patch.
7655
7656 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
7657
7658 * sh-tdep.c: Include correct file.
7659
7660 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
7661
7662 New support for sh64-elf (sh5) target.
7663
7664 * configure.tgt: For sh64-elf target, default to sh-elf.
7665
7666 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
7667 (struct gdbarch_tdep): Add new fields for new registers and ABI
7668 info.
7669
7670 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
7671 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
7672 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
7673 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
7674 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
7675 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
7676 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
7677 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
7678 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
7679 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
7680 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
7681 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
7682 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
7683 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
7684 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
7685 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
7686 sh64_get_gdb_regnum, sh64_media_reg_base_num,
7687 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
7688 sign_extend, sh64_nofp_frame_init_saved_regs,
7689 sh64_init_extra_frame_info, sh64_get_saved_register,
7690 sh64_extract_struct_value_address, sh64_pop_frame,
7691 sh64_push_arguments, sh64_extract_return_value,
7692 sh64_store_return_value, sh64_show_media_regs,
7693 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
7694 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
7695 sh_sh64_register_virtual_type,
7696 sh_sh64_register_convert_to_virtual,
7697 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
7698 sh64_register_read, sh64_pseudo_register_write,
7699 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
7700 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
7701 sh64_do_pseudo_register, sh_compact_do_registers_info,
7702 sh64_do_registers_info, sh_gdbarch_init): New functions.
7703
7704 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
7705
7706 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
7707
7708 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
7709
7710 * linespec.c (decode_line_1): Check for a double quote after
7711 a filename correctly.
7712
7713 2002-05-10 Jim Blandy <jimb@redhat.com>
7714
7715 Properly track the size of the current objfile's .debug_line section.
7716 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
7717 (DWARF_LINE_SIZE): New macro.
7718 (dwarf2_build_psymtabs_hard): Record the line section's size in
7719 the partial symbol table.
7720 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
7721 symbol table.
7722
7723 2002-05-10 Petr Sorfa <petrs@caldera.com>
7724
7725 * ia64-tdep.c: Handle breakpoints on L instruction type
7726 in MLX instruction bundle by moving the breakpoint to
7727 the third slot (X instruction type) as L holds only data.
7728
7729 2002-05-10 Kevin Buettner <kevinb@redhat.com>
7730
7731 * dbxread.c (discarding_local_symbols_complaint): New complaint.
7732 (process_one_symbol): Complain about discarding local symbols
7733 due to a misplaced N_LBRAC entry.
7734
7735 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
7736
7737 From Daniel Berlin <dan@cgsoftware.com>
7738 * linespec.c (find_toplevel_char): '<' and '>' also increase and
7739 decrease the depth we are at, in the case of templates.
7740
7741 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
7742
7743 * mips-tdep.c (mips_float_register_type): New function.
7744 (mips_double_register_type): New function.
7745 (mips_print_register): Use them.
7746 (do_fp_register_row): Likewise.
7747
7748 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
7749
7750 * signals/signals.c (signals): Remove conditional compilation around
7751 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
7752 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
7753
7754 2002-05-09 Michael Snyder <msnyder@redhat.com>
7755
7756 * remote-rdp.c (remote_rdp_can_run): Remove.
7757
7758 2002-05-09 Tom Tromey <tromey@redhat.com>
7759
7760 * jv-valprint.c (java_val_print): Handle `char' as a special case
7761 of TYPE_CODE_INT.
7762
7763 2002-05-09 Michael Snyder <msnyder@redhat.com>
7764
7765 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
7766 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
7767 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
7768 str r(0123),[sp,#nn].
7769 (arm_skip_prologue): Ditto. Also make disassembly
7770 order-independent by placing it in a loop.
7771
7772 2002-05-06 Michael Snyder <msnyder@redhat.com>
7773
7774 * stabsread.c (read_type): Add recognition for new attribute:
7775 "@V;" means that an array type is actually a vector.
7776 This is analogous to the vector flag that's been added to dwarf2.
7777
7778 2002-05-09 Mark Kettenis <kettenis@gnu.org>
7779
7780 * i386-tdep.h (i386_abi): New enum.
7781 (struct gdbarch_tdep): Replace os_ident member with abi.
7782 (i386_gdbarch_register_os_abi): New prototype.
7783 * i386-tdep.c (i386_abi_names): New array.
7784 (process_note_abi_tag_sections): Removed.
7785 (process_note_sections): New function.
7786 (i386_elf_abi_from_note, i386_elf_abi): New functions.
7787 (struct i386_abi_handler): New struct.
7788 (i386_abi_handler_list): New variable.
7789 (i386_gdbarch_register_os_abi): New function.
7790 (i386_gdbarch_init): Adapt for the changes given above.
7791
7792 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
7793
7794 * gregset.h: Say "GNU/Linux".
7795
7796 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
7797
7798 * gdbtypes.c : Add new builtin type for 64 bit vectors.
7799 (build_gdbtypes): Build builtin_type_v2_float.
7800 (_initialize_gdbtypes): Register new builtin type.
7801
7802 2002-05-08 Andrew Cagney <ac131313@redhat.com>
7803
7804 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
7805 (clear_gdbarch_swap): New function.
7806 (initialize_non_multiarch): Call.
7807 (gdbarch_update_p): Before calling init(), swap out and clear the
7808 existing architecture.
7809 * gdbarch.c: Regenerate.
7810
7811 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7812
7813 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
7814 alphanbsd-tdep.c.
7815
7816 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7817
7818 * sh-nbsd-nat.c: Rename to...
7819 * shnbsd-nat.c: ...this.
7820 * sh-nbsd-tdep.c: Rename to...
7821 * shnbsd-tdep.c: ...this.
7822 * sh-nbsd-tdep.h: Rename to...
7823 * shnbsd-tdep.h: ...this.
7824 * config/sh/nbsd.mh: Use shnbsd-nat.o.
7825 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
7826
7827 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
7828
7829 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
7830 concatenation for command help messages.
7831
7832 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7833
7834 * NEWS: Note new sh*-*-netbsdelf* configuration.
7835 * configure.host: Set gdb_host_cpu to sh for all sh*.
7836 (sh*-*-netbsdelf*): New host.
7837 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
7838 (sh*-*-netbsdelf*): New target.
7839 * sh-nbsd-nat.c: New file.
7840 * sh-nbsd-tdep.c: New file.
7841 * sh-nbsd-tdep.h: New file.
7842 * config/sh/nbsd.mh: New file.
7843 * config/sh/nbsd.mt: New file.
7844 * config/sh/nm-nbsd.h: New file.
7845 * config/sh/tm-nbsd.h: New file.
7846
7847 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7848
7849 * sh-tdep.c (sh_osabi_names): Declare.
7850 (process_note_abi_tag_sections): New function.
7851 (get_elfosabi): Ditto.
7852 (sh_gdbarch_register_os_abi): Ditto.
7853 (sh_dump_tdep): Ditto.
7854 _initialize_sh_tdep): Use gdbarch_register to register
7855 sh_gdbarch_init and sh_dump_tdep.
7856 * config/sh/tm-sh.h (sh_osabi): Declare.
7857 (gdbarch_tdep): Add sh_osabi and osabi_name members.
7858
7859 2002-05-07 Andrew Cagney <ac131313@redhat.com>
7860
7861 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
7862 (thumb_scan_prologue): Ditto.
7863 (arm_find_callers_reg): Ditto.
7864 (arm_frame_chain): Ditto.
7865 (arm_init_extra_frame_info): Ditto.
7866 (arm_frame_saved_pc): Ditto.
7867 (arm_pop_frame): Ditto.
7868 (arm_push_return_address): New function.
7869 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
7870 call_dummy_location, call_dummy_breakpoint_offset_p,
7871 call_dummy_breakpoint_offset, call_dummy_p,
7872 call_dummy_stack_adjust_p, call_dummy_words,
7873 sizeof_call_dummy_words, call_dummy_start_offset,
7874 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
7875 call_dummy_address, push_return_address and push_dummy_frame for
7876 generic dummy frames.
7877
7878 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
7879
7880 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
7881 size computation for alloca.
7882 (sh_fp_frame_init_saved_regs): Likewise.
7883
7884 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
7885
7886 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
7887 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
7888 * arm-tdep.c (arm_store_return_value): Use them.
7889 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
7890 * remote-rdp.c (remote_rdp_fetch_register): Use
7891 ARM_MAX_REGISTER_RAW_SIZE.
7892 (remote_rdp_store_register): Likewise.
7893
7894 2002-05-07 Michal Ludvig <mludvig@suse.cz>
7895
7896 * dwarf2cfi.c: Code cleanup, removed unused variables,
7897 added default labels to switch {} statements.
7898 * x86-64-tdep.c: Ditto.
7899 * x86-64-linux-nat.c: Ditto.
7900
7901 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
7902
7903 * solib.h: Protect against multiple inclusion.
7904
7905 2002-05-06 Jim Blandy <jimb@redhat.com>
7906
7907 Add first preprocessor macro-expansion files.
7908 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
7909 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
7910 (splay_tree_h, macroexp_h, macrotab_h): New variable.
7911 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
7912 (COMMON_OBS): Add macrotab.o, macroexp.o.
7913 (macroexp.o, macrotab.o): New rules.
7914
7915 Separate the job of reading the line number info statement program
7916 header (...expialidocious) out into its own function.
7917 * dwarf2read.c (struct line_head, struct filenames, struct
7918 directories): Replace with...
7919 (struct line_header): New structure, containing the full
7920 contents of the statement program header, including the
7921 include directory and file name tables.
7922 (read_file_scope): If we have line number info, instead of just
7923 calling dwarf_decode_lines to do all the work, call
7924 dwarf_decode_line_header first to get a `struct line_header'
7925 containing the data in the statement program header, and then
7926 pass that to dwarf_decode_lines, which will pick up where that
7927 left off. Be sure to clean up the `struct line_header' object.
7928 (dwarf_decode_line_header, free_line_header, add_include_dir,
7929 add_file_name): New functions.
7930 (dwarf_decode_lines): Move all the code to read the statement
7931 program header into dwarf_decode_line_header. Take the line
7932 header it built as the first argument, instead of the offset to
7933 the compilation unit's line number info. Use the new `struct
7934 line_header' type instead of the old structures. No need to do
7935 cleanups here now, since we don't allocate anything.
7936 (dwarf2_statement_list_fits_in_line_number_section,
7937 dwarf2_line_header_too_long): New complaints.
7938
7939 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
7940
7941 * gdbtypes.c (init_vector_type): New function.
7942 (build_builtin_type_vec128): Simplify the representation of SIMD
7943 registers.
7944 (build_gdbtypes): Initialize new builtin vector types.
7945 (_initialize_gdbtypes): Register new vector types with gdbarch.
7946 (builtin_type_v4_float, builtin_type_v4_int32,
7947 builtin_type_v8_int16, builtin_type_v16_int8,
7948 builtin_type_v2_int32, builtin_type_v4_int16,
7949 builtin_type_v8_int8): New (renamed) SIMD types.
7950
7951 2002-05-06 Mark Kettenis <kettenis@gnu.org>
7952
7953 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
7954 (i387_fill_fxsave): Likewise.
7955
7956 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
7957
7958 * alpha-tdep.c (alpha_extract_return_value): Don't use
7959 non-constant array size in prototype.
7960
7961 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7962
7963 From Brian Taylor <briant at model dot com>:
7964 * ui-out.c (ui_out_field_core_addr): Use the function
7965 longest_local_hex_string_custom'to format addresses > 32 bits
7966 wide.
7967
7968 * ui-out.c (ui_out_field_core_addr): Update comment.
7969
7970 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7971
7972 * stack.c (select_and_print_frame): Make static. Delete the
7973 parameter `level'.
7974 (func_command): Update call.
7975 (select_frame_command): Delete code computing the frame level.
7976 * frame.h (select_and_print_frame): Delete declaration.
7977
7978 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7979
7980 * sparc-tdep.c (sparc_get_saved_register): Comment why
7981 get_prev_frame call is safe.
7982
7983 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7984
7985 * frame.h (select_frame): Delete level parameter.
7986 * stack.c (select_frame): Update. Use frame_relative_level to
7987 obtain the frame's level.
7988 (select_and_print_frame): Update call.
7989 (select_frame_command): Ditto.
7990 (up_silently_base): Ditto.
7991 (down_silently_base): Ditto.
7992 * ocd.c (ocd_start_remote): Ditto.
7993 * remote-rdp.c (remote_rdp_open): Ditto.
7994 * remote-mips.c (mips_initialize): Ditto.
7995 (common_open): Ditto.
7996 * remote-e7000.c (e7000_start_remote): Ditto.
7997 * m3-nat.c (select_thread): Ditto.
7998 * hppa-tdep.c (child_get_current_exception_event): Ditto.
7999 (child_get_current_exception_event): Ditto.
8000 * varobj.c (varobj_create): Ditto.
8001 (varobj_update): Ditto.
8002 (c_value_of_root): Ditto.
8003 * tracepoint.c (finish_tfind_command): Ditto.
8004 * corelow.c (core_open): Ditto.
8005 * arch-utils.c (generic_prepare_to_proceed): Ditto.
8006 * thread.c (info_threads_command): Ditto.
8007 (switch_to_thread): Ditto.
8008 * infrun.c (normal_stop): Ditto.
8009 (restore_selected_frame): Ditto.
8010 (restore_inferior_status): Ditto.
8011 * breakpoint.c (insert_breakpoints): Ditto.
8012 (watchpoint_check): Ditto.
8013 (bpstat_stop_status): Ditto.
8014 (do_enable_breakpoint): Ditto.
8015 * blockframe.c (flush_cached_frames): Ditto.
8016 (reinit_frame_cache): Ditto.
8017
8018 2002-05-04 Andrew Cagney <ac131313@redhat.com>
8019
8020 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
8021 maintainer.
8022
8023 2002-05-04 Jim Blandy <jimb@redhat.com>
8024
8025 * gdbtypes.c (replace_type): Doc fix.
8026
8027 2002-05-04 Andrew Cagney <ac131313@redhat.com>
8028
8029 * valprint.c (strcat_longest): Delete commented out function.
8030 Update copyright.
8031
8032 2002-05-04 Andrew Cagney <ac131313@redhat.com>
8033
8034 * MAINTAINERS: Mark a29k as deleted.
8035 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
8036 Move new configurations to the top.
8037 * configure.tgt: Remove a29k.
8038 * config/a29k/tm-vx29k.h: Delete.
8039 * config/a29k/vx29k.mt: Delete.
8040 * config/a29k/tm-a29k.h: Delete.
8041 * config/a29k/a29k-udi.mt: Delete.
8042 * config/a29k/a29k.mt: Delete.
8043 * a29k-tdep.c: Delete.
8044 * remote-udi.c: Delete.
8045 * remote-mm.c: Delete.
8046 * remote-eb.c: Delete.
8047 * remote-adapt.c: Delete.
8048 * Makefile.in: Remove obsolete code.
8049 * config/s390/s390x.mt: Ditto.
8050 * config/s390/s390.mt: Ditto.
8051 * config/sparc/sparclynx.mh: Ditto.
8052 * config/sparc/linux.mh: Ditto.
8053 * config/pa/hppaosf.mh: Ditto.
8054 * config/pa/hppabsd.mh: Ditto.
8055 * config/ns32k/nbsd.mt: Ditto.
8056 * config/mips/vr5000.mt: Ditto.
8057 * config/m68k/sun3os4.mh: Ditto.
8058 * config/m68k/nbsd.mt: Ditto.
8059 * config/m68k/m68klynx.mh: Ditto.
8060 * config/m32r/m32r.mt: Ditto.
8061 * config/i386/x86-64linux.mt: Ditto.
8062 * config/i386/nbsdelf.mt: Ditto.
8063 * config/i386/nbsd.mt: Ditto.
8064 * config/i386/i386lynx.mh: Ditto.
8065
8066 2002-05-04 Andrew Cagney <ac131313@redhat.com>
8067
8068 * target.c (debug_print_register): New function. Handle oversize
8069 registers.
8070 (debug_to_fetch_registers): Call.
8071 (debug_to_store_registers): Call.
8072
8073 2002-05-03 Jim Blandy <jimb@redhat.com>
8074
8075 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
8076 (read_type): Doc fix.
8077 * gdbtypes.c (replace_type): Doc fix.
8078
8079 * stabsread.c (multiply_defined_struct): New complaint.
8080 (read_struct_type): If the type we were passed isn't empty, or
8081 incomplete, don't read the new struct type into it; complain,
8082 and return the original type unchanged. Take a new `type_code'
8083 argument, which is the type code for the new type.
8084 (read_type): Rather than storing the type's type code here, pass
8085 it as an argument to read_struct_type, and let that take care of
8086 storing it. That way, we don't overwrite the original type code,
8087 so read_struct_type can use it to decide whether we're overwriting
8088 something we shouldn't.
8089 (complain_about_struct_wipeout): New function.
8090
8091 2002-05-03 Andrew Cagney <ac131313@redhat.com>
8092
8093 * gdbarch.sh: Assert that gdbarch is non-NULL.
8094 * gdbarch.c: Regenerate.
8095
8096 2002-05-03 Jason Merrill <jason@redhat.com>
8097
8098 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
8099 and return NULL.
8100
8101 2002-05-03 Michal Ludvig <mludvig@suse.cz>
8102
8103 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
8104 (x86_64_dwarf2gdb_regno_map_length),
8105 (x86_64_dwarf2_reg_to_regnum): Added.
8106 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
8107 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
8108 (_initialize_x86_64_tdep): Synced with the change above.
8109 (x86_64_skip_prologue): Reformulated message.
8110
8111 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
8112
8113 * f-exp.y: Also use new prev_lexptr variable
8114 to improve error reporting. Based on Michael Snyder
8115 2002-04-24 dated patch to c-exp.y.
8116 * jv-exp.y: Likewise.
8117 * m2-exp.y: Likewise.
8118
8119 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
8120
8121 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
8122 we are dealing with vectors.
8123
8124 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
8125
8126 * config/m68k/tm-nbsd.h: Obvious fix,
8127 correct machine name.
8128
8129 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
8130
8131 * p-typeprint.c (pascal_type_print_base): Add support
8132 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
8133
8134 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
8135
8136 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
8137 for fondamental pascal 'char' type.
8138
8139 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
8140
8141 * p-lang.h (is_pascal_string_type): Declaration changed,
8142 new sixth argument of type char ** added.
8143 * p-lang.c (is_pascal_string_type): Implementation
8144 changed. Args length_pos, length_size, string_pos, char_size
8145 can now be NULL. New argument arrayname set to the field
8146 name of the char array. Return value set to char array
8147 field index plus one.
8148 * p-valprint.c (pascal_val_print): Adapt to new declaration of
8149 is_pascal_string_type function.
8150
8151 2002-05-02 Andrew Cagney <cagney@redhat.com>
8152
8153 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
8154 <cagney@redhat.com> change.
8155 * gdbarch.c: Regenerate.
8156
8157 2002-05-02 Andrew Cagney <cagney@redhat.com>
8158
8159 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
8160 before probing for a new one. Detect errorenous gdbarch_init
8161 functions.
8162 * gdbarch.c: Regenerate.
8163
8164 2002-05-01 Andrew Cagney <cagney@redhat.com>
8165
8166 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
8167 * config/mcore/tm-mcore.h: Ditto. Update copyright.
8168 * config/v850/tm-v850.h: Ditto. Update copyright.
8169
8170 2002-04-30 Andrew Cagney <ac131313@redhat.com>
8171
8172 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
8173 current_gdbarch.
8174
8175 2002-04-30 Michael Snyder <msnyder@redhat.com>
8176
8177 * arm-tdep.c: Whitespace clean-ups.
8178 (arm_skip_prologue): Fix thinko; two lines
8179 should have been removed as part of 4/24 change.
8180
8181 2002-04-30 Kevin Buettner <kevinb@redhat.com>
8182
8183 * rs6000-tdep.c: Added comment describing how fpscr register
8184 numbers were chosen.
8185
8186 2002-04-30 Michael Snyder <msnyder@redhat.com>
8187
8188 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
8189
8190 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
8191
8192 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
8193 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
8194 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
8195
8196 2002-04-29 Kevin Buettner <kevinb@redhat.com>
8197
8198 From Louis Hamilton <hamilton@redhat.com>:
8199 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
8200 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
8201 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
8202 not bfd-private xcoff data, to determine wordsize.
8203 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
8204
8205 2002-04-29 Andrew Cagney <ac131313@redhat.com>
8206
8207 GDB 5.2 released from 5.2 branch.
8208
8209 2002-04-29 Michal Ludvig <mludvig@suse.cz>
8210
8211 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
8212 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
8213 (x86_64_register_info_table): Added comments with register numbers.
8214
8215 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
8216
8217 * rs6000-tdep.c (rs6000_extract_return_value,
8218 rs6000_store_return_value): Handle returning vectors.
8219 (rs6000_gdbarch_init): Use
8220 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
8221 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
8222 New function.
8223 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
8224 vectors.
8225 (ppc_sysv_abi_push_arguments): Handle vector parameters.
8226 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
8227
8228 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
8229
8230 * hpread.c (hpread_psymtab_to_symtab_1,
8231 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
8232 with fprintf_unfiltered (gdb_stderr,...).
8233
8234 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
8235
8236 * remote-array.c (printf_monitor, write_monitor,
8237 array_insert_breakpoint, array_remove_breakpoint ):
8238 Replace fprintf (stderr,...
8239 with fprintf_unfiltered (gdb_stderr,....
8240 * remote-es.c: Likewise.
8241 * remote-os9k.c: Likewise.
8242 * remote-st.c: Likewise.
8243
8244 2002-04-28 Andreas Schwab <schwab@suse.de>
8245
8246 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
8247 linux-proc.o and gcore.o.
8248
8249 2002-04-26 Michal Ludvig <mludvig@suse.cz>
8250
8251 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
8252 code without frame pointers.
8253
8254 2002-04-26 Andrew Cagney <ac131313@redhat.com>
8255
8256 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
8257 ON_STACK is needed.
8258
8259 2002-04-26 Ben Elliston <bje@redhat.com>
8260
8261 * target.c (do_xfer_memory): Correct reference to the new option
8262 "trust-readonly-sections".
8263
8264 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
8265
8266 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
8267 * gdbtypes.c (recursive_dump_type): Output the vector flag.
8268 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
8269 vectors.
8270 (read_array_type): Record the fact that this array type is really a
8271 vector (i.e. are passed in by value).
8272
8273 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
8274
8275 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
8276 * alpha-tdep.c (alpha_sigcontext_addr): New function.
8277 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
8278 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
8279 * alpha-linux-tdep.c: Include frame.h.
8280 (alpha_linux_sigcontext_addr): New function.
8281 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
8282 alpha_linux_sigcontext_addr.
8283 * alpha-osf1-tdep.c: Include gdbcore.h.
8284 (alpha_osf1_sigcontext_addr): New function.
8285 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
8286 alpha_osf1_sigcontext_addr.
8287 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
8288 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
8289
8290 2002-04-26 Andrew Cagney <ac131313@redhat.com>
8291
8292 * stack.c (selected_frame_level):
8293 (select_frame): Do not set selected_frame_level.
8294 * frame.h (selected_frame_level): Delete declaration.
8295
8296 2002-04-26 Andrew Cagney <ac131313@redhat.com>
8297
8298 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
8299 convert_from_func_ptr-addr when AIX / PowerOpen.
8300
8301 2002-04-25 Andrew Cagney <ac131313@redhat.com>
8302
8303 * valops.c (hand_function_call): Call
8304 generic_save_call_dummy_addr.
8305 * frame.h (generic_save_call_dummy_addr): Declare.
8306 * blockframe.c (struct dummy_frame): Add fields call_lo and
8307 call_hi.
8308 (generic_find_dummy_frame): Check for PC in range call_lo to
8309 call_hi instead of entry_point_address.
8310 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
8311 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
8312 (generic_save_call_dummy_addr): New function.
8313
8314 2002-04-24 David S. Miller <davem@redhat.com>
8315
8316 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
8317 sparc_skip_prologue.
8318 (sparc_skip_prologue): Kill frameless_p arg, and use line number
8319 information to find prologue when possible.
8320 (sparc_prologue_frameless_p): Call examine_prologue directly.
8321 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
8322 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
8323 second argument.
8324 (SKIP_PROLOGUE): Likewise.
8325
8326 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
8327
8328 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
8329 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
8330 indicate that the condition it was testing is always true.
8331 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
8332 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
8333 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
8334
8335 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
8336
8337 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
8338 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
8339 tdep->jb_pc and tdep->jb_elt_size.
8340 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
8341 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
8342 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
8343 * alpha-nat.c (get_longjmp_target): Remove.
8344 (JB_ELEMENT_SIZE): Ditto.
8345 (JB_PC): Ditto.
8346 * alpha-tdep.c (alpha_get_longjmp_target): New function.
8347 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
8348 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
8349 to alpha_get_longjmp_target.
8350 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
8351 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
8352 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
8353
8354 2002-04-25 Andrew Cagney <ac131313@redhat.com>
8355
8356 * README: Update to GDB 5.2.
8357
8358 2002-04-25 Andrew Cagney <ac131313@redhat.com>
8359
8360 * gdbarch.sh (LC_ALL): Set to `c'.
8361
8362 2002-04-25 Theodore A. Roth <troth@verinet.com>
8363
8364 * avr-tdep.c: Ran through gdb_indent.sh.
8365
8366 2002-04-25 Theodore A. Roth <troth@verinet.com>
8367
8368 * MAINTAINERS: Add myself as AVR maintainer.
8369 * NEWS: Note new target avr.
8370
8371 2002-04-25 Theodore A. Roth <troth@verinet.com>
8372
8373 * Makefile.in: Add support for AVR target.
8374 * configure.tgt: Add support for AVR target.
8375 * avr-tdep.c: New file
8376 * config/avr/avr.mt: New file.
8377
8378 2002-04-25 Theodore A. Roth <troth@verinet.com>
8379
8380 * MAINTAINERS: Add myself to write-after-approval.
8381
8382 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
8383
8384 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
8385 with fprintf_unfiltered (gdb_stderr,....
8386
8387 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
8388
8389 Fix PR gdb/508.
8390 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
8391
8392 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
8393
8394 * p-exp.y: Also use new prev_lexptr variable
8395 to improve error reporting. Based on Michael Snyder
8396 2002-04-24 dated patch to c-exp.y.
8397
8398 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
8399
8400 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
8401 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
8402 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
8403 to 0.
8404 * config/alpha/tm-alpha.h: Remove forward decls of struct type
8405 and struct value.
8406 (FUNCTION_START_OFFSET): Remove.
8407 (BREAKPOINT): Ditto.
8408
8409 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
8410
8411 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
8412 * NEWS: Ditto.
8413
8414 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
8415
8416 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
8417 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
8418 alpha_linux_pc_in_sigtramp.
8419 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
8420 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
8421 alpha_osf1_pc_in_sigtramp.
8422 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
8423 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
8424 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
8425 alphafbsd_pc_in_sigtramp.
8426 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
8427 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
8428 alphanbsd_pc_in_sigtramp.
8429 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
8430 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
8431
8432 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
8433
8434 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
8435
8436 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
8437
8438 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
8439 alphanbsd-tdep.c.
8440 (alphanbsd-nat.o): New dependency list.
8441 (alphanbsd-tdep.o): Ditto.
8442 * NEWS: Note new native NetBSD/alpha configuration.
8443 * alphanbsd-nat.c: New file.
8444 * alphanbsd-tdep.c: Ditto.
8445 * configure.host (alpha*-*-netbsd*): New host.
8446 * configure.tgt (alpha*-*-netbsd*): New target.
8447 * config/alpha/nbsd.mh: New file.
8448 * config/alpha/nbsd.mt: Ditto.
8449 * config/alpha/nm-nbsd.h: Ditto.
8450 * config/alpha/tm-nbsd.h: Ditto.
8451
8452 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
8453
8454 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
8455 (alpha-osf1-tdep.o): New dependency list.
8456 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
8457 and skip_sigtramp_frame members.
8458 * alpha-linux-tdep.c: Include gdbcore.h.
8459 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
8460 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
8461 * alpha-osf1-tdep.c: New file.
8462 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
8463 alpha-osf1-dep.c.
8464 (alpha_frame_past_sigtramp_frame): New function.
8465 (alpha_dynamic_sigtramp_offset): Ditto.
8466 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
8467 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
8468 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
8469 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
8470 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
8471 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
8472 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
8473 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
8474 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
8475 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
8476 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
8477 to find_solib_trampoline_target.
8478 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
8479 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
8480 (SKIP_TRAMPOLINE_CODE): Remove.
8481 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
8482 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
8483 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
8484 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
8485 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
8486 (PROC_SIGTRAMP_MAGIC): Ditto.
8487 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
8488 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
8489 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
8490 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
8491 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
8492
8493 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
8494
8495 * NEWS: Note that Alpha targets are now multi-arch.
8496
8497 2002-04-24 Michael Snyder <msnyder@redhat.com>
8498
8499 * parser-defs.h (prev_lexptr): New external variable.
8500 * parse.c (parse_exp_1): Set prev_lexptr to null before
8501 calling the language-specific parser.
8502 * c-exp.y (yylex): Set prev_lexptr to start of current token.
8503 (yyerror): Use prev_lexptr in error reporting.
8504
8505 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
8506
8507 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
8508 * gregset.h: If FILL_FPXREGSET is defined, provide
8509 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
8510 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
8511 is defined, call fill_fpxregset.
8512
8513 2002-04-24 Roland McGrath <roland@frob.com>
8514
8515 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
8516 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
8517 (supply_gregset, supply_fpregset): New functions.
8518
8519 * gnu-nat.c (gnu_find_memory_regions): New function.
8520 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
8521 (gnu_xfer_memory): Add a cast.
8522
8523 2002-04-24 Michael Snyder <msnyder@redhat.com>
8524
8525 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
8526 loop. Add handling for "str lr, [sp, #-4]!" and for saves
8527 of argument regs ("str r(0123), [r11, #-nn"]).
8528 (arm_skip_prologue): Better handling for frameless functions.
8529 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
8530 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
8531
8532 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
8533
8534 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
8535 NUM_PSEUDO_REGS can be used.
8536
8537 2002-04-24 Andrew Cagney <ac131313@redhat.com>
8538
8539 * arch-utils.h: Update copyright.
8540
8541 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
8542 * gdbarch.h, gdbarch.c: Re-generate.
8543
8544 * inferior.h (IN_SIGTRAMP): Delete definition.
8545 * arch-utils.c (legacy_pc_in_sigtramp): New function.
8546 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
8547
8548 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
8549 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
8550 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
8551 (find_proc_framesize): Ditto.
8552 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
8553 (alpha_init_extra_frame_info): Ditto.
8554 * infrun.c (handle_inferior_event): Ditto.
8555 (handle_inferior_event): Ditto.
8556 (check_sigtramp2): Ditto.
8557 * blockframe.c (create_new_frame): Ditto.
8558 (get_prev_frame): Ditto.
8559 * ppc-linux-tdep.c: Update comments.
8560 * i386-linux-tdep.c: Update comments.
8561 * breakpoint.c (bpstat_what): Update comment.
8562
8563 2002-04-24 David S. Miller <davem@redhat.com>
8564
8565 * i960-tdep.c (register_in_window_p): New function.
8566 (i960_find_saved_register): Use it instead of
8567 REGISTER_IN_WINDOW_P.
8568 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
8569
8570 * symtab.h (find_stab_function_addr): Kill extern.
8571 * minsyms.c (find_stab_function_addr): Remove from here...
8572 * dbxread.c: ... to here, and mark it static.
8573
8574 2002-04-20 David S. Miller <davem@redhat.com>
8575
8576 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
8577 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
8578
8579 2002-04-21 David S. Miller <davem@redhat.com>
8580
8581 * remote-vxsparc.c (vx_read_register): Fix typo, we want
8582 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
8583 (vx_write_register): Likewise.
8584
8585 2002-04-23 J. Brobecker <brobecker@gnat.com>
8586
8587 * source.c (is_regular_file): New function.
8588 (openp): Check wether file to open is a regular file
8589 to avoid opening directories.
8590
8591 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8592
8593 * findvar.c (extract_signed_integer): Cast printf argument
8594 to suppress format warning.
8595 (extract_unsigned_integer): Likewise.
8596 * infcmd.c (registers_info): Likewise.
8597 * top.c (get_prompt_1): Likewise.
8598 * valops.c (value_assign): Likewise.
8599 * valprint.c (print_decimal): Likewise.
8600
8601 2002-04-22 H.J. Lu (hjl@gnu.org)
8602
8603 * c-exp.y (typebase): Support
8604
8605 [long|long long|short] [signed|unsigned] [int|]
8606
8607 and
8608
8609 signed [long|long long|short] int
8610
8611 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8612
8613 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
8614 and vax-tdep.h.
8615 * vax-tdep.h: New file.
8616 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
8617 Make several routines static.
8618 (vax_get_saved_register): New function.
8619 (vax_gdbarch_init): New function.
8620 (_initialize_vax_tdep): Register vax_gdbarch_init.
8621 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
8622 Remove macros now under the control of gdbarch.
8623
8624 2002-04-22 Michael Snyder <msnyder@redhat.com>
8625
8626 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
8627 Some whitespace and coding standards tweaks.
8628
8629 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8630
8631 * vax-tdep.c: Include regcache.h.
8632 (vax_call_dummy_words): New.
8633 (sizeof_vax_call_dummy_words): New.
8634 (vax_fix_call_dummy): New function.
8635 (vax_saved_pc_after_call): Ditto.
8636 * config/vax/tm-vax.h: Don't include regcache.h.
8637 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
8638 (CALL_DUMMY): Remove.
8639 (CALL_DUMMY_WORDS): Define.
8640 (SIZEOF_CALL_DUMMY_WORDS): Define.
8641 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
8642
8643 2002-04-18 Michael Snyder <msnyder@redhat.com>
8644
8645 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
8646
8647 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8648
8649 * vax-tdep.c (vax_frame_chain): New function.
8650 (vax_push_dummy_frame): Ditto.
8651 (vax_pop_frame): Ditto.
8652 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
8653 (FRAMELESS_FUNCTION_INVOCATION): Use
8654 generic_frameless_function_invocation_not.
8655 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
8656 (POP_FRAME): Use vax_pop_frame.
8657
8658 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8659
8660 * vax-tdep.c (vax_store_struct_return): New function.
8661 (vax_extract_return_value): Ditto.
8662 (vax_store_return_value): Ditto.
8663 (vax_extract_struct_value_address): Ditto.
8664 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
8665 vax_store_struct_return.
8666 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
8667 (STORE_RETURN_VALUE): Use vax_store_return_value.
8668 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
8669
8670 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8671
8672 * vax-tdep.c (vax_frame_saved_pc): New function.
8673 (vax_frame_args_address_correct): Ditto.
8674 (vax_frame_args_address): Ditto.
8675 (vax_frame_locals_address): Ditto.
8676 (vax_frame_num_args): Move code to be in proximity to
8677 other frame-related functions.
8678 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
8679 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
8680 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
8681 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
8682 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
8683
8684 2002-04-22 H.J. Lu (hjl@gnu.org)
8685
8686 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
8687 includedir.
8688
8689 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8690
8691 * vax-tdep.c (vax_frame_init_saved_regs): New function.
8692 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
8693 (FRAME_INIT_SAVED_REGS): New macro.
8694
8695 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8696
8697 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
8698
8699 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8700
8701 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
8702 where needed.
8703 (fetch_osf_core_registers): Likewise.
8704 (supply_gregset): Likewise.
8705
8706 2002-04-22 J. Brobecker <brobecker@gnat.com>
8707
8708 * symfile.h (get_section_index): Define.
8709 * symfile.c (get_section_index): New function.
8710 * mdebugread.c (SC_IS_SBSS): New macro.
8711 (SC_IS_BSS): Return true for the scBss storage class only, as
8712 the scSBss storage class refers to the .sbss section.
8713 (parse_partial_symbols): Discard the symbols which associated
8714 section does not exist.
8715 Make sure to use the .sbss section index for symbols which
8716 storage class is scBss, rather than using the .bss section index.
8717
8718 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8719
8720 * vax-tdep.c: Update copyright years.
8721 (vax_register_name): New function.
8722 (vax_register_byte): Ditto.
8723 (vax_register_raw_size): Ditto.
8724 (vax_register_virtual_size): Ditto.
8725 (vax_register_virtual_type): Ditto.
8726 * config/vax/tm-vax.h: Update copyright years.
8727 (REGISTER_NAMES): Remove.
8728 (REGISTER_NAME): Define.
8729 (REGISTER_BYTE): Use vax_register_byte.
8730 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
8731 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
8732 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
8733
8734 2002-04-21 Andrew Cagney <ac131313@redhat.com>
8735
8736 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
8737 declaration
8738 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
8739
8740 2002-04-21 David S. Miller <davem@redhat.com>
8741
8742 * arch-utils.c (generic_prologue_frameless_p): Kill
8743 SKIP_PROLOGUE_FRAMELESS_P code.
8744 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
8745 references.
8746 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
8747 * arc-tdep.c (arc_prologue_frameless_p): Implement.
8748 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
8749 references.
8750 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
8751 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
8752 (sparc_gdbarch_init): Pass it to
8753 set_gdbarch_prologue_frameless_p.
8754
8755 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8756
8757 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
8758 (alphabsd-nat.o): New dependency list.
8759
8760 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8761
8762 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
8763 alphafbsd-tdep.c.
8764 (alpha-linux-tdep.o): New dependency list.
8765 (alphafbsd-tdep.o): Likewise.
8766
8767 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8768
8769 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
8770 to here...
8771 * alpha-tdep.c: ...from here.
8772 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
8773
8774 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8775
8776 * config/alpha/tm-alpha.h: Move alpha_software_single_step
8777 prototype from here...
8778 * alpha-tdep.h: ...to here.
8779
8780 2002-04-21 Andrew Cagney <ac131313@redhat.com>
8781
8782 * frame.h (selected_frame_level): Document as deprecated.
8783 (frame_relative_level): Declare.
8784 * stack.c (frame_relative_level): New function.
8785 (selected_frame_level): Document as deprecated.
8786 (select_frame): Do not set the selected_frame_level.
8787
8788 * stack.c (frame_info, record_selected_frame): Update.
8789 (frame_command, current_frame_command): Update.
8790 (up_silently_base, up_command, down_silently_base): Update.
8791 (down_command): Update.
8792 * inflow.c (kill_command): Update.
8793 * tracepoint.c (finish_tfind_command): Update.
8794 * corelow.c (core_open): Update.
8795 * thread.c (info_threads_command): Update.
8796 (do_captured_thread_select): Update.
8797 * infcmd.c (finish_command): Update.
8798 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
8799
8800 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8801
8802 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
8803
8804 2002-04-21 Andrew Cagney <ac131313@redhat.com>
8805
8806 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
8807 type const.
8808
8809 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8810
8811 * alphafbsd-tdep.c: Update copyright years. Include
8812 alpha-tdep.h.
8813 (alphafbsd_use_struct_convention): Make static.
8814 (alphafbsd_init_abi): New function.
8815 (_initialize_alphafbsd_tdep): New function.
8816 * config/alpha/tm-fbsd.h: Update copyright years.
8817 (USE_STRUCT_CONVENTION): Remove.
8818
8819 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8820
8821 * alpha-tdep.c (alpha_abi_handler): New structure to describe
8822 an Alpha ABI variant.
8823 (alpha_abi_handler_list): Declare.
8824 (alpha_gdbarch_register_os_abi): New function.
8825 (alpha_gdbarch_init): Give registered ABI variant handlers a
8826 chance to tweak the gdbarch once we have set up defaults.
8827 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
8828
8829 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8830
8831 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
8832 to standard_coerce_float_to_double.
8833 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
8834
8835 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8836
8837 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
8838 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
8839 from gdbarch_tdep rather than a constant.
8840 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
8841 the default text address for all Alpha Unix ABIs.
8842 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
8843 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
8844
8845 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8846
8847 * alpha-tdep.h: New file. Includes several Alpha target constants
8848 taken from...
8849 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
8850 let gdbarch deal with.
8851 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
8852 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
8853 to dependency list.
8854 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
8855 Alpha target register names.
8856 * alphabsd-nat.c: Likewise.
8857 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
8858 Alpha target register names. Make serveral routines static.
8859 (alpha_get_saved_register): New function.
8860 (alpha_abi_names): New.
8861 (process_note_abi_tag_sections): New function.
8862 (get_elfosabi): New function.
8863 (alpha_gdbarch_init): New function.
8864 (alpha_dump_tdep): New function.
8865 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
8866
8867 2002-04-21 Andrew Cagney <ac131313@redhat.com>
8868
8869 * frame.c (find_saved_register): Delete #ifdef
8870 HAVE_REGISTER_WINDOWS code.
8871 * config/sparc/tm-sparc.h: Update comments.
8872 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
8873
8874 2002-04-21 Andrew Cagney <ac131313@redhat.com>
8875
8876 * i960-tdep.c (i960_find_saved_register): New function.
8877 (i960_get_saved_register): New function.
8878 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
8879 (i960_get_saved_register): Declare.
8880 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
8881
8882 2002-04-20 David S. Miller <davem@redhat.com>
8883
8884 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
8885
8886 2002-04-20 Andrew Cagney <ac131313@redhat.com>
8887
8888 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
8889 instead of NUM_PSEUDO_REGS.
8890
8891 2002-04-20 David S. Miller <davem@redhat.com>
8892
8893 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
8894 GDB_MULTI_ARCH_PARTIAL
8895 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
8896 define, let tm-sp64.h do it.
8897
8898 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
8899
8900 * frame.c (find_saved_register): Avoid a NULL pointer
8901 dereference and actually walk the frame list.
8902
8903 2002-04-20 Andrew Cagney <ac131313@redhat.com>
8904
8905 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
8906 sorted in most most-recent-used order. Document.
8907 * gdbarch.h, gdbarch.c: Regenerate.
8908
8909 2002-04-19 Andrew Cagney <ac131313@redhat.com>
8910
8911 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
8912 instead of ->prev.
8913 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
8914 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
8915 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
8916 instead of ->prev.
8917
8918 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
8919
8920 Fix PR gdb/471.
8921 * gdbtypes.c (init_simd_type): Rewrite using new functions.
8922 (build_builtin_type_vec128): Ditto.
8923 (append_composite_type_field): Fix calculation of type length in
8924 union case.
8925
8926 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
8927
8928 * config/djgpp/README: Update.
8929
8930 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
8931 compiler warnings.
8932
8933 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
8934
8935 * alpha-tdep.c (setup_arbitrary_frame): Rename...
8936 (alpha_setup_arbitrary_frame): ...to this.
8937 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
8938 for alpha_setup_arbitrary_frame.
8939
8940 2002-04-18 Andrew Cagney <cagney@redhat.com>
8941
8942 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
8943 * gdbarch.h, gdbarch.c: Regenerate.
8944
8945 * defs.h (breakpoint_from_pc_fn): Delete type definition.
8946 * target.h (memory_breakpoint_from_pc): Update declaration.
8947 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
8948
8949 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
8950 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
8951 * mem-break.c (memory_breakpoint_from_pc): Ditto.
8952 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
8953 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
8954 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
8955 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
8956 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
8957 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
8958 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
8959 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
8960 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
8961
8962 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
8963 const pointer.
8964 * monitor.c (monitor_insert_breakpoint): Ditto.
8965 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
8966
8967 * config/mcore/tm-mcore.h: Update copyright.
8968 * mem-break.c: Ditto.
8969 * xstormy16-tdep.c: Ditto.
8970
8971 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
8972
8973 * p-exp.y: Add precedence rule for '^' token.
8974 This removes the shift/reduce conflicts.
8975 Remove the comment concerning these shift/reduce conflicts.
8976
8977 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
8978
8979 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
8980 (registers_powerpc_nofp): New register set for processors
8981 without floating point unit.
8982
8983 2002-04-18 David S. Miller <davem@redhat.com>
8984
8985 * MAINTAINERS: Add myself to write-after-approval.
8986
8987 2002-04-17 Michael Snyder <msnyder@redhat.com>
8988
8989 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
8990
8991 2002-04-17 Andrew Cagney <ac131313@redhat.com>
8992
8993 * rs6000-tdep.c (frame_initial_stack_address): Use
8994 frame_register_read to read the alloca_reg.
8995
8996 2002-04-17 Andrew Cagney <ac131313@redhat.com>
8997
8998 * frame.c (find_saved_register): Find saved registers in the next
8999 not prev frame.
9000 Fix PR gdb/365.
9001
9002 2002-04-17 Andrew Cagney <ac131313@redhat.com>
9003
9004 * gdbarch.sh (LANG): Set to ``c''.
9005
9006 2002-04-15 Andrew Cagney <ac131313@redhat.com>
9007
9008 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
9009
9010 2002-04-15 Andrew Cagney <ac131313@redhat.com>
9011
9012 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
9013 Update copyright.
9014
9015 * hpread.c (hpread_get_lntt): Add declaration.
9016 Also fix PR gdb/391.
9017
9018 2002-04-14 Andrew Cagney <ac131313@redhat.com>
9019
9020 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
9021 * aclocal.m4, configure: Re-generate.
9022 Fix PR gdb/391.
9023
9024 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
9025
9026 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
9027 instead of tm_print_insn.
9028
9029 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
9030
9031 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
9032
9033 2002-04-14 Andrew Cagney <ac131313@redhat.com>
9034
9035 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
9036 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
9037 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
9038
9039 2002-04-12 Don Howard <dhoward@redhat.com>
9040
9041 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
9042 max_user_call_depth.
9043 (init_cmd_lists): Initialize the new value;
9044 * cli/cli-script.c (execute_user_command): Limit the call depth of
9045 user defined commands. This avoids a core-dump when user commands
9046 are infinitly recursive.
9047
9048 2002-04-12 Kevin Buettner <kevinb@redhat.com>
9049
9050 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
9051 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
9052 from tdep struct instead of DEFAULT_LR_SAVE.
9053 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
9054 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
9055 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
9056
9057 2002-04-12 Michael Snyder <msnyder@redhat.com>
9058
9059 * Remote.c: Spelling fix.
9060 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
9061 If no symbol found for "sbrk", try "_sbrk".
9062 (make_output_phdrs): Use bfd_section_name.
9063 (gcore_copy_callback): Use bfd_section_name.
9064 * eval.c: Indentation fix-ups.
9065 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
9066 in case it gets applied to an address that is already
9067 in the instruction space.
9068 * cli/cli-decode.c (help_list): Allow long lines to wrap.
9069 * symfile.c: Fix indentation, long lines.
9070 * source.c: White space fix-up.
9071
9072 2002-04-12 Andrew Cagney <cagney@redhat.com>
9073
9074 * defs.h (read_relative_register_raw_bytes): Delete declaration.
9075 * frame.c (frame_register_read): New function. Return non-zero on
9076 success.
9077 (read_relative_register_raw_bytes_for_frame): Delete.
9078 (read_relative_register_raw_bytes): Delete.
9079 * frame.h (frame_register_read): Declare.
9080 * d30v-tdep.c: Update Copyright. Use frame_register_read.
9081 * sh-tdep.c: Ditto.
9082 * infcmd.c (do_registers_info): Ditto.
9083 * hppa-tdep.c: Ditto.
9084 * rs6000-tdep.c: Ditto.
9085 * h8500-tdep.c: Ditto.
9086 * mips-tdep.c: Ditto.
9087 * h8300-tdep.c: Ditto.
9088 * z8k-tdep.c: Ditto.
9089
9090 2002-04-12 Kevin Buettner <kevinb@redhat.com>
9091
9092 From Jimi X <jimix@watson.ibm.com>:
9093 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
9094 64-bit SysV ABI.
9095
9096 2002-04-12 Kevin Buettner <kevinb@redhat.com>
9097
9098 From Jimi X <jimix@watson.ibm.com>:
9099 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
9100 bfd info.
9101
9102 2002-04-12 Kevin Buettner <kevinb@redhat.com>
9103
9104 From Jimi X <jimix@watson.ibm.com>:
9105 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
9106 register sets for these processor variants.
9107
9108 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
9109
9110 * regformats/reg-ppc.dat: Support FPSCR.
9111
9112 2002-04-11 Kevin Buettner <kevinb@redhat.com>
9113
9114 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
9115 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
9116 Add fpscr as an invalid/unfetchable register.
9117 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
9118 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
9119 (fill_fpregset): Add support for register fpscr.
9120 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
9121 (fill_gregset): Account for the fact that register ``mq'' might
9122 not exist.
9123 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
9124 (registers_power): Add fpscr to register set at slot 71.
9125 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
9126 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
9127
9128 2002-04-11 Michael Snyder <msnyder@redhat.com>
9129
9130 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
9131 * configure: Regenerate.
9132 * config.in: Regenerate.
9133 * acconfig.h: Add define for _SYSCALL32.
9134 * core-sol2.c: Remove #define _SYSCALL32.
9135 * solib-legacy.c: Remove #define _SYSCALL32.
9136
9137 2002-04-10 Andrew Cagney <ac131313@redhat.com>
9138
9139 * stack.c (select_frame): Cleanup internal error message, do not
9140 use %p.
9141
9142 2002-04-10 Andrew Cagney <ac131313@redhat.com>
9143
9144 * stack.c (select_frame): Check that selected_frame and the
9145 specified level are as expected.
9146 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
9147 Update copyright.
9148 * frame.h (struct frame_info): Add field `level'. Update
9149 copyright.
9150 Work-in-progress PR gdb/464.
9151
9152 2002-04-10 Andrew Cagney <ac131313@redhat.com>
9153
9154 * maint.c (maint_print_section_info): Rename print_section_info.
9155 (print_bfd_section_info, print_objfile_section_info): Update.
9156 * inferior.h (struct gdbarch): Add opaque declaration.
9157 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
9158 * gdbarch.h: Regenerate.
9159
9160 2002-04-10 Michal Ludvig <mludvig@suse.cz>
9161
9162 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
9163 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
9164 (kernel_u_size): Added.
9165 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
9166 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
9167
9168 2002-04-04 Jim Ingham <jingham@apple.com>
9169
9170 * valarith.c (find_size_for_pointer_math): New function, either returns
9171 the size for a pointer's target, returns 1 for void *, or errors for
9172 incomplete types.
9173 (value_add, value_sub): use find_size_for_pointer_math.
9174
9175 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
9176
9177 * linux-low.c (linux_look_up_symbols): New hook.
9178 (linux_target_ops): Add linux_look_up_symbols.
9179 * remote-utils.c (decode_address): New function.
9180 (look_up_one_symbol): New function.
9181 * server.c (handle_query): Call target look_up_symbols hook.
9182 * server.h (look_up_one_symbol): Add prototype.
9183 * target.h (struct target_ops): Add look_up_symbols hook.
9184
9185 2002-04-09 Andrew Cagney <ac131313@redhat.com>
9186
9187 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
9188 override FP_REGNUM with frame->fp. Update copyright.
9189 * parse.c (num_std_regs, std_regs): Delete.
9190 (target_map_name_to_register): Do not search std_regs. Update
9191 function description.
9192 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
9193 declarations. Update copyright.
9194 Fix PR gdb/251.
9195
9196 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
9197
9198 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
9199 after the last symbol in a block.
9200
9201 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
9202
9203 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
9204 is non zero as a found symbol.
9205
9206 2002-04-08 Andrew Cagney <ac131313@redhat.com>
9207
9208 * findvar.c: Include "builtin-regs.h".
9209 (value_of_register): Call value_of_builtin_reg when applicable.
9210 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
9211 (target_map_name_to_register): Call
9212 builtin_reg_map_name_to_regnum.
9213 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
9214 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
9215 (builtin_regs_h): Define.
9216 (builtin-regs.o): New target.
9217 (findvar.o): Add $(builtin_regs_h).
9218 * builtin-regs.c, builtin-regs.h: New files.
9219 * std-regs.c: New file.
9220 Partial fix for PR gdb/251.
9221
9222 2002-04-08 Kevin Buettner <kevinb@redhat.com>
9223
9224 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
9225 it's no longer required.
9226
9227 2002-04-08 Andrew Cagney <ac131313@redhat.com>
9228
9229 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
9230
9231 2002-04-08 Kevin Buettner <kevinb@redhat.com>
9232
9233 From Jimi X <jimix@watson.ibm.com>:
9234 * rs6000-tdep.c (rs6000_software_single_step): Use
9235 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
9236 and size. Use target_insert_breakpoint() and
9237 target_remove_breakpoint() to insert and remove breakpoints
9238 instead of explicit memory reads and writes.
9239
9240 2002-04-08 Kevin Buettner <kevinb@redhat.com>
9241
9242 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
9243 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
9244 ELF_OBJECT_FORMAT ifdef.
9245
9246 2002-04-08 Kevin Buettner <kevinb@redhat.com>
9247
9248 From Jimi X <jimix@watson.ibm.com>:
9249 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
9250
9251 2002-04-08 Kevin Buettner <kevinb@redhat.com>
9252
9253 From Jimi X <jimix@watson.ibm.com>:
9254 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
9255 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
9256
9257 2002-04-07 Mark Kettenis <kettenis@gnu.org>
9258
9259 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
9260 s/asprintf/xasprintf/.
9261 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
9262
9263 2002-04-07 Andrew Cagney <ac131313@redhat.com>
9264
9265 I believe Jeff Law denies responsability for this one:
9266 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
9267 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
9268 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
9269 Work-around for PR gdb/366.
9270
9271 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
9272
9273 * remote-e7000.c (write_small, e7000_read_inferior_memory,
9274 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
9275 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
9276
9277 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
9278
9279 * sh-tdep.c (sh_fp_frame_init_saved_regs,
9280 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
9281 information.
9282
9283 2002-04-07 Andrew Cagney <ac131313@redhat.com>
9284
9285 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
9286 maintainer.
9287
9288 2002-04-07 Andrew Cagney <ac131313@redhat.com>
9289
9290 * README (Reporting Bugs in GDB): Document the bug web page as the
9291 prefered way of submitting bugs.
9292 Fix PR gdb/402.
9293
9294 2002-04-06 Andrew Cagney <ac131313@redhat.com>
9295
9296 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
9297 -1. Update comment.
9298 * gdbarch.h, gdbarch.c: Re-generate.
9299
9300 2002-04-07 Andreas Schwab <schwab@suse.de>
9301
9302 * m68klinux-nat.c (fill_fpregset): Properly pass address of
9303 buffer to regcache_collect.
9304
9305 2002-04-06 Andrew Cagney <ac131313@redhat.com>
9306
9307 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
9308 * gdbarch.c, gdbarch.h: Re-generate.
9309
9310 2002-04-06 Andrew Cagney <ac131313@redhat.com>
9311
9312 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
9313 declaration. Fix -Werror.
9314
9315 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
9316
9317 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
9318 * gdbarch.c: Regenerate.
9319
9320 2002-04-05 Michael Snyder <msnyder@redhat.com>
9321
9322 * breakpoint.c (clear_command): Rewrite middle section to
9323 combine two loops with identical control conditions.
9324 Add a cleanup to eliminate a memory leak.
9325 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
9326
9327 2002-04-05 H.J. Lu (hjl@gnu.org)
9328
9329 * solib-svr4.c (bkpt_names): Add "__start".
9330
9331 2002-04-04 Andrew Cagney <ac131313@redhat.com>
9332
9333 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
9334 as test for 64 bit target.
9335
9336 2002-04-05 Andrew Cagney <ac131313@redhat.com>
9337
9338 * h8500-tdep.c (h8500_write_fp): Delete function.
9339 * dwarf2cfi.c (cfi_write_fp): Document as not used.
9340 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
9341 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
9342 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
9343 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
9344 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
9345 (s390_write_fp):
9346 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
9347 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
9348 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
9349 (d10v_write_fp): Delete function.
9350 * inferior.h (write_fp, generic_target_write_fp): Delete
9351 declarations.
9352 * regcache.c (generic_target_write_fp): Delete function.
9353 (write_fp): Delete function.
9354 * gdbarch.sh (TARGET_WRITE_FP): Delete.
9355 * gdbarch.h, gdbarch.c: Regenerate.
9356 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
9357 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
9358 (sparc64_write_fp): Delete declaration.
9359 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
9360 (h8500_write_fp): Delete declaration.
9361
9362 2002-04-04 Andrew Cagney <ac131313@redhat.com>
9363
9364 * sparc-tdep.c (sparc64_write_fp): Delete.
9365 (sparc_push_dummy_frame): Replace write_fp call with code to store
9366 the FP directly.
9367 (sparc_gdbarch_init): Do not initialize write_fp.
9368
9369 2002-04-05 Kevin Buettner <kevinb@redhat.com>
9370
9371 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
9372 clause.
9373
9374 2002-03-29 Jim Blandy <jimb@redhat.com>
9375
9376 * stack.c (get_selected_block): Add new argument `addr_in_block',
9377 used to return the exact code address we used to select the block,
9378 not just the block.
9379 * blockframe.c (get_frame_block, get_current_block): Same.
9380 * frame.h (get_frame_block, get_current_block,
9381 get_selected_block): Update declarations.
9382 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
9383 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
9384
9385 2002-04-05 Michael Snyder <msnyder@redhat.com>
9386
9387 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
9388 warning message.
9389
9390 2002-04-05 J. Brobecker <brobecker@gnat.com>
9391
9392 * utils.c (xfullpath): New function.
9393 * defs.h (xfullpath): Add declaration.
9394 * source.c (openp): Use xfullpath in place of gdb_realpath to
9395 avoid resolving the basename part of filenames when the
9396 associated file is a symbolic link. This fixes a potential
9397 inconsistency between the filenames known to GDB and the
9398 filenames it prints in the annotations.
9399 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
9400 to be able to match a filename with either the real filename, or
9401 the name of any symbolic link to this file.
9402 (lookup_partial_symtab): Ditto.
9403
9404 2002-04-04 Michael Snyder <msnyder@redhat.com>
9405
9406 * breakpoint.c: Add support for hardware breakpoints in overlays.
9407 (overlay_events_enabled): New state variable.
9408 (insert_breakpoints): Use overlay_events_enabled to decide
9409 whether to attempt to set a breakpoint at the overlay load addr.
9410 Handle bp_hardware_breakpoint as well as bp_breakpoint.
9411 (remove_breakpoint): Use overlay_events_enabled to decide
9412 whether breakpoints need to be removed from overlay load addr.
9413 Handle bp_hardware_breakpoint as well as bp_breakpoint.
9414 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
9415 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
9416 disable_overlay_breakpoints): Update overlay_events_enabled.
9417
9418 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
9419
9420 * dwarf2read.c (struct function_range): New.
9421 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
9422 (check_cu_functions): New.
9423 (read_file_scope): Initialize global function lists.
9424 Call dwarf_decode_line after processing children.
9425 (read_func_scope): Add to global function list.
9426 (dwarf_decode_lines): Call check_cu_functions everywhere
9427 record_line is called. Call record_line with a linenumber
9428 of 0 to mark sequence ends.
9429
9430 2002-04-04 Michal Ludvig <mludvig@suse.cz>
9431
9432 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
9433 change sync with glibc.
9434
9435 2002-04-03 Jim Blandy <jimb@redhat.com>
9436
9437 * configure.in: Call AC_C_INLINE.
9438 * configure: Regenerated.
9439
9440 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
9441
9442 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
9443 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
9444
9445 2002-03-31 Mark Kettenis <kettenis@gnu.org>
9446
9447 * NEWS: Mention gcore support on FreeBSD/i386.
9448
9449 * fbsd-proc.c: New file.
9450 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
9451 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
9452
9453 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
9454 while statement.
9455
9456 2002-03-29 Jim Blandy <jimb@redhat.com>
9457
9458 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
9459 unescaped newlines in string literals, but newer ones don't. So
9460 escape them.
9461
9462 2002-03-26 Michael Snyder <msnyder@redhat.com>
9463 Andrew Cagney <cagney@redhat.com>
9464
9465 * cli/cli-dump.c: New file. Dump memory to file,
9466 restore file to memory.
9467 * cli/cli-dump.h: New file.
9468 * Makefile.in: Add rules, dependencies for cli-dump.o.
9469 * NEWS: Mention new commands.
9470
9471 2002-03-28 Michael Snyder <msnyder@redhat.com>
9472
9473 * symfile.c (symbol_file_add): Move test for null symbols to later.
9474
9475 2002-03-27 Andrew Cagney <ac131313@redhat.com>
9476
9477 From veksler at il.ibm.com:
9478 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
9479 the xstrduped original path.
9480 Fix PR gdb/417.
9481
9482 2002-03-27 Michael Snyder <msnyder@redhat.com>
9483
9484 * breakpoint.c (_initialize_breakpoint): Clean up help string.
9485 * infcmd.c (_initialize_infcmd): Ditto.
9486 * language.c (_initialize_language): Ditto.
9487 * symfile.c (_initialize_symfile): Ditto.
9488 * top.c (_init_main): Ditto.
9489 * cli/cli-cmds.c (init_cli_cmds): Ditto.
9490
9491 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
9492
9493 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
9494 vector registers handling.
9495 (skip_prologue): Handle new AltiVec instructions. Fill in new
9496 fields of frame data.
9497 (frame_get_saved_regs): Fill in information for AltiVec registers.
9498
9499 2002-03-27 Jim Blandy <jimb@redhat.com>
9500
9501 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
9502 a function; leave this macro here to invoke that function.
9503 (symbol_init_mangled_name): Declaration for that function.
9504 * symtab.c (symbol_init_mangled_name): New function.
9505
9506 2002-03-27 Andrew Cagney <ac131313@redhat.com>
9507
9508 * valarith.c: Replace strerror with safe_strerror.
9509 * tracepoint.c: Ditto.
9510 * lin-lwp.c: Ditto.
9511 * go32-nat.c: Ditto.
9512 * inflow.c: Ditto.
9513 * gnu-nat.c: Ditto.
9514
9515 2002-03-27 Andreas Schwab <schwab@suse.de>
9516
9517 * event-top.c (command_line_handler): Remove useless if.
9518
9519 2002-03-27 Andreas Jaeger <aj@suse.de>
9520
9521 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
9522 comment.
9523
9524 2002-03-27 Michal Ludvig <mludvig@suse.cz>
9525
9526 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
9527 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
9528 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
9529 (x86_64_linux_dr_get_status, supply_gregset),
9530 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
9531 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
9532 (x86_64_register_info_table): Add.
9533 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
9534 (x86_64_register_raw_size, x86_64_register_virtual_type),
9535 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
9536 general x86_64_register_info_table.
9537 (i386_gdbarch_init): gdbarch_register_bytes is now set
9538 dynamicaly during initialization.
9539 * regformats/reg-x86-64.dat: Synced with changes to registers above.
9540 * gdbserver/linux-x86-64-low.c: Ditto.
9541
9542 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
9543
9544 * gdbserver/server.c (main): Call target_signal_to_host_p
9545 and target_signal_to_host on signals received from the remote.
9546 * gdbserver/remote-utils.c (prepare_resume_reply): Call
9547 target_signal_from_host on signals sent to the remote.
9548 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
9549 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
9550
9551 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
9552
9553 * signals/signals.c: Include "server.h" in gdbserver build.
9554 (target_signal_from_name): Don't use STREQ.
9555 (_initialize_signals): Likewise. Don't include function in
9556 gdbserver build.
9557
9558 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
9559
9560 * signals.c: Moved to...
9561 * signals/signals.c: Here.
9562 * Makefile (signals.o): Update.
9563
9564 2002-03-26 Jeff Law (law@redhat.com)
9565
9566 * somread.c (som_symtab_read): Remove some commented out code and
9567 updated related comments. Do not set the minimal symbol table to
9568 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
9569 in a dynamic executable.
9570 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
9571 where we are unable to find the minimal symbol for the given
9572 PC value.
9573
9574 2002-03-25 Jeff Law (law@redhat.com)
9575
9576 * linux-proc.c (read_mapping): Scan up to end of line for filename.
9577
9578 2002-03-25 Michal Ludvig <mludvig@suse.cz>
9579
9580 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
9581
9582 2002-03-23 Andrew Cagney <ac131313@redhat.com>
9583
9584 * command.h: Update copyright.
9585 (struct cmd_list_element): Replace definition with opaque
9586 declaration.
9587 (enum cmd_types): Document that it will eventually be moved to
9588 cli/cli-decode.h
9589 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
9590 (MALLOCED_REPLACEMENT): Delete macro.
9591 * Makefile.in (cli_decode_h): Add $(command_h).
9592 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
9593 * top.c: Include "cli/cli-decode.h".
9594 * completer.c: Include "cli/cli-decode.h".
9595 * maint.c: Include "cli/cli-decode.h".
9596 * cli/cli-decode.h: Include "command.h".
9597 (enum command_class): Delete.
9598 (enum cmd_types): Comment out.
9599 (enum cmd_auto_boolean): Delete.
9600 (enum var_types): Delete.
9601
9602 2002-03-23 Andrew Cagney <ac131313@redhat.com>
9603
9604 * cli/cli-decode.c: Include "gdb_assert.h".
9605 (add_set_or_show_cmd): New static function.
9606 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
9607 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
9608 all fields, such as func, from the set command.
9609
9610 2002-03-23 Andrew Cagney <ac131313@redhat.com>
9611
9612 * MAINTAINERS (sh-elf): Change warning flag to -w.
9613
9614 2002-03-23 Andrew Cagney <cagney@redhat.com>
9615
9616 * defs.h (error): Add printf format attribute.
9617 * thread-db.c (thread_from_lwp): Fix error format string.
9618 * stack.c (parse_frame_specification): Ditto.
9619 * cli/cli-decode.c (undef_cmd_error): Ditto.
9620 * scm-lang.c (scm_lookup_name): Ditto.
9621 * tracepoint.c (trace_error): Ditto.
9622 * remote-utils.c (usage): Ditto.
9623 * remote.c (compare_sections_command): Ditto.
9624 Fix PR gdb/328.
9625
9626 2002-03-22 Andrew Cagney <ac131313@redhat.com>
9627
9628 * gdbtypes.c (append_composite_type_field): New function.
9629 (init_composite_type): New function.
9630 * gdbtypes.h (append_composite_type_field): Declare.
9631 (init_composite_type): Ditto.
9632
9633 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
9634
9635 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
9636 function.
9637 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
9638 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
9639 structure returning convention for SYSV ABI case, but not
9640 for GNU/Linux, FreeBSD, or NetBSD.
9641
9642 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
9643
9644 * symtab.h (lookup_block_symbol): Add mangled_name argument
9645 to prototype.
9646
9647 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
9648 with new mangled_name argument.
9649 * linespec.c (decode_line_1): Likewise.
9650 * valops (value_of_this): Likewise.
9651 * symtab.c (lookup_transparent_type): Likewise.
9652 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
9653 (lookup_symbol): If we are given a mangled name, pass it down
9654 to lookup_symbol_aux.
9655 (lookup_block_symbol): If we are given a mangled name to check
9656 against, only return symbols which match it.
9657
9658 2002-03-22 Christopher Faylor <cgf@redhat.com>
9659
9660 * win32-nat.c (child_create_inferior): Check for proper shell to use
9661 here, in case the user changes it on the fly.
9662 (_initialize_inftarg): Remove shell path considerations.
9663
9664 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
9665
9666 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
9667 for gdbarch_max_register_raw_size and max_register_virtual_size.
9668 Adjust copyright year.
9669
9670 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
9671
9672 * dbxread.c (process_one_symbol): Extend the first N_SLINE
9673 in a function to cover the entire beginning of the function
9674 as well if it does not already.
9675
9676 2002-03-21 Tom Rix <trix@redhat.com>
9677
9678 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
9679 (rs6000_ptrace64): Renamed from ptrace64.
9680
9681 2002-03-20 Martin M. Hunt <hunt@redhat.com>
9682
9683 * gdbserver/remote-utils.c (remote_open): Don't call
9684 getprotobyname, we're all using TCP here so just use
9685 IPPROTO_TCP.
9686 * gdbserver/gdbreplay.c (remote_open): Ditto.
9687
9688 2002-03-20 Martin M. Hunt <hunt@redhat.com>
9689
9690 * regcache.c (_initialize_regcache): No need to call
9691 build_regcache() at this time; it gets called whenever
9692 the gdbarch changes.
9693
9694 2002-03-20 David O'Brien <obrien@FreeBSD.org>
9695
9696 * sparc-nat.c: Include sys/param.h where possible.
9697
9698 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
9699
9700 Fix PR gdb/422.
9701 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
9702 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
9703 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
9704 complex types.
9705 * stabsread.c (rs6000_builtin_type): Likewise.
9706 (read_sun_floating_type): Likewise.
9707
9708 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9709
9710 * stabsread.c (read_member_functions): Remove skip code for duplicate
9711 constructor/destructor methods. Use standard parsing for these
9712 methods and just do not chain them to the list of methods after
9713 parsing.
9714
9715 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
9716
9717 * coffread.c: Remove redundant static declarations. Replace
9718 occurrences of `PTR' with `void *'.
9719 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
9720 * top.h (quit_cover): Likewise.
9721 * defs.h (catch_errors): Likewise.
9722
9723 2002-03-18 Andrew Cagney <ac131313@redhat.com>
9724
9725 * defs.h (XMALLOC): Define.
9726 * gdb-events.sh (XMALLOC): Delete macro.
9727 * gdb-events.c, gdb-events.h: Regenerate.
9728 * gdbarch.sh (XMALLOC): Delete macro.
9729 * gdbarch.c: Regenerate.
9730 * serial.c (XMALLOC): Delete macro.
9731 * ui-file.c (XMALLOC): Ditto.
9732 * ser-unix.h (XMALLOC): Ditto.
9733 * sh-tdep.c (XMALLOC): Ditto.
9734 * ui-out.c (XMALLOC): Ditto.
9735 * utils.c (XMALLOC): Ditto.
9736 * i386-tdep.c (XMALLOC): Ditto.
9737 * gdb-events.c (XMALLOC): Ditto.
9738 * d10v-tdep.c (XMALLOC): Ditto.
9739 * cli-out.c (XMALLOC): Ditto.
9740
9741 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
9742 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
9743 * ui-file.c, ui-out.c: Ditto.
9744
9745 2002-03-18 Andrew Cagney <ac131313@redhat.com>
9746
9747 * command.h (struct cmd_list_element): Add field context.
9748 (set_cmd_context, get_cmd_context): Declare.
9749 * cli/cli-decode.h: Ditto.
9750 * cli/cli-decode.c (get_cmd_context): New function.
9751 (set_cmd_context): New function.
9752 (add_cmd): Initialize context.
9753 Part of fixing PR gdb/145 and PR gdb/146.
9754
9755 2002-03-17 Andrew Cagney <ac131313@redhat.com>
9756
9757 * cli/cli-decode.c (cmd_type): New function.
9758 * command.h (cmd_type): Declare.
9759 * infrun.c (set_schedlock_func): Call function cmd_type.
9760 * kod.c (kod_set_os): Call cmd_type.
9761 * cris-tdep.c (cris_version_update): Use function cmd_type.
9762 (cris_mode_update, cris_abi_update): Ditto.
9763
9764 * command.h: (execute_cmd_post_hook): Declare.
9765 (execute_cmd_pre_hook): Declare.
9766 * cli/cli-script.c (clear_hook_in_cleanup): New function.
9767 (execute_cmd_post_hook, execute_cmd_pre_hook): New
9768 functions. Execute pre/post hook while ensuring that afterwords
9769 hook_in is cleared.
9770 * top.c (execute_command): Use execute_cmd_post_hook, and
9771 execute_cmd_pre_hook to execute pre/post commands.
9772 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
9773 hook_stop_stub.
9774 (hook_stop_stub): Call execute_cmd_pre_hook.
9775
9776 2002-03-17 Andrew Cagney <ac131313@redhat.com>
9777
9778 * kod.c (kod_set_os): Revert previous change. Is called by ``info
9779 set'' and this leads to a core dump. Move xstrdup of
9780 operating_system to after check that it is not NULL.
9781
9782 2002-03-17 Andrew Cagney <ac131313@redhat.com>
9783
9784 * kod.c (kod_set_os): Remove unnecessary check that
9785 ``command->type'' is set_cmd.
9786
9787 * valprint.c (set_input_radix): Use input_radix.
9788 (set_output_radix): Use output_radix.
9789 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
9790 isn't reverted.
9791
9792 2002-03-16 Andrew Cagney <ac131313@redhat.com>
9793
9794 * value.h (struct value): Delete field ``substring_addr''. Change
9795 aligner fields to force_doublest_align, force_longest_align,
9796 force_core_addr_align and force_pointer_aligh.
9797
9798 * value.h (struct value): Fix typo in above change.
9799
9800 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9801
9802 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
9803 to fix internal_error from ``maintenance print architecture''.
9804
9805 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9806
9807 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
9808 for gcc versions after gcc-2.8.1.
9809
9810 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9811
9812 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
9813 for method resolution. Restore adjustment of ``this'' pointer after
9814 calling value_struct_elt, which was accidentally removed during the
9815 HP merge.
9816
9817 2002-03-15 Andrew Cagney <ac131313@redhat.com>
9818
9819 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
9820 value_of_register.
9821 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
9822 get_saved_register.
9823 * value.h (value_of_register): Update.
9824
9825 2002-03-14 Richard Henderson <rth@redhat.com>
9826
9827 * configure.in: Detect declaration for canonicalize_file_name.
9828 * utils.c (canonicalize_file_name): Declare, if needed.
9829 (gdb_realpath): Prefer realpath if available and usable.
9830 * config.in, configure: Rebuild.
9831
9832 2002-03-14 Richard Henderson <rth@redhat.com>
9833
9834 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
9835 a constant array bound.
9836
9837 * MAINTAINERS: Add myself to write-after-approval.
9838
9839 2002-03-14 Michael Snyder <msnyder@redhat.com>
9840
9841 * symfile.c (syms_from_objfile): Return immediately if no syms.
9842 (symbol_file_add): Return immediately if no syms.
9843 (find_sym_fns): Return immediately if no syms.
9844
9845 2002-03-13 Michal Ludvig <mludvig@suse.cz>
9846
9847 * gdbserver/remote-util.c (remote_open): Print remote-side's
9848 IP address when remote debugging over the network.
9849
9850 2002-03-12 David O'Brien <obrien@FreeBSD.org>
9851
9852 * config/sparc/fbsd.mh: Fix copyright.
9853 * config/sparc/fbsd.mt: Likewise.
9854
9855 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
9856
9857 * MAINTAINERS: Fix typo in name of gdb warnings option.
9858 (x86-64): Fix formating so that this can be parsed by awk.
9859
9860 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
9861
9862 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
9863 * defs.h: Include "gdb/signals.h".
9864 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
9865
9866 2002-03-10 Michal Ludvig <mludvig@suse.cz>
9867
9868 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
9869 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
9870 from x86-64-tdep.h
9871
9872 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
9873 Don Howard <dhoward@redhat.com>
9874
9875 * mips-tdep.c (ST0_FR): Define.
9876 (mips2_fp_compat): New function, temporarily disabled.
9877 (mips_read_fp_register_single): New function.
9878 (mips_read_fp_register_double): New function.
9879 (mips_print_register): Use them.
9880 (do_fp_register_row): Likewise.
9881
9882 2002-03-09 Andrew Cagney <ac131313@redhat.com>
9883
9884 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
9885 approval''.
9886
9887 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9888
9889 * stabsread.c (read_member_functions): Fix is_stub test for
9890 static member functions, improve comment.
9891
9892 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
9893
9894 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
9895 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
9896 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
9897 commands that set boolean values.
9898 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
9899 (arm_rdi_resume): Always initialize PC.
9900 (arm_rdi_open): Don't use rslt as a boolean.
9901 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
9902 (arm_rdi_fetch_registers, arm_rdi_store_registers)
9903 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
9904 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
9905
9906 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
9907
9908 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
9909 * configure: Rebuilt.
9910
9911 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9912
9913 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
9914 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
9915
9916 2002-03-06 Andrew Cagney <ac131313@redhat.com>
9917
9918 * cli/cli-decode.c (set_cmd_completer): New function.
9919 * command.h (set_cmd_completer): Declare.
9920 * cli/cli-decode.h (set_cmd_completer): Ditto.
9921
9922 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
9923 * cli/cli-cmds.c (init_cli_cmds): Ditto.
9924 * win32-nat.c (_initialize_inftarg): Ditto.
9925 * remote-rdi.c (_initialize_remote_rdi): Ditto.
9926 * proc-api.c (_initialize_proc_api): Ditto.
9927 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
9928 * source.c (_initialize_source): Ditto.
9929 * exec.c (_initialize_exec): Ditto.
9930 * solib.c (_initialize_solib): Ditto.
9931 * top.c (init_main): Ditto.
9932 * tracepoint.c (_initialize_tracepoint): Ditto.
9933 * symfile.c (_initialize_symfile): Ditto.
9934 * printcmd.c (_initialize_printcmd): Ditto.
9935 * infcmd.c (_initialize_infcmd): Ditto.
9936 * corefile.c (_initialize_core): Ditto.
9937
9938 2002-03-05 Andrew Cagney <ac131313@redhat.com>
9939
9940 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
9941
9942 2002-03-05 Andrew Cagney <ac131313@redhat.com>
9943
9944 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
9945
9946 2002-03-05 Andrew Cagney <ac131313@redhat.com>
9947
9948 * NEWS: Update headings, 5.2 has branched.
9949
9950 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
9951
9952 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
9953 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
9954 (register_addr, REGISTER_RAW_SIZE): Likewise.
9955 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
9956 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
9957
9958 2002-03-03 Michal Ludvig <mludvig@suse.cz>
9959
9960 * MAINTAINERS (x86-64): Add myself.
9961 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
9962 changed value_ptr -> struct value *
9963
9964 2002-03-01 David O'Brien <obrien@FreeBSD.org>
9965
9966 * configure.host (sparc64-*-freebsd): Add.
9967 * configure.tgt: Likewise.
9968 * config/sparc/fbsd.mh: New file.
9969 * config/sparc/fbsd.mt: Likewise.
9970 * config/sparc/nm-fbsd.h: Likewise.
9971 * config/sparc/tm-fbsd.h: Likewise.
9972
9973 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
9974
9975 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
9976 regformats/reg-s390x.dat.
9977
9978 2002-03-01 Andrew Cagney <ac131313@redhat.com>
9979
9980 * utils.c: Add FIXME explaining true/false problem.
9981
9982 2002-02-28 Andrew Cagney <ac131313@redhat.com>
9983
9984 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
9985
9986 2002-02-28 Michael Chastain <mec@shout.net>
9987
9988 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
9989
9990 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
9991
9992 * gdbserver/linux-s390-low.c: New file.
9993 * regformats/reg-s390.dat: New file.
9994 * regformats/reg-s390x.dat: New file.
9995 * gdbserver/configure.srv: Add S/390.
9996 * gdbserver/Makefile.in: Add S/390.
9997 * configure.tgt: Enable gdbserver for S/390.
9998
9999 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
10000
10001 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
10002 first line of the doc string for "info dos", except at the end of
10003 the sentence, since the short help stops at the first period.
10004
10005 2002-02-28 Jason Merrill <jason@redhat.com>
10006
10007 * dwarf2read.c (dwarf_cfi_name): Add new codes.
10008
10009 2002-02-27 Fred Fish <fnf@redhat.com>
10010
10011 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
10012 comment (dumy -> dummy).
10013
10014 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10015
10016 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
10017
10018 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
10019
10020 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
10021
10022 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
10023
10024 * gdbserver/acconfig.h: New file.
10025 * gdbserver/i387-fp.c: New file.
10026 * gdbserver/i387-fp.h: New file.
10027 * gdbserver/linux-x86-64.c: New file.
10028 * regformats/reg-x86-64.dat: New file.
10029 * configure.tgt: Add x86_64-*-linux* gdbserver support.
10030 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
10031 * gdbserver/configure.in: Add support for regsets.
10032 * gdbserver/config.in: Regenerate.
10033 * gdbserver/configure: Regenerate.
10034 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
10035 * gdbserver/linux-low.h: New file.
10036 * gdbserver/linux-low.c: Include "linux-low.h". Add support
10037 for regsets.
10038 * gdbserver/linux-arm-low.c: Include "linux-low.h".
10039 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
10040 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
10041 * gdbserver/linux-mips-low.c: Include "linux-low.h".
10042 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
10043 * gdbserver/linux-sh-low.c: Include "linux-low.h".
10044 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
10045 "i387-fp.h". Add PTRACE_GETREGS and friends.
10046 * gdbserver/regcache.c (supply_register): New function.
10047 (supply_register_by_name): New function.
10048 (collect_register): New function.
10049 (collect_register_by_name): New function.
10050
10051 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
10052
10053 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
10054 (config.status): Add configure.srv dependency.
10055 (server_h): Add config.h dependency.
10056
10057 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
10058
10059 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
10060 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
10061 * gdbserver/configure.srv: Change i386-*-linux* to use
10062 reg-i386-linux.o.
10063
10064 2002-02-26 Andrew Cagney <ac131313@redhat.com>
10065
10066 * x86-64-tdep.c: Re-indent. Update copyright date.
10067
10068 2002-02-26 Andrew Cagney <ac131313@redhat.com>
10069
10070 From Michal Ludvig <mludvig@suse.cz>:
10071 * x86-64-tdep.c (value.h): Delete.
10072 (gdb_assert.h): Include.
10073 (x86_64_register_convert_to_virtual,
10074 x86_64_register_convert_to_raw ): Add check which lets only
10075 floating-point values to be converted.
10076 (value_push): Delete.
10077 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
10078 (i386_gdbarch_init): Number of register_bytes fixed.
10079
10080 2002-02-26 Andrew Cagney <ac131313@redhat.com>
10081
10082 * MAINTAINERS: Add x86-64 target.
10083
10084 2002-02-26 Andrew Cagney <ac131313@redhat.com>
10085
10086 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
10087 * osfsolib.c (solib_map_sections): Ditto.
10088 * irix5-nat.c (solib_map_sections): Ditto.
10089 * corelow.c (gdb_check_format): Ditto.
10090 * symfile.c (symfile_bfd_open): Ditto.
10091 * solib.c (solib_map_sections): Ditto.
10092 Fix PR gdb/354.
10093
10094 2002-02-26 Andrew Cagney <ac131313@redhat.com>
10095
10096 * remote.c (_initialize_remote): By default, disable ``e'' and
10097 ``E'' step out-of-range packets.
10098
10099 2002-02-26 Andreas Schwab <schwab@suse.de>
10100
10101 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
10102 m68k_linux_frame_saved_pc.
10103 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
10104 in_sigtramp.
10105 (SIGCONTEXT_PC_OFFSET): Remove.
10106 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
10107 m68k_linux_sigtramp_saved_pc): New functions.
10108 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
10109 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
10110 (UCONTEXT_PC_OFFSET): Define.
10111 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
10112 non-RT and RT signal trampolines.
10113
10114 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
10115
10116 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
10117 (TARGET_NBPG, STACK_END_ADDR): Delete
10118 (VARIABLES_INSIDE_BLOCK): Delete.
10119
10120 2002-02-25 Andrew Cagney <ac131313@redhat.com>
10121
10122 * utils.c (perror_with_name): Make string parameter constant.
10123 (print_sys_errmsg): Ditto.
10124 (query): Ditto.
10125 * defs.h (perror_with_name): Update.
10126 (print_sys_errmsg): Update.
10127 (query): Update.
10128
10129 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
10130
10131 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
10132 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
10133
10134 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10135
10136 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
10137 if it already matches the current architecture from the exec file.
10138 Include arch-utils.h for gdbarch_info_init prototype.
10139 * Makefile.in (rs6000-nat.o): Update dependencies.
10140
10141 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
10142
10143 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
10144 list of exported variables.
10145
10146 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
10147
10148 * gdbserver/configure.srv: New file.
10149 * gdbserver/configure.in: Use configure.srv instead
10150 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
10151 from it.
10152 * gdbserver/configure: Regenerated.
10153 * gdbserver/terminal.h: New file.
10154 * gdbserver/Makefile.in: Update for configure changes. Remove
10155 more unneeded include paths.
10156
10157 2002-02-24 Andrew Cagney <ac131313@redhat.com>
10158
10159 From wiz at danbala:
10160 * config/sparc/tm-sp64.h: Fix grammar and typos.
10161 Fix PR gdb/287.
10162
10163 2002-02-24 Andrew Cagney <ac131313@redhat.com>
10164
10165 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
10166 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
10167 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
10168 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
10169 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
10170 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
10171 * s390-tdep.c: Ditto.
10172 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
10173 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
10174 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
10175 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
10176 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
10177 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
10178 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
10179 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
10180 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
10181 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
10182 Fix PR gdb/378.
10183
10184 2002-02-23 Andrew Cagney <ac131313@redhat.com>
10185
10186 * lin-thread.c: Delete file.
10187 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
10188 to gdb_proc_service.h.
10189 * configure: Re-generate.
10190
10191 * ocd.c (ocd_open): Do not try to open the "ocd" device.
10192 * serial.c (serial_open): Delete check for "ocd".
10193 Fix PR gdb/349.
10194
10195 * Makefile.in (linux-thread.o): Delete target.
10196 * linux-thread.c: Delete file.
10197
10198 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
10199 renamed SH files to be consistent.
10200
10201 * symtab.c (sort_search_symbols): Use xfree.
10202
10203 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
10204
10205 * arm-linux-tdep.c (arm_linux_init_abi): Register
10206 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
10207 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
10208 definition with undef, since we don't want the sysvr4 definition.
10209 (SKIP_TRAMPOLINE_CODE): Likewise.
10210
10211 2002-02-23 Andrew Cagney <ac131313@redhat.com>
10212
10213 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
10214
10215 * configure.in: (AC_CHECK_FUNCS) Added test for
10216 canonicalize_file_name Regenerated.
10217 * config.in, configure: Regenerated.
10218 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
10219 defined use canonicalize_file_name.
10220
10221 2002-02-23 Michael Chastain <mec@shout.net>
10222
10223 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
10224
10225 2002-02-23 Andrew Cagney <ac131313@redhat.com>
10226
10227 * README: Remove references to cygnus.com.
10228 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
10229 dot com'' form. Remove references to cygnus.com and sourceware.
10230
10231 2002-02-23 Andrew Cagney <ac131313@redhat.com>
10232
10233 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
10234 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
10235 1003.1-2001 no longer allows "head -1".
10236 * gdb/Makefile.in (version.c): Likewise.
10237 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
10238 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
10239 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
10240
10241 2002-02-23 Andrew Cagney <ac131313@redhat.com>
10242
10243 * cli/cli-decode.c (cmd_cfunc_eq): New function.
10244 * command.h (cmd_cfunc_eq): Declare.
10245 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
10246
10247 * cli/cli-cmds.h (is_complete_command): Change parameter to a
10248 ``struct cmd_list_element *''.
10249 * cli/cli-cmds.c (is_complete_command): Update. Use
10250 cmd_cfunc_eq.
10251 * top.c (execute_command): Pass the command to
10252 is_complete_command.
10253 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
10254
10255 2002-02-23 Andrew Cagney <ac131313@redhat.com>
10256
10257 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
10258 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
10259 architecture defines.
10260 * s390-tdep.c (s390_gdbarch_init): Likewise.
10261
10262 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
10263
10264 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
10265 (arm_linux_push_arguments): Likewise.
10266 (arm_linux_init_abi): Register them. Also register linux-specific
10267 call_dummy_words.
10268 (find_minsym_and_objfile): Use strcmp, not STREQ.
10269 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
10270 (arm_linux_call_dummy_words): Delete declaration.
10271 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
10272 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
10273 declarations.
10274 (LOWEST_PC): Delete.
10275
10276 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10277
10278 * maint.c (print_section_info): Do not prepend `0x' to filepos
10279 output, it will be handled by local_hex_string_custom.
10280
10281 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
10282
10283 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
10284 (store_newfpe_double, store_newfpe_extended, store_fpregister)
10285 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
10286
10287 2002-02-22 Jim Blandy <jimb@redhat.com>
10288
10289 Indicate that the bcache functions don't change the strings
10290 they're passed.
10291 * bcache.h (bcache, hash): Add `const' keywords to declarations.
10292 * bcache.c (bcache, hash): Add `const' keywords to definitions.
10293
10294 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
10295
10296 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
10297
10298 2002-02-21 Christopher Faylor <cgf@redhat.com>
10299
10300 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
10301 find the complete path to a loaded DLL.
10302
10303 2002-02-21 Fred Fish <fnf@redhat.com>
10304
10305 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
10306 that marks the end of the range of a function, enter a line number
10307 entry that has a line number of zero and a PC offset that matches
10308 the end of the function. This starts a range of PC's for which no
10309 line number information is known.
10310 * symtab.c (find_pc_sect_line): If our best fit is in a range of
10311 PC's for which no line number info is found (line number is zero)
10312 then we didn't find any valid line information.
10313 * symtab.h: Document use of zero line number entry.
10314
10315 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
10316
10317 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
10318 (have_ptrace_getvrregs): Define for run time checks.
10319 (gdb_vrregset_t): New type for Altivec register handling.
10320 (fetch_register, store_register): Fetch/store altivec register
10321 when needed.
10322 (fetch_altivec_register, store_altivec_register): New functions.
10323 (supply_vrregset, fill_vrregset): New functions.
10324 (fetch_altivec_registers, store_altivec_registers): New functions.
10325 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
10326 registers as well.
10327
10328 2002-02-21 Jiri Smid <smid@suse.cz>
10329
10330 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
10331
10332 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
10333
10334 * Makefile.in (armnbsd-nat.o): Update dependencies.
10335 * armnbsd-nat.c (supply_gregset): New function. Common code to
10336 supply the integer register set.
10337 (supply_fparegset): New function. Similar for FPA registers.
10338 (fetch_regs, fetch_fp_regs): Use them.
10339 (fetch_core_registers): Likewise.
10340 (fetch_elfcore_registers): New function.
10341 (arm_netbsd_elfcore_fns): New core-file type specification.
10342 (_initialize_arm_netbsd_nat): Register it.
10343
10344 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
10345
10346 * armnbsd-nat.c: Include gdbcore.h.
10347 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
10348 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
10349 'void' to declaration, to shut up ARI.
10350 (fetch_core_registers): Make static. Rewrite using supply_register.
10351 (arm_netbsd_core_fns): New core-file type specification.
10352 (_initialize_arm_netbsd_nat): New function.
10353
10354 2002-02-21 Christopher Faylor <cgf@redhat.com>
10355
10356 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
10357 value.
10358
10359 2002-02-20 Christopher Faylor <cgf@redhat.com>
10360
10361 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
10362 fails.
10363
10364 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
10365
10366 * jv-exp.y (parse_number): Change type of implicit longs
10367 to builtin_type_uint64.
10368
10369 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
10370
10371 * gdbserver/linux-low.c (mywait): Change argument to waitpid
10372 to be an integer instead of a `union wait'.
10373
10374 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
10375
10376 * mips-linux-nat.c: Call the operating system GNU/Linux.
10377 * mips-linux-tdep.c: Likewise.
10378 * mips-tdep.c: Likewise.
10379
10380 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
10381
10382 Fix PR gdb/265.
10383 * jv-exp.y (parse_number): Handle 64-bit integers.
10384
10385 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
10386
10387 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
10388 AC_STDC_HEADERS to AC_HEADER_STDC.
10389 * gdbserver/configure: Regenerated.
10390
10391 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
10392
10393 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
10394 is defined.
10395 * sparc-tdep.c (get_longjmp_target): Likewise.
10396
10397 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
10398
10399 * News: Add news about ARM and Multi-arch. Mention the new target
10400 arm*-*-netbsd*.
10401
10402 2002-02-19 Jim Blandy <jimb@redhat.com>
10403
10404 * stabsread.c (error_type_complaint): Improve error message.
10405
10406 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
10407
10408 * gdbserver/README: Update documentation.
10409 * gdbserver/configure.in: Update configury to match documentation.
10410 * gdbserver/Makefile.in: Likewise.
10411 * gdbserver/configure: Regenerated.
10412 * gdbserver/aclocal.m4: New file, generated by aclocal.
10413 * gdbserver/config.in: New file, generated by autoheader.
10414
10415 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
10416
10417 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
10418 armnbsd-nat.c.
10419
10420 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
10421
10422 * arm-tdep.h (enum arm_float_model): New enum.
10423 (struct gdbarch_tdep): Add fp_model.
10424 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
10425 up floating-point conversions until we know the floating-point model
10426 in use by the inferior. Don't complain about being unable to
10427 determine the ABI of the inferior when we don't have one.
10428 (arm_extract_return_value): Support different floating-point models.
10429 (arm_store_return_value): Likewise.
10430 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
10431 ARM_FLOAT_SOFT.
10432 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
10433
10434 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10435
10436 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
10437 of ``current_gdbarch''.
10438
10439 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
10440
10441 * armnbsd-nat.c : ANSIfy all function declarations.
10442 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
10443 (fetch_inferior_registers): Re-implement in terms of above.
10444 (store_register, store_regs, store_fp_register, store_fp_regs): New.
10445 (store_inferior_registers): Re-implement in terms of above.
10446
10447 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
10448
10449 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
10450 kernel.
10451 * arm-linux-tdep.c: Likewise.
10452 * config/arm/tm-linux.h: Likewise.
10453
10454 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
10455
10456 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
10457 * config/arm/nbsd.mt (TM_FILE): Delete.
10458 * config/arm/tm-nbsd.h: Delete.
10459
10460 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
10461
10462 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
10463 Initialize CALL_DUMMY_LENGTH.
10464
10465 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
10466
10467 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
10468 function.
10469 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
10470 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
10471 defines one thing and that is incorrect for this port.
10472 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
10473
10474 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
10475
10476 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
10477
10478 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
10479
10480 * win32-nat.c (display_selector): New function. Displays information
10481 about the information returned by GetThreadSelectorEntry API function.
10482 (display_selectors): New function. Displays the infomation of
10483 the selector given as argument, or of CS, DS ans FS selectors
10484 if no argument is given.
10485 ( _initialize_inftarg): Add "w32" as info prefix command.
10486 Add "info w32 selector" as command calling display_selectors.
10487
10488 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
10489
10490 * i386-tdep.c (get_longjmp_target): Fix compilation failure
10491 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
10492 if not defined.
10493
10494 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
10495
10496 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
10497
10498 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
10499
10500 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
10501 (arm_fix_call_dummy): Call it.
10502 (arm_call_dummy_breakpoint_offset): Delete.
10503 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
10504 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
10505
10506 2002-02-18 Andrew Cagney <ac131313@redhat.com>
10507
10508 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
10509 Default to func_frame_chain_valid.
10510 * gdbarch.h, gdbarch.c: Re-generate.
10511 * frame.h (FRAME_CHAIN_VALID): Delete definition.
10512
10513 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
10514
10515 * ppc-linux-nat.c: Update copyright.
10516 (fetch_register, store_register): Add tid parameter, don't compute
10517 tid here.
10518 (fetch_ppc_registers, store_ppc_registers): Add tid
10519 parameter. Pass it along to callees.
10520 (fetch_inferior_registers, store_inferior_registers): Compute tid
10521 here, and pass it to calleed functions.
10522 (fill_gregset, supply_fpregset): Clean up formatting.
10523
10524 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
10525
10526 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
10527 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
10528
10529 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
10530
10531 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
10532 * gdbarch.c gdbarch.h: Regenerate.
10533 * breakpoint.c (create_longjmp_breakpoint): Always compile this
10534 function.
10535 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
10536 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
10537 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
10538
10539 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
10540 * arm-tdep.c (arm_get_longjmp_target): New function.
10541 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
10542 this to a positive value register arm_get_longjmp_target as the
10543 longjmp handler.
10544 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
10545 (arm_linux_init_abi): Set up longjmp description in tdep.
10546 * armnbsd-nat.c (get_longjmp_target): Delete.
10547 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
10548 description in tdep.
10549 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
10550 (get_longjmp_target): Delete declaration.
10551 (GET_LONGJMP_TARGET): Delete.
10552 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
10553 (GET_LONGJMP_TARGET): Delete.
10554
10555 2002-02-17 Kevin Buettner <kevinb@redhat.com>
10556
10557 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
10558 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
10559 of ``current_gdbarch''.
10560
10561 2002-02-17 Tom Tromey <tromey@redhat.com>
10562
10563 * cli/cli-cmds.c (compare_strings): New function.
10564 (complete_command): Only print each unique item once.
10565 * completer.h (complete_line): Declare.
10566 * completer.c (complete_line): New function.
10567 (line_completion_function): Use it.
10568
10569 2002-02-16 Andrew Cagney <ac131313@redhat.com>
10570
10571 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
10572 * gdbarch.h, gdbarch.c: Re-generate.
10573
10574 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
10575
10576 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
10577
10578 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
10579
10580 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
10581 * valops.c (value_arg_coerce): Don't take the address of a reference
10582 to convert an argument to a reference.
10583
10584 2002-02-15 Christopher Faylor <cgf@redhat.com>
10585
10586 * win32-nat.c (get_image_name): New function.
10587 (handle_load_dll): Use get_image_name function.
10588 (get_child_debug_event): Avoid registering debug events until possibly
10589 execed process is started.
10590 (child_create_inferior): Allow invocation via shell so that command
10591 line redirection, etc. works ok.
10592 (_initialize_inftarg): Add new command: "set shell" to control whether
10593 a shell is used to start a process.
10594
10595 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
10596
10597 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
10598 instead of find_register_by_number.
10599 (cannot_store_register): Likewise.
10600
10601 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
10602
10603 * dwarf2read.c: Replace fprintf (stderr, ...) by
10604 fprintf_unfiltered (gdb_stderr, ...).
10605
10606 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
10607
10608 * gdbserver/gdbserver.1: Document --attach.
10609
10610 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
10611
10612 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
10613 descriptions.
10614 * arm-tdep.c (arm_default_arm_le_breakpoint)
10615 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
10616 (arm_default_thumb_be_breakpoint): New. Initialize them from
10617 traditional breakpoint defines.
10618 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
10619 (arm_gdbarch_init): Initialize new breakpoint variables.
10620 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
10621 (arm_linux_init_abi): Initialize linux-specific breakpoint.
10622 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
10623 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
10624 code out to ...
10625 (arm_netbsd_init_abi_common): ... here; new function.
10626 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
10627 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
10628 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
10629 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
10630
10631 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
10632
10633 * arm-tdep.h (enum arm_abi): New enum.
10634 (struct gdbarch_tdep): New structure.
10635 (LOWEST_PC): Provide a default.
10636 (arm_gdbarch_register_os_abi): Declare new function.
10637 * arm-tdep.c (arm_abi_names): New array.
10638 (process_note_abi_tag_sections): New function.
10639 (get_elfosabi): New function.
10640 (arm_gdbarch_register_os_abi): New function.
10641 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
10642 support for that ABI has been built in, then call the appropriate
10643 configuration routine. Use gdbarch_num_regs() to get the number
10644 of registers.
10645 (arm_dump_tdep): New function.
10646 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
10647 place-holder functions.
10648 (_initialize_arm_tdep): Register them.
10649 * config/arm/tm-arm.h (LOWEST_PC): Delete.
10650
10651 * armnbsd-tdep.c: New file.
10652 * Makefile.in (armnbsd-tdep.o): Add dependencies.
10653 * config/arm/nbsd.mt (TDEPFILES): Add it.
10654 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
10655
10656 * armnbsd-nat.c: Include regcache.h.
10657 * Makefile.in (armnbsd-nat.o): Update dependency list.
10658
10659 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
10660
10661 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
10662
10663 * gdbserver/Makefile.in: Fix typos in target rules.
10664
10665 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
10666
10667 Fix part of PR gdb/267.
10668 * linespec.c (find_methods): Handle constructors specially for now.
10669
10670 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
10671
10672 * arm-tdep.c (arm_push_arguments): Eliminate special float type
10673 handling.
10674 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
10675 standard_coerce_float_to_double().
10676
10677 2002-02-14 Christopher Faylor <cgf@redhat.com>
10678
10679 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
10680 GDBINIT_FILENAME.
10681
10682 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
10683
10684 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
10685 find_variant_by_name, because it confuses the multiarch
10686 framework. Return NULL if there isn't an architecture with the
10687 user supplied name, instead of forcing a different one without
10688 recording the change with the multiarch machinery.
10689 (find_variant_by_name): Delete.
10690
10691 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10692
10693 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
10694 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
10695
10696 2002-02-13 Martin M. Hunt <hunt@redhat.com>
10697
10698 * stack.c (print_frame_info_base): When calling
10699 print_frame_info_listing_hook, set current_source_symtab.
10700
10701 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
10702
10703 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
10704 and remove unused $(INCLUDE_DIR).
10705 Add regcache.c to OBS.
10706 Add generated register protocol files to clean target.
10707 Update dependencies for new objects, obsolete old target code.
10708
10709 * gdbserver/linux-low.c: Remove all platform-specific code to
10710 new files. Remove various dead code. Update to use regcache
10711 functionality.
10712 * gdbserver/remote-utils.c (fromhex): Add return statement
10713 to quiet warning.
10714 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
10715 constant.
10716 (input_interrupt): Add integer parameter to match prototype
10717 of a signal handler.
10718 (outreg): Use register_data ().
10719 (prepare_resume_reply): Use gdbserver_expedite_regs.
10720 * gdbserver/server.c (main): Dynamically allocate own_buf because
10721 PBUFSIZ is no longer constant. Use registers_to_string () and
10722 registers_from_string ().
10723 * gdbserver/server.h: No longer include "defs.h". Add prototypes
10724 for error (), fatal (), and warning (). Update definition of
10725 PBUFSIZ to use regcache functionality. Add include guard.
10726 * gdbserver/utils.c (fatal): Add missing ``const''.
10727 (warning): New function.
10728
10729 * regformats/regdat.sh: Include "regcache.h" in generated files.
10730 Provide init_registers () function.
10731 * regformats/regdef.h: Add prototype for set_register_cache ().
10732 Add include guard.
10733
10734 * gdbserver/linux-arm-low.c: New file.
10735 * gdbserver/linux-i386-low.c: New file.
10736 * gdbserver/linux-ia64-low.c: New file.
10737 * gdbserver/linux-m68k-low.c: New file.
10738 * gdbserver/linux-mips-low.c: New file.
10739 * gdbserver/linux-ppc-low.c: New file.
10740 * gdbserver/linux-sh-low.c: New file.
10741
10742 * gdbserver/regcache.c: New file.
10743 * gdbserver/regcache.h: New file.
10744
10745 * gdbserver/low-linux.c: Removed obsolete file.
10746
10747 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
10748
10749 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
10750 * config/i386/linux.mt: Likewise.
10751 * config/ia64/linux.mt: Likewise.
10752 * config/m68k/linux.mh: Likewise.
10753 * config/powerpc/linux.mh: Likewise.
10754 * config/mips/linux.mt: Likewise.
10755
10756 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
10757
10758 * config/i386/i386lynx.mh: Mark gdbserver variables
10759 as (currently) obsolete for this target.
10760 * config/i386/nbsd.mt: Likewise.
10761 * config/i386/nbsdelf.mt: Likewise.
10762 * config/m32r/m32r.mt: Likewise.
10763 * config/m68k/m68klynx.mh: Likewise.
10764 * config/m68k/nbsd.mt: Likewise.
10765 * config/m68k/sun3os4.mh: Likewise.
10766 * config/mips/vr5000.mt: Likewise.
10767 * config/ns32k/nbsd.mt: Likewise.
10768 * config/pa/hppabsd.mh: Likewise.
10769 * config/pa/hppaosf.mh: Likewise.
10770 * config/powerpc/nbsd.mt: Likewise.
10771 * config/rs6000/rs6000lynx.mh: Likewise.
10772 * config/s390/s390.mt: Likewise.
10773 * config/s390/s390x.mt: Likewise.
10774 * config/sparc/sparclynx.mh: Likewise.
10775 * config/sparc/sun4os4.mh: Likewise.
10776 * config/i386/x86-64linux.mt: Likewise.
10777 * config/sparc/linux.mh: Likewise.
10778
10779 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
10780
10781 * configure.tgt: Configure gdbserver only for known working
10782 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
10783 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
10784 SUBDIRS if it is configured. Update comment for ${nativefile}.
10785 * configure: Regenerated.
10786
10787 2002-02-13 Michael Snyder <msnyder@redhat.com>
10788
10789 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
10790
10791 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
10792 (default_gcore_mach): Just return 0, work around a problem in bfd.
10793 (default_gcore_target): OK to return NULL if exec_bfd is null.
10794 (make_mem_sec): Use a cast, avoid a warning.
10795
10796 * procfs.c (find_memory_regions_callback): Use a cast instead of
10797 calling host_pointer_to_address (which complains if
10798 sizeof (host pointer) != sizeof (target pointer)).
10799 (procfs_make_note_section): Avoid overflow in psargs string.
10800
10801 * procfs.c (procfs_make_note_section): Make the default
10802 implementation return an error.
10803
10804 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
10805
10806 * procfs.c (procfs_make_note_section): Provide a default definition
10807 (for alpha-dec-osf4.0f). Fix typos.
10808
10809 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
10810
10811 * linux-proc.c: Add include of regcache.h.
10812 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
10813
10814 2002-02-13 Andrew Cagney <ac131313@redhat.com>
10815
10816 From 2002-01-18 Greg McGary <greg@mcgary.org>:
10817 * memattr.c (create_mem_region): Disallow useless empty region.
10818 Regions are half-open intervals, so allow [A..B) [B..C) as
10819 non-overlapping.
10820
10821 2002-02-13 Michael Chastain <mec@shout.net>
10822
10823 * defs.h: Kill CONST_PTR.
10824 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
10825 * c-lang.c (c_builtin_types): Likewise.
10826 * ch-lang.c (ch_builtin_types): Likewise.
10827 * f-lang.c (f_builtin_types): Likewise.
10828 * language.c (unknown_builtin_types): Likewise.
10829 * m2-lang.c (m2_builtin_types): Likewise.
10830 * p-lang.c (pascal_builtin_types): Likewise.
10831 * scm-lang.c (c_builtin_types): Likewise.
10832
10833 2002-02-13 Keith Seitz <keiths@redhat.com>
10834
10835 * arm-tdep.h (arm_get_next_pc): Add declaration.
10836
10837 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
10838
10839 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
10840 with other related struct-returning functions.
10841 (arm_extract_struct_value_address): New function.
10842 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
10843 initialize float_format, double_format and long_double_format as
10844 appropriate to the endianness of the target.
10845 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
10846 (arm_use_struct_convention): Delete declaration.
10847 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
10848
10849 2002-02-13 Keith Seitz <keiths@redhat.com>
10850
10851 * defs.h (core_addr_to_string_nz): New function.
10852
10853 2002-02-13 Mark Kettenis <kettenis@gnu.org>
10854
10855 Apply missing bits of 2002-01-15 patch.
10856 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
10857 (fill_fpregset): Use i387_fill_fsave.
10858
10859 2002-02-12 Keith Seitz <keiths@redhat.com>
10860
10861 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
10862 (core_addr_to_string_nz): New function.
10863
10864 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
10865
10866 * arm-linux-nat.c: Really include arm-tdep.h.
10867 * config/arm/tm-linux.h (struct type, struct value): Declare.
10868
10869 2002-02-11 Michael Snyder <msnyder@redhat.com>
10870
10871 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
10872 (gcore section): Ifdef for Solaris and Unixware only.
10873 (procfs_do_thread_registers): Unixware needs one lwpstatus
10874 per thread (not one prstatus or pstatus).
10875 (procfs_make_note_section): Iterate only over kernel threads (lwps),
10876 not over all gdb threads. For unixware, call elfcore_write_pstatus
10877 once before iterating over threads.
10878
10879 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
10880
10881 * arm-tdep.h: New file.
10882 * arm-tdep.c: Include arm-tdep.h.
10883 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
10884 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
10885 (arm_print_float_info, arm_register_type, convert_to_extended)
10886 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
10887 (arm_extract_return_value, arm_register_name): Make static.
10888 (arm_software_single_step): Similarly. Fix types in declaration.
10889 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
10890 (arm_store_return_value, arm_store_struct_return): New functions.
10891 (arm_gdbarch_init): Register the above functions. Also register
10892 call_dummy_start_offset, sizeof_call_dummy_words,
10893 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
10894 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
10895 max_register_virtual_size, register_size. Set up
10896 prologue_cache.saved_regs here, rather than ...
10897 (_initialize_arm_tdep): ... here.
10898 * config/arm/tm-arm.h (struct type, struct value): Delete forward
10899 declarations.
10900 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
10901 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
10902 (arm_print_float_info, arm_register_type, convert_to_extended)
10903 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
10904 (arm_extract_return_value, arm_register_name): Delete declarations.
10905 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
10906 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
10907 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
10908 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
10909 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
10910 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
10911 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
10912 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
10913 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
10914 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
10915 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
10916 (arm_get_next_pc): No-longer static -- these are needed by the RDI
10917 interface.
10918 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
10919 * remote-rdi.c remote-rdp.c: Likewise.
10920 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
10921 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
10922 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
10923 definition.
10924
10925 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
10926 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
10927 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
10928 from non-ARM_ prefixed definitions.
10929 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
10930 all uses of above.
10931 * remote-rdi.c remote-rdp.c: Likewise.
10932 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
10933
10934 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
10935
10936 * arm-tdep.c (arm_frameless_function_invocation)
10937 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
10938 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
10939 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
10940 (arm_pop_frame, arm_get_next_pc): Make static.
10941 (arm_gdbarch_init): Register above in gdbarch structure.
10942 (arm_read_fp): Renamed from arm_target_read_fp.
10943 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
10944 * config/arm/tm-arm.h (arm_frameless_function_invocation)
10945 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
10946 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
10947 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
10948 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
10949 (arm_pc_is_thumb_dummy): Delete declarations.
10950 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
10951 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
10952 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
10953 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
10954
10955 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
10956
10957 * symtab.c (compare_search_syms): New function.
10958 (sort_search_symbols): New function.
10959 (search_symbols): Sort symbols after searching rather than
10960 before.
10961
10962 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10963
10964 * NEWS: Linux -> GNU/Linux.
10965
10966 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10967
10968 * gdbarch.sh: For for level one methods, disallow a definition
10969 when partially multi-arched. Add comments explaining rationale.
10970 * gdbarch.h: Re-generate.
10971
10972 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10973
10974 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
10975 multi-arch partial.
10976
10977 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10978
10979 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
10980 field. Use diff -u.
10981 * gdbarch.c: Re-generate.
10982
10983 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10984
10985 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
10986 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
10987 partial.
10988
10989 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10990
10991 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
10992 multi-arch partial.
10993 (PUSH_ARGUMENTS): Switch to using predefault.
10994 * gdbarch.c: Regenerate.
10995
10996 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10997
10998 * valops.c (PUSH_ARGUMENTS): Delete definition.
10999 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
11000 partial. Default to default_push_arguments.
11001 * gdbarch.h, gdbarch.c: Regenerate.
11002
11003 2002-02-09 Andrew Cagney <ac131313@redhat.com>
11004
11005 * defs.h (throw_exception): Rename return_to_top_level. Update
11006 comments.
11007 * utils.c (error_stream, internal_verror, quit): Ditto.
11008 * top.c (throw_exception, catcher): Ditto.
11009 * sparclet-rom.c (sparclet_load): Ditto.
11010 * remote.c (interrupt_query, minitelnet): Ditto.
11011 * remote-sds.c (interrupt_query): Ditto.
11012 * remote-mips.c (mips_error, mips_kill): Ditto.
11013 * ocd.c (interrupt_query): Ditto.
11014 * monitor.c (monitor_interrupt_query): Ditto.
11015 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
11016 * target.h: Update comment.
11017
11018 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
11019
11020 2002-02-09 Andrew Cagney <ac131313@redhat.com>
11021
11022 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
11023 default_double_format.
11024 * gdbarch.h, gdbarch.c: Re-generate.
11025 * findvar.c (floatformat_unknown): Delete variable definition.
11026 * doublest.h (floatformat_unknown): Delete variable declaration.
11027
11028 2002-02-09 Jim Blandy <jimb@redhat.com>
11029
11030 * stabsread.c (read_type): Add code to parse Sun's syntax for
11031 prototyped function types.
11032
11033 2002-02-09 Andrew Cagney <ac131313@redhat.com>
11034
11035 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
11036 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
11037
11038 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11039
11040 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
11041 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
11042 now _initialize_xcoffsolib gets called again and overrides the
11043 commands from solib.c in a native configuration.
11044
11045 2002-02-09 Mark Kettenis <kettenis@gnu.org>
11046
11047 * doublest.c (store_typed_floating): Don't try to return a value.
11048 Fixes PR gdb/290.
11049
11050 2002-02-08 Jim Blandy <jimb@redhat.com>
11051
11052 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
11053 is prototyped and has no arguments, print its argument list as
11054 `(void)'.
11055
11056 2002-02-08 Chris Demetriou <cgd@broadcom.com>
11057
11058 * MAINTAINERS (write-after-approval): Add myself.
11059 (paper-trail): I've escaped!
11060
11061 2002-02-08 Christopher Faylor <cgf@redhat.com>
11062
11063 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
11064 changes.
11065 (_initialize_check_for_gdb_ini): Ditto.
11066
11067 2002-02-08 Martin M. Hunt <hunt@redhat.com>
11068
11069 * win32-nat.c (cygwin_pid_to_str): Fix typo.
11070 xaprintf -> xasprintf.
11071
11072 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
11073
11074 * win32-nat.c: Remove use of printf and sprintf functions.
11075
11076 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
11077
11078 * arm-tdep.c (arm_frame_chain_valid): Make static.
11079 (arm_push_arguments): Likewise.
11080 (arm_gdbarch_init): New function.
11081 (_initialize_arm_tdep): Call it.
11082 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
11083 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
11084 (FRAME_CHAIN_VALID): Delete.
11085 (arm_frame_chain_valid): Delete declaration.
11086 (PUSH_ARGUMENTS): Delete.
11087 (arm_push_arguments): Delete declaration.
11088 (CALL_DUMMY_P): Delete.
11089
11090 2002-02-08 Andrew Cagney <ac131313@redhat.com>
11091 Corinna Vinschen <vinschen@redhat.com>
11092
11093 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
11094 on builtin float types.
11095
11096 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
11097
11098 * utils.c: Include <curses.h> before "bfd.h".
11099 * tui/tui-hooks.c: Likewise.
11100 * tui/tui.c: Likewise.
11101 * tui/tuiCommand.c: Likewise.
11102 * tui/tuiData.c: Likewise.
11103 * tui/tuiDataWin.c: Likewise.
11104 * tui/tuiDisassem.c: Likewise.
11105 * tui/tuiGeneralWin.c: Likewise.
11106 * tui/tuiIO.c: Likewise.
11107 * tui/tuiLayout.c: Likewise.
11108 * tui/tuiRegs.c: Likewise.
11109 * tui/tuiSource.c: Likewise.
11110 * tui/tuiSourceWin.c: Likewise.
11111 * tui/tuiStack.c: Likewise.
11112 * tui/tuiWin.c: Likewise.
11113
11114 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
11115
11116 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
11117 to include space for pseudoregs as well. Update loops accordingly.
11118 (sh_fp_frame_init_saved_regs): Ditto.
11119 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
11120
11121 2002-02-07 Andrew Cagney <ac131313@redhat.com>
11122
11123 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
11124 Add Richard Earnshaw to Arm maintainers.
11125
11126 2002-02-07 Andrew Cagney <ac131313@redhat.com>
11127
11128 * defs.h (warning_begin): Delete declaration.
11129
11130 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
11131 Delete macro.
11132
11133 2002-02-07 Michael Snyder <msnyder@redhat.com>
11134
11135 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
11136 Logic bug, remove misplaced else.
11137
11138 2002-02-07 Klee Dienes <klee@apple.com>
11139
11140 * fork-inferior.c (fork_inferior): Add '!' to the list of
11141 characters that need to be quoted when building a string for the
11142 shell. Quote '!' specifically with a backslash, since CSH chokes
11143 when trying to evaluate "str!str".
11144
11145 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
11146
11147 * rdi-share/host.h: Only provide a typedef for bool if it is not
11148 defined.
11149
11150 2002-02-04 Michael Snyder <msnyder@redhat.com>
11151
11152 * breakpoint.h (enum bptype): Add new overlay event bp type.
11153 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
11154
11155 * breakpoint.c (create_internal_breakpoint): New function.
11156 (internal_breakpoint_number): Moved into create_internal_breakpoint.
11157 (create_longjmp_breakpoint): Use create_internal_breakpoint.
11158 (create_thread_event_breakpoint): Ditto.
11159 (create_solib_event_breakpoint): Ditto.
11160 (create_overlay_event_breakpoint): New function.
11161 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
11162 (update_breakpoints_after_exec): Delete and re-initialize
11163 overlay event breakpoints after an exec. Add FIXME comment
11164 about longjmp breakpoint.
11165 (print_it_typical): Ignore overlay event breakpoints.
11166 (print_one_breakpoint): Ditto.
11167 (mention): Ditto.
11168 (bpstat_what): Do not stop for overlay event breakpoints.
11169 (delete_breakpoint): Don't delete overlay event breakpoints.
11170 (breakpoint_re_set_one): Delete the overlay event breakpoint.
11171 (breakpoint_re_set): Re-create overlay event breakpoint.
11172
11173 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
11174 (overlay_manual_command): Disable overlay breakpoints.
11175 (overlay_off_command): Disable overlay breakpoints.
11176
11177 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
11178
11179 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
11180 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
11181 to here from config/tm-arm.h.
11182 (coff_sym_is_thumb): Make static.
11183 (arm_elf_make_msymbol_special): New function.
11184 (arm_coff_make_msymbol_special): New function.
11185 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
11186 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
11187 (coff_sym_is_thumb): Delete declaration.
11188 (arm_elf_make_msymbol_special): Declare.
11189 (arm_coff_make_msymbol_special): Declare.
11190 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
11191 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
11192
11193 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
11194
11195 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
11196
11197 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
11198
11199 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
11200 * gdbarch.c gdbarch.h: Regenerate.
11201 * arch-utils.c (default_print_float_info): New function.
11202 * arch-utils.h (default_print_float_info): Prototype it.
11203 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
11204 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
11205 (PRINT_FLOAT_INFO): Document it.
11206
11207 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
11208 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
11209 (PRINT_FLOAT_INFO): Define.
11210
11211 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
11212
11213 * win32-nat.c (_initialize_check_for_gdb_ini):
11214 Add typecast to sprintf argument to suppress a warning.
11215
11216 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
11217
11218 * win32-nat.c (last_sig): Changed type of variable to target_signal,
11219 to allow easier handling of pass state.
11220 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
11221 that gives exception name and address.
11222 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
11223 and set last_sig value to ourstatus->value.sig. Some missing
11224 exceptions added.
11225 (child_continue): Correctly report continue_status.
11226 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
11227 TARGET_SIGNAL_0 (new default value).
11228 (child_resume): consider sig argument passed to decide if
11229 the exception should be passed to debuggee or not.
11230
11231 2002-02-05 Michael Snyder <msnyder@redhat.com>
11232
11233 * regcache.c (fetch_register): Call target_fetch_register
11234 only if we don't call FETCH_PSEUDO_REGISTER.
11235 (store_register): Call target_store_register only if we
11236 don't call STORE_PSEUDO_REGISTER.
11237
11238 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
11239
11240 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
11241 ELF_MAKE_MSYMBOL_SPECIAL.
11242 * gdbarch.c, gdbarch.h: Regenerate.
11243 * arch-utils.c (default_make_msymbol_special): New function.
11244 * arch-utils.h (default_make_msymbol_special): Export.
11245 * elfread.c (elf_symtab_read): Compile use of
11246 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
11247 multiarched.
11248 * coffread.c (coff_symtab_read): Ditto, for
11249 COFF_MAKE_MSYMBOL_SPECIAL.
11250
11251 2002-02-05 Jim Blandy <jimb@redhat.com>
11252
11253 * solib-svr4.c (svr4_truncate_ptr): New function.
11254 (svr4_relocate_section_addresses): Do the address arithmetic with
11255 the appropriate truncation for target addresses, even when
11256 CORE_ADDR is larger than a target address.
11257
11258 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
11259
11260 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
11261 to (int *).
11262
11263 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
11264
11265 * gdbserver/linux-low.c (kill_inferior): Remove commented out
11266 code.
11267
11268 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
11269
11270 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
11271
11272 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
11273
11274 * gdbserver/linux-low.c: Remove unused include files.
11275
11276 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
11277
11278 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
11279 (read_inferior_memory): Use it.
11280 (write_inferior_memory): Likewise.
11281
11282 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
11283
11284 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
11285 grubbing through sys_errlist.
11286
11287 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
11288
11289 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
11290
11291 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
11292 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
11293
11294 2002-02-04 Andrew Cagney <ac131313@redhat.com>
11295
11296 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
11297 (do_sfunc, set_cmd_sfunc): New functions.
11298
11299 * command.h (struct cmd_list_element): Add field func.
11300 * cli/cli-decode.h (struct cmd_list_element): Ditto.
11301 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
11302 * cli/cli-decode.h: Ditto.
11303
11304 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
11305 (help_all, help_cmd_list): Ditto.
11306 (find_cmd, complete_on_cmdlist): Ditto.
11307 * top.c (execute_command): Ditto.
11308
11309 * cli/cli-setshow.c (do_setshow_command): Call func instead of
11310 function.sfunc.
11311
11312 * infcmd.c (notice_args_read): Fix function signature.
11313
11314 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
11315 * cli/cli-decode.c (add_set_cmd): Ditto.
11316 * utils.c (initialize_utils): Ditto.
11317 * maint.c (_initialize_maint_cmds): Ditto.
11318 * infrun.c (_initialize_infrun): Ditto.
11319 * demangle.c (_initialize_demangler): Ditto.
11320 * remote.c (add_packet_config_cmd): Ditto.
11321 * mips-tdep.c (_initialize_mips_tdep): Ditto.
11322 * cris-tdep.c (_initialize_cris_tdep): Ditto.
11323 * proc-api.c (_initialize_proc_api): Ditto.
11324 * kod.c (_initialize_kod): Ditto.
11325 * valprint.c (_initialize_valprint): Ditto.
11326 * top.c (init_main): Ditto.
11327 * infcmd.c (_initialize_infcmd): Ditto.
11328 * corefile.c (_initialize_core): Ditto.
11329 * arm-tdep.c (_initialize_arm_tdep): Ditto.
11330 * arch-utils.c (initialize_current_architecture): Ditto.
11331 (_initialize_gdbarch_utils): Ditto.
11332 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
11333
11334 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
11335 * wince.c (_initialize_inftarg): Ditto.
11336 * symfile.c (_initialize_symfile): Ditto.
11337 * mips-tdep.c (_initialize_mips_tdep): Ditto.
11338 * language.c (_initialize_language): Ditto.
11339 * arc-tdep.c (_initialize_arc_tdep): Ditto.
11340
11341 2002-02-04 Michael Snyder <msnyder@redhat.com>
11342
11343 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
11344
11345 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
11346
11347 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
11348 Add rules for building the register data files.
11349
11350 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
11351
11352 * regformats/regdat.sh: Add braces to the definition of
11353 expedite_regs_${arch}.
11354
11355 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
11356
11357 * regformats/regdef.h (struct reg): Add comment describing the
11358 requirements for offset and size fields.
11359
11360 2002-02-04 Andreas Schwab <schwab@suse.de>
11361
11362 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
11363 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
11364
11365 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
11366
11367 * gdbarch.sh (copyright): Update years in generated header.
11368 (SMASH_TEXT_ADDRESS): Add rule.
11369 * gdbarch.h, gdbarch.c: Re-generate.
11370 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
11371 * dbxread.c: Likewise.
11372 * dwarfread.c: Likewise.
11373 * elfread.c: Likewise.
11374 * somread.c: Likewise.
11375
11376 * arm-tdep.c (arm_smash_text_address): New function.
11377 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
11378
11379 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
11380
11381 Add support for hardware watchpoints on win32 native.
11382 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
11383 CONTEXT_DEBUG_REGISTERS.
11384 (dr variable): New variable. Static array containing a local copy
11385 of debug registers.
11386 (debug_registers_changed): New variable. Reflects when debug registers
11387 are changed and need to be written to inferior.
11388 (debug_registers_used): New variable. Reflects when any debug register
11389 was set, used when new threads are created.
11390 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
11391 i386-nat code.
11392 (thread_rec): Set dr array if id is the thread of current_event .
11393 (child_continue, child_resume): Change the debug registers for all
11394 threads if debug_registers_changed.
11395 (child_add_thread): Change the debug registers if debug_registers_used.
11396 * config/i386/cygwin.mh: Add use of i386-nat.o file.
11397 Link nm.h to new nm-cygwin.h file.
11398 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
11399 of hardware registers.
11400
11401 2002-02-03 Andrew Cagney <ac131313@redhat.com>
11402
11403 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
11404 Restore behavour broken by 2002-01-20 Andrew Cagney
11405 <ac131313@redhat.com> IEEE_FLOAT removal.
11406
11407 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
11408
11409 * c-valprint.c (c_val_print): Pass a proper valaddr to
11410 cp_print_class_method.
11411 * valops.c (search_struct_method): If there is only one method
11412 and args is NULL, return that method.
11413
11414 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
11415
11416 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
11417 accessing tag_name directly.
11418
11419 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
11420
11421 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
11422 of accessing tag_name directly.
11423
11424 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
11425
11426 PR gdb/280
11427 * gdbtypes.c (replace_type): New function.
11428 * gdbtypes.h (replace_type): Add prototype.
11429 * stabsread.c (read_type): Use replace_type.
11430
11431 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
11432
11433 * Makefile.in (memattr.o): Add missing dependencies rule.
11434
11435 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11436
11437 * breakpoint.c (break_at_finish_command): Really export.
11438 (break_at_finish_at_depth_command): Ditto.
11439 (tbreak_at_finish_command): Ditto.
11440 * hppa-tdep.c: Include completer.h.
11441 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
11442 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
11443
11444 2002-02-01 Andrew Cagney <ac131313@redhat.com>
11445
11446 * utils.c (do_write): New function.
11447 (error_stream): Rewrite combining the code from error_begin and
11448 verror.
11449 (verror): Rewrite using error_stream.
11450 (error_begin): Delete function.
11451
11452 2002-02-01 Andrew Cagney <ac131313@redhat.com>
11453
11454 * utils.c (error_begin): Make static.
11455 * defs.h (error_begin): Delete declaration.
11456
11457 * linespec.c (cplusplus_error): Replace cplusplus_hint.
11458 (decode_line_1): Use cplusplus_error instead of error_begin,
11459 cplusplus_hint and return_to_top_level.
11460 * coffread.c (coff_symfile_read): Use error instead of error_begin
11461 and return_to_top_level.
11462 * infrun.c (default_skip_permanent_breakpoint): Ditto.
11463
11464 2002-02-01 Andrew Cagney <ac131313@redhat.com>
11465
11466 * language.h (type_error, range_error): Make string parameter
11467 constant.
11468 * language.c (warning_pre_print): Delete extern declaration.
11469 * dwarfread.c (warning_pre_print): Ditto.
11470 * language.c (type_error, range_error): Rewrite to use verror and
11471 vwarning instead of warning_begin.
11472
11473 2002-02-01 Michael Snyder <msnyder@redhat.com>
11474
11475 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
11476 (set_ignore_count): Move misplaced comment back where it belongs.
11477
11478 2002-02-01 Andrew Cagney <ac131313@redhat.com>
11479
11480 * command.h (NO_FUNCTION): Delete macro.
11481 * cli/cli-decode.h (NO_FUNCTION): Ditto.
11482 * top.c (execute_command): Replace NO_FUNCTION with NULL.
11483 * tracepoint.c (_initialize_tracepoint): Ditto.
11484 * cli/cli-decode.c (add_set_cmd): Ditto.
11485 * cli/cli-cmds.c (init_cli_cmds): Ditto.
11486
11487 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
11488
11489 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
11490 Update ``this'' pointer when calling virtual functions.
11491
11492 2002-02-01 Michael Snyder <msnyder@redhat.com>
11493
11494 * breakpoint.c (create_temp_exception_breakpoint): Delete.
11495 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
11496
11497 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
11498
11499 * regformats/reg-arm.dat: New file.
11500 * regformats/reg-i386.dat: New file.
11501 * regformats/reg-ia64.dat: New file.
11502 * regformats/reg-m68k.dat: New file.
11503 * regformats/reg-mips.dat: New file.
11504 * regformats/reg-ppc.dat: New file.
11505 * regformats/reg-sh.dat: New file.
11506 * regformats/regdef.h: New file.
11507 * regformats/regdat.sh: New file.
11508
11509 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
11510
11511 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
11512 (arm_frame_args_address, arm_frame_locals_address): New functions.
11513 (arm_frame_num_args): New function.
11514 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
11515 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
11516 (FRMA_NUM_ARGS): Call arm_frame_num_args.
11517
11518 2002-01-31 Michael Snyder <msnyder@redhat.com>
11519
11520 * breakpoint.c (break_at_finish_command): Export.
11521 (break_at_finish_at_depth_command): Export.
11522 (tbreak_at_finish_command): Export.
11523 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
11524 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
11525 "txbreak" commands, which are HPPA specific.
11526
11527 * printcmd.c (disassemble_command): Remove an ancient
11528 artifact of an old merge.
11529
11530 * symfile.h (enum overlay_debugging_state):
11531 Define enum constant values for overlay mode.
11532 * symfile.c (overlay_debugging): Use enums instead of literals.
11533 (overlay_is_mapped, overlay_auto_command,
11534 overlay_manual_command): Ditto.
11535
11536 * breakpoint.c (insert_breakpoints, remove_breakpoint,
11537 breakpoint_here_p, breakpoint_inserted_here_p,
11538 breakpoint_thread_match, bpstat_stop_status,
11539 describe_other_breakpoints, check_duplicates, clear_command):
11540 Coding standard fixes.
11541
11542 * target.c (target_xfer_memory): Add spaces, coding standard.
11543 (do_xfer_memory): Add missing line to trust-readonly
11544 code: check bfd SEC_READONLY flag for section.
11545
11546 2002-01-31 Andrew Cagney <ac131313@redhat.com>
11547
11548 * PROBLEMS: Fix typo, 5.1->5.1.1.
11549
11550 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
11551
11552 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
11553 data symbols, since we search based on textlow and texthigh.
11554 (find_pc_sect_symtab): Likewise.
11555
11556 2002-01-30 Andrew Cagney <ac131313@redhat.com>
11557
11558 * defs.h (vwarning): Declare.
11559 * utils.c (vwarning): New function.
11560 (warning): Call vwarning.
11561 (warning_begin): Delete function.
11562
11563 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
11564 the warning message.
11565 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
11566 warning_begin.
11567
11568 2002-01-30 Michael Snyder <msnyder@redhat.com>
11569
11570 * NEWS: Mention "set trust-readonly-sections" command.
11571 Mention generate-core-file command.
11572
11573 2002-01-15 Michael Snyder <msnyder@redhat.com>
11574
11575 * target.c: New command, "set trust-readonly-sections on".
11576 (do_xfer_memory): Honor the suggestion to trust readonly sections
11577 by reading them from the object file instead of from the target.
11578 (initialize_targets): Register command "set trust-readonly-sections".
11579
11580 2002-01-29 Andrew Cagney <ac131313@redhat.com>
11581
11582 * parse.c (target_map_name_to_register): Simplify, search regs and
11583 pseudo-regs using a single loop.
11584
11585 2002-01-30 Andrew Cagney <ac131313@redhat.com>
11586
11587 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
11588
11589 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
11590
11591 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
11592 * config/i386/i386v42mp.mh: Add i387-nat.o .
11593 * i386v4-nat.c: Include i387-nat.h.
11594 (supply_fpregset): Use i387_supply_fsave.
11595 (fill_fpregset): Use i387_fill_fsave.
11596
11597 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
11598
11599 * arm-tdep.c (arm_call_dummy_words): Define.
11600 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
11601 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
11602 (CALL_DUMMY_WORDS): Define.
11603 (arm_call_dummy_words): Declare.
11604 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
11605 (arm_linux_call_dummy_words): Declare.
11606
11607 2002-01-30 Andreas Schwab <schwab@suse.de>
11608
11609 * m68klinux-nat.c: Fix last change to use regcache_collect
11610 instead of referencing registers[] directly.
11611
11612 2002-01-29 Andrew Cagney <ac131313@redhat.com>
11613
11614 * parse.c (target_map_name_to_register): Delete code wrapped in
11615 #ifdef REGISTER_NAME_ALIAS_HOOK.
11616
11617 2002-01-28 Michael Snyder <msnyder@redhat.com>
11618
11619 * regcache.c (legacy_read_register_gen): Need to be able to
11620 read pseudo-register as well as real register.
11621 (legacy_write_register_gen): Ditto.
11622
11623 2002-01-28 Andrew Cagney <ac131313@redhat.com>
11624
11625 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
11626 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
11627 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
11628 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
11629 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
11630 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
11631 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
11632 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
11633 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
11634 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
11635 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
11636 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
11637 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
11638 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
11639 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
11640 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
11641 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
11642 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
11643 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
11644 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
11645
11646 2002-01-28 Andrew Cagney <ac131313@redhat.com>
11647
11648 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
11649 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
11650 (initialize_current_architecture): Update target_byte_order using
11651 information from BFD.
11652 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
11653 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
11654
11655 2002-01-28 Andrew Cagney <ac131313@redhat.com>
11656
11657 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
11658 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
11659
11660 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
11661 #ifdef INVALID_FLOAT.
11662 * infcmd.c (do_registers_info): Ditto.
11663 * values.c (unpack_double): Ditto. Add comment.
11664
11665 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
11666 already commented out.
11667
11668 2002-01-26 Andreas Schwab <schwab@suse.de>
11669
11670 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
11671 * m68klinux-nat.c: Update ptrace interface for fetching/storing
11672 registers and add support for PTRACE_GETREGS.
11673
11674 2002-01-24 Andrew Cagney <ac131313@redhat.com>
11675
11676 GDB 5.1.1 released from 5.1 branch.
11677 * NEWS: Add 5.1.1 news.
11678 * README: Sync with 5.1 branch.
11679
11680 2002-01-23 Fred Fish <fnf@redhat.com>
11681
11682 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
11683 stabstring on initial malloc. Reallocing will copy it for us,
11684 if necessary.
11685
11686 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
11687
11688 * Makefile.in (hpread_h): Delete.
11689 (HFILES_NO_SRCDIR): Remove hpread.h.
11690 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
11691 (hpread.o): Update dependencies.
11692 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
11693
11694 * hp-psymtab-read.c: Remove file.
11695 * hp-symtab-read.c: Remove file.
11696 * hpread.h: Remove file.
11697
11698 * hpread.c: Merge all contents of hp-psymtab-read.c,
11699 hp-symtab-read.c and hpread.h into this file, as it was prior to
11700 January 1999.
11701
11702 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
11703 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
11704 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
11705 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
11706
11707 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
11708
11709 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
11710 fill_gregset): Call gdbarch_tdep() just once, assign result to
11711 variable and use that, instead of calling the function several
11712 times.
11713
11714 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
11715
11716 * configure.host: Accept sparcv9 as alias for sparc64.
11717 * configure.tgt: Likewise.
11718
11719 2002-01-22 Kevin Buettner <kevinb@redhat.com>
11720
11721 * solib-aix5.c (build_so_list_from_mapfile)
11722 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
11723 arguments is not reversed.
11724 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
11725 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
11726
11727 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
11728
11729 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
11730 modified version of obsolete sh_fetch_pseudo_register.
11731 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
11732 (sh4_register_read): New function.
11733 (sh_pseudo_register_write): New function. Renamed and modified
11734 version of obsolete sh_store_pseudo_register.
11735 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
11736 (sh4_register_write): New function.
11737 (sh_gdbarch_init): Remove setting of gdbarch function
11738 fetch_pseudo_register and store_pseudo_register. Remove setting of
11739 register_convert_to_raw, register_convert_to_virtual,
11740 register_convertible.
11741 (sh_sh4_register_convertible): Delete. No longer needed. All is
11742 taken care by architecture specific functions
11743 register_read/register_write.
11744 (sh_sh4_register_convert_to_virtual): Make static.
11745 (sh_sh4_register_convert_to_raw): Ditto.
11746
11747 2002-01-22 Andrew Cagney <ac131313@redhat.com>
11748
11749 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
11750 (floatformat_is_nan, floatformat_mantissa): Ditto.
11751
11752 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
11753 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
11754 builtin_type_ieee_double_little,
11755 builtin_type_ieee_double_littlebyte_bigword,
11756 builtin_type_m68881_ext, builtin_type_i960_ext,
11757 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
11758 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
11759 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
11760 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
11761
11762 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
11763
11764 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
11765 parameter. Set frameless flag if it exists and depended of
11766 whether the scanned function is frameless or not.
11767 (xstormy16_skip_prologue): If function is frameless, return
11768 result of xstormy16_scan_prologue().
11769 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
11770 call.
11771
11772 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
11773
11774 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
11775 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
11776 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
11777 sh_sh4_register_byte, sh_sh4_register_raw_size,
11778 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
11779 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
11780 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
11781 sh_store_pseudo_register, sh_do_pseudo_register): Call
11782 gdbarch_tdep() just once, assign result to variable and use that,
11783 instead of calling the function several times.
11784
11785 2002-01-20 Mark Kettenis <kettenis@gnu.org>
11786
11787 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
11788 macros instead of LAST_FPU_CTRL_REGNUM.
11789 (store_register): Likewise.
11790
11791 2002-01-21 Jim Blandy <jimb@redhat.com>
11792
11793 * infcmd.c (run_command): Check that the `exec' target layer's BFD
11794 is up-to-date before running the program, not just when a program
11795 exits.
11796
11797 2002-01-21 Fred Fish <fnf@redhat.com>
11798
11799 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
11800 when we have found all instructions we are looking for.
11801
11802 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
11803
11804 * arm-tdep.c (arm_register_name): New function.
11805 (arm_registers_names): Make static.
11806 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
11807 (arm_register_name): Declare.
11808 (REGISTER_NAME): Use it.
11809
11810 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
11811 Kevin Buettner <kevinb@redhat.com>
11812
11813 Convert arm targets to new FRAME interface.
11814 * arm-tdep.c (struct frame_extra_info): Remove fsr.
11815 (arm_frame_find_save_regs): Delete.
11816 (arm_frame_init_saved_regs): New.
11817 (arm_init_extra_frame_info): Alloacte saved_regs as required.
11818 Allocate extra_info as required. Convert all uses of fsr.regs
11819 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
11820 to use extra_info.
11821 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
11822 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
11823 (check_prologue_cache, save_prologue_cache): Likewise.
11824 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
11825 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
11826 (FRAME_FIND_SAVED_REGS): Delete.
11827 (arm_frame_find_saved_regs): Delete prototype.
11828 (arm_frame_init_saved_regs): New prototype.
11829 (FRAME_INIT_SAVED_REGS): Define.
11830
11831 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11832
11833 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
11834
11835 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11836
11837 From Jeff Law <law@redhat.com>:
11838 * infttrace.c: Include <sys/pstat.h>.
11839 (child_pid_to_exec_file): Revamp. Use pstat call to get the
11840 exec file if the ttrace equivalent fails.
11841
11842 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11843
11844 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
11845 (closeLogFile): Ditto.
11846
11847 2002-01-20 Michael Chastain <mec@shout.net>
11848
11849 * top.c (print_gdb_version): Bump copyright year to 2002.
11850
11851 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11852
11853 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
11854 Zannoni and Eli Zaretskii.
11855
11856 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
11857
11858 * buildsym.c: Update copyright years.
11859 * c-typeprint.c: Likewise.
11860 * dwarf2read.c: Likewise.
11861 * f-typeprint.c: Likewise.
11862 * gdbtypes.c: Likewise.
11863 * gdbtypes.h: Likewise.
11864 * hp-symtab-read.c: Likewise.
11865 * hpread.c: Likewise.
11866 * mdebugread.c: Likewise.
11867 * p-typeprint.c: Likewise.
11868
11869 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11870
11871 * remote-sim.c (gdbsim_open): Simplify code testing the macro
11872 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
11873 byte-order selectable.
11874 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
11875 * arch-utils.c: Ditto.
11876 (set_endian): Ditto.
11877 (set_endian_from_file): Ditto.
11878 * gdbserver/low-sim.c (create_inferior): Ditto.
11879 * gdbarch.sh: Ditto.
11880 * gdbarch.h: Re-generate.
11881 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11882 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
11883 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
11884 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11885 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11886 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11887 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
11888 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
11889 macro definition.
11890 * config/mips/tm-wince.h: Remove #undef of macro
11891 TARGET_BYTE_ORDER_SELECTABLE.
11892 * config/sh/tm-wince.h: Ditto.
11893
11894 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
11895
11896 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
11897 member function fields. Add accessor macro
11898 TYPE_FN_FIELD_ARTIFICIAL.
11899 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
11900 * c-typeprint.c (c_type_print_base): Skip artificial member
11901 functions.
11902
11903 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
11904
11905 * f-typeprint.c: Delete unused function f_type_print_args.
11906 * p-typeprint.c: Delete unused function pascal_type_print_args.
11907
11908 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
11909
11910 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
11911 comment. Add ``artificial'' to ``union field_location''.
11912
11913 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
11914
11915 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
11916 * mdebugread.c (parse_symbol): Likewise.
11917 * stabsread.c (define_symbol): Likewise.
11918 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
11919 initializing TYPE_FIELD_BITPOS to n (obsolete).
11920 (hpread_doc_function_type): Likewise.
11921 * hpread.c (hpread_function_type): Likewise.
11922
11923 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11924
11925 * configure.in (host_makefile_frag): Only require a host makefile
11926 fragment when a native build.
11927 * configure: Re-generate.
11928
11929 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11930
11931 * doublest.h (floatformat_from_type): Declare.
11932 * doublest.c (floatformat_from_type): New function.
11933 (convert_typed_floating): Use.
11934
11935 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
11936 call to function floatformat_from_type.
11937
11938 * gdbarch.sh (IEEE_FLOAT): Delete.
11939 * gdbarch.h, gdbarch.c: Re-generate.
11940 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
11941 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
11942 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
11943 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
11944 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
11945 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
11946 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
11947 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
11948 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
11949 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
11950 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
11951 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
11952
11953 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
11954 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
11955 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
11956 * sh-tdep.c (sh_gdbarch_init): Ditto.
11957 * mips-tdep.c (mips_gdbarch_init): Ditto.
11958 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11959 * cris-tdep.c (cris_gdbarch_init): Ditto.
11960
11961 2002-01-20 Jiri Smid <smid@suse.cz>
11962
11963 * configure.host, configure.tgt: Support x86-64.
11964 * NEWS: Note new target x86-64.
11965
11966 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
11967 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
11968 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
11969 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
11970 x86-64-linux-nat.o): Fix dependencies.
11971
11972 2002-01-19 Andrew Cagney <ac131313@redhat.com>
11973
11974 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
11975 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
11976 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
11977 * config/sparc/xm-sun4os4.h: Delete file.
11978 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
11979
11980 2002-01-19 Andrew Cagney <ac131313@redhat.com>
11981
11982 * config/sparc/sparclynx.mh (XM_FILE): Delete.
11983 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
11984 * config/m68k/m68klynx.mh (XM_FILE): Delete.
11985 * config/i386/i386lynx.mh (XM_FILE): Delete.
11986 * config/rs6000/xm-rs6000ly.h: Delete file.
11987 * config/sparc/xm-sparclynx.h: Delete file.
11988 * config/m68k/xm-m68klynx.h: Delete file.
11989 * config/i386/xm-i386lynx.h: Delete file.
11990 * config/xm-lynx.h: Delete file.
11991 * config/djgpp/fnchange.lst: Update.
11992
11993 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11994
11995 * alpha-tdep.c (alpha_register_byte): New function.
11996 (alpha_register_raw_size): Ditto.
11997 (alpha_register_virtual_size): Ditto.
11998 (alpha_skip_prologue_internal): Renamed from
11999 alpha_skip_prologue.
12000 (alpha_skip_prologue): New version that calls
12001 alpha_skip_prologue_internal.
12002 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
12003 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
12004 second argument from alpha_skip_prologue.
12005 (REGISTER_BYTE): Use alpha_register_byte.
12006 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
12007 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
12008 (FRAMELESS_FUNCTION_INVOCATION): Use
12009 generic_frameless_function_invocation_not.
12010 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
12011 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
12012
12013 2002-01-19 Andrew Cagney <ac131313@redhat.com>
12014
12015 * config/mips/xm-news-mips.h: Delete file.
12016 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
12017
12018 * config/m88k/xm-m88k.h: Delete file.
12019 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
12020 * config/m88k/xm-delta88v4.h: Ditto.
12021 * config/m88k/xm-delta88.h: Ditto.
12022
12023 * config/alpha/xm-fbsd.h: Delete file.
12024 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
12025
12026 * config/sparc/xm-sparc.h: Delete file.
12027 * Makefile.in (xm-sun4os4.h): Delete dependency.
12028 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
12029 * config/sparc/xm-sun4os4.h: Ditto.
12030 * config/sparc/xm-linux.h: Ditto.
12031
12032 * config/i386/xm-windows.h: Delete file.
12033
12034 2002-01-19 Andrew Cagney <ac131313@redhat.com>
12035
12036 * utils.c: Include <sys/param.h> for MAXPATHLEN.
12037 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
12038
12039 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
12040
12041 * alpha-tdep.c (alpha_call_dummy_words): New.
12042 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
12043 (CALL_DUMMY_P): Define.
12044 (CALL_DUMMY_WORDS): Define.
12045 (SIZEOF_CALL_DUMMY_WORDS): Define.
12046
12047 2002-01-19 Per Bothner <per@bothner.com>
12048
12049 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
12050 isn't NULL, which can happen with some gcj-3.x-produced code.
12051
12052 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
12053
12054 * alpha-tdep.c (alpha_register_virtual_type): New function.
12055 (alpha_init_frame_pc_first): Ditto.
12056 (alpha_fix_call_dummy): Ditto.
12057 (alpha_store_struct_return): Ditto.
12058 (alpha_extract_struct_value_address): Ditto.
12059 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
12060 alpha_register_virtual_type.
12061 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
12062 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
12063 alpha_extract_struct_value_address.
12064 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
12065 (INIT_FRAME_PC): Use init_frame_pc_noop.
12066 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
12067
12068 2002-01-19 Mark Kettenis <kettenis@gnu.org>
12069
12070 * i386gnu-nat.c: Include "i386-tdep.h".
12071 (fetch_fpregs): Simplify code dealing with uninitialized floating
12072 point states such that it doesn't require FP7_REGNUM.
12073
12074 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
12075
12076 * alpha-tdep.c (frame_extra_info): New.
12077 (alpha_find_saved_regs): Make static. Use
12078 frame->extra_info.
12079 (alpha_frame_init_saved_regs): New function.
12080 (alpha_frame_saved_pc): Use frame->extra_info.
12081 (temp_saved_regs): Don't declare as struct frame_saved_regs.
12082 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
12083 (init_extra_frame_info): Rename to...
12084 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
12085 (alpha_print_extra_frame_info): New function.
12086 (alpha_frame_locals_address): Ditto.
12087 (alpha_frame_args_address): Ditto.
12088 (alpha_pop_frame): Use frame->extra_info.
12089 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
12090 alpha_frame_args_address.
12091 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
12092 (alpha_find_saved_regs): Remove prototype.
12093 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
12094 (EXTRA_FRAME_INFO): Remove.
12095 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
12096 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
12097
12098 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
12099
12100 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
12101 (alpha_cannot_fetch_register): Ditto.
12102 (alpha_cannot_store_register): Ditto.
12103 (alpha_register_convertible): Ditto.
12104 (alpha_use_struct_convention): Ditto.
12105 * config/alpha/tm-alpha.h: Update copyright years.
12106 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
12107 (INNER_THAN): Use core_addr_lessthan.
12108 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
12109 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
12110 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
12111 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
12112 (FRAME_CHAIN): Remove unnecessary cast.
12113
12114 2002-01-18 Andrew Cagney <ac131313@redhat.com>
12115
12116 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
12117 obsolete.
12118
12119 2002-01-18 Andrew Cagney <ac131313@redhat.com>
12120
12121 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
12122 * monitor.c, remote-array.c, remote-bug.c: Ditto.
12123 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
12124 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
12125 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
12126 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
12127 * x86-64-linux-nat.c: Ditto.
12128
12129 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
12130
12131 * alpha-tdep.c (alpha_register_name): New function.
12132 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
12133 (REGISTER_NAME): Define.
12134
12135 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
12136
12137 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
12138
12139 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
12140
12141 * alpha-tdep.c: Update copyright years.
12142 (alpha_next_pc): New function.
12143 (alpha_software_single_step): Ditto.
12144 * config/alpha/tm-alpha.h: Add prototype for
12145 alpha_software_single_step.
12146
12147 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
12148
12149 * alphabsd-nat.c: Update copyright years.
12150 (fill_gregset): Use regcache_collect.
12151 (fill_fpregset): Likewise.
12152 (fetch_inferior_registers): Only fetch integer registers
12153 if requested to do so.
12154 (store_inferior_registers): Only store integer registers
12155 if requested to do so.
12156
12157 2002-01-17 Andrew Cagney <ac131313@redhat.com>
12158
12159 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
12160 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
12161 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
12162 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
12163 * config/alpha/fbsd.mh (XDEPFILES): Delete.
12164 * config/arm/linux.mh (XDEPFILES): Delete.
12165 * config/arm/nbsd.mh (XDEPFILES): Delete.
12166 * config/i386/i386dgux.mh (XDEPFILES): Delete.
12167 * config/i386/i386sol2.mh (XDEPFILES): Delete.
12168 * config/i386/i386m3.mh (XDEPFILES): Delete.
12169 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
12170 * config/i386/i386gnu.mh (XDEPFILES): Delete.
12171 * config/i386/fbsd.mh (XDEPFILES): Delete.
12172 * config/i386/i386bsd.mh (XDEPFILES): Delete.
12173 * config/i386/i386sco5.mh (XDEPFILES): Delete.
12174 * config/i386/i386v4.mh (XDEPFILES): Delete.
12175 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
12176 * config/i386/i386sco4.mh (XDEPFILES): Delete.
12177 * config/i386/i386aix.mh (XDEPFILES): Delete.
12178 * config/i386/go32.mh (XDEPFILES): Delete.
12179 * config/i386/cygwin.mh (XDEPFILES): Delete.
12180 * config/i386/i386lynx.mh (XDEPFILES): Delete.
12181 * config/i386/i386mach.mh (XDEPFILES): Delete.
12182 * config/i386/i386v32.mh (XDEPFILES): Delete.
12183 * config/i386/linux.mh (XDEPFILES): Delete.
12184 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
12185 * config/i386/ncr3000.mh (XDEPFILES): Delete.
12186 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
12187 * config/i386/i386sco.mh (XDEPFILES): Delete.
12188 * config/i386/i386v.mh (XDEPFILES): Delete.
12189 * config/i386/nbsd.mh (XDEPFILES): Delete.
12190 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
12191 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
12192 * config/i386/symmetry.mh (XDEPFILES): Delete.
12193 * config/i386/obsd.mh (XDEPFILES): Delete.
12194 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
12195 * config/ia64/linux.mh (XDEPFILES): Delete.
12196 * config/ia64/aix.mh (XDEPFILES): Delete.
12197 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
12198 * config/m68k/dpx2.mh (XDEPFILES): Delete.
12199 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
12200 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
12201 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
12202 * config/m68k/linux.mh (XDEPFILES): Delete.
12203 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
12204 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
12205 * config/m68k/nbsd.mh (XDEPFILES): Delete.
12206 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
12207 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
12208 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
12209 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
12210 * config/m88k/delta88.mh (XDEPFILES): Delete.
12211 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
12212 * config/m88k/m88k.mh (XDEPFILES): Delete.
12213 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
12214 * config/mips/linux.mh (XDEPFILES): Delete.
12215 * config/mips/irix6.mh (XDEPFILES): Delete.
12216 * config/mips/irix5.mh (XDEPFILES): Delete.
12217 * config/mips/irix4.mh (XDEPFILES): Delete.
12218 * config/mips/irix3.mh (XDEPFILES): Delete.
12219 * config/mips/decstation.mh (XDEPFILES): Delete.
12220 * config/mips/mipsm3.mh (XDEPFILES): Delete.
12221 (NATDEPFILES): Move core-aout.o to here.
12222 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
12223 * config/pa/hpux1020.mh (XDEPFILES): Delete.
12224 * config/pa/hppabsd.mh (XDEPFILES): Delete.
12225 * config/pa/hppahpux.mh (XDEPFILES): Delete.
12226 * config/pa/hpux11w.mh (XDEPFILES): Delete.
12227 * config/pa/hppaosf.mh (XDEPFILES): Delete.
12228 * config/pa/hpux11.mh (XDEPFILES): Delete.
12229 * config/powerpc/aix.mh (XDEPFILES): Delete.
12230 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
12231 * config/powerpc/linux.mh (XDEPFILES): Delete.
12232 * config/romp/rtbsd.mh: Rename XDEPFILES.
12233 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
12234 * config/rs6000/aix4.mh (XDEPFILES): Delete.
12235 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
12236 * config/s390/s390.mh (XDEPFILES): Delete.
12237 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
12238 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
12239 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
12240 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
12241 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
12242 * config/sparc/nbsd.mh (XDEPFILES): Delete.
12243 * config/sparc/linux.mh (XDEPFILES): Delete.
12244 * config/vax/vaxult.mh (XDEPFILES): Delete.
12245 * config/vax/vaxult2.mh (XDEPFILES): Delete.
12246 * Makefile.in (DEPFILES): Remove XDEPFILES.
12247
12248 2002-01-17 Andrew Cagney <ac131313@redhat.com>
12249
12250 * utils.c (internal_verror): Fix comments, default is yes not no.
12251 Update queries to match. Default to quit and dump core.
12252
12253 2002-01-17 Andrew Cagney <ac131313@redhat.com>
12254
12255 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
12256 copyright.
12257 * defs.h, event-top.c, gdbcmd.h: Ditto.
12258 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
12259 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
12260 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
12261 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
12262 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
12263 * mi/mi-main.c:Ditto.
12264
12265 * stack.c, symfile.c: Update copyright.
12266
12267 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
12268
12269 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
12270 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
12271 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
12272 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
12273
12274 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
12275
12276 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
12277 * gdbserver/low-lynx.c (myattach): Likewise.
12278 * gdbserver/low-nbsd.c (myattach): Likewise.
12279 * gdbserver/low-sim.c (myattach): Likewise.
12280 * gdbserver/low-sparc.c (myattach): Likewise.
12281 * gdbserver/low-sun3.c (myattach): Likewise.
12282
12283 * gdbserver/low-linux.c (myattach): New function.
12284
12285 * gdbserver/server.c (attach_inferior): New function.
12286 (main): Handle "--attach".
12287
12288 2002-01-16 Andrew Cagney <ac131313@redhat.com>
12289
12290 * MAINTAINERS (language support): Daniel Jacobwitz is C++
12291 maintainer.
12292
12293 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
12294
12295 * c-typeprint.c (is_type_conversion_operator): Add additional
12296 check for non-conversion operators.
12297
12298 2002-01-15 Michael Snyder <msnyder@redhat.com>
12299
12300 * linux-proc.c: Add "info proc" command, a la procfs.c.
12301 (read_mapping): New function, abstract and re-use code.
12302 (linux_find_memory_regions): Use new func read_mapping.
12303 (linux_info_proc_cmd): New function, implement "info proc".
12304 (_initialize_linux_proc): Add new command "info proc".
12305
12306 2002-01-15 Michael Snyder <msnyder@redhat.com>
12307
12308 * symfile.c (generic_load): Use bfd_map_over_sections method
12309 instead of manipulating bfd structure members directly.
12310 (add_section_size_callback): New function, bfd sections callback
12311 used by generic_load.
12312 (load_sections_callback): New function, bfd sections callback
12313 used by generic_load.
12314
12315 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
12316
12317 [Based on work by Jim Blandy]
12318 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
12319 (builtin_type_vec128): Export.
12320 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
12321 types.
12322 (builtin_type_vec128): New builtin type for 128 bit vector
12323 registers.
12324 (build_gdbtypes): Initialize builtin_type_v16qi and
12325 builtin_type_v8hi. Create the vec128 register builtin type
12326 structure.
12327 (build_builtin_type_vec128): New function.
12328 (_initialize_gdbtypes): Register builtin_type_v16qi and
12329 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
12330 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
12331 AltiVec register to new builtin type.
12332
12333 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
12334
12335 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
12336 to make_cv_type.
12337
12338 2002-01-14 Andrew Cagney <ac131313@redhat.com>
12339
12340 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
12341 CLEAN_UP_REGISTER_VALUE.
12342 * regcache.c (supply_register): Update only call.
12343
12344 2002-01-14 Andrew Cagney <ac131313@redhat.com>
12345
12346 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
12347 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
12348 a29k-*-vxworks* targets as obsolete.
12349
12350 2002-01-14 Michael Snyder <msnyder@redhat.com>
12351
12352 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
12353 until we can resolve portability issues.
12354 * gregset.h: Remove references to fpxregs.
12355 * gcore.c (gcore_command): Initialize note_sec to NULL.
12356
12357 2002-01-13 Andrew Cagney <ac131313@redhat.com>
12358
12359 * signals.c (target_signal_to_name): Rewrite. Only use
12360 signals[].name when in bounds and non-NULL.
12361
12362 2002-01-13 Andrew Cagney <ac131313@redhat.com>
12363
12364 From Petr Ledvina <ledvinap@kae.zcu.cz>:
12365 * signals.c (target_signal_to_name): Verify that SIG is within the
12366 bounds of the signals array.
12367
12368 2002-01-13 Andrew Cagney <ac131313@redhat.com>
12369
12370 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
12371
12372 2002-01-13 Keith Seitz <keiths@redhat.com>
12373
12374 * stack.c (print_frame_info_base): Print the frame's pc
12375 only if when print_frame_info_listing_hook is not defined.
12376
12377 2002-01-13 Keith Seitz <keiths@redhat.com>
12378
12379 * varobj.c (varobj_set_value): Make sure that there were no
12380 errors evaluating the object before attempting to set its
12381 value.
12382 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
12383 so this offset adjustment is no longer necessary.
12384 (create_child): Don't set the error flag if the child is
12385 a CPLUS_FAKE_CHILD.
12386 (value_of_child): If value_fetch_lazy fails, return NULL
12387 so that callers will be notified that an error occurred.
12388 (c_value_of_variable): Delay check of variable's validity
12389 until later. We actually want all structs and unions to have
12390 the value "{...}".
12391 Do not return "???" for variables which could not be evaluated.
12392 This error condition must be returned to the caller so that it
12393 can get the error condition from gdb.
12394 (cplus_name_of_child): Adjust index for vptr before figuring
12395 out the name of the child.
12396 (cplus_value_of_child): If a child's (real) parent is not valid,
12397 don't even bother trying to give a value for it. Just return
12398 an error. Change all instances in this function.
12399 (cplus_type_of_child): If our parent is one of the "fake"
12400 parents, we need to get at the type of the real parent, and
12401 derive the child's true type using this information.
12402
12403 2002-01-13 Andrew Cagney <ac131313@redhat.com>
12404
12405 From 2002-01-09 John Marshall <johnm@falch.net>:
12406 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
12407 sources.redhat.com, and tweak some related URLs which had
12408 suffered from linkrot.
12409
12410 2002-01-13 Andrew Cagney <ac131313@redhat.com>
12411
12412 From Jeff law:
12413 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
12414 structures passed in registers.
12415
12416 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
12417
12418 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
12419 white space which prevented compilation. Reported by DSK
12420 <dsk@student.unsw.edu.au>.
12421
12422 2002-01-11 Michael Snyder <msnyder@redhat.com>
12423
12424 * symfile.c (build_section_addr_info_from_section_tab):
12425 Use bfd access method instead of manipulating bfd directly.
12426 (syms_from_objfile): Ditto.
12427 (simple_overlay_update_1): Ditto.
12428 (simple_overlay_update): Ditto.
12429 (generic_load): Ditto.
12430 (overlay_unmapped_address): FIXME comment, bfd access methods.
12431 (sections_overlap): FIXME comment, bfd access methods.
12432 (pc_in_mapped_range): FIXME comment, bfd access methods.
12433 (pc_in_unmapped_range): FIXME comment, bfd access methods.
12434 (section_is_mapped): FIXME comment, bfd access methods.
12435 (section_is_overlay): FIXME comment, bfd access methods.
12436
12437 * symfile.c (generic_load): Whitespace and long line cleanups.
12438 Remove duplicate variable, change several local variables to
12439 more appropriate data types.
12440 (print_transfer_performance): Use %lu instead of %ld for ulongs.
12441
12442 2002-01-12 Andrew Cagney <ac131313@redhat.com>
12443
12444 From Peter Schauer:
12445 * language.c (longest_local_hex_string_custom): Use phex_nz to
12446 convert NUM to a hex string.
12447
12448 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
12449
12450 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
12451 the function.
12452 Update Copyright year.
12453
12454 2002-01-12 Andrew Cagney <ac131313@redhat.com>
12455
12456 * language.c (longest_raw_hex_string): Delete unused function.
12457
12458 2002-01-11 Petr Sorfa <petrs@caldera.com>
12459
12460 * MAINTAINERS (write-after-approval): Add myself.
12461 * dwarf2read.c (read_tag_string_type): Handling of
12462 DW_AT_byte_size.
12463 (read_tag_string_type): FORTRAN fix to prevent propagation of
12464 first string size.
12465 (set_cu_language): Handling of DW_LANG_Fortran95
12466
12467 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
12468
12469 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
12470 GETPID(inferior_ptid).
12471 (store_inferior_registers): Likewise.
12472
12473 2002-01-10 Jason Merrill <jason@redhat.com>
12474
12475 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
12476 Fix DW_OP_minus.
12477
12478 2002-01-10 Andrew Cagney <ac131313@redhat.com>
12479
12480 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
12481 and bfd/elf32-sh-nbsd.c.
12482
12483 2002-01-10 Michael Snyder <msnyder@redhat.com>
12484
12485 * NEWS: Mention --pid and corefile/proc-id behavior change.
12486
12487 * Makefile.in: Add rules for gcore.o and linux-proc.o.
12488 * gcore.c: Include cli/cli-decode.h instead of command.h.
12489
12490 * main.c (captured_main): Add new command line option "--pid".
12491 If the second command line argument (following the symbol-file)
12492 begins with a digit, try to attach to it before trying to open
12493 it as a corefile.
12494 (print_gdb_help): Document the "--pid" argument.
12495
12496 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
12497
12498 * completer.c (command_completer): New function.
12499
12500 * completer.h <command_completer>: Add prototype.
12501
12502 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
12503 completer for the "help" command.
12504
12505 2002-01-09 Jason Merrill <jason@redhat.com>
12506
12507 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
12508
12509 2002-01-09 Michael Snyder <msnyder@redhat.com>
12510
12511 * i386-linux-nat.c (fill_fpxregset): Make global.
12512 (store_fpxregset): Ditto.
12513
12514 * gregset.h (gdb_fpxregset_t): Define.
12515 (supply_fpxregset): Prototype.
12516 (fill_fpxregset): Prototype.
12517
12518 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
12519
12520 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
12521
12522 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
12523 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
12524 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
12525
12526 2002-01-09 Andrew Cagney <ac131313@redhat.com>
12527
12528 * MAINTAINERS: Update target maintainer rules so that any
12529 Maintainer can approve a tested patch for a maintenance-only
12530 target.
12531
12532 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
12533
12534 * MAINTAINERS (write-after-approval): Add myself.
12535
12536 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
12537 IN_SIGTRAMP.
12538
12539 2002-01-08 Michael Snyder <msnyder@redhat.com>
12540
12541 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
12542 real name of the executable, rather than the /proc name.
12543
12544 2002-01-03 Michael Snyder <msnyder@redhat.com>
12545
12546 Implement a "generate-core-file" command in gdb, save target state.
12547 * gcore.c: New file. Implement new command 'generate-core-file'.
12548 Save a corefile image of the current state of the inferior.
12549 * linux-proc.c: Add linux-specific code for saving corefiles.
12550 * target.h (struct target_ops): Add new target vectors for saving
12551 corefiles; to_find_memory_regions and to_make_corefile_notes.
12552 (target_find_memory_regions): New macro.
12553 (target_make_corefile_notes): New macro.
12554 * target.c (update_current_target): Inherit new target methods.
12555 (dummy_find_memory_regions): New place-holder method.
12556 (dummy_make_corefile_notes): New place-holder method.
12557 (init_dummy_target): Initialize new dummy target vectors.
12558 * exec.c (exec_set_find_memory_regions): New function.
12559 Allow the exec_ops vector for memory regions to be taken over.
12560 (exec_make_note_section): New function, target vector method.
12561 * defs.h (exec_set_find_memory_regions): Export prototype.
12562 * procfs.c (proc_find_memory_regions): New function, corefile method.
12563 (procfs_make_note_section): New function, corefile method.
12564 (init_procfs_ops): Set new target vector pointers.
12565 (find_memory_regions_callback): New function.
12566 (procfs_do_thread_registers): New function.
12567 (procfs_corefile_thread_callback): New function.
12568 * sol-thread.c (sol_find_memory_regions): New function.
12569 (sol_make_note_section): New function.
12570 (init_sol_thread_ops): Initialize new target vectors.
12571 * inftarg.c (inftarg_set_find_memory_regions): New function.
12572 Allow to_find_memory_regions vector to be taken over.
12573 (inftarg_set_make_corefile_notes): New function.
12574 Allow to_make_corefile_notes vector to be taken over.
12575 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
12576 interface layer if not target_has_execution (may be a corefile).
12577 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
12578 * config/sparc/sun4sol2.mh: Ditto.
12579 * config/alpha/alpha-linux.mh: Ditto.
12580 * config/arm/linux.mh: Ditto.
12581 * config/i386/x86-64linux.mh: Ditto.
12582 * config/ia64/linux.mh: Ditto.
12583 * config/m68k/linux.mh: Ditto.
12584 * config/mips/linux.mh: Ditto.
12585 * config/powerpc/linux.mh: Ditto.
12586 * config/sparc/linux.mh: Ditto.
12587
12588 2002-01-07 Michael Snyder <msnyder@redhat.com>
12589
12590 * arm-linux-nat.c: Remove references to regcache.c internal data
12591 (registers[] and register_valid[]).
12592
12593 2002-01-07 Michael Snyder <msnyder@redhat.com>
12594
12595 * linux-proc.c: New file. Implement child_pid_to_exec_file,
12596 so that attaching to a pid will automatically read the process's
12597 symbol file and shlibs.
12598 * Makefile.in: Add rule for linux-proc.o.
12599 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
12600 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
12601 * config/arm/linux.mh: Ditto.
12602 * config/i386/linux.mh: Ditto.
12603 * config/i386/x86-64linux.mh: Ditto.
12604 * config/ia64/linux.mh: Ditto.
12605 * config/m68k/linux.mh: Ditto.
12606 * config/mips/linux.mh: Ditto.
12607 * config/powerpc/linux.mh: Ditto.
12608 * config/sparc/linux.mh: Ditto.
12609
12610 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
12611
12612 * win32-nat.c: Add i386-tdep.h dependency.
12613
12614 2002-01-07 Michael Snyder <msnyder@redhat.com>
12615
12616 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
12617 instead of bfd_get_arch_size. Don't bail out just because
12618 there's no exec_bfd.
12619
12620 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
12621 * p-valprint.c (pascal_object_print_value): Ditto.
12622 * somread.c (som_symtab_read): Ditto.
12623 * symfile.c (simple_free_overlay_region_table): Ditto.
12624 * valops.c (value_assign): Ditto.
12625
12626 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
12627 use tilde_expand and strerror for opening save-tracepoints file.
12628
12629 * thread-db.c (thread_db_new_objfile): Indendation fix.
12630
12631 * infptrace.c (GDB_MAX_ALLOCA): New define.
12632 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
12633 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
12634 can be overridden with whatever value is appropriate to the host).
12635 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
12636 alloca to allocate potentially large buffer.
12637 * rs6000-nat.c (child_xfer_memory): Ditto.
12638 * symm-nat.c (child_xfer_memory): Ditto.
12639 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
12640
12641 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
12642
12643 From Nick Clifton <nickc@redhat.com>
12644 * d10v-tdep.c: Set STACK_START to 0x200bffe.
12645
12646 2002-01-07 Michael Snyder <msnyder@redhat.com>
12647
12648 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
12649 Don't use exec_bfd if it's NULL.
12650
12651 2002-01-06 Mark Kettenis <kettenis@gnu.org>
12652
12653 * valops.c (value_arg_coerce): Fix formatting.
12654
12655 2002-01-06 Andrew Cagney <ac131313@redhat.com>
12656
12657 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
12658 * gnu-nat.c: Ditto.
12659
12660 2002-01-06 Andrew Cagney <ac131313@redhat.com>
12661
12662 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
12663 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
12664 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
12665 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
12666 z8k-coff have not been multi-arched. Update z8k-coff build
12667 status.
12668
12669 2002-01-06 Andrew Cagney <ac131313@redhat.com>
12670
12671 * MAINTAINERS: Mark a29k target as obsolete.
12672 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
12673 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
12674 comments.
12675 * NEWS: Note that a29k targets are obsolete.
12676 * a29k-tdep.c: Mark as obsolete.
12677 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
12678 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
12679 a29k-*-vxworks* targets as obsolete.
12680 * remote-adapt.c: Obsolete.
12681 * remote-eb.c: Obsolete.
12682 * remote-mm.c: Obsolete.
12683 * remote-udi.c: Obsolete.
12684 * config/a29k/a29k-udi.mt: Obsolete.
12685 * config/a29k/a29k.mt: Obsolete.
12686 * config/a29k/tm-a29k.h: Obsolete.
12687 * config/a29k/tm-vx29k.h: Obsolete.
12688 * config/a29k/vx29k.mt: Obsolete.
12689
12690 2002-01-05 Andrew Cagney <ac131313@redhat.com>
12691
12692 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
12693 with BFD_ENDIAN_BIG.
12694
12695 2002-01-05 Andrew Cagney <ac131313@redhat.com>
12696
12697 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
12698 * configure, config.in: Re-generate.
12699 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
12700 * defs.h: Do not include <endian.h>.
12701
12702 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
12703
12704 * acconfig.h (HAVE_PT_GETXMMREGS): New.
12705 * config.in: Regenerate.
12706 * configure.in: Update copyright years.
12707 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
12708 * configure: Regenerate.
12709 * i386bsd-nat.c: Update copyright years.
12710 (fill_gregset): Use regcache_collect.
12711 (fetch_inferior_registers): Only fetch integer registers
12712 if requested to do so. Add support for XMM registers
12713 using PT_GETXMMREGS.
12714 (store_inferior_registers): Only store integer registers
12715 if requested to do so. Add support for XMM registers
12716 using PT_SETXMMREGS.
12717 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
12718 (store_inferior_registers): Remove.
12719 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
12720 (fetch_elfcore_registers): New function.
12721 (i386nbsd_elfcore_fns): New.
12722 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
12723 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
12724 i386bsd-nat.o.
12725 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
12726 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
12727 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
12728 * config/i386/tm-nbsd.h: Update copyright years.
12729 (HAVE_SSE_REGS): Define.
12730 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
12731 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
12732 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
12733 (SIGCONTEXT_PC_OFFSET): Remove.
12734 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
12735
12736 2002-01-05 Andrew Cagney <ac131313@redhat.com>
12737
12738 * configure.tgt: Remove powerpc-*-macos* target.
12739 * config/m68k/xm-mpw.h: Delete file.
12740 * config/xm-mpw.h: Delete file.
12741 * ser-mac.c: Delete file.
12742 * mpw-make.sed: Delete file.
12743 * mpw-config.in: Delete file.
12744 * mac-xdep.c: Delete file.
12745 * mac-gdb.r: Delete file.
12746 * mac-defs.h: Delete file.
12747 * mac-nat.c: Delete file.
12748 * config/powerpc/macos.mh: Delete file.
12749 * config/powerpc/macos.mt: Delete file.
12750 * config/powerpc/nm-macos.h: Delete file.
12751 * config/powerpc/tm-macos.h: Delete file.
12752 * source.c (openp, open_source_file): Remove obsolete code.
12753 * top.c (gdb_readline): Ditto.
12754 * utils.c (query): Ditto.
12755 * event-top.c (display_gdb_prompt): Ditto.
12756 * Makefile.in (ser-mac.o): Delete obsolete target.
12757 * NEWS: Update.
12758
12759 2002-01-04 Andrew Cagney <ac131313@redhat.com>
12760
12761 * defs.h (BIG_ENDIAN): Delete macro definition.
12762 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
12763 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
12764 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
12765 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
12766 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
12767 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
12768 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
12769 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
12770 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
12771 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
12772 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
12773 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
12774 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
12775 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
12776 * gdbarch.c: Re-generate.
12777
12778 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
12779
12780 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
12781 for core files.
12782
12783 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
12784
12785 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
12786
12787 2002-01-04 Andrew Cagney <ac131313@redhat.com>
12788
12789 * value.h (value_ptr): Delete typedef.
12790
12791 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
12792
12793 * i386nbsd-nat.c: Update copyright years.
12794 Include i386-tdep.h.
12795
12796 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
12797
12798 * stabsread.c: Update copyright years.
12799
12800 From Debashis Mahata <debashis.mahata@wipro.com>:
12801 (read_struct_fields): Deal with Sun C compiler erroneous stab
12802 output for structs and unions.
12803 Fix PR gdb/269.
12804
12805 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
12806
12807 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
12808 prototype.
12809
12810 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
12811
12812 * cp-abi.c: Fix whitespace.
12813 (baseclass_offset): New wrapper function.
12814 * cp-abi.h (baseclass_offset): Add prototype.
12815 (struct cp_abi_ops): Add baseclass_offset pointer.
12816
12817 * valops.c (vb_match): Move to...
12818 * gnu-v2-abi.c (vb_match): here.
12819 * valops.c (baseclass_offset): Move to...
12820 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
12821
12822 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
12823
12824 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
12825 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
12826 * hpacc-abi.c (init_hpacc_ops): Likewise.
12827
12828 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
12829
12830 * valops.c (find_overload_match): Accept obj as a
12831 reference parameter. Update it before returning.
12832 * value.h (find_overload_match): Update prototype.
12833 * eval.c (evaluate_subexp_standard): Pass object to
12834 find_overload_match by reference.
12835
12836 2002-01-03 Andrew Cagney <ac131313@redhat.com>
12837
12838 * valarith.c: Replace value_ptr with struct value pointer. Remove
12839 register attribute from value declarations.
12840 * valops.c: Ditto.
12841 * value.h: Ditto.
12842 * scm-lang.c (scm_lookup_name): Ditto.
12843
12844 2002-01-03 Michael Snyder <msnyder@redhat.com>
12845
12846 Abstract the functionality of iterating over mapped memory
12847 regions into a general purpose iterator function.
12848 * procfs.c (iterate_over_mappings): New function, general purpose
12849 iterator for memory sections.
12850 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
12851 (solib_mappings_callback): New function, callback for above.
12852 (info_proc_mappings): Reimpliment using iterate_over_mappings.
12853 (info_mappings_callback): New function, callback for above.
12854
12855 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
12856
12857 2002-01-01 Mark Kettenis <kettenis@gnu.org>
12858
12859 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
12860 * i386-tdep.c: Include "elf-bfd.h".
12861 (process_note_abi_tag_sections): New function.
12862 (i386_gdbarch_init): Add code to recognize various OS/ABI
12863 combinations.
12864
12865 * maint.c (_initialize_maint_cmds): Add missing \ in
12866 string-literal.
12867
12868 For older changes see ChangeLog-2001
12869 \f
12870 Local Variables:
12871 mode: change-log
12872 left-margin: 8
12873 fill-column: 74
12874 version-control: never
12875 End: