2002-11-09 Andrew Cagney <ac131313@redhat.com>
[binutils-gdb.git] / gdb / ChangeLog
1 2002-11-09 Andrew Cagney <ac131313@redhat.com>
2
3 * frame.c (get_prev_frame): Test prev_p to identify a previously
4 unwound frame. Initialize prev_p.
5 * frame.h (struct frame_info): Add field prev_p. Expand prev/next
6 comment.
7
8 2002-11-09 Andrew Cagney <ac131313@redhat.com>
9
10 * frame.c (get_prev_frame): Cleanups. Eliminate redundant tests
11 for a NULL NEXT_FRAME. Simplify fromleaf initialization. Add
12 more comments. Zap dead code.
13
14 2002-11-09 Mark Kettenis <kettenis@gnu.org>
15
16 * infcmd.c (print_vector_info, print_float_info): Move code that
17 checks whether the target has any registers and whether there is a
18 selected frame up, such that it is also used if a target provides
19 multi-arch definitions of these functions.
20
21 2002-11-08 Andrew Cagney <ac131313@redhat.com>
22
23 * Makefile.in (DESTDIR): Define.
24 (install-only, install-gdbtk, uninstall-gdbtk): Add $(DESTDIR)
25 prefix.
26
27 * config/djgpp/fnchange.lst: 8.3 proof i386obsd-nat.c and
28 i386obsd-tdep.c. Rename to "gdb.cxx", paths containing "gdb.c++".
29
30 2002-11-08 Andrew Cagney <ac131313@redhat.com>
31
32 * i386-linux-tdep.c: Include "reggroups.h".
33 (i386_linux_register_reggroup_p): New function.
34 (i386_linux_init_abi): Set register_reggroup_p to
35 i386_linux_register_reggroup_p.
36 * i386-tdep.h (i386_register_reggroup_p): Declare.
37 * i386-tdep.c: Include "reggroups.h".
38 (i386_init_reggroups): New function.
39 (i386_add_reggroups): New function.
40 (i386_register_reggroup_p): New function.
41 (i386_sse_reggroup, i386_mmx_reggroup): New variables.
42 (_initialize_i386_tdep): Call i386_init_reggroups.
43 (i386_gdbarch_init): Set register_reggroup_p and add in the i386
44 specific reggroups.
45
46 2002-11-09 Mark Kettenis <kettenis@gnu.org>
47
48 * infptrace.c (child_xfer_memory): Make use of the new PT_IO
49 request that's available in *BSD.
50
51 * i386-tdep.h (IS_FPU_CTRL_REGNUM): Remove.
52
53 * i387-tdep.c (i387_fill_fxsave): Use FOOFF_REGNUM instead of
54 FDOFF_REGNUM.
55
56 2002-11-08 Andrew Cagney <ac131313@redhat.com>
57
58 * frame.c (set_unwind_by_pc): Use dummy_frame_register_unwind.
59 * dummy-frame.c (find_dummy_frame): Rename
60 generic_find_dummy_frame, make static. Return the dummy frame
61 instead of the regcache.
62 (generic_find_dummy_frame): Re-implement using find_dummy_frame,
63 (cached_find_dummy_frame): New function. Use find_dummy_frame.
64 (dummy_frame_register_unwind): Rename
65 generic_call_dummy_register_unwind. Use cached_find_dummy_frame.
66 * dummy-frame.h (dummy_frame_register_unwind): Rename
67 generic_call_dummy_register_unwind.
68
69 2002-11-08 Mark Kettenis <kettenis@gnu.org>
70
71 * config/i386/tm-i386v42mp.h: Remove file. Move its contents,
72 except the inclusion of "i386/tm-i386.h", to...
73 * config/i386/nm-i386v42mp.h: ...here.
74 * config/i386/i386v42mp.mt (TM_FILE): Set to tm-i386.h.
75
76 2002-11-08 Andrew Cagney <ac131313@redhat.com>
77
78 * Makefile.in (frame.o): Update dependencies.
79 * blockframe.c (current_frame, frame_obstack_alloc)
80 (frame_saved_regs_zalloc, get_current_frame)
81 (set_current_frame, create_new_frame)
82 (set_unwind_by_pc, get_next_frame)
83 (flush_cached_frames, reinit_frame_cache)
84 (frame_saved_regs_register_unwind)
85 (deprecated_generic_get_saved_register)
86 (get_prev_frame, get_frame_pc, get_frame_saved_regs)
87 (_initialize_blockframe): Move frame code from here...
88 * frame.c: ...to here. Include "gdb_obstack.h", "gdbcore.h",
89 "annotate.h" and "dummy-frame.h".
90 (_initialize_frame): New function.
91
92 2002-11-08 Jim Blandy <jimb@redhat.com>
93
94 * dwarf2read.c (read_func_scope): Restore list_in_scope properly
95 when we finish a function a context.
96 * buildsym.h (outermost_context_p): New macro.
97 (Bug analyzed by David Edelsohn.)
98
99 2002-11-08 Andrew Cagney <ac131313@redhat.com>
100
101 * blockframe.c: Include "dummy-frame.h".
102 (struct dummy_frame, dummy_frame_stack)
103 (generic_find_dummy_frame, deprecated_generic_find_dummy_frame)
104 (generic_pc_in_call_dummy, deprecated_read_register_dummy)
105 (generic_push_dummy_frame, generic_save_dummy_frame_tos)
106 (generic_save_call_dummy_addr, generic_pop_current_frame)
107 (generic_pop_dummy_frame, generic_fix_call_dummy)
108 (generic_fix_call_dummy, generic_call_dummy_register_unwind): Move
109 dummy frame code from here...
110 * dummy-frame.c: ...to here. New file.
111 * dummy-frame.h: New file.
112 (generic_call_dummy_register_unwind): Declare.
113 (generic_find_dummy_frame): Declare.
114 * Makefile.in (SFILES): Add dummy-frame.c.
115 (dummy-frame.o): Specify dependencies.
116 (dummy_frame_h): Define.
117 (COMMON_OBS): Add dummy-frame.o.
118 (blockframe.o): Update dependencies.
119
120 2002-11-08 Jim Blandy <jimb@redhat.com>
121
122 * dwarf2read.c (read_func_scope): Restore local_symbols and
123 param_symbols after we finish the function context. (Based on a
124 patch from David Edelsohn.)
125
126 2002-11-08 David Carlton <carlton@math.stanford.edu>
127
128 * linespec.c (symbol_found): New function.
129 (minsym_found): New function.
130 (decode_line_1): Separate out some code into separate functions.
131
132 2002-11-08 Joel Brobecker <brobecker@gnat.com>
133
134 * i386-tdep.c (i386_frameless_signal_p): Make non static for
135 the benefit of the interix target.
136 * i386-tdep.h (i386_frameless_signal_p): Declare.
137
138 2002-11-08 Andrew Cagney <ac131313@redhat.com>
139
140 * i386-tdep.h (i386_linux_orig_eax_regnum_p): Delete stray
141 declaration that snuck in from change below.
142
143 2002-11-06 Andrew Cagney <cagney@redhat.com>
144
145 * i386-tdep.c (i386_mmx_regnum_p): Rename mmx_regnum_p. Update
146 all callers.
147 (i386_fp_regnum_p): New function. Use instead of FP_REGNUM_P.
148 (i386_fpc_regnum_p): New function. Use instead of FPC_REGNUM_P.
149 (i386_sse_regnum_p): New function. Use instead of SSE_REGNUM_P.
150 (i386_mxcsr_regnum_p): new function. Use instead of
151 MXCSR_REGNUM_P.
152 * i386-tdep.h (SSE_REGNUM_P): Delete macro.
153 (i386_sse_regnum_p): Declare.
154 (i386_mxcsr_regnum_p): Declare.
155 (FP_REGNUM_P, FPC_REGNUM_P): Delete macros.
156 (i386_fp_regnum_p, i386_fpc_regnum_p): Declare.
157 (IS_FP_REGNUM): Update definition.
158 (IS_FPU_CTRL_REGNUM): Update definition..
159 (IS_SSE_REGNUM): Update definition..
160 * i386v-nat.c (register_u_addr): Update.
161 * go32-nat.c (fetch_register): Update.
162 (store_register): Update.
163
164 2002-11-07 Joel Brobecker <brobecker@gnat.com>
165
166 Preparation work to convert the hppa targets to multiarch partial.
167
168 * hppa-tdep.c: Add new functions replacing macro bodies from
169 config/pa/tm-hppa.h. These function will be used to initialize
170 the gdbarch structure. Import some comments from tm-hppa.h,
171 and place them where appropriate, to avoid loosing them when
172 we cleanup this file.
173 (hppa_reg_struct_has_addr): New function.
174 (hppa_inner_than): New function.
175 (hppa_stack_align): New function.
176 (hppa_pc_requires_run_before_use): New function.
177 (hppa_instruction_nullified): New function.
178 (hppa_register_byte): New function.
179 (hppa_register_virtual_type): New function.
180 (hppa_store_struct_return): New function.
181 (hppa_cannot_store_register): New function.
182 (hppa_frame_args_address): New function.
183 (hppa_frame_locals_address): New function.
184 (hppa_smash_text_address): New function.
185 (hppa_coerce_float_to_double): New function. Requires the inclusion
186 of "language.h".
187
188 * Makefile.in (hppa-tdep.o): Add dependency on language.h.
189
190 * tm-hppa.h (REG_STRUCT_HAS_ADDR): Change the definition of this
191 gdbarch-eligible macro to a call to the new associated function
192 created in hppa-tdep.c.
193 (INNER_THAN): Likewise.
194 (STACK_ALIGN): Likewise.
195 (PC_REQUIRES_RUN_BEFORE_USE): Likewise.
196 (INSTRUCTION_NULLIFIED): Likewise.
197 (REGISTER_BYTE): Likewise.
198 (REGISTER_VIRTUAL_TYPE): Likewise.
199 (STORE_STRUCT_RETURN): Likewise.
200 (CANNOT_STORE_REGISTER): Likewise.
201 (FRAME_ARGS_ADDRESS): Likewise.
202 (FRAME_LOCALS_ADDRESS): Likewise.
203 (SMASH_TEXT_ADDRESS): Likewise.
204 (COERCE_FLOAT_TO_DOUBLE): Likewise.
205 (ABOUT_TO_RETURN): Delete, as no longer used.
206
207 2002-11-07 Fernando Nasser <fnasser@redhat.com>
208
209 * printcmd.c (disassemble_command): Remove obsolete function.
210 (_initialize_printcmd): Do not create disassemble command here.
211 * cli/cli-cmds.c (disassemble_command): New function. Implements
212 disassemble command.
213 (init_cli_cmds): Create disassemble command here instead.
214
215 2002-11-07 Andrew Cagney <ac131313@redhat.com>
216
217 * MAINTAINERS: Add Daniel Jacobowitz to global maintainers list.
218
219 2002-11-07 Andrew Cagney <ac131313@redhat.com>
220
221 * regcache.h (regcache_cooked_read_using_offset_hack)
222 (regcache_cooked_write_using_offset_hack): Delete declarations.
223 (register_changed): Delete declaration.
224 * regcache.c (regcache_cooked_read_using_offset_hack)
225 (regcache_cooked_write_using_offset_hack): Delete functions.
226 (cooked_xfer_using_offset_hack): Delete function.
227 (register_changed): Delete function.
228
229 2002-11-07 Jim Blandy <jimb@redhat.com>
230
231 * macroscope.c: #include "complaints.h".
232 (sal_macro_scope): Cope with filenames that appear in the symtabs,
233 but not in the macro table.
234 * Makefile.in (macroscope.o): Record dependency.
235
236 2002-11-07 Joel Brobecker <brobecker@gnat.com>
237
238 * PROBLEMS: Document gdb/816 (unable to read core file on alpha-osf).
239
240 2002-11-07 Andrew Cagney <ac131313@redhat.com>
241
242 * regcache.c (deprecated_registers_fetched): Update.
243 * regcache.h (deprecated_registers_fetched): Rename
244 registers_fetched.
245 * remote-vxsparc.c (vx_read_register): Update.
246 * remote-vxmips.c (vx_read_register): Update.
247 * remote-vx68.c (vx_read_register): Update.
248 * irix5-nat.c (fetch_core_registers): Update.
249 * mipsm3-nat.c (fetch_inferior_registers): Update.
250 * sun3-nat.c (fetch_inferior_registers): Update.
251 * symm-nat.c (fetch_inferior_registers): Update.
252 * ns32knbsd-nat.c (fetch_inferior_registers): Update.
253 (fetch_core_registers): Update.
254 (fetch_kcore_registers): Update.
255 * mips-nat.c (fetch_inferior_registers): Update.
256 * corelow.c (get_core_registers): Update.
257 * a68v-nat.c (fetch_inferior_registers): Update.
258
259 2002-11-06 Joel Brobecker <brobecker@gnat.com>
260
261 Put in place the framework necessary for multiarching the hppa targets.
262 * hppa-tdep.c (hppa_gdbarch_init): New function.
263 (hppa_dump_tdep): New function.
264 (_initialize_hppa_tdep): Register the hppa gdbarch init function and
265 tdep structure dumper.
266 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): New macro, defined to 0
267 until the multi-arching conversion has partially been completed.
268
269 2002-11-06 Andrew Cagney <ac131313@redhat.com>
270
271 * valops.c (value_assign): Merge lval_register case into
272 lval_reg_frame_relative. Use frame_register and
273 regcache_cooked_write instead of get_saved_register and
274 write_register_bytes. After flushing the register cache, try to
275 re-select the selected frame.
276
277 2002-11-06 Andrew Cagney <ac131313@redhat.com>
278
279 * regcache.h (deprecated_register_valid): Rename register_valid.
280 * regcache.c: Update.
281 * ia64-aix-nat.c: Update.
282 * i386gnu-nat.c: Update.
283 * alpha-nat.c: Update.
284 * sparc-nat.c: Update.
285 * lynx-nat.c: Update.
286 * remote-mips.c: Update.
287
288 2002-11-06 Joel Brobecker <brobecker@gnat.com>
289
290 * hppa-tdep.c (_initialize_hppa_tdep): Move function body
291 to end of file, to be more consistent with the pratice followed
292 by other targets.
293
294 2002-11-06 Andrew Cagney <ac131313@redhat.com>
295
296 * infcmd.c: Include "reggroups.h" and <ctype.h>.
297 (print_float_info): Print registers in float_reggroup.
298 (print_vector_info): Print registers in vector_reggroup.
299 (default_print_registers_info): When all, print registers in
300 all_reggroup. Otherwize, print registers in general_reggroup.
301 (registers_info): Rewrite. Add support for register groups.
302 Eliminate a goto.
303
304 2002-11-06 Elena Zannoni <ezannoni@redhat.com>
305
306 * symtab.c (methods_info): Delete. It has been ifdeffed out for
307 ages.
308 (symtab_symbol_info): Remove eons old ifdeffed out code.
309 (_initialize_symtab): Remove prehistoric disabled 'info methods'
310 command.
311
312 2002-11-06 Theodore A. Roth <troth@openavr.org>
313
314 * c-exp.y: Add missing semi-colons.
315 * f-exp.y: Add missing semi-colons.
316 * m2-exp.y: Add missing semi-colons.
317 * p-exp.y: Add missing semi-colons.
318 Add empty action to start rule to avoid a type clash error when
319 building with bison >= 1.50.
320
321 2002-11-06 Jim Blandy <jimb@redhat.com>
322
323 * macrotab.h (struct macro_source_file): Doc fix.
324
325 2002-11-05 Jeff Johnston <jjohnstn@redhat.com>
326
327 * varobj.c (child_exists, cplus_number_of_children): Change
328 STREQ macro references to strcmp.
329 (cplus_name_of_child): Change code to handle the fact that
330 fields are not necessarily contiguous with regards to their
331 access control. This is a fix for PR gdb/792.
332
333 2002-11-05 Andrew Cagney <ac131313@redhat.com>
334
335 * gdbarch.sh (GET_SAVED_REGISTER): Change to a predicate function.
336 * gdbarch.h, gdbarch.c: Regnerate.
337 * frame.h (frame_register): Declare.
338 * frame.c (frame_register): New function.
339 (get_saved_register): Test GET_SAVED_REGISTER_P before calling
340 GET_SAVED_REGISTER, otherwize call
341 generic_unwind_get_saved_register.
342 (frame_register_read): Use frame_register instead of
343 get_saved_register.
344
345 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
346
347 From Jim Ingham <jingham@apple.com>:
348 * event-top.c (gdb_disable_readline): New function.
349 (_initialize_event_loop): Move comment.
350
351 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
352
353 * event-loop.c (start_event_loop): Add comment.
354 Update copyright.
355
356 2002-11-05 Andrew Cagney <ac131313@redhat.com>
357
358 * infcmd.c (default_print_registers_info): Do not call
359 PRINT_REGISTER_HOOK.
360
361 2002-11-05 Andrew Cagney <ac131313@redhat.com>
362
363 * sparc-tdep.c (sparc_print_register_hook): Make static.
364 (sparc_print_registers_info): New function.
365 (sparc_do_registers_info): New function.
366 (sparclet_print_registers_info): New function.
367 (sparclet_do_registers_info): New function.
368 (do_sparc_print_registers_info): New function.
369 (sparc_print_registers): New static function, clone of infcmd.c's
370 default_print_registers_info.
371 * config/sparc/tm-sparclet.h (PRINT_REGISTER_HOOK): Delete macro.
372 (sparclet_do_registers_info): Declare.
373 (DEPRECATED_DO_REGISTERS_INFO): Re-define.
374 * config/sparc/tm-sparc.h (DEPRECATED_DO_REGISTERS_INFO):
375 Re-define.
376 (sparc_do_registers_info): Declare.
377 (PRINT_REGISTER_HOOK): Delete macro.
378 (sparc_print_register_hook): Delete declaration.
379
380 2002-11-05 David Carlton <carlton@math.stanford.edu>
381
382 * symtab.c (lookup_symbol_aux): Move chunks of code into separate
383 functions.
384 (lookup_symbol_aux_local): New function.
385 (lookup_symbol_aux_symtabs): New function.
386 (lookup_symbol_aux_psymtabs): New function.
387
388 2002-11-05 David Carlton <carlton@math.stanford.edu>
389
390 * symtab.c (lookup_symbol_aux): In minsym sections, don't use the
391 previous values of 'objfile' and 'block'.
392
393 2002-11-05 Pierre Muller <muller@ics.u-strasbg.fr>
394
395 * values.c (value_change_enclosing_type): Set
396 enclosing_type field correctly also for the case where
397 more memory needs to be allocated.
398
399 2002-11-03 Mark Kettenis <kettenis@gnu.org>
400
401 * i387-tdep.c (i387_print_float_info): Call fputs_filtered instead
402 of puts_filtered.
403
404 * i387-tdep.c (i387_print_float_info): Replace calls to
405 register_read and deprecated_read_register_gen with calls to
406 frame_register_read, and make the necessary adjustments to the
407 surrounding code.
408
409 2002-11-02 Andrew Cagney <ac131313@redhat.com>
410
411 * gdbarch.sh (register_reggroup_p): Allow default value.
412 * gdbarch.h, gdbarch.c: Regenerate.
413
414 2002-11-02 Andrew Cagney <ac131313@redhat.com>
415
416 * regcache.h: Add coment indicating replacements for deprecated
417 functions.
418
419 2002-11-02 Andrew Cagney <cagney@redhat.com>
420
421 * reggroups.h, reggroups.c: New files.
422 * regcache.c: Include "reggroups.h".
423 (enum regcache_dump_what): Add `regcache_dump_groups'.
424 (regcache_dump): Contract size of the "Type" column. When
425 specified, dump the register's groups.
426 (maintenance_print_register_groups): New function.
427 (_initialize_regcache): Add command `maint print register-groups'.
428 * Makefile.in (COMMON_OBS): Add reggroups.o
429 (SFILES): Add reggroups.c.
430 (reggroups_h): Define.
431 (regcache.o, gdbarch.o): Update dependencies.
432 (reggroups.o): Specify dependencies.
433 * gdbarch.sh (register_reggroup_p): Add pure multi-arch method.
434 Add opaque declaration for `struct reggroup' in generated .h file.
435 Include "reggroups.h" in generated .c file.
436 gdbarch.h, gdbarch.c: Re-generate.
437
438 2002-11-02 Andrew Cagney <cagney@redhat.com>
439
440 * regcache.h (deprecated_read_register_gen): Rename
441 read_register_gen.
442 (deprecated_write_register_gen): Rename write_register_gen.
443 * i387-tdep.c: Update.
444 * x86-64-linux-nat.c: Update
445 * wince.c: Update.
446 * thread-db.c: Update.
447 * win32-nat.c: Update.
448 * mips-tdep.c: Update.
449 * d10v-tdep.c: Update.
450 * cris-tdep.c: Update.
451 * remote-sim.c: Update.
452 * remote-rdi.c: Update.
453 * remote-rdp.c: Update.
454 * frame.c: Update.
455 * target.c: Update.
456 * blockframe.c: Update.
457 * x86-64-tdep.c: Update.
458 * xstormy16-tdep.c: Update.
459 * sh-tdep.c: Update.
460 * s390-tdep.c: Update.
461 * rs6000-tdep.c: Update.
462 * sparc-tdep.c: Update.
463 * i386-tdep.c: Update.
464 * dwarf2cfi.c: Update.
465 * regcache.c: Update.
466
467 2002-11-01 Joel Brobecker <brobecker@gnat.com>
468
469 New interix-specific files:
470 * config/i386/nm-interix.h: New file.
471 * config/i386/interix.mh: New file.
472 * config/i386/interix.mt: New file.
473 * i386-interix-nat.c: New file.
474 * i386-interix-tdep.c: New file.
475
476 2002-11-01 Andrew Cagney <cagney@redhat.com>
477
478 * frame.h (deprecated_generic_get_saved_register): Rename
479 generic_get_saved_register.
480 * blockframe.c (deprecated_generic_get_saved_register): Update.
481 * xstormy16-tdep.c (xstormy16_get_saved_register): Update.
482 (xstormy16_frame_saved_register): Update.
483 * sh-tdep.c (sh_gdbarch_init): Update.
484 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
485 * ia64-tdep.c (ia64_get_saved_register): Update.
486 * cris-tdep.c (cris_gdbarch_init): Update.
487 * config/m32r/tm-m32r.h (GET_SAVED_REGISTER): Update.
488 * arm-tdep.c (arm_gdbarch_init): Update.
489
490 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
491
492 * lin-lwp.c (lin_lwp_resume): Remove resume_all test for !step.
493
494 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
495
496 * i386-linux-tdep.c (i386_linux_pc_in_sigtramp): Check for
497 trampolines in sigaction.
498
499 2002-10-31 Andrew Cagney <cagney@redhat.com>
500
501 * h8300-tdep.c: Include "gdb_assert.h".
502 (h8300_print_register): Add gdbarch, file and frame parameters.
503 Use frame_read_unsigned_register to read the register's value.
504 Use fprintf_filtered to display output.
505 (h8300_print_registers_info): Replace h8300_do_registers_info.
506 (h8300_gdbarch_init): Set print_registers_info.
507
508 2002-10-31 Andrew Cagney <cagney@redhat.com>
509
510 * frame.c (frame_read_unsigned_register): New function.
511 (frame_read_signed_register): New function.
512 * frame.h (frame_read_unsigned_register): Declare.
513 (frame_read_signed_register): Declare.
514
515 2002-10-31 Andrew Cagney <cagney@redhat.com>
516
517 * h8500-tdep.c (h8500_print_registers_info): New static function,
518 clone of infcmd.c's default_print_registers_info.
519 (h8500_do_registers_info): New funtion.
520 (h8500_print_register_hook): Rename print_register_hook, make
521 static.
522
523 * config/h8500/tm-h8500.h: Update copyright.
524 (DEPRECATED_DO_REGISTERS_INFO): Define.
525 (h8500_do_registers_info: Declare.
526 (PRINT_REGISTER_HOOK): Delete macro.
527 (print_register_hook): Delete function.
528
529 2002-10-31 Andrew Cagney <cagney@redhat.com>
530
531 * z8k-tdep.c (z8k_print_register_hook): Make static.
532 (z8k_print_registers_info): New static function, clone of
533 infcmd.c's default_print_registers_info.
534 (z8k_do_registers_info): New function. Wrap
535 z8k_print_registers_info.
536 * config/z8k/tm-z8k.h: Update copyright.
537 (PRINT_REGISTER_HOOK): Delete macro.
538 (z8k_print_register_hook): Delete declaration.
539 (DEPRECATED_DO_REGISTERS_INFO): Define.
540 (z8k_do_registers_info): Declare.
541
542 2002-10-30 Joel Brobecker <brobecker@gnat.com>
543
544 * hppa-tdep.c (find_function_in_inferior): Remove this extern,
545 as this is already provided by value.h, and was actually causing
546 a compilation error because of a conflict in parameter type
547 declaration due to a missing const keyword.
548 (low_text_segment_addres): Fix a compilation warning.
549
550 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
551
552 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
553 registers without a name.
554 (mips_linux_cannot_store_register): Don't store registers without
555 a name.
556
557 2002-10-28 David Carlton <carlton@math.stanford.edu>
558
559 * symtab.c (find_addr_symbol): Delete. (It was already commented
560 out.)
561 * symtab.h: Delete prototype for find_addr_symbol.
562
563 2002-10-26 Andrew Cagney <cagney@redhat.com>
564
565 * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
566 DO_REGISTERS_INFO.
567 gdbarch.h, gdbarch.c: Re-generate.
568 * infcmd.c (default_print_registers_info): Update reference.
569 * mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info.
570 (mips_dump_tdep): Do not print DO_REGISTERS_INFO.
571 * sh-tdep.c (sh_gdbarch_init): Ditto.
572 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
573 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
574
575 2002-10-26 Mark Kettenis <kettenis@gnu.org>
576
577 * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
578 cfi_init_extra_frame_info.
579 * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
580 * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
581
582 * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
583 target where necessary. Add more comments and remove the ones
584 that don't provide any useful information.
585
586 * i386-tdep.c (i386_frame_saved_pc): Replace call to
587 deprecated_read_register_dummy with
588 frame_unwind_unsigned_register.
589
590 * i386-tdep.c (i386_extract_struct_value_address): Use
591 regcache_raw_read_unsigned instead of
592 regcache_cooked_read_unsigned since we know that the register
593 we're reading isn't a pseudo register. Rename variable 'val' into
594 the more descriptive 'addr'.
595
596 * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
597 (x86_64_push_return_address): Add comment.
598 (x86_64_pop_frame): Make static.
599 (examine_argument): Clarify comment.
600 (x86_64_skip_prologue): Make prolog_expact variable static.
601
602 * dwarf2cfi.c: Fix some formatting problems.
603 (context_cpy, read_encoded_pointer): Clarify comments.
604
605 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
606 (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
607 i386 target back into x86_64_gdbarch_init. Add some comments and
608 remove meaningless ones.
609
610 2002-10-25 Andrew Cagney <cagney@redhat.com>
611
612 * complaints.h (struct deprecated_complaint): Rename `struct
613 complaint'.
614 * complaints.c (complain): Update.
615 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
616 incorrect comment indicating that "symfile.h" was being included
617 for the `struct complaint' definition.
618 * remote-vx.c: Update.
619 * objc-lang.c: Update.
620 * xcoffread.c: Update.
621 * hpread.c: Update.
622 * mdebugread.c: Update.
623 * stabsread.c: Update.
624 * dwarf2read.c: Update.
625 * dwarfread.c: Update.
626 * elfread.c: Update.
627 * coffread.c: Update.
628 * stabsread.h: Update.
629 * dbxread.c: Update.
630 * buildsym.c: Update.
631 * gdbtypes.c: Update.
632 * macrotab.c: Update.
633
634 2002-10-25 Mark Kettenis <kettenis@gnu.org>
635
636 * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
637 the version in i386-tdep.c. Move set_gdbarch_* calls out into...
638 (x86_64_init_abi): ...new function.
639
640 * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
641 * i386v-nat.c: Include "i386-tdep.h".
642
643 2002-10-25 Andrew Cagney <cagney@redhat.com>
644
645 * gdbtypes.c (address_space_name_to_int): Update.
646 (address_space_int_to_name): Update.
647 * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
648 multi-arch predicate.
649 (address_class_name_to_type_flags): Ditto.
650 * gdbarch.h, gdbarch.c: Re-generate.
651
652 * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
653
654 2002-10-24 Martin M. Hunt <hunt@redhat.com>
655
656 * utils.c (string_to_core_addr): Revert patch from 11 Oct.
657
658 2002-10-24 Elena Zannoni <ezannoni@redhat.com>
659
660 * symtab.h (INIT_SAL): Delete macro.
661 (init_sal): Export.
662 * symtab.c (init_sal): New function.
663
664 * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
665 to init_sal function call.
666 (find_sal_from_funcs_and_line): Ditto.
667 (all_sals_for_line): Ditto.
668 * breakpoint.c (create_internal_breakpoint): Ditto.
669 (create_fork_vfork_event_catchpoint): Ditto.
670 (create_exec_event_catchpoint): Ditto.
671 (parse_breakpoint_sals): Ditto.
672 (watch_command_1): Ditto.
673 (handle_gnu_4_16_catch_command): Ditto.
674 (clear_command): Ditto.
675 * hppa-tdep.c (child_enable_exception_callback): Ditto.
676 * infcmd.c (run_stack_dummy): Ditto.
677 * infrun.c (process_event_stop_test): Ditto.
678 (check_sigtramp2): Ditto.
679 (step_over_function): Ditto.
680 * linespec.c (decode_line_2): Ditto.
681 (decode_line_1): Ditto.
682 * source.c (line_info): Ditto.
683 * symtab.c (find_pc_sect_line): Ditto.
684
685 2002-10-24 Michal Ludvig <mludvig@suse.cz>
686
687 * dwarf2cfi.c (struct context)
688 (struct context_reg): Moved to dwarf2cfi.h
689 (context_alloc, frame_state_alloc, context_cpy):
690 Made extern instead of static, removed prototypes.
691 * dwarf2cfi.h (struct context)
692 (struct context_reg): New, moved from dwarf2cfi.c
693 (context_alloc, frame_state_alloc, context_cpy):
694 New prototypes.
695 * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
696 Changed from static to extern.
697 (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
698 (LINUX_SIGCONTEXT_FP_OFFSET)
699 (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
700 (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
701 (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
702 * x86-64-tdep.c (x86_64_gdbarch_init): Several
703 set_gdbarch_*() calls now use x86-64 specific functions
704 instead of DWARF2 CFI ones.
705 * x86-64-tdep.h (x86_64_linux_in_sigtramp)
706 (x86_64_linux_frame_chain, x86_64_init_frame_pc)
707 (x86_64_init_extra_frame_info): New prototypes.
708
709 2002-10-23 David Carlton <carlton@math.stanford.edu>
710
711 * linespec.c: #include "parser-defs.h".
712 Delete prototype for find_template_name_end.
713 * Makefile.in (linespec.o): Depend on $(parser_defs_h).
714
715 2002-10-23 Jeff Johnston <jjohnstn@redhat.com>
716
717 * NEWS: add recent mi fixes.
718 * varobj.c (struct varobj): Add new "updated" flag.
719 (new_variable): Default "updated" flag to 0.
720 (varobj_set_value): Set "updated" flag to 1 if value
721 changes.
722 (varobj_update): Check varobj "updated" flag before
723 comparing old and refreshed values. Fix for
724 PR gdb/702.
725
726 2002-10-23 David Carlton <carlton@math.stanford.edu>
727
728 * parse.c (parse_exp_1): Use BLOCK_START.
729 * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
730 SYMBOL_BLOCK_VALUE.
731 * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
732
733 2002-10-23 David Carlton <carlton@math.stanford.edu>
734
735 * symtab.c: Delete cplusplus_hint.
736 Delete prototype for find_template_name_end.
737
738 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
739
740 * symtab.h: Update comment.
741
742 2002-10-23 Michael Snyder <msnyder@redhat.com>
743
744 * printcmd.c (address_info): Restore quotes in output.
745 * valops.c (value_of_local): Restore quotes in error message.
746
747 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
748
749 * symtab.c (symbol_demangled_name): New function.
750 * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
751 turning most of it into a function.
752 (symbol_demangled_name): Export.
753
754 2002-10-23 Michael Snyder <msnyder@redhat.com>
755
756 * valops.c (value_of_local): Restore quotes in error message.
757
758 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
759
760 * symtab.c (symbol_init_language_specific): New function.
761 * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
762 turning most of it into a function.
763 (symbol_init_language_specific): Export.
764
765 2002-10-23 David Carlton <carlton@math.stanford.edu>
766
767 * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
768 (dwarf_attr_name): Ditto.
769 (dwarf_type_encoding_name): Ditto.
770 (scan_partial_symbols): Descend into DW_TAG_namespace entries.
771 (process_die): Handle DW_TAG_namespace,
772 DW_TAG_imported_declaration, DW_TAG_imported_module.
773 (read_namespace): New function.
774
775 2002-10-22 Joel Brobecker <brobecker@gnat.com>
776
777 * configure.in: Define NEW_PROC_API on Interix too.
778 * configure: Regenerate.
779
780 2002-10-21 Joel Brobecker <brobecker@gnat.com>
781
782 * configure: Regenerate using the proper version of autoconf.
783
784 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
785
786 * findvar.c (read_var_value): Temporarily disable TLS code, until
787 complete TLS support is added.
788
789 2002-10-21 Jim Blandy <jimb@redhat.com>
790 Elena Zannoni <ezannoni@redhat.com>
791
792 * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
793 for thread local storage locations.
794 (struct symbol): Add objfile field.
795 (SYMBOL_OBJFILE): Define.
796 * dwarf2read.c (is_thread_local): New static variable.
797 (new_symbol): If variable is in thread local fill in address class
798 and objfile appropriately.
799 (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
800 stack operation.
801 * printcmd.c (address_info): Print the information for thread
802 local storage variable.
803 * findvar.c (read_var_value): In case of thread local variable,
804 defer to the target vector code to compute address.
805
806 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
807
808 * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
809 * solib-svr4.h (svr4_fetch_objfile_link_map): Export.
810
811 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
812
813 * symtab.h (address_class): Rename
814 LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
815 * hpread.c (hpread_process_one_debug_symbol): Ditto.
816 * printcmd.c (address_info): Ditto.
817 * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
818
819 2002-10-20 Mark Kettenis <kettenis@gnu.org>
820
821 * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
822 DBREG_DRX macro to acces debug registers.
823
824 * Makefile.in (i386obsd-tdep.o): New target.
825
826 * solib-sunos.c: Include "bcache.h" and "regcache.h".
827 * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
828
829 * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
830 * config/i386/obsd.mt: New file.
831 * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
832 i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
833 * i386obsd-nat.c (_initialize_i386obsd_nat): Set
834 i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
835 i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
836 * i386obsd-tdep.c: New file.
837
838 2002-10-19 Adam Fedor <fedor@gnu.org>
839
840 * objc-exp.y (name_not_typename): Fix invalid comment.
841
842 2002-10-20 Mark Kettenis <kettenis@gnu.org>
843
844 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
845 to allocate partial syms and macro byte caches.
846
847 2002-10-18 David Carlton <carlton@math.stanford.edu>
848
849 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
850
851 2002-10-18 Adam Fedor <fedor@gnu.org>
852
853 * stabsread.c (find_name_end): New function.
854 (define_symbol): Use it.
855
856 2002-10-18 Daniel Jacobowitz <drow@mvista.com>
857
858 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
859 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
860 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
861 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
862
863 2002-10-17 David Carlton <carlton@math.stanford.edu>
864
865 * symfile.h: Add opaque declaration for struct obstack.
866 Declare obsavestring to take a const char *.
867 * symfile.c (obsavestring): Make first argument a const char *.
868
869 2002-10-16 Adam Fedor <fedor@gnu.org>
870
871 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
872 names when matching breakpoints in current file.
873
874 2002-10-16 Kevin Buettner <kevinb@redhat.com>
875
876 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
877 (read_tag_pointer_type): Add address class support.
878 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
879 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
880 New methods.
881 * gdbarch.h, gdbarch.c: Regenerate.
882 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
883 (make_type_with_address_space, recursive_type_dump): Add address
884 class support.
885 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
886 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
887 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
888
889 2002-10-16 Klee Dienes <kdienes@apple.com>
890
891 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
892 to get the last character of a char[] buffer, not
893 name[sizeof(vptr_name)-1].
894
895 2002-10-14 Adam Fedor <fedor@gnu.org>
896
897 * symtab.h: New objc_specific struct.
898 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
899 (SYMBOL_DEMANGLED_NAME): Likewise.
900
901 2002-10-14 Adam Fedor <fedor@gnu.org>
902
903 * symfile.c (init_filename_language_table): Add ObjC file extension.
904
905 2002-10-14 Adam Fedor <fedor@gnu.org>
906
907 * utils.c (puts_filtered_tabular): New function.
908 (fprintf_symbol_filtered): Get ObjC demangled name.
909 * defs.h (puts_filtered_tabular): Declared.
910
911 2002-10-14 Kevin Buettner <kevinb@redhat.com>
912
913 * c-lang.h (c_type_print_varspec_prefix): Delete.
914 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
915 ``need_post_space'' parameter. Adjust all callers.
916
917 2002-10-14 Daniel Jacobowitz <drow@mvista.com>
918
919 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
920 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
921 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
922 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
923
924 2002-10-13 Adam Fedor <fedor@gnu.org>
925
926 * source.c (print_source_lines): Update comments.
927
928 2002-10-13 Adam Fedor <fedor@gnu.org>
929
930 * valops.c (value_of_local): New function.
931 (value_of_this): Use it.
932 * value.h (value_of_local): Declared.
933
934 2002-10-13 Adam Fedor <fedor@gnu.org>
935
936 * parse.c: (length_of_subexp, prefixify_subexp): Handle
937 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
938
939 2002-10-12 Adam Fedor <fedor@gnu.org>
940
941 * language.c (binop_result_type): Add language_objc to case.
942 (integral_type): Likewise.
943 (character_type): Likewise.
944 (string_type): Likewise.
945 (boolean_type): Likewise.
946 (structured_type): Likewise.
947 (binop_type_check): Likewise.
948
949 2002-10-11 Adam Fedor <fedor@gnu.org>
950
951 * printcmd.c (address_info): Print 'self' for ObjC.
952
953 2002-10-11 Adam Fedor <fedor@gnu.org>
954
955 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
956 OP_SELF.
957
958 2002-10-11 Adam Fedor <fedor@gnu.org>
959
960 * language.h (CAST_IS_CONVERSION): Add language_objc.
961
962 2002-10-11 Adam Fedor <fedor@gnu.org>
963
964 * defs.h (enum language): Add language_objc.
965
966 2002-10-11 Klee Dienes <kdienes@apple.com>
967
968 * corefile.c (read_memory_typed_address): New function.
969 * gdbcore.h (read_memory_typed_address): Add prototype.
970 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
971 to read a value destined for a CORE_ADDR, not read_memory_integer.
972 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
973 (f77_get_dynamic_lowerbound): Ditto.
974
975 2002-10-11 Martin M. Hunt <hunt@redhat.com>
976
977 * utils.c (string_to_core_addr): After turning string into
978 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
979 which will do necessary sign-extension, etc.
980
981 2002-10-11 Daniel Jacobowitz <drow@mvista.com>
982
983 * c-exp.y (THIS): Delete token and grammar rule.
984 (yylex): Don't return THIS.
985 * cp-valprint.c (vtbl_ptr_name_old): Delete.
986 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
987 * demangle.c (cplus_markers): Update comment. Put '$'
988 first. Remove CPLUS_MARKER.
989 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
990 * jv-exp.y (THIS): Delete token and grammar rule.
991 (yylex): Don't return THIS.
992 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
993 * objc-exp.y (THIS): Delete token and grammar rule.
994 (yylex): Don't return THIS.
995 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
996 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
997 (read_member_functions): Likewise for opname.
998 (read_tilde_fields): Use is_cplus_marker.
999
1000 * defs.h (CPLUS_MARKER): Don't define.
1001 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
1002 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
1003 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
1004 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
1005 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
1006
1007 * config/i386/tm-i386v4.h: Delete file.
1008 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
1009 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
1010 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
1011 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
1012 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
1013 * config/i386/i386sco5.mt (TM_FILE): Likewise.
1014 * config/i386/i386v4.mt (TM_FILE): Likewise.
1015 * config/i386/ncr3000.mt (TM_FILE): Likewise.
1016
1017 2002-10-10 Marko Mlinar <markom@opencores.org>
1018
1019 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
1020 accidentially not commited 2002-10-09
1021 * gdbarch.h, gdbarch.c: Re-generate.
1022
1023 2002-10-09 Marko Mlinar <markom@opencores.org>
1024
1025 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
1026 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
1027 * gdbarch.h, gdbarch.c: Re-generate.
1028
1029 2002-10-08 Petr Sorfa <petrs@caldera.com>
1030
1031 Revised and re-submitted by John Wolfe <jlw@caldera.com>
1032
1033 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
1034 so we can work on more than one compilation unit at a time. This
1035 helps prepare GDB to handle inter-CU die references.
1036 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
1037 the code to be defined before struct comp_unit_head.
1038 (comp_unit_head): Added new members - offset, cu_head,
1039 begin_die, next and dwarf2_abbrevs.
1040 (dwarf2_abbrevs): Removed single static var; now member of
1041 struct comp_unit_head.
1042 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
1043 members.
1044 (psymtab_to_symtab_1): Changed to work with the new
1045 struct comp_unit_head.
1046 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
1047 constructs the dwarf2_abbrevs[] inside the cu_header.
1048 (dwarf2_empty_abbrev_table): Now expects a ptr to a
1049 dwarf2_abbrev table to clean up.
1050 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
1051 handling of dwarf2_abbrevs inside the cu_header.
1052 (read_partial_die): Now supports the call to the new
1053 dwarf2_lookup_abbrev.
1054 (read_full_die): Now supports the call to the new
1055 dwarf2_lookup_abbrev.
1056
1057 2002-10-06 Christopher Faylor <cgf@redhat.com>
1058
1059 * Makefile.in (install-gdbtk): Add missing continuation backslash to
1060 insure that shell variables, such as "transformed_name" are propagated
1061 to later shell statements in rule.
1062
1063 2002-10-06 Mark Kettenis <kettenis@gnu.org>
1064
1065 * config/i386/nm-i386sco.h: Add protection against
1066 multiple-inclusion. Include "i386/nm-i386v.h".
1067 (REGISTER_U_ADDR): Remove define.
1068 (i386_register_u_addr): Remove prototype.
1069
1070 2002-10-04 Michael Snyder <msnyder@redhat.com>
1071
1072 * m32r-stub.c (handle_exception): Make sure exception is "trap"
1073 before treating it as a single-step event.
1074
1075 2002-10-03 Adam Fedor <fedor@gnu.org>
1076
1077 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
1078 (objc_demangle): Remove assignment in if statements, Replace
1079 free with xfree.
1080 (add_msglist): Likewise.
1081 (end_msglist): Likewise.
1082 (complare_selectors): Likewise.
1083 (selectors_info): Likewise.
1084 (compare_classes): Likewise.
1085 (classes_info): Likewise.
1086 (print_object_command): Likewise.
1087 (find_objc_msgcall_submethod): Replace PTR with void *.
1088 * objc-lang.h: Remove check for __STDC__.
1089
1090 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
1091
1092 * ui-out.h (ui_out_field_fmt_int): New prototype.
1093 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
1094 of field width and alignment.
1095 * stack.c (print_frame_info_base): When printing frame level, use
1096 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
1097 PR gdb/192
1098
1099 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
1100
1101 * MAINTAINERS: Add self to Write After Approval list.
1102
1103 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
1104
1105 * infcmd.c (interrupt_target_command_wrapper): Delete.
1106 (interrupt_target_command): Make non static.
1107 (nofp_registers_info): Make static.
1108 * stack.c (return_command_wrapper): Delete.
1109 (return_command): Make non static.
1110
1111 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
1112
1113 * event-top.c (gdb_setup_readline): New function. Code moved from
1114 _initialize_event_loop().
1115 (_initialize_event_loop): Call gdb_setup_readline().
1116
1117 2002-10-02 Andrew Cagney <ac131313@redhat.com>
1118
1119 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
1120 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
1121 * gdbarch.h, gdbarch.c: Re-generate.
1122
1123 2002-10-02 Daniel Jacobowitz <drow@mvista.com>
1124
1125 Fix PR gdb/778
1126 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
1127 before recursing.
1128 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
1129 of fill_in_vptr_fieldno.
1130
1131 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
1132
1133 * inferior.h (registers_info, stepi_command, nexti_command,
1134 continue_command, interrupt_target_command): Export from infcmd.c.
1135 * frame.h (args_info, selected_frame_level_changed_hook,
1136 return_command): Export from stack.c.
1137 * v850ice.c (stepi_command, nexti_command, continue_command): use
1138 prototypes from inferior.h.
1139 * tracepoint.c (registers_info, args_info, locals_info): Use
1140 prototypes from frame.h and inferior.h.
1141 * Makefile.in (mi-main.o): Add dependency on frame.h.
1142
1143 2002-10-02 Andrew Cagney <ac131313@redhat.com>
1144
1145 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
1146 value in register 3 adjusted by ppc_gp0_regnum.
1147
1148 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
1149
1150 2002-10-02 Marko Mlinar <markom@opencores.org>
1151
1152 * MAINTAINERS: Add myself to the Write After Approval list.
1153
1154 2002-10-01 Alexandre Oliva <aoliva@redhat.com>
1155
1156 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
1157 of the section for the N64 ABI, fixed.
1158
1159 * config/mips/tm-irix6.h: Include solib.h.
1160
1161 2002-10-01 Elena Zannoni <ezannoni@redhat.com>
1162
1163 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
1164 GNU operators.
1165
1166 2002-10-01 Andrew Cagney <ac131313@redhat.com>
1167
1168 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
1169 and that "mi0" syntax has been removed.
1170
1171 2002-09-30 David Carlton <carlton@math.stanford.edu>
1172
1173 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
1174 * ppc-sysv-tdep.c: #include "gdb_string.h".
1175 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
1176 pacify GCC.
1177
1178 2002-10-01 Andrew Cagney <ac131313@redhat.com>
1179
1180 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
1181 "vrsave"'s register number.
1182
1183 2002-09-30 Andrew Cagney <ac131313@redhat.com>
1184
1185 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
1186 use frame_unwind_signed_register to obtain the PC.
1187 (mips_frame_chain): Handle a generic dummy frame.
1188 (mips_init_extra_frame_info): When a generic dummy frame, don't
1189 re-compute the frame base.
1190 (mips_pop_frame): Handle generic dummy frames.
1191 (mips_gdbarch_init): When generic dummy frames, set
1192 use_generic_dummy_frames, push_dummy_frame to
1193 generic_push_dummy_frame, pc_in_call_dummy to
1194 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
1195 generic_save_dummy_frame_tos.
1196
1197 2002-09-30 Andrew Cagney <ac131313@redhat.com>
1198
1199 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
1200 against TOP when TOP was explictly set.
1201 (generic_push_dummy_frame): Set TOP to zero.
1202
1203 2002-09-30 Elena Zannoni <ezannoni@redhat.com>
1204
1205 * event-loop.c (start_event_loop): Rename variable 'result' to
1206 'gdb_result', to avoid conflicts with upcoming intepreters changes.
1207
1208 2002-09-30 Keith Seitz <keiths@redhat.com>
1209
1210 * gdb-events.sh (selected_thread_changed): New event.
1211 * gdb-events.c: Regenerated.
1212 * gdb-events.h: Regenerated.
1213
1214 2002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
1215
1216 * MAINTAINERS: Add self to Write After Approval list.
1217
1218 2002-09-30 Fernando Nasser <fnasser@redhat.com>
1219
1220 * disasm.c: New file.
1221 * disasm.h: New file.
1222 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
1223 (compare_lines): Ditto.
1224 (dump_insns): Ditto.
1225 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
1226 argument.
1227 (do_assembly_only): Ditto.
1228 (do_disassembly): Renamed to gdb_disassembly and moved to
1229 disasm.c. Sdded uiout argument.
1230 * Makefile.in: Add new files. Reorder SFILES list. Update
1231 dependencies. Include libgdb.a later in the insight executable.
1232
1233 2002-09-29 Andrew Cagney <ac131313@redhat.com>
1234
1235 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
1236 bfd/elf64-alpha-fbsd.c.
1237
1238 2002-09-29 Andrew Cagney <ac131313@redhat.com>
1239
1240 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
1241 i386gnu-tdep.c.
1242
1243 2002-09-29 Andrew Cagney <ac131313@redhat.com>
1244
1245 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
1246 __FUNCTION__.
1247 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
1248 function name.
1249 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
1250 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
1251 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
1252 (S_msg_sig_post_reply): Ditto.
1253
1254 2002-09-28 Corinna Vinschen <vinschen@redhat.com>
1255
1256 * sh-tdep.c (sh_use_struct_convention): Use definition according
1257 to ABI.
1258 (sh_push_arguments): Store in register with correct endianess.
1259 (sh_default_store_return_value): Ditto.
1260 (sh_gdbarch_init): Set sizeof long double to 8.
1261
1262 2002-09-27 Mark Kettenis <kettenis@gnu.org>
1263
1264 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
1265 Fix some whitespace problems.
1266
1267 2002-09-27 David Carlton <carlton@math.stanford.edu>
1268
1269 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
1270 (mcore-tdep.o): Ditto.
1271 (ns32k-tdep.o): Ditto.
1272 (ns32knbsd-tdep.o): Ditto.
1273 (sh3-rom.o): Ditto.
1274 (vax-tdep.o): Ditto.
1275 * cris-tdep.c: #include "gdb_string.h"
1276 * mcore-tdep.c: Ditto.
1277 * ns32k-tdep.c: Ditto.
1278 * ns32knbsd-tdep.c: Ditto.
1279 * sh3-rom.c: Ditto.
1280 * vax-tdep.c: Ditto.
1281
1282 2002-09-27 David Carlton <carlton@math.stanford.edu>
1283
1284 * config/djgpp/fnchange.lst: Add entries for
1285 gdb/testsuite/gdb.c++/m-static files.
1286
1287 2002-09-27 Jim Wilson <wilson@redhat.com>
1288
1289 * MAINTAINERS: Add myself to the Write After Approval list.
1290
1291 2002-09-26 Martin M. Hunt <hunt@redhat.com>
1292
1293 * mips-tdep.c (find_proc_desc): Initialize startaddr.
1294
1295
1296 2002-09-26 Andrew Cagney <ac131313@redhat.com>
1297
1298 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
1299 frame.
1300
1301 2002-09-26 Andrew Cagney <ac131313@redhat.com>
1302
1303 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
1304 (rs6000_struct_return_address): Delete variable.
1305 (rs6000_store_struct_return): Update.
1306 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
1307 deprecated_extract_struct_value_address.
1308 (rs6000_frame_align): New function.
1309 (rs6000_gdbarch_init): Set frame_align.
1310
1311 2002-09-26 Andrew Cagney <ac131313@redhat.com>
1312
1313 From Grace Sainsbury <graces@redhat.com>:
1314 * Makefile.in (gdbtk-main.o): New target.
1315 (gdb.o): New target.
1316 (main_h): Define.
1317 (main.o): Update dependencies.
1318 (gdb$(EXEEXT)): Add gdb.o.
1319 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
1320 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
1321 (SUBDIR_GDBTK_CLEAN): Set.
1322 (install-gdbtk): Install the insight binary.
1323 (uninstall-gdbtk): New target.
1324 (all-gdbtk, clean-gdbtk): New rule.
1325 * top.c (use_windows): Default to zero.
1326 * main.c: Include "main.h".
1327 (main): Delete.
1328 (struct captured_main_args): Delete.
1329 (gdb_main): New function.
1330 * main.h: New file.
1331 * gdb.c: New File.
1332
1333 2002-09-25 Andrew Cagney <cagney@redhat.com>
1334
1335 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
1336 (frame_map_regnum_to_name): New function.
1337 (frame_map_name_to_regnum): New function.
1338 * frame.h (frame_map_name_to_regnum): Declare.
1339 (frame_map_regnum_to_name): Declare.
1340 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
1341 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
1342 * parse.c: Do not include "builtin-regs.h".
1343 (target_map_name_to_register): Delete function.
1344 (write_dollar_variable): Use frame_map_name_to_regnum.
1345 * parser-defs.h (target_map_name_to_register): Delete declaration.
1346 * expprint.c: Include "frame.h".
1347 (print_subexp): Use frame_map_regnum_to_name.
1348 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
1349 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
1350
1351 2002-09-25 Andrew Cagney <ac131313@redhat.com>
1352
1353 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
1354 wasn't saved, and the next innermost frame is a dummy, return the
1355 dummy frame's link register.
1356
1357 2002-09-24 Jim Blandy <jimb@redhat.com>
1358
1359 Fix from Paul Breed:
1360 * main.c (captured_main): Add a `break' after the case for 'b'.
1361
1362 2002-09-24 Keith Seitz <keiths@redhat.com>
1363
1364 * varobj.c (c_type_of_child): Use get_target_type instead
1365 of TYPE_TARGET_TYPE.
1366
1367 2002-09-22 Fernando Nasser <fnasser@redhat.com>
1368
1369 * source.c (get_current_or_default_source_symtab_and_line): Remove
1370 function.
1371 (set_default_source_symtab_and_line): New function. Attempts to
1372 determine a source file to list lines from if one is not currently
1373 defined.
1374 (get_current_source_symtab_and_line): Initialize sal.pc and
1375 sal.end fields.
1376 (set_current_source_symtab_and_line): Mark argument as const.
1377 * source.h: Update declarations and comments.
1378 * linespec.c (decode_line_1): Replace call to removed routine above.
1379 * stack.c (print_frame_info_base): Ditto.
1380 * cli/cli-cmds.c (edit_command): Ditto.
1381 (list_command): Ditto.
1382
1383 2002-09-22 Fernando Nasser <fnasser@redhat.com>
1384
1385 * source.c (get_current_or_default_source_symtab_and_line): Initialize
1386 sal.pc and sal.end fields.
1387 (get_current_or_default_source_symtab_and_line): Ditto.
1388 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
1389 so we do not cause a new source symtab to be searched for (reverting an
1390 unintentional change from the 2002-09-20 patch).
1391 * scm-lang.c (scm_unpac): Ditto.
1392
1393 2002-09-21 Andrew Cagney <cagney@redhat.com>
1394
1395 * complaints.c (symfile_explanations): Remove new-line from
1396 ``isolated_message''.
1397 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
1398 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
1399
1400 2002-09-20 Nick Clifton <nickc@redhat.com>
1401
1402 * NEWS: Announce that V850EA ISA is no longer supported.
1403 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
1404
1405 2002-09-20 David Carlton <carlton@math.stanford.edu>
1406
1407 * Makefile.in (c-lang.o): Correct dependencies.
1408 (utils.o): Gather dependencies.
1409 (charset.o): Move.
1410 * c-lang.c: #include "gdb_string.h"
1411
1412 2002-09-20 Fernando Nasser <fnasser@redhat.com>
1413
1414 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
1415 * cli/cli-cmds.c (list_command): New function. Implements the new
1416 cli edit command.
1417 (_init_cli_cmds): Add new command definition.
1418 * gdb.1: Document edit command.
1419 * doc/gdb.texinfo: Document edit command.
1420
1421 2002-09-20 Fernando Nasser <fnasser@redhat.com>
1422
1423 * source.c: Make global variables current_source_symtab and
1424 current_source_line static.
1425 (list_command): Moved to cli/cli-cmds.c.
1426 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
1427 (get_first_line_listed): New accessor function.
1428 (get_lines_to_list): New accessor function.
1429 (get_current_source_symtab_and_line): New function. Retrieves the
1430 position in the source code that we consider current.
1431 (get_current_or_default_source_symtab_and_line): New function.
1432 Like the above but attempts to determine a default position if one
1433 is not currently defined.
1434 (set_current_source_symtab_and_line): New function. Sets the source
1435 code position considered current and returns the previously set one.
1436 (clear_current_source_symtab_and_line): Reset stored information about
1437 a current source line.
1438 (_initialize_source): Remove registration for the "list" command and
1439 its alias.
1440 * source.h: Add declarations for the new functions above.
1441 * symtab.h: Remove declarations for the global variables mentioned
1442 above.
1443 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
1444 obtain current source line.
1445 * linespec.c (decode_line_1): Ditto.
1446 * macroscope.c (default_macro_scope): Ditto.
1447 * scm-lang.c (scm_unpac): Ditto.
1448 * stack.c (print_frame_info_base): Ditto.
1449 * symfile.c (clear_symtab_users): Ditto.
1450 * symtab.c (decode_line_spec): Ditto.
1451 * cli/cli-cmds.c (list_command): Moved here from source.c.
1452 (ambiguous_line_spec): Moved here from source.c.
1453 (_init_cli_cmds): Add definition for "list" and its alias.
1454 * Makefile.in: Update dependencies.
1455
1456 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
1457
1458 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
1459 with what gcc thinks is correct.
1460
1461 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
1462
1463 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
1464 multiple register push instruction.
1465
1466 2002-09-19 Jim Blandy <jimb@redhat.com>
1467
1468 Add support for distinct host and target character sets.
1469 * charset.c, charset.h: New files.
1470 * c-exp.y: #include "charset.h".
1471 (yylex): Convert character and string literals to the target
1472 character set, before returning them as the semantic value of the
1473 token.
1474 * c-lang.c: #include "charset.h".
1475 (c_emit_char): Use charset-specific methods to recognize
1476 characters with backslash escape forms, to decide which characters
1477 to print literally and which to print using numeric escape
1478 sequences, and to convert target characters to host characters
1479 before printing.
1480 * utils.c: #include "charset.h".
1481 (no_control_char_error): New function.
1482 (parse_escape): Use charset-specific methods to recognize
1483 backslash escapes, parse `control character' notation, and convert
1484 characters from the host character set to the target character set.
1485 * configure.in: Set the default host character set.
1486 Check where to find iconv, and what its argument types might be.
1487 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
1488 * Makefile.in (SFILES): List charset.c.
1489 (COMMON_OBS): List charset.o.
1490 (charset.o): New rule.
1491 (charset_h): New header dependency variable.
1492 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
1493 (LIBICONV): New variable, set by configure.
1494 (CLIBS): Include $(LIBICONV) here.
1495 * aclocal.m4, config.in, configure: Regenerated.
1496
1497 2002-09-19 Joel Brobecker <brobecker@gnat.com>
1498
1499 * ada-exp.y: Add missing semicolons to end rules. Fixes a
1500 bison 1.35 warning.
1501
1502 2002-09-19 Richard Earnshaw <rearnsha@arm.com>
1503
1504 * gdb_mbuild.sh: New file.
1505
1506 2002-09-19 Andrew Cagney <ac131313@redhat.com>
1507
1508 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
1509
1510 2002-09-18 Andrew Cagney <ac131313@redhat.com>
1511
1512 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
1513 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
1514 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
1515 valops.c, value.h: Revert previous change.
1516
1517 2002-09-18 Michael Snyder <msnyder@redhat.com>
1518
1519 Preliminary support for Objective-C:
1520 * defs.h (language_objc): New enum value.
1521 (puts_filtered_tabular): Declaration only, exported from utils.c.
1522 (skip_quoted): Delete, declared in completer.h.
1523 * c-exp.y: Include completer.h.
1524 * p-exp.y: Ditto.
1525 * jv-exp.y: Ditto.
1526 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
1527 New operator enum values.
1528 * language.h (CAST_IS_CONVERSION): Test for language_objc.
1529 * language.c (binop_result_type): Handle language_objc case.
1530 (integral_type, character_type, string_type, boolean_type,
1531 structured_type, binop_type_check): Ditto.
1532 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
1533 (struct objc_specific): Add to general_symbol_info.
1534 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
1535 (SYMBOL_DEMANGLED_NAME): Handle objc case.
1536 * parser-defs.h (struct objc_class_str): New struct type.
1537 (start_msglist, end_msglist, add_msglist): Declaration only,
1538 exported from objc-lang.c.
1539 * value.h (value_of_local, value_nsstring,
1540 call_function_by_hand_expecting_type): Exported from valops.c.
1541 * valops.c (find_function_addr): Export.
1542 (call_function_by_hand_expecting_type): New function.
1543 (value_of_local): New function.
1544 * symfile.c (init_filename_language_table): Add ".m" extension
1545 for Objective-C.
1546 * utils.c (puts_filtered_tabular): New function.
1547 (fprintf_symbol_filtered): Add objc demangling support (disabled).
1548 (set/show demangle): Extend help-string to refer to ObjC.
1549 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
1550 * stabsread.c (symbol_reference_defined): Objective-C symbols
1551 may contain colons: make allowances when scanning stabs strings
1552 for colons.
1553 (objc_find_colon): New function.
1554 * printcmd.c (address_info): If language == objc then print
1555 "self" instead of "this".
1556 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
1557 OP_NSSTRING, and OP_SELF.
1558 (prefixify_subexp): Ditto.
1559 * source.c (print_source_lines): Mention objc in comment.
1560 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
1561 method names.
1562
1563 2002-09-18 Andrew Cagney <ac131313@redhat.com>
1564
1565 * complaints.h: Update copyright.
1566 (struct complaints): Declare.
1567 (struct complaint): Make `message' constant.
1568 (internal_complaint): Declare.
1569 (complaint): Declare.
1570 (complaint_root): Delete declaration.
1571 (symfile_complaints): Delete declaration.
1572 (struct complaints): Add opaque declaration.
1573 (clear_complaints): Add a complaints parameter.
1574 * complaints.c: Update copyright.
1575 (enum complaint_series): Define.
1576 (complaint_root): Delete.
1577 (struct complaints): Define.
1578 (complaint_sentinel, symfile_complaint_book): New variables.
1579 (symfile_explanations, symfile_complaints): New variables.
1580 New variables.
1581 (get_complaints): New function.
1582 (vcomplaint): New function.
1583 (complaint): New function.
1584 (internal_complaint): New function.
1585 (complain): Call vcomplain with symfile_complaint.
1586 (clear_complaints): Rewrite.
1587 (_initialize_complaints): Use add_setshow_command.
1588 * Makefile.in (complaints.o): Update dependencies.
1589 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
1590 to call to clear_complaints.
1591 (new_symfile_objfile, reread_symbols): Ditto.
1592 (oldsyms_complaint): Delete.
1593 (empty_symtab_complaint, unknown_option_complaint): Delete.
1594 (free_named_symtabs): Use complaint instead of complain.
1595
1596 2002-09-18 Michael Snyder <msnyder@redhat.com>
1597
1598 Contributed by Apple Computer, Inc. Merged with current sources
1599 by Adam Fedor <fedor@doc.com> [cagney].
1600
1601 * objc-lang.c: First clean-up round: comments, indentation.
1602 * objc-lang.h: Ditto.
1603 * objc-lang.y: Ditto.
1604
1605 2002-09-18 Andrew Cagney <ac131313@redhat.com>
1606
1607 * maint.c (maintenance_internal_error): Print the parameter as the
1608 error message.
1609 (maintenance_internal_warning): New function.
1610 (_initialize_maint_cmds): Add command `maint internal-warning'.
1611
1612 * defs.h (internal_warning, internal_vwarning): Declare.
1613 * utils.c (struct internal_problem): Define.
1614 (internal_vproblem): New function.
1615 (internal_warning): New function.
1616 (internal_vwarning): New function.
1617 (internal_warning_problem, internal_error_problem): New variables.
1618 (internal_verror): Just call internal_vproblem.
1619
1620 2002-09-18 Michael Snyder <msnyder@redhat.com>
1621
1622 * objc-lang.c: New file, support for Objective-C.
1623 Preliminary check-in, not yet integrated into gdb.
1624 * objc-lang.h: New file.
1625 * objc-exp.y: New file.
1626
1627 2002-09-18 Andrew Cagney <ac131313@redhat.com>
1628
1629 * infrun.c (signal_stop_update): Convert definition to ISO C.
1630 (signal_print_update): Ditto.
1631 (signal_pass_update): Ditto.
1632 * inflow.c (terminal_save_ours): Ditto.
1633
1634 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
1635 comments.
1636
1637 * config/djgpp/fnchange.lst: Handle name clashes between
1638 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
1639 bfd/coff-tic80.c.
1640
1641 * i386-linux-tdep.h: Fix tipo.
1642
1643 2002-09-18 Adam Fedor <fedor@gnu.org>
1644
1645 * MAINTAINERS: Add myself to the Write After Approval list.
1646
1647 2002-09-18 Jim Blandy <jimb@redhat.com>
1648
1649 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
1650 texthigh and textlow to reader-specific structs caused
1651 objfile_relocate to miss them. This is fixable, but the work that
1652 the change was supposed to prepare GDB for never got done anyway.
1653
1654 2002-09-18 David Carlton <carlton@math.stanford.edu>
1655
1656 * MAINTAINERS: Alphabetize Write After Approval list.
1657
1658 2002-09-18 Daniel Jacobowitz <drow@mvista.com>
1659
1660 Fix PR gdb/709
1661 * values.c (value_static_field): Call read_var_value.
1662
1663 2002-09-18 Andrew Cagney <ac131313@redhat.com>
1664
1665 * valops.c (hand_function_call): Align the initial stack pointer
1666 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
1667 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
1668 return value.
1669 * mips-tdep.c (mips_frame_align): New function.
1670 (mips_gdbarch_init): Set frame_align.
1671 * gdbarch.sh (FRAME_ALIGN): New method.
1672 * gdbarch.h, gdbarch.c: Re-generate.
1673
1674 2002-09-18 Michal Ludvig <mludvig@suse.cz>
1675
1676 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
1677 registers.
1678
1679 2002-09-17 Andrew Cagney <ac131313@redhat.com>
1680
1681 * NEWS: Mention that MIPS $fp behavior changed.
1682 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
1683 reference to FP_REGNUM.
1684 (mipsnbsd_cannot_store_register): Ditto.
1685 * mips-linux-nat.c: Update copyright.
1686 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
1687 (mips_linux_cannot_store_register): Ditto.
1688 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
1689 * config/mips/tm-mips.h: Update copyright.
1690 (FP_REGNUM): Delete macro.
1691 (MIPS_REGISTER_NAMES): Replace "fp" with "".
1692 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
1693 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
1694 (mips_r3041_reg_names, mips_r3051_reg_names)
1695 (mips_r3081_reg_names): Replace "fp" with "".
1696 Fix PR gdb/480.
1697
1698 2002-09-17 Theodore A. Roth <troth@verinet.com>
1699
1700 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
1701 generic_read_register_dummy() (PR gdb/703).
1702 (avr_push_return_address): #if 0 out unused vars.
1703 (avr_gdbarch_init): Enable use of avr_push_return_address().
1704
1705 2002-09-17 Michael Snyder <msnyder@redhat.com>
1706
1707 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
1708 RTE will take care of it.
1709
1710 2002-09-17 Andrew Cagney <ac131313@redhat.com>
1711
1712 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
1713 invalid, return SP_REGNUM.
1714
1715 2002-09-17 Michael Snyder <msnyder@redhat.com>
1716
1717 * mips-tdep.c (mips_pop_frame): Read saved values of floating
1718 point registers without sign extension.
1719
1720 2002-09-17 Andrew Cagney <cagney@redhat.com>
1721
1722 * blockframe.c (deprecated_read_register_dummy): Rename
1723 generic_read_register_dummy.
1724 * frame.c (frame_unwind_signed_register): New function.
1725 (frame_unwind_unsigned_register): New function.
1726 * frame.h (frame_unwind_signed_register): Declare.
1727 (frame_unwind_unsigned_register): Declare.
1728 (deprecated_read_register_dummy): Rename
1729 generic_read_register_dummy.
1730
1731 * h8300-tdep.c (h8300_frame_chain): Update.
1732 (h8300_frame_saved_pc): Update.
1733 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
1734 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
1735 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
1736 (s390_frame_chain): Update.
1737 * v850-tdep.c (v850_find_callers_reg): Update.
1738 (v850_frame_saved_pc): Update.
1739 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
1740 (m32r_find_callers_reg): Update.
1741 (m32r_frame_saved_pc): Update.
1742 * sh-tdep.c (sh_find_callers_reg): Update.
1743 (sh64_get_saved_pr): Update.
1744 (sh_init_extra_frame_info): Update.
1745 (sh_init_extra_frame_info): Update.
1746 (sh64_init_extra_frame_info): Update.
1747 (sh64_init_extra_frame_info): Update.
1748 * mcore-tdep.c (mcore_find_callers_reg): Update.
1749 (mcore_frame_saved_pc): Update.
1750 (mcore_init_extra_frame_info): Update.
1751 * i386-tdep.c (i386_frame_saved_pc): Update.
1752 * ia64-tdep.c (ia64_frame_saved_pc): Update.
1753 (ia64_init_extra_frame_info): Update.
1754 (ia64_init_extra_frame_info): Update.
1755 * d10v-tdep.c (d10v_frame_saved_pc): Update.
1756 * cris-tdep.c (cris_init_extra_frame_info): Update.
1757 * avr-tdep.c (avr_frame_chain): Update.
1758 (avr_init_extra_frame_info): Update.
1759 (avr_frame_saved_pc): Update.
1760 * arm-tdep.c (arm_find_callers_reg): Update.
1761 (arm_init_extra_frame_info): Update.
1762 (arm_frame_saved_pc): Update.
1763
1764 2002-09-17 Tom Tromey <tromey@redhat.com>
1765
1766 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
1767 is "'".
1768
1769 2002-09-17 Corinna Vinschen <vinschen@redhat.com>
1770
1771 * MAINTAINERS: Remove "non multi-arched" text from h8300.
1772 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
1773 NEXT_PROLOGUE_INSN.
1774 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
1775 NEXT_PROLOGUE_INSN.
1776
1777 2002-09-16 Joel Brobecker <brobecker@gnat.com>
1778
1779 * osfsolib.c: Remove file, replaced by solib-osf.c.
1780 * Makefile.in: Remove compilation rules for osfsolib.c.
1781
1782 2002-09-16 David Carlton <carlton@math.stanford.edu>
1783
1784 * cp-valprint.c (cp_print_class_method): Correct args to
1785 check_stub_method_group.
1786
1787 2002-09-16 Corinna Vinschen <vinschen@redhat.com>
1788
1789 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
1790 `set architecture'. Unify naming convention of functions.
1791 (h8300_skip_prologue): Improve prologue analysis.
1792 (h8300_push_arguments): Rewritten to more closely match GCC's
1793 bizarre argument-passing behavior, along with the comment describing
1794 said behavior.
1795 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
1796 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
1797 sim, remote-e7000.c, remote-hms.c and remote.c
1798
1799 2002-09-15 Mark Kettenis <kettenis@gnu.org>
1800
1801 * i386-tdep.c (gdb_print_insn_i386): Removed.
1802 (i386_print_insn): New function.
1803 (i386_gdbarch_init): Set print_insn to i386_print_insns.
1804 (_initialize_i386_tdep): Don't initialize tm_print_insn and
1805 tm_print_insn_info.
1806
1807 2002-09-14 Mark Kettenis <kettenis@gnu.org>
1808
1809 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
1810 zero.
1811
1812 2002-09-14 Corinna Vinschen <vinschen@redhat.com>
1813
1814 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
1815 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
1816 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
1817
1818 2002-09-13 Christopher Faylor <cgf@redhat.com>
1819
1820 * win32-nat.c (child_create_inferior): Honor 'tty' command.
1821
1822 2002-09-13 Daniel Jacobowitz <drow@mvista.com>
1823
1824 * gdbtypes.c (check_stub_method): Make static.
1825 (check_stub_method_group): New function.
1826 * gdbtypes.h: Update prototypes.
1827 * cp-support.c: New file.
1828 * cp-support.h: New file.
1829
1830 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
1831 (update_method_name_from_physname): New function.
1832 (read_member_functions): Correct method names for operators
1833 and v3 constructors/destructors. Separate v2 constructors and
1834 destructors.
1835 * Makefile.in (stabsread.o): Update dependencies.
1836 (SFILES): Add cp-support.c.
1837 (COMMON_OBS): Add cp-support.o.
1838 (cp_support_h, cp-support.o): Add.
1839
1840 * cp-valprint.c (cp_print_class_method): Call
1841 check_stub_method_group instead of check_stub_method. Remove
1842 extraneous QUITs.
1843 * p-valprint.c (pascal_object_print_class_method): Likewise.
1844 * valops.c (search_struct_method): Likewise.
1845 (find_method_list, value_struct_elt_for_reference): Likewise.
1846
1847 2002-09-13 Andrew Cagney <cagney@redhat.com>
1848
1849 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
1850 * gdbarch.h, gdbarch.c: Regenerate.
1851
1852 2002-09-13 Andrew Cagney <ac131313@redhat.com>
1853
1854 * frame.c (find_saved_register): Delete function.
1855 * frame.h (find_saved_register): Delete declaration.
1856 Fix PR gdb/631.
1857
1858 Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
1859
1860 * mips-tdep.c (read_next_frame_reg): Re-hack using
1861 frame_register_unwind.
1862
1863 Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
1864
1865 * mips-tdep.c (mips_get_saved_register): Re-hack using
1866 frame_register_unwind.
1867
1868 2002-09-12 Joel Brobecker <brobecker@gnat.com>
1869
1870 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
1871 vector. Will be useful for Interix.
1872 * gdbarch.h, gdbarch.c: Regenerate.
1873
1874 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
1875 name of the malloc function by NAME_OF_MALLOC.
1876
1877 2002-09-12 Joel Brobecker <brobecker@gnat.com>
1878
1879 * value.h (find_function_in_inferior): Add const keyword to
1880 one of the parameters. Allows us to invoke this function with
1881 a const char *.
1882 * valops.c (find_function_in_inferior): Likewise.
1883
1884 2002-09-12 Joel Brobecker <brobecker@gnat.com>
1885
1886 * exec.c (xfer_memory): Fix compilation warning with old versions
1887 of GCC.
1888 * tracepoint.c (trace_find_tracepoint_command): Likewise.
1889
1890 2002-09-12 David Carlton <carlton@math.stanford.edu>
1891
1892 * symtab.h: Run through gdb_indent.h.
1893 Add 2002 to Copyright year list.
1894
1895 2002-09-12 Alan Modra <amodra@bigpond.net.au>
1896
1897 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
1898 mach constants.
1899 * MAINTAINERS: Add myself to write after approval list.
1900
1901 2002-09-11 J. Brobecker <brobecker@gnat.com>
1902
1903 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
1904
1905 2002-09-11 J. Brobecker <brobecker@gnat.com>
1906
1907 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
1908 Interix.
1909
1910 2002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
1911
1912 * procfs.c (do_detach): Clear current signal, not just fault.
1913 Corrects problem with breakpoint trap signal leaking to detached
1914 process on Tru64.
1915
1916 2002-09-10 Michael Snyder <msnyder@redhat.com>
1917
1918 * buildsym.c (finish_block): Protect against null pointer.
1919
1920 2002-09-10 Andrew Cagney <cagney@redhat.com>
1921
1922 * infcmd.c (default_print_registers_info): Send all output to
1923 ``file'' instead of ``gdb_stdout''.
1924
1925 2002-09-10 Michael Snyder <msnyder@redhat.com>
1926
1927 * mips-tdep.c (mips_extract_struct_value_address): Make val a
1928 LONGEST, and use signed register read (addresses are sign-
1929 extended for mips).
1930
1931 2002-09-10 Stephane Carrez <stcarrez@nerim.fr>
1932
1933 * event-loop.c (gdb_do_one_event): Make public.
1934 * event-loop.h (gdb_do_one_event): Declare.
1935
1936 2002-09-10 Jeff Law <law@redhat.com>
1937
1938 * infttrace.c (child_resume): Simplify and rework to avoid
1939 TT_PROC_CONTINUE.
1940
1941 2002-09-09 Fred Fish <fnf@intrinsity.com>
1942
1943 * printcmd.c (print_scalar_formatted): "len" is the number of
1944 target bytes, NOT the number of target bits.
1945
1946 2002-09-09 Elena Zannoni <ezannoni@redhat.com>
1947
1948 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
1949 * top.c (init_main): Set rl_terminal_name.
1950
1951 2002-09-08 Aidan Skinner <aidan@velvet.net>
1952
1953 * ada-lang.c (ada_array_bound, ada_type_match,
1954 _initialize_ada_language): Fix K&R definitions.
1955 * ada-tasks.c (get_current_task): Fix K&R definitions.
1956 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
1957
1958 2002-09-07 Christopher Faylor <cgf@redhat.com>
1959
1960 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
1961 Add XP.
1962
1963 2002-09-06 Mark Kettenis <kettenis@gnu.org>
1964
1965 * i386-tdep.c (i386_register_virtual_type,
1966 i386_register_convertible, i386_register_convert_to_virtual,
1967 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
1968 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
1969 (i386_gdbarch_init): Fix comment. Add comments on calls that set
1970 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
1971 Don't set push_arguments twice.
1972
1973 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
1974 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
1975 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
1976 sigtramp_end to NULL.
1977 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
1978 defines.
1979 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
1980
1981 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
1982 whitespace.
1983
1984 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
1985 * gdbarch.h, gdbarch.c: Re-generate.
1986 * blockframe.c (find_pc_sect_partial_function): Convert to use
1987 SIGTRAMP_START_P predicate.
1988
1989 2002-09-05 Michael Snyder <msnyder@redhat.com>
1990
1991 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
1992 generic_dummy_frame method and old method. Also distinguish
1993 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
1994 (arm_extract_return_value): Use new regcache method.
1995
1996 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
1997 adjustment that doesn't conform to the ABI.
1998 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
1999 saved regcache, not from current regcache.
2000
2001 2002-09-05 Andrew Cagney <ac131313@redhat.com>
2002
2003 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
2004 * README: Update.
2005
2006 2002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
2007
2008 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
2009 if arm_apcs_32 is false.
2010
2011 2002-09-04 Andrew Cagney <ac131313@redhat.com>
2012
2013 GDB 5.3 branch created.
2014
2015 2002-09-03 Theodore A. Roth <troth@verinet.com>
2016
2017 * gdb/avr-tdep.c (avr_gdbarch_init): Use
2018 generic_unwind_get_saved_register.
2019
2020 2002-09-03 David Carlton <carlton@math.stanford.edu>
2021
2022 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
2023 argument (PR gdb/653). Update call to smash_to_method_type.
2024 (read_structure_scope): Update call to dwarf2_add_member_fn.
2025
2026 2002-09-03 Michal Ludvig <mludvig@suse.cz>
2027
2028 * x86-64-linux-tdep.c: Include gdb_string.h
2029 * x86-64-linux-nat.c: Ditto.
2030
2031 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
2032
2033 * ada-exp.y (yyname, yyrule): Remap global variables that appear
2034 when YYDEBUG is set to 1.
2035 * c-exp.y: Likewise.
2036 * f-exp.y: Likewise.
2037 * jv-exp.y: Likewise.
2038 * m2-exp.y: Likewise.
2039 * p-exp.y: Likewise.
2040
2041 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
2042
2043 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
2044 dependency list.
2045 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
2046 solib_svr4_fetch_link_map_offsets to
2047 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
2048 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
2049 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
2050 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
2051 solib-svr4.o, and solib-legacy.o.
2052 * config/i386/tm-nbsd.h: Include solib.h.
2053
2054 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
2055
2056 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
2057 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
2058 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
2059 comment noting that this needs its own target configuration.
2060 * config/i386/nbsd.mt: New file.
2061 * config/i386/nbsdaout.mt: Remove.
2062 * config/i386/nbsdelf.mt: Ditto.
2063 * config/i386/tm-nbsdaout.h: Ditto.
2064
2065 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
2066
2067 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
2068 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
2069 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
2070 tdep->sigtramp_end.
2071 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
2072 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
2073 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
2074
2075 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
2076
2077 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
2078 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
2079 * i386-tdep.h (i386bsd_init_abi): New prototype.
2080 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
2081 function declaration.
2082 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
2083 for NetBSD-a.out or NetBSD-ELF.
2084 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
2085 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
2086 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
2087 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
2088 and nbsd-tdep.h.
2089 (i386nbsd_pc_in_sigtramp): New function.
2090 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
2091 i386nbsd_pc_in_sigtramp.
2092 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
2093 and i386nbsdelf_init_abi OS ABI handlers.
2094 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
2095 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
2096
2097 2002-09-02 Mark Kettenis <kettenis@gnu.org>
2098
2099 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
2100 registers if the target really has them.
2101
2102 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
2103
2104 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
2105 than nbsd-tdep.h.
2106
2107 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
2108
2109 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
2110 list.
2111 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
2112 (alphanbsd_skip_sigtramp_frame): New functions.
2113 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
2114 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
2115 to alphanbsd_sigcontext_addr.
2116
2117 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
2118
2119 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
2120 list.
2121 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
2122 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
2123 nbsd_pc_in_sigtramp.
2124 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
2125 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
2126 * nbsd-tdep.c: Include gdb_string.h.
2127 (nbsd_pc_in_sigtramp): New function.
2128 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
2129 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
2130 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
2131 ppcnbsd_pc_in_sigtramp.
2132 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
2133 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
2134 shnbsd_pc_in_sigtramp.
2135 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
2136 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
2137 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
2138
2139 2002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
2140
2141 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
2142 watchpoints to NULL.
2143 (insert_breakpoints): set val field of watchpoints if NULL.
2144
2145
2146 2002-08-29 Jim Blandy <jimb@redhat.com>
2147
2148 * symtab.c (lookup_symbol_aux): In the cases where we find a
2149 minimal symbol of an appropriate name and use its address to
2150 select a symtab to read and search, use `name' (as passed to us)
2151 as the demangled name when searching the symtab's global and
2152 static blocks, not the minsym's name.
2153
2154 2002-08-29 Keith Seitz <keiths@redhat.com>
2155
2156 * stack.c (print_frame_info_base): Always set current_source_symtab
2157 and current_source_line.
2158
2159 2002-08-29 Donn Terry <donnte@microsoft.com>
2160
2161 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
2162
2163 2002-08-28 Keith Seitz <keiths@redhat.com>
2164
2165 * stack.c (select_frame): Add FIXME concerning selected-frame
2166 events.
2167 (select_frame_command): Send selected-frame-level-changed
2168 event notification, but only if the level actually changed.
2169 (up_silently_base): Add selected-frame-level-changed event
2170 notification.
2171 (down_silently_base): Likewise.
2172
2173 2002-08-28 Andrew Cagney <ac131313@redhat.com>
2174
2175 * Makefile.in: Update dependencies for all gdb/*.c files.
2176
2177 2002-08-27 Tom Tromey <tromey@redhat.com>
2178
2179 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
2180 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
2181 Update dependencies.
2182 * i387-tdep.c: Include gdb_string.h.
2183 * osabi.c: Likewise.
2184 * i386-linux-nat.c: Likewise.
2185 * lin-lwp.c: Likewise.
2186 * ax-gdb.c: Likewise.
2187 * signals/signals.c: Likewise.
2188 * jv-valprint.c: Likewise.
2189 * p-lang.c: Likewise.
2190 * c-valprint.c: Likewise.
2191 * cp-abi.c: Likewise.
2192
2193 2002-08-27 Elena Zannoni <ezannoni@redhat.com>
2194
2195 * cli/cli-script.h (copy_command_lines): Export.
2196 * breakpoint.c: Include cli/cli-script.h.
2197 * Makefile.in (breakpoint.o): Update dependencies.
2198
2199 2002-08-26 Michael Snyder <msnyder@redhat.com>
2200
2201 * breakpoint.c (insert_breakpoints): Protect all references
2202 to 'process_warning'. Shorten long lines.
2203
2204 2002-08-26 Joel Brobecker <brobecker@gnat.com>
2205
2206 * cli/cli-script.c (copy_command_lines): New function.
2207 * defs.h (copy_command_lines): Export.
2208 * testsuite/gdb.base/commands.exp: New tests for commands
2209 attached to a temporary breakpoint, and for commands that
2210 delete the breakpoint they are attached to.
2211
2212 2002-08-26 Michael Snyder <msnyder@redhat.com>
2213
2214 * breakpoint.c (bpstat_stop_status): Instead of copying the
2215 pointer to the breakpoint commands struct, make a new copy
2216 of the struct and point to that.
2217 (bpstat_clear): Free the commands struct.
2218 (bpstat_clear_actions): Free the commands struct.
2219 (bpstat_do_actions): Free the command actions. Also execute
2220 the local cleanups, instead of deleting them.
2221 (delete_breakpoint): Leave the commands field of the bpstat
2222 chain alone -- it will be freed later.
2223
2224 2002-08-26 Kevin Buettner <kevinb@redhat.com>
2225
2226 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
2227 deleted in 2002-08-20 commit. This function is still used by
2228 ppc-linux-nat.c.
2229
2230 2002-08-26 Keith Seitz <keiths@redhat.com>
2231
2232 * gdb-events.sh: Add selected-frame-level-changed event.
2233 * gdb-events.c: Regenerated.
2234 * gdb-events.h: Regenerated.
2235
2236 2002-08-26 Stephane Carrez <stcarrez@nerim.fr>
2237
2238 Fix PR gdb/393:
2239 * inflow.c (terminal_save_ours): New function to save terminal
2240 settings.
2241 * inferior.h (terminal_save_ours): Declare.
2242 * target.c (debug_to_terminal_save_ours): New function.
2243 (cleanup_target): Defaults to_terminal_save_ours.
2244 (update_current_target): Inherit to_terminal_save_ours.
2245 (setup_target_debug): Set to_terminal_save_ours.
2246 * target.h (target_terminal_save_ours): New to save terminal settings.
2247 (target_ops): New member to_terminal_save_ours.
2248 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
2249 * hpux-thread.c (init_hpux_thread_ops): Likewise.
2250 * inftarg.c (init_child_ops): Likewise.
2251 * m3-nat.c (init_m3_ops): Likewise.
2252 * procfs.c (init_procfs_ops): Likewise.
2253 * wince.c (init_child_ops): Likewise.
2254 * win32-nat.c (init_child_ops): Likewise.
2255 * sol-thread.c (init_sol_thread_ops): Likewise.
2256
2257 2002-08-26 Mark Kettenis <kettenis@gnu.org>
2258
2259 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
2260 use regcache_* functions.
2261 (i386_gdbarch_init): Set store_return_value instead of
2262 deprecated_store_return_value.
2263
2264 * regcache.c (regcache_raw_write_signed,
2265 regcache_raw_write_unsigned): New functions.
2266 * regcache.h (regcache_raw_write_signed,
2267 regcache_raw_write_unsigned): New prototypes.
2268
2269 2002-08-25 Andrew Cagney <ac131313@redhat.com>
2270
2271 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
2272 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
2273 source file dependencies. Cleanup corresponding generator rules.
2274
2275 2002-08-25 Andrew Cagney <ac131313@redhat.com>
2276
2277 * regcache.h (register_offset_hack): Declare.
2278 (regcache_cooked_read_using_offset_hack): Declare.
2279 (regcache_cooked_write_using_offset_hack): Declare.
2280
2281 * regcache.c (register_offset_hack): New function.
2282 (regcache_cooked_read_using_offset_hack): New function.
2283 (regcache_cooked_write_using_offset_hack): New function.
2284 (regcache_dump): Check that the registers, according to their
2285 offset, are packed hard against each other.
2286 (cooked_xfer_using_offset_hack): New function.
2287
2288 2002-08-25 Andrew Cagney <ac131313@redhat.com>
2289
2290 * regcache.c (struct regcache_descr): Add field register_type.
2291 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
2292 in as a parameter
2293 (init_regcache_descr): Initialize register_type. Pass the descr
2294 to init_legacy_regcache_descr. Use register_type instead of
2295 REGISTER_VIRTUAL_TYPE.
2296 (register_type): New function.
2297 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
2298 * regcache.h (register_type): Declare.
2299
2300 2002-08-25 Andrew Cagney <ac131313@redhat.com>
2301
2302 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
2303 instead of deprecated_store_return_value. Fix fallout from
2304 2002-08-23 Andrew Cagney <cagney@redhat.com>.
2305
2306 2002-08-25 Andrew Cagney <ac131313@redhat.com>
2307
2308 * regcache.c (max_register_size): New function.
2309 (init_legacy_regcache_descr): Ensure that max_register_size is
2310 large enough for REGISTER_VIRTUAL_SIZE.
2311 * regcache.h (max_register_size): Declare.
2312
2313 2002-08-24 Andrew Cagney <ac131313@redhat.com>
2314
2315 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
2316 store_return_value.
2317 (e500_extract_return_value): Change type of valbuf pointer to
2318 void.
2319
2320 2002-08-24 Mark Kettenis <kettenis@gnu.org>
2321
2322 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
2323 workaround.
2324
2325 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
2326 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
2327 long long) to prevent compiler warning on 64-bit systems.
2328
2329 2002-08-23 Andrew Cagney <cagney@redhat.com>
2330
2331 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
2332 (DEPRECATED_STORE_RETURN_VALUE): New method.
2333 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
2334 * gdbarch.h, gdbarch.c: Re-generate.
2335
2336 * values.c (set_return_value): Pass current_regcache to
2337 STORE_RETURN_VALUE.
2338 * arch-utils.h (legacy_store_return_value): Declare.
2339 * arch-utils.c (legacy_store_return_value): New function.
2340 (legacy_extract_return_value): Update parameters.
2341
2342 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
2343 STORE_RETURN_VALUE.
2344 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2345 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2346 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2347 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2348 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2349 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2350 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2351 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2352 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2353 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2354
2355 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2356 * i386-tdep.c (i386_extract_return_value): Update.
2357 * arch-utils.c (legacy_extract_return_value): Update.
2358 * frv-tdep.c (frv_gdbarch_init): Update.
2359 * cris-tdep.c (cris_gdbarch_init): Update.
2360 * d10v-tdep.c (d10v_gdbarch_init): Update.
2361 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2362 * m68k-tdep.c (m68k_gdbarch_init): Update.
2363 * mcore-tdep.c (mcore_gdbarch_init): Update.
2364 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2365 * s390-tdep.c (s390_gdbarch_init): Update.
2366 * sparc-tdep.c (sparc_gdbarch_init): Update.
2367 * sh-tdep.c (sh_gdbarch_init): Update.
2368 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
2369 * v850-tdep.c (v850_gdbarch_init): Update.
2370 * avr-tdep.c (avr_gdbarch_init): Update.
2371 * ia64-tdep.c (ia64_gdbarch_init): Update.
2372 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2373 * vax-tdep.c (vax_gdbarch_init): Update.
2374 * alpha-tdep.c (alpha_gdbarch_init): Update.
2375 * arm-tdep.c (arm_gdbarch_init): Update.
2376 * mips-tdep.c (mips_gdbarch_init): Update.
2377 * i386-tdep.c (i386_gdbarch_init): Update.
2378
2379 2002-08-23 Andrew Cagney <ac131313@redhat.com>
2380
2381 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
2382 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
2383
2384 2002-08-24 Mark Kettenis <kettenis@gnu.org>
2385
2386 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
2387 problems.
2388
2389 2002-08-23 Joel Brobecker <brobecker@gnat.com>
2390
2391 * infrun.c (handle_inferior_event): Move a comment outside of a
2392 function call, in order to avoid indent reformatting this part
2393 of the code in an unreadable way.
2394
2395 2002-08-23 Grace Sainsbury <graces@redhat.com>
2396
2397 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
2398 when breakpoints fail. Move general breakpoint error messages to
2399 insert_breakpoints.
2400 * breakpoint.c (insert_breakpoints): Change warnings when
2401 breakpoints are nto inserted to specify the type. Remove call to
2402 memory_error when hardware breakpoints can't be inserted. Remove
2403 multiple calls to warning so all messages are sent to the user at
2404 once.
2405 (delete_breakpoints): Make insert error messsages more explicit.
2406
2407 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
2408
2409 * ChangeLog: Move gdbserver entries after GDB 5.2 to
2410 gdbserver/ChangeLog.
2411
2412 2002-08-23 Mark Kettenis <kettenis@gnu.org>
2413
2414 * i386-tdep.c: Include "objfiles.h".
2415 (i386_svr4_init_abi): Set in_solib_call_trampoline and
2416 skip_trampoline_code.
2417 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
2418 (CPLUS_MARKER): Define to '.'.
2419
2420 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
2421 member.
2422 (linux_corefile_thread_callback): Increase args->num_notes.
2423 (linux_make_note_section): Initialize thread_args.num_notes, and
2424 use it to determine whether notes for any threads were created.
2425
2426 2002-08-23 Donn Terry <donnte@microsoft.com>
2427
2428 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
2429 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
2430 and PCUNKILL.
2431 (write_with_trace): Conditionalize out the switch branch handling
2432 PCSHOLD if the corresponding macro is not defined. Likewise for
2433 PRSABORT and PRSTOP.
2434 This change will be needed by the Interix port.
2435
2436 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
2437
2438 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
2439 write_register wherever possible instead of manipulating the
2440 register bytes directly.
2441 Assign VALUE_CONTENTS to a variable and use that.
2442 The GPR numbers are now dependent on the architecture.
2443
2444 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
2445
2446 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
2447 ev_offset fields.
2448 (skip_prologue): Add support for BookE/e500 instructions.
2449 (e500_extract_return_value): New function.
2450 (frame_get_saved_regs): Add support for saving ev registers and
2451 pseudo gpr's.
2452 (e500_store_return_value): New function.
2453 (rs6000_gdbarch_init): Move up default intializations of
2454 deprecated_extract_return_value and store_return_value. Overwrite
2455 init of store_return_value with e500 specific version.
2456 Set extract_return_value for e500.
2457
2458 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
2459
2460 * blockframe.c (generic_call_dummy_register_unwind): Use
2461 regcache_cooked_read to catch cases in which the variable is
2462 stored in a pseudo register.
2463
2464 2002-08-22 Andrew Cagney <cagney@redhat.com>
2465
2466 * NEWS: Mention that the i960 has been made obsolete.
2467 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
2468 i960-tdep.c
2469 (remote-nrom.o): Obsolete target.
2470 (remote-nindy.o, i960-tdep.o): Ditto.
2471 * remote-nrom.c: Make file obsolete.
2472 * remote-nindy.c, remote-vx960.c: Ditto.
2473 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
2474 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
2475 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
2476 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
2477 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
2478 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
2479 i960-*-vxworks* obsolete.
2480 * MAINTAINERS: Note that the i960 is obsolete.
2481
2482 2002-08-21 Corinna Vinschen <vinschen@redhat.com
2483
2484 * aix-thread.c (aix_thread_detach): Disable thread debugging on
2485 detach to allow reinitialization.
2486
2487 2002-08-22 Andrew Cagney <ac131313@redhat.com>
2488
2489 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
2490 attempt).
2491
2492 2002-08-22 Jim Blandy <jimb@redhat.com>
2493
2494 * coffread.c (coff_symfile_read): Don't try to read the line
2495 number table from disk if the image file doesn't have a symbol
2496 table; we'll never actually look at the info anyway, and Windows
2497 ships DLL's with bogus file offsets for the line number data.
2498
2499 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
2500
2501 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
2502 an e500 executable.
2503
2504 2002-08-21 Michael Snyder <msnyder@redhat.com>
2505
2506 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
2507 (MSYMBOL_SIZE): Replace macro with function.
2508 (DEFAULT_MIPS_TYPE): Delete unused macro.
2509 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
2510 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
2511
2512 2002-08-21 Jim Blandy <jimb@redhat.com>
2513
2514 * valops.c (value_cast): Simplify and correct logic for doing a
2515 static cast from a pointer to a base class to a pointer to a
2516 derived class.
2517
2518 2002-08-21 Andrew Cagney <ac131313@redhat.com>
2519
2520 * infcmd.c (default_print_registers_info): Replace
2521 do_registers_info.
2522 (registers_info): Use gdbarch_print_registers_info instead of
2523 DO_REGISTERS_INFO.
2524 * inferior.h (default_print_registers_info): Replace
2525 do_registers_info.
2526 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
2527 (DO_REGISTERS_INFO): Change to a predicate function.
2528 * gdbarch.h, gdbarch.c: Regenerate.
2529
2530 2002-08-21 Keith Seitz <keiths@redhat.com>
2531
2532 * gdb-events.sh: Add target-changed event.
2533 * gdb-events.c: Regenerated.
2534 * gdb-events.c: Regenerated.
2535 * valops.c (value_assign): Add target-changed event notification
2536 to inlval_register, lval_memory, and lval_reg_frame_relative.
2537
2538 2002-08-21 Joel Brobecker <brobecker@gnat.com>
2539
2540 * NEWS: Add an entry regarding the improvement of the next/step
2541 operation on Alpha Tru64 multi-processor machines.
2542
2543 2002-08-21 Andrew Cagney <ac131313@redhat.com>
2544
2545 * Makefile.in: Update dependencies for mi/ cli/ and tui/
2546 directores.
2547 * Makefile.in: Update all _h macro definitions.
2548 * Makefile.in (install-gdbtk): Move to install section.
2549 (rdi-share/libangsd.a): Move to end of file.
2550
2551 2002-08-19 Andrew Cagney <ac131313@redhat.com>
2552
2553 * frame.c (frame_register_unwind): When a register, set addrp to
2554 the register's byte.
2555
2556 2002-08-20 Michael Snyder <msnyder@redhat.com>
2557
2558 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
2559 used locally, so move them from the target machine header to here.
2560 (mips_set_processor_type, mips_register_name, mips32_next_pc,
2561 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
2562 Make static.
2563 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
2564
2565 2002-08-20 Andrew Cagney <cagney@redhat.com>
2566
2567 * NEWS: Mention that the Apollo line was made obsolete.
2568 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
2569 m68*-hp-hpux* obsolete.
2570 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
2571 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
2572 * buildsym.c (make_blockvector): Make static.
2573 * buildsym.h (make_blockvector): Make extern declaration obsolete.
2574 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
2575 (ALLDEPFILES): Remove dstread.c.
2576 (dstread.o): Obsolete make rule.
2577 * dstread.c: Makefile obsolete.
2578 * dst.h: Ditto.
2579 * config/m68k/hp300hpux.mt: Ditto.
2580 * config/m68k/hp300hpux.mh: Ditto.
2581 * config/m68k/hp300bsd.mt: Ditto.
2582 * config/m68k/hp300bsd.mh: Ditto.
2583 * config/m68k/apollo68b.mt: Ditto.
2584 * config/m68k/apollo68v.mh: Ditto.
2585 * config/m68k/apollo68b.mh: Ditto.
2586
2587 2002-08-20 Michael Snyder <msnyder@redhat.com>
2588
2589 * mips-tdep.c (mips_in_return_stub): Make static.
2590 (mips_gdbarch_init): Set in_solib_return_trampoline.
2591 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
2592
2593 2002-08-20 Michael Snyder <msnyder@redhat.com>
2594
2595 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
2596 * gdbarch.c, gdbarch.h: Regenerate.
2597 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
2598 Add.
2599 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
2600
2601 2002-08-20 Michael Snyder <msnyder@redhat.com>
2602
2603 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
2604 (mips_gdbarch_init): Set skip_trampoline_code,
2605 in_solib_call_trampoline.
2606 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
2607 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
2608
2609 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
2610
2611 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
2612
2613 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
2614 vector type for ev registers.
2615 (e500_pseudo_register_read): New function.
2616 (e500_pseudo_register_write): New function.
2617 (e500_dwarf2_reg_to_regnum): New function.
2618 (PPC_UISA_NOFP_SPRS): New macro.
2619 (PPC_EV_REGS): New macro.
2620 (PPC_GPRS_PSEUDO_REGS): New macro.
2621 (registers_e500): New register set for e500.
2622 (variants): Add e500 variant.
2623 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
2624 before setting architectural dependent variations. Initialize ev
2625 registers numbers. Add case for e500 architecture. Set the
2626 number of pseudo registers.
2627
2628 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
2629
2630 * rs6000-tdep.c: Clean up comments.
2631
2632 2002-08-20 Andrew Cagney <cagney@redhat.com>
2633
2634 * h8300-tdep.c: Re-indent file.
2635
2636 2002-08-20 Jim Blandy <jimb@redhat.com>
2637
2638 * Makefile.in (LDFLAGS): Allow the configure script to establish a
2639 default for this.
2640
2641 2002-08-20 Keith Seitz <keiths@redhat.com>
2642
2643 * breakpoints.c (watch_command_1): Use internal breakpoint
2644 when setting a watchpoint_scope breakpoint.
2645
2646 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
2647
2648 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
2649 (build_builtin_type_vec64i): Ditto.
2650 (build_builtin_type_vec128): Ditto.
2651 (build_builtin_type_vec128i): Ditto.
2652
2653 2002-08-19 Michael Snyder <msnyder@redhat.com>
2654
2655 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
2656 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
2657 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
2658 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
2659 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
2660 CALL_DUMMY_ADDRESS): Delete.
2661 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
2662 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
2663 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
2664 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
2665 push_return_address.
2666 (mips_register_raw_size, mips_eabi_use_struct_convention,
2667 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
2668 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
2669 mips_init_extra_frame_info, mips_eabi_push_arguments,
2670 mips_n32n64_push_arguments, mips_push_return_address,
2671 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
2672 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
2673
2674 2002-08-19 Michael Snyder <msnyder@redhat.com>
2675
2676 * mips-tdep.c (mips_frame_num_args): New function.
2677 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
2678 frame_saved_pc, frame_args_address, frame_locals_address,
2679 frame_num_args, and frame_args_skip.
2680 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
2681 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
2682 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
2683 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
2684
2685 2002-08-20 Michael Snyder <msnyder@redhat.com>
2686
2687 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
2688 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
2689 * mips-tdep.c (mips_store_struct_return): New function.
2690 (mips_extract_struct_value_address): New function.
2691 (mips_gdbarch_init): Set store_struct_return and
2692 extract_struct_value_address.
2693
2694 2002-08-20 David Carlton <carlton@math.stanford.edu>
2695
2696 * dwarf2read.c (dwarf2_build_psymtabs): Check that
2697 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
2698 (read_file_scope): Check that line_header is nonzero before
2699 decoding macro information.
2700
2701 2002-08-20 Mark Kettenis <kettenis@gnu.org>
2702
2703 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
2704 flag the general-purpose registers as floating-point on targets
2705 that don't support the floating-point registers.
2706
2707 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
2708
2709 * rs6000-tdep.c (altivec_register_p): Delete.
2710 (rs6000_do_altivec_registers): Delete.
2711 (rs6000_altivec_registers_info): Delete.
2712 (rs6000_do_registers_info): Delete.
2713 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
2714 (rs6000_gdbarch_init): Remove setting of do_registers_info.
2715
2716 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
2717
2718 * infcmd.c (do_registers_info): Print vector registers in hex
2719 format only.
2720 (print_vector_info): Check that printing registers
2721 makes sense.
2722 (print_float_info): Ditto.
2723
2724 2002-08-20 Andrew Cagney <ac131313@redhat.com>
2725
2726 * mips-tdep.c (mips_gdbarch_init): Update.
2727 (mips_o32_extract_return_value): Rewrite.
2728 (mips_o32_store_return_value): Rewrite.
2729 (mips_o32_xfer_return_value): New function.
2730 (mips_xfer_register): Tweak debug print message. Allow for
2731 buf_offset when dumping the value transfered.
2732
2733 2002-08-20 Andrew Cagney <ac131313@redhat.com>
2734
2735 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
2736 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
2737 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
2738 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
2739 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
2740
2741 2002-08-14 Michael Snyder <msnyder@redhat.com>
2742
2743 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
2744
2745 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
2746
2747 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
2748 register.
2749 (P): New macro to define a register as a pseudo register.
2750 (R, R4, R8, R16, FR32, R64, R0): Updated.
2751 (struct variant): Add new fields for number of pseudo registers
2752 and number of total registers.
2753 (tot_num_registers): New macro replacing....
2754 (num_registers): ...deleted macro.
2755 (num_registers): New function.
2756 (num_pseudo_registers): New function.
2757 (variants): Update all variants to intialize new fields correctly.
2758 Postpone initialization of number of pseudo regs and real regs.
2759 (init_variants): New function.
2760 (rs6000_gdbarch_init): Initialize variants. Update calculation of
2761 registers offsets.
2762
2763 2002-08-19 David Carlton <carlton@math.stanford.edu>
2764
2765 * valops.c (search_struct_field): Change error message to treat
2766 return value of 0 from value_static_field as meaning that field is
2767 optimized out.
2768 (value_struct_elt_for_reference): Ditto.
2769 * values.c (value_static_field): Treat an unresolved location the
2770 same as a nonexistent symbol. Fix PR gdb/635.
2771 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
2772 enclosed. Fix PR gdb/574.
2773 * MAINTAINERS: Add self to Write After Approval list.
2774
2775 2002-08-19 Andrew Cagney <ac131313@redhat.com>
2776
2777 * mips-tdep.c (mips_xfer_register): New function.
2778 (mips_n32n64_extract_return_value): Rewrite.
2779 (mips_gdbarch_init): For N32 and N64, set extract_return_value
2780 instead of deprecated_extract_return_value.
2781
2782 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
2783
2784 * rs6000-tdep.c (TDEP): Delete macro.
2785 (branch_dest): Replace use of TDEP macro with its body.
2786 (rs6000_pop_frame): Ditto.
2787 (rs6000_push_arguments): Ditto.
2788 (rs6000_skip_trampoline_code): Ditto.
2789 (rs6000_frame_saved_pc): Ditto.
2790 (rs6000_frame_chain): Ditto.
2791 (rs6000_register_name): Ditto.
2792 (rs6000_register_byte): Ditto.
2793 (rs6000_register_raw_size): Ditto.
2794 (rs6000_register_virtual_type): Ditto.
2795 (rs6000_register_convertible): Ditto.
2796 (rs6000_convert_from_func_ptr_addr): Ditto.
2797
2798 2002-08-19 Daniel Jacobowitz <drow@mvista.com>
2799
2800 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
2801 conditionally.
2802 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
2803 MIPS_LINUX_JB_ELEMENT_SIZE.
2804 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
2805 for MAX_REGISTER_RAW_SIZE arrays.
2806 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
2807 MIPS_LINUX_JB_ELEMENT_SIZE.
2808
2809 2002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
2810
2811 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
2812
2813 2002-08-19 Aidan Skinner <aidan@velvet.net>
2814
2815 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
2816 ada-valprint.c ada-tasks.c.
2817 (YYFILES): Add ada-exp.y.
2818 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
2819 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
2820 (ada-exp.tab.o): New target.
2821
2822 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2823
2824 * regcache.c (regcache_xfer_part): New function.
2825 (regcache_raw_read_part): New function.
2826 (regcache_raw_write_part): New function.
2827 (regcache_cooked_read_part): New function.
2828 (regcache_cooked_write_part): New function.
2829 * regcache.h (regcache_raw_read_part): Declare.
2830 (regcache_raw_write_part): Declare.
2831 (regcache_cooked_read_part): Declare.
2832 (regcache_cooked_write_part): Declare.
2833
2834 2002-08-18 Daniel Jacobowitz <drow@mvista.com>
2835
2836 * remote.c (remote_open_1): Add async_p.
2837 (remote_async_open_1): Delete.
2838 (open_remote_target): Delete.
2839 (remote_open, extended_remote_open): Update calls to remote_open_1.
2840 (remote_async_open, extended_remote_async_open): Call
2841 remote_open_1 instead of remote_async_open_1.
2842
2843 2002-08-19 Mark Kettenis <kettenis@gnu.org>
2844
2845 * blockframe.c: Fix a few coding standard violations.
2846
2847 2002-08-19 Mark Kettenis <kettenis@gnu.org>
2848
2849 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
2850 here from ...
2851 * config/i386/tm-i386sco5.h: ... here. File removed.
2852 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
2853
2854 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
2855 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
2856 (TM_FILE): Set to tm-i386.h.
2857 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
2858 * config/i386/tm-i386v.h: Remove file.
2859 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
2860 instead of "i386/tm-i386v.h".
2861 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
2862 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
2863 "i386/tm-i386v.h".
2864 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
2865 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
2866 "i386/tm-i386.h".
2867
2868 2002-08-18 Mark Kettenis <kettenis@gnu.org>
2869
2870 * config/i386/nm-i386v.h: Add protection against
2871 multiple-inclusion.
2872 (i386_register_u_addr): Remove prototype.
2873 (register_u_addr): New prototype.
2874 (REGISTER_U_ADDR): Redefine accordingly.
2875 * i386v-nat.c: Improve several comments.
2876 (i386_register_u_addr): Change signature and rename to
2877 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
2878 ubase variable.
2879
2880 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2881
2882 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
2883 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
2884 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
2885 deprecated_extract_return_value.
2886 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
2887 rename mips_o32o64_push_arguments.
2888 (mips_gdbarch_init): Update.
2889 (mips_extract_return_value): Delete.
2890 (mips_o32_extract_return_value): Clone mips_extract_return_value.
2891 (mips_o64_extract_return_value): Clone mips_extract_return_value.
2892 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
2893 (mips_n32n64_extract_return_value): Clone
2894 mips_extract_return_value.
2895 (mips_store_return_value): Delete.
2896 (mips_o32_store_return_value): Clone mips_store_return_value.
2897 (mips_o64_store_return_value): Clone mips_store_return_value.
2898 (mips_eabi_store_return_value): Clone mips_store_return_value.
2899 (mips_n32n64_store_return_value): Clone mips_store_return_value.
2900
2901 2002-08-18 Aidan Skinner <aidan@velvet.net>
2902
2903 * ada-lang.c: Use gdb_string.h instead of <string.h>.
2904 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
2905
2906 2002-08-18 Aidan Skinner <aidan@velvet.net>
2907
2908 * ada-lang.c: Run through gdb_indent.sh.
2909 * ada-lang.h: Run through gdb_indent.sh.
2910 * ada-tasks.c: Run through gdb_indent.sh.
2911 * ada-typeprint.c: Run through gdb_indent.sh.
2912 * ada-valprint.c: Run through gdb_indent.sh.
2913
2914 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2915
2916 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
2917 ABI.
2918
2919 2002-08-18 Mark Kettenis <kettenis@gnu.org>
2920
2921 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
2922
2923 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
2924 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
2925
2926 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
2927 write_register_gen instead of write_register_bytes.
2928
2929 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
2930 i[3456]-*-osf1mk* configurations have been made obsolete.
2931 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
2932 i[3456]86-*-osf1mk* hosts obsolete.
2933 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
2934 targets obsolete.
2935 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
2936 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
2937 config/i386/i386m3.mt, config/i386/nm-m3.h,
2938 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
2939 config/i386/i386mk.mh, config/i386/i386mk.mt,
2940 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
2941 obsolete.
2942 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
2943 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
2944 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
2945
2946 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2947
2948 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
2949 (hppa_value_returned_from_stack): Declare.
2950 (hppa_extract_return_value): Declare.
2951 * config/pa/hppa.mt: New file.
2952 * configure.tgt: Recognize hppa*-*-*.
2953 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
2954
2955 2002-08-18 Mark Kettenis <kettenis@gnu.org>
2956
2957 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
2958 comment.
2959
2960 2002-08-17 Mark Kettenis <kettenis@gnu.org>
2961
2962 * top.c (gdb_rl_operate_and_get_next): Make sure
2963 operate-and-get-next functions correctly even when the history
2964 list is completely filled.
2965
2966 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2967
2968 * MAINTAINERS (Target Instruction Set Architectures): Rename
2969 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
2970 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
2971 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
2972 already listed under Host/Native.
2973
2974 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
2975 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
2976 mips*-*-*.
2977
2978 2002-08-17 Andrew Cagney <ac131313@redhat.com>
2979
2980 * config/ia64/ia64.mt: New file.
2981 * config/alpha/alpha.mt: New file.
2982 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
2983 ia64-linux-gnu. Mention that ia64-elf is broken.
2984 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
2985
2986 2002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
2987
2988 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
2989 generic_func_frame_valid instead of func_frame_valid.
2990
2991 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2992
2993 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
2994 procfs appears to be broken when debugging on multi-processor
2995 machines. So enable software single stepping in order to avoid
2996 using the procfs interface to do next/step operations, using
2997 internal breakpoints instead.
2998
2999 * infrun.c (handle_inferior_event): Readjust the stop_pc by
3000 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
3001 make this pc address equal to the value it would have if the
3002 system stepping capability was used. Also set a new flag used
3003 to ensure that we don't readjust the PC one more time later.
3004
3005 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
3006 address by DECR_PC_AFTER_BREAK when software single step is
3007 in use for this architecture, as this has already been taken
3008 care of in handle_inferior_event().
3009
3010 2002-08-16 Joel Brobecker <brobecker@gnat.com>
3011
3012 * infrun.c (handle_inferior_event): Minor reformatting, to make
3013 a rather long condition expression easier to read.
3014
3015 2002-08-16 Andrew Cagney <ac131313@redhat.com>
3016
3017 * Makefile.in (gdbtk.o): Move to end of file.
3018 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
3019 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
3020 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
3021 (gdbtk-wrapper.o, gdbres.o): Ditto.
3022
3023 2002-08-16 Andrew Cagney <ac131313@redhat.com>
3024
3025 * Makefile.in (copying.o): Separate out compile rule.
3026 (hpux-thread.o, procfs.o, signals.o): Ditto.
3027 (v850ice.o, z8k-tdep.o): Ditto.
3028 (tui-file.o): Move to TUI section.
3029 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
3030 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
3031
3032 2002-08-16 Joel Brobecker <brobecker@gnat.com>
3033
3034 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
3035 skip_trampoline_code, for better namespace-proofing.
3036
3037 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
3038
3039 2002-08-16 Joel Brobecker <brobecker@gnat.com>
3040
3041 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
3042
3043 2002-08-16 Joel Brobecker <brobecker@gnat.com>
3044
3045 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
3046 signal, check whether we hit a breakpoint before checking for a
3047 single step breakpoint. Otherwise, GDB fails to notice that a
3048 breakpoint has been hit when stepping onto a breakpoint.
3049
3050 2002-08-16 Keith Seitz <keiths@redhat.com>
3051
3052 * gdb-events.sh (clear_gdb_event_hooks): New function.
3053 * gdb-events.c: Regenerate.
3054 * gdb-events.h: Regenerate.
3055
3056 2002-08-16 Andrew Cagney <ac131313@redhat.com>
3057
3058 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
3059 not_a_sw_breakpoint.
3060 * breakpoint.h (bpstat_stop_status): Add parameter names.
3061
3062 2002-08-16 Grace Sainsbury <graces@redhat.com>
3063
3064 * remote.c (remote_insert_hw_breakpoint)
3065 (remote_remove_hw_breakpoint): Fix calculation of length field
3066 for Z-packet.
3067
3068 2002-08-15 Michael Snyder <msnyder@redhat.com>
3069
3070 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
3071 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
3072 (supply_fpregset): Ditto.
3073
3074 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
3075 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
3076 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
3077 (TARGET_READ_SP): Delete.
3078 (DO_REGISTERS_INFO): Delete.
3079 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
3080 Delete.
3081 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
3082 from macros to functions.
3083
3084 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
3085 (mips_register_convertible, mips_register_convert_to_virtual,
3086 mips_register_convert_to_raw): Make static.
3087 (mips_read_sp): New function.
3088 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
3089 (mips_do_registers_info): Make static.
3090 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
3091 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
3092 (mips_register_convert_from_type, mips_register_convert_to_type):
3093 New functions.
3094 (mips_gdbarch_init): Set up function_start_offset,
3095 register_virtual_size, pc_in_sigtramp.
3096
3097 2002-08-15 Andrew Cagney <ac131313@redhat.com>
3098
3099 * infcmd.c (vector_info): New function.
3100 (_initialize_infcmd): Add command "info vector".
3101 (print_vector_info): New function.
3102
3103 * gdbarch.sh (PRINT_VECTOR_INFO): New method
3104 * gdbarch.h, gdbarch.c: Regenerate.
3105
3106 2002-08-15 Andrew Cagney <ac131313@redhat.com>
3107
3108 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
3109 ``print_all''. Only print vector registers when ``print_all''.
3110
3111 2002-08-15 Andrew Cagney <ac131313@redhat.com>
3112
3113 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
3114 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
3115
3116 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
3117 Add `args' parameter.
3118 * gdbarch.h, gdbarch.c: Regenerate.
3119
3120 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
3121
3122 * infcmd.c (float_info): Call print_float_info.
3123 (print_float_info): New function. By default, print the
3124 floating-point registers.
3125
3126 * arch-utils.h (default_print_float_info): Delete declaration.
3127 * arch-utils.c (default_print_float_info): Delete function.
3128
3129 2002-08-16 Mark Kettenis <kettenis@gnu.org>
3130
3131 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
3132 out define.
3133
3134 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
3135 FRAME.
3136
3137 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
3138 * configure.host: Make i[3456]86-*-aix host obsolete.
3139 * configure.tgt: Make i[3456]86-*-aix target obsolete.
3140 * config/i386/i386aix.mh, config/i386/i386aix.mt,
3141 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
3142 config/i386/xm-i386aix.h: Make files obsolete.
3143 * i386aix-nat.c: Make file obsolete.
3144 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
3145 (i386aix-nat.o): Make target obsolete.
3146
3147 * config/i386/nm-gnu.h: Removed.
3148 * config/i386/nm-i386gnu.h: New file.
3149 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
3150 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
3151 Moved here from ...
3152 * config/i386/tm-i386gnu.h: ... here. Removed.
3153 * config/i386/xm-i386gnu.h: Removed.
3154 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
3155 (NAT_FILE): Set to nm-i386gnu.h.
3156 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
3157 * i386-tdep.c: New file.
3158 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
3159 (i386gnu-tdep.o): Specify dependencies.
3160
3161 2002-08-15 Mark Kettenis <kettenis@gnu.org>
3162
3163 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
3164 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
3165 Adjust a few comments to reflect reality a bit closer.
3166 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
3167 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
3168 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
3169 target_insert_watchpoint, target_remove_watchpoint):
3170 Move defines to ...
3171 * config/i386/nm-i386sco5.h: ... here.
3172 (kernel_u_size): Add prototype. Improve a few comments and add
3173 protection against multiple inclusion.
3174
3175 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
3176 out define.
3177
3178 * uw-thread.c (SP_ARG0): Define if not already defined.
3179 * config/i386/tm-i386.h (SO_ARG0): Remove define.
3180
3181 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
3182
3183 * config/i386/tm-i386.h: Don't include "regcache.h".
3184
3185 * i387-tdep.h (i387_print_float_info): New prototype.
3186 * i387-tdep.c (print_i387_value, print_i387_ext,
3187 print_i387_status_word, print_i387_control_word): Add `struct
3188 ui_file *' argument and use it for output.
3189 (i387_print_float_info): Renamed from i387_float_info. Add
3190 `struct gdbarch *' and `struct ui_file *' arguments and use the
3191 latter for output.
3192 * i386-tdep.c: Include "i387-tdep.h".
3193 (i386_gdbarch_init): Set print_float_info.
3194 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
3195 (FLOAT_INFO): Remove define.
3196
3197 2002-08-13 Michael Snyder <msnyder@redhat.com>
3198
3199 * mips-tdep.c (mips_push_arguments): Rename to
3200 mips_eabi_push_arguments, and tune for EABI.
3201 (MIPS_REGS_HAVE_HOME_P): Delete.
3202 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
3203 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
3204 Delete references to mips_regs_have_home_p.
3205
3206 2002-08-14 Keith Seitz <keiths@redhat.com>
3207
3208 * Makefile.in (install-gdbtk): Create insight plugin directory.
3209 Install plugins.tcl file.
3210
3211 2002-08-14 Keith Seitz <keiths@redhat.com>
3212
3213 * configure.in: Move SUBDIRS to near top of the file so that
3214 --enable options may add things to it.
3215 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
3216 * configure: Regenerate.
3217
3218 2002-08-13 Michael Snyder <msnyder@redhat.com>
3219
3220 * mips-tdep.c (mips_o32o64_push_arguments): New function,
3221 cloned from mips_push_arguments, tuned for o32/o64 ABI.
3222 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
3223
3224 2002-08-13 Andrew Cagney <ac131313@redhat.com>
3225
3226 * vax-tdep.c (vax_get_saved_register): Delete function.
3227 (vax_gdbarch_init): Update.
3228 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
3229 (ns32k_gdbarch_init): Update.
3230 * alpha-tdep.c (alpha_get_saved_register): Delete function.
3231 (alpha_gdbarch_init): Update.
3232
3233 2002-08-13 Andrew Cagney <cagney@redhat.com>
3234
3235 * regcache.c (init_regcache_descr): Overallocate the
3236 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
3237 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
3238 nr_raw_registers.
3239 (set_register_cached): Add range checking assertions. Use
3240 current_regcache.
3241
3242 2002-08-13 Mark Kettenis <kettenis@gnu.org>
3243
3244 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
3245 numbers for MMX registers.
3246
3247 2002-08-13 Andrew Cagney <cagney@redhat.com>
3248
3249 * i386-tdep.c (i386_gdbarch_init): Use
3250 generic_unwind_get_saved_register.
3251
3252 2002-08-13 Kevin Buettner <kevinb@redhat.com>
3253
3254 * procfs.c (procfs_can_use_hw_breakpoint): New function.
3255 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
3256 target vector.
3257 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
3258 Delete. Add comment regarding this now-deleted target method.
3259
3260 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
3261
3262 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
3263 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
3264 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
3265 real PC and the page number (if it's within the memory bank window).
3266 (m68hc11_pseudo_register_write): Likewise when saving.
3267 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
3268 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
3269 (m68hc11_register_raw_size): And use 32-bit for it.
3270 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
3271 16K memory bank is used by the prog; also use the virtual pc.
3272
3273 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
3274
3275 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
3276 (m68hc11_gdbarch_init): Install it in gdbarch.
3277 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
3278 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
3279 (MSYMBOL_SIZE): New for documentation.
3280 (insn_return_kind): Enum to specify how a function returns.
3281 (frame_extra_info): Cleanup and record the return mode.
3282 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
3283 register in address computation.
3284 (m68hc11_get_return_insn): New to obtain the return instruction used
3285 by the function.
3286 (m68hc11_frame_init_saved_regs): Take into account the return
3287 instruction used by the function for far and interrupt functions.
3288 (m68hc11_init_extra_frame_info): Take into account page register.
3289 (m68hc11_frame_args_address): Adjust according to the return mode.
3290 (show_regs): Print page register only when it's used.
3291
3292 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
3293
3294 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
3295 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
3296 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
3297 registers.
3298 (m68hc11_register_raw_size): Likewise.
3299
3300 2002-08-13 Andrew Cagney <cagney@redhat.com>
3301
3302 * i386-tdep.c (i386_register_name): Handle mmx registers.
3303 (mmx_regnum_p): New function.
3304 (i386_mmx_names): New array.
3305 (mmx_num_regs): New variable.
3306 (i386_pseudo_register_read): New function.
3307 (i386_pseudo_register_write): New function.
3308 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
3309
3310 * regcache.c (regcache_raw_read_unsigned): New function.
3311 (regcache_raw_read_signed): New function.
3312 * regcache.h (regcache_raw_read_unsigned): Declare.
3313 (regcache_raw_read_signed): Declare.
3314
3315 2002-08-13 Andrew Cagney <cagney@redhat.com>
3316
3317 * regcache.c (regcache_raw_read_as_address): Delete function.
3318 (regcache_cooked_read_signed): New function.
3319 (regcache_cooked_read_unsigned): New function.
3320 * regcache.h (regcache_cooked_read_signed): Declare.
3321 (regcache_cooked_read_unsigned): Declare.
3322 (regcache_raw_read_as_address): Delete declaration.
3323
3324 * blockframe.c (generic_read_register_dummy): Use
3325 regcache_cooked_read_unsigned.
3326 * i386-tdep.c (i386_extract_struct_value_address): Use
3327 regcache_cooked_read_unsigned.
3328
3329 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
3330
3331 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
3332 double sizes according to ELF ABI flags.
3333 (gdbarch_tdep): Record elf_flags.
3334
3335 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
3336
3337 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
3338 (m6812_prolog): They can appear in 68HC12 function prologue.
3339 (m68hc11_frame_chain): Cleanup.
3340
3341 2002-08-12 Andrew Cagney <cagney@redhat.com>
3342
3343 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
3344 declarations.
3345 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
3346 (i386_linux_register_raw_size): Delete function.
3347 (i386_linux_init_abi): Update.
3348 * i386-tdep.c (i386_register_raw_size): Delete function.
3349 (i386_register_byte): Delete function.
3350 (i386_gdbarch_init): Update.
3351 (i386_register_size): Delete array.
3352 (i386_register_offset): Delete array.
3353
3354 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
3355 (REGISTER_RAW_SIZE): Delete macro.
3356 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
3357 (REGISTER_BYTE): Delete macro.
3358
3359 2002-08-11 Aidan Skinner <aidan@velvet.net>
3360
3361 * ada-lang.c (ada_lookup_partial_symbol)
3362 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
3363 prototype names so that grep ^func works properly.
3364
3365 * ada-lang.c (ada_array_element_type)
3366 (ada_lookup_partial_symbol): Fix typos in parameter list.
3367
3368 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
3369 Fix prototype names so that grep ^func works properly.
3370
3371 2002-08-10 Andrew Cagney <cagney@redhat.com>
3372 Elena Zannoni <ezannoni@redhat.com>
3373 Martin M. Hunt <hunt@redhat.com>
3374
3375 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
3376 (build_builtin_type_vec128i): Set the vector bit.
3377 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
3378 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
3379 (build_builtin_type_vec64): New function.
3380 (build_builtin_type_vec64i): New function.
3381 (build_gdbtypes): Initialize builtin_type_vec64 and
3382 builtin_type_vec64i.
3383
3384 2002-08-09 Andrew Cagney <cagney@redhat.com>
3385
3386 * regcache.c (regcache_dump): Compare the register offset
3387 with REGISTER_BYTE.
3388 * arch-utils.c (generic_register_byte): New function.
3389 * arch-utils.h (generic_register_byte): Declare.
3390 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
3391 * gdbarch.h, gdbarch.c: Regenerate.
3392
3393 2002-08-09 Andrew Cagney <cagney@redhat.com>
3394
3395 * regcache.c: Include "gdbcmd.h"
3396 (_initialize_regcache): Add commands "maintenance print
3397 registers", "maintenance print raw-registers" and "maintenance
3398 print cooked-registers".
3399 (enum regcache_dump_what): Define.
3400 (dump_endian_bytes): New function.
3401 (regcache_dump): New function.
3402 (regcache_print): New function.
3403 (maintenance_print_registers): New function.
3404 (maintenance_print_raw_registers): New function.
3405 (maintenance_print_cooked_registers): New function.
3406 * Makefile.in (regcache.o): Update dependencies.
3407
3408 2002-08-09 Michael Snyder <msnyder@redhat.com>
3409
3410 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
3411 (mips_push_arguments): Correct some comments. Use paddr_nz
3412 for printing addresses in debug output. Replace static
3413 allocation using MAX_REGISTER_RAW_SIZE with alloca.
3414 (mips_n32n64_push_arguments): New function, cloned from
3415 mips_push_arguments and tuned for the n32/n64 ABI.
3416 (mips_push_register): Buffer needs dynamic allocation.
3417 (mips_print_register): Ditto.
3418 (do_gp_register_row): Ditto.
3419 (mips_store_return_value): Ditto.
3420 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
3421
3422 2002-08-09 Don Howard <dhoward@redhat.com>
3423
3424 * memattr.c (mem_info_command): Print special case of upper bound
3425 as max CORE_ADDR + 1.
3426
3427 2002-08-08 Michael Snyder <msnyder@redhat.com>
3428
3429 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
3430 returns structs by ref if they're too big to fit in two registers.
3431
3432 2002-08-09 Kevin Buettner <kevinb@redhat.com>
3433
3434 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
3435 saved regs value.
3436 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
3437 mips_find_saved_regs().
3438 (mips_pop_frame): Likewise.
3439
3440 2002-08-09 Kevin Buettner <kevinb@redhat.com>
3441
3442 * blockframe.c (frame_saved_regs_register_unwind): Revise
3443 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
3444 frames are in use.
3445
3446 2002-08-09 Grace Sainsbury <graces@redhat.com>
3447
3448 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
3449 T-packets; the 'a' is not taken as a register number.
3450 (remote_check_watch_resources, remote_stopped_by_watchpoint)
3451 (remote_stopped_data_address): New functions; add to target
3452 vector.
3453 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
3454 prototypes to match other implementations of this
3455 function. replace integer argument with pointer -- the length
3456 field in the Z-packet is the length of what is pointed to or 1 if
3457 pointer is null. Add to target vector.
3458 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
3459 target vector.
3460
3461 From Mark Salter:
3462 * remote.c (remote_wait): Add support to extract optional
3463 watchpoint information from T-packet. Ignore unrecognized
3464 optional info in T-packet.
3465 (remote_async_wait): Ditto.
3466
3467 2002-08-09 Corinna Vinschen <vinschen@redhat.com>
3468
3469 * cli/cli-dump.c: Change fopen modes to use binary open modes
3470 as defined in include/fopen-bin.h throughout.
3471
3472 2002-08-08 Michael Snyder <msnyder@redhat.com>
3473
3474 * mips-tdep.c: Minor whitespace and indentation clean-ups.
3475
3476 2002-08-08 Kevin Buettner <kevinb@redhat.com>
3477
3478 * doublest.c (store_floating): Avoid floatformat_from_doublest()
3479 assertion failure by returning early after a warning.
3480
3481 2002-08-08 Kevin Buettner <kevinb@redhat.com>
3482
3483 * mips-tdep.c (mips_find_saved_regs): Make static.
3484 (mips_frame_init_saved_regs): New function.
3485 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
3486 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
3487 (mips_find_saved_regs): Delete declaration.
3488
3489 2002-08-08 Grace Sainsbury <graces@redhat.com>
3490
3491 * remote.c (remote_wait, remote_async_wait): Change
3492 thread_num from int to ULONGEST.
3493 (unpack_varlen_hex): Change result parameter from
3494 int * to ULONGEST *.
3495
3496 2002-08-08 Andrew Cagney <ac131313@redhat.com>
3497
3498 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
3499 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
3500 powerpc*-*-*.
3501 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
3502
3503 2002-08-08 Andrew Cagney <cagney@redhat.com>
3504
3505 * gcore.c (override_derive_stack_segment): Delete variable.
3506 (preempt_derive_stack_segment): Delete function.
3507 (derive_stack_segment): Delete function.
3508 (default_derive_stack_segment): Renamed to derive_stack_segment.
3509 (override_derive_heap_segment): Delete variable.
3510 (preempt_derive_heap_segment): Delete function.
3511 (derive_heap_segment): Delete function.
3512 (default_derive_heap_segment): Rename to derive_heap_segment.
3513
3514 2002-08-06 Michael Snyder <msnyder@redhat.com>
3515
3516 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
3517 * mips-tdep.c (mips_EABI_use_struct_convention,
3518 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
3519 New functions. (mips_use_struct_convention): Delete.
3520 (mips_gdbarch_init): set use_gdbarch_convention.
3521
3522 2002-08-06 Michael Snyder <msnyder@redhat.com>
3523
3524 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
3525 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
3526 mips_o32_reg_struct_has_addr): New functions.
3527 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
3528
3529 2002-08-07 Andrew Cagney <ac131313@redhat.com>
3530
3531 * regcache.c (pseudo_register): Delete function.
3532 (fetch_register): Delete function.
3533 (store_register): Delete function.
3534 (regcache_raw_read, legacy_read_register_gen): Use
3535 target_fetch_registers instead of fetch_register.
3536 (legacy_write_register_gen, regcache_raw_write): Use
3537 target_store_register instead of store_register.
3538 (write_register_bytes): Ditto.
3539
3540 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
3541 (STORE_PSEUDO_REGISTER): Delete.
3542 * gdbarch.h, gdbarch.c: Regenerate.
3543
3544 2002-08-06 Corinna Vinschen <vinschen@redhat.com>
3545
3546 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
3547 write dump file binary.
3548
3549 2002-08-05 Michael Snyder <msnyder@redhat.com>
3550
3551 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
3552 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
3553 (mips_gdbarch_init): Set N32 target to be mips64.
3554
3555 2002-08-06 Kevin Buettner <kevinb@redhat.com>
3556
3557 * frame.c (find_saved_register): Break out of loop once saved
3558 register address is found. Don't mention sparc in loop comment
3559 anymore.
3560
3561 2002-08-06 Kevin Buettner <kevinb@redhat.com>
3562
3563 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
3564 mips_default_saved_regsize to 8.
3565
3566 2002-08-06 Andrew Cagney <ac131313@redhat.com>
3567
3568 * gcore.c: Do not include <sys/procfs.h>.
3569 * Makefile.in (gcore.o): Update dependencies.
3570
3571 2002-08-06 Andrew Cagney <cagney@redhat.com>
3572
3573 * configure.tgt: Make arc-*-* obsolete.
3574 * NEWS: Mention that arc-*-* has been identifed as obsolete.
3575 * MAINTAINERS: Make arc-elf obsolete.
3576 * arc-tdep.c: Make file obsolete.
3577 * config/arc/arc.mt: Ditto.
3578 * config/arc/tm-arc.h: Ditto.
3579
3580 2002-08-05 Theodore A. Roth <troth@verinet.com>
3581
3582 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
3583
3584 2002-08-05 Andrew Cagney <ac131313@redhat.com>
3585
3586 * mcore-tdep.c (mcore_gdbarch_init): Use
3587 generic_unwind_get_saved_register instead of
3588 generic_get_saved_register.
3589 * v850-tdep.c (v850_gdbarch_init): Ditto.
3590 * frv-tdep.c (frv_gdbarch_init): Ditto.
3591 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3592 * s390-tdep.c (s390_gdbarch_init): Ditto.
3593 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
3594 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
3595 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
3596
3597 2002-08-05 Joel Brobecker <brobecker@gnat.com>
3598
3599 * objfiles.h: Add missing #include "symfile.h"
3600
3601 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
3602
3603 2002-08-04 Andrew Cagney <ac131313@redhat.com>
3604
3605 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
3606 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
3607 of FIELD_BITSIZE.
3608
3609 2002-08-04 Daniel Jacobowitz <drow@mvista.com>
3610
3611 * NEWS: Cleanup and nitpick.
3612
3613 2002-08-03 Andrew Cagney <ac131313@redhat.com>
3614
3615 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
3616
3617 2002-08-03 Andrew Cagney <ac131313@redhat.com>
3618
3619 * Makefile.in (gdbtk-bp.o): Update dependencies.
3620 (gdbtk-register.o): Ditto.
3621 (gdbtk-varobj.o): Ditto.
3622
3623 2002-08-03 Andrew Cagney <cagney@redhat.com>
3624
3625 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
3626 m68hc11_fetch_pseudo_register.
3627 (m68hc11_pseudo_register_write): Replace
3628 m68hc11_store_pseudo_register.
3629 (m68hc11_gdbarch_init): Update.
3630
3631 Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
3632
3633 * gdbarch.sh: Include "gdb_string.h".
3634 * gdbarch.c: Regenerate.
3635
3636 * regcache.c: Include "gdb_string.h".
3637 * ax-general.c: Ditto.
3638 * varobj.c: Ditto.
3639 * std-regs.c: Ditto.
3640 * fbsd-proc.c: Ditto.
3641 * thread.c: Ditto.
3642
3643 * Makefile.in (regcache.o): Update dependencies.
3644 (thread.o, gdbarch.o): Ditto.
3645 (ax-general.o, gdbarch.o): Ditto.
3646 (varobj.o, std-regs.o): Ditto.
3647 (fbsd-proc.o): Specify dependencies.
3648
3649 2002-08-02 Andrew Cagney <cagney@redhat.com>
3650
3651 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
3652 regnum.
3653 (regcache_cooked_write): Ditto.
3654
3655 2002-08-02 Andrew Cagney <ac131313@redhat.com>
3656
3657 * regcache.c (regcache_cooked_read): New function.
3658 (regcache_cooked_write): New function.
3659 (read_register_gen): Rewrite using regcache_cooked_read.
3660 (write_register_gen): Rewrite using regcache_cooked_write.
3661
3662 * regcache.h (regcache_cooked_read, regcache_cooked_write):
3663 Declare.
3664
3665 2002-08-02 Andrew Cagney <cagney@redhat.com>
3666
3667 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
3668 Replace the architecture methods register_read and register_write.
3669 * gdbarch.h, gdbarch.c: Regenerate.
3670 * regcache.c (init_regcache_descr): Update.
3671 (read_register_gen): Update.
3672 (write_register_gen): Update.
3673 (supply_register): Update comment.
3674
3675 * sh-tdep.c (sh_gdbarch_init): Update.
3676 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
3677 `regcache' and `gdbarch' parameters. Make `buffer' a void
3678 pointer. Update code.
3679 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
3680 `regcache' and `gdbarch' parameters. Make `buffer' a constant
3681 void pointer. Update code.
3682 (sh64_register_write): Delete.
3683 (sh4_register_read): Delete.
3684 (sh64_register_read): Delete.
3685 (sh4_register_write): Delete.
3686 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
3687 void pointer, `to' parameter a void pointer.
3688 (sh_sh64_register_convert_to_raw): Ditto.
3689
3690 2002-08-01 Kevin Buettner <kevinb@redhat.com>
3691
3692 * mips-tdep.c (mips_register_virtual_type): Use architecture
3693 invariant return values.
3694
3695 2002-08-01 Andrew Cagney <cagney@redhat.com>
3696
3697 * linux-proc.c: Include "gdb_string.h".
3698 * Makefile.in (linux-proc.o): Update dependency list.
3699
3700 2002-08-01 Kevin Buettner <kevinb@redhat.com>
3701
3702 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
3703 comment.
3704
3705 2002-08-01 Grace Sainsbury <graces@redhat.com>
3706
3707 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
3708 to_insert_watchpoint, to_remove_watchpoint,
3709 to_stopped_by_watchpoint, to_stopped_data_address,
3710 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
3711 target vecctor. Define their corresponding macros so they call
3712 them.
3713
3714 * target.c: Add default and debug versions of for
3715 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
3716 to_insert_watchpoint, to_remove_watchpoint,
3717 to_stopped_by_watchpoint, to_stopped_data_address,
3718 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
3719
3720 2002-08-01 Kevin Buettner <kevinb@redhat.com>
3721
3722 * mips-tdep.c (mips_register_virtual_type): New function.
3723 (mips_gdbarch_init): Register mips_register_virtual_type()
3724 with gdbarch machinery.
3725 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
3726 this file instead of tm-bigmips.h.
3727 (MIPS_REGSIZE): Delete this macro.
3728 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
3729 multiarch version in mips-tdep.c will be found.
3730
3731 2002-08-01 Andrew Cagney <cagney@redhat.com>
3732
3733 * NEWS: Menion that CHILL has been made obsolete.
3734
3735 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
3736 * stabsread.c (read_range_type): Ditto.
3737 * gdbtypes.h: Ditto.
3738 * language.c (binop_type_check): Ditto.
3739 (binop_result_type): Ditto.
3740 (integral_type): Ditto.
3741 (character_type): Ditto.
3742 (string_type): Ditto.
3743 (boolean_type): Ditto.
3744 (structured_type): Ditto.
3745 (lang_bool_type): Ditto.
3746 (binop_type_check): Ditto.
3747 * language.h (_LANG_chill): Ditto.
3748 * dwarfread.c (set_cu_language): Ditto.
3749 * dwarfread.c (CHILL_PRODUCER): Ditto.
3750 * dwarfread.c (handle_producer): Ditto.
3751 * expression.h (enum exp_opcode): Ditto.
3752 * eval.c: Ditto for comments.
3753 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
3754 * expprint.c (print_subexp): Ditto.
3755 (print_subexp): Ditto.
3756 * valops.c (value_cast): Ditto.
3757 (search_struct_field): Ditto.
3758 * value.h (COERCE_VARYING_ARRAY): Ditto.
3759 * symfile.c (init_filename_language_table): Ditto.
3760 (add_psymbol_with_dem_name_to_list): Ditto.
3761 * valarith.c (value_binop): Ditto.
3762 (value_neg): Ditto.
3763 * valops.c (value_slice): Ditto.
3764 * symtab.h (union language_specific): Ditto.
3765 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
3766 (SYMBOL_DEMANGLED_NAME): Ditto.
3767 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
3768 * defs.h (enum language): Ditto.
3769 * symtab.c (got_symtab): Ditto.
3770 * utils.c (fprintf_symbol_filtered): Ditto.
3771
3772 * ch-typeprint.c: Make file obsolete.
3773 * ch-valprint.c: Make file obsolete.
3774 * ch-lang.h: Make file obsolete.
3775 * ch-exp.c: Make file obsolete.
3776 * ch-lang.c: Make file obsolete.
3777
3778 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
3779 CHILL_LIB.
3780 (TARGET_FLAGS_TO_PASS): Ditto.
3781 (CHILLFLAGS): Obsolete.
3782 (CHILL): Obsolete.
3783 (CHILL_FOR_TARGET): Obsolete.
3784 (CHILL_LIB): Obsolete.
3785 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
3786 ch-valprint.c.
3787 (HFILES_NO_SRCDIR): Remove ch-lang.h.
3788 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
3789 ch-lang.o.
3790 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
3791 targets.
3792
3793 2002-07-31 Joel Brobecker <brobecker@gnat.com>
3794
3795 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
3796 This does not change anything at the moment, but will be helpful
3797 later when full Ada support is integrated.
3798
3799 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3800
3801 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
3802 help message.
3803
3804 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3805
3806 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
3807 and save it in a local variable. Use variable in later test.
3808
3809 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3810
3811 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
3812 test. (Thanks to Daniel Jacobowitz.)
3813
3814 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3815
3816 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
3817 (mips_abi_strings): Add "n64".
3818 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
3819
3820 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3821
3822 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
3823 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
3824
3825 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3826
3827 * utils.c (host_pointer_to_address, address_to_host_pointer):
3828 Use gdb_assert() instead of explicit call to internal_error().
3829
3830 2002-07-30 Kevin Buettner <kevinb@redhat.com>
3831
3832 * Makefile.in (rs6000-nat.o): Update dependencies.
3833
3834 From Nicholas Duffek:
3835 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
3836 (aix-thread.o): New rule.
3837 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
3838 * config/powerpc/aix432.mh: New file.
3839
3840 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
3841
3842 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
3843 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
3844 (fetch_core_registers, ppc_linux_supply_gregset)
3845 (ppc_linux_supply_fpregset): New functions.
3846 (ppc_linux_regset_core_fns): New.
3847 (_initialize_ppc_linux_tdep): Call add_core_fns.
3848 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
3849 and ppc_linux_supply_gregset.
3850 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
3851 (supply_fpregset): Call ppc_linux_supply_fpregset.
3852 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
3853 corelow.o.
3854 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
3855
3856 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
3857
3858 * symtab.c (lookup_symbol): Demangle before lowercasing.
3859
3860 2002-07-30 Andrew Cagney <ac131313@redhat.com>
3861
3862 * symtab.h: Replace #include "gdb_obstack.h" with opaque
3863 declaration.
3864 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
3865 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
3866 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
3867 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
3868 "gdb_string.h".
3869 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
3870 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
3871 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
3872 (avr-tdep.o, mon960-rom.o): Ditto.
3873 (aout_stabs_gnu_h): Define.
3874 (symtab_h): Remove $(gdb_obstack_h).
3875
3876 2002-07-30 Jim Blandy <jimb@redhat.com>
3877
3878 Patch from David Carlton <carlton@math.stanford.edu>:
3879 * gdbinit.in: Move the `dir' commands that add GDB's own source
3880 directory to the search path to the end, so that the `gdb' source
3881 directory will be searched first.
3882
3883 2002-07-29 Andrew Cagney <ac131313@redhat.com>
3884
3885 * gdb_obstack.h: New file.
3886 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
3887 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
3888 * objfiles.h: Include "gdb_obstack.h".
3889 * Makefile.in (gdb_obstack_h): Define.
3890 (symtab_h): Add $(gdb_obstack_h).
3891 (objfiles_h): Add $(gdb_obstack_h).
3892
3893 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
3894 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
3895 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
3896 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
3897 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
3898 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
3899 * symfile.c, coffread.c, c-typeprint.c: Ditto.
3900 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
3901
3902 * Makefile.in (bcache.o): Update dependencies.
3903 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
3904 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
3905 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
3906 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
3907 (stabsread.o, symfile.o, symmisc.o): Ditto.
3908 (symtab.o, typeprint.o, macroexp.o): Ditto.
3909 (macrotab.o, mdebugread.o): Ditto.
3910 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
3911 (coff_ecoff_h, aout_aout64_h): Define.
3912 (aout_stabs_gnu_h, libaout_h): Define.
3913
3914 2002-07-29 Andrew Cagney <cagney@redhat.com>
3915
3916 * regcache.c (struct regcache_descr): Rename nr_registers to
3917 nr_cooked_registers. Revise comments describing the structure
3918 member fields.
3919 (init_regcache_descr): Update.
3920 (init_legacy_regcache_descr): Update.
3921 (read_register_gen, write_register_gen): When a cooked register in
3922 the raw register range, directly access the value from the raw
3923 register cache.
3924
3925 2002-07-29 Andrew Cagney <ac131313@redhat.com>
3926
3927 * z8k-tdep.c: Do not include "obstack.h".
3928 * h8300-tdep.c, h8500-tdep.c: Ditto.
3929 * m68hc11-tdep.c, sh-tdep.c: Ditto.
3930 * valprint.c, v850-tdep.c: Ditto.
3931 * d10v-tdep.c, mn10300-tdep.c: Ditto.
3932 * mn10200-tdep.c: Ditto.
3933
3934 * Makefile.in (z8k-tdep.o): Update dependencies.
3935 (m68hc11-tdep.o, valprint.o): Ditto.
3936 (v850-tdep.o, d10v-tdep.o): Ditto.
3937 (mn10300-tdep.o, sparc-tdep.o): Ditto.
3938 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
3939 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
3940 (sh_opc_h, gdb_sim_sh_h): Define.
3941 (elf_sh_h, elf_bfd_h): Define.
3942 (opcode_m68hc11_h): Define.
3943 (OPCODES_SRC, OPCODES_DIR): define.
3944 (OPCODES): Use $(OPCODES_DIR).
3945 (gdb_sim_d10v_h): Rename sim_d10v_h.
3946 (gdb_sim_arm_h): Rename sim_arm_h.
3947
3948 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3949
3950 * utils.c (host_pointer_to_address, address_to_host_pointer):
3951 Change internal_error() message to indicate function responsible
3952 for the error.
3953
3954 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3955
3956 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
3957 calls to local_hex_string_custom().
3958
3959 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3960
3961 * irix5-nat.c: Move IRIX shared library support from here...
3962 * solib-irix.c: ...to here. Revised substantially to work with
3963 generic solib framework.
3964
3965 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
3966 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
3967 * mips-irix-tdep.c: New file.
3968
3969 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
3970 (mips-irix-tdep.o, solib-irix.o): New rules.
3971 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
3972 solib-irix.o.
3973 * config/mips/irix6.mt (TDEPFILES): Likewise.
3974 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
3975
3976 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3977
3978 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
3979 disabled (via ``#if 0'') includes.
3980
3981 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3982
3983 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
3984 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
3985 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
3986 Add support for the fpscr register.
3987 * rs6000-nat.c (regmap, fetch_inferior_registers)
3988 (store_inferior_registers, fetch_core_registers): Likewise.
3989
3990 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3991
3992 * rs6000-nat.c (language.h): Include.
3993 (special_regs): Delete this array.
3994 (regmap): New function.
3995 (fetch_register, store_register): Use regmap() to map gdb
3996 register numbers to ptrace register numbers. Also, use
3997 outputs from regmap() to make decisions regarding type of
3998 ptrace() call to make. In particular, don't compare against
3999 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
4000 (fetch_inferior_registers, store_inferior_registers): Where
4001 possible, obtain register numbers from tdep struct. Don't
4002 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
4003 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
4004 (LAST_UISA_SP_REGNUM): Delete.
4005
4006 2002-07-25 Kevin Buettner <kevinb@redhat.com>
4007
4008 * rs6000-nat.c (ppc-tdep.h): Include.
4009 (fetch_registers, store_register, fetch_core_registers): Don't
4010 access registers[] directly. Instead, use supply_register() or
4011 regcache_collect() as appropriate.
4012 (find_toc_address): Format hex address with local_hex_string().
4013
4014 2002-07-25 Andrew Cagney <ac131313@redhat.com>
4015
4016 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
4017 bfd/elf32-frv.c.
4018
4019 2002-07-24 Tom Tromey <tromey@redhat.com>
4020
4021 * jv-exp.y: Marked all strings with _().
4022 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
4023 internal_error.
4024 (MethodInvocation, CastExpression, parse_number, yyerror,
4025 java_type_from_name, push_expression_name, yylex): Typo fixes.
4026
4027 2002-07-24 Daniel Jacobowitz <drow@mvista.com>
4028
4029 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
4030 (tee_file_flush, tee_file_write, tee_file_fputs)
4031 (tee_file_isatty): New.
4032 * ui-file.h (tee_file_new): Add prototype.
4033
4034 2002-07-24 Aidan Skinner <aidan@velvet.net>
4035
4036 * ada-lang.c: Change k&r style function definitions to prototyped
4037 form.
4038 * ada-typeprint.c: Change k&r style function definitions to prototyped
4039 form.
4040 * ada-valprint.c: Change k&r style function definitions to prototyped
4041 form.
4042
4043 2002-07-24 Andrew Cagney <cagney@redhat.com>
4044
4045 * README: Remove reference to remote-bug.
4046 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
4047 remote-bug.c.
4048 (m88k-nat.o): Delete rule.
4049 (m88k-tdep.o): Delete rule.
4050 (remote-bug.o): Delete rule.
4051 * MAINTAINERS: Mark as obsolete.
4052 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
4053 * m88k-tdep.c: Make file obsolete.
4054 * config/m88k/m88k.mh: Ditto.
4055 * config/m88k/delta88v4.mh: Ditto.
4056 * config/m88k/delta88v4.mt: Ditto.
4057 * config/m88k/delta88.mt: Ditto.
4058 * config/m88k/delta88.mh: Ditto.
4059 * remote-bug.c: Ditto.
4060 * config/m88k/tm-delta88.h: Ditto.
4061 * config/m88k/nm-delta88v4.h: Ditto.
4062 * config/m88k/xm-delta88.h: Ditto.
4063 * config/m88k/xm-dgux.h: Ditto.
4064 * config/m88k/tm-m88k.h: Ditto.
4065 * config/m88k/nm-m88k.h: Ditto.
4066 * config/m88k/tm-delta88v4.h: Ditto.
4067 * m88k-nat.c: Ditto.
4068 * cxux-nat.c: Ditto.
4069 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
4070 and m88*-*-* obsolete.
4071 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
4072 m88*-*-* obsolete.
4073
4074 2002-07-24 Andrew Cagney <cagney@redhat.com>
4075
4076 * findvar.c (extract_unsigned_integer): Make `addr' parameter
4077 constant. Same for local pointer variables.
4078 (extract_signed_integer): Ditto.
4079 * defs.h (extract_unsigned_integer): Update.
4080 (extract_signed_integer): Update.
4081
4082 2002-07-24 Andrew Cagney <cagney@redhat.com>
4083
4084 * regcache.c (regcache_raw_write): Change buf parameter to a
4085 constant void pointer.
4086 (regcache_raw_read): Change buf parameter to a void pointer.
4087 (legacy_write_register_gen): Change myaddr parameter a constant
4088 void pointer.
4089 (supply_register): Change val parameter to a const void pointer.
4090 * regcache.h (regcache_raw_write): Update declaration.
4091 (regcache_raw_read): Update declaration.
4092 (supply_register): Update declaration.
4093
4094 2002-07-24 Tom Tromey <tromey@redhat.com>
4095
4096 * defs.h (gdb_readline_wrapper): Declare.
4097 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
4098 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
4099 * top.c (gdb_readline_wrapper): New function.
4100 (command_line_input): Use it.
4101
4102 2002-07-24 Andrew Cagney <cagney@redhat.com>
4103
4104 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
4105 regcache_read and regcache_write.
4106 (regcache_raw_read_as_address): Replace regcache_read_as_address.
4107 * regcache.c: Update.
4108 * sh-tdep.c (sh64_push_arguments): Update comment.
4109 (sh_pseudo_register_read): Update.
4110 (sh_pseudo_register_write): Update.
4111 (sh4_register_read): Update.
4112 (sh4_register_write): Update.
4113 (sh64_pseudo_register_read): Update.
4114 (sh64_pseudo_register_write): Update.
4115 (sh64_register_read): Update.
4116 (sh64_register_write): Update.
4117 * i386-tdep.c (i386_extract_return_value): Update.
4118 (i386_extract_struct_value_address): Update.
4119 (i386_extract_return_value): Update.
4120 * blockframe.c (generic_read_register_dummy): Update.
4121 (generic_call_dummy_register_unwind): Update
4122 * infrun.c (write_inferior_status_register): Update.
4123
4124 2002-07-23 Jim Blandy <jimb@redhat.com>
4125
4126 * parser-defs.h (expression_context_pc): Make this extern.
4127 (Thanks to Michael Snyder.)
4128
4129 2002-07-23 Andrew Cagney <ac131313@redhat.com>
4130
4131 GDB 5.2.1 released from 5.2 branch.
4132 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
4133 * README: Update to mention 5.2.1.
4134
4135 2002-07-23 Mark Salter <msalter@redhat.com>
4136
4137 * remote.c (remote_read_bytes): Fix check for error.
4138
4139 2002-07-22 Kevin Buettner <kevinb@redhat.com>
4140
4141 * aix-thread.c (language.h): Include.
4142 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
4143 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
4144 Print newlines at end of debug messages.
4145 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
4146 (pdc_write_data): Use local_hex_string() instead of %llx formats.
4147
4148 2002-07-22 Kevin Buettner <kevinb@redhat.com>
4149
4150 * aix-thread.c (ppc-tdep.h): Include.
4151 (special_register_p): New function.
4152 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
4153 (store_regs_user_thread): Use register number information from
4154 gdbarch_tdep struct instead of hardcoded offsets relative to
4155 FIRST_UISA_SP_REGNUM.
4156 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
4157 special_register_p() instead of using FPLAST_REGNUM and
4158 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
4159 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
4160 will be MQ's register number.
4161
4162 2002-07-22 Michael Snyder <msnyder@redhat.com>
4163
4164 * aix-thread.c (ops): Rename to aix_thread_ops.
4165 (base_ops): Rename to base_target.
4166 (ops_attach): Rename to aix_thread_attach.
4167 (ops_detach): Rename to aix_thread_detach.
4168 (ops_resume): Rename to aix_thread_detach.
4169 (ops_wait): Rename to aix_thread_wait.
4170 (ops_kill): Rename to aix_thread_kill.
4171 (init_ops): Rename to init_aix_thread_ops.
4172 (ops_fetch_register): Rename to aix_thread_fetch_register.
4173 (ops_store_register): Rename to aix_thread_store_register.
4174 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
4175 (ops_thread_alive): Rename to aix_thread_thread_alive.
4176 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
4177 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
4178 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
4179 (fetch_regs_lib): Rename to fetch_regs_user_thread.
4180 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
4181 (store_regs_lib): Rename to store_regs_user_thread.
4182 (store_regs_kern): Rename to store_regs_kernel_thread.
4183
4184 2002-07-22 Michael Snyder <msnyder@redhat.com>
4185
4186 * aix-thread.c (ops_prepare_to_store): Eliminate.
4187 (init_ops): Don't initialize ops.prepare_to_store.
4188 (store_regs_kern): Pre-fetch register buffers from child,
4189 because some registers may not be in the cache. Copy
4190 regs from register cache only if they are cached.
4191 (store_regs_lib): Copy regs from register cache only
4192 if they are cached.
4193 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
4194 fill_gprs64): Ditto.
4195
4196 2002-07-22 Kevin Buettner <kevinb@redhat.com>
4197
4198 * aix-thread.c (gdb_assert.h): Include.
4199 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
4200 register sizes (from register cache) match size of buffer holding
4201 register data.
4202 (fill_sprs32): Change parameter types to match those in the ptrace()
4203 buffer.
4204 (store_regs_lib): Likewise, but for 32-bit temporary variables.
4205 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
4206
4207 2002-07-22 Michael Snyder <msnyder@redhat.com>
4208
4209 * aix-thread.c (supply_sprs64): Cosmetic change.
4210 (supply_sprs32): Cosmetic change.
4211 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
4212 (fill_sprs64): Use regcache_collect instead of read_register.
4213 (store_regs_lib): Use regcache_collect instead of
4214 read_register. Use fill_sprs32 instead of fill_sprs64,
4215 if debugging a 32-bit architecture.
4216 (store_regs_kern): Use fill_gprs64 etc. to pull the values
4217 out of the register cache, instead of passing a pointer into
4218 the register cache directly to ptrace. Use regcache_collect
4219 insteaad of read_register.
4220 (ops_prepare_to_store): Use target_read_registers instead
4221 of read_register_bytes.
4222
4223 2002-07-20 Aidan Skinner <aidan@velvet.net>
4224
4225 * MAINTAINERS: Add self under write after approval.
4226
4227 2002-07-20 Aidan Skinner <aidan@velvet.net>
4228
4229 * ada-tasks.c: Change k&r style function definitions to prototyped
4230 form.
4231
4232 2002-07-19 Andrew Cagney <ac131313@redhat.com>
4233
4234 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
4235 * x86-64-tdep.c: Include "objfiles.h".
4236 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
4237 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
4238
4239 2002-07-17 Michal Ludvig <michal@suse.cz>
4240
4241 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
4242 (update_context): Initialise cfa variable.
4243
4244 2002-07-17 Michael Snyder <msnyder@redhat.com>
4245
4246 * aix-thread.c: Shorten some long lines.
4247 Bring comments into line with code spec.
4248
4249 2002-07-18 Joel Brobecker <brobecker@gnat.com>
4250
4251 * infrun.c: Re-indent using gdb_indent.sh.
4252
4253 2002-07-18 Joel Brobecker <brobecker@gnat.com>
4254
4255 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
4256 Leave the indentation temporarily untouched, to minimize the diffs.
4257
4258 2002-07-18 Elena Zannoni <ezannoni@redhat.com>
4259
4260 * stabsread.c: Make os9k sections of the code obsolete,
4261 for real this time.
4262 * stabsread.h: Make os9k sections of the code obsolete.
4263
4264 2002-07-18 Michal Ludvig <mludvig@suse.cz>
4265
4266 * linux-low.c (regsets_store_inferior_registers): Add free()
4267 at the end of a loop to prevent memory leak.
4268 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
4269 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
4270 * config/sparc/tm-sp64linux.h: Make the rest of #endif
4271 line a comment.
4272 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
4273
4274 2002-07-17 Jim Blandy <jimb@redhat.com>
4275
4276 * macrocmd.c (info_macro_command): Remove newline from error
4277 message.
4278
4279 2002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
4280
4281 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
4282 (sh_gdbarch_init): Use it for sh-dsp.
4283
4284 2002-07-16 Kevin Buettner <kevinb@redhat.com>
4285
4286 * dwarf2read.c (read_initial_length): Handle older, non-standard,
4287 64-bit DWARF2 format.
4288
4289 2002-07-16 Joel Brobecker <brobecker@gnat.com>
4290
4291 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
4292 <sys/proc.h> when not available.
4293
4294 2002-07-16 Andrew Cagney <ac131313@redhat.com>
4295
4296 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
4297 * stabsread.c: Make os9k sections of the code obsolete.
4298 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
4299 * config/i386/i386os9k.mt: Make file obsolete.
4300 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
4301 (COMMON_OBS): Remove os9kread.o
4302 (SFILES): Remove os9kread.c.
4303 (os9kread.o, remote-os9k.o): Make target obsolete.
4304 * remote-os9k.c: Make file obsolete.
4305 * os9kread.c: Make file obsolete.
4306 * Makefile.in
4307
4308 2002-07-16 Andrew Cagney <ac131313@redhat.com>
4309
4310 * NEWS: Mention that the FR30 has been made obsolete.
4311 * fr30-tdep.c: Make file obsolete.
4312 * config/fr30/tm-fr30.h: Ditto.
4313 * config/fr30/fr30.mt: Ditto.
4314 * configure.tgt: Make fr30-*-elf obsolete.
4315 * MAINTAINERS: Make fr30-elf obsolete.
4316
4317 2002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
4318
4319 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
4320 found is not inside a section.
4321
4322 2002-07-15 Kevin Buettner <kevinb@redhat.com>
4323
4324 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
4325 strerror().
4326 (pdc_realloc): Use xrealloc() instead of realloc().
4327
4328 2002-07-15 Kevin Buettner <kevinb@redhat.com>
4329
4330 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
4331 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
4332 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
4333 macros.
4334
4335 2002-07-15 Kevin Buettner <kevinb@redhat.com>
4336
4337 * aix-thread.c (ptrace_check): Eliminate goto.
4338 (sync_threadlists): Eliminate gotos. Also, fix array overrun
4339 problem.
4340
4341 2002-07-15 Kevin Buettner <kevinb@redhat.com>
4342
4343 * aix-thread.c (gdbcmd.h): Include.
4344 (DEBUG, DBG, DBG2, dbg): Eliminate.
4345 (debug_aix_thread): New static global.
4346 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
4347 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
4348 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
4349 invocations to DBG and DBG2 macros to test against
4350 ``debug_aix_thread'' and call fprintf_unfiltered().
4351 (_initialize_aix_thread): Add new command "set debug aix-thread".
4352
4353 2002-07-15 Andrew Cagney <ac131313@redhat.com>
4354
4355 From Gerhard Tonn <TON@de.ibm.com>:
4356 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
4357 instead of supply_register.
4358
4359 2002-07-15 Andrew Cagney <ac131313@redhat.com>
4360
4361 * dwarf2cfi.c: Include "gdb_assert.h".
4362 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
4363 non-NULL.
4364 (update_context): Do not use __func__. Add missing ``break''.
4365 (update_context): Do not use __func__.
4366
4367 2002-07-15 Elena Zannoni <ezannoni@redhat.com>
4368
4369 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
4370 and its setting. Set gdbarch instruction printing functions
4371 directly. For non-rs6000 case use new function
4372 gdb_print_insn_powerpc.
4373 (gdb_print_insn_powerpc): New function.
4374
4375 2002-07-13 Andrew Cagney <ac131313@redhat.com>
4376
4377 * NEWS: Mention that the d30v has been marked obsolete.
4378 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
4379 * configure.tgt: Mark d30v-*-* as obsolete.
4380 * d30v-tdep.c: Mark file as obsolete.
4381 * config/d30v/d30v.mt: Ditto.
4382 * config/d30v/tm-d30v.h: Ditto.
4383
4384 2002-07-13 Aidan Skinner <aidan@velvet.net>
4385
4386 * ada-tasks.c (add_task_entry): replace calls to
4387 malloc() with xmalloc
4388 * ada-tasks.c (init_task_list): replace calls to free with xfree()
4389
4390 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
4391 ada_finish_decode_line_1, all_sals_for_line
4392 ada_breakpoint_rewrite): replace calls to free() with xfree()
4393
4394 2002-07-12 Kevin Buettner <kevinb@redhat.com>
4395
4396 From Nicholas Duffek (with minor changes by Martin Hunt,
4397 Louis Hamilton, and Kevin Buettner):
4398 * aix-thread.c: New file.
4399
4400 2002-07-12 Petr Sorfa <petrs@caldera.com>
4401
4402 * dwarf2read.c (dwarf2_invalid_attrib_class): New
4403 complaint for invalid attribute class or form.
4404 (read_func_scope): DW_AT_frame_base
4405 better handling of DW_AT_block*.
4406 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
4407 better handling of DW_AT_block*.
4408 (read_common_block): DW_AT_location
4409 better handling of DW_AT_block*.
4410 (read_partial_die): DW_AT_location better handling
4411 of DW_AT_block*.
4412 (new_symbol): DW_AT_external better handling of
4413 DW_AT_block*. Proper initialization of variable
4414 "addr".
4415 (attr_form_is_block): New function that returns true
4416 if the attribute's form is of DW_FORM_block*.
4417
4418 2002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
4419
4420 * valops.c (find_method_list): Remove comment about
4421 removed STATIC_MEMFUNCP argument.
4422 (value_find_oload_method_list): Likewise.
4423
4424 2002-07-12 Kevin Buettner <kevinb@redhat.com>
4425
4426 From Nicholas Duffek:
4427 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
4428 target_new_objfile_hook.
4429
4430 2002-07-12 Kevin Buettner <kevinb@redhat.com>
4431
4432 From Nicholas Duffek:
4433 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
4434 csect.
4435
4436 2002-07-12 Andrew Cagney <cagney@redhat.com>
4437
4438 * MAINTAINERS: Mention --enable-sim-build-warnings.
4439 (m68hc11-elf): Disable sim build warnings.
4440 (m32r-elf): Mark as broken obsolete candidate.
4441 (x86_64-linux-gnu): Mark as buildable with -Werror.
4442 (arm-elf): Change -w to ``,'' which enables warnings but not
4443 -Werror.
4444
4445 2002-07-12 Andrew Cagney <ac131313@redhat.com>
4446
4447 * bcache.h: Update copyright.
4448 (struct bstring, struct bcache): Move definition to "bcache.c".
4449 Replaced by opaque declaration.
4450 (bcache_xfree): Replace free_bcache.
4451 (bcache_xmalloc, bcache_memory_used): Declare.
4452
4453 * bcache.c: Update copyright.
4454 (struct bstring, struct bcache): Moved to here from "bcache.h".
4455 Update comments.
4456 (bcache_xmalloc, bcache_memory_used): New functions.
4457 (bcache_xfree): Replace function free_bcache.
4458
4459 * Makefile.in (objfiles.o): Add $(bcache_h).
4460 (objfiles_h): Remove $(bcache_h).
4461 (symfile.o): Add $(bcache_h).
4462
4463 * symmisc.c: Update copyright.
4464 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
4465 (print_objfile_statistics): Use bcache_memory_used.
4466
4467 * symfile.c: Include "bcache.h".
4468 (reread_symbols): Use bcache_xfree.
4469 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
4470 (add_psymbol_to_list): Pass psymbol_cache by value.
4471 (add_psymbol_with_dem_name_to_list): Ditto.
4472
4473 * objfiles.h: Update copyright.
4474 (struct bcache): Declare opaque. Do not include "bcache.h".
4475 (struct objfile): Change psymbol_cache and macro_cache to ``struct
4476 bcache'' pointers.
4477 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
4478
4479 * objfiles.c: Include "bcache.h". Update copyright.
4480 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
4481 macro_cache.
4482 (free_objfile): Use bcache_xfree.
4483
4484 2002-07-11 Grace Sainsbury <graces@redhat.com>
4485
4486 * monitor.c (monitor_fetch_register): Make name a constant.
4487 (monitor_store_register): Same.
4488
4489 2002-07-11 Daniel Jacobowitz <drow@mvista.com>
4490
4491 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
4492 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
4493 (finish_block) For non-function blocks, hash the symbol table. For
4494 function blocks, mark the symbol table as unhashed.
4495 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
4496 (msymbol_hash_iw): Likewise.
4497 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
4498 value.
4499 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
4500 (lookup_minimal_symbol): Likewise for both.
4501 * symtab.h (struct block): Add `hashtable' flag. Comment the
4502 hashtable.
4503 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
4504 (ALL_BLOCK_SYMBOLS): Update.
4505 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
4506 (struct symbol): Add `hash_next' pointer.
4507 * symtab.c (lookup_block_symbol): Search using the hash table when
4508 possible.
4509 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
4510 (search_symbols, find_addr_symbol): Likewise.
4511
4512 * dstread.c (process_dst_block): Clear hashtable bit for new block.
4513 (read_dst_symtab): Likewise.
4514 * jv-lang.c (get_java_class_symtab): Likewise.
4515 * mdebugread.c: Include "gdb_assert.h".
4516 (shrink_block): Assert that the block being modified is not hashed.
4517 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
4518 * symmisc.c (free_symtab_block): Walk the hash table when freeing
4519 symbols.
4520 (dump_symtab): Recognize hashed blocks.
4521 * printcmd.c (print_frame_args): Assert that function blocks do not
4522 have hashed symbol tables.
4523 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
4524 (fill_in_ada_prototype, debug_print_block): Likewise.
4525 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
4526
4527 2002-07-11 Corinna Vinschen <vinschen@redhat.com>
4528
4529 * stack.c (print_frame): Use result of frame_address_in_block()
4530 instead of fi->pc when evaluating symbols.
4531 (backtrace_command_1): Ditto.
4532
4533 2002-07-11 Andrew Cagney <cagney@redhat.com>
4534
4535 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
4536 Make static.
4537
4538 * arm-tdep.c (arm_register_name): Make return type constant.
4539
4540 2002-07-10 Andrew Cagney <ac131313@redhat.com>
4541
4542 * win32-nat.c (has_detach_ability): Convert to strict ISO C
4543 prototype.
4544 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
4545 * s390-tdep.c (s390_fp_regnum): Ditto.
4546 (s390_read_fp): Ditto.
4547 (s390_pop_frame): Ditto.
4548 (_initialize_s390_tdep): Ditto.
4549 * remote.c (get_remote_state): Ditto.
4550 * procfs.c (mappingflags): Ditto.
4551 * memattr.c (_initialize_mem): Ditto.
4552 * mcore-tdep.c (mcore_pop_frame): Ditto.
4553 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
4554 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
4555 * language.c (set_case_str): Ditto.
4556 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
4557 * frv-tdep.c (new_variant): Ditto.
4558 (frv_stopped_data_address): Ditto.
4559 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
4560 (context_alloc): Ditto.
4561 (frame_state_alloc): Ditto.
4562 (unwind_tmp_obstack_init): Ditto.
4563 (unwind_tmp_obstack_free): Ditto.
4564 (cfi_read_fp): Ditto.
4565 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
4566 (cris_pop_frame): Ditto.
4567 * c-lang.c (scanning_macro_expansion): Ditto.
4568 (finished_macro_expansion): Ditto.
4569 (c_preprocess_and_parse): Ditto.
4570 * gdbarch.sh: Ditto.
4571 * gdbarch.h, gdbarch.c: Regenerate.
4572 * config/mn10200/tm-mn10200.h: Adjust indentation.
4573 * target.c: Adjust indentation.
4574 * symtab.h: Adjust indentation.
4575 * stabsread.h: Adjust indentation.
4576 * remote-es.c: Adjust indentation.
4577 * os9kread.c: Adjust indentation.
4578
4579 2002-07-10 Andrew Cagney <ac131313@redhat.com>
4580
4581 * wince.c (_initialize_wince): Rename _initialize_inftarg.
4582 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
4583
4584 2002-07-10 Grace Sainsbury <graces@redhat.com>
4585
4586 * NEWS: Mention m68k, mcore multi-arching.
4587 * MAINTAINERS: Change status of m68k, mcore to reflect
4588 multi-arching.
4589
4590 2002-07-10 Daniel Jacobowitz <drow@mvista.com>
4591
4592 * valops.c (find_overload_match): Free oload_syms.
4593
4594 2002-07-09 Joel Brobecker <brobecker@gnat.com>
4595
4596 Define HAVE_SYS_PROC_H if sys/proc.h exists
4597 * configure.in: Add check for sys/proc.h
4598 * config.in: Regenerate.
4599 * configure: Regenerate.
4600
4601 2002-07-09 Grace Sainsbury <graces@redhat.com>
4602
4603 * config/m68k/tm-m68k.h: Remove macros wrapped in
4604 #if !GDB_MULTI_ARCH.
4605
4606 2002-07-08 Andrew Cagney <ac131313@redhat.com>
4607
4608 * config.in, configure: Regenerate.
4609
4610 2002-07-08 Mark Kettenis <kettenis@gnu.org>
4611
4612 * dwarf2cfi.c: Include "gcore.h".
4613 (execute_stack_op): Fix implementation of the
4614 DW_OP_deref and DW_OP_deref_size operators by letting do their
4615 lookup in the target.
4616
4617 2002-07-07 Mark Kettenis <kettenis@gnu.org>
4618
4619 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
4620 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
4621 tdep->sc_sp_offset.
4622
4623 2002-07-05 Daniel Jacobowitz <drow@mvista.com>
4624
4625 Fix PR gdb/595, gdb/602
4626 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
4627 Don't call value_cast, just read the vtable pointer; update comments
4628 to match.
4629
4630 2002-07-05 Grace Sainsbury <graces@redhat.com>
4631
4632 * config/mcore/tm-mcore.h: Remove file.
4633 * config/mcore/mcore.mt: Remove definition of TM_FILE
4634 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
4635
4636 2002-07-05 Mark Kettenis <kettenis@gnu.org>
4637
4638 * i386bsd-tdep.c: Include "gdb_string.h".
4639
4640 2002-07-04 Grace Sainsbury <graces@redhat.com>
4641
4642 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
4643 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
4644 mcore-tdep.
4645 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
4646 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
4647 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
4648 (RETVAL_REGNUM): Move macros from tm-mcore.h
4649 (mcore_reg_struct_has_addr): New function.
4650 (mcore_gdbarch_init): Added initializations for the macros removed
4651 from tm-mcore.h.
4652
4653 2002-07-04 Mark Kettenis <kettenis@gnu.org>
4654
4655 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
4656 traditonal string branding within the ELF header.
4657
4658 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
4659
4660 * symtab.c (remove_params): New function.
4661 (make_symbol_overload_list): Use it instead of cplus_demangle.
4662 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
4663
4664 2002-07-04 Mark Kettenis <kettenis@gnu.org>
4665
4666 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
4667
4668 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
4669 New variables.
4670 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
4671 and tdep->sigtramp_end.
4672 * i386obsd-nat.c: New file.
4673 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
4674
4675 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
4676 Don't call get_current_frame().
4677
4678 2002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
4679
4680 * i386-nat.c (child_post_startup_inferior): New function
4681 calling i386_cleanup_dregs if
4682 I386_USE_GENERIC_WATCHPOINTS is defined.
4683 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
4684 conditional to acknowledge that i386-nat.c has its
4685 own child_post_startup_inferior function.
4686
4687 2002-07-04 Mark Kettenis <kettenis@gnu.org>
4688
4689 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
4690 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
4691 instead of MAX_REGISTER_RAW_SIZE.
4692 (i386_extract_return_value, i386_extract_struct_value_address):
4693 Convert to use regcache.
4694 (i386_gdbarch_init): Set max_register_raw_size and
4695 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
4696 Set extract_return_value and extract_struct_value_address instead
4697 of their deprecated variants.
4698
4699 Convert i386 target to generic dummy frames.
4700 * i386-tdep.c: Include "symfile.h".
4701 (i386_frameless_signal_p): Consider a function to be frameless if
4702 the pc points at the first instruction of the function.
4703 (i386_frame_chain): Handle (generic) call dummies.
4704 (i386_frame_saved_pc): Likewise.
4705 (i386_frame_init_saved_regs): Remove code dealing with call
4706 dummies on the stack.
4707 (i386_push_dummy_frame): Removed.
4708 (i386_call_dummy_words): Removed.
4709 (i386_fix_call_dummy): Removed.
4710 (i386_push_return_address): New function.
4711 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
4712 parameter, and don't call get_current_frame.
4713 (i386_pop_frame): New function.
4714 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
4715 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
4716 entry_point_address, set call_dummy_breakpoint_offset to 0, set
4717 call_dummy_length to 0, set call_dummy_words to NULL, set
4718 sizeof_call_dummy_words to 0, set fix_call_dummy to
4719 generic_fix_call_dummy, set pc_in_call_dummy to
4720 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
4721 generic_push_dummy_frame, set push_return_address to
4722 i386_push_return_address and set frame_chain_valid to
4723 generic_file_frame_chain_valid.
4724
4725 2002-07-03 Andrew Cagney <ac131313@redhat.com>
4726
4727 * gdbarch.sh (struct regcache): Add opaque declaration.
4728 (EXTRACT_RETURN_VALUE): New architecture method.
4729 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
4730 * gdbarch.h, gdbarch.c: Regenerate.
4731 * arch-utils.c (legacy_extract_return_value): New function.
4732 * arch-utils.h (legacy_extract_return_value): Declare.
4733 * values.c (value_being_returned): Re-enable code handling
4734 EXTRACT_STRUCT_VALUE_ADDRESS. Move
4735 deprecated_grub_regcache_for_registers call to block handling
4736 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
4737 (EXTRACT_RETURN_VALUE): Do not define.
4738
4739 2002-07-03 Grace Sainsbury <graces@redhat.com>
4740
4741 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
4742 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
4743 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
4744 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
4745 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
4746 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
4747 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
4748 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
4749 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
4750 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
4751 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
4752 argument so the function fits the prototype in the architecture
4753 vector.
4754 (mcore_pop_frame): Remove argument so the function fits the
4755 prototype. Use get_current_frame instead of the argument.
4756 (mcore_push_arguments): Change type of struct_return so the
4757 function can be used in the architecture vector.
4758 (mcore_store_struct_return): Add.
4759 (mcore_frame_init_saved_regs): Add.
4760 (mcore_gdbarch_init): Add function calls to replace the macros
4761 removed from tm-mcore.h
4762
4763 2002-07-03 Andrew Cagney <ac131313@redhat.com>
4764
4765 * infcmd.c (print_return_value): Remove compatibility code calling
4766 deprecated_grub_regcache_for_registers.
4767
4768 * values.c: Include "regcache.h".
4769 (value_being_returned): Update. Use
4770 deprecated_grub_regcache_for_registers to extract the register
4771 buffer address.
4772 * value.h (value_being_returned): Change ``retbuf'' parameter to a
4773 ``struct regcache''.
4774 * Makefile.in (values.o): Add dependency on $(regcache_h).
4775
4776 * inferior.h (run_stack_dummy): Change type of second parameter to
4777 a ``struct regcache''.
4778 * valops.c (hand_function_call): Change type of retbuf to ``struct
4779 regcache''. Allocate using regcache_xmalloc, clean using
4780 make_cleanup_regcache_xfree.
4781 * infcmd.c (run_stack_dummy): Update. Use
4782 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
4783
4784 * regcache.c (do_regcache_xfree): New function.
4785 (make_cleanup_regcache_xfree): New function.
4786 * regcache.h (make_cleanup_regcache_xfree): Declare.
4787
4788 2002-07-03 Martin M. Hunt <hunt@redhat.com>
4789
4790 * event-top.c (command_line_handler): Don't read past
4791 beginning of buffer.
4792
4793 2002-07-03 Martin M. Hunt <hunt@redhat.com>
4794
4795 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
4796 struct frame_id.
4797 (varobj_create): Store frame_id for root.
4798 (varobj_gen_name): Use xasprintf.
4799 (varobj_update): Save and restore frame using get_frame_id() and
4800 frame_find_by_id().
4801 (create_child): Use xasprintf.
4802 (new_root_variable): Initialize frame_id.
4803 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
4804 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
4805 to prevent memory leak.
4806
4807 2002-07-03 Andrew Cagney <ac131313@redhat.com>
4808
4809 * valops.c (hand_function_call): Move declaration of retbuf to
4810 start of function, allocate using malloc, add a cleanup but before
4811 the inf_status cleanup, cleanup the buffer. Rename local variable
4812 old_chain to inf_status_cleanup.
4813
4814 2002-07-03 Martin M. Hunt <hunt@redhat.com>
4815
4816 * top.c (execute_command): Use cmd_func() and cmd_func_p().
4817
4818 * cli/cli-decode.c (cmd_func_p): New function.
4819 (cmd_func): New function.
4820
4821 * command.h: Add cmd_func() and cmd_func_p().
4822
4823 2002-07-03 Grace Sainsbury <graces@redhat.com>
4824
4825 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
4826 (REGISTER_SIZE): Remove.
4827 (MAX_REGISTER_RAW_SIZE): Remove.
4828 (REGISTER_VIRTUAL_TYPE): Remove.
4829 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
4830 (REGISTER_NAME): Remove.
4831 (USE_GENERIC_DUMMY_FRAMES): Remove.
4832 (CALL_DUMMY): Remove.
4833 (CALL_DUMMY_START_OFFSET): Remove.
4834 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
4835 (CALL_DUMMY_LOCATION): Remove.
4836 (FIX_CALL_DUMMY): Remove.
4837 (CALL_DUMMY_ADDRESS): Remove.
4838 (SIZEOF_CALL_DUMMY_WORDS): Remove.
4839 (SAVE_DUMMY_FRAME_TOS): Remove.
4840 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
4841 (mcore_register_virtual_type): New function.
4842 (mcore_register_byte): New function.
4843 (mcore_register_size): New function.
4844 (mcore_register_name): New function.
4845 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
4846 macros removed from tm-mcore.h.
4847 (mcore_dump_tdep): Add.
4848 (_initialize_mcore_tdep): Add gdbarch_register call.
4849
4850 2002-07-03 Mark Kettenis <kettenis@gnu.org>
4851
4852 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
4853 frameless_look_for_prologue, such that we actually call this
4854 function.
4855
4856 2002-07-02 Joel Brobecker <brobecker@gnat.com>
4857
4858 * frame.h (frame_address_in_block): New function.
4859
4860 * blockframe.c (frame_address_in_block): New function extracted
4861 from get_frame_block().
4862 (get_frame_block): Use frame_address_in_block().
4863 (block_innermost_frame): Use frame_address_in_block() to match
4864 the frame pc address against the block boundaries rather than
4865 the frame pc directly. This prevents a failure when a frame pc
4866 is actually a return-address pointing immediately after the end
4867 of the given block.
4868
4869 2002-07-02 Grace Sainsbury <graces@redhat.com>
4870
4871 * MAINTAINERS: Add self under write after approval.
4872
4873 2002-07-02 Grace Sainsbury <graces@redhat.com>
4874
4875 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
4876 used in architecture vector. The default is
4877 m68k_local_breakpoint_from_pc.
4878 (m68k_local_breakpoint_from_pc): Add.
4879 (enum): Add register numbers from tm-m68k.h.
4880 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
4881 vector.
4882 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
4883 GDB_MULTI_ARCH_PARTIAL.
4884 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
4885 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
4886 m68k-tdep.c.
4887 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
4888 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
4889 to enum in m68k-tdep.c
4890
4891 2002-07-02 Joel Brobecker <brobecker@gnat.com>
4892
4893 * solib-osf.c (open_map): Compute the list of shared libraries
4894 loaded by the inferior, rather than the list of libraries loaded
4895 by GDB itself. Otherwise, GDB ends up reading the symbols from
4896 the wrong shared libraries...
4897
4898 2002-07-02 Mark Kettenis <kettenis@gnu.org>
4899
4900 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
4901 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
4902 macros.
4903 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
4904 Remove functions.
4905 (FRAMELESS_SIGNAL): Remove function.
4906 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
4907 i386_linux_saved_pc_after_call): Removed.
4908 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
4909 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
4910 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
4911
4912 * i386-tdep.c (i386_frameless_signal_p): New function.
4913 (i386_frame_chain): Deal with frameless signals.
4914 (i386_sigtramp_saved_sp): New function.
4915 (i386_frame_saved_pc): Deal with frameless signals.
4916 (i386_saved_pc_after_call): Make sure the correct value is
4917 returned just after entry into a sigtramp.
4918 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
4919 i386fbsd4_sc_sp_offset): New variables.
4920 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
4921 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
4922 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
4923 similiar to what we already did for sc_pc_offset.
4924 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
4925 tdep->sc_sp_offset.
4926
4927 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
4928
4929 2002-07-02 Michal Ludvig <mludvig@suse.cz>
4930
4931 * config/i386/tm-x86-64linux.h: New.
4932 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
4933 definitions.
4934 * config/i386/nm-x86-64.h: Rename to ...
4935 * config/i386/nm-x86-64linux.h: ... this one.
4936 * config/i386/x86-64linux.mh: Reflect the above change.
4937
4938 2002-07-01 Mark Kettenis <kettenis@gnu.org>
4939
4940 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
4941 with sigcontext_addr. Add sc_sp_offset.
4942 (i386bsd_sigtramp_saved_pc): Remove prototype.
4943 (i386bsd_sicontext_addr): Add prototype.
4944 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
4945 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
4946 (i386_svr4_sigtramp_saved_pc): Removed.
4947 (i386_svr4_sigcontext_addr): New function.
4948 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
4949 Initialize tdep->sigcontext_addr instead. Initialize
4950 tdep->sc_pc_offset and tdep->sc_sp_offset.
4951 (i386_gdbarch_init): Likewise.
4952 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
4953 any more.
4954 (i386bsd_sigtramp_saved_pc): Remove function.
4955 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
4956 Initialize tdep->sigcontext_addr instead. Initialize
4957 tdep->sc_pc_offset.
4958 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
4959 of tdep->sigtramp_saved_pc.
4960 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
4961 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
4962 instead.
4963
4964 * i386-tdep.c (i386_frameless_function_invocation,
4965 i386_frame_num_args, i386_frame_init_saved_regs,
4966 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
4967 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
4968 i386_extract_return_value, i386_store_return_value,
4969 i386_extract_struct_value_address, i386_register_virtual_type,
4970 i386_register_convertible, i386_register_convert_to_virtual,
4971 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
4972 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
4973 static.
4974
4975 2002-07-01 Mark Kettenis <kettenis@gnu.org>
4976
4977 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
4978
4979 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
4980 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
4981 this macro. Include "value.h".
4982
4983 2002-06-30 Aidan Skinner <aidan@velvet.net>
4984
4985 * ada-exp.tab.c: remove as it's a generated file
4986 * ada-lex.c: remove as it's a generated file
4987
4988 2002-06-30 Mark Kettenis <kettenis@gnu.org>
4989
4990 * config/i386/tm-i386.h (struct frame_info, struct
4991 frame_saved_regs, struct value, struct type): Remove forward
4992 declarations.
4993
4994 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
4995 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
4996 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
4997 (FILL_FPXREGSET): Define.
4998
4999 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
5000
5001 * configure.tgt (i[3456]86-*-openbsd*): Fold into
5002 i[3456]86-*-netbsd* case.
5003 * config/i386/tm-obsd.h: Removed.
5004 * config/i386/obsd.mt: Removed.
5005 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
5006 core-aout.o.
5007 (MH_CFLAGS): Add -DYYDEBUG=0.
5008
5009 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
5010 i386nbsd_sc_pc_offset on OpenBSD too.
5011
5012 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
5013 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
5014 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
5015 define.
5016 * i386bsd-tdep.c: Include "arch-utils.h".
5017 (i386bsd_aout_in_solib_call_trampoline): New function.
5018 (i386bsd_init_abi): Set in_solib_call_trampoline to
5019 i386bsd_aout_in_solib_call_trampoline.
5020 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
5021 in_solib_call_trampoline to generic_in_solib_call_trampoline.
5022
5023 2002-06-28 Andrew Cagney <ac131313@redhat.com>
5024
5025 * macrotab.h: Do not include "obstack.h" or "bcache.h".
5026 (struct obstack, struct bcache): Add opaque declarations.
5027 * Makefile.in (macrotab_h): Update
5028
5029 2002-06-28 Andrew Cagney <ac131313@redhat.com>
5030
5031 * blockframe.c (generic_find_dummy_frame): Change return type to
5032 ``struct regcache''.
5033 (struct dummy_frame): Replace field ``registers'' with regcache, a
5034 struct regcache object.
5035 (generic_find_dummy_frame): Update.
5036 (generic_push_dummy_frame): Update. Use regcache_xfree,
5037 regcache_xmalloc and regcache_cpy.
5038 (generic_pop_dummy_frame): Update. Use regcache_cpy and
5039 regcache_xfree.
5040 (deprecated_generic_find_dummy_frame): Update.
5041 (generic_read_register_dummy): Update. Use
5042 regcache_read_as_address.
5043 (generic_call_dummy_register_unwind): Update. Use regcache_read.
5044 (generic_get_saved_register): Update. Use regcache_read.
5045
5046 2002-06-28 Andrew Cagney <ac131313@redhat.com>
5047
5048 * Makefile.in (objfiles_h): Add $(bcache_h).
5049 * objfiles.h: Include "bcache.h".
5050
5051 * Makefile.in (symtab_h): Remove $(bcache_h).
5052 * symtab.h: Do not include "bcache.h".
5053
5054 2002-06-28 Andrew Cagney <ac131313@redhat.com>
5055
5056 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
5057 generic_func_frame_chain_valid.
5058
5059 2002-06-28 David O'Brien <obrien@FreeBSD.org>
5060
5061 * config/i386/nm-fbsd.h: Include <sys/param.h>.
5062 * config/i386/tm-fbsd.h: Likewise.
5063
5064 2002-06-28 Andrew Cagney <ac131313@redhat.com>
5065
5066 * rs6000-tdep.c (rs6000_gdbarch_init): Use
5067 generic_unwind_get_saved_register.
5068
5069 2002-06-27 Andrew Cagney <ac131313@redhat.com>
5070
5071 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
5072 * regcache.c (supply_register): Add missing argument to
5073 register_buffer call.
5074
5075 2002-06-27 Andrew Cagney <ac131313@redhat.com>
5076
5077 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
5078 Solaris /bin/grep does not not like it. From Peter Schauer.
5079
5080 2002-06-26 Tom Tromey <tromey@redhat.com>
5081
5082 * command.h (add_setshow_cmd): Declare.
5083 (add_setshow_cmd_full): Declare.
5084 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
5085 returns void. Use add_setshow_cmd_full.
5086 (add_setshow_cmd_full): New function.
5087 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
5088 (add_setshow_boolean_cmd): Likewise.
5089
5090 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
5091
5092 * config/vax/tm-vax.h: Protect from multiple inclusion.
5093 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
5094 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
5095 * config/vax/tm-vaxbsd.h: ...here. New file.
5096 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
5097
5098 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
5099
5100 * config/vax/tm-vax.h (BREAKPOINT): Remove.
5101 (BELIEVE_PCC_PROMOTION): Remove.
5102 (AP_REGNUM): Move to...
5103 * config/vax/nm-vax.h: ...here.
5104 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
5105 (vax_breakpoint_from_pc): New function.
5106 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
5107 and gdbarch_believe_pcc_promotion.
5108
5109 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
5110
5111 * Makefile.in (vax_tdep_h): Define.
5112 (vax-tdep.o): Use $(vax_tdep_h).
5113 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
5114 (vax_dump_tdep): New function.
5115 (_initialize_vax_tdep): Register vax_dump_tdep.
5116 * vax-tdep.h: Include osabi.h.
5117 (struct gdbarch_tdep): New.
5118
5119 2002-06-26 Andrew Cagney <cagney@redhat.com>
5120
5121 * frame.h (deprecated_generic_find_dummy_frame): Rename
5122 generic_find_dummy_frame.
5123 * blockframe.c (generic_find_dummy_frame): Make static.
5124 (deprecated_generic_find_dummy_frame): New function.
5125 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
5126 generic_find_dummy_frame with deprecated_find_dummy_frame.
5127 (sh64_nofp_frame_init_saved_regs): Ditto.
5128 (sh_fp_frame_init_saved_regs): Ditto.
5129 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
5130 (s390_frame_chain): Ditto.
5131 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
5132
5133 2002-06-26 Grace Sainsbury <graces@redhat.com>
5134
5135 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
5136 gdbarch vector are at the top.
5137 (NUM_REGS): Remove.
5138 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
5139 (FRAME_ARGS_ADDRESS): Remove.
5140 (FRAME_LOCALS_ADDRESS): Remove.
5141 (FRAME_NUM_ARGS): Remove.
5142 (FRAME_ARGS_SKIP): Remove.
5143 * m68k-tdep.c (enum): Add eumeration of special register numbers.
5144 (m68k_gdbarch_init): Add gdbarch initializations for macros
5145 undefined in tm-m68k.h
5146
5147 2002-06-26 Grace Sainsbury <graces@redhat.com>
5148
5149 * monitor.h: Add the function regname to monitor_ops
5150 structure. This way NUM_REGS does not have to be a constant.
5151 * monitor.c (monitor_fetch_register): Added support for regname
5152 function. The function is called if the array regnames is NULL.
5153 (monitor_store_register): Same.
5154 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
5155 regnames array.
5156 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
5157 cpu32bug_cmds.regname to point to new function.
5158 * abug-rom.c (abug_regname): Same as above.
5159 (init_abug_cmds): Same.
5160 * dbug-rom.c (dbug_regname): Same as above.
5161 (init_dbug_cmds): Same.
5162 * remote-est.c (est_regname): Same.
5163 (init_est_cmds): Same.
5164 * rom68k-rom.c (rom68k_regname): Same.
5165 (init_rom68k_cmds): Same.
5166
5167 2002-06-25 Tom Tromey <tromey@redhat.com>
5168
5169 * breakpoint.c (delete_command): Don't repeat `delete' commands.
5170
5171 2002-06-25 Andrew Cagney <cagney@redhat.com>
5172
5173 * infrun.c (stop_registers): Change variable's type to ``struct
5174 regcache'''.
5175 (xmalloc_inferior_status): Delete function.
5176 (free_inferior_status): Delete function.
5177 (normal_stop): Use regcache_cpy.
5178 (struct inferior_status): Change type of fields ``stop_registers''
5179 and ``registers'' to ``struct regcache''.
5180 (write_inferior_status_register): Use regcache_write.
5181 (save_inferior_status): Instead of calling
5182 xmalloc_inferior_status, allocate the inf_status buffer directly.
5183 Use regcache_dup_no_passthrough and regcache_dup to save the
5184 buffers.
5185 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
5186 Replace the stop_registers regcache instead of overriding it. Use
5187 regcache_xfree. Instead of calling free_inferior_status, xfree
5188 the buffer directly.
5189 (discard_inferior_status): Use regcache_xfree. Instead of calling
5190 free_inferior_status, xfree the buffer directly.
5191 (build_infrun): Use regcache_xmalloc.
5192 (_initialize_infrun): Delete redundant call to build_infrun.
5193
5194 * Makefile.in (infcmd.o): Add $(regcache_h).
5195
5196 * infcmd.c: Include "regcache.h".
5197 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
5198 obtain the address of `stop_registers' register buffer.
5199 (print_return_value): Ditto.
5200
5201 * inferior.h (struct regcache): Add opaque declaration.
5202 (stop_registers): Change variable's declared type to ``struct
5203 regcache''.
5204
5205 2002-06-24 Tom Tromey <tromey@redhat.com>
5206
5207 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
5208 * target.c (initialize_targets): Fixed typo in
5209 trust-readonly-sections `show' documentation.
5210
5211 * main.c: Marked all strings with _().
5212
5213 2002-06-24 Don Howard <dhoward@redhat.com>
5214
5215 * memattr.c (create_mem_region): Treat hi == 0 as a special case
5216 that means max CORE_ADDR+1.
5217 (lookup_mem_region): Ditto.
5218 (mem_info_command): Ditto.
5219
5220 2002-06-24 Grace Sainsbury <graces@redhat.com>
5221
5222 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
5223 (REGISTER_BYTES_OK): Remove.
5224 (REGISTER_BYTES): Remove.
5225 (STORE_STRUCT_RETURN): Remove.
5226 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
5227 (STORE_RETURN_VALUE): Remove.
5228 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
5229 (FRAME_CHAIN): Remove.
5230 (FRAMELESS_FUNCTION_INVOCATION): Remove.
5231 (FRAME_SAVED_PC): Remove.
5232 * m68k-tdep.c (m68k_register_bytes_ok):Add.
5233 (m68k_store_struct_return): Add.
5234 (m68k_deprecated_extract_return_value): Add.
5235 (m68k_deprecated_extract_struct_value_address): Add.
5236 (m68k_store_return_value): Add.
5237 (m68k_frame_chain): Add.
5238 (m68k_frameless_function_invocation): Add.
5239 (m68k_frame_saved_pc): Add.
5240 (m68k_gdbarch_init): added set_gdbarch calls for new
5241 functions and deleted macros.
5242
5243 2002-06-23 Tom Tromey <tromey@redhat.com>
5244
5245 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
5246 (ALLDEPFILES): Likewise.
5247 (udiheaders): Removed.
5248 (udip2soc.o): Likewise.
5249 (udi2go32.o): Likewise.
5250 (udr.o): Likewise.
5251 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
5252
5253 2002-06-22 Andrew Cagney <ac131313@redhat.com>
5254
5255 * infrun.c (_initialize_infrun): Delete unnecessary call to
5256 build_infrun.
5257
5258 * regcache.h: Update comments describing the regcache_cpy family
5259 of functions.
5260 (regcache_save, regcache_restore): Delete declaration.
5261 (regcache_save_no_passthrough): Delete declaration.
5262 (regcache_restore_no_passthrough): Delete declaration.
5263 * regcache.c (regcache_save): Delete function.
5264 (regcache_save_no_passthrough): Delete function.
5265 (regcache_restore): Delete function.
5266 (regcache_restore_no_passthrough): Delete function.
5267
5268 2002-06-21 Andrew Cagney <ac131313@redhat.com>
5269
5270 * config/m68k/tm-m68k.h: Fix typo.
5271 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
5272 (m68k_frame_init_saved_regs): Declare.
5273
5274 2002-06-21 Jim Blandy <jimb@redhat.com>
5275
5276 Remove some vestiges of Harris 88k support.
5277 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
5278 register numbering quirk.
5279 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
5280 odd symbols occurring in Harris 88k ELF targets.
5281
5282 2002-06-21 Tom Tromey <tromey@redhat.com>
5283
5284 * gdb_locale.h: New file.
5285 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
5286 (defs_h): Added gdb_locale.h.
5287 * configure, config.in: Rebuilt.
5288 * configure.in (PACKAGE): Define.
5289 * defs.h: Include gdb_locale.h.
5290 * main.c (captured_main): Call setlocale, bindtextdomain,
5291 textdomain.
5292
5293 2002-06-21 Dave Brolley <brolley@redhat.com>
5294
5295 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
5296 * config/frv/frv.mt: New file.
5297 * config/frv/tm-frv.h: New file.
5298 * configure.tgt: Support frv-*-*.
5299 * Makefile.in (frv-tdep.o): New target.
5300 * frv-tdep.c: New file.
5301 * NEWS: Mention frv.
5302
5303 2002-06-21 Dave Brolley <brolley@redhat.com>
5304
5305 * MAINTAINERS: Add self to "Write After Approval" list.
5306
5307 2002-06-21 Grace Sainsbury <graces@redhat.com>
5308
5309 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
5310 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
5311 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
5312 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
5313 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
5314
5315 * m68k-tdep.c: Include arch-utils.h
5316 (m68k_register_raw_size): Add.
5317 (m68k_register_virtual_size): Add.
5318 (m68k_register_virtual_type): Add.
5319 (m68k_register_name): Add.
5320 (m68k_stack_align): Add.
5321 (m68k_register_byte): Add.
5322 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
5323 tm-m68k.h.
5324
5325 2002-06-21 Grace Sainsbury <graces@redhat.com>
5326
5327 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
5328 m68k_find_saved_regs.
5329 (m68k_pop_frame): Removed saved_regs structure, and replaced
5330 references to it with frame->saved_regs.
5331 (m68k_gdbarch_init): Added function calls to initialize the
5332 gdbarch structure.
5333 (m68k_fix_call_dummy): Add.
5334 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
5335 (CALL_DUMMY): Remove.
5336 (CALL_DUMMY_LENGTH): Remove.
5337 (CALL_DUMMY_START_OFFSET): Remove.
5338 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
5339 (FIX_CALL_DUMMY): Remove.
5340 (PUSH_DUMMY_FRAME): Remove.
5341 (POP_FRAME): Remove.
5342
5343 2002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
5344
5345 * parse.c (parse_fprintf): New function used to avoid calls to
5346 fprintf in bison parser generated debug code.
5347 * parser-defs.h: Declaration of new parse_fprintf function.
5348 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
5349 Set YYDEBUG to 1 by default.
5350 Set YYFPRINTF as parse_fprintf.
5351
5352 2002-06-21 Michal Ludvig <mludvig@suse.cz>
5353
5354 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
5355 encoding anymore.
5356 (pointer_encoding, enum ptr_encoding): New.
5357 (execute_cfa_program): Take care about pointer encoding.
5358 (dwarf2_build_frame_info): Only call parse_frame_info for
5359 .debug_frame and .eh_frame.
5360 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
5361 fixed augmentation handling, added relative addressing,
5362 ignore duplicate FDEs. Added comments.
5363 * dwarf2cfi.c: Reindented.
5364
5365 2002-06-20 Elena Zannoni <ezannoni@redhat.com>
5366
5367 * event-top.c (command_handler): Don't use space_at_cmd_start
5368 unless there is sbrk() on the host. Assign time and space data
5369 to union fields of the appropriate length.
5370
5371 2002-06-20 Michal Ludvig <mludvig@suse.cz>
5372
5373 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
5374 x86_64_register_name. Return type changed to 'const char *'.
5375 (x86_64_register_name2nr): Rename to x86_64_register_number.
5376 (x86_64_gdbarch_init): Update to reflect the change.
5377 * x86-64-tdep.h: Ditto.
5378 * x86-64-linux-nat.c (x86_64_fxsave_offset)
5379 (supply_fpregset): Ditto.
5380
5381 2002-06-19 Andrew Cagney <cagney@redhat.com>
5382
5383 * regcache.h: Update copyright.
5384 (struct regcache, struct gdbarch): Add opaque declarations.
5385 (current_regcache): Declare global variable.
5386 (regcache_read, regcache_write): Add gdbarch parameter.
5387 (regcache_save, regcache_save_no_passthrough)
5388 (regcache_restore, regcache_restore_no_passthrough)
5389 (regcache_dup, regcache_dup_no_passthrough)
5390 (regcache_cpy, regcache_cpy_no_passthrough)
5391 (deprecated_grub_regcache_for_registers)
5392 (deprecated_grub_regcache_for_register_valid)
5393 (regcache_valid_p): Add function declarations.
5394
5395 * regcache.c: Update copyright.
5396 (regcache_descr_handle): New global variable.
5397 (struct regcache_descr): Define.
5398 (init_legacy_regcache_descr, init_regcache_descr): New functions.
5399 (regcache_descr, xfree_regcache_descr): New functions.
5400 (struct regcache): Define.
5401 (regcache_xmalloc, regcache_xfree): New functions.
5402 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
5403 (regcache_dup, regcache_dup_no_passthrough): New functions.
5404 (regcache_valid_p, regcache_read_as_address): New functions.
5405 (deprecated_grub_regcache_for_registers): New function.
5406 (deprecated_grub_regcache_for_register_valid): New function.
5407 (current_regcache): New global variable.
5408 (register_buffer): Add regcache parameter. Update calls.
5409 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
5410 (read_register_gen, write_register_gen): Update register_buffer
5411 call. Test for legacy_p instead of gdbarch_register_read_p or
5412 gdbarch_register_write_p.
5413 (regcache_collect): Update register_buffer call.
5414 (build_regcache): Rewrite. Use deprecated grub functions.
5415 (regcache_save, regcache_save_no_passthrough): New functions.
5416 (regcache_restore, regcache_restore_no_passthrough): New
5417 functions.
5418 (_initialize_regcache): Create the regcache_data_handle. Swap
5419 current_regcache global variable.
5420
5421 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
5422 parameter to regcache_read and regcache_write calls.
5423 (sh4_register_read): Ditto.
5424 (sh64_pseudo_register_read): Ditto.
5425 (sh64_register_read): Ditto.
5426 (sh_pseudo_register_write): Ditto.
5427 (sh4_register_write): Ditto.
5428 (sh64_pseudo_register_write): Ditto.
5429 (sh64_register_write): Ditto.
5430
5431 * defs.h (XCALLOC): Define.
5432
5433 2002-06-19 Grace Sainsbury <graces@redhat.com>
5434
5435 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
5436 * m68k-tdep.c (m68k_gdbarch_init): Added.
5437 (m68k_dump_tdep): Added.
5438
5439 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
5440
5441 * ada-lang.c (fill_in_ada_prototype): Update comment.
5442
5443 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
5444
5445 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
5446 MIPS_ABI_LAST.
5447 (mips_abi_string, mips_abi_strings): New.
5448 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
5449 (mips_gdbarch_init): Set tdep->found_abi. Don't set
5450 tdep->mips_abi_string. Honor mips_abi_string. Default to
5451 O32 if no ABI is found.
5452 (mips_dump_tdep): Use mips_abi_strings.
5453 (mips_abi_update): New function.
5454 (_initialize_mips_tdep): Initialize mips_abi_string. Add
5455 ``set mips abi'' and ``show mips abi''. Check the size of
5456 mips_abi_strings.
5457
5458 2002-06-19 Andrew Cagney <cagney@redhat.com>
5459
5460 * i386-linux-tdep.c (i386_linux_register_name): Make return type
5461 constant.
5462
5463 2002-06-18 Joel Brobecker <brobecker@gnat.com>
5464
5465 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
5466 current frame using only the first stack size adjustment. All
5467 subsequent size adjustments are not considered to be part of
5468 the "static" part of the current frame.
5469 Compute the address of the saved registers relative to the
5470 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
5471 in use in this frame.
5472
5473 2002-06-18 Don Howard <dhoward@redhat.com>
5474
5475 * valops.c (value_ind): Use value_at_lazy() when dereferencing
5476 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
5477 suggesting this solution.
5478
5479 2002-06-18 Andrew Cagney <ac131313@redhat.com>
5480
5481 * config/romp/xm-rtbsd.h: Delete file.
5482 * config/romp/rtbsd.mh: Delete file.
5483
5484 2002-06-18 Keith Seitz <keiths@redhat.com>
5485
5486 * breakpoint.c (condition_command): Post breakpoint_modify
5487 when a condition is added to an existing breakpoint.
5488 (commands_command): Likewise for commands.
5489 (set_ignore_count): Likewise for ignore counts.
5490 If no tty, do not simply return, still need to send event
5491 notification.
5492 (ignore_command): Only print a newline if the command came
5493 from a tty.
5494 Don't call breakpoints_changed, since this is now properly
5495 handled by set_ignore_count.
5496
5497 2002-06-18 Andrew Cagney <cagney@redhat.com>
5498
5499 * MAINTAINERS: Note that cris-elf target can be compiled with
5500 -Werror.
5501 * cris-tdep.c (cris_register_name): Make return type constant.
5502 (cris_breakpoint_from_pc): Ditto.
5503
5504 2002-06-18 Michal Ludvig <mludvig@suse.cz>
5505
5506 * frame.h (struct frame_info): Change type of context to
5507 'struct context'.
5508
5509 2002-06-17 Andrew Cagney <cagney@redhat.com>
5510
5511 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
5512 pointer.
5513 * gdbarch.h, gdbarch.c: Regenerate.
5514 * config/mips/tm-mips.h (mips_register_name): Update.
5515 * i386-tdep.h (i386_register_name): Update.
5516 * mips-tdep.c (mips_register_name): Update
5517 * alpha-tdep.c (alpha_register_name): Update.
5518 * arch-utils.c (legacy_register_name): Update.
5519 * arch-utils.h (legacy_register_name): Update.
5520 * avr-tdep.c (avr_register_name): Update.
5521 * ia64-tdep.c (ia64_register_name): Update.
5522 * i386-tdep.c (i386_register_name): Update.
5523 * sparc-tdep.c (sparc32_register_name): Update.
5524 (sparc64_register_name): Update.
5525 (sparclite_register_name): Update.
5526 (sparclet_register_name): Update.
5527 * sh-tdep.c (sh_generic_register_name): Update.
5528 (sh_sh_register_name): Update.
5529 (sh_sh3_register_name): Update.
5530 (sh_sh3e_register_name): Update.
5531 (sh_sh_dsp_register_name): Update.
5532 (sh_sh3_dsp_register_name): Update.
5533 (sh_sh4_register_name): Update.
5534 (sh_sh64_register_name): Update.
5535 * s390-tdep.c (s390_register_name): Update.
5536 * rs6000-tdep.c (rs6000_register_name): Update.
5537 * ns32k-tdep.c (ns32k_register_name_32082): Update.
5538 (ns32k_register_name_32382): Update.
5539 * d10v-tdep.c (d10v_ts2_register_name): Update.
5540 (d10v_ts3_register_name): Update.
5541 * xstormy16-tdep.c (xstormy16_register_name): Update.
5542 * vax-tdep.c (vax_register_name): Update.
5543 * v850-tdep.c (v850_register_name): Update.
5544 * m68hc11-tdep.c (m68hc11_register_name): Update.
5545 * mn10300-tdep.c (mn10300_generic_register_name): Update.
5546 (am33_register_name): Update.
5547
5548 2002-06-17 Grace Sainsbury <graces@redhat.com>
5549
5550 * m68k-tdep.c: Reindented.
5551
5552 2002-06-17 Andrew Cagney <ac131313@redhat.com>
5553
5554 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
5555 list of predefined types.
5556
5557 2002-06-16 Mark Kettenis <kettenis@gnu.org>
5558
5559 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
5560 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
5561 REGISTER_CONVERT_TO_RAW): Remove defines.
5562 (i386_register_virtual_type, i386_register_convertible,
5563 i386_register_convert_to_virtual, i386_register_convert_to_raw):
5564 Remove prototypes.
5565 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
5566 macros mentioned above.
5567
5568 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
5569 (i386lynx_saved_pc_after_call): Remove prototype.
5570 * i386ly-tdep.c: Include "i386-tdep.h".
5571 (i386lynx_saved_pc_after_call): Make static. Use
5572 read_memory_nobpt instead of read_memory. Use
5573 read_memory_unsigned_integer instead of read_memory_integer.
5574 (i386lynx_init_abi): New function.
5575 (i386lynx_coff_osabi_sniffer): New function.
5576 (_initialize_i386bsd_tdep): New function.
5577
5578 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
5579 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
5580 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
5581 (i386_fix_call_dummy): Remove prototype.
5582 * i386-tdep.c (i386_call_dummy_words): New variable.
5583 (i386_gdbarch_init): Adjust for removal of the
5584 macros mentioned above.
5585
5586 2002-06-15 Andrew Cagney <ac131313@redhat.com>
5587
5588 * command.h (add_setshow_auto_boolean_cmd): Replace
5589 add_set_auto_boolean_cmd.
5590 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
5591 add_set_auto_boolean_cmd.
5592 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
5593 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
5594 mask-address'' command.
5595 (show_mask_address): Add cmd parameter.
5596 * remote.c (add_packet_config_cmd): Update. Change type of
5597 set_func and show_func to cmd_sfunc_ftype.
5598 (_initialize_remote): Update `set remote Z-packet'
5599 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
5600 (show_remote_protocol_e_packet_cmd): Ditto.
5601 (show_remote_protocol_E_packet_cmd): Ditto.
5602 (show_remote_protocol_P_packet_cmd): Ditto.
5603 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
5604 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
5605 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
5606 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
5607 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
5608 (show_remote_protocol_Z_packet_cmd): Ditto.
5609 (show_remote_protocol_binary_download_cmd): Ditto.
5610 (show_remote_cmd): Pass NULL to all of above.
5611
5612 2002-06-15 Mark Kettenis <kettenis@gnu.org>
5613
5614 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
5615 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
5616 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
5617 POP_FRAME): Remove defines.
5618 (i386_push_arguments, i386_store_struct_return,
5619 i386_extract_return_value, i386_store_return_value,
5620 i386_extract_struct_value_address, i386_push_dummy_frame,
5621 i386_pop_frame): Renove prototypes.
5622 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
5623 macros mentioned above.
5624
5625 2002-06-15 Andrew Cagney <ac131313@redhat.com>
5626
5627 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
5628 add_set_boolean_cmd.
5629 (add_setshow_cmd): New function.
5630 * command.h (add_setshow_boolean_cmd): Replace
5631 add_set_boolean_cmd.
5632 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
5633 and ``set rdiromatzero''.
5634 * maint.c (_initialize_maint_cmds): Update commented out code.
5635 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
5636 * target.c (initialize_targets): Update `set
5637 trust-readonly-sections'.
5638 * remote.c (_initialize_remote): Update `set remotebreak'.
5639
5640 2002-06-15 Mark Kettenis <kettenis@gnu.org>
5641
5642 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
5643 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
5644 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
5645 fit into multi-arch framework.
5646 (i386_breakpoint_from_pc): New function.
5647 (i386_gdbarch_init): Adjust for removal of the macros mentioned
5648 above.
5649
5650 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
5651 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
5652 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
5653 (i386_frameless_function_invocation, i386_frame_num_args,
5654 i386_frame_init_saved_regs): Remove prototypes.
5655 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
5656 macros mentioned above.
5657
5658 2002-06-15 Andrew Cagney <ac131313@redhat.com>
5659
5660 * cli/cli-decode.c (set_cmd_cfunc): Update.
5661 (set_cmd_sfunc): Update.
5662 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
5663 (set_cmd_sfunc, set_cmd_cfunc): Update.
5664 * cli/cli-decode.h: Update.
5665
5666 2002-06-15 Mark Kettenis <kettenis@gnu.org>
5667
5668 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
5669 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
5670
5671 2002-06-15 Andrew Cagney <ac131313@redhat.com>
5672
5673 * defs.h (auto_boolean): Declare enum.
5674 * command.h (cmd_auto_boolean): Delete enum.
5675 * mips-tdep.c (mask_address_var): Update.
5676 (mips_mask_address_p): Update.
5677 (show_mask_address): Update.
5678 * remote.c (struct packet_config): Update.
5679 (update_packet_config): Update.
5680 (show_packet_config_cmd): Update.
5681 (packet_ok): Update.
5682 (add_packet_config_cmd): Update.
5683 (_initialize_remote):
5684 * command.h: Update.
5685 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
5686 (do_setshow_command): Update.
5687 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
5688 * cli/cli-decode.h: Update.
5689
5690 2002-06-15 Mark Kettenis <kettenis@gnu.org>
5691
5692 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
5693 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
5694 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
5695 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
5696 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
5697 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
5698
5699 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
5700 list of DJGPP COFF targets.
5701
5702 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
5703 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
5704 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
5705 (FP0_REGNUM): Remove define.
5706 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
5707 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
5708 (i386_register_virtual_size): Remove protoype.
5709 * i386-tdep.c (i386_register_virtual_size): Removed.
5710 (i386_extract_return_value, i386_store_return_value): Use
5711 FP0_REGNUM instead of NUM_FREGS to determine whether the
5712 floating-point registers are available.
5713 (i386_gdbarch_init): Tweak FIXME about FPU registers.
5714 Adjust for removal of macros mentioned above.
5715
5716 2002-06-15 Mark Kettenis <kettenis@gnu.org>
5717
5718 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
5719 comments.
5720 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
5721 Remove prototypes.
5722 (supply_gregset, fill_gregset): Remove use of register keyword and
5723 remove declaration for regmap. Use I386_NUM_GREGS instead of
5724 NUM_REGS and NUM_FREGS.
5725 (FPREGSET_FSAVE_OFFSET): Remove.
5726 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
5727 NUM_FREGS to determine whether the floating-point registers are
5728 available.
5729
5730 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
5731 gnu_store_registers): Replace usage of NUM_GREGS with
5732 I386_NUM_GREGS.
5733
5734 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
5735 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
5736 usage of NUM_GREGS with I386_NUM_GREGS.
5737
5738 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
5739
5740 * i386bsd-nat.c: Include "i386-tdep.h".
5741 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
5742 I386_NUM_GREGS.
5743
5744 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
5745 and associated comment. They no longer make any sense, since we
5746 don't use this file anymore on Linux.
5747
5748 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
5749 * i386-tdep.c (i386_register_offset, i386_register_size): Use
5750 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
5751 elements in these arrays.
5752 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
5753 MAX_NUM_REGS.
5754
5755 2002-06-15 Mark Kettenis <kettenis@gnu.org>
5756
5757 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
5758 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
5759
5760 2002-06-14 Andrew Cagney <cagney@redhat.com>
5761
5762 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
5763 EXTRACT_RETURN_VALUE.
5764 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
5765 EXTRACT_STRUCT_VALUE_ADDRESS.
5766 * gdbarch.h, gdbarch.c: Regenerate.
5767
5768 * values.c (value_being_returned): Handle
5769 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
5770 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
5771
5772 * arm-linux-tdep.c (arm_linux_init_abi): Update.
5773 * arm-tdep.c (arm_gdbarch_init): Update.
5774 * avr-tdep.c (avr_gdbarch_init): Update.
5775 * cris-tdep.c (cris_gdbarch_init): Update.
5776 * d10v-tdep.c (d10v_gdbarch_init): Update.
5777 * ia64-tdep.c (ia64_gdbarch_init): Update.
5778 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5779 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5780 * s390-tdep.c (s390_gdbarch_init): Update.
5781 * sh-tdep.c (sh_gdbarch_init): Update.
5782 * s390-tdep.c (s390_gdbarch_init): Update.
5783 * sparc-tdep.c (sparc_gdbarch_init): Update.
5784 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5785 * v850-tdep.c (v850_gdbarch_init): Update.
5786 * vax-tdep.c (vax_gdbarch_init): Update.
5787 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
5788 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5789
5790 * config/arc/tm-arc.h: Update.
5791 * config/d30v/tm-d30v.h: Update.
5792 * config/fr30/tm-fr30.h: Update.
5793 * config/h8300/tm-h8300.h: Update.
5794 * config/h8500/tm-h8500.h: Update.
5795 * config/i386/tm-i386.h: Update.
5796 * config/i386/tm-ptx.h: Update.
5797 * config/i386/tm-symmetry.h: Update.
5798 * config/i960/tm-i960.h: Update.
5799 * config/m32r/tm-m32r.h: Update.
5800 * config/m68k/tm-delta68.h: Update.
5801 * config/m68k/tm-linux.h: Update.
5802 * config/m68k/tm-m68k.h: Update.
5803 * config/m88k/tm-m88k.h: Update.
5804 * config/mcore/tm-mcore.h: Update.
5805 * config/mips/tm-mips.h: Update.
5806 * config/mn10200/tm-mn10200.h: Update.
5807 * config/pa/tm-hppa.h: Update.
5808 * config/pa/tm-hppa64.h: Update.
5809 * config/sparc/tm-sp64.h: Update.
5810 * config/sparc/tm-sparc.h: Update.
5811 * config/sparc/tm-sparclet.h: Update.
5812 * config/z8k/tm-z8k.h: Update.
5813
5814 2002-06-14 Andrew Cagney <cagney@redhat.com>
5815
5816 * Makefile.in (i386_linux_tdep_h): Define.
5817 (i386_tdep_h, i387_tdep_h): Define.
5818 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
5819 $(i386_tdep_h) and $(i387_tdep_h).
5820 * i386-linux-nat.c: Include "i386-linux-tdep.h".
5821
5822 2002-06-14 Mark Kettenis <kettenis@gnu.org>
5823
5824 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
5825 Already covered by the default.
5826
5827 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
5828 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
5829 (i386_gdbarch_init): Initialize long_double_format and long_double
5830 bit.
5831
5832 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
5833 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
5834 Move these to ...
5835 * config/i386/i386sol2.mh: ... here.
5836 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
5837 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
5838 (SIGCONTEXT_PC_OFFSET): Remove define.
5839 (IN_SIGTRAMP): Remove define.
5840 * i386-sol2-tdep.c: New file.
5841
5842 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
5843 * config/i386/tm-i386nw.h: Removed.
5844
5845 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
5846 USE_STRUCT_CONVENTION): Remove defines.
5847 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5848 (get_longjmp_target): Remove prototype.
5849 (IN_SIGTRAMP): Remove define.
5850 (i386bsd_in_sigtramp): Remove prototype.
5851 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
5852 function. Update comment accordingly
5853 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
5854 (FRAME_SAVED_PC): Remove define.
5855 (i386bsd_frame_saved_pc): Remove prototype.
5856 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
5857 GET_LONGJMP_TARGET): Remove defines.
5858 (get_longjmp_target): Remove prototype.
5859 (IN_SIGTRAMP): Remove define.
5860 (i386bsd_in_sigtramp): Remove prototype.
5861 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
5862 function. Update comment accordingly
5863 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
5864 (FRAME_SAVED_PC): Remove define.
5865 (i386bsd_frame_saved_pc): Remove prototype.
5866 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
5867 Remove prototype.
5868 (USE_STRUCT_CONVENTION): Remove prototype.
5869 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
5870 declaration.
5871 (_initialize_i386bsd_nat): Revise logic to determine some
5872 constants at compile time when compiling a native GDB. Warn if
5873 things don't match up with what we expect.
5874 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
5875 Remove variables.
5876 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
5877 to use date stored in `struct gdbarch_tdep'.
5878 (i386bsd_sigcontext_offset): Remove varaible.
5879 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
5880 stored in `struct gdbarch_tdep'.
5881 (i386bsd_frame_saved_pc): Make static.
5882 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
5883 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
5884 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
5885 i386fbsd4_sc_pc_offset): New variables.
5886 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
5887 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
5888 functions.
5889 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
5890 functions.
5891 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
5892 Modify the value of i386fbsd_sigtramp_start and
5893 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
5894 i386fbsd_sigtramp_end.
5895 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
5896 function.
5897
5898 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
5899 define to i386-linux-tdep.h.
5900 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
5901 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
5902 defines.
5903 (i386_linux_register_name, i386_linux_register_byte,
5904 i386_linux_register_raw_size): Remove prototypes.
5905 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
5906 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
5907 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
5908 TARGET_WRITE_PC): Remove defines.
5909 (i386_linux_in_sigtramp, i386_linux_frame_chain,
5910 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
5911 i386_linux_write_pc): Remove prototypes.
5912 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5913 (get_longjmp_target): Remove prototype.
5914 * i386-linux-tdep.h: New file.
5915 * i386-linux-nat.c: Include "i386-linux-tdep.h".
5916 * i386-linux-tdep.c: Include "i386-tdep.h" and
5917 "i386-linux-tdep.h".
5918 (i386_linux_register_name, i386_linux_register_byte,
5919 i386_linux_register_raw_size, i386_linux_in_sigtramp,
5920 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
5921 Make static.
5922 (i386_linux_init_abi): New function.
5923 (_initialize_i386_linux_tdep): New function.
5924
5925 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
5926 (i386_saved_pc_after_call): Remove prototype.
5927 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
5928 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
5929 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
5930 (i386_register_name, i386_stab_reg_to_regnum,
5931 i386_dwarf_reg_to_regnum): Remove prototypes.
5932 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
5933 SIZEOF_SSE_REGS): Remove defines.
5934 (REGISTER_BYTES): Remove define.
5935 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
5936 (i386_register_byte, i386_register_raw_size): Remove prototypes.
5937 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
5938 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
5939 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
5940 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
5941 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
5942 (get_longjmp_target): Remove prototype.
5943 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
5944 (sigtramp_saved_pc): Remove define.
5945 (i386v4_sigtramp_saved_pc): Remove prototype.
5946 * config/i386/tm-go32.h (FRAME_CHAIN,
5947 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
5948 (i386go32_frame_saved_pc): Remove prototype.
5949 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5950 (get_longjmp_target): Remove prototype.
5951 * i386-tdep.h: Include "osabi.h".
5952 (enum i386_abi): Removed.
5953 (enum struct_return): New enum.
5954 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
5955 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
5956 sc_pc_offset members.
5957 (i386_gdbarch_register_os_abi): Remove prototype.
5958 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
5959 I386_SSE_NUM_REGS): New defines.
5960 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
5961 I386_SSE_SIZEOF_REGS): New defines.
5962 (i386_register_name, i386_register_byte, i386_register_raw_size):
5963 New prototypes.
5964 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
5965 (i386bsd_sigtramp_saved_pc): New prototype.
5966 * i386-tdep.c: Don't include "elf-bfd.h".
5967 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
5968 i386_frame_chain, i386_saved_pc_after_call): Make static.
5969 (i386_frame_saved_pc): Rewrite to call architecture dependent
5970 function to deal with signal handlers. Make static.
5971 (i386go32_frame_saved_pc): Removed.
5972 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
5973 Removed.
5974 (i386_get_longjmp_target): New function.
5975 (default_struct_convention, pcc_struct_convention,
5976 reg_struct_convention, valid_conventions, struct_convention): New
5977 variables.
5978 (i386_use_struct_convention): New function.
5979 (i386v4_sigtramp_saved_pc): Renamed to
5980 i386_svr4_sigtramp_saved_pc. Made static. Moved.
5981 (i386_pc_in_sigtramp): New function.
5982 (i386_abi_names): Removed.
5983 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
5984 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
5985 Removed.
5986 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
5987 i386_gdbarch_register_os_abi): Removed.
5988 (struct i386_abi_handler): Removed.
5989 (i386_abi_handler_list): Removed.
5990 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
5991 functions.
5992 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
5993 i386_nw_init_abi): New functions.
5994 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
5995 Use set_gdbarch_xxx() calls instead of relying on macros for a
5996 number of calls.
5997 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
5998 (_initialize_i386_tdep): Add new 'struct-convcention' command.
5999 Register the various architecture variants defined in this file.
6000
6001 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
6002
6003 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
6004 (struct main_type): Remove arg_types member. Update comments for
6005 struct field.
6006 (TYPE_ARG_TYPES): Remove.
6007 (TYPE_FN_FIELD_ARGS): Update.
6008 (smash_to_method_type): Update prototype.
6009
6010 * c-typeprint.c (cp_type_print_method_args): Take method type
6011 instead of argument list. Use new argument layout. Simplify.
6012 (c_type_print_args): Use new argument layout. Simplify.
6013 (c_type_print_base): Update call to cp_type_print_method_args.
6014 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
6015 argument; use die->type instead. Update call to
6016 smash_to_method_type.
6017 (read_structure_scope): Update call to dwarf2_add_member_fn.
6018 * gdbtypes.c (allocate_stub_method): Update comment.
6019 (smash_to_method_type): Take new NARGS and VARARGS arguments.
6020 Use new argument layout.
6021 (check_stub_method): Use new argument layout. Don't count
6022 void as an argument.
6023 (print_arg_types): Update comments. Use new argument layout.
6024 (recursive_dump_type): Don't print arg_types member.
6025 * hpread.c (hpread_read_struct_type): Use new argument layout.
6026 (fixup_class_method_type): Likewise.
6027 (hpread_type_lookup): Likewise.
6028 * stabsread.c (read_type): Update calls to read_args and
6029 smash_to_method_type.
6030 (read_args): Use new argument layout. Simplify.
6031 * valops.c (typecmp): Use new argument layout. Update parameters
6032 and comments. Simplify.
6033 (hand_function_call): Use new argument layout.
6034 (search_struct_method): Update call to typecmp.
6035 (find_overload_match): Use new argument layout.
6036
6037 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
6038
6039 * NEWS: Mention multithreaded debug support for gdbserver.
6040
6041 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
6042
6043 * MAINTAINERS: Mention NEWS.
6044
6045 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
6046
6047 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
6048 (struct mips_objfile_private, compare_pdr_entries): New.
6049 (non_heuristic_proc_desc): Read the ".pdr" section if it
6050 is present.
6051
6052 2002-06-12 Andrew Cagney <ac131313@redhat.com>
6053
6054 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
6055 (arm_debug): New static variable.
6056 (_initialize_arm_tdep): Add ``set debug arm'' command.
6057
6058 2002-06-12 Andrew Cagney <ac131313@redhat.com>
6059
6060 * Makefile.in (sim_arm_h): Define.
6061 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
6062 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
6063 (arm_register_sim_regno): New function, map an internal REGNUM
6064 onto a simulator register number.
6065 (arm_gdbarch_init): Set register_sim_regno.
6066
6067 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
6068
6069 * MAINTAINERS: Add self.
6070
6071 2002-06-11 Jim Blandy <jimb@redhat.com>
6072
6073 * source.c (source_info): Mention whether the symtab has
6074 information about preprocessor macros.
6075
6076 Call the command `info macro', not `show macro'.
6077 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
6078 Fix error message.
6079 (_initialize_macrocmd): Register `info_macro_command' in
6080 `infolist', not `showlist'.
6081
6082 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
6083
6084 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
6085 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
6086 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
6087 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
6088 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
6089 unconditionally.
6090 (set_mipsfpu_single_command, set_mipsfpu_double_command)
6091 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
6092 (_initialize_mips_tdep): Remove dead code.
6093 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
6094 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
6095 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
6096 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
6097 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
6098 MIPS_LAST_FP_ARG_REGNUM): Remove.
6099
6100 2002-06-11 Michal Ludvig <mludvig@suse.cz>
6101
6102 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
6103 (unwind_tmp_obstack_free, parse_frame_info)
6104 (update_context, cfi_read_fp, cfi_write_fp)
6105 (cfi_frame_chain, cfi_init_extra_frame_info)
6106 (cfi_virtual_frame_pointer): Use the above function.
6107 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
6108
6109 2002-06-11 Corinna Vinschen <vinschen@redhat.com>
6110
6111 * v850-tdep.c (v850_type_is_scalar): New function.
6112 (v850_use_struct_convention): Match current gcc implementation
6113 as close as possible.
6114 (v850_push_arguments): Fix stack_offset handling. Don't write
6115 struct_addr into register. This is done by v850_store_struct_return.
6116 (v850_extract_return_value): Care for structs.
6117 (v850_store_return_value): Ditto.
6118 (v850_store_struct_return): Actually write address.
6119
6120 2002-06-11 Michal Ludvig <mludvig@suse.cz>
6121
6122 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
6123 without debug information too.
6124
6125 2002-06-10 Andrew Cagney <ac131313@redhat.com>
6126
6127 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
6128 Make multi-arch pure.
6129 * gdbarch.h, gdbarch.c: Re-generate.
6130 * arm-tdep.c (arm_print_float_info): Update.
6131 * arch-utils.h (default_print_float_info): Update.
6132 * arch-utils.c (default_print_float_info): Update.
6133 * infcmd.c (float_info): Update call.
6134
6135 2002-06-10 Andrew Cagney <ac131313@redhat.com>
6136
6137 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
6138 the front of the initialize list.
6139
6140 2002-06-10 Andrew Cagney <ac131313@redhat.com>
6141
6142 * infrun.c (struct inferior_status): Replace fields
6143 selected_frame_address and selected_level with field
6144 selected_frame_id.
6145 (save_inferior_status): Update. Use get_frame_id.
6146 (struct restore_selected_frame_args): Delete.
6147 (restore_selected_frame): Update. Use frame_find_by_id.
6148 (restore_inferior_status): Update.
6149
6150 * breakpoint.h (struct breakpoint): Change type of
6151 watchpoint_frame to frame_id.
6152 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
6153 call to get_current_frame.
6154 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
6155 get_current_frame.
6156 (watchpoint_check): Use frame_find_by_id.
6157
6158 * frame.h (record_selected_frame): Delete declaration.
6159 * stack.c (record_selected_frame): Delete function.
6160
6161 * frame.h (struct frame_id): Define.
6162 (get_frame_id): Declare.
6163 (frame_find_by_id): Declare.
6164 * frame.c (frame_find_by_id): New function.
6165 (get_frame_id): New function.
6166
6167 2002-06-10 Andrey Volkov <avolkov@transas.com>
6168
6169 * ser-e7kpc.c: Fix duplicated define and call of
6170 _initialize_ser_e7000pc
6171
6172 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
6173
6174 * signals/signals.c (target_signal_from_host): Fix #ifdef
6175 SIGRTMIN case.
6176 (do_target_signal_to_host): Likewise.
6177
6178 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
6179
6180 * mips-tdep.c (mips_find_abi_section): New function.
6181 (mips_gdbarch_init): Call it.
6182
6183 2002-06-09 Mark Kettenis <kettenis@gnu.org>
6184
6185 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
6186 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
6187 after Andrew's 2002-06-08 gdbarch change.
6188
6189 2002-06-09 Mark Kettenis <kettenis@gnu.org>
6190
6191 * i386-linux-nat.c (suppy_gregset): Don't supply
6192 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
6193 register cache.
6194 (fill_gregset): Don't fetch it under the same circumstances.
6195
6196 2002-06-09 Andrew Cagney <cagney@redhat.com>
6197
6198 * Makefile.in (callback_h): Define.
6199 (remote_sim_h): Update path to remote-sim.h.
6200 (remote-rdp.o): Add $(callback_h).
6201 (remote-sim.o): Use $(callback_h).
6202 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
6203 * remote-rdp.c: Include "gdb/callback.h".
6204
6205 2002-06-09 Mark Kettenis <kettenis@gnu.org>
6206
6207 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
6208 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
6209
6210 2002-06-08 Andrew Cagney <ac131313@redhat.com>
6211
6212 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
6213 * rdi-share/serpardr.c: Ditto.
6214 * rdi-share/unixcomm.c: Ditto.
6215 * rdi-share/serdrv.c: Ditto.
6216 * rdi-share/hostchan.h: Ditto.
6217 * rdi-share/hostchan.c: Ditto.
6218 * rdi-share/host.h: Ditto.
6219 * rdi-share/devsw.c: Ditto.
6220
6221 * objfiles.h: Change type of obj_private to void pointer.
6222 * pa64solib.c: Update copyright. Don't include "assert.h", use
6223 strcmp instead of STREQ, use LONGEST, do not use PTR
6224 * somsolib.c: Ditto.
6225
6226 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
6227 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
6228 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
6229
6230 2002-06-08 Andrew Cagney <ac131313@redhat.com>
6231
6232 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
6233 (default_get_saved_register): Delete function.
6234 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
6235 generic_unwind_get_saved_register.
6236 * gdbarch.h, gdbarch.c: Re-generate.
6237
6238 2002-06-08 Andrew Cagney <ac131313@redhat.com>
6239
6240 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
6241 generic_func_frame_chain_valid.
6242 * gdbarch.h, gdbarch.c: Re-generate.
6243 * blockframe.c (generic_func_frame_chain_valid): Only check
6244 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
6245 passing FP to PC_IN_CALL_DUMMY.
6246 Fix PR gdb/360.
6247
6248 2002-06-08 Andrew Cagney <ac131313@redhat.com>
6249
6250 * gdbarch.sh (struct gdbarch_data): Add field init_p.
6251 (register_gdbarch_data): Initialize init_p.
6252 (gdbarch_data): Initialize data pointer using the init function.
6253 (init_gdbarch_data): Delete function.
6254 (gdbarch_update_p): Update.
6255 (initialize_non_multiarch): Update.
6256 (struct gdbarch): Add field initialized_p.
6257 * gdbarch.h, gdbarch.c: Re-generate.
6258
6259 2002-06-07 Michal Ludvig <mludvig@suse.cz>
6260
6261 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
6262 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
6263 better do the things actually here.
6264 * x86-64-tdep.c (x86_64_register_name2nr): New.
6265 (x86_64_register_name): Renamed to x86_64_register_nr2name.
6266 (x86_64_gdbarch_init): Respect the above change.
6267 * x86-64-tdep.h (x86_64_register_name2nr)
6268 (x86_64_register_nr2name): Add prototypes.
6269 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
6270
6271 2002-06-06 Michael Snyder <msnyder@redhat.com>
6272
6273 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
6274 Delete extra braces and re-indent.
6275 (d10v_store_return_value): Char return values
6276 must be shifted over by one byte in R0.
6277 (d10v_extract_return_value): Delete extra braces, re-indent.
6278
6279 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
6280
6281 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
6282 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
6283 (d10v_integer_to_address): Rewrite.
6284 (d10v_frame_init_saved_regs): When reading fp and sp registers use
6285 the d10v specific functions which take care of converting to the
6286 correct space.
6287
6288 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
6289
6290 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
6291 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
6292
6293 2002-06-02 Andrew Cagney <ac131313@redhat.com>
6294
6295 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
6296 includes.
6297 * config/tm-linux.h: Ditto.
6298 * config/alpha/tm-alphalinux.h: Ditto.
6299 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
6300 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
6301 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
6302 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
6303 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
6304 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
6305 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
6306 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
6307 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
6308 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
6309 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
6310 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
6311 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
6312 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
6313 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
6314 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
6315 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
6316 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
6317 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
6318 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
6319 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
6320 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
6321 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
6322 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
6323 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
6324 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
6325 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
6326 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
6327 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
6328 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
6329 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
6330 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
6331 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
6332 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
6333 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
6334 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
6335 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
6336
6337 2002-05-04 Aidan Skinner <aidan@velvet.net>
6338
6339 * ada-exp.tab.c: New file
6340 * ada-exp.y: New file
6341 * ada-lang.c: New file
6342 * ada-lang.h: New file
6343 * ada-lex.c: New file
6344 * ada-lex.l: New file
6345 * ada-tasks.c: New file
6346 * ada-typeprint.c: New file
6347 * ada-valprint.c: New file
6348
6349 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
6350
6351 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
6352 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
6353
6354 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
6355
6356 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
6357 insetead of ppc-linux-tdep.o.
6358 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
6359 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
6360
6361 2002-06-02 Andrew Cagney <ac131313@redhat.com>
6362
6363 2002-05-07 Christian Groessler <chris@groessler.org>
6364 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
6365 bit register contents for little endian hosts.
6366
6367 2002-06-01 Andrew Cagney <ac131313@redhat.com>
6368
6369 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
6370 any maintainer.
6371
6372 2002-06-01 Andrew Cagney <ac131313@redhat.com>
6373
6374 * gdbarch.h: Regenerate.
6375
6376 2002-06-01 Andrew Cagney <ac131313@redhat.com>
6377
6378 * MAINTAINERS: Add everyone to write-after-approval list.
6379
6380 2002-06-01 Andrew Cagney <ac131313@redhat.com>
6381
6382 * stack.c (frame_info): Use frame_register_unwind instead of
6383 saved_regs. Mention when the SP is on the stack or in a register.
6384
6385 * frame.h (frame_register_unwind_ftype): Define. Document.
6386 (struct frame_info): Add field register_unwind and
6387 register_unwind_cache.
6388 (frame_register_unwind): Declare.
6389 (generic_unwind_get_saved_register): Declare.
6390
6391 * frame.c (frame_register_unwind): New function.
6392 (generic_unwind_get_saved_register): New function.
6393
6394 * blockframe.c (generic_call_dummy_register_unwind): New function.
6395 (frame_saved_regs_register_unwind): New function.
6396 (set_unwind_by_pc): New function.
6397 (create_new_frame): New function.
6398 (get_prev_frame): New function.
6399
6400 2002-05-30 Andrew Cagney <ac131313@redhat.com>
6401
6402 * a29k-share/: Delete directory.
6403 * remote-vx29k.c: Delete file.
6404
6405 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
6406
6407 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
6408 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
6409
6410 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
6411
6412 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
6413 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
6414 (sparc64nbsd-nat.o)
6415 (sparcnbsd-nat.o)
6416 (sparcnbsd-tdep.o): New dependency lists.
6417 * NEWS: Note new UltraSPARC NetBSD native configuration.
6418 * configure.host (sparc64-*-netbsd*): New host.
6419 * configure.tgt (sparc-*-netbsdelf*)
6420 (sparc-*-netbsd*): Set gdb_target to nbsd.
6421 (sparc64-*-netbsd*): New target.
6422 * sparc64nbsd-nat.c: New file.
6423 * sparcnbsd-nat.c: New file.
6424 * sparcnbsd-tdep.c: New file.
6425 * sparcnbsd-tdep.h: New file.
6426 * config/sparc/nbsd.mt: New file.
6427 * config/sparc/nbsd64.mh: New file.
6428 * config/sparc/nbsd64.mt: New file.
6429 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
6430 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
6431 (HOST_IPC): Remove.
6432 * config/sparc/nbsdaout.mt: Remove.
6433 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
6434 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
6435 (HOST_IPC): Remove.
6436 * config/sparc/nbsdelf.mt: Remove.
6437 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
6438 sparc-nat.c compatiblity defines.
6439 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
6440 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
6441 * config/sparc/tm-nbsd64.h: New file.
6442 * config/sparc/tm-nbsdaout.h: Remove.
6443 * config/sparc/xm-nbsd.h: Remove.
6444
6445 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
6446
6447 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
6448 * sparc-tdep.c: Include osabi.h.
6449 (gdbarch_tdep): Add osabi member.
6450 (_initialize_sparc_tdep): Use gdbarch_register.
6451 (sparc_gdbarch_init): Use generic OS ABI framework.
6452 (sparc_dump_tdep): New function.
6453
6454 2002-05-30 Kevin Buettner <kevinb@redhat.com>
6455
6456 * corefile.c (do_captured_read_memory_integer): Return non-zero
6457 result.
6458 (safe_read_memory_integer): Copy result of memory read when
6459 status is non-zero. Also, add comments.
6460
6461 2002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
6462
6463 * Makefile.in (ppc_tdep_h): Define.
6464 (ppc-linux-nat.o)
6465 (ppc-linux-tdep.o)
6466 (rs6000-tdep.o): Use $(ppc_tdep_h).
6467 (ppc-sysv-tdep.o)
6468 (ppcnbsd-nat.o)
6469 (ppcnbsd-tdep.o): New dependency lists.
6470 * ppc-tdep.h: Use generic OS ABI framework.
6471 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
6472 (ppc_linux_init_abi): New functions.
6473 (ppc_sysv_abi_broken_use_struct_convention)
6474 (ppc_sysv_abi_use_struct_convention)
6475 (ppc_sysv_abi_push_arguments): Move to...
6476 * ppc-sysv-tdep.c: ...here.
6477 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
6478 * rs6000-tdep.c (process_note_abi_tag_sections)
6479 (get_elfosabi): Remove.
6480 (rs6000_gdbarch_init): Use generic OS ABI framework.
6481 (rs6000_dump_tdep): New function.
6482 (_initialize_rs6000_tdep): Use gdbarch_register.
6483 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
6484 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
6485 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
6486 of ppc-linux-tdep.o.
6487 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
6488 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
6489 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
6490 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
6491 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
6492 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
6493
6494 2002-05-29 Jim Blandy <jimb@redhat.com>
6495
6496 * macroscope.c (default_macro_scope): Put `void' in empty argument
6497 list.
6498
6499 2002-05-29 Andrew Cagney <ac131313@redhat.com>
6500
6501 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
6502 * arch-utils.c: Include "sim-regno.h".
6503 * gdbarch.sh: Don't include "sim-regno.h".
6504 * gdbarch.h, gdbarch.c: Regenerate.
6505 * sim-regno.h (legacy_register_sim_regno): Move declaration from
6506 here.
6507 * arch-utils.h (legacy_register_sim_regno): To here.
6508 * remote-sim.c (legacy_register_sim_regno): Move function from
6509 here.
6510 * arch-utils.c (legacy_register_sim_regno): To here.
6511
6512 2002-05-28 Andrew Cagney <ac131313@redhat.com>
6513
6514 * sim-regno.h: New file.
6515 * Makefile.in (sim_regno_h): Define.
6516 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
6517 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
6518 (legacy_register_sim_regno): New function.
6519 (one2one_register_sim_regno): New function.
6520 (gdbsim_fetch_register): Rewrite.
6521 (gdbsim_store_register): Only store a register when
6522 REGISTER_SIM_REGNO is valid.
6523 * d10v-tdep.c: Include "sim-regno.h".
6524 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
6525 (d10v_ts3_register_sim_regno): Ditto.
6526 * gdbarch.sh: Include "sim-regno.h".
6527 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
6528 * gdbarch.h, gdbarch.c: Regenerate.
6529 * arch-utils.h (default_register_sim_regno): Delete declaration.
6530 * arch-utils.c (default_register_sim_regno): Delete function.
6531
6532 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
6533
6534 * ppcnbsd-nat.c: Rewrite.
6535 * ppcnbsd-tdep.c: New file.
6536 * ppcnbsd-tdep.h: New file.
6537 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
6538 solib.o, and solib-svr4.o.
6539 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
6540 nbsd-tdep.o, and corelow.o.
6541
6542 2002-05-28 Andrew Cagney <ac131313@redhat.com>
6543
6544 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
6545 `tr' and `sed'. Mention that `broken' targets are not expected to
6546 build.
6547
6548 2002-05-27 Michal Ludvig <mludvig@suse.cz>
6549
6550 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
6551 Let PC point right after the prologue before looking up symbols.
6552
6553 2002-05-27 Martin M. Hunt <hunt@redhat.com>
6554
6555 * i386-tdep.c (i386_register_virtual_type): Return
6556 builtin_type_vec128i for SSE registers.
6557
6558 * gdbtypes.h (builtin_type_vec128i): Declare.
6559
6560 * gdbtypes.c (build_builtin_type_vec128i): New function.
6561 (builtin_type_v2_double, builtin_type_v4_int64): New types.
6562 (builtin_type_vec128i): New type for SSE2 128-bit registers.
6563 (build_gdbtypes): Initialize new builtin vector types.
6564 (_initialize_gdbtypes): Register new vector types with gdbarch.
6565
6566 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6567
6568 * MAINTAINERS: ns32k is not longer an obsolete candidate,
6569 since it has been multi-arch'd.
6570 * NEWS: Note that ns32k-*-* is now partial multi-arch.
6571 Move Alpha and VAX multi-arch news entries to same section
6572 as other multi-arch news.
6573
6574 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6575
6576 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
6577 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
6578 static. Rename some register numbers to put them in ns32k-tdep
6579 private namespace.
6580 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
6581 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
6582 functions.
6583 (_initialize_ns32k_tdep): Use gdbarch_register.
6584 * ns32k-tdep.h: New file.
6585 * ns32knbsd-tdep.c: New file.
6586 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
6587 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
6588 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
6589 REGISTER_BYTES, REGISTER_BYTE): Remove.
6590 * config/ns32k/tm-ns32k.h: New file.
6591 * config/ns32k/tm-umax.h: Remove.
6592
6593 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6594
6595 * ns32k-tdep.c (ns32k_saved_pc_after_call,
6596 ns32k_store_struct_return, ns32k_extract_return_value,
6597 ns32k_store_return_value, ns32k_extract_struct_value_address): New
6598 functions.
6599 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
6600 ns32k_saved_pc_after_call.
6601 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
6602 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
6603 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
6604 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
6605 ns32k_extract_struct_value_address.
6606
6607 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6608
6609 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
6610 ns32k_fix_call_dummy): New.
6611 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
6612 ns32k_call_dummy_words.
6613 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
6614 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
6615 CALL_DUMMY_NARGS): Remove.
6616 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
6617
6618 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6619
6620 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
6621 ns32k_frame_saved_pc, ns32k_frame_args_address,
6622 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
6623 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
6624 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
6625 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
6626 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
6627 (BREAKPOINT): Remove..
6628 (FRAME_CHAIN): Define as ns32k_frame_chain.
6629 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
6630 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
6631 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
6632 (FRAME_FIND_SAVED_REGS): Remove.
6633 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
6634 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
6635 (POP_FRAME): Define as ns32k_pop_frame.
6636
6637 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6638
6639 * ns32k-tdep.c (ns32k_register_byte_32082,
6640 ns32k_register_byte_32382, ns32k_register_raw_size,
6641 ns32k_register_virtual_size, ns32k_register_virtual_type): New
6642 functions.
6643 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
6644 ns32k_register_byte_32382.
6645 * config/ns32k/tm-umax.h: Update copyright years.
6646 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
6647 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
6648 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
6649 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
6650 (ns32k_get_enter_addr): Fix prototype.
6651
6652 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6653
6654 * ns32k-tdep.c: Update copyright years.
6655 (ns32k_register_name_32082): New function.
6656 (ns32k_register_name_32382): Ditto.
6657 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
6658 (REGISTER_NAME): Define as ns32k_register_name_32382.
6659 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
6660 (REGISTER_NAME): Define as ns32k_register_name_32082.
6661
6662 2002-05-24 Jim Blandy <jimb@redhat.com>
6663
6664 * dwarf2read.c (free_line_header): Use xfree, not free.
6665
6666 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
6667
6668 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
6669 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
6670
6671 2002-05-23 Andrew Cagney <ac131313@redhat.com>
6672
6673 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
6674
6675 2002-05-23 Andrew Cagney <ac131313@redhat.com>
6676
6677 From Ross Alexander at NEC Europe:
6678 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
6679
6680 2002-05-23 Michael Snyder <msnyder@redhat.com>
6681
6682 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
6683 for input, rather than parse_and_eval_address.
6684
6685 2002-05-23 Andrew Cagney <ac131313@redhat.com>
6686
6687 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
6688 * Makefile.in (sim_d10v_h): Update definition.
6689
6690 2002-05-24 Andrew Cagney <cagney@redhat.com>
6691
6692 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
6693 change `2002-05-22 Michael Snyder' below.
6694 (d10v_push_arguments): Ditto.
6695 (d10v_extract_return_value): Ditto.
6696
6697 2002-05-23 Jim Blandy <jimb@redhat.com>
6698
6699 * macrotab.c (check_for_redefinition): Don't complain if the new
6700 definition is the same as the previous one. Take more arguments
6701 to allow the comparison.
6702 (macro_define_object, macro_define_function): Pass more arguments
6703 to check_for_redefinition.
6704
6705 2002-05-22 Michael Snyder <msnyder@redhat.com>
6706
6707 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
6708 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
6709 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
6710 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
6711 Don't bail if return_pc is PC_IN_CALL_DUMMY.
6712 Add a temp variable to save a call (and a memory read).
6713 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
6714 if possible (so that PC_IN_CALL_DUMMY will work).
6715
6716 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
6717
6718 * MAINTAINERS: Remove status `OBSOLETE' from v850.
6719
6720 2002-05-22 Michal Ludvig <mludvig@suse.cz>
6721
6722 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
6723 fde->cie_ptr.
6724 (dwarf2_build_frame_info): Corrected handling of eh_frame.
6725 (dwarf2_build_frame_info): Add offset to fde->initial_location
6726 so that frames of shared libraries are mapped correctly.
6727 (execute_stack_op): Change type of 'result' from ULONGEST to
6728 CORE_ADDR.
6729
6730 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
6731
6732 * config/alpha/tm-nbsd.h: Include solib.h.
6733
6734 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
6735
6736 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
6737 assumptions about the host's byte order.
6738
6739 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
6740
6741 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
6742 to dependency list.
6743 * alphanbsd-tdep.c: Include solib-svr4.h.
6744 * shnbsd-tdep.c: Ditto.
6745
6746 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
6747
6748 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
6749 nbsd-tdep.h to dependency list.
6750 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
6751 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
6752 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
6753 nbsdaout.mh and nbsdelf.mh consistently.
6754 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
6755 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
6756 nbsdaout.mt and nbsdelf.mh consistently.
6757 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
6758 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
6759 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
6760 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
6761 a.out shared library stuff from here...
6762 * config/nm-nbsdaout.h: ...to here.
6763 * config/tm-nbsd.h: Remove.
6764 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
6765 * config/arm/nbsd.mh: Remove.
6766 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
6767 nbsd-tdep.o.
6768 * config/arm/nbsdaout.mh: New file.
6769 * config/arm/nbsdelf.mh: New file.
6770 * config/arm/nm-nbsdaout.h: New file.
6771 * config/i386/nbsd.mh: Remove.
6772 * config/i386/nbsd.mt: Remove.
6773 * config/i386/nbsdaout.mh: New file.
6774 * config/i386/nbsdaout.mt: New file.
6775 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
6776 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
6777 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
6778 i386_register_u_addr): Remove.
6779 * config/i386/nm-nbsdaout.h: New file.
6780 * config/i386/nm-nbsdelf.h: Remove.
6781 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
6782 (USE_STRUCT_CONVENTION): Remove.
6783 * config/i386/tm-nbsdaout.h: New file.
6784 * config/i386/tm-nbsdelf.h: Remove.
6785 * config/m68k/nbsd.mh: Remove.
6786 * config/m68k/nbsd.mt: Remove.
6787 * config/m68k/nbsdaout.mh: New file.
6788 * config/m68k/nbsdaout.mt: New file.
6789 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
6790 * config/m68k/nm-nbsdaout.h: New file.
6791 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
6792 (IN_SOLIB_CALL_TRAMPOLINE): Define.
6793 * config/ns32k/nbsd.mh: Remove.
6794 * config/ns32k/nbsd.mt: Remove.
6795 * config/ns32k/nbsdaout.mh: New file.
6796 * config/ns32k/nbsdaout.mt: New file.
6797 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
6798 * config/ns32k/nm-nbsdaout.h: New file.
6799 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
6800 (IN_SOLIB_CALL_TRAMPOLINE): Define.
6801 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
6802 (SVR4_SHARED_LIBS): Remove.
6803 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
6804 * config/sparc/nbsd.mh: Remove.
6805 * config/sparc/nbsd.mt: Remove.
6806 * config/sparc/nbsdaout.mh: New file.
6807 * config/sparc/nbsdaout.mt: New file.
6808 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
6809 * config/sparc/nbsdelf.mt: New file.
6810 * config/sparc/nm-nbsdaout.h: New file.
6811 * config/sparc/nm-nbsdelf.h: Remove.
6812 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
6813 * config/sparc/tm-nbsdaout.h: New file.
6814
6815 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6816
6817 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
6818 mipsnbsd-tdep.c
6819 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
6820
6821 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6822
6823 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
6824 shnbsd-nat.c.
6825 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
6826
6827 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6828
6829 * NEWS: Note new MIPS NetBSD native configuration.
6830 * configure.host (mips*-*-netbsd*): New host.
6831 * configure.tgt (mips*-*-netbsd*): New target.
6832 * mipsnbsd-nat.c: New file.
6833 * mipsnbsd-tdep.c: New file.
6834 * mipsnbsd-tdep.h: New file.
6835 * config/mips/nbsd.mh: New file.
6836 * config/mips/nbsd.mt: New file.
6837 * config/mips/nm-nbsd.h: New file.
6838 * config/mips/tm-nbsd.h: New file.
6839
6840 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6841
6842 * Makefile.in (SFILES): Add osabi.c.
6843 (COMMON_OBS): Add osabi.o.
6844 (osabi.o): New dependency list.
6845 * osabi.c: New file.
6846 * osabi.h: New file.
6847 * doc/gdbint.texinfo: Document new generic OS ABI framework.
6848
6849 * Makefile.in (alpha_tdep_h): Define and use instead of
6850 alpha-tdep.h.
6851 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
6852 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
6853 Remove.
6854 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
6855 * alpha-tdep.h: Include osabi.h.
6856 (alpha_abi): Remove.
6857 (gdbarch_tdep): Use generic OS ABI framework.
6858 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
6859 gdbarch_register_osabi.
6860 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
6861 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
6862 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
6863
6864 * Makefile.in (sh_tdep_h): Add osabi.h.
6865 * sh-tdep.h (sh_osabi): Remove.
6866 (gdbarch_tdep): Use generic OS ABI framework.
6867 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
6868 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
6869 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
6870 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
6871
6872 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
6873 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
6874 gdbarch_register_osabi.
6875 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
6876 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
6877 (get_elfosabi): Rename to...
6878 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
6879 ABI framework support routines.
6880 (arm_gdbarch_init): Use generic OS ABI framework.
6881 (arm_dump_tdep): Likewise.
6882 (_initialize_arm_tdep): Likewise.
6883 * arm-tdep.h: Include osabi.h.
6884 (arm_abi): Remove.
6885 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
6886 osabi member.
6887 (arm_gdbarch_register_os_abi): Remove prototype.
6888 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
6889 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
6890
6891 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
6892 * mips-tdep.c: Include osabi.h.
6893 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
6894 OS ABI framework.
6895
6896 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
6897
6898 * h8300-tdep.c: Fix formatting.
6899
6900 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
6901
6902 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
6903 printing vector registers.
6904
6905 2002-05-19 Andrew Cagney <ac131313@redhat.com>
6906
6907 From Fernando Nasser:
6908 * remote.c (remote_async_open_1): Re-throw the exception when the
6909 connection fails.
6910 (remote_cisco_open): Ditto.
6911 (remote_open_1): Ditto.
6912
6913 2002-05-19 Andrew Cagney <ac131313@redhat.com>
6914
6915 * remote.c (remote_start_remote_dummy): Add uiout parameter.
6916 (remote_start_remote): Add uiout parameter. Pass through to
6917 remote_start_remote_dummy.
6918 (remote_open_1): Use catch_exception instead of catch_errors.
6919 (remote_async_open_1): Ditto.
6920 (remote_cisco_open): Ditto.
6921
6922 2002-05-19 Andrew Cagney <ac131313@redhat.com>
6923
6924 * remote.c (remote_start_remote): Replace PTR with void pointer.
6925 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
6926 static.
6927
6928 2002-05-18 Andrew Cagney <ac131313@redhat.com>
6929
6930 * gdb_indent.sh: Allow the script to be run in the sim directory.
6931
6932 2002-05-18 Mark Kettenis <kettenis@gnu.org>
6933
6934 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
6935 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
6936
6937 * corelow.c (core_open): Only call set_gdbarch_from_file if
6938 exec_bfd is NULL.
6939
6940 2002-05-17 Andrey Volkov <avolkov@transas.com>
6941
6942 * h8300-tdep.c: Add support of EXR register
6943 * config/h8300/tm-h8300.h: Ditto.
6944
6945 2002-05-17 Andrey Volkov <avolkov@transas.com>
6946
6947 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
6948
6949 2002-05-17 Andrey Volkov <avolkov@transas.com>
6950
6951 * h8300-tdep.c: Change literal regnums to REGNO.
6952
6953 2002-05-17 Jim Blandy <jimb@redhat.com>
6954
6955 * NEWS: Note addition of macro support.
6956
6957 Expand preprocessor macros in C expressions.
6958 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
6959 (scan_macro_expansion, scanning_macro_expansion,
6960 finished_macro_expansion): New function declarations.
6961 (expression_macro_lookup_func, expression_macro_lookup_baton): New
6962 variable declarations.
6963 * parser-defs.h (expression_context_pc): New declaration.
6964 * parse.c (expression_context_pc): New variable.
6965 (parse_exp_1): Set expression_context_pc, as well as
6966 expression_context_block.
6967 * c-exp.y (yylex): If we're not already reading the result of a
6968 macro expansion, try to macro-expand the next token. When we're
6969 done scanning a macro expansion, switch back to the mainline text.
6970 Commas and `if's in a macro's expansion don't terminate the input.
6971 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
6972 (macro_original_text, macro_expanded_text,
6973 expression_macro_lookup_func, expression_macro_lookup_baton): New
6974 variables.
6975 (scan_macro_expansion, scanning_macro_expansion,
6976 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
6977 c_preprocess_and_parse): New functions.
6978 (c_language_defn, cplus_language_defn, asm_language_defn): Call
6979 c_preprocess_and_parse, instead of c_parse.
6980 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
6981 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
6982
6983 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
6984
6985 * sh-tdep.c (gdb_print_insn_sh64): Delete.
6986 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
6987 (sh_gdbarch_init): Always use gdb_print_insn_sh.
6988
6989 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
6990
6991 * NEWS: Add section for multi-arched targets. Add v850 to that section.
6992
6993 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
6994
6995 * Makefile.in (sh_tdep_h): Define and use.
6996 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
6997 register enum): Move to...
6998 * * sh-tdep.h: ...here.
6999 * sh-tdep.c: Include sh-tdep.h.
7000 * sh3-rom.c: Likewise.
7001 * shnbsd-tdep.c: Likewise.
7002
7003 2002-05-16 Michael Snyder <msnyder@redhat.com>
7004
7005 * arm-tdep.c: Spelling fix in comment.
7006
7007 2002-05-16 Jim Blandy <jimb@redhat.com>
7008
7009 Add commands for manually expanding macros and showing their
7010 definitions.
7011 * macrocmd.c, macroscope.c, macroscope.h: New files.
7012 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
7013 (macroscope_h): New variable.
7014 (HFILES_NO_SRCDIR): Add macroscope.h.
7015 (COMMON_OBS): Add macrocmd.o, macroscope.o.
7016 (macroscope.o, macrocmd.o): New rules.
7017
7018 Teach the Dwarf 2 reader to read macro information.
7019 * dwarf2read.c: #include "macrotab.h".
7020 (dwarf_macinfo_buffer): New variable.
7021 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
7022 dwarf_macinfo_size.
7023 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
7024 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
7025 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
7026 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
7027 dwarf2_macro_spaces_in_definition): New complaints.
7028 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
7029 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
7030 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
7031 the partial symbol table.
7032 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
7033 from what's recorded in the partial symbol table.
7034 (read_file_scope): If the compilation unit has a
7035 `DW_AT_macro_info' attribute, read its macro information.
7036 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
7037
7038 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
7039
7040 Fix PR gdb/546
7041 * ser-tcp.c: Don't include <netinet/udp.h>.
7042
7043 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
7044
7045 * MAINTAINERS: Update my email address.
7046
7047 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
7048
7049 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
7050 include file of the same name.
7051
7052 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
7053
7054 * configure.tgt: Mark v850 as multi-arched.
7055 * config/v850/tm-v850.h: Remove file.
7056 * config/v850/v850.mt: Eliminate TM_FILE.
7057
7058 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
7059
7060 * v850-tdep.c: Full multi-arch.
7061 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
7062 Define GDB_MULTI_ARCH to 2.
7063
7064 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
7065
7066 * p-exp.y (current_type): New static variable.
7067 Carries the type of the expression at the position that is parsed.
7068 (push_current_type, pop_current_type): Two new functions. Used
7069 to store/restore current_type in expression on specific tokens.
7070 (search_field): New static variable. Set to one after parsing a point
7071 as at that point only a FIELDNAME token should be searched.
7072 (FIELDNAME): New token. After a point only a token belonging to
7073 current_type type definition is allowed.
7074 (all over token rules): reset and change current_type according
7075 to rules.
7076 (exp '[' rule): insert implicit array index field if
7077 exp is a pascal string type.
7078
7079 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
7080
7081 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
7082 frame info. Use frame_info's saved_regs instead of matching member
7083 in extra_frame_info throughout.
7084 (v850_frame_init_saved_regs): New function.
7085 (v850_init_extra_frame_info): Move most functionality into
7086 v850_frame_init_saved_regs().
7087 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
7088 (v850_frame_find_saved_regs): Remove declaration.
7089 (FRAME_FIND_SAVED_REGS): Remove definition.
7090 (v850_frame_init_saved_regs): Add declaration.
7091 (FRAME_INIT_SAVED_REGS): Add definition.
7092
7093 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
7094
7095 * v850-tdep.c: Begin multi-arch'ing v850.
7096 (v850_target_architecture_hook): Remove function.
7097 (v850_gdbarch_init): New function. Add code previously in
7098 v850_target_architecture_hook().
7099 (_initialize_v850_tdep): Don't set target_architecture_hook.
7100 Call register_gdbarch_init() instead.
7101
7102 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
7103
7104 * gdbtypes.h (struct cplus_struct_type): Remove args field.
7105 * hpread.c (hpread_read_struct_type): Remove assignments to args.
7106 (fixup_class_method_type): Likewise.
7107
7108 2002-05-15 Jim Blandy <jimb@redhat.com>
7109
7110 Add macro structures to GDB's symbol tables. Nobody puts anything
7111 in them yet.
7112 * symtab.h (struct symtab): New member: `macro_table'.
7113 * buildsym.h (pending_macros): New global variable.
7114 * buildsym.c: #include "macrotab.h".
7115 (buildsym_init): Initialize `pending_macros'.
7116 (end_symtab): If we found macro information while reading a CU's
7117 debugging info, do build a symtab structure for it. Make the
7118 symtab point to the macro information, and clear the
7119 `pending_macros' pointer which held it while we were reading the
7120 debug info.
7121 (really_free_pendings): Free any pending macro table.
7122 * objfiles.h (struct objfile): New member: `macro_cache'.
7123 * objfiles.c (allocate_objfile): Set allocate and free functions
7124 for the macro cache's objstack.
7125 (free_objfile): Empty the macro cache's obstack.
7126 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
7127 set new allocate and free functions for it.
7128 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
7129 free functions for the macro cache's objstack. (Why is this
7130 function building its own objfile?)
7131 * symmisc.c (print_objfile_statistics): Print statistics on the
7132 macro bcache.
7133 * Makefile.in: Note that buildsym.o depends on macrotab.h.
7134
7135 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
7136
7137 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
7138 (REGISTER_U_ADDR): Delete definition.
7139 (arm_register_u_addr): Delete declaration.
7140
7141 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
7142
7143 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
7144 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
7145
7146 2002-05-14 Andrew Cagney <ac131313@redhat.com>
7147
7148 * regcache.c (register_valid): Revise comments refering to "Not
7149 available" and "unavailable".
7150 * frame.c (frame_register_read): Ditto.
7151 * findvar.c (value_of_register): Ditto.
7152
7153 2002-05-15 Andrew Cagney <cagney@redhat.com>
7154
7155 * Makefile.in (remote_sim_h): Replace remote-sim_h.
7156 (remote-sim.o): Update dependencies.
7157 (d10v-tdep.o): Specify dependencies.
7158 (sim_d10v_h): Define.
7159
7160 2002-05-14 Jim Blandy <jimb@redhat.com>
7161
7162 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
7163 * macrotab.c (macro_lookup_inclusion, find_definition,
7164 new_macro_table): Same.
7165
7166 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
7167 not `! strcmp ()'. This is a dubious improvement.
7168 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
7169
7170 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
7171 although it's not necessary, to avoid a warning.
7172
7173 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
7174
7175 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
7176 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
7177 TYPE_INSTANCE_FLAGS.
7178 (struct main_type): New.
7179 (struct type): Move most members to struct main_type. Change
7180 cv_type and as_type to new type_chain member. Add instance_flags.
7181 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
7182 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
7183 (finish_cv_type): Remove prototype.
7184 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
7185 Set TYPE_CHAIN.
7186 (alloc_type_instance): New function.
7187 (smash_type): New function.
7188 (make_pointer_type, make_reference_type, make_function_type)
7189 (smash_to_member_type, smash_to_method_type): Call smash_type.
7190 (make_qualified_type): New function.
7191 (make_type_with_address_space): Call make_qualified_type.
7192 (make_cv_type): Likewise.
7193 (finish_cv_type): Remove unnecessary function.
7194 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
7195 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
7196 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
7197 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
7198 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
7199 * hpread.c (hpread_read_struct_type): Likewise.
7200 * stabsread.c (read_struct_type): Likewise.
7201
7202 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
7203
7204 * configure.tgt: Add a catch all sh* target, for cases like
7205 sh[2,3,4]-elf and sh-hms.
7206
7207 2002-05-14 Keith Seitz <keiths@redhat.com>
7208
7209 * event-loop.c (create_file_handler): Don't do anything but
7210 update data when we are given a fd which we are already
7211 monitoring.
7212
7213 2002-05-14 Michal Ludvig <mludvig@suse.cz>
7214
7215 * dwarf2cfi.c (context_cpy): Copy registers correctly.
7216 (update_context): Use __func__ in warnings.
7217
7218 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
7219
7220 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
7221 and tcp_close to net_open and net_close.
7222 (net_open): Accept "udp:" and "tcp:" specifications. Connect
7223 using UDP if requested. Don't try to disable Nagle on UDP
7224 sockets.
7225 * remote.c (remote_serial_open): New function. Warn about UDP.
7226 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
7227
7228 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
7229
7230 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
7231
7232 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
7233
7234 * configure.tgt: Remove sh-hms target.
7235 * MAINTAINERS: Don't list sh-hms as a separate target.
7236
7237 2002-05-13 Jim Blandy <jimb@redhat.com>
7238
7239 Add first preprocessor macro-expansion files.
7240 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
7241 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
7242 (splay_tree_h, macroexp_h, macrotab_h): New variable.
7243 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
7244 (COMMON_OBS): Add macrotab.o, macroexp.o.
7245 (macroexp.o, macrotab.o): New rules.
7246
7247 2002-05-13 Andrew Cagney <ac131313@redhat.com>
7248
7249 * config/m88k/tm-m88k.h: Update copyright.
7250 (m88k_target_write_pc): Declare
7251 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
7252 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
7253 (SHIFT_INST_REGS): Update definition.
7254 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
7255 using old definition of TARGET_WRITE_PC.
7256 * regcache.c (generic_target_write_pc): Delete code handling
7257 NNPC_REGNUM.
7258 * gdbarch.sh (NNPC_REGNUM): Delete.
7259 * gdbarch.h, gdbarch.c: Regenerate.
7260
7261 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
7262
7263 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
7264 builtin reg number.
7265
7266 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
7267
7268 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
7269 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
7270 (gen_address_of, gen_struct_ref, gen_repeat): Use type
7271 access macros.
7272 * c-typeprint.c (cp_type_print_method_args): Likewise.
7273 (c_type_print_args): Likewise.
7274 * d10v-tdep.c (d10v_push_arguments): Likewise.
7275 (d10v_extract_return_value): Likewise.
7276 * expprint.c (print_subexp): Likewise.
7277 * gdbtypes.c (lookup_primitive_typename): Likewise.
7278 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
7279 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
7280 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
7281 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
7282 (TYPE_VECTOR): Likewise.
7283 * hpread.c (hpread_read_struct_type)
7284 (fix_static_member_physnames, fixup_class_method_type)
7285 (hpread_type_lookup): Likewise.
7286 * mdebugread.c (parse_symbol, parse_type): Likewise.
7287 * p-lang.c (is_pascal_string_type): Likewise.
7288 * valops.c (hand_function_call): Likewise.
7289 * x86-64-tdep.c (classify_argument): Likewise.
7290
7291 * hpread.c (hpread_read_function_type)
7292 (hpread_read_doc_function_type): Call replace_type.
7293 * dstread.c (create_new_type): Delete.
7294 (decode_dst_structure, process_dst_function): Call alloc_type.
7295 Use type access macros.
7296
7297 2002-05-12 Mark Kettenis <kettenis@gnu.org>
7298
7299 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
7300 the're not supported by the current architecture.
7301 (i387_fill_fxsave): Likewise.
7302
7303 2002-05-12 Fred Fish <fnf@redhat.com>
7304
7305 * symfile.c (default_symfile_offsets): Arrange for uninitialized
7306 sect_index_xxx members to index the first slot in section_offsets
7307 if all of the section_offsets are zero.
7308
7309 2002-05-12 Mark Kettenis <kettenis@gnu.org>
7310
7311 * configure.tgt (sparc-*openbsd): Remove entry accidentially
7312 checked in with last change.
7313
7314 2002-05-12 Mark Kettenis <kettenis@gnu.org>
7315
7316 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
7317 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
7318 config.sub.
7319
7320 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
7321
7322 * Makefile.in: Update dependencies.
7323
7324 2002-05-11 Andrew Cagney <ac131313@redhat.com>
7325
7326 * language.c (local_hex_string_custom): Simplify. Do not depend
7327 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
7328
7329 * memattr.c (mem_info_command): Replace calls to
7330 longest_local_hex_string and longest_local_hex_string_custom.
7331 * buildsym.c (make_blockvector): Ditto.
7332 * solib.c (info_sharedlibrary_command): Ditto.
7333 * tracepoint.c (tracepoints_info): Ditto.
7334 * symtab.c (print_msymbol_info): Ditto.
7335
7336 * language.c (local_hex_string): Delete.
7337 (local_hex_string_custom): Delete.
7338 (longest_local_hex_string): Rename to local_hex_string.
7339 (longest_local_hex_string_custom): Rename to
7340 local_hex_string_custom.
7341 * language.h (local_hex_string): Change parameter type to LONGEST.
7342 (local_hex_string_custom): Ditto.
7343 (longest_local_hex_string): Delete declaration.
7344 (longest_local_hex_string_custom): Ditto.
7345
7346 * solib.c: Update copyright.
7347 * memattr.c: Update copyright.
7348
7349 2002-05-11 Andrew Cagney <ac131313@redhat.com>
7350
7351 * arch-utils.h (legacy_register_to_value): Declare.
7352 (legacy_value_to_register): Declare.
7353 (legacy_convert_register_p): Declare.
7354 * arch-utils.c (legacy_register_to_value): New function.
7355 (legacy_value_to_register): New function.
7356 (legacy_convert_register_p): New function.
7357
7358 * gdbarch.sh (REGISTER_TO_VALUE): Define.
7359 (VALUE_TO_REGISTER): Define.
7360 (CONVERT_REGISTER_P): Define.
7361 * gdbarch.h, gdbarch.c: Regenerate.
7362
7363 * valops.c (value_assign): Use CONVERT_REGISTER_P and
7364 VALUE_TO_REGISTER.
7365 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
7366 CONVERT_REGISTER_P.
7367
7368 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
7369 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7370
7371 * Makefile.in: Update dependencies for valops.c.
7372 * valops.c: Include "gdb_assert.h".
7373 (typecmp): Skip THIS parameter to methods.
7374 (find_method_list): Remove static_memfuncp argument,
7375 update callers. Check for stub methods.
7376 (find_value_oload_method_list): Don't set *static_memfuncp.
7377 (find_overload_match): Don't check for stub methods. Assert
7378 that methods are not stubbed. Handle static methods.
7379 (value_find_oload_method_list): Remove static_memfuncp argument.
7380 * gdbtypes.c (check_stub_method): Do not add THIS pointer
7381 to the argument list for static stub methods.
7382 * value.h (value_find_oload_method_list): Update prototype.
7383
7384 2002-05-11 Andrew Cagney <ac131313@redhat.com>
7385
7386 * arch-utils.h (generic_register_size): Declare.
7387 (generic_register_raw_size, generic_register_virtual_size): Delete
7388 declarations.
7389 * arch-utils.c (generic_register_raw_size): Delete.
7390 (generic_register_size): New function.
7391 (generic_register_virtual_size): Delete.
7392
7393 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
7394 default generic_register_size.
7395 * gdbarch.h, gdbarch.c: Re-generate.
7396
7397 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
7398 register_virtual_size.
7399 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
7400 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7401
7402 2002-05-11 Andrew Cagney <ac131313@redhat.com>
7403
7404 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
7405 * gdbarch.h, gdbarch.c: Regenerate.
7406 * gnu-v3-abi.c: Update copyright.
7407 (vtable_address_point_offset): Update.
7408 (gnuv3_rtti_type): Update.
7409 (gnuv3_baseclass_offset): Update.
7410 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
7411 (init_fetch_link_map_offsets): Update.
7412 * remote.c (get_remote_state): Update.
7413
7414 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
7415
7416 * TODO: Remove value_headof/value_from_vtable_info comment.
7417 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
7418 * values.c (value_headof, value_from_vtable_info): Delete.
7419 * value.h (value_from_vtable_info): Delete prototype.
7420
7421 2002-05-11 Andrew Cagney <ac131313@redhat.com>
7422
7423 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
7424 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
7425 $(gdb_regex_h).
7426 (gdb_assert_h): Define.
7427 (gdb_wait_h): Define.
7428 (gdb_regex_h): Define.
7429
7430 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
7431
7432 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
7433 * linespec.c (find_methods): Handle GCC 3.x template constructors.
7434
7435 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7436
7437 * nbsd-tdep.c: Fix comment.
7438
7439 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7440
7441 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
7442 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
7443 (nbsd-tdep.o): New dependency list.
7444 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
7445 nbsd-tdep.h.
7446 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
7447 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
7448 * nbsd-tdep.c: New file.
7449 * nbsd-tdep.h: New file.
7450 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
7451 nbsd-tdep.h.
7452 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
7453 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
7454 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
7455 * config/sh/nbsd.mt (TDEPFILES): Ditto.
7456
7457 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7458
7459 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
7460 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
7461 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
7462 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
7463 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
7464 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
7465
7466 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7467
7468 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
7469 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
7470 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
7471 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
7472 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
7473 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
7474 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
7475
7476 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7477
7478 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
7479 fetch_elfcore_registers to...
7480 * i386nbsd-tdep.c: ...here.
7481 (i386nbsd_use_struct_convention): Rename to...
7482 (i386nbsd_aout_use_struct_convention): ...this.
7483 (i386nbsd_supply_reg): New function.
7484 (i386nbsd_fill_reg): New function.
7485 (fetch_core_registers): Use i386nbsd_supply_reg.
7486 (fetch_elfcore_registers): Likewise.
7487 (_initialize_i386nbsd_tdep): New function.
7488 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
7489 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
7490 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
7491 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
7492 (i386nbsd_aout_use_struct_convention): ...this.
7493
7494 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7495
7496 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
7497 (store_inferior_registers): Use shnbsd_fill_reg.
7498 * shnbsd-tdep.c (sh_nbsd_supply_registers,
7499 sh_nbsd_supply_register): Collapse into...
7500 (shnbsd_supply_reg): ...this.
7501 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
7502 (shnbsd_fill_reg): ...this.
7503 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
7504 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
7505 (fetch_core_registers): Use shnbsd_supply_reg.
7506 (fetch_elfcore_registers): Use shnbsd_supply_reg.
7507 (sh_nbsd_core_fns): Rename to...
7508 (shnbsd_core_fns): ...this.
7509 (sh_nbsd_elfcore_fns): Rename to...
7510 (shnbsd_elfcore_fns): ...this.
7511 (sh_nbsd_init_abi): Rename to...
7512 (shnbsd_init_abi): ...this.
7513 (_initialize_sh_nbsd_tdep): Rename to...
7514 (_initialize_shnbsd_tdep): ...this.
7515 * shnbsd-tdep.h (sh_nbsd_supply_registers,
7516 sh_nbsd_supply_register, sh_nbsd_fill_registers,
7517 sh_nbsd_fill_register): Remove prototypes.
7518 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
7519
7520 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7521
7522 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
7523 (i387-nat.o): Delete dependency list.
7524 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
7525 (x86-64-linux-nat.o): Likewise.
7526 * i387-nat.c: Delete file, moving contents to...
7527 * i387-tdep.c: ...here.
7528 * i387-nat.h: Rename...
7529 * i387-tdep.h: ...to this.
7530 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
7531 * i386-linux-nat.c: Likewise.
7532 * i386bsd-nat.c: Likewise.
7533 * i386gnu-nat.c: Likewise.
7534 * i386nbsd-nat.c: Likewise.
7535 * i386v4-nat.c: Likewise.
7536 * x86-64-linux-nat.c: Likewise.
7537 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
7538 * config/i386/go32.mh (NATDEPFILES): Likewise.
7539 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
7540 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
7541 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
7542 * config/i386/linux.mh (NATDEPFILES): Likewise.
7543 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
7544 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
7545 * config/i386/obsd.mh (NATDEPFILES): Likewise.
7546 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
7547
7548 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7549
7550 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
7551 (alphanbsd-nat.o): Remove dependency list.
7552 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
7553 * alphanbsd-nat.c: Delete. Contents moved to...
7554 * alphanbsd-tdep.c: ...here.
7555 (_initialize_alphanbsd_tdep): Register core functions.
7556 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
7557
7558 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7559
7560 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
7561 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
7562 (alphanbsd-nat.o): Likewise.
7563 (alphabsd-tdep.o): New dependency list.
7564 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
7565 (fill_gregset): Use alphabsd_fill_reg.
7566 (supply_fpregset): Use alphabsd_supply_fpreg.
7567 (fill_fpregset): Use alphabsd_fill_fpreg.
7568 (fetch_inferior_registers): Use struct reg and struct fpreg
7569 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
7570 and alphabsd_supply_fpreg.
7571 (store_inferior_registers): Use struct reg and struct fpreg
7572 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
7573 and alphabsd_fill_fpreg.
7574 * alphabsd-tdep.c: New file.
7575 * alphabsd-tdep.h: New file.
7576 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
7577 (fetch_elfcore_registers): Use alphabsd_supply_reg and
7578 alphabsd_supply_fpreg.
7579 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
7580 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
7581
7582 2002-05-11 Eric Christopher <echristo@redhat.com>
7583
7584 * mips-tdep.c (mips_double_register_type): Fix thinko.
7585 (mips_single_register_type): Ditto.
7586 * MAINTAINERS: Add self.
7587
7588 2002-05-11 Mark Kettenis <kettenis@gnu.org>
7589
7590 * i387-nat.c (i387_supply_register, i387_fill_fsave,
7591 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
7592 right thing on architectures with different endianness and/or
7593 integer sizes.
7594
7595 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
7596
7597 From Christian Limpach <chris@Pin.LU>
7598 * configure.in: Change sed expression which comments out
7599 NATDEPFILES to also comment out continuation lines.
7600 * configure: Regenerate.
7601
7602 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
7603
7604 * sh-tdep.c: Clean up code erroneously reintroduced by previous
7605 big patch.
7606
7607 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
7608
7609 * sh-tdep.c: Include correct file.
7610
7611 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
7612
7613 New support for sh64-elf (sh5) target.
7614
7615 * configure.tgt: For sh64-elf target, default to sh-elf.
7616
7617 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
7618 (struct gdbarch_tdep): Add new fields for new registers and ABI
7619 info.
7620
7621 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
7622 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
7623 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
7624 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
7625 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
7626 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
7627 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
7628 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
7629 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
7630 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
7631 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
7632 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
7633 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
7634 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
7635 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
7636 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
7637 sh64_get_gdb_regnum, sh64_media_reg_base_num,
7638 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
7639 sign_extend, sh64_nofp_frame_init_saved_regs,
7640 sh64_init_extra_frame_info, sh64_get_saved_register,
7641 sh64_extract_struct_value_address, sh64_pop_frame,
7642 sh64_push_arguments, sh64_extract_return_value,
7643 sh64_store_return_value, sh64_show_media_regs,
7644 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
7645 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
7646 sh_sh64_register_virtual_type,
7647 sh_sh64_register_convert_to_virtual,
7648 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
7649 sh64_register_read, sh64_pseudo_register_write,
7650 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
7651 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
7652 sh64_do_pseudo_register, sh_compact_do_registers_info,
7653 sh64_do_registers_info, sh_gdbarch_init): New functions.
7654
7655 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
7656
7657 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
7658
7659 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
7660
7661 * linespec.c (decode_line_1): Check for a double quote after
7662 a filename correctly.
7663
7664 2002-05-10 Jim Blandy <jimb@redhat.com>
7665
7666 Properly track the size of the current objfile's .debug_line section.
7667 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
7668 (DWARF_LINE_SIZE): New macro.
7669 (dwarf2_build_psymtabs_hard): Record the line section's size in
7670 the partial symbol table.
7671 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
7672 symbol table.
7673
7674 2002-05-10 Petr Sorfa <petrs@caldera.com>
7675
7676 * ia64-tdep.c: Handle breakpoints on L instruction type
7677 in MLX instruction bundle by moving the breakpoint to
7678 the third slot (X instruction type) as L holds only data.
7679
7680 2002-05-10 Kevin Buettner <kevinb@redhat.com>
7681
7682 * dbxread.c (discarding_local_symbols_complaint): New complaint.
7683 (process_one_symbol): Complain about discarding local symbols
7684 due to a misplaced N_LBRAC entry.
7685
7686 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
7687
7688 From Daniel Berlin <dan@cgsoftware.com>
7689 * linespec.c (find_toplevel_char): '<' and '>' also increase and
7690 decrease the depth we are at, in the case of templates.
7691
7692 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
7693
7694 * mips-tdep.c (mips_float_register_type): New function.
7695 (mips_double_register_type): New function.
7696 (mips_print_register): Use them.
7697 (do_fp_register_row): Likewise.
7698
7699 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
7700
7701 * signals/signals.c (signals): Remove conditional compilation around
7702 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
7703 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
7704
7705 2002-05-09 Michael Snyder <msnyder@redhat.com>
7706
7707 * remote-rdp.c (remote_rdp_can_run): Remove.
7708
7709 2002-05-09 Tom Tromey <tromey@redhat.com>
7710
7711 * jv-valprint.c (java_val_print): Handle `char' as a special case
7712 of TYPE_CODE_INT.
7713
7714 2002-05-09 Michael Snyder <msnyder@redhat.com>
7715
7716 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
7717 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
7718 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
7719 str r(0123),[sp,#nn].
7720 (arm_skip_prologue): Ditto. Also make disassembly
7721 order-independent by placing it in a loop.
7722
7723 2002-05-06 Michael Snyder <msnyder@redhat.com>
7724
7725 * stabsread.c (read_type): Add recognition for new attribute:
7726 "@V;" means that an array type is actually a vector.
7727 This is analogous to the vector flag that's been added to dwarf2.
7728
7729 2002-05-09 Mark Kettenis <kettenis@gnu.org>
7730
7731 * i386-tdep.h (i386_abi): New enum.
7732 (struct gdbarch_tdep): Replace os_ident member with abi.
7733 (i386_gdbarch_register_os_abi): New prototype.
7734 * i386-tdep.c (i386_abi_names): New array.
7735 (process_note_abi_tag_sections): Removed.
7736 (process_note_sections): New function.
7737 (i386_elf_abi_from_note, i386_elf_abi): New functions.
7738 (struct i386_abi_handler): New struct.
7739 (i386_abi_handler_list): New variable.
7740 (i386_gdbarch_register_os_abi): New function.
7741 (i386_gdbarch_init): Adapt for the changes given above.
7742
7743 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
7744
7745 * gregset.h: Say "GNU/Linux".
7746
7747 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
7748
7749 * gdbtypes.c : Add new builtin type for 64 bit vectors.
7750 (build_gdbtypes): Build builtin_type_v2_float.
7751 (_initialize_gdbtypes): Register new builtin type.
7752
7753 2002-05-08 Andrew Cagney <ac131313@redhat.com>
7754
7755 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
7756 (clear_gdbarch_swap): New function.
7757 (initialize_non_multiarch): Call.
7758 (gdbarch_update_p): Before calling init(), swap out and clear the
7759 existing architecture.
7760 * gdbarch.c: Regenerate.
7761
7762 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7763
7764 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
7765 alphanbsd-tdep.c.
7766
7767 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7768
7769 * sh-nbsd-nat.c: Rename to...
7770 * shnbsd-nat.c: ...this.
7771 * sh-nbsd-tdep.c: Rename to...
7772 * shnbsd-tdep.c: ...this.
7773 * sh-nbsd-tdep.h: Rename to...
7774 * shnbsd-tdep.h: ...this.
7775 * config/sh/nbsd.mh: Use shnbsd-nat.o.
7776 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
7777
7778 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
7779
7780 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
7781 concatenation for command help messages.
7782
7783 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7784
7785 * NEWS: Note new sh*-*-netbsdelf* configuration.
7786 * configure.host: Set gdb_host_cpu to sh for all sh*.
7787 (sh*-*-netbsdelf*): New host.
7788 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
7789 (sh*-*-netbsdelf*): New target.
7790 * sh-nbsd-nat.c: New file.
7791 * sh-nbsd-tdep.c: New file.
7792 * sh-nbsd-tdep.h: New file.
7793 * config/sh/nbsd.mh: New file.
7794 * config/sh/nbsd.mt: New file.
7795 * config/sh/nm-nbsd.h: New file.
7796 * config/sh/tm-nbsd.h: New file.
7797
7798 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7799
7800 * sh-tdep.c (sh_osabi_names): Declare.
7801 (process_note_abi_tag_sections): New function.
7802 (get_elfosabi): Ditto.
7803 (sh_gdbarch_register_os_abi): Ditto.
7804 (sh_dump_tdep): Ditto.
7805 _initialize_sh_tdep): Use gdbarch_register to register
7806 sh_gdbarch_init and sh_dump_tdep.
7807 * config/sh/tm-sh.h (sh_osabi): Declare.
7808 (gdbarch_tdep): Add sh_osabi and osabi_name members.
7809
7810 2002-05-07 Andrew Cagney <ac131313@redhat.com>
7811
7812 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
7813 (thumb_scan_prologue): Ditto.
7814 (arm_find_callers_reg): Ditto.
7815 (arm_frame_chain): Ditto.
7816 (arm_init_extra_frame_info): Ditto.
7817 (arm_frame_saved_pc): Ditto.
7818 (arm_pop_frame): Ditto.
7819 (arm_push_return_address): New function.
7820 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
7821 call_dummy_location, call_dummy_breakpoint_offset_p,
7822 call_dummy_breakpoint_offset, call_dummy_p,
7823 call_dummy_stack_adjust_p, call_dummy_words,
7824 sizeof_call_dummy_words, call_dummy_start_offset,
7825 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
7826 call_dummy_address, push_return_address and push_dummy_frame for
7827 generic dummy frames.
7828
7829 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
7830
7831 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
7832 size computation for alloca.
7833 (sh_fp_frame_init_saved_regs): Likewise.
7834
7835 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
7836
7837 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
7838 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
7839 * arm-tdep.c (arm_store_return_value): Use them.
7840 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
7841 * remote-rdp.c (remote_rdp_fetch_register): Use
7842 ARM_MAX_REGISTER_RAW_SIZE.
7843 (remote_rdp_store_register): Likewise.
7844
7845 2002-05-07 Michal Ludvig <mludvig@suse.cz>
7846
7847 * dwarf2cfi.c: Code cleanup, removed unused variables,
7848 added default labels to switch {} statements.
7849 * x86-64-tdep.c: Ditto.
7850 * x86-64-linux-nat.c: Ditto.
7851
7852 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
7853
7854 * solib.h: Protect against multiple inclusion.
7855
7856 2002-05-06 Jim Blandy <jimb@redhat.com>
7857
7858 Add first preprocessor macro-expansion files.
7859 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
7860 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
7861 (splay_tree_h, macroexp_h, macrotab_h): New variable.
7862 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
7863 (COMMON_OBS): Add macrotab.o, macroexp.o.
7864 (macroexp.o, macrotab.o): New rules.
7865
7866 Separate the job of reading the line number info statement program
7867 header (...expialidocious) out into its own function.
7868 * dwarf2read.c (struct line_head, struct filenames, struct
7869 directories): Replace with...
7870 (struct line_header): New structure, containing the full
7871 contents of the statement program header, including the
7872 include directory and file name tables.
7873 (read_file_scope): If we have line number info, instead of just
7874 calling dwarf_decode_lines to do all the work, call
7875 dwarf_decode_line_header first to get a `struct line_header'
7876 containing the data in the statement program header, and then
7877 pass that to dwarf_decode_lines, which will pick up where that
7878 left off. Be sure to clean up the `struct line_header' object.
7879 (dwarf_decode_line_header, free_line_header, add_include_dir,
7880 add_file_name): New functions.
7881 (dwarf_decode_lines): Move all the code to read the statement
7882 program header into dwarf_decode_line_header. Take the line
7883 header it built as the first argument, instead of the offset to
7884 the compilation unit's line number info. Use the new `struct
7885 line_header' type instead of the old structures. No need to do
7886 cleanups here now, since we don't allocate anything.
7887 (dwarf2_statement_list_fits_in_line_number_section,
7888 dwarf2_line_header_too_long): New complaints.
7889
7890 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
7891
7892 * gdbtypes.c (init_vector_type): New function.
7893 (build_builtin_type_vec128): Simplify the representation of SIMD
7894 registers.
7895 (build_gdbtypes): Initialize new builtin vector types.
7896 (_initialize_gdbtypes): Register new vector types with gdbarch.
7897 (builtin_type_v4_float, builtin_type_v4_int32,
7898 builtin_type_v8_int16, builtin_type_v16_int8,
7899 builtin_type_v2_int32, builtin_type_v4_int16,
7900 builtin_type_v8_int8): New (renamed) SIMD types.
7901
7902 2002-05-06 Mark Kettenis <kettenis@gnu.org>
7903
7904 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
7905 (i387_fill_fxsave): Likewise.
7906
7907 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
7908
7909 * alpha-tdep.c (alpha_extract_return_value): Don't use
7910 non-constant array size in prototype.
7911
7912 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7913
7914 From Brian Taylor <briant at model dot com>:
7915 * ui-out.c (ui_out_field_core_addr): Use the function
7916 longest_local_hex_string_custom'to format addresses > 32 bits
7917 wide.
7918
7919 * ui-out.c (ui_out_field_core_addr): Update comment.
7920
7921 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7922
7923 * stack.c (select_and_print_frame): Make static. Delete the
7924 parameter `level'.
7925 (func_command): Update call.
7926 (select_frame_command): Delete code computing the frame level.
7927 * frame.h (select_and_print_frame): Delete declaration.
7928
7929 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7930
7931 * sparc-tdep.c (sparc_get_saved_register): Comment why
7932 get_prev_frame call is safe.
7933
7934 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7935
7936 * frame.h (select_frame): Delete level parameter.
7937 * stack.c (select_frame): Update. Use frame_relative_level to
7938 obtain the frame's level.
7939 (select_and_print_frame): Update call.
7940 (select_frame_command): Ditto.
7941 (up_silently_base): Ditto.
7942 (down_silently_base): Ditto.
7943 * ocd.c (ocd_start_remote): Ditto.
7944 * remote-rdp.c (remote_rdp_open): Ditto.
7945 * remote-mips.c (mips_initialize): Ditto.
7946 (common_open): Ditto.
7947 * remote-e7000.c (e7000_start_remote): Ditto.
7948 * m3-nat.c (select_thread): Ditto.
7949 * hppa-tdep.c (child_get_current_exception_event): Ditto.
7950 (child_get_current_exception_event): Ditto.
7951 * varobj.c (varobj_create): Ditto.
7952 (varobj_update): Ditto.
7953 (c_value_of_root): Ditto.
7954 * tracepoint.c (finish_tfind_command): Ditto.
7955 * corelow.c (core_open): Ditto.
7956 * arch-utils.c (generic_prepare_to_proceed): Ditto.
7957 * thread.c (info_threads_command): Ditto.
7958 (switch_to_thread): Ditto.
7959 * infrun.c (normal_stop): Ditto.
7960 (restore_selected_frame): Ditto.
7961 (restore_inferior_status): Ditto.
7962 * breakpoint.c (insert_breakpoints): Ditto.
7963 (watchpoint_check): Ditto.
7964 (bpstat_stop_status): Ditto.
7965 (do_enable_breakpoint): Ditto.
7966 * blockframe.c (flush_cached_frames): Ditto.
7967 (reinit_frame_cache): Ditto.
7968
7969 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7970
7971 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
7972 maintainer.
7973
7974 2002-05-04 Jim Blandy <jimb@redhat.com>
7975
7976 * gdbtypes.c (replace_type): Doc fix.
7977
7978 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7979
7980 * valprint.c (strcat_longest): Delete commented out function.
7981 Update copyright.
7982
7983 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7984
7985 * MAINTAINERS: Mark a29k as deleted.
7986 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
7987 Move new configurations to the top.
7988 * configure.tgt: Remove a29k.
7989 * config/a29k/tm-vx29k.h: Delete.
7990 * config/a29k/vx29k.mt: Delete.
7991 * config/a29k/tm-a29k.h: Delete.
7992 * config/a29k/a29k-udi.mt: Delete.
7993 * config/a29k/a29k.mt: Delete.
7994 * a29k-tdep.c: Delete.
7995 * remote-udi.c: Delete.
7996 * remote-mm.c: Delete.
7997 * remote-eb.c: Delete.
7998 * remote-adapt.c: Delete.
7999 * Makefile.in: Remove obsolete code.
8000 * config/s390/s390x.mt: Ditto.
8001 * config/s390/s390.mt: Ditto.
8002 * config/sparc/sparclynx.mh: Ditto.
8003 * config/sparc/linux.mh: Ditto.
8004 * config/pa/hppaosf.mh: Ditto.
8005 * config/pa/hppabsd.mh: Ditto.
8006 * config/ns32k/nbsd.mt: Ditto.
8007 * config/mips/vr5000.mt: Ditto.
8008 * config/m68k/sun3os4.mh: Ditto.
8009 * config/m68k/nbsd.mt: Ditto.
8010 * config/m68k/m68klynx.mh: Ditto.
8011 * config/m32r/m32r.mt: Ditto.
8012 * config/i386/x86-64linux.mt: Ditto.
8013 * config/i386/nbsdelf.mt: Ditto.
8014 * config/i386/nbsd.mt: Ditto.
8015 * config/i386/i386lynx.mh: Ditto.
8016
8017 2002-05-04 Andrew Cagney <ac131313@redhat.com>
8018
8019 * target.c (debug_print_register): New function. Handle oversize
8020 registers.
8021 (debug_to_fetch_registers): Call.
8022 (debug_to_store_registers): Call.
8023
8024 2002-05-03 Jim Blandy <jimb@redhat.com>
8025
8026 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
8027 (read_type): Doc fix.
8028 * gdbtypes.c (replace_type): Doc fix.
8029
8030 * stabsread.c (multiply_defined_struct): New complaint.
8031 (read_struct_type): If the type we were passed isn't empty, or
8032 incomplete, don't read the new struct type into it; complain,
8033 and return the original type unchanged. Take a new `type_code'
8034 argument, which is the type code for the new type.
8035 (read_type): Rather than storing the type's type code here, pass
8036 it as an argument to read_struct_type, and let that take care of
8037 storing it. That way, we don't overwrite the original type code,
8038 so read_struct_type can use it to decide whether we're overwriting
8039 something we shouldn't.
8040 (complain_about_struct_wipeout): New function.
8041
8042 2002-05-03 Andrew Cagney <ac131313@redhat.com>
8043
8044 * gdbarch.sh: Assert that gdbarch is non-NULL.
8045 * gdbarch.c: Regenerate.
8046
8047 2002-05-03 Jason Merrill <jason@redhat.com>
8048
8049 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
8050 and return NULL.
8051
8052 2002-05-03 Michal Ludvig <mludvig@suse.cz>
8053
8054 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
8055 (x86_64_dwarf2gdb_regno_map_length),
8056 (x86_64_dwarf2_reg_to_regnum): Added.
8057 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
8058 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
8059 (_initialize_x86_64_tdep): Synced with the change above.
8060 (x86_64_skip_prologue): Reformulated message.
8061
8062 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
8063
8064 * f-exp.y: Also use new prev_lexptr variable
8065 to improve error reporting. Based on Michael Snyder
8066 2002-04-24 dated patch to c-exp.y.
8067 * jv-exp.y: Likewise.
8068 * m2-exp.y: Likewise.
8069
8070 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
8071
8072 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
8073 we are dealing with vectors.
8074
8075 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
8076
8077 * config/m68k/tm-nbsd.h: Obvious fix,
8078 correct machine name.
8079
8080 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
8081
8082 * p-typeprint.c (pascal_type_print_base): Add support
8083 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
8084
8085 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
8086
8087 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
8088 for fondamental pascal 'char' type.
8089
8090 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
8091
8092 * p-lang.h (is_pascal_string_type): Declaration changed,
8093 new sixth argument of type char ** added.
8094 * p-lang.c (is_pascal_string_type): Implementation
8095 changed. Args length_pos, length_size, string_pos, char_size
8096 can now be NULL. New argument arrayname set to the field
8097 name of the char array. Return value set to char array
8098 field index plus one.
8099 * p-valprint.c (pascal_val_print): Adapt to new declaration of
8100 is_pascal_string_type function.
8101
8102 2002-05-02 Andrew Cagney <cagney@redhat.com>
8103
8104 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
8105 <cagney@redhat.com> change.
8106 * gdbarch.c: Regenerate.
8107
8108 2002-05-02 Andrew Cagney <cagney@redhat.com>
8109
8110 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
8111 before probing for a new one. Detect errorenous gdbarch_init
8112 functions.
8113 * gdbarch.c: Regenerate.
8114
8115 2002-05-01 Andrew Cagney <cagney@redhat.com>
8116
8117 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
8118 * config/mcore/tm-mcore.h: Ditto. Update copyright.
8119 * config/v850/tm-v850.h: Ditto. Update copyright.
8120
8121 2002-04-30 Andrew Cagney <ac131313@redhat.com>
8122
8123 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
8124 current_gdbarch.
8125
8126 2002-04-30 Michael Snyder <msnyder@redhat.com>
8127
8128 * arm-tdep.c: Whitespace clean-ups.
8129 (arm_skip_prologue): Fix thinko; two lines
8130 should have been removed as part of 4/24 change.
8131
8132 2002-04-30 Kevin Buettner <kevinb@redhat.com>
8133
8134 * rs6000-tdep.c: Added comment describing how fpscr register
8135 numbers were chosen.
8136
8137 2002-04-30 Michael Snyder <msnyder@redhat.com>
8138
8139 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
8140
8141 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
8142
8143 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
8144 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
8145 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
8146
8147 2002-04-29 Kevin Buettner <kevinb@redhat.com>
8148
8149 From Louis Hamilton <hamilton@redhat.com>:
8150 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
8151 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
8152 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
8153 not bfd-private xcoff data, to determine wordsize.
8154 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
8155
8156 2002-04-29 Andrew Cagney <ac131313@redhat.com>
8157
8158 GDB 5.2 released from 5.2 branch.
8159
8160 2002-04-29 Michal Ludvig <mludvig@suse.cz>
8161
8162 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
8163 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
8164 (x86_64_register_info_table): Added comments with register numbers.
8165
8166 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
8167
8168 * rs6000-tdep.c (rs6000_extract_return_value,
8169 rs6000_store_return_value): Handle returning vectors.
8170 (rs6000_gdbarch_init): Use
8171 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
8172 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
8173 New function.
8174 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
8175 vectors.
8176 (ppc_sysv_abi_push_arguments): Handle vector parameters.
8177 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
8178
8179 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
8180
8181 * hpread.c (hpread_psymtab_to_symtab_1,
8182 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
8183 with fprintf_unfiltered (gdb_stderr,...).
8184
8185 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
8186
8187 * remote-array.c (printf_monitor, write_monitor,
8188 array_insert_breakpoint, array_remove_breakpoint ):
8189 Replace fprintf (stderr,...
8190 with fprintf_unfiltered (gdb_stderr,....
8191 * remote-es.c: Likewise.
8192 * remote-os9k.c: Likewise.
8193 * remote-st.c: Likewise.
8194
8195 2002-04-28 Andreas Schwab <schwab@suse.de>
8196
8197 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
8198 linux-proc.o and gcore.o.
8199
8200 2002-04-26 Michal Ludvig <mludvig@suse.cz>
8201
8202 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
8203 code without frame pointers.
8204
8205 2002-04-26 Andrew Cagney <ac131313@redhat.com>
8206
8207 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
8208 ON_STACK is needed.
8209
8210 2002-04-26 Ben Elliston <bje@redhat.com>
8211
8212 * target.c (do_xfer_memory): Correct reference to the new option
8213 "trust-readonly-sections".
8214
8215 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
8216
8217 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
8218 * gdbtypes.c (recursive_dump_type): Output the vector flag.
8219 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
8220 vectors.
8221 (read_array_type): Record the fact that this array type is really a
8222 vector (i.e. are passed in by value).
8223
8224 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
8225
8226 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
8227 * alpha-tdep.c (alpha_sigcontext_addr): New function.
8228 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
8229 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
8230 * alpha-linux-tdep.c: Include frame.h.
8231 (alpha_linux_sigcontext_addr): New function.
8232 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
8233 alpha_linux_sigcontext_addr.
8234 * alpha-osf1-tdep.c: Include gdbcore.h.
8235 (alpha_osf1_sigcontext_addr): New function.
8236 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
8237 alpha_osf1_sigcontext_addr.
8238 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
8239 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
8240
8241 2002-04-26 Andrew Cagney <ac131313@redhat.com>
8242
8243 * stack.c (selected_frame_level):
8244 (select_frame): Do not set selected_frame_level.
8245 * frame.h (selected_frame_level): Delete declaration.
8246
8247 2002-04-26 Andrew Cagney <ac131313@redhat.com>
8248
8249 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
8250 convert_from_func_ptr-addr when AIX / PowerOpen.
8251
8252 2002-04-25 Andrew Cagney <ac131313@redhat.com>
8253
8254 * valops.c (hand_function_call): Call
8255 generic_save_call_dummy_addr.
8256 * frame.h (generic_save_call_dummy_addr): Declare.
8257 * blockframe.c (struct dummy_frame): Add fields call_lo and
8258 call_hi.
8259 (generic_find_dummy_frame): Check for PC in range call_lo to
8260 call_hi instead of entry_point_address.
8261 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
8262 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
8263 (generic_save_call_dummy_addr): New function.
8264
8265 2002-04-24 David S. Miller <davem@redhat.com>
8266
8267 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
8268 sparc_skip_prologue.
8269 (sparc_skip_prologue): Kill frameless_p arg, and use line number
8270 information to find prologue when possible.
8271 (sparc_prologue_frameless_p): Call examine_prologue directly.
8272 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
8273 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
8274 second argument.
8275 (SKIP_PROLOGUE): Likewise.
8276
8277 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
8278
8279 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
8280 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
8281 indicate that the condition it was testing is always true.
8282 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
8283 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
8284 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
8285
8286 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
8287
8288 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
8289 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
8290 tdep->jb_pc and tdep->jb_elt_size.
8291 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
8292 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
8293 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
8294 * alpha-nat.c (get_longjmp_target): Remove.
8295 (JB_ELEMENT_SIZE): Ditto.
8296 (JB_PC): Ditto.
8297 * alpha-tdep.c (alpha_get_longjmp_target): New function.
8298 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
8299 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
8300 to alpha_get_longjmp_target.
8301 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
8302 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
8303 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
8304
8305 2002-04-25 Andrew Cagney <ac131313@redhat.com>
8306
8307 * README: Update to GDB 5.2.
8308
8309 2002-04-25 Andrew Cagney <ac131313@redhat.com>
8310
8311 * gdbarch.sh (LC_ALL): Set to `c'.
8312
8313 2002-04-25 Theodore A. Roth <troth@verinet.com>
8314
8315 * avr-tdep.c: Ran through gdb_indent.sh.
8316
8317 2002-04-25 Theodore A. Roth <troth@verinet.com>
8318
8319 * MAINTAINERS: Add myself as AVR maintainer.
8320 * NEWS: Note new target avr.
8321
8322 2002-04-25 Theodore A. Roth <troth@verinet.com>
8323
8324 * Makefile.in: Add support for AVR target.
8325 * configure.tgt: Add support for AVR target.
8326 * avr-tdep.c: New file
8327 * config/avr/avr.mt: New file.
8328
8329 2002-04-25 Theodore A. Roth <troth@verinet.com>
8330
8331 * MAINTAINERS: Add myself to write-after-approval.
8332
8333 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
8334
8335 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
8336 with fprintf_unfiltered (gdb_stderr,....
8337
8338 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
8339
8340 Fix PR gdb/508.
8341 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
8342
8343 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
8344
8345 * p-exp.y: Also use new prev_lexptr variable
8346 to improve error reporting. Based on Michael Snyder
8347 2002-04-24 dated patch to c-exp.y.
8348
8349 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
8350
8351 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
8352 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
8353 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
8354 to 0.
8355 * config/alpha/tm-alpha.h: Remove forward decls of struct type
8356 and struct value.
8357 (FUNCTION_START_OFFSET): Remove.
8358 (BREAKPOINT): Ditto.
8359
8360 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
8361
8362 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
8363 * NEWS: Ditto.
8364
8365 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
8366
8367 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
8368 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
8369 alpha_linux_pc_in_sigtramp.
8370 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
8371 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
8372 alpha_osf1_pc_in_sigtramp.
8373 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
8374 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
8375 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
8376 alphafbsd_pc_in_sigtramp.
8377 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
8378 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
8379 alphanbsd_pc_in_sigtramp.
8380 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
8381 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
8382
8383 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
8384
8385 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
8386
8387 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
8388
8389 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
8390 alphanbsd-tdep.c.
8391 (alphanbsd-nat.o): New dependency list.
8392 (alphanbsd-tdep.o): Ditto.
8393 * NEWS: Note new native NetBSD/alpha configuration.
8394 * alphanbsd-nat.c: New file.
8395 * alphanbsd-tdep.c: Ditto.
8396 * configure.host (alpha*-*-netbsd*): New host.
8397 * configure.tgt (alpha*-*-netbsd*): New target.
8398 * config/alpha/nbsd.mh: New file.
8399 * config/alpha/nbsd.mt: Ditto.
8400 * config/alpha/nm-nbsd.h: Ditto.
8401 * config/alpha/tm-nbsd.h: Ditto.
8402
8403 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
8404
8405 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
8406 (alpha-osf1-tdep.o): New dependency list.
8407 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
8408 and skip_sigtramp_frame members.
8409 * alpha-linux-tdep.c: Include gdbcore.h.
8410 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
8411 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
8412 * alpha-osf1-tdep.c: New file.
8413 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
8414 alpha-osf1-dep.c.
8415 (alpha_frame_past_sigtramp_frame): New function.
8416 (alpha_dynamic_sigtramp_offset): Ditto.
8417 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
8418 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
8419 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
8420 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
8421 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
8422 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
8423 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
8424 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
8425 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
8426 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
8427 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
8428 to find_solib_trampoline_target.
8429 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
8430 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
8431 (SKIP_TRAMPOLINE_CODE): Remove.
8432 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
8433 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
8434 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
8435 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
8436 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
8437 (PROC_SIGTRAMP_MAGIC): Ditto.
8438 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
8439 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
8440 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
8441 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
8442 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
8443
8444 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
8445
8446 * NEWS: Note that Alpha targets are now multi-arch.
8447
8448 2002-04-24 Michael Snyder <msnyder@redhat.com>
8449
8450 * parser-defs.h (prev_lexptr): New external variable.
8451 * parse.c (parse_exp_1): Set prev_lexptr to null before
8452 calling the language-specific parser.
8453 * c-exp.y (yylex): Set prev_lexptr to start of current token.
8454 (yyerror): Use prev_lexptr in error reporting.
8455
8456 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
8457
8458 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
8459 * gregset.h: If FILL_FPXREGSET is defined, provide
8460 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
8461 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
8462 is defined, call fill_fpxregset.
8463
8464 2002-04-24 Roland McGrath <roland@frob.com>
8465
8466 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
8467 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
8468 (supply_gregset, supply_fpregset): New functions.
8469
8470 * gnu-nat.c (gnu_find_memory_regions): New function.
8471 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
8472 (gnu_xfer_memory): Add a cast.
8473
8474 2002-04-24 Michael Snyder <msnyder@redhat.com>
8475
8476 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
8477 loop. Add handling for "str lr, [sp, #-4]!" and for saves
8478 of argument regs ("str r(0123), [r11, #-nn"]).
8479 (arm_skip_prologue): Better handling for frameless functions.
8480 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
8481 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
8482
8483 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
8484
8485 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
8486 NUM_PSEUDO_REGS can be used.
8487
8488 2002-04-24 Andrew Cagney <ac131313@redhat.com>
8489
8490 * arch-utils.h: Update copyright.
8491
8492 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
8493 * gdbarch.h, gdbarch.c: Re-generate.
8494
8495 * inferior.h (IN_SIGTRAMP): Delete definition.
8496 * arch-utils.c (legacy_pc_in_sigtramp): New function.
8497 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
8498
8499 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
8500 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
8501 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
8502 (find_proc_framesize): Ditto.
8503 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
8504 (alpha_init_extra_frame_info): Ditto.
8505 * infrun.c (handle_inferior_event): Ditto.
8506 (handle_inferior_event): Ditto.
8507 (check_sigtramp2): Ditto.
8508 * blockframe.c (create_new_frame): Ditto.
8509 (get_prev_frame): Ditto.
8510 * ppc-linux-tdep.c: Update comments.
8511 * i386-linux-tdep.c: Update comments.
8512 * breakpoint.c (bpstat_what): Update comment.
8513
8514 2002-04-24 David S. Miller <davem@redhat.com>
8515
8516 * i960-tdep.c (register_in_window_p): New function.
8517 (i960_find_saved_register): Use it instead of
8518 REGISTER_IN_WINDOW_P.
8519 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
8520
8521 * symtab.h (find_stab_function_addr): Kill extern.
8522 * minsyms.c (find_stab_function_addr): Remove from here...
8523 * dbxread.c: ... to here, and mark it static.
8524
8525 2002-04-20 David S. Miller <davem@redhat.com>
8526
8527 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
8528 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
8529
8530 2002-04-21 David S. Miller <davem@redhat.com>
8531
8532 * remote-vxsparc.c (vx_read_register): Fix typo, we want
8533 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
8534 (vx_write_register): Likewise.
8535
8536 2002-04-23 J. Brobecker <brobecker@gnat.com>
8537
8538 * source.c (is_regular_file): New function.
8539 (openp): Check wether file to open is a regular file
8540 to avoid opening directories.
8541
8542 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8543
8544 * findvar.c (extract_signed_integer): Cast printf argument
8545 to suppress format warning.
8546 (extract_unsigned_integer): Likewise.
8547 * infcmd.c (registers_info): Likewise.
8548 * top.c (get_prompt_1): Likewise.
8549 * valops.c (value_assign): Likewise.
8550 * valprint.c (print_decimal): Likewise.
8551
8552 2002-04-22 H.J. Lu (hjl@gnu.org)
8553
8554 * c-exp.y (typebase): Support
8555
8556 [long|long long|short] [signed|unsigned] [int|]
8557
8558 and
8559
8560 signed [long|long long|short] int
8561
8562 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8563
8564 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
8565 and vax-tdep.h.
8566 * vax-tdep.h: New file.
8567 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
8568 Make several routines static.
8569 (vax_get_saved_register): New function.
8570 (vax_gdbarch_init): New function.
8571 (_initialize_vax_tdep): Register vax_gdbarch_init.
8572 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
8573 Remove macros now under the control of gdbarch.
8574
8575 2002-04-22 Michael Snyder <msnyder@redhat.com>
8576
8577 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
8578 Some whitespace and coding standards tweaks.
8579
8580 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8581
8582 * vax-tdep.c: Include regcache.h.
8583 (vax_call_dummy_words): New.
8584 (sizeof_vax_call_dummy_words): New.
8585 (vax_fix_call_dummy): New function.
8586 (vax_saved_pc_after_call): Ditto.
8587 * config/vax/tm-vax.h: Don't include regcache.h.
8588 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
8589 (CALL_DUMMY): Remove.
8590 (CALL_DUMMY_WORDS): Define.
8591 (SIZEOF_CALL_DUMMY_WORDS): Define.
8592 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
8593
8594 2002-04-18 Michael Snyder <msnyder@redhat.com>
8595
8596 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
8597
8598 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8599
8600 * vax-tdep.c (vax_frame_chain): New function.
8601 (vax_push_dummy_frame): Ditto.
8602 (vax_pop_frame): Ditto.
8603 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
8604 (FRAMELESS_FUNCTION_INVOCATION): Use
8605 generic_frameless_function_invocation_not.
8606 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
8607 (POP_FRAME): Use vax_pop_frame.
8608
8609 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8610
8611 * vax-tdep.c (vax_store_struct_return): New function.
8612 (vax_extract_return_value): Ditto.
8613 (vax_store_return_value): Ditto.
8614 (vax_extract_struct_value_address): Ditto.
8615 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
8616 vax_store_struct_return.
8617 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
8618 (STORE_RETURN_VALUE): Use vax_store_return_value.
8619 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
8620
8621 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8622
8623 * vax-tdep.c (vax_frame_saved_pc): New function.
8624 (vax_frame_args_address_correct): Ditto.
8625 (vax_frame_args_address): Ditto.
8626 (vax_frame_locals_address): Ditto.
8627 (vax_frame_num_args): Move code to be in proximity to
8628 other frame-related functions.
8629 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
8630 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
8631 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
8632 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
8633 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
8634
8635 2002-04-22 H.J. Lu (hjl@gnu.org)
8636
8637 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
8638 includedir.
8639
8640 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8641
8642 * vax-tdep.c (vax_frame_init_saved_regs): New function.
8643 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
8644 (FRAME_INIT_SAVED_REGS): New macro.
8645
8646 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8647
8648 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
8649
8650 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8651
8652 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
8653 where needed.
8654 (fetch_osf_core_registers): Likewise.
8655 (supply_gregset): Likewise.
8656
8657 2002-04-22 J. Brobecker <brobecker@gnat.com>
8658
8659 * symfile.h (get_section_index): Define.
8660 * symfile.c (get_section_index): New function.
8661 * mdebugread.c (SC_IS_SBSS): New macro.
8662 (SC_IS_BSS): Return true for the scBss storage class only, as
8663 the scSBss storage class refers to the .sbss section.
8664 (parse_partial_symbols): Discard the symbols which associated
8665 section does not exist.
8666 Make sure to use the .sbss section index for symbols which
8667 storage class is scBss, rather than using the .bss section index.
8668
8669 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8670
8671 * vax-tdep.c: Update copyright years.
8672 (vax_register_name): New function.
8673 (vax_register_byte): Ditto.
8674 (vax_register_raw_size): Ditto.
8675 (vax_register_virtual_size): Ditto.
8676 (vax_register_virtual_type): Ditto.
8677 * config/vax/tm-vax.h: Update copyright years.
8678 (REGISTER_NAMES): Remove.
8679 (REGISTER_NAME): Define.
8680 (REGISTER_BYTE): Use vax_register_byte.
8681 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
8682 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
8683 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
8684
8685 2002-04-21 Andrew Cagney <ac131313@redhat.com>
8686
8687 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
8688 declaration
8689 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
8690
8691 2002-04-21 David S. Miller <davem@redhat.com>
8692
8693 * arch-utils.c (generic_prologue_frameless_p): Kill
8694 SKIP_PROLOGUE_FRAMELESS_P code.
8695 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
8696 references.
8697 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
8698 * arc-tdep.c (arc_prologue_frameless_p): Implement.
8699 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
8700 references.
8701 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
8702 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
8703 (sparc_gdbarch_init): Pass it to
8704 set_gdbarch_prologue_frameless_p.
8705
8706 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8707
8708 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
8709 (alphabsd-nat.o): New dependency list.
8710
8711 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8712
8713 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
8714 alphafbsd-tdep.c.
8715 (alpha-linux-tdep.o): New dependency list.
8716 (alphafbsd-tdep.o): Likewise.
8717
8718 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8719
8720 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
8721 to here...
8722 * alpha-tdep.c: ...from here.
8723 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
8724
8725 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8726
8727 * config/alpha/tm-alpha.h: Move alpha_software_single_step
8728 prototype from here...
8729 * alpha-tdep.h: ...to here.
8730
8731 2002-04-21 Andrew Cagney <ac131313@redhat.com>
8732
8733 * frame.h (selected_frame_level): Document as deprecated.
8734 (frame_relative_level): Declare.
8735 * stack.c (frame_relative_level): New function.
8736 (selected_frame_level): Document as deprecated.
8737 (select_frame): Do not set the selected_frame_level.
8738
8739 * stack.c (frame_info, record_selected_frame): Update.
8740 (frame_command, current_frame_command): Update.
8741 (up_silently_base, up_command, down_silently_base): Update.
8742 (down_command): Update.
8743 * inflow.c (kill_command): Update.
8744 * tracepoint.c (finish_tfind_command): Update.
8745 * corelow.c (core_open): Update.
8746 * thread.c (info_threads_command): Update.
8747 (do_captured_thread_select): Update.
8748 * infcmd.c (finish_command): Update.
8749 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
8750
8751 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8752
8753 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
8754
8755 2002-04-21 Andrew Cagney <ac131313@redhat.com>
8756
8757 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
8758 type const.
8759
8760 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8761
8762 * alphafbsd-tdep.c: Update copyright years. Include
8763 alpha-tdep.h.
8764 (alphafbsd_use_struct_convention): Make static.
8765 (alphafbsd_init_abi): New function.
8766 (_initialize_alphafbsd_tdep): New function.
8767 * config/alpha/tm-fbsd.h: Update copyright years.
8768 (USE_STRUCT_CONVENTION): Remove.
8769
8770 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8771
8772 * alpha-tdep.c (alpha_abi_handler): New structure to describe
8773 an Alpha ABI variant.
8774 (alpha_abi_handler_list): Declare.
8775 (alpha_gdbarch_register_os_abi): New function.
8776 (alpha_gdbarch_init): Give registered ABI variant handlers a
8777 chance to tweak the gdbarch once we have set up defaults.
8778 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
8779
8780 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8781
8782 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
8783 to standard_coerce_float_to_double.
8784 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
8785
8786 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8787
8788 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
8789 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
8790 from gdbarch_tdep rather than a constant.
8791 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
8792 the default text address for all Alpha Unix ABIs.
8793 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
8794 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
8795
8796 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8797
8798 * alpha-tdep.h: New file. Includes several Alpha target constants
8799 taken from...
8800 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
8801 let gdbarch deal with.
8802 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
8803 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
8804 to dependency list.
8805 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
8806 Alpha target register names.
8807 * alphabsd-nat.c: Likewise.
8808 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
8809 Alpha target register names. Make serveral routines static.
8810 (alpha_get_saved_register): New function.
8811 (alpha_abi_names): New.
8812 (process_note_abi_tag_sections): New function.
8813 (get_elfosabi): New function.
8814 (alpha_gdbarch_init): New function.
8815 (alpha_dump_tdep): New function.
8816 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
8817
8818 2002-04-21 Andrew Cagney <ac131313@redhat.com>
8819
8820 * frame.c (find_saved_register): Delete #ifdef
8821 HAVE_REGISTER_WINDOWS code.
8822 * config/sparc/tm-sparc.h: Update comments.
8823 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
8824
8825 2002-04-21 Andrew Cagney <ac131313@redhat.com>
8826
8827 * i960-tdep.c (i960_find_saved_register): New function.
8828 (i960_get_saved_register): New function.
8829 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
8830 (i960_get_saved_register): Declare.
8831 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
8832
8833 2002-04-20 David S. Miller <davem@redhat.com>
8834
8835 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
8836
8837 2002-04-20 Andrew Cagney <ac131313@redhat.com>
8838
8839 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
8840 instead of NUM_PSEUDO_REGS.
8841
8842 2002-04-20 David S. Miller <davem@redhat.com>
8843
8844 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
8845 GDB_MULTI_ARCH_PARTIAL
8846 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
8847 define, let tm-sp64.h do it.
8848
8849 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
8850
8851 * frame.c (find_saved_register): Avoid a NULL pointer
8852 dereference and actually walk the frame list.
8853
8854 2002-04-20 Andrew Cagney <ac131313@redhat.com>
8855
8856 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
8857 sorted in most most-recent-used order. Document.
8858 * gdbarch.h, gdbarch.c: Regenerate.
8859
8860 2002-04-19 Andrew Cagney <ac131313@redhat.com>
8861
8862 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
8863 instead of ->prev.
8864 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
8865 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
8866 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
8867 instead of ->prev.
8868
8869 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
8870
8871 Fix PR gdb/471.
8872 * gdbtypes.c (init_simd_type): Rewrite using new functions.
8873 (build_builtin_type_vec128): Ditto.
8874 (append_composite_type_field): Fix calculation of type length in
8875 union case.
8876
8877 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
8878
8879 * config/djgpp/README: Update.
8880
8881 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
8882 compiler warnings.
8883
8884 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
8885
8886 * alpha-tdep.c (setup_arbitrary_frame): Rename...
8887 (alpha_setup_arbitrary_frame): ...to this.
8888 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
8889 for alpha_setup_arbitrary_frame.
8890
8891 2002-04-18 Andrew Cagney <cagney@redhat.com>
8892
8893 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
8894 * gdbarch.h, gdbarch.c: Regenerate.
8895
8896 * defs.h (breakpoint_from_pc_fn): Delete type definition.
8897 * target.h (memory_breakpoint_from_pc): Update declaration.
8898 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
8899
8900 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
8901 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
8902 * mem-break.c (memory_breakpoint_from_pc): Ditto.
8903 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
8904 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
8905 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
8906 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
8907 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
8908 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
8909 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
8910 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
8911 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
8912
8913 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
8914 const pointer.
8915 * monitor.c (monitor_insert_breakpoint): Ditto.
8916 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
8917
8918 * config/mcore/tm-mcore.h: Update copyright.
8919 * mem-break.c: Ditto.
8920 * xstormy16-tdep.c: Ditto.
8921
8922 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
8923
8924 * p-exp.y: Add precedence rule for '^' token.
8925 This removes the shift/reduce conflicts.
8926 Remove the comment concerning these shift/reduce conflicts.
8927
8928 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
8929
8930 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
8931 (registers_powerpc_nofp): New register set for processors
8932 without floating point unit.
8933
8934 2002-04-18 David S. Miller <davem@redhat.com>
8935
8936 * MAINTAINERS: Add myself to write-after-approval.
8937
8938 2002-04-17 Michael Snyder <msnyder@redhat.com>
8939
8940 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
8941
8942 2002-04-17 Andrew Cagney <ac131313@redhat.com>
8943
8944 * rs6000-tdep.c (frame_initial_stack_address): Use
8945 frame_register_read to read the alloca_reg.
8946
8947 2002-04-17 Andrew Cagney <ac131313@redhat.com>
8948
8949 * frame.c (find_saved_register): Find saved registers in the next
8950 not prev frame.
8951 Fix PR gdb/365.
8952
8953 2002-04-17 Andrew Cagney <ac131313@redhat.com>
8954
8955 * gdbarch.sh (LANG): Set to ``c''.
8956
8957 2002-04-15 Andrew Cagney <ac131313@redhat.com>
8958
8959 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
8960
8961 2002-04-15 Andrew Cagney <ac131313@redhat.com>
8962
8963 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
8964 Update copyright.
8965
8966 * hpread.c (hpread_get_lntt): Add declaration.
8967 Also fix PR gdb/391.
8968
8969 2002-04-14 Andrew Cagney <ac131313@redhat.com>
8970
8971 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
8972 * aclocal.m4, configure: Re-generate.
8973 Fix PR gdb/391.
8974
8975 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
8976
8977 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
8978 instead of tm_print_insn.
8979
8980 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
8981
8982 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
8983
8984 2002-04-14 Andrew Cagney <ac131313@redhat.com>
8985
8986 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
8987 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
8988 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
8989
8990 2002-04-12 Don Howard <dhoward@redhat.com>
8991
8992 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
8993 max_user_call_depth.
8994 (init_cmd_lists): Initialize the new value;
8995 * cli/cli-script.c (execute_user_command): Limit the call depth of
8996 user defined commands. This avoids a core-dump when user commands
8997 are infinitly recursive.
8998
8999 2002-04-12 Kevin Buettner <kevinb@redhat.com>
9000
9001 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
9002 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
9003 from tdep struct instead of DEFAULT_LR_SAVE.
9004 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
9005 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
9006 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
9007
9008 2002-04-12 Michael Snyder <msnyder@redhat.com>
9009
9010 * Remote.c: Spelling fix.
9011 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
9012 If no symbol found for "sbrk", try "_sbrk".
9013 (make_output_phdrs): Use bfd_section_name.
9014 (gcore_copy_callback): Use bfd_section_name.
9015 * eval.c: Indentation fix-ups.
9016 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
9017 in case it gets applied to an address that is already
9018 in the instruction space.
9019 * cli/cli-decode.c (help_list): Allow long lines to wrap.
9020 * symfile.c: Fix indentation, long lines.
9021 * source.c: White space fix-up.
9022
9023 2002-04-12 Andrew Cagney <cagney@redhat.com>
9024
9025 * defs.h (read_relative_register_raw_bytes): Delete declaration.
9026 * frame.c (frame_register_read): New function. Return non-zero on
9027 success.
9028 (read_relative_register_raw_bytes_for_frame): Delete.
9029 (read_relative_register_raw_bytes): Delete.
9030 * frame.h (frame_register_read): Declare.
9031 * d30v-tdep.c: Update Copyright. Use frame_register_read.
9032 * sh-tdep.c: Ditto.
9033 * infcmd.c (do_registers_info): Ditto.
9034 * hppa-tdep.c: Ditto.
9035 * rs6000-tdep.c: Ditto.
9036 * h8500-tdep.c: Ditto.
9037 * mips-tdep.c: Ditto.
9038 * h8300-tdep.c: Ditto.
9039 * z8k-tdep.c: Ditto.
9040
9041 2002-04-12 Kevin Buettner <kevinb@redhat.com>
9042
9043 From Jimi X <jimix@watson.ibm.com>:
9044 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
9045 64-bit SysV ABI.
9046
9047 2002-04-12 Kevin Buettner <kevinb@redhat.com>
9048
9049 From Jimi X <jimix@watson.ibm.com>:
9050 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
9051 bfd info.
9052
9053 2002-04-12 Kevin Buettner <kevinb@redhat.com>
9054
9055 From Jimi X <jimix@watson.ibm.com>:
9056 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
9057 register sets for these processor variants.
9058
9059 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
9060
9061 * regformats/reg-ppc.dat: Support FPSCR.
9062
9063 2002-04-11 Kevin Buettner <kevinb@redhat.com>
9064
9065 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
9066 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
9067 Add fpscr as an invalid/unfetchable register.
9068 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
9069 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
9070 (fill_fpregset): Add support for register fpscr.
9071 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
9072 (fill_gregset): Account for the fact that register ``mq'' might
9073 not exist.
9074 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
9075 (registers_power): Add fpscr to register set at slot 71.
9076 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
9077 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
9078
9079 2002-04-11 Michael Snyder <msnyder@redhat.com>
9080
9081 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
9082 * configure: Regenerate.
9083 * config.in: Regenerate.
9084 * acconfig.h: Add define for _SYSCALL32.
9085 * core-sol2.c: Remove #define _SYSCALL32.
9086 * solib-legacy.c: Remove #define _SYSCALL32.
9087
9088 2002-04-10 Andrew Cagney <ac131313@redhat.com>
9089
9090 * stack.c (select_frame): Cleanup internal error message, do not
9091 use %p.
9092
9093 2002-04-10 Andrew Cagney <ac131313@redhat.com>
9094
9095 * stack.c (select_frame): Check that selected_frame and the
9096 specified level are as expected.
9097 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
9098 Update copyright.
9099 * frame.h (struct frame_info): Add field `level'. Update
9100 copyright.
9101 Work-in-progress PR gdb/464.
9102
9103 2002-04-10 Andrew Cagney <ac131313@redhat.com>
9104
9105 * maint.c (maint_print_section_info): Rename print_section_info.
9106 (print_bfd_section_info, print_objfile_section_info): Update.
9107 * inferior.h (struct gdbarch): Add opaque declaration.
9108 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
9109 * gdbarch.h: Regenerate.
9110
9111 2002-04-10 Michal Ludvig <mludvig@suse.cz>
9112
9113 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
9114 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
9115 (kernel_u_size): Added.
9116 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
9117 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
9118
9119 2002-04-04 Jim Ingham <jingham@apple.com>
9120
9121 * valarith.c (find_size_for_pointer_math): New function, either returns
9122 the size for a pointer's target, returns 1 for void *, or errors for
9123 incomplete types.
9124 (value_add, value_sub): use find_size_for_pointer_math.
9125
9126 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
9127
9128 * linux-low.c (linux_look_up_symbols): New hook.
9129 (linux_target_ops): Add linux_look_up_symbols.
9130 * remote-utils.c (decode_address): New function.
9131 (look_up_one_symbol): New function.
9132 * server.c (handle_query): Call target look_up_symbols hook.
9133 * server.h (look_up_one_symbol): Add prototype.
9134 * target.h (struct target_ops): Add look_up_symbols hook.
9135
9136 2002-04-09 Andrew Cagney <ac131313@redhat.com>
9137
9138 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
9139 override FP_REGNUM with frame->fp. Update copyright.
9140 * parse.c (num_std_regs, std_regs): Delete.
9141 (target_map_name_to_register): Do not search std_regs. Update
9142 function description.
9143 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
9144 declarations. Update copyright.
9145 Fix PR gdb/251.
9146
9147 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
9148
9149 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
9150 after the last symbol in a block.
9151
9152 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
9153
9154 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
9155 is non zero as a found symbol.
9156
9157 2002-04-08 Andrew Cagney <ac131313@redhat.com>
9158
9159 * findvar.c: Include "builtin-regs.h".
9160 (value_of_register): Call value_of_builtin_reg when applicable.
9161 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
9162 (target_map_name_to_register): Call
9163 builtin_reg_map_name_to_regnum.
9164 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
9165 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
9166 (builtin_regs_h): Define.
9167 (builtin-regs.o): New target.
9168 (findvar.o): Add $(builtin_regs_h).
9169 * builtin-regs.c, builtin-regs.h: New files.
9170 * std-regs.c: New file.
9171 Partial fix for PR gdb/251.
9172
9173 2002-04-08 Kevin Buettner <kevinb@redhat.com>
9174
9175 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
9176 it's no longer required.
9177
9178 2002-04-08 Andrew Cagney <ac131313@redhat.com>
9179
9180 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
9181
9182 2002-04-08 Kevin Buettner <kevinb@redhat.com>
9183
9184 From Jimi X <jimix@watson.ibm.com>:
9185 * rs6000-tdep.c (rs6000_software_single_step): Use
9186 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
9187 and size. Use target_insert_breakpoint() and
9188 target_remove_breakpoint() to insert and remove breakpoints
9189 instead of explicit memory reads and writes.
9190
9191 2002-04-08 Kevin Buettner <kevinb@redhat.com>
9192
9193 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
9194 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
9195 ELF_OBJECT_FORMAT ifdef.
9196
9197 2002-04-08 Kevin Buettner <kevinb@redhat.com>
9198
9199 From Jimi X <jimix@watson.ibm.com>:
9200 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
9201
9202 2002-04-08 Kevin Buettner <kevinb@redhat.com>
9203
9204 From Jimi X <jimix@watson.ibm.com>:
9205 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
9206 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
9207
9208 2002-04-07 Mark Kettenis <kettenis@gnu.org>
9209
9210 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
9211 s/asprintf/xasprintf/.
9212 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
9213
9214 2002-04-07 Andrew Cagney <ac131313@redhat.com>
9215
9216 I believe Jeff Law denies responsability for this one:
9217 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
9218 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
9219 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
9220 Work-around for PR gdb/366.
9221
9222 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
9223
9224 * remote-e7000.c (write_small, e7000_read_inferior_memory,
9225 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
9226 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
9227
9228 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
9229
9230 * sh-tdep.c (sh_fp_frame_init_saved_regs,
9231 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
9232 information.
9233
9234 2002-04-07 Andrew Cagney <ac131313@redhat.com>
9235
9236 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
9237 maintainer.
9238
9239 2002-04-07 Andrew Cagney <ac131313@redhat.com>
9240
9241 * README (Reporting Bugs in GDB): Document the bug web page as the
9242 prefered way of submitting bugs.
9243 Fix PR gdb/402.
9244
9245 2002-04-06 Andrew Cagney <ac131313@redhat.com>
9246
9247 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
9248 -1. Update comment.
9249 * gdbarch.h, gdbarch.c: Re-generate.
9250
9251 2002-04-07 Andreas Schwab <schwab@suse.de>
9252
9253 * m68klinux-nat.c (fill_fpregset): Properly pass address of
9254 buffer to regcache_collect.
9255
9256 2002-04-06 Andrew Cagney <ac131313@redhat.com>
9257
9258 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
9259 * gdbarch.c, gdbarch.h: Re-generate.
9260
9261 2002-04-06 Andrew Cagney <ac131313@redhat.com>
9262
9263 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
9264 declaration. Fix -Werror.
9265
9266 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
9267
9268 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
9269 * gdbarch.c: Regenerate.
9270
9271 2002-04-05 Michael Snyder <msnyder@redhat.com>
9272
9273 * breakpoint.c (clear_command): Rewrite middle section to
9274 combine two loops with identical control conditions.
9275 Add a cleanup to eliminate a memory leak.
9276 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
9277
9278 2002-04-05 H.J. Lu (hjl@gnu.org)
9279
9280 * solib-svr4.c (bkpt_names): Add "__start".
9281
9282 2002-04-04 Andrew Cagney <ac131313@redhat.com>
9283
9284 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
9285 as test for 64 bit target.
9286
9287 2002-04-05 Andrew Cagney <ac131313@redhat.com>
9288
9289 * h8500-tdep.c (h8500_write_fp): Delete function.
9290 * dwarf2cfi.c (cfi_write_fp): Document as not used.
9291 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
9292 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
9293 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
9294 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
9295 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
9296 (s390_write_fp):
9297 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
9298 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
9299 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
9300 (d10v_write_fp): Delete function.
9301 * inferior.h (write_fp, generic_target_write_fp): Delete
9302 declarations.
9303 * regcache.c (generic_target_write_fp): Delete function.
9304 (write_fp): Delete function.
9305 * gdbarch.sh (TARGET_WRITE_FP): Delete.
9306 * gdbarch.h, gdbarch.c: Regenerate.
9307 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
9308 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
9309 (sparc64_write_fp): Delete declaration.
9310 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
9311 (h8500_write_fp): Delete declaration.
9312
9313 2002-04-04 Andrew Cagney <ac131313@redhat.com>
9314
9315 * sparc-tdep.c (sparc64_write_fp): Delete.
9316 (sparc_push_dummy_frame): Replace write_fp call with code to store
9317 the FP directly.
9318 (sparc_gdbarch_init): Do not initialize write_fp.
9319
9320 2002-04-05 Kevin Buettner <kevinb@redhat.com>
9321
9322 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
9323 clause.
9324
9325 2002-03-29 Jim Blandy <jimb@redhat.com>
9326
9327 * stack.c (get_selected_block): Add new argument `addr_in_block',
9328 used to return the exact code address we used to select the block,
9329 not just the block.
9330 * blockframe.c (get_frame_block, get_current_block): Same.
9331 * frame.h (get_frame_block, get_current_block,
9332 get_selected_block): Update declarations.
9333 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
9334 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
9335
9336 2002-04-05 Michael Snyder <msnyder@redhat.com>
9337
9338 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
9339 warning message.
9340
9341 2002-04-05 J. Brobecker <brobecker@gnat.com>
9342
9343 * utils.c (xfullpath): New function.
9344 * defs.h (xfullpath): Add declaration.
9345 * source.c (openp): Use xfullpath in place of gdb_realpath to
9346 avoid resolving the basename part of filenames when the
9347 associated file is a symbolic link. This fixes a potential
9348 inconsistency between the filenames known to GDB and the
9349 filenames it prints in the annotations.
9350 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
9351 to be able to match a filename with either the real filename, or
9352 the name of any symbolic link to this file.
9353 (lookup_partial_symtab): Ditto.
9354
9355 2002-04-04 Michael Snyder <msnyder@redhat.com>
9356
9357 * breakpoint.c: Add support for hardware breakpoints in overlays.
9358 (overlay_events_enabled): New state variable.
9359 (insert_breakpoints): Use overlay_events_enabled to decide
9360 whether to attempt to set a breakpoint at the overlay load addr.
9361 Handle bp_hardware_breakpoint as well as bp_breakpoint.
9362 (remove_breakpoint): Use overlay_events_enabled to decide
9363 whether breakpoints need to be removed from overlay load addr.
9364 Handle bp_hardware_breakpoint as well as bp_breakpoint.
9365 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
9366 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
9367 disable_overlay_breakpoints): Update overlay_events_enabled.
9368
9369 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
9370
9371 * dwarf2read.c (struct function_range): New.
9372 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
9373 (check_cu_functions): New.
9374 (read_file_scope): Initialize global function lists.
9375 Call dwarf_decode_line after processing children.
9376 (read_func_scope): Add to global function list.
9377 (dwarf_decode_lines): Call check_cu_functions everywhere
9378 record_line is called. Call record_line with a linenumber
9379 of 0 to mark sequence ends.
9380
9381 2002-04-04 Michal Ludvig <mludvig@suse.cz>
9382
9383 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
9384 change sync with glibc.
9385
9386 2002-04-03 Jim Blandy <jimb@redhat.com>
9387
9388 * configure.in: Call AC_C_INLINE.
9389 * configure: Regenerated.
9390
9391 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
9392
9393 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
9394 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
9395
9396 2002-03-31 Mark Kettenis <kettenis@gnu.org>
9397
9398 * NEWS: Mention gcore support on FreeBSD/i386.
9399
9400 * fbsd-proc.c: New file.
9401 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
9402 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
9403
9404 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
9405 while statement.
9406
9407 2002-03-29 Jim Blandy <jimb@redhat.com>
9408
9409 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
9410 unescaped newlines in string literals, but newer ones don't. So
9411 escape them.
9412
9413 2002-03-26 Michael Snyder <msnyder@redhat.com>
9414 Andrew Cagney <cagney@redhat.com>
9415
9416 * cli/cli-dump.c: New file. Dump memory to file,
9417 restore file to memory.
9418 * cli/cli-dump.h: New file.
9419 * Makefile.in: Add rules, dependencies for cli-dump.o.
9420 * NEWS: Mention new commands.
9421
9422 2002-03-28 Michael Snyder <msnyder@redhat.com>
9423
9424 * symfile.c (symbol_file_add): Move test for null symbols to later.
9425
9426 2002-03-27 Andrew Cagney <ac131313@redhat.com>
9427
9428 From veksler at il.ibm.com:
9429 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
9430 the xstrduped original path.
9431 Fix PR gdb/417.
9432
9433 2002-03-27 Michael Snyder <msnyder@redhat.com>
9434
9435 * breakpoint.c (_initialize_breakpoint): Clean up help string.
9436 * infcmd.c (_initialize_infcmd): Ditto.
9437 * language.c (_initialize_language): Ditto.
9438 * symfile.c (_initialize_symfile): Ditto.
9439 * top.c (_init_main): Ditto.
9440 * cli/cli-cmds.c (init_cli_cmds): Ditto.
9441
9442 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
9443
9444 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
9445 vector registers handling.
9446 (skip_prologue): Handle new AltiVec instructions. Fill in new
9447 fields of frame data.
9448 (frame_get_saved_regs): Fill in information for AltiVec registers.
9449
9450 2002-03-27 Jim Blandy <jimb@redhat.com>
9451
9452 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
9453 a function; leave this macro here to invoke that function.
9454 (symbol_init_mangled_name): Declaration for that function.
9455 * symtab.c (symbol_init_mangled_name): New function.
9456
9457 2002-03-27 Andrew Cagney <ac131313@redhat.com>
9458
9459 * valarith.c: Replace strerror with safe_strerror.
9460 * tracepoint.c: Ditto.
9461 * lin-lwp.c: Ditto.
9462 * go32-nat.c: Ditto.
9463 * inflow.c: Ditto.
9464 * gnu-nat.c: Ditto.
9465
9466 2002-03-27 Andreas Schwab <schwab@suse.de>
9467
9468 * event-top.c (command_line_handler): Remove useless if.
9469
9470 2002-03-27 Andreas Jaeger <aj@suse.de>
9471
9472 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
9473 comment.
9474
9475 2002-03-27 Michal Ludvig <mludvig@suse.cz>
9476
9477 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
9478 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
9479 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
9480 (x86_64_linux_dr_get_status, supply_gregset),
9481 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
9482 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
9483 (x86_64_register_info_table): Add.
9484 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
9485 (x86_64_register_raw_size, x86_64_register_virtual_type),
9486 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
9487 general x86_64_register_info_table.
9488 (i386_gdbarch_init): gdbarch_register_bytes is now set
9489 dynamicaly during initialization.
9490 * regformats/reg-x86-64.dat: Synced with changes to registers above.
9491 * gdbserver/linux-x86-64-low.c: Ditto.
9492
9493 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
9494
9495 * gdbserver/server.c (main): Call target_signal_to_host_p
9496 and target_signal_to_host on signals received from the remote.
9497 * gdbserver/remote-utils.c (prepare_resume_reply): Call
9498 target_signal_from_host on signals sent to the remote.
9499 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
9500 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
9501
9502 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
9503
9504 * signals/signals.c: Include "server.h" in gdbserver build.
9505 (target_signal_from_name): Don't use STREQ.
9506 (_initialize_signals): Likewise. Don't include function in
9507 gdbserver build.
9508
9509 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
9510
9511 * signals.c: Moved to...
9512 * signals/signals.c: Here.
9513 * Makefile (signals.o): Update.
9514
9515 2002-03-26 Jeff Law (law@redhat.com)
9516
9517 * somread.c (som_symtab_read): Remove some commented out code and
9518 updated related comments. Do not set the minimal symbol table to
9519 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
9520 in a dynamic executable.
9521 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
9522 where we are unable to find the minimal symbol for the given
9523 PC value.
9524
9525 2002-03-25 Jeff Law (law@redhat.com)
9526
9527 * linux-proc.c (read_mapping): Scan up to end of line for filename.
9528
9529 2002-03-25 Michal Ludvig <mludvig@suse.cz>
9530
9531 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
9532
9533 2002-03-23 Andrew Cagney <ac131313@redhat.com>
9534
9535 * command.h: Update copyright.
9536 (struct cmd_list_element): Replace definition with opaque
9537 declaration.
9538 (enum cmd_types): Document that it will eventually be moved to
9539 cli/cli-decode.h
9540 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
9541 (MALLOCED_REPLACEMENT): Delete macro.
9542 * Makefile.in (cli_decode_h): Add $(command_h).
9543 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
9544 * top.c: Include "cli/cli-decode.h".
9545 * completer.c: Include "cli/cli-decode.h".
9546 * maint.c: Include "cli/cli-decode.h".
9547 * cli/cli-decode.h: Include "command.h".
9548 (enum command_class): Delete.
9549 (enum cmd_types): Comment out.
9550 (enum cmd_auto_boolean): Delete.
9551 (enum var_types): Delete.
9552
9553 2002-03-23 Andrew Cagney <ac131313@redhat.com>
9554
9555 * cli/cli-decode.c: Include "gdb_assert.h".
9556 (add_set_or_show_cmd): New static function.
9557 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
9558 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
9559 all fields, such as func, from the set command.
9560
9561 2002-03-23 Andrew Cagney <ac131313@redhat.com>
9562
9563 * MAINTAINERS (sh-elf): Change warning flag to -w.
9564
9565 2002-03-23 Andrew Cagney <cagney@redhat.com>
9566
9567 * defs.h (error): Add printf format attribute.
9568 * thread-db.c (thread_from_lwp): Fix error format string.
9569 * stack.c (parse_frame_specification): Ditto.
9570 * cli/cli-decode.c (undef_cmd_error): Ditto.
9571 * scm-lang.c (scm_lookup_name): Ditto.
9572 * tracepoint.c (trace_error): Ditto.
9573 * remote-utils.c (usage): Ditto.
9574 * remote.c (compare_sections_command): Ditto.
9575 Fix PR gdb/328.
9576
9577 2002-03-22 Andrew Cagney <ac131313@redhat.com>
9578
9579 * gdbtypes.c (append_composite_type_field): New function.
9580 (init_composite_type): New function.
9581 * gdbtypes.h (append_composite_type_field): Declare.
9582 (init_composite_type): Ditto.
9583
9584 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
9585
9586 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
9587 function.
9588 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
9589 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
9590 structure returning convention for SYSV ABI case, but not
9591 for GNU/Linux, FreeBSD, or NetBSD.
9592
9593 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
9594
9595 * symtab.h (lookup_block_symbol): Add mangled_name argument
9596 to prototype.
9597
9598 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
9599 with new mangled_name argument.
9600 * linespec.c (decode_line_1): Likewise.
9601 * valops (value_of_this): Likewise.
9602 * symtab.c (lookup_transparent_type): Likewise.
9603 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
9604 (lookup_symbol): If we are given a mangled name, pass it down
9605 to lookup_symbol_aux.
9606 (lookup_block_symbol): If we are given a mangled name to check
9607 against, only return symbols which match it.
9608
9609 2002-03-22 Christopher Faylor <cgf@redhat.com>
9610
9611 * win32-nat.c (child_create_inferior): Check for proper shell to use
9612 here, in case the user changes it on the fly.
9613 (_initialize_inftarg): Remove shell path considerations.
9614
9615 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
9616
9617 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
9618 for gdbarch_max_register_raw_size and max_register_virtual_size.
9619 Adjust copyright year.
9620
9621 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
9622
9623 * dbxread.c (process_one_symbol): Extend the first N_SLINE
9624 in a function to cover the entire beginning of the function
9625 as well if it does not already.
9626
9627 2002-03-21 Tom Rix <trix@redhat.com>
9628
9629 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
9630 (rs6000_ptrace64): Renamed from ptrace64.
9631
9632 2002-03-20 Martin M. Hunt <hunt@redhat.com>
9633
9634 * gdbserver/remote-utils.c (remote_open): Don't call
9635 getprotobyname, we're all using TCP here so just use
9636 IPPROTO_TCP.
9637 * gdbserver/gdbreplay.c (remote_open): Ditto.
9638
9639 2002-03-20 Martin M. Hunt <hunt@redhat.com>
9640
9641 * regcache.c (_initialize_regcache): No need to call
9642 build_regcache() at this time; it gets called whenever
9643 the gdbarch changes.
9644
9645 2002-03-20 David O'Brien <obrien@FreeBSD.org>
9646
9647 * sparc-nat.c: Include sys/param.h where possible.
9648
9649 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
9650
9651 Fix PR gdb/422.
9652 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
9653 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
9654 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
9655 complex types.
9656 * stabsread.c (rs6000_builtin_type): Likewise.
9657 (read_sun_floating_type): Likewise.
9658
9659 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9660
9661 * stabsread.c (read_member_functions): Remove skip code for duplicate
9662 constructor/destructor methods. Use standard parsing for these
9663 methods and just do not chain them to the list of methods after
9664 parsing.
9665
9666 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
9667
9668 * coffread.c: Remove redundant static declarations. Replace
9669 occurrences of `PTR' with `void *'.
9670 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
9671 * top.h (quit_cover): Likewise.
9672 * defs.h (catch_errors): Likewise.
9673
9674 2002-03-18 Andrew Cagney <ac131313@redhat.com>
9675
9676 * defs.h (XMALLOC): Define.
9677 * gdb-events.sh (XMALLOC): Delete macro.
9678 * gdb-events.c, gdb-events.h: Regenerate.
9679 * gdbarch.sh (XMALLOC): Delete macro.
9680 * gdbarch.c: Regenerate.
9681 * serial.c (XMALLOC): Delete macro.
9682 * ui-file.c (XMALLOC): Ditto.
9683 * ser-unix.h (XMALLOC): Ditto.
9684 * sh-tdep.c (XMALLOC): Ditto.
9685 * ui-out.c (XMALLOC): Ditto.
9686 * utils.c (XMALLOC): Ditto.
9687 * i386-tdep.c (XMALLOC): Ditto.
9688 * gdb-events.c (XMALLOC): Ditto.
9689 * d10v-tdep.c (XMALLOC): Ditto.
9690 * cli-out.c (XMALLOC): Ditto.
9691
9692 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
9693 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
9694 * ui-file.c, ui-out.c: Ditto.
9695
9696 2002-03-18 Andrew Cagney <ac131313@redhat.com>
9697
9698 * command.h (struct cmd_list_element): Add field context.
9699 (set_cmd_context, get_cmd_context): Declare.
9700 * cli/cli-decode.h: Ditto.
9701 * cli/cli-decode.c (get_cmd_context): New function.
9702 (set_cmd_context): New function.
9703 (add_cmd): Initialize context.
9704 Part of fixing PR gdb/145 and PR gdb/146.
9705
9706 2002-03-17 Andrew Cagney <ac131313@redhat.com>
9707
9708 * cli/cli-decode.c (cmd_type): New function.
9709 * command.h (cmd_type): Declare.
9710 * infrun.c (set_schedlock_func): Call function cmd_type.
9711 * kod.c (kod_set_os): Call cmd_type.
9712 * cris-tdep.c (cris_version_update): Use function cmd_type.
9713 (cris_mode_update, cris_abi_update): Ditto.
9714
9715 * command.h: (execute_cmd_post_hook): Declare.
9716 (execute_cmd_pre_hook): Declare.
9717 * cli/cli-script.c (clear_hook_in_cleanup): New function.
9718 (execute_cmd_post_hook, execute_cmd_pre_hook): New
9719 functions. Execute pre/post hook while ensuring that afterwords
9720 hook_in is cleared.
9721 * top.c (execute_command): Use execute_cmd_post_hook, and
9722 execute_cmd_pre_hook to execute pre/post commands.
9723 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
9724 hook_stop_stub.
9725 (hook_stop_stub): Call execute_cmd_pre_hook.
9726
9727 2002-03-17 Andrew Cagney <ac131313@redhat.com>
9728
9729 * kod.c (kod_set_os): Revert previous change. Is called by ``info
9730 set'' and this leads to a core dump. Move xstrdup of
9731 operating_system to after check that it is not NULL.
9732
9733 2002-03-17 Andrew Cagney <ac131313@redhat.com>
9734
9735 * kod.c (kod_set_os): Remove unnecessary check that
9736 ``command->type'' is set_cmd.
9737
9738 * valprint.c (set_input_radix): Use input_radix.
9739 (set_output_radix): Use output_radix.
9740 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
9741 isn't reverted.
9742
9743 2002-03-16 Andrew Cagney <ac131313@redhat.com>
9744
9745 * value.h (struct value): Delete field ``substring_addr''. Change
9746 aligner fields to force_doublest_align, force_longest_align,
9747 force_core_addr_align and force_pointer_aligh.
9748
9749 * value.h (struct value): Fix typo in above change.
9750
9751 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9752
9753 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
9754 to fix internal_error from ``maintenance print architecture''.
9755
9756 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9757
9758 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
9759 for gcc versions after gcc-2.8.1.
9760
9761 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9762
9763 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
9764 for method resolution. Restore adjustment of ``this'' pointer after
9765 calling value_struct_elt, which was accidentally removed during the
9766 HP merge.
9767
9768 2002-03-15 Andrew Cagney <ac131313@redhat.com>
9769
9770 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
9771 value_of_register.
9772 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
9773 get_saved_register.
9774 * value.h (value_of_register): Update.
9775
9776 2002-03-14 Richard Henderson <rth@redhat.com>
9777
9778 * configure.in: Detect declaration for canonicalize_file_name.
9779 * utils.c (canonicalize_file_name): Declare, if needed.
9780 (gdb_realpath): Prefer realpath if available and usable.
9781 * config.in, configure: Rebuild.
9782
9783 2002-03-14 Richard Henderson <rth@redhat.com>
9784
9785 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
9786 a constant array bound.
9787
9788 * MAINTAINERS: Add myself to write-after-approval.
9789
9790 2002-03-14 Michael Snyder <msnyder@redhat.com>
9791
9792 * symfile.c (syms_from_objfile): Return immediately if no syms.
9793 (symbol_file_add): Return immediately if no syms.
9794 (find_sym_fns): Return immediately if no syms.
9795
9796 2002-03-13 Michal Ludvig <mludvig@suse.cz>
9797
9798 * gdbserver/remote-util.c (remote_open): Print remote-side's
9799 IP address when remote debugging over the network.
9800
9801 2002-03-12 David O'Brien <obrien@FreeBSD.org>
9802
9803 * config/sparc/fbsd.mh: Fix copyright.
9804 * config/sparc/fbsd.mt: Likewise.
9805
9806 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
9807
9808 * MAINTAINERS: Fix typo in name of gdb warnings option.
9809 (x86-64): Fix formating so that this can be parsed by awk.
9810
9811 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
9812
9813 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
9814 * defs.h: Include "gdb/signals.h".
9815 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
9816
9817 2002-03-10 Michal Ludvig <mludvig@suse.cz>
9818
9819 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
9820 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
9821 from x86-64-tdep.h
9822
9823 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
9824 Don Howard <dhoward@redhat.com>
9825
9826 * mips-tdep.c (ST0_FR): Define.
9827 (mips2_fp_compat): New function, temporarily disabled.
9828 (mips_read_fp_register_single): New function.
9829 (mips_read_fp_register_double): New function.
9830 (mips_print_register): Use them.
9831 (do_fp_register_row): Likewise.
9832
9833 2002-03-09 Andrew Cagney <ac131313@redhat.com>
9834
9835 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
9836 approval''.
9837
9838 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9839
9840 * stabsread.c (read_member_functions): Fix is_stub test for
9841 static member functions, improve comment.
9842
9843 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
9844
9845 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
9846 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
9847 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
9848 commands that set boolean values.
9849 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
9850 (arm_rdi_resume): Always initialize PC.
9851 (arm_rdi_open): Don't use rslt as a boolean.
9852 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
9853 (arm_rdi_fetch_registers, arm_rdi_store_registers)
9854 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
9855 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
9856
9857 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
9858
9859 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
9860 * configure: Rebuilt.
9861
9862 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9863
9864 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
9865 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
9866
9867 2002-03-06 Andrew Cagney <ac131313@redhat.com>
9868
9869 * cli/cli-decode.c (set_cmd_completer): New function.
9870 * command.h (set_cmd_completer): Declare.
9871 * cli/cli-decode.h (set_cmd_completer): Ditto.
9872
9873 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
9874 * cli/cli-cmds.c (init_cli_cmds): Ditto.
9875 * win32-nat.c (_initialize_inftarg): Ditto.
9876 * remote-rdi.c (_initialize_remote_rdi): Ditto.
9877 * proc-api.c (_initialize_proc_api): Ditto.
9878 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
9879 * source.c (_initialize_source): Ditto.
9880 * exec.c (_initialize_exec): Ditto.
9881 * solib.c (_initialize_solib): Ditto.
9882 * top.c (init_main): Ditto.
9883 * tracepoint.c (_initialize_tracepoint): Ditto.
9884 * symfile.c (_initialize_symfile): Ditto.
9885 * printcmd.c (_initialize_printcmd): Ditto.
9886 * infcmd.c (_initialize_infcmd): Ditto.
9887 * corefile.c (_initialize_core): Ditto.
9888
9889 2002-03-05 Andrew Cagney <ac131313@redhat.com>
9890
9891 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
9892
9893 2002-03-05 Andrew Cagney <ac131313@redhat.com>
9894
9895 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
9896
9897 2002-03-05 Andrew Cagney <ac131313@redhat.com>
9898
9899 * NEWS: Update headings, 5.2 has branched.
9900
9901 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
9902
9903 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
9904 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
9905 (register_addr, REGISTER_RAW_SIZE): Likewise.
9906 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
9907 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
9908
9909 2002-03-03 Michal Ludvig <mludvig@suse.cz>
9910
9911 * MAINTAINERS (x86-64): Add myself.
9912 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
9913 changed value_ptr -> struct value *
9914
9915 2002-03-01 David O'Brien <obrien@FreeBSD.org>
9916
9917 * configure.host (sparc64-*-freebsd): Add.
9918 * configure.tgt: Likewise.
9919 * config/sparc/fbsd.mh: New file.
9920 * config/sparc/fbsd.mt: Likewise.
9921 * config/sparc/nm-fbsd.h: Likewise.
9922 * config/sparc/tm-fbsd.h: Likewise.
9923
9924 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
9925
9926 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
9927 regformats/reg-s390x.dat.
9928
9929 2002-03-01 Andrew Cagney <ac131313@redhat.com>
9930
9931 * utils.c: Add FIXME explaining true/false problem.
9932
9933 2002-02-28 Andrew Cagney <ac131313@redhat.com>
9934
9935 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
9936
9937 2002-02-28 Michael Chastain <mec@shout.net>
9938
9939 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
9940
9941 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
9942
9943 * gdbserver/linux-s390-low.c: New file.
9944 * regformats/reg-s390.dat: New file.
9945 * regformats/reg-s390x.dat: New file.
9946 * gdbserver/configure.srv: Add S/390.
9947 * gdbserver/Makefile.in: Add S/390.
9948 * configure.tgt: Enable gdbserver for S/390.
9949
9950 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
9951
9952 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
9953 first line of the doc string for "info dos", except at the end of
9954 the sentence, since the short help stops at the first period.
9955
9956 2002-02-28 Jason Merrill <jason@redhat.com>
9957
9958 * dwarf2read.c (dwarf_cfi_name): Add new codes.
9959
9960 2002-02-27 Fred Fish <fnf@redhat.com>
9961
9962 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
9963 comment (dumy -> dummy).
9964
9965 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9966
9967 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
9968
9969 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
9970
9971 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
9972
9973 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
9974
9975 * gdbserver/acconfig.h: New file.
9976 * gdbserver/i387-fp.c: New file.
9977 * gdbserver/i387-fp.h: New file.
9978 * gdbserver/linux-x86-64.c: New file.
9979 * regformats/reg-x86-64.dat: New file.
9980 * configure.tgt: Add x86_64-*-linux* gdbserver support.
9981 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
9982 * gdbserver/configure.in: Add support for regsets.
9983 * gdbserver/config.in: Regenerate.
9984 * gdbserver/configure: Regenerate.
9985 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
9986 * gdbserver/linux-low.h: New file.
9987 * gdbserver/linux-low.c: Include "linux-low.h". Add support
9988 for regsets.
9989 * gdbserver/linux-arm-low.c: Include "linux-low.h".
9990 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
9991 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
9992 * gdbserver/linux-mips-low.c: Include "linux-low.h".
9993 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
9994 * gdbserver/linux-sh-low.c: Include "linux-low.h".
9995 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
9996 "i387-fp.h". Add PTRACE_GETREGS and friends.
9997 * gdbserver/regcache.c (supply_register): New function.
9998 (supply_register_by_name): New function.
9999 (collect_register): New function.
10000 (collect_register_by_name): New function.
10001
10002 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
10003
10004 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
10005 (config.status): Add configure.srv dependency.
10006 (server_h): Add config.h dependency.
10007
10008 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
10009
10010 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
10011 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
10012 * gdbserver/configure.srv: Change i386-*-linux* to use
10013 reg-i386-linux.o.
10014
10015 2002-02-26 Andrew Cagney <ac131313@redhat.com>
10016
10017 * x86-64-tdep.c: Re-indent. Update copyright date.
10018
10019 2002-02-26 Andrew Cagney <ac131313@redhat.com>
10020
10021 From Michal Ludvig <mludvig@suse.cz>:
10022 * x86-64-tdep.c (value.h): Delete.
10023 (gdb_assert.h): Include.
10024 (x86_64_register_convert_to_virtual,
10025 x86_64_register_convert_to_raw ): Add check which lets only
10026 floating-point values to be converted.
10027 (value_push): Delete.
10028 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
10029 (i386_gdbarch_init): Number of register_bytes fixed.
10030
10031 2002-02-26 Andrew Cagney <ac131313@redhat.com>
10032
10033 * MAINTAINERS: Add x86-64 target.
10034
10035 2002-02-26 Andrew Cagney <ac131313@redhat.com>
10036
10037 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
10038 * osfsolib.c (solib_map_sections): Ditto.
10039 * irix5-nat.c (solib_map_sections): Ditto.
10040 * corelow.c (gdb_check_format): Ditto.
10041 * symfile.c (symfile_bfd_open): Ditto.
10042 * solib.c (solib_map_sections): Ditto.
10043 Fix PR gdb/354.
10044
10045 2002-02-26 Andrew Cagney <ac131313@redhat.com>
10046
10047 * remote.c (_initialize_remote): By default, disable ``e'' and
10048 ``E'' step out-of-range packets.
10049
10050 2002-02-26 Andreas Schwab <schwab@suse.de>
10051
10052 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
10053 m68k_linux_frame_saved_pc.
10054 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
10055 in_sigtramp.
10056 (SIGCONTEXT_PC_OFFSET): Remove.
10057 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
10058 m68k_linux_sigtramp_saved_pc): New functions.
10059 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
10060 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
10061 (UCONTEXT_PC_OFFSET): Define.
10062 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
10063 non-RT and RT signal trampolines.
10064
10065 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
10066
10067 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
10068 (TARGET_NBPG, STACK_END_ADDR): Delete
10069 (VARIABLES_INSIDE_BLOCK): Delete.
10070
10071 2002-02-25 Andrew Cagney <ac131313@redhat.com>
10072
10073 * utils.c (perror_with_name): Make string parameter constant.
10074 (print_sys_errmsg): Ditto.
10075 (query): Ditto.
10076 * defs.h (perror_with_name): Update.
10077 (print_sys_errmsg): Update.
10078 (query): Update.
10079
10080 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
10081
10082 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
10083 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
10084
10085 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10086
10087 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
10088 if it already matches the current architecture from the exec file.
10089 Include arch-utils.h for gdbarch_info_init prototype.
10090 * Makefile.in (rs6000-nat.o): Update dependencies.
10091
10092 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
10093
10094 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
10095 list of exported variables.
10096
10097 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
10098
10099 * gdbserver/configure.srv: New file.
10100 * gdbserver/configure.in: Use configure.srv instead
10101 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
10102 from it.
10103 * gdbserver/configure: Regenerated.
10104 * gdbserver/terminal.h: New file.
10105 * gdbserver/Makefile.in: Update for configure changes. Remove
10106 more unneeded include paths.
10107
10108 2002-02-24 Andrew Cagney <ac131313@redhat.com>
10109
10110 From wiz at danbala:
10111 * config/sparc/tm-sp64.h: Fix grammar and typos.
10112 Fix PR gdb/287.
10113
10114 2002-02-24 Andrew Cagney <ac131313@redhat.com>
10115
10116 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
10117 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
10118 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
10119 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
10120 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
10121 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
10122 * s390-tdep.c: Ditto.
10123 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
10124 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
10125 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
10126 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
10127 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
10128 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
10129 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
10130 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
10131 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
10132 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
10133 Fix PR gdb/378.
10134
10135 2002-02-23 Andrew Cagney <ac131313@redhat.com>
10136
10137 * lin-thread.c: Delete file.
10138 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
10139 to gdb_proc_service.h.
10140 * configure: Re-generate.
10141
10142 * ocd.c (ocd_open): Do not try to open the "ocd" device.
10143 * serial.c (serial_open): Delete check for "ocd".
10144 Fix PR gdb/349.
10145
10146 * Makefile.in (linux-thread.o): Delete target.
10147 * linux-thread.c: Delete file.
10148
10149 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
10150 renamed SH files to be consistent.
10151
10152 * symtab.c (sort_search_symbols): Use xfree.
10153
10154 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
10155
10156 * arm-linux-tdep.c (arm_linux_init_abi): Register
10157 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
10158 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
10159 definition with undef, since we don't want the sysvr4 definition.
10160 (SKIP_TRAMPOLINE_CODE): Likewise.
10161
10162 2002-02-23 Andrew Cagney <ac131313@redhat.com>
10163
10164 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
10165
10166 * configure.in: (AC_CHECK_FUNCS) Added test for
10167 canonicalize_file_name Regenerated.
10168 * config.in, configure: Regenerated.
10169 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
10170 defined use canonicalize_file_name.
10171
10172 2002-02-23 Michael Chastain <mec@shout.net>
10173
10174 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
10175
10176 2002-02-23 Andrew Cagney <ac131313@redhat.com>
10177
10178 * README: Remove references to cygnus.com.
10179 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
10180 dot com'' form. Remove references to cygnus.com and sourceware.
10181
10182 2002-02-23 Andrew Cagney <ac131313@redhat.com>
10183
10184 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
10185 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
10186 1003.1-2001 no longer allows "head -1".
10187 * gdb/Makefile.in (version.c): Likewise.
10188 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
10189 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
10190 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
10191
10192 2002-02-23 Andrew Cagney <ac131313@redhat.com>
10193
10194 * cli/cli-decode.c (cmd_cfunc_eq): New function.
10195 * command.h (cmd_cfunc_eq): Declare.
10196 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
10197
10198 * cli/cli-cmds.h (is_complete_command): Change parameter to a
10199 ``struct cmd_list_element *''.
10200 * cli/cli-cmds.c (is_complete_command): Update. Use
10201 cmd_cfunc_eq.
10202 * top.c (execute_command): Pass the command to
10203 is_complete_command.
10204 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
10205
10206 2002-02-23 Andrew Cagney <ac131313@redhat.com>
10207
10208 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
10209 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
10210 architecture defines.
10211 * s390-tdep.c (s390_gdbarch_init): Likewise.
10212
10213 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
10214
10215 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
10216 (arm_linux_push_arguments): Likewise.
10217 (arm_linux_init_abi): Register them. Also register linux-specific
10218 call_dummy_words.
10219 (find_minsym_and_objfile): Use strcmp, not STREQ.
10220 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
10221 (arm_linux_call_dummy_words): Delete declaration.
10222 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
10223 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
10224 declarations.
10225 (LOWEST_PC): Delete.
10226
10227 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10228
10229 * maint.c (print_section_info): Do not prepend `0x' to filepos
10230 output, it will be handled by local_hex_string_custom.
10231
10232 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
10233
10234 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
10235 (store_newfpe_double, store_newfpe_extended, store_fpregister)
10236 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
10237
10238 2002-02-22 Jim Blandy <jimb@redhat.com>
10239
10240 Indicate that the bcache functions don't change the strings
10241 they're passed.
10242 * bcache.h (bcache, hash): Add `const' keywords to declarations.
10243 * bcache.c (bcache, hash): Add `const' keywords to definitions.
10244
10245 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
10246
10247 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
10248
10249 2002-02-21 Christopher Faylor <cgf@redhat.com>
10250
10251 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
10252 find the complete path to a loaded DLL.
10253
10254 2002-02-21 Fred Fish <fnf@redhat.com>
10255
10256 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
10257 that marks the end of the range of a function, enter a line number
10258 entry that has a line number of zero and a PC offset that matches
10259 the end of the function. This starts a range of PC's for which no
10260 line number information is known.
10261 * symtab.c (find_pc_sect_line): If our best fit is in a range of
10262 PC's for which no line number info is found (line number is zero)
10263 then we didn't find any valid line information.
10264 * symtab.h: Document use of zero line number entry.
10265
10266 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
10267
10268 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
10269 (have_ptrace_getvrregs): Define for run time checks.
10270 (gdb_vrregset_t): New type for Altivec register handling.
10271 (fetch_register, store_register): Fetch/store altivec register
10272 when needed.
10273 (fetch_altivec_register, store_altivec_register): New functions.
10274 (supply_vrregset, fill_vrregset): New functions.
10275 (fetch_altivec_registers, store_altivec_registers): New functions.
10276 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
10277 registers as well.
10278
10279 2002-02-21 Jiri Smid <smid@suse.cz>
10280
10281 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
10282
10283 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
10284
10285 * Makefile.in (armnbsd-nat.o): Update dependencies.
10286 * armnbsd-nat.c (supply_gregset): New function. Common code to
10287 supply the integer register set.
10288 (supply_fparegset): New function. Similar for FPA registers.
10289 (fetch_regs, fetch_fp_regs): Use them.
10290 (fetch_core_registers): Likewise.
10291 (fetch_elfcore_registers): New function.
10292 (arm_netbsd_elfcore_fns): New core-file type specification.
10293 (_initialize_arm_netbsd_nat): Register it.
10294
10295 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
10296
10297 * armnbsd-nat.c: Include gdbcore.h.
10298 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
10299 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
10300 'void' to declaration, to shut up ARI.
10301 (fetch_core_registers): Make static. Rewrite using supply_register.
10302 (arm_netbsd_core_fns): New core-file type specification.
10303 (_initialize_arm_netbsd_nat): New function.
10304
10305 2002-02-21 Christopher Faylor <cgf@redhat.com>
10306
10307 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
10308 value.
10309
10310 2002-02-20 Christopher Faylor <cgf@redhat.com>
10311
10312 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
10313 fails.
10314
10315 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
10316
10317 * jv-exp.y (parse_number): Change type of implicit longs
10318 to builtin_type_uint64.
10319
10320 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
10321
10322 * gdbserver/linux-low.c (mywait): Change argument to waitpid
10323 to be an integer instead of a `union wait'.
10324
10325 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
10326
10327 * mips-linux-nat.c: Call the operating system GNU/Linux.
10328 * mips-linux-tdep.c: Likewise.
10329 * mips-tdep.c: Likewise.
10330
10331 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
10332
10333 Fix PR gdb/265.
10334 * jv-exp.y (parse_number): Handle 64-bit integers.
10335
10336 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
10337
10338 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
10339 AC_STDC_HEADERS to AC_HEADER_STDC.
10340 * gdbserver/configure: Regenerated.
10341
10342 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
10343
10344 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
10345 is defined.
10346 * sparc-tdep.c (get_longjmp_target): Likewise.
10347
10348 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
10349
10350 * News: Add news about ARM and Multi-arch. Mention the new target
10351 arm*-*-netbsd*.
10352
10353 2002-02-19 Jim Blandy <jimb@redhat.com>
10354
10355 * stabsread.c (error_type_complaint): Improve error message.
10356
10357 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
10358
10359 * gdbserver/README: Update documentation.
10360 * gdbserver/configure.in: Update configury to match documentation.
10361 * gdbserver/Makefile.in: Likewise.
10362 * gdbserver/configure: Regenerated.
10363 * gdbserver/aclocal.m4: New file, generated by aclocal.
10364 * gdbserver/config.in: New file, generated by autoheader.
10365
10366 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
10367
10368 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
10369 armnbsd-nat.c.
10370
10371 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
10372
10373 * arm-tdep.h (enum arm_float_model): New enum.
10374 (struct gdbarch_tdep): Add fp_model.
10375 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
10376 up floating-point conversions until we know the floating-point model
10377 in use by the inferior. Don't complain about being unable to
10378 determine the ABI of the inferior when we don't have one.
10379 (arm_extract_return_value): Support different floating-point models.
10380 (arm_store_return_value): Likewise.
10381 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
10382 ARM_FLOAT_SOFT.
10383 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
10384
10385 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10386
10387 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
10388 of ``current_gdbarch''.
10389
10390 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
10391
10392 * armnbsd-nat.c : ANSIfy all function declarations.
10393 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
10394 (fetch_inferior_registers): Re-implement in terms of above.
10395 (store_register, store_regs, store_fp_register, store_fp_regs): New.
10396 (store_inferior_registers): Re-implement in terms of above.
10397
10398 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
10399
10400 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
10401 kernel.
10402 * arm-linux-tdep.c: Likewise.
10403 * config/arm/tm-linux.h: Likewise.
10404
10405 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
10406
10407 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
10408 * config/arm/nbsd.mt (TM_FILE): Delete.
10409 * config/arm/tm-nbsd.h: Delete.
10410
10411 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
10412
10413 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
10414 Initialize CALL_DUMMY_LENGTH.
10415
10416 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
10417
10418 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
10419 function.
10420 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
10421 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
10422 defines one thing and that is incorrect for this port.
10423 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
10424
10425 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
10426
10427 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
10428
10429 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
10430
10431 * win32-nat.c (display_selector): New function. Displays information
10432 about the information returned by GetThreadSelectorEntry API function.
10433 (display_selectors): New function. Displays the infomation of
10434 the selector given as argument, or of CS, DS ans FS selectors
10435 if no argument is given.
10436 ( _initialize_inftarg): Add "w32" as info prefix command.
10437 Add "info w32 selector" as command calling display_selectors.
10438
10439 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
10440
10441 * i386-tdep.c (get_longjmp_target): Fix compilation failure
10442 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
10443 if not defined.
10444
10445 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
10446
10447 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
10448
10449 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
10450
10451 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
10452 (arm_fix_call_dummy): Call it.
10453 (arm_call_dummy_breakpoint_offset): Delete.
10454 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
10455 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
10456
10457 2002-02-18 Andrew Cagney <ac131313@redhat.com>
10458
10459 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
10460 Default to func_frame_chain_valid.
10461 * gdbarch.h, gdbarch.c: Re-generate.
10462 * frame.h (FRAME_CHAIN_VALID): Delete definition.
10463
10464 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
10465
10466 * ppc-linux-nat.c: Update copyright.
10467 (fetch_register, store_register): Add tid parameter, don't compute
10468 tid here.
10469 (fetch_ppc_registers, store_ppc_registers): Add tid
10470 parameter. Pass it along to callees.
10471 (fetch_inferior_registers, store_inferior_registers): Compute tid
10472 here, and pass it to calleed functions.
10473 (fill_gregset, supply_fpregset): Clean up formatting.
10474
10475 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
10476
10477 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
10478 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
10479
10480 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
10481
10482 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
10483 * gdbarch.c gdbarch.h: Regenerate.
10484 * breakpoint.c (create_longjmp_breakpoint): Always compile this
10485 function.
10486 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
10487 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
10488 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
10489
10490 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
10491 * arm-tdep.c (arm_get_longjmp_target): New function.
10492 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
10493 this to a positive value register arm_get_longjmp_target as the
10494 longjmp handler.
10495 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
10496 (arm_linux_init_abi): Set up longjmp description in tdep.
10497 * armnbsd-nat.c (get_longjmp_target): Delete.
10498 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
10499 description in tdep.
10500 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
10501 (get_longjmp_target): Delete declaration.
10502 (GET_LONGJMP_TARGET): Delete.
10503 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
10504 (GET_LONGJMP_TARGET): Delete.
10505
10506 2002-02-17 Kevin Buettner <kevinb@redhat.com>
10507
10508 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
10509 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
10510 of ``current_gdbarch''.
10511
10512 2002-02-17 Tom Tromey <tromey@redhat.com>
10513
10514 * cli/cli-cmds.c (compare_strings): New function.
10515 (complete_command): Only print each unique item once.
10516 * completer.h (complete_line): Declare.
10517 * completer.c (complete_line): New function.
10518 (line_completion_function): Use it.
10519
10520 2002-02-16 Andrew Cagney <ac131313@redhat.com>
10521
10522 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
10523 * gdbarch.h, gdbarch.c: Re-generate.
10524
10525 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
10526
10527 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
10528
10529 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
10530
10531 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
10532 * valops.c (value_arg_coerce): Don't take the address of a reference
10533 to convert an argument to a reference.
10534
10535 2002-02-15 Christopher Faylor <cgf@redhat.com>
10536
10537 * win32-nat.c (get_image_name): New function.
10538 (handle_load_dll): Use get_image_name function.
10539 (get_child_debug_event): Avoid registering debug events until possibly
10540 execed process is started.
10541 (child_create_inferior): Allow invocation via shell so that command
10542 line redirection, etc. works ok.
10543 (_initialize_inftarg): Add new command: "set shell" to control whether
10544 a shell is used to start a process.
10545
10546 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
10547
10548 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
10549 instead of find_register_by_number.
10550 (cannot_store_register): Likewise.
10551
10552 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
10553
10554 * dwarf2read.c: Replace fprintf (stderr, ...) by
10555 fprintf_unfiltered (gdb_stderr, ...).
10556
10557 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
10558
10559 * gdbserver/gdbserver.1: Document --attach.
10560
10561 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
10562
10563 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
10564 descriptions.
10565 * arm-tdep.c (arm_default_arm_le_breakpoint)
10566 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
10567 (arm_default_thumb_be_breakpoint): New. Initialize them from
10568 traditional breakpoint defines.
10569 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
10570 (arm_gdbarch_init): Initialize new breakpoint variables.
10571 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
10572 (arm_linux_init_abi): Initialize linux-specific breakpoint.
10573 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
10574 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
10575 code out to ...
10576 (arm_netbsd_init_abi_common): ... here; new function.
10577 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
10578 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
10579 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
10580 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
10581
10582 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
10583
10584 * arm-tdep.h (enum arm_abi): New enum.
10585 (struct gdbarch_tdep): New structure.
10586 (LOWEST_PC): Provide a default.
10587 (arm_gdbarch_register_os_abi): Declare new function.
10588 * arm-tdep.c (arm_abi_names): New array.
10589 (process_note_abi_tag_sections): New function.
10590 (get_elfosabi): New function.
10591 (arm_gdbarch_register_os_abi): New function.
10592 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
10593 support for that ABI has been built in, then call the appropriate
10594 configuration routine. Use gdbarch_num_regs() to get the number
10595 of registers.
10596 (arm_dump_tdep): New function.
10597 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
10598 place-holder functions.
10599 (_initialize_arm_tdep): Register them.
10600 * config/arm/tm-arm.h (LOWEST_PC): Delete.
10601
10602 * armnbsd-tdep.c: New file.
10603 * Makefile.in (armnbsd-tdep.o): Add dependencies.
10604 * config/arm/nbsd.mt (TDEPFILES): Add it.
10605 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
10606
10607 * armnbsd-nat.c: Include regcache.h.
10608 * Makefile.in (armnbsd-nat.o): Update dependency list.
10609
10610 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
10611
10612 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
10613
10614 * gdbserver/Makefile.in: Fix typos in target rules.
10615
10616 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
10617
10618 Fix part of PR gdb/267.
10619 * linespec.c (find_methods): Handle constructors specially for now.
10620
10621 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
10622
10623 * arm-tdep.c (arm_push_arguments): Eliminate special float type
10624 handling.
10625 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
10626 standard_coerce_float_to_double().
10627
10628 2002-02-14 Christopher Faylor <cgf@redhat.com>
10629
10630 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
10631 GDBINIT_FILENAME.
10632
10633 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
10634
10635 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
10636 find_variant_by_name, because it confuses the multiarch
10637 framework. Return NULL if there isn't an architecture with the
10638 user supplied name, instead of forcing a different one without
10639 recording the change with the multiarch machinery.
10640 (find_variant_by_name): Delete.
10641
10642 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10643
10644 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
10645 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
10646
10647 2002-02-13 Martin M. Hunt <hunt@redhat.com>
10648
10649 * stack.c (print_frame_info_base): When calling
10650 print_frame_info_listing_hook, set current_source_symtab.
10651
10652 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
10653
10654 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
10655 and remove unused $(INCLUDE_DIR).
10656 Add regcache.c to OBS.
10657 Add generated register protocol files to clean target.
10658 Update dependencies for new objects, obsolete old target code.
10659
10660 * gdbserver/linux-low.c: Remove all platform-specific code to
10661 new files. Remove various dead code. Update to use regcache
10662 functionality.
10663 * gdbserver/remote-utils.c (fromhex): Add return statement
10664 to quiet warning.
10665 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
10666 constant.
10667 (input_interrupt): Add integer parameter to match prototype
10668 of a signal handler.
10669 (outreg): Use register_data ().
10670 (prepare_resume_reply): Use gdbserver_expedite_regs.
10671 * gdbserver/server.c (main): Dynamically allocate own_buf because
10672 PBUFSIZ is no longer constant. Use registers_to_string () and
10673 registers_from_string ().
10674 * gdbserver/server.h: No longer include "defs.h". Add prototypes
10675 for error (), fatal (), and warning (). Update definition of
10676 PBUFSIZ to use regcache functionality. Add include guard.
10677 * gdbserver/utils.c (fatal): Add missing ``const''.
10678 (warning): New function.
10679
10680 * regformats/regdat.sh: Include "regcache.h" in generated files.
10681 Provide init_registers () function.
10682 * regformats/regdef.h: Add prototype for set_register_cache ().
10683 Add include guard.
10684
10685 * gdbserver/linux-arm-low.c: New file.
10686 * gdbserver/linux-i386-low.c: New file.
10687 * gdbserver/linux-ia64-low.c: New file.
10688 * gdbserver/linux-m68k-low.c: New file.
10689 * gdbserver/linux-mips-low.c: New file.
10690 * gdbserver/linux-ppc-low.c: New file.
10691 * gdbserver/linux-sh-low.c: New file.
10692
10693 * gdbserver/regcache.c: New file.
10694 * gdbserver/regcache.h: New file.
10695
10696 * gdbserver/low-linux.c: Removed obsolete file.
10697
10698 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
10699
10700 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
10701 * config/i386/linux.mt: Likewise.
10702 * config/ia64/linux.mt: Likewise.
10703 * config/m68k/linux.mh: Likewise.
10704 * config/powerpc/linux.mh: Likewise.
10705 * config/mips/linux.mt: Likewise.
10706
10707 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
10708
10709 * config/i386/i386lynx.mh: Mark gdbserver variables
10710 as (currently) obsolete for this target.
10711 * config/i386/nbsd.mt: Likewise.
10712 * config/i386/nbsdelf.mt: Likewise.
10713 * config/m32r/m32r.mt: Likewise.
10714 * config/m68k/m68klynx.mh: Likewise.
10715 * config/m68k/nbsd.mt: Likewise.
10716 * config/m68k/sun3os4.mh: Likewise.
10717 * config/mips/vr5000.mt: Likewise.
10718 * config/ns32k/nbsd.mt: Likewise.
10719 * config/pa/hppabsd.mh: Likewise.
10720 * config/pa/hppaosf.mh: Likewise.
10721 * config/powerpc/nbsd.mt: Likewise.
10722 * config/rs6000/rs6000lynx.mh: Likewise.
10723 * config/s390/s390.mt: Likewise.
10724 * config/s390/s390x.mt: Likewise.
10725 * config/sparc/sparclynx.mh: Likewise.
10726 * config/sparc/sun4os4.mh: Likewise.
10727 * config/i386/x86-64linux.mt: Likewise.
10728 * config/sparc/linux.mh: Likewise.
10729
10730 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
10731
10732 * configure.tgt: Configure gdbserver only for known working
10733 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
10734 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
10735 SUBDIRS if it is configured. Update comment for ${nativefile}.
10736 * configure: Regenerated.
10737
10738 2002-02-13 Michael Snyder <msnyder@redhat.com>
10739
10740 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
10741
10742 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
10743 (default_gcore_mach): Just return 0, work around a problem in bfd.
10744 (default_gcore_target): OK to return NULL if exec_bfd is null.
10745 (make_mem_sec): Use a cast, avoid a warning.
10746
10747 * procfs.c (find_memory_regions_callback): Use a cast instead of
10748 calling host_pointer_to_address (which complains if
10749 sizeof (host pointer) != sizeof (target pointer)).
10750 (procfs_make_note_section): Avoid overflow in psargs string.
10751
10752 * procfs.c (procfs_make_note_section): Make the default
10753 implementation return an error.
10754
10755 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
10756
10757 * procfs.c (procfs_make_note_section): Provide a default definition
10758 (for alpha-dec-osf4.0f). Fix typos.
10759
10760 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
10761
10762 * linux-proc.c: Add include of regcache.h.
10763 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
10764
10765 2002-02-13 Andrew Cagney <ac131313@redhat.com>
10766
10767 From 2002-01-18 Greg McGary <greg@mcgary.org>:
10768 * memattr.c (create_mem_region): Disallow useless empty region.
10769 Regions are half-open intervals, so allow [A..B) [B..C) as
10770 non-overlapping.
10771
10772 2002-02-13 Michael Chastain <mec@shout.net>
10773
10774 * defs.h: Kill CONST_PTR.
10775 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
10776 * c-lang.c (c_builtin_types): Likewise.
10777 * ch-lang.c (ch_builtin_types): Likewise.
10778 * f-lang.c (f_builtin_types): Likewise.
10779 * language.c (unknown_builtin_types): Likewise.
10780 * m2-lang.c (m2_builtin_types): Likewise.
10781 * p-lang.c (pascal_builtin_types): Likewise.
10782 * scm-lang.c (c_builtin_types): Likewise.
10783
10784 2002-02-13 Keith Seitz <keiths@redhat.com>
10785
10786 * arm-tdep.h (arm_get_next_pc): Add declaration.
10787
10788 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
10789
10790 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
10791 with other related struct-returning functions.
10792 (arm_extract_struct_value_address): New function.
10793 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
10794 initialize float_format, double_format and long_double_format as
10795 appropriate to the endianness of the target.
10796 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
10797 (arm_use_struct_convention): Delete declaration.
10798 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
10799
10800 2002-02-13 Keith Seitz <keiths@redhat.com>
10801
10802 * defs.h (core_addr_to_string_nz): New function.
10803
10804 2002-02-13 Mark Kettenis <kettenis@gnu.org>
10805
10806 Apply missing bits of 2002-01-15 patch.
10807 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
10808 (fill_fpregset): Use i387_fill_fsave.
10809
10810 2002-02-12 Keith Seitz <keiths@redhat.com>
10811
10812 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
10813 (core_addr_to_string_nz): New function.
10814
10815 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
10816
10817 * arm-linux-nat.c: Really include arm-tdep.h.
10818 * config/arm/tm-linux.h (struct type, struct value): Declare.
10819
10820 2002-02-11 Michael Snyder <msnyder@redhat.com>
10821
10822 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
10823 (gcore section): Ifdef for Solaris and Unixware only.
10824 (procfs_do_thread_registers): Unixware needs one lwpstatus
10825 per thread (not one prstatus or pstatus).
10826 (procfs_make_note_section): Iterate only over kernel threads (lwps),
10827 not over all gdb threads. For unixware, call elfcore_write_pstatus
10828 once before iterating over threads.
10829
10830 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
10831
10832 * arm-tdep.h: New file.
10833 * arm-tdep.c: Include arm-tdep.h.
10834 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
10835 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
10836 (arm_print_float_info, arm_register_type, convert_to_extended)
10837 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
10838 (arm_extract_return_value, arm_register_name): Make static.
10839 (arm_software_single_step): Similarly. Fix types in declaration.
10840 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
10841 (arm_store_return_value, arm_store_struct_return): New functions.
10842 (arm_gdbarch_init): Register the above functions. Also register
10843 call_dummy_start_offset, sizeof_call_dummy_words,
10844 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
10845 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
10846 max_register_virtual_size, register_size. Set up
10847 prologue_cache.saved_regs here, rather than ...
10848 (_initialize_arm_tdep): ... here.
10849 * config/arm/tm-arm.h (struct type, struct value): Delete forward
10850 declarations.
10851 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
10852 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
10853 (arm_print_float_info, arm_register_type, convert_to_extended)
10854 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
10855 (arm_extract_return_value, arm_register_name): Delete declarations.
10856 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
10857 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
10858 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
10859 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
10860 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
10861 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
10862 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
10863 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
10864 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
10865 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
10866 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
10867 (arm_get_next_pc): No-longer static -- these are needed by the RDI
10868 interface.
10869 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
10870 * remote-rdi.c remote-rdp.c: Likewise.
10871 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
10872 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
10873 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
10874 definition.
10875
10876 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
10877 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
10878 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
10879 from non-ARM_ prefixed definitions.
10880 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
10881 all uses of above.
10882 * remote-rdi.c remote-rdp.c: Likewise.
10883 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
10884
10885 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
10886
10887 * arm-tdep.c (arm_frameless_function_invocation)
10888 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
10889 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
10890 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
10891 (arm_pop_frame, arm_get_next_pc): Make static.
10892 (arm_gdbarch_init): Register above in gdbarch structure.
10893 (arm_read_fp): Renamed from arm_target_read_fp.
10894 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
10895 * config/arm/tm-arm.h (arm_frameless_function_invocation)
10896 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
10897 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
10898 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
10899 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
10900 (arm_pc_is_thumb_dummy): Delete declarations.
10901 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
10902 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
10903 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
10904 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
10905
10906 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
10907
10908 * symtab.c (compare_search_syms): New function.
10909 (sort_search_symbols): New function.
10910 (search_symbols): Sort symbols after searching rather than
10911 before.
10912
10913 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10914
10915 * NEWS: Linux -> GNU/Linux.
10916
10917 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10918
10919 * gdbarch.sh: For for level one methods, disallow a definition
10920 when partially multi-arched. Add comments explaining rationale.
10921 * gdbarch.h: Re-generate.
10922
10923 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10924
10925 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
10926 multi-arch partial.
10927
10928 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10929
10930 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
10931 field. Use diff -u.
10932 * gdbarch.c: Re-generate.
10933
10934 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10935
10936 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
10937 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
10938 partial.
10939
10940 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10941
10942 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
10943 multi-arch partial.
10944 (PUSH_ARGUMENTS): Switch to using predefault.
10945 * gdbarch.c: Regenerate.
10946
10947 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10948
10949 * valops.c (PUSH_ARGUMENTS): Delete definition.
10950 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
10951 partial. Default to default_push_arguments.
10952 * gdbarch.h, gdbarch.c: Regenerate.
10953
10954 2002-02-09 Andrew Cagney <ac131313@redhat.com>
10955
10956 * defs.h (throw_exception): Rename return_to_top_level. Update
10957 comments.
10958 * utils.c (error_stream, internal_verror, quit): Ditto.
10959 * top.c (throw_exception, catcher): Ditto.
10960 * sparclet-rom.c (sparclet_load): Ditto.
10961 * remote.c (interrupt_query, minitelnet): Ditto.
10962 * remote-sds.c (interrupt_query): Ditto.
10963 * remote-mips.c (mips_error, mips_kill): Ditto.
10964 * ocd.c (interrupt_query): Ditto.
10965 * monitor.c (monitor_interrupt_query): Ditto.
10966 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
10967 * target.h: Update comment.
10968
10969 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
10970
10971 2002-02-09 Andrew Cagney <ac131313@redhat.com>
10972
10973 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
10974 default_double_format.
10975 * gdbarch.h, gdbarch.c: Re-generate.
10976 * findvar.c (floatformat_unknown): Delete variable definition.
10977 * doublest.h (floatformat_unknown): Delete variable declaration.
10978
10979 2002-02-09 Jim Blandy <jimb@redhat.com>
10980
10981 * stabsread.c (read_type): Add code to parse Sun's syntax for
10982 prototyped function types.
10983
10984 2002-02-09 Andrew Cagney <ac131313@redhat.com>
10985
10986 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
10987 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
10988
10989 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10990
10991 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
10992 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
10993 now _initialize_xcoffsolib gets called again and overrides the
10994 commands from solib.c in a native configuration.
10995
10996 2002-02-09 Mark Kettenis <kettenis@gnu.org>
10997
10998 * doublest.c (store_typed_floating): Don't try to return a value.
10999 Fixes PR gdb/290.
11000
11001 2002-02-08 Jim Blandy <jimb@redhat.com>
11002
11003 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
11004 is prototyped and has no arguments, print its argument list as
11005 `(void)'.
11006
11007 2002-02-08 Chris Demetriou <cgd@broadcom.com>
11008
11009 * MAINTAINERS (write-after-approval): Add myself.
11010 (paper-trail): I've escaped!
11011
11012 2002-02-08 Christopher Faylor <cgf@redhat.com>
11013
11014 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
11015 changes.
11016 (_initialize_check_for_gdb_ini): Ditto.
11017
11018 2002-02-08 Martin M. Hunt <hunt@redhat.com>
11019
11020 * win32-nat.c (cygwin_pid_to_str): Fix typo.
11021 xaprintf -> xasprintf.
11022
11023 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
11024
11025 * win32-nat.c: Remove use of printf and sprintf functions.
11026
11027 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
11028
11029 * arm-tdep.c (arm_frame_chain_valid): Make static.
11030 (arm_push_arguments): Likewise.
11031 (arm_gdbarch_init): New function.
11032 (_initialize_arm_tdep): Call it.
11033 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
11034 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
11035 (FRAME_CHAIN_VALID): Delete.
11036 (arm_frame_chain_valid): Delete declaration.
11037 (PUSH_ARGUMENTS): Delete.
11038 (arm_push_arguments): Delete declaration.
11039 (CALL_DUMMY_P): Delete.
11040
11041 2002-02-08 Andrew Cagney <ac131313@redhat.com>
11042 Corinna Vinschen <vinschen@redhat.com>
11043
11044 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
11045 on builtin float types.
11046
11047 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
11048
11049 * utils.c: Include <curses.h> before "bfd.h".
11050 * tui/tui-hooks.c: Likewise.
11051 * tui/tui.c: Likewise.
11052 * tui/tuiCommand.c: Likewise.
11053 * tui/tuiData.c: Likewise.
11054 * tui/tuiDataWin.c: Likewise.
11055 * tui/tuiDisassem.c: Likewise.
11056 * tui/tuiGeneralWin.c: Likewise.
11057 * tui/tuiIO.c: Likewise.
11058 * tui/tuiLayout.c: Likewise.
11059 * tui/tuiRegs.c: Likewise.
11060 * tui/tuiSource.c: Likewise.
11061 * tui/tuiSourceWin.c: Likewise.
11062 * tui/tuiStack.c: Likewise.
11063 * tui/tuiWin.c: Likewise.
11064
11065 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
11066
11067 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
11068 to include space for pseudoregs as well. Update loops accordingly.
11069 (sh_fp_frame_init_saved_regs): Ditto.
11070 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
11071
11072 2002-02-07 Andrew Cagney <ac131313@redhat.com>
11073
11074 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
11075 Add Richard Earnshaw to Arm maintainers.
11076
11077 2002-02-07 Andrew Cagney <ac131313@redhat.com>
11078
11079 * defs.h (warning_begin): Delete declaration.
11080
11081 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
11082 Delete macro.
11083
11084 2002-02-07 Michael Snyder <msnyder@redhat.com>
11085
11086 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
11087 Logic bug, remove misplaced else.
11088
11089 2002-02-07 Klee Dienes <klee@apple.com>
11090
11091 * fork-inferior.c (fork_inferior): Add '!' to the list of
11092 characters that need to be quoted when building a string for the
11093 shell. Quote '!' specifically with a backslash, since CSH chokes
11094 when trying to evaluate "str!str".
11095
11096 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
11097
11098 * rdi-share/host.h: Only provide a typedef for bool if it is not
11099 defined.
11100
11101 2002-02-04 Michael Snyder <msnyder@redhat.com>
11102
11103 * breakpoint.h (enum bptype): Add new overlay event bp type.
11104 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
11105
11106 * breakpoint.c (create_internal_breakpoint): New function.
11107 (internal_breakpoint_number): Moved into create_internal_breakpoint.
11108 (create_longjmp_breakpoint): Use create_internal_breakpoint.
11109 (create_thread_event_breakpoint): Ditto.
11110 (create_solib_event_breakpoint): Ditto.
11111 (create_overlay_event_breakpoint): New function.
11112 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
11113 (update_breakpoints_after_exec): Delete and re-initialize
11114 overlay event breakpoints after an exec. Add FIXME comment
11115 about longjmp breakpoint.
11116 (print_it_typical): Ignore overlay event breakpoints.
11117 (print_one_breakpoint): Ditto.
11118 (mention): Ditto.
11119 (bpstat_what): Do not stop for overlay event breakpoints.
11120 (delete_breakpoint): Don't delete overlay event breakpoints.
11121 (breakpoint_re_set_one): Delete the overlay event breakpoint.
11122 (breakpoint_re_set): Re-create overlay event breakpoint.
11123
11124 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
11125 (overlay_manual_command): Disable overlay breakpoints.
11126 (overlay_off_command): Disable overlay breakpoints.
11127
11128 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
11129
11130 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
11131 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
11132 to here from config/tm-arm.h.
11133 (coff_sym_is_thumb): Make static.
11134 (arm_elf_make_msymbol_special): New function.
11135 (arm_coff_make_msymbol_special): New function.
11136 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
11137 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
11138 (coff_sym_is_thumb): Delete declaration.
11139 (arm_elf_make_msymbol_special): Declare.
11140 (arm_coff_make_msymbol_special): Declare.
11141 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
11142 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
11143
11144 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
11145
11146 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
11147
11148 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
11149
11150 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
11151 * gdbarch.c gdbarch.h: Regenerate.
11152 * arch-utils.c (default_print_float_info): New function.
11153 * arch-utils.h (default_print_float_info): Prototype it.
11154 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
11155 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
11156 (PRINT_FLOAT_INFO): Document it.
11157
11158 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
11159 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
11160 (PRINT_FLOAT_INFO): Define.
11161
11162 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
11163
11164 * win32-nat.c (_initialize_check_for_gdb_ini):
11165 Add typecast to sprintf argument to suppress a warning.
11166
11167 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
11168
11169 * win32-nat.c (last_sig): Changed type of variable to target_signal,
11170 to allow easier handling of pass state.
11171 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
11172 that gives exception name and address.
11173 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
11174 and set last_sig value to ourstatus->value.sig. Some missing
11175 exceptions added.
11176 (child_continue): Correctly report continue_status.
11177 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
11178 TARGET_SIGNAL_0 (new default value).
11179 (child_resume): consider sig argument passed to decide if
11180 the exception should be passed to debuggee or not.
11181
11182 2002-02-05 Michael Snyder <msnyder@redhat.com>
11183
11184 * regcache.c (fetch_register): Call target_fetch_register
11185 only if we don't call FETCH_PSEUDO_REGISTER.
11186 (store_register): Call target_store_register only if we
11187 don't call STORE_PSEUDO_REGISTER.
11188
11189 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
11190
11191 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
11192 ELF_MAKE_MSYMBOL_SPECIAL.
11193 * gdbarch.c, gdbarch.h: Regenerate.
11194 * arch-utils.c (default_make_msymbol_special): New function.
11195 * arch-utils.h (default_make_msymbol_special): Export.
11196 * elfread.c (elf_symtab_read): Compile use of
11197 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
11198 multiarched.
11199 * coffread.c (coff_symtab_read): Ditto, for
11200 COFF_MAKE_MSYMBOL_SPECIAL.
11201
11202 2002-02-05 Jim Blandy <jimb@redhat.com>
11203
11204 * solib-svr4.c (svr4_truncate_ptr): New function.
11205 (svr4_relocate_section_addresses): Do the address arithmetic with
11206 the appropriate truncation for target addresses, even when
11207 CORE_ADDR is larger than a target address.
11208
11209 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
11210
11211 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
11212 to (int *).
11213
11214 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
11215
11216 * gdbserver/linux-low.c (kill_inferior): Remove commented out
11217 code.
11218
11219 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
11220
11221 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
11222
11223 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
11224
11225 * gdbserver/linux-low.c: Remove unused include files.
11226
11227 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
11228
11229 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
11230 (read_inferior_memory): Use it.
11231 (write_inferior_memory): Likewise.
11232
11233 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
11234
11235 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
11236 grubbing through sys_errlist.
11237
11238 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
11239
11240 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
11241
11242 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
11243 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
11244
11245 2002-02-04 Andrew Cagney <ac131313@redhat.com>
11246
11247 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
11248 (do_sfunc, set_cmd_sfunc): New functions.
11249
11250 * command.h (struct cmd_list_element): Add field func.
11251 * cli/cli-decode.h (struct cmd_list_element): Ditto.
11252 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
11253 * cli/cli-decode.h: Ditto.
11254
11255 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
11256 (help_all, help_cmd_list): Ditto.
11257 (find_cmd, complete_on_cmdlist): Ditto.
11258 * top.c (execute_command): Ditto.
11259
11260 * cli/cli-setshow.c (do_setshow_command): Call func instead of
11261 function.sfunc.
11262
11263 * infcmd.c (notice_args_read): Fix function signature.
11264
11265 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
11266 * cli/cli-decode.c (add_set_cmd): Ditto.
11267 * utils.c (initialize_utils): Ditto.
11268 * maint.c (_initialize_maint_cmds): Ditto.
11269 * infrun.c (_initialize_infrun): Ditto.
11270 * demangle.c (_initialize_demangler): Ditto.
11271 * remote.c (add_packet_config_cmd): Ditto.
11272 * mips-tdep.c (_initialize_mips_tdep): Ditto.
11273 * cris-tdep.c (_initialize_cris_tdep): Ditto.
11274 * proc-api.c (_initialize_proc_api): Ditto.
11275 * kod.c (_initialize_kod): Ditto.
11276 * valprint.c (_initialize_valprint): Ditto.
11277 * top.c (init_main): Ditto.
11278 * infcmd.c (_initialize_infcmd): Ditto.
11279 * corefile.c (_initialize_core): Ditto.
11280 * arm-tdep.c (_initialize_arm_tdep): Ditto.
11281 * arch-utils.c (initialize_current_architecture): Ditto.
11282 (_initialize_gdbarch_utils): Ditto.
11283 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
11284
11285 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
11286 * wince.c (_initialize_inftarg): Ditto.
11287 * symfile.c (_initialize_symfile): Ditto.
11288 * mips-tdep.c (_initialize_mips_tdep): Ditto.
11289 * language.c (_initialize_language): Ditto.
11290 * arc-tdep.c (_initialize_arc_tdep): Ditto.
11291
11292 2002-02-04 Michael Snyder <msnyder@redhat.com>
11293
11294 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
11295
11296 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
11297
11298 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
11299 Add rules for building the register data files.
11300
11301 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
11302
11303 * regformats/regdat.sh: Add braces to the definition of
11304 expedite_regs_${arch}.
11305
11306 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
11307
11308 * regformats/regdef.h (struct reg): Add comment describing the
11309 requirements for offset and size fields.
11310
11311 2002-02-04 Andreas Schwab <schwab@suse.de>
11312
11313 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
11314 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
11315
11316 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
11317
11318 * gdbarch.sh (copyright): Update years in generated header.
11319 (SMASH_TEXT_ADDRESS): Add rule.
11320 * gdbarch.h, gdbarch.c: Re-generate.
11321 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
11322 * dbxread.c: Likewise.
11323 * dwarfread.c: Likewise.
11324 * elfread.c: Likewise.
11325 * somread.c: Likewise.
11326
11327 * arm-tdep.c (arm_smash_text_address): New function.
11328 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
11329
11330 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
11331
11332 Add support for hardware watchpoints on win32 native.
11333 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
11334 CONTEXT_DEBUG_REGISTERS.
11335 (dr variable): New variable. Static array containing a local copy
11336 of debug registers.
11337 (debug_registers_changed): New variable. Reflects when debug registers
11338 are changed and need to be written to inferior.
11339 (debug_registers_used): New variable. Reflects when any debug register
11340 was set, used when new threads are created.
11341 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
11342 i386-nat code.
11343 (thread_rec): Set dr array if id is the thread of current_event .
11344 (child_continue, child_resume): Change the debug registers for all
11345 threads if debug_registers_changed.
11346 (child_add_thread): Change the debug registers if debug_registers_used.
11347 * config/i386/cygwin.mh: Add use of i386-nat.o file.
11348 Link nm.h to new nm-cygwin.h file.
11349 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
11350 of hardware registers.
11351
11352 2002-02-03 Andrew Cagney <ac131313@redhat.com>
11353
11354 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
11355 Restore behavour broken by 2002-01-20 Andrew Cagney
11356 <ac131313@redhat.com> IEEE_FLOAT removal.
11357
11358 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
11359
11360 * c-valprint.c (c_val_print): Pass a proper valaddr to
11361 cp_print_class_method.
11362 * valops.c (search_struct_method): If there is only one method
11363 and args is NULL, return that method.
11364
11365 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
11366
11367 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
11368 accessing tag_name directly.
11369
11370 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
11371
11372 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
11373 of accessing tag_name directly.
11374
11375 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
11376
11377 PR gdb/280
11378 * gdbtypes.c (replace_type): New function.
11379 * gdbtypes.h (replace_type): Add prototype.
11380 * stabsread.c (read_type): Use replace_type.
11381
11382 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
11383
11384 * Makefile.in (memattr.o): Add missing dependencies rule.
11385
11386 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11387
11388 * breakpoint.c (break_at_finish_command): Really export.
11389 (break_at_finish_at_depth_command): Ditto.
11390 (tbreak_at_finish_command): Ditto.
11391 * hppa-tdep.c: Include completer.h.
11392 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
11393 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
11394
11395 2002-02-01 Andrew Cagney <ac131313@redhat.com>
11396
11397 * utils.c (do_write): New function.
11398 (error_stream): Rewrite combining the code from error_begin and
11399 verror.
11400 (verror): Rewrite using error_stream.
11401 (error_begin): Delete function.
11402
11403 2002-02-01 Andrew Cagney <ac131313@redhat.com>
11404
11405 * utils.c (error_begin): Make static.
11406 * defs.h (error_begin): Delete declaration.
11407
11408 * linespec.c (cplusplus_error): Replace cplusplus_hint.
11409 (decode_line_1): Use cplusplus_error instead of error_begin,
11410 cplusplus_hint and return_to_top_level.
11411 * coffread.c (coff_symfile_read): Use error instead of error_begin
11412 and return_to_top_level.
11413 * infrun.c (default_skip_permanent_breakpoint): Ditto.
11414
11415 2002-02-01 Andrew Cagney <ac131313@redhat.com>
11416
11417 * language.h (type_error, range_error): Make string parameter
11418 constant.
11419 * language.c (warning_pre_print): Delete extern declaration.
11420 * dwarfread.c (warning_pre_print): Ditto.
11421 * language.c (type_error, range_error): Rewrite to use verror and
11422 vwarning instead of warning_begin.
11423
11424 2002-02-01 Michael Snyder <msnyder@redhat.com>
11425
11426 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
11427 (set_ignore_count): Move misplaced comment back where it belongs.
11428
11429 2002-02-01 Andrew Cagney <ac131313@redhat.com>
11430
11431 * command.h (NO_FUNCTION): Delete macro.
11432 * cli/cli-decode.h (NO_FUNCTION): Ditto.
11433 * top.c (execute_command): Replace NO_FUNCTION with NULL.
11434 * tracepoint.c (_initialize_tracepoint): Ditto.
11435 * cli/cli-decode.c (add_set_cmd): Ditto.
11436 * cli/cli-cmds.c (init_cli_cmds): Ditto.
11437
11438 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
11439
11440 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
11441 Update ``this'' pointer when calling virtual functions.
11442
11443 2002-02-01 Michael Snyder <msnyder@redhat.com>
11444
11445 * breakpoint.c (create_temp_exception_breakpoint): Delete.
11446 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
11447
11448 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
11449
11450 * regformats/reg-arm.dat: New file.
11451 * regformats/reg-i386.dat: New file.
11452 * regformats/reg-ia64.dat: New file.
11453 * regformats/reg-m68k.dat: New file.
11454 * regformats/reg-mips.dat: New file.
11455 * regformats/reg-ppc.dat: New file.
11456 * regformats/reg-sh.dat: New file.
11457 * regformats/regdef.h: New file.
11458 * regformats/regdat.sh: New file.
11459
11460 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
11461
11462 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
11463 (arm_frame_args_address, arm_frame_locals_address): New functions.
11464 (arm_frame_num_args): New function.
11465 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
11466 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
11467 (FRMA_NUM_ARGS): Call arm_frame_num_args.
11468
11469 2002-01-31 Michael Snyder <msnyder@redhat.com>
11470
11471 * breakpoint.c (break_at_finish_command): Export.
11472 (break_at_finish_at_depth_command): Export.
11473 (tbreak_at_finish_command): Export.
11474 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
11475 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
11476 "txbreak" commands, which are HPPA specific.
11477
11478 * printcmd.c (disassemble_command): Remove an ancient
11479 artifact of an old merge.
11480
11481 * symfile.h (enum overlay_debugging_state):
11482 Define enum constant values for overlay mode.
11483 * symfile.c (overlay_debugging): Use enums instead of literals.
11484 (overlay_is_mapped, overlay_auto_command,
11485 overlay_manual_command): Ditto.
11486
11487 * breakpoint.c (insert_breakpoints, remove_breakpoint,
11488 breakpoint_here_p, breakpoint_inserted_here_p,
11489 breakpoint_thread_match, bpstat_stop_status,
11490 describe_other_breakpoints, check_duplicates, clear_command):
11491 Coding standard fixes.
11492
11493 * target.c (target_xfer_memory): Add spaces, coding standard.
11494 (do_xfer_memory): Add missing line to trust-readonly
11495 code: check bfd SEC_READONLY flag for section.
11496
11497 2002-01-31 Andrew Cagney <ac131313@redhat.com>
11498
11499 * PROBLEMS: Fix typo, 5.1->5.1.1.
11500
11501 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
11502
11503 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
11504 data symbols, since we search based on textlow and texthigh.
11505 (find_pc_sect_symtab): Likewise.
11506
11507 2002-01-30 Andrew Cagney <ac131313@redhat.com>
11508
11509 * defs.h (vwarning): Declare.
11510 * utils.c (vwarning): New function.
11511 (warning): Call vwarning.
11512 (warning_begin): Delete function.
11513
11514 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
11515 the warning message.
11516 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
11517 warning_begin.
11518
11519 2002-01-30 Michael Snyder <msnyder@redhat.com>
11520
11521 * NEWS: Mention "set trust-readonly-sections" command.
11522 Mention generate-core-file command.
11523
11524 2002-01-15 Michael Snyder <msnyder@redhat.com>
11525
11526 * target.c: New command, "set trust-readonly-sections on".
11527 (do_xfer_memory): Honor the suggestion to trust readonly sections
11528 by reading them from the object file instead of from the target.
11529 (initialize_targets): Register command "set trust-readonly-sections".
11530
11531 2002-01-29 Andrew Cagney <ac131313@redhat.com>
11532
11533 * parse.c (target_map_name_to_register): Simplify, search regs and
11534 pseudo-regs using a single loop.
11535
11536 2002-01-30 Andrew Cagney <ac131313@redhat.com>
11537
11538 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
11539
11540 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
11541
11542 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
11543 * config/i386/i386v42mp.mh: Add i387-nat.o .
11544 * i386v4-nat.c: Include i387-nat.h.
11545 (supply_fpregset): Use i387_supply_fsave.
11546 (fill_fpregset): Use i387_fill_fsave.
11547
11548 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
11549
11550 * arm-tdep.c (arm_call_dummy_words): Define.
11551 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
11552 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
11553 (CALL_DUMMY_WORDS): Define.
11554 (arm_call_dummy_words): Declare.
11555 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
11556 (arm_linux_call_dummy_words): Declare.
11557
11558 2002-01-30 Andreas Schwab <schwab@suse.de>
11559
11560 * m68klinux-nat.c: Fix last change to use regcache_collect
11561 instead of referencing registers[] directly.
11562
11563 2002-01-29 Andrew Cagney <ac131313@redhat.com>
11564
11565 * parse.c (target_map_name_to_register): Delete code wrapped in
11566 #ifdef REGISTER_NAME_ALIAS_HOOK.
11567
11568 2002-01-28 Michael Snyder <msnyder@redhat.com>
11569
11570 * regcache.c (legacy_read_register_gen): Need to be able to
11571 read pseudo-register as well as real register.
11572 (legacy_write_register_gen): Ditto.
11573
11574 2002-01-28 Andrew Cagney <ac131313@redhat.com>
11575
11576 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
11577 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
11578 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
11579 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
11580 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
11581 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
11582 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
11583 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
11584 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
11585 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
11586 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
11587 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
11588 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
11589 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
11590 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
11591 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
11592 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
11593 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
11594 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
11595 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
11596
11597 2002-01-28 Andrew Cagney <ac131313@redhat.com>
11598
11599 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
11600 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
11601 (initialize_current_architecture): Update target_byte_order using
11602 information from BFD.
11603 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
11604 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
11605
11606 2002-01-28 Andrew Cagney <ac131313@redhat.com>
11607
11608 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
11609 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
11610
11611 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
11612 #ifdef INVALID_FLOAT.
11613 * infcmd.c (do_registers_info): Ditto.
11614 * values.c (unpack_double): Ditto. Add comment.
11615
11616 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
11617 already commented out.
11618
11619 2002-01-26 Andreas Schwab <schwab@suse.de>
11620
11621 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
11622 * m68klinux-nat.c: Update ptrace interface for fetching/storing
11623 registers and add support for PTRACE_GETREGS.
11624
11625 2002-01-24 Andrew Cagney <ac131313@redhat.com>
11626
11627 GDB 5.1.1 released from 5.1 branch.
11628 * NEWS: Add 5.1.1 news.
11629 * README: Sync with 5.1 branch.
11630
11631 2002-01-23 Fred Fish <fnf@redhat.com>
11632
11633 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
11634 stabstring on initial malloc. Reallocing will copy it for us,
11635 if necessary.
11636
11637 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
11638
11639 * Makefile.in (hpread_h): Delete.
11640 (HFILES_NO_SRCDIR): Remove hpread.h.
11641 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
11642 (hpread.o): Update dependencies.
11643 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
11644
11645 * hp-psymtab-read.c: Remove file.
11646 * hp-symtab-read.c: Remove file.
11647 * hpread.h: Remove file.
11648
11649 * hpread.c: Merge all contents of hp-psymtab-read.c,
11650 hp-symtab-read.c and hpread.h into this file, as it was prior to
11651 January 1999.
11652
11653 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
11654 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
11655 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
11656 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
11657
11658 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
11659
11660 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
11661 fill_gregset): Call gdbarch_tdep() just once, assign result to
11662 variable and use that, instead of calling the function several
11663 times.
11664
11665 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
11666
11667 * configure.host: Accept sparcv9 as alias for sparc64.
11668 * configure.tgt: Likewise.
11669
11670 2002-01-22 Kevin Buettner <kevinb@redhat.com>
11671
11672 * solib-aix5.c (build_so_list_from_mapfile)
11673 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
11674 arguments is not reversed.
11675 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
11676 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
11677
11678 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
11679
11680 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
11681 modified version of obsolete sh_fetch_pseudo_register.
11682 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
11683 (sh4_register_read): New function.
11684 (sh_pseudo_register_write): New function. Renamed and modified
11685 version of obsolete sh_store_pseudo_register.
11686 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
11687 (sh4_register_write): New function.
11688 (sh_gdbarch_init): Remove setting of gdbarch function
11689 fetch_pseudo_register and store_pseudo_register. Remove setting of
11690 register_convert_to_raw, register_convert_to_virtual,
11691 register_convertible.
11692 (sh_sh4_register_convertible): Delete. No longer needed. All is
11693 taken care by architecture specific functions
11694 register_read/register_write.
11695 (sh_sh4_register_convert_to_virtual): Make static.
11696 (sh_sh4_register_convert_to_raw): Ditto.
11697
11698 2002-01-22 Andrew Cagney <ac131313@redhat.com>
11699
11700 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
11701 (floatformat_is_nan, floatformat_mantissa): Ditto.
11702
11703 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
11704 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
11705 builtin_type_ieee_double_little,
11706 builtin_type_ieee_double_littlebyte_bigword,
11707 builtin_type_m68881_ext, builtin_type_i960_ext,
11708 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
11709 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
11710 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
11711 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
11712
11713 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
11714
11715 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
11716 parameter. Set frameless flag if it exists and depended of
11717 whether the scanned function is frameless or not.
11718 (xstormy16_skip_prologue): If function is frameless, return
11719 result of xstormy16_scan_prologue().
11720 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
11721 call.
11722
11723 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
11724
11725 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
11726 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
11727 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
11728 sh_sh4_register_byte, sh_sh4_register_raw_size,
11729 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
11730 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
11731 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
11732 sh_store_pseudo_register, sh_do_pseudo_register): Call
11733 gdbarch_tdep() just once, assign result to variable and use that,
11734 instead of calling the function several times.
11735
11736 2002-01-20 Mark Kettenis <kettenis@gnu.org>
11737
11738 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
11739 macros instead of LAST_FPU_CTRL_REGNUM.
11740 (store_register): Likewise.
11741
11742 2002-01-21 Jim Blandy <jimb@redhat.com>
11743
11744 * infcmd.c (run_command): Check that the `exec' target layer's BFD
11745 is up-to-date before running the program, not just when a program
11746 exits.
11747
11748 2002-01-21 Fred Fish <fnf@redhat.com>
11749
11750 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
11751 when we have found all instructions we are looking for.
11752
11753 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
11754
11755 * arm-tdep.c (arm_register_name): New function.
11756 (arm_registers_names): Make static.
11757 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
11758 (arm_register_name): Declare.
11759 (REGISTER_NAME): Use it.
11760
11761 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
11762 Kevin Buettner <kevinb@redhat.com>
11763
11764 Convert arm targets to new FRAME interface.
11765 * arm-tdep.c (struct frame_extra_info): Remove fsr.
11766 (arm_frame_find_save_regs): Delete.
11767 (arm_frame_init_saved_regs): New.
11768 (arm_init_extra_frame_info): Alloacte saved_regs as required.
11769 Allocate extra_info as required. Convert all uses of fsr.regs
11770 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
11771 to use extra_info.
11772 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
11773 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
11774 (check_prologue_cache, save_prologue_cache): Likewise.
11775 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
11776 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
11777 (FRAME_FIND_SAVED_REGS): Delete.
11778 (arm_frame_find_saved_regs): Delete prototype.
11779 (arm_frame_init_saved_regs): New prototype.
11780 (FRAME_INIT_SAVED_REGS): Define.
11781
11782 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11783
11784 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
11785
11786 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11787
11788 From Jeff Law <law@redhat.com>:
11789 * infttrace.c: Include <sys/pstat.h>.
11790 (child_pid_to_exec_file): Revamp. Use pstat call to get the
11791 exec file if the ttrace equivalent fails.
11792
11793 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11794
11795 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
11796 (closeLogFile): Ditto.
11797
11798 2002-01-20 Michael Chastain <mec@shout.net>
11799
11800 * top.c (print_gdb_version): Bump copyright year to 2002.
11801
11802 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11803
11804 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
11805 Zannoni and Eli Zaretskii.
11806
11807 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
11808
11809 * buildsym.c: Update copyright years.
11810 * c-typeprint.c: Likewise.
11811 * dwarf2read.c: Likewise.
11812 * f-typeprint.c: Likewise.
11813 * gdbtypes.c: Likewise.
11814 * gdbtypes.h: Likewise.
11815 * hp-symtab-read.c: Likewise.
11816 * hpread.c: Likewise.
11817 * mdebugread.c: Likewise.
11818 * p-typeprint.c: Likewise.
11819
11820 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11821
11822 * remote-sim.c (gdbsim_open): Simplify code testing the macro
11823 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
11824 byte-order selectable.
11825 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
11826 * arch-utils.c: Ditto.
11827 (set_endian): Ditto.
11828 (set_endian_from_file): Ditto.
11829 * gdbserver/low-sim.c (create_inferior): Ditto.
11830 * gdbarch.sh: Ditto.
11831 * gdbarch.h: Re-generate.
11832 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11833 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
11834 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
11835 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11836 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11837 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11838 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
11839 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
11840 macro definition.
11841 * config/mips/tm-wince.h: Remove #undef of macro
11842 TARGET_BYTE_ORDER_SELECTABLE.
11843 * config/sh/tm-wince.h: Ditto.
11844
11845 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
11846
11847 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
11848 member function fields. Add accessor macro
11849 TYPE_FN_FIELD_ARTIFICIAL.
11850 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
11851 * c-typeprint.c (c_type_print_base): Skip artificial member
11852 functions.
11853
11854 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
11855
11856 * f-typeprint.c: Delete unused function f_type_print_args.
11857 * p-typeprint.c: Delete unused function pascal_type_print_args.
11858
11859 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
11860
11861 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
11862 comment. Add ``artificial'' to ``union field_location''.
11863
11864 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
11865
11866 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
11867 * mdebugread.c (parse_symbol): Likewise.
11868 * stabsread.c (define_symbol): Likewise.
11869 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
11870 initializing TYPE_FIELD_BITPOS to n (obsolete).
11871 (hpread_doc_function_type): Likewise.
11872 * hpread.c (hpread_function_type): Likewise.
11873
11874 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11875
11876 * configure.in (host_makefile_frag): Only require a host makefile
11877 fragment when a native build.
11878 * configure: Re-generate.
11879
11880 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11881
11882 * doublest.h (floatformat_from_type): Declare.
11883 * doublest.c (floatformat_from_type): New function.
11884 (convert_typed_floating): Use.
11885
11886 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
11887 call to function floatformat_from_type.
11888
11889 * gdbarch.sh (IEEE_FLOAT): Delete.
11890 * gdbarch.h, gdbarch.c: Re-generate.
11891 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
11892 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
11893 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
11894 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
11895 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
11896 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
11897 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
11898 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
11899 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
11900 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
11901 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
11902 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
11903
11904 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
11905 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
11906 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
11907 * sh-tdep.c (sh_gdbarch_init): Ditto.
11908 * mips-tdep.c (mips_gdbarch_init): Ditto.
11909 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11910 * cris-tdep.c (cris_gdbarch_init): Ditto.
11911
11912 2002-01-20 Jiri Smid <smid@suse.cz>
11913
11914 * configure.host, configure.tgt: Support x86-64.
11915 * NEWS: Note new target x86-64.
11916
11917 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
11918 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
11919 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
11920 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
11921 x86-64-linux-nat.o): Fix dependencies.
11922
11923 2002-01-19 Andrew Cagney <ac131313@redhat.com>
11924
11925 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
11926 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
11927 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
11928 * config/sparc/xm-sun4os4.h: Delete file.
11929 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
11930
11931 2002-01-19 Andrew Cagney <ac131313@redhat.com>
11932
11933 * config/sparc/sparclynx.mh (XM_FILE): Delete.
11934 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
11935 * config/m68k/m68klynx.mh (XM_FILE): Delete.
11936 * config/i386/i386lynx.mh (XM_FILE): Delete.
11937 * config/rs6000/xm-rs6000ly.h: Delete file.
11938 * config/sparc/xm-sparclynx.h: Delete file.
11939 * config/m68k/xm-m68klynx.h: Delete file.
11940 * config/i386/xm-i386lynx.h: Delete file.
11941 * config/xm-lynx.h: Delete file.
11942 * config/djgpp/fnchange.lst: Update.
11943
11944 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11945
11946 * alpha-tdep.c (alpha_register_byte): New function.
11947 (alpha_register_raw_size): Ditto.
11948 (alpha_register_virtual_size): Ditto.
11949 (alpha_skip_prologue_internal): Renamed from
11950 alpha_skip_prologue.
11951 (alpha_skip_prologue): New version that calls
11952 alpha_skip_prologue_internal.
11953 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
11954 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
11955 second argument from alpha_skip_prologue.
11956 (REGISTER_BYTE): Use alpha_register_byte.
11957 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
11958 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
11959 (FRAMELESS_FUNCTION_INVOCATION): Use
11960 generic_frameless_function_invocation_not.
11961 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
11962 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
11963
11964 2002-01-19 Andrew Cagney <ac131313@redhat.com>
11965
11966 * config/mips/xm-news-mips.h: Delete file.
11967 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
11968
11969 * config/m88k/xm-m88k.h: Delete file.
11970 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
11971 * config/m88k/xm-delta88v4.h: Ditto.
11972 * config/m88k/xm-delta88.h: Ditto.
11973
11974 * config/alpha/xm-fbsd.h: Delete file.
11975 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
11976
11977 * config/sparc/xm-sparc.h: Delete file.
11978 * Makefile.in (xm-sun4os4.h): Delete dependency.
11979 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
11980 * config/sparc/xm-sun4os4.h: Ditto.
11981 * config/sparc/xm-linux.h: Ditto.
11982
11983 * config/i386/xm-windows.h: Delete file.
11984
11985 2002-01-19 Andrew Cagney <ac131313@redhat.com>
11986
11987 * utils.c: Include <sys/param.h> for MAXPATHLEN.
11988 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
11989
11990 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11991
11992 * alpha-tdep.c (alpha_call_dummy_words): New.
11993 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
11994 (CALL_DUMMY_P): Define.
11995 (CALL_DUMMY_WORDS): Define.
11996 (SIZEOF_CALL_DUMMY_WORDS): Define.
11997
11998 2002-01-19 Per Bothner <per@bothner.com>
11999
12000 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
12001 isn't NULL, which can happen with some gcj-3.x-produced code.
12002
12003 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
12004
12005 * alpha-tdep.c (alpha_register_virtual_type): New function.
12006 (alpha_init_frame_pc_first): Ditto.
12007 (alpha_fix_call_dummy): Ditto.
12008 (alpha_store_struct_return): Ditto.
12009 (alpha_extract_struct_value_address): Ditto.
12010 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
12011 alpha_register_virtual_type.
12012 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
12013 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
12014 alpha_extract_struct_value_address.
12015 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
12016 (INIT_FRAME_PC): Use init_frame_pc_noop.
12017 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
12018
12019 2002-01-19 Mark Kettenis <kettenis@gnu.org>
12020
12021 * i386gnu-nat.c: Include "i386-tdep.h".
12022 (fetch_fpregs): Simplify code dealing with uninitialized floating
12023 point states such that it doesn't require FP7_REGNUM.
12024
12025 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
12026
12027 * alpha-tdep.c (frame_extra_info): New.
12028 (alpha_find_saved_regs): Make static. Use
12029 frame->extra_info.
12030 (alpha_frame_init_saved_regs): New function.
12031 (alpha_frame_saved_pc): Use frame->extra_info.
12032 (temp_saved_regs): Don't declare as struct frame_saved_regs.
12033 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
12034 (init_extra_frame_info): Rename to...
12035 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
12036 (alpha_print_extra_frame_info): New function.
12037 (alpha_frame_locals_address): Ditto.
12038 (alpha_frame_args_address): Ditto.
12039 (alpha_pop_frame): Use frame->extra_info.
12040 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
12041 alpha_frame_args_address.
12042 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
12043 (alpha_find_saved_regs): Remove prototype.
12044 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
12045 (EXTRA_FRAME_INFO): Remove.
12046 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
12047 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
12048
12049 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
12050
12051 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
12052 (alpha_cannot_fetch_register): Ditto.
12053 (alpha_cannot_store_register): Ditto.
12054 (alpha_register_convertible): Ditto.
12055 (alpha_use_struct_convention): Ditto.
12056 * config/alpha/tm-alpha.h: Update copyright years.
12057 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
12058 (INNER_THAN): Use core_addr_lessthan.
12059 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
12060 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
12061 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
12062 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
12063 (FRAME_CHAIN): Remove unnecessary cast.
12064
12065 2002-01-18 Andrew Cagney <ac131313@redhat.com>
12066
12067 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
12068 obsolete.
12069
12070 2002-01-18 Andrew Cagney <ac131313@redhat.com>
12071
12072 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
12073 * monitor.c, remote-array.c, remote-bug.c: Ditto.
12074 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
12075 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
12076 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
12077 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
12078 * x86-64-linux-nat.c: Ditto.
12079
12080 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
12081
12082 * alpha-tdep.c (alpha_register_name): New function.
12083 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
12084 (REGISTER_NAME): Define.
12085
12086 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
12087
12088 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
12089
12090 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
12091
12092 * alpha-tdep.c: Update copyright years.
12093 (alpha_next_pc): New function.
12094 (alpha_software_single_step): Ditto.
12095 * config/alpha/tm-alpha.h: Add prototype for
12096 alpha_software_single_step.
12097
12098 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
12099
12100 * alphabsd-nat.c: Update copyright years.
12101 (fill_gregset): Use regcache_collect.
12102 (fill_fpregset): Likewise.
12103 (fetch_inferior_registers): Only fetch integer registers
12104 if requested to do so.
12105 (store_inferior_registers): Only store integer registers
12106 if requested to do so.
12107
12108 2002-01-17 Andrew Cagney <ac131313@redhat.com>
12109
12110 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
12111 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
12112 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
12113 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
12114 * config/alpha/fbsd.mh (XDEPFILES): Delete.
12115 * config/arm/linux.mh (XDEPFILES): Delete.
12116 * config/arm/nbsd.mh (XDEPFILES): Delete.
12117 * config/i386/i386dgux.mh (XDEPFILES): Delete.
12118 * config/i386/i386sol2.mh (XDEPFILES): Delete.
12119 * config/i386/i386m3.mh (XDEPFILES): Delete.
12120 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
12121 * config/i386/i386gnu.mh (XDEPFILES): Delete.
12122 * config/i386/fbsd.mh (XDEPFILES): Delete.
12123 * config/i386/i386bsd.mh (XDEPFILES): Delete.
12124 * config/i386/i386sco5.mh (XDEPFILES): Delete.
12125 * config/i386/i386v4.mh (XDEPFILES): Delete.
12126 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
12127 * config/i386/i386sco4.mh (XDEPFILES): Delete.
12128 * config/i386/i386aix.mh (XDEPFILES): Delete.
12129 * config/i386/go32.mh (XDEPFILES): Delete.
12130 * config/i386/cygwin.mh (XDEPFILES): Delete.
12131 * config/i386/i386lynx.mh (XDEPFILES): Delete.
12132 * config/i386/i386mach.mh (XDEPFILES): Delete.
12133 * config/i386/i386v32.mh (XDEPFILES): Delete.
12134 * config/i386/linux.mh (XDEPFILES): Delete.
12135 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
12136 * config/i386/ncr3000.mh (XDEPFILES): Delete.
12137 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
12138 * config/i386/i386sco.mh (XDEPFILES): Delete.
12139 * config/i386/i386v.mh (XDEPFILES): Delete.
12140 * config/i386/nbsd.mh (XDEPFILES): Delete.
12141 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
12142 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
12143 * config/i386/symmetry.mh (XDEPFILES): Delete.
12144 * config/i386/obsd.mh (XDEPFILES): Delete.
12145 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
12146 * config/ia64/linux.mh (XDEPFILES): Delete.
12147 * config/ia64/aix.mh (XDEPFILES): Delete.
12148 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
12149 * config/m68k/dpx2.mh (XDEPFILES): Delete.
12150 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
12151 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
12152 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
12153 * config/m68k/linux.mh (XDEPFILES): Delete.
12154 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
12155 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
12156 * config/m68k/nbsd.mh (XDEPFILES): Delete.
12157 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
12158 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
12159 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
12160 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
12161 * config/m88k/delta88.mh (XDEPFILES): Delete.
12162 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
12163 * config/m88k/m88k.mh (XDEPFILES): Delete.
12164 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
12165 * config/mips/linux.mh (XDEPFILES): Delete.
12166 * config/mips/irix6.mh (XDEPFILES): Delete.
12167 * config/mips/irix5.mh (XDEPFILES): Delete.
12168 * config/mips/irix4.mh (XDEPFILES): Delete.
12169 * config/mips/irix3.mh (XDEPFILES): Delete.
12170 * config/mips/decstation.mh (XDEPFILES): Delete.
12171 * config/mips/mipsm3.mh (XDEPFILES): Delete.
12172 (NATDEPFILES): Move core-aout.o to here.
12173 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
12174 * config/pa/hpux1020.mh (XDEPFILES): Delete.
12175 * config/pa/hppabsd.mh (XDEPFILES): Delete.
12176 * config/pa/hppahpux.mh (XDEPFILES): Delete.
12177 * config/pa/hpux11w.mh (XDEPFILES): Delete.
12178 * config/pa/hppaosf.mh (XDEPFILES): Delete.
12179 * config/pa/hpux11.mh (XDEPFILES): Delete.
12180 * config/powerpc/aix.mh (XDEPFILES): Delete.
12181 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
12182 * config/powerpc/linux.mh (XDEPFILES): Delete.
12183 * config/romp/rtbsd.mh: Rename XDEPFILES.
12184 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
12185 * config/rs6000/aix4.mh (XDEPFILES): Delete.
12186 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
12187 * config/s390/s390.mh (XDEPFILES): Delete.
12188 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
12189 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
12190 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
12191 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
12192 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
12193 * config/sparc/nbsd.mh (XDEPFILES): Delete.
12194 * config/sparc/linux.mh (XDEPFILES): Delete.
12195 * config/vax/vaxult.mh (XDEPFILES): Delete.
12196 * config/vax/vaxult2.mh (XDEPFILES): Delete.
12197 * Makefile.in (DEPFILES): Remove XDEPFILES.
12198
12199 2002-01-17 Andrew Cagney <ac131313@redhat.com>
12200
12201 * utils.c (internal_verror): Fix comments, default is yes not no.
12202 Update queries to match. Default to quit and dump core.
12203
12204 2002-01-17 Andrew Cagney <ac131313@redhat.com>
12205
12206 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
12207 copyright.
12208 * defs.h, event-top.c, gdbcmd.h: Ditto.
12209 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
12210 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
12211 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
12212 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
12213 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
12214 * mi/mi-main.c:Ditto.
12215
12216 * stack.c, symfile.c: Update copyright.
12217
12218 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
12219
12220 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
12221 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
12222 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
12223 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
12224
12225 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
12226
12227 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
12228 * gdbserver/low-lynx.c (myattach): Likewise.
12229 * gdbserver/low-nbsd.c (myattach): Likewise.
12230 * gdbserver/low-sim.c (myattach): Likewise.
12231 * gdbserver/low-sparc.c (myattach): Likewise.
12232 * gdbserver/low-sun3.c (myattach): Likewise.
12233
12234 * gdbserver/low-linux.c (myattach): New function.
12235
12236 * gdbserver/server.c (attach_inferior): New function.
12237 (main): Handle "--attach".
12238
12239 2002-01-16 Andrew Cagney <ac131313@redhat.com>
12240
12241 * MAINTAINERS (language support): Daniel Jacobwitz is C++
12242 maintainer.
12243
12244 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
12245
12246 * c-typeprint.c (is_type_conversion_operator): Add additional
12247 check for non-conversion operators.
12248
12249 2002-01-15 Michael Snyder <msnyder@redhat.com>
12250
12251 * linux-proc.c: Add "info proc" command, a la procfs.c.
12252 (read_mapping): New function, abstract and re-use code.
12253 (linux_find_memory_regions): Use new func read_mapping.
12254 (linux_info_proc_cmd): New function, implement "info proc".
12255 (_initialize_linux_proc): Add new command "info proc".
12256
12257 2002-01-15 Michael Snyder <msnyder@redhat.com>
12258
12259 * symfile.c (generic_load): Use bfd_map_over_sections method
12260 instead of manipulating bfd structure members directly.
12261 (add_section_size_callback): New function, bfd sections callback
12262 used by generic_load.
12263 (load_sections_callback): New function, bfd sections callback
12264 used by generic_load.
12265
12266 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
12267
12268 [Based on work by Jim Blandy]
12269 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
12270 (builtin_type_vec128): Export.
12271 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
12272 types.
12273 (builtin_type_vec128): New builtin type for 128 bit vector
12274 registers.
12275 (build_gdbtypes): Initialize builtin_type_v16qi and
12276 builtin_type_v8hi. Create the vec128 register builtin type
12277 structure.
12278 (build_builtin_type_vec128): New function.
12279 (_initialize_gdbtypes): Register builtin_type_v16qi and
12280 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
12281 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
12282 AltiVec register to new builtin type.
12283
12284 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
12285
12286 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
12287 to make_cv_type.
12288
12289 2002-01-14 Andrew Cagney <ac131313@redhat.com>
12290
12291 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
12292 CLEAN_UP_REGISTER_VALUE.
12293 * regcache.c (supply_register): Update only call.
12294
12295 2002-01-14 Andrew Cagney <ac131313@redhat.com>
12296
12297 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
12298 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
12299 a29k-*-vxworks* targets as obsolete.
12300
12301 2002-01-14 Michael Snyder <msnyder@redhat.com>
12302
12303 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
12304 until we can resolve portability issues.
12305 * gregset.h: Remove references to fpxregs.
12306 * gcore.c (gcore_command): Initialize note_sec to NULL.
12307
12308 2002-01-13 Andrew Cagney <ac131313@redhat.com>
12309
12310 * signals.c (target_signal_to_name): Rewrite. Only use
12311 signals[].name when in bounds and non-NULL.
12312
12313 2002-01-13 Andrew Cagney <ac131313@redhat.com>
12314
12315 From Petr Ledvina <ledvinap@kae.zcu.cz>:
12316 * signals.c (target_signal_to_name): Verify that SIG is within the
12317 bounds of the signals array.
12318
12319 2002-01-13 Andrew Cagney <ac131313@redhat.com>
12320
12321 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
12322
12323 2002-01-13 Keith Seitz <keiths@redhat.com>
12324
12325 * stack.c (print_frame_info_base): Print the frame's pc
12326 only if when print_frame_info_listing_hook is not defined.
12327
12328 2002-01-13 Keith Seitz <keiths@redhat.com>
12329
12330 * varobj.c (varobj_set_value): Make sure that there were no
12331 errors evaluating the object before attempting to set its
12332 value.
12333 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
12334 so this offset adjustment is no longer necessary.
12335 (create_child): Don't set the error flag if the child is
12336 a CPLUS_FAKE_CHILD.
12337 (value_of_child): If value_fetch_lazy fails, return NULL
12338 so that callers will be notified that an error occurred.
12339 (c_value_of_variable): Delay check of variable's validity
12340 until later. We actually want all structs and unions to have
12341 the value "{...}".
12342 Do not return "???" for variables which could not be evaluated.
12343 This error condition must be returned to the caller so that it
12344 can get the error condition from gdb.
12345 (cplus_name_of_child): Adjust index for vptr before figuring
12346 out the name of the child.
12347 (cplus_value_of_child): If a child's (real) parent is not valid,
12348 don't even bother trying to give a value for it. Just return
12349 an error. Change all instances in this function.
12350 (cplus_type_of_child): If our parent is one of the "fake"
12351 parents, we need to get at the type of the real parent, and
12352 derive the child's true type using this information.
12353
12354 2002-01-13 Andrew Cagney <ac131313@redhat.com>
12355
12356 From 2002-01-09 John Marshall <johnm@falch.net>:
12357 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
12358 sources.redhat.com, and tweak some related URLs which had
12359 suffered from linkrot.
12360
12361 2002-01-13 Andrew Cagney <ac131313@redhat.com>
12362
12363 From Jeff law:
12364 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
12365 structures passed in registers.
12366
12367 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
12368
12369 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
12370 white space which prevented compilation. Reported by DSK
12371 <dsk@student.unsw.edu.au>.
12372
12373 2002-01-11 Michael Snyder <msnyder@redhat.com>
12374
12375 * symfile.c (build_section_addr_info_from_section_tab):
12376 Use bfd access method instead of manipulating bfd directly.
12377 (syms_from_objfile): Ditto.
12378 (simple_overlay_update_1): Ditto.
12379 (simple_overlay_update): Ditto.
12380 (generic_load): Ditto.
12381 (overlay_unmapped_address): FIXME comment, bfd access methods.
12382 (sections_overlap): FIXME comment, bfd access methods.
12383 (pc_in_mapped_range): FIXME comment, bfd access methods.
12384 (pc_in_unmapped_range): FIXME comment, bfd access methods.
12385 (section_is_mapped): FIXME comment, bfd access methods.
12386 (section_is_overlay): FIXME comment, bfd access methods.
12387
12388 * symfile.c (generic_load): Whitespace and long line cleanups.
12389 Remove duplicate variable, change several local variables to
12390 more appropriate data types.
12391 (print_transfer_performance): Use %lu instead of %ld for ulongs.
12392
12393 2002-01-12 Andrew Cagney <ac131313@redhat.com>
12394
12395 From Peter Schauer:
12396 * language.c (longest_local_hex_string_custom): Use phex_nz to
12397 convert NUM to a hex string.
12398
12399 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
12400
12401 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
12402 the function.
12403 Update Copyright year.
12404
12405 2002-01-12 Andrew Cagney <ac131313@redhat.com>
12406
12407 * language.c (longest_raw_hex_string): Delete unused function.
12408
12409 2002-01-11 Petr Sorfa <petrs@caldera.com>
12410
12411 * MAINTAINERS (write-after-approval): Add myself.
12412 * dwarf2read.c (read_tag_string_type): Handling of
12413 DW_AT_byte_size.
12414 (read_tag_string_type): FORTRAN fix to prevent propagation of
12415 first string size.
12416 (set_cu_language): Handling of DW_LANG_Fortran95
12417
12418 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
12419
12420 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
12421 GETPID(inferior_ptid).
12422 (store_inferior_registers): Likewise.
12423
12424 2002-01-10 Jason Merrill <jason@redhat.com>
12425
12426 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
12427 Fix DW_OP_minus.
12428
12429 2002-01-10 Andrew Cagney <ac131313@redhat.com>
12430
12431 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
12432 and bfd/elf32-sh-nbsd.c.
12433
12434 2002-01-10 Michael Snyder <msnyder@redhat.com>
12435
12436 * NEWS: Mention --pid and corefile/proc-id behavior change.
12437
12438 * Makefile.in: Add rules for gcore.o and linux-proc.o.
12439 * gcore.c: Include cli/cli-decode.h instead of command.h.
12440
12441 * main.c (captured_main): Add new command line option "--pid".
12442 If the second command line argument (following the symbol-file)
12443 begins with a digit, try to attach to it before trying to open
12444 it as a corefile.
12445 (print_gdb_help): Document the "--pid" argument.
12446
12447 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
12448
12449 * completer.c (command_completer): New function.
12450
12451 * completer.h <command_completer>: Add prototype.
12452
12453 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
12454 completer for the "help" command.
12455
12456 2002-01-09 Jason Merrill <jason@redhat.com>
12457
12458 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
12459
12460 2002-01-09 Michael Snyder <msnyder@redhat.com>
12461
12462 * i386-linux-nat.c (fill_fpxregset): Make global.
12463 (store_fpxregset): Ditto.
12464
12465 * gregset.h (gdb_fpxregset_t): Define.
12466 (supply_fpxregset): Prototype.
12467 (fill_fpxregset): Prototype.
12468
12469 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
12470
12471 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
12472
12473 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
12474 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
12475 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
12476
12477 2002-01-09 Andrew Cagney <ac131313@redhat.com>
12478
12479 * MAINTAINERS: Update target maintainer rules so that any
12480 Maintainer can approve a tested patch for a maintenance-only
12481 target.
12482
12483 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
12484
12485 * MAINTAINERS (write-after-approval): Add myself.
12486
12487 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
12488 IN_SIGTRAMP.
12489
12490 2002-01-08 Michael Snyder <msnyder@redhat.com>
12491
12492 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
12493 real name of the executable, rather than the /proc name.
12494
12495 2002-01-03 Michael Snyder <msnyder@redhat.com>
12496
12497 Implement a "generate-core-file" command in gdb, save target state.
12498 * gcore.c: New file. Implement new command 'generate-core-file'.
12499 Save a corefile image of the current state of the inferior.
12500 * linux-proc.c: Add linux-specific code for saving corefiles.
12501 * target.h (struct target_ops): Add new target vectors for saving
12502 corefiles; to_find_memory_regions and to_make_corefile_notes.
12503 (target_find_memory_regions): New macro.
12504 (target_make_corefile_notes): New macro.
12505 * target.c (update_current_target): Inherit new target methods.
12506 (dummy_find_memory_regions): New place-holder method.
12507 (dummy_make_corefile_notes): New place-holder method.
12508 (init_dummy_target): Initialize new dummy target vectors.
12509 * exec.c (exec_set_find_memory_regions): New function.
12510 Allow the exec_ops vector for memory regions to be taken over.
12511 (exec_make_note_section): New function, target vector method.
12512 * defs.h (exec_set_find_memory_regions): Export prototype.
12513 * procfs.c (proc_find_memory_regions): New function, corefile method.
12514 (procfs_make_note_section): New function, corefile method.
12515 (init_procfs_ops): Set new target vector pointers.
12516 (find_memory_regions_callback): New function.
12517 (procfs_do_thread_registers): New function.
12518 (procfs_corefile_thread_callback): New function.
12519 * sol-thread.c (sol_find_memory_regions): New function.
12520 (sol_make_note_section): New function.
12521 (init_sol_thread_ops): Initialize new target vectors.
12522 * inftarg.c (inftarg_set_find_memory_regions): New function.
12523 Allow to_find_memory_regions vector to be taken over.
12524 (inftarg_set_make_corefile_notes): New function.
12525 Allow to_make_corefile_notes vector to be taken over.
12526 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
12527 interface layer if not target_has_execution (may be a corefile).
12528 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
12529 * config/sparc/sun4sol2.mh: Ditto.
12530 * config/alpha/alpha-linux.mh: Ditto.
12531 * config/arm/linux.mh: Ditto.
12532 * config/i386/x86-64linux.mh: Ditto.
12533 * config/ia64/linux.mh: Ditto.
12534 * config/m68k/linux.mh: Ditto.
12535 * config/mips/linux.mh: Ditto.
12536 * config/powerpc/linux.mh: Ditto.
12537 * config/sparc/linux.mh: Ditto.
12538
12539 2002-01-07 Michael Snyder <msnyder@redhat.com>
12540
12541 * arm-linux-nat.c: Remove references to regcache.c internal data
12542 (registers[] and register_valid[]).
12543
12544 2002-01-07 Michael Snyder <msnyder@redhat.com>
12545
12546 * linux-proc.c: New file. Implement child_pid_to_exec_file,
12547 so that attaching to a pid will automatically read the process's
12548 symbol file and shlibs.
12549 * Makefile.in: Add rule for linux-proc.o.
12550 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
12551 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
12552 * config/arm/linux.mh: Ditto.
12553 * config/i386/linux.mh: Ditto.
12554 * config/i386/x86-64linux.mh: Ditto.
12555 * config/ia64/linux.mh: Ditto.
12556 * config/m68k/linux.mh: Ditto.
12557 * config/mips/linux.mh: Ditto.
12558 * config/powerpc/linux.mh: Ditto.
12559 * config/sparc/linux.mh: Ditto.
12560
12561 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
12562
12563 * win32-nat.c: Add i386-tdep.h dependency.
12564
12565 2002-01-07 Michael Snyder <msnyder@redhat.com>
12566
12567 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
12568 instead of bfd_get_arch_size. Don't bail out just because
12569 there's no exec_bfd.
12570
12571 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
12572 * p-valprint.c (pascal_object_print_value): Ditto.
12573 * somread.c (som_symtab_read): Ditto.
12574 * symfile.c (simple_free_overlay_region_table): Ditto.
12575 * valops.c (value_assign): Ditto.
12576
12577 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
12578 use tilde_expand and strerror for opening save-tracepoints file.
12579
12580 * thread-db.c (thread_db_new_objfile): Indendation fix.
12581
12582 * infptrace.c (GDB_MAX_ALLOCA): New define.
12583 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
12584 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
12585 can be overridden with whatever value is appropriate to the host).
12586 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
12587 alloca to allocate potentially large buffer.
12588 * rs6000-nat.c (child_xfer_memory): Ditto.
12589 * symm-nat.c (child_xfer_memory): Ditto.
12590 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
12591
12592 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
12593
12594 From Nick Clifton <nickc@redhat.com>
12595 * d10v-tdep.c: Set STACK_START to 0x200bffe.
12596
12597 2002-01-07 Michael Snyder <msnyder@redhat.com>
12598
12599 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
12600 Don't use exec_bfd if it's NULL.
12601
12602 2002-01-06 Mark Kettenis <kettenis@gnu.org>
12603
12604 * valops.c (value_arg_coerce): Fix formatting.
12605
12606 2002-01-06 Andrew Cagney <ac131313@redhat.com>
12607
12608 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
12609 * gnu-nat.c: Ditto.
12610
12611 2002-01-06 Andrew Cagney <ac131313@redhat.com>
12612
12613 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
12614 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
12615 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
12616 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
12617 z8k-coff have not been multi-arched. Update z8k-coff build
12618 status.
12619
12620 2002-01-06 Andrew Cagney <ac131313@redhat.com>
12621
12622 * MAINTAINERS: Mark a29k target as obsolete.
12623 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
12624 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
12625 comments.
12626 * NEWS: Note that a29k targets are obsolete.
12627 * a29k-tdep.c: Mark as obsolete.
12628 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
12629 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
12630 a29k-*-vxworks* targets as obsolete.
12631 * remote-adapt.c: Obsolete.
12632 * remote-eb.c: Obsolete.
12633 * remote-mm.c: Obsolete.
12634 * remote-udi.c: Obsolete.
12635 * config/a29k/a29k-udi.mt: Obsolete.
12636 * config/a29k/a29k.mt: Obsolete.
12637 * config/a29k/tm-a29k.h: Obsolete.
12638 * config/a29k/tm-vx29k.h: Obsolete.
12639 * config/a29k/vx29k.mt: Obsolete.
12640
12641 2002-01-05 Andrew Cagney <ac131313@redhat.com>
12642
12643 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
12644 with BFD_ENDIAN_BIG.
12645
12646 2002-01-05 Andrew Cagney <ac131313@redhat.com>
12647
12648 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
12649 * configure, config.in: Re-generate.
12650 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
12651 * defs.h: Do not include <endian.h>.
12652
12653 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
12654
12655 * acconfig.h (HAVE_PT_GETXMMREGS): New.
12656 * config.in: Regenerate.
12657 * configure.in: Update copyright years.
12658 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
12659 * configure: Regenerate.
12660 * i386bsd-nat.c: Update copyright years.
12661 (fill_gregset): Use regcache_collect.
12662 (fetch_inferior_registers): Only fetch integer registers
12663 if requested to do so. Add support for XMM registers
12664 using PT_GETXMMREGS.
12665 (store_inferior_registers): Only store integer registers
12666 if requested to do so. Add support for XMM registers
12667 using PT_SETXMMREGS.
12668 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
12669 (store_inferior_registers): Remove.
12670 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
12671 (fetch_elfcore_registers): New function.
12672 (i386nbsd_elfcore_fns): New.
12673 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
12674 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
12675 i386bsd-nat.o.
12676 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
12677 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
12678 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
12679 * config/i386/tm-nbsd.h: Update copyright years.
12680 (HAVE_SSE_REGS): Define.
12681 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
12682 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
12683 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
12684 (SIGCONTEXT_PC_OFFSET): Remove.
12685 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
12686
12687 2002-01-05 Andrew Cagney <ac131313@redhat.com>
12688
12689 * configure.tgt: Remove powerpc-*-macos* target.
12690 * config/m68k/xm-mpw.h: Delete file.
12691 * config/xm-mpw.h: Delete file.
12692 * ser-mac.c: Delete file.
12693 * mpw-make.sed: Delete file.
12694 * mpw-config.in: Delete file.
12695 * mac-xdep.c: Delete file.
12696 * mac-gdb.r: Delete file.
12697 * mac-defs.h: Delete file.
12698 * mac-nat.c: Delete file.
12699 * config/powerpc/macos.mh: Delete file.
12700 * config/powerpc/macos.mt: Delete file.
12701 * config/powerpc/nm-macos.h: Delete file.
12702 * config/powerpc/tm-macos.h: Delete file.
12703 * source.c (openp, open_source_file): Remove obsolete code.
12704 * top.c (gdb_readline): Ditto.
12705 * utils.c (query): Ditto.
12706 * event-top.c (display_gdb_prompt): Ditto.
12707 * Makefile.in (ser-mac.o): Delete obsolete target.
12708 * NEWS: Update.
12709
12710 2002-01-04 Andrew Cagney <ac131313@redhat.com>
12711
12712 * defs.h (BIG_ENDIAN): Delete macro definition.
12713 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
12714 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
12715 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
12716 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
12717 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
12718 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
12719 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
12720 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
12721 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
12722 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
12723 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
12724 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
12725 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
12726 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
12727 * gdbarch.c: Re-generate.
12728
12729 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
12730
12731 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
12732 for core files.
12733
12734 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
12735
12736 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
12737
12738 2002-01-04 Andrew Cagney <ac131313@redhat.com>
12739
12740 * value.h (value_ptr): Delete typedef.
12741
12742 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
12743
12744 * i386nbsd-nat.c: Update copyright years.
12745 Include i386-tdep.h.
12746
12747 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
12748
12749 * stabsread.c: Update copyright years.
12750
12751 From Debashis Mahata <debashis.mahata@wipro.com>:
12752 (read_struct_fields): Deal with Sun C compiler erroneous stab
12753 output for structs and unions.
12754 Fix PR gdb/269.
12755
12756 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
12757
12758 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
12759 prototype.
12760
12761 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
12762
12763 * cp-abi.c: Fix whitespace.
12764 (baseclass_offset): New wrapper function.
12765 * cp-abi.h (baseclass_offset): Add prototype.
12766 (struct cp_abi_ops): Add baseclass_offset pointer.
12767
12768 * valops.c (vb_match): Move to...
12769 * gnu-v2-abi.c (vb_match): here.
12770 * valops.c (baseclass_offset): Move to...
12771 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
12772
12773 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
12774
12775 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
12776 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
12777 * hpacc-abi.c (init_hpacc_ops): Likewise.
12778
12779 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
12780
12781 * valops.c (find_overload_match): Accept obj as a
12782 reference parameter. Update it before returning.
12783 * value.h (find_overload_match): Update prototype.
12784 * eval.c (evaluate_subexp_standard): Pass object to
12785 find_overload_match by reference.
12786
12787 2002-01-03 Andrew Cagney <ac131313@redhat.com>
12788
12789 * valarith.c: Replace value_ptr with struct value pointer. Remove
12790 register attribute from value declarations.
12791 * valops.c: Ditto.
12792 * value.h: Ditto.
12793 * scm-lang.c (scm_lookup_name): Ditto.
12794
12795 2002-01-03 Michael Snyder <msnyder@redhat.com>
12796
12797 Abstract the functionality of iterating over mapped memory
12798 regions into a general purpose iterator function.
12799 * procfs.c (iterate_over_mappings): New function, general purpose
12800 iterator for memory sections.
12801 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
12802 (solib_mappings_callback): New function, callback for above.
12803 (info_proc_mappings): Reimpliment using iterate_over_mappings.
12804 (info_mappings_callback): New function, callback for above.
12805
12806 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
12807
12808 2002-01-01 Mark Kettenis <kettenis@gnu.org>
12809
12810 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
12811 * i386-tdep.c: Include "elf-bfd.h".
12812 (process_note_abi_tag_sections): New function.
12813 (i386_gdbarch_init): Add code to recognize various OS/ABI
12814 combinations.
12815
12816 * maint.c (_initialize_maint_cmds): Add missing \ in
12817 string-literal.
12818
12819 For older changes see ChangeLog-2001
12820 \f
12821 Local Variables:
12822 mode: change-log
12823 left-margin: 8
12824 fill-column: 74
12825 version-control: never
12826 End: