2002-11-09 Andrew Cagney <ac131313@redhat.com>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2002-11-09 Andrew Cagney <ac131313@redhat.com>
2
3 * frame.c (get_prev_frame): Cleanups. Eliminate redundant tests
4 for a NULL NEXT_FRAME. Simplify fromleaf initialization. Add
5 more comments. Zap dead code.
6
7 2002-11-09 Mark Kettenis <kettenis@gnu.org>
8
9 * infcmd.c (print_vector_info, print_float_info): Move code that
10 checks whether the target has any registers and whether there is a
11 selected frame up, such that it is also used if a target provides
12 multi-arch definitions of these functions.
13
14 2002-11-08 Andrew Cagney <ac131313@redhat.com>
15
16 * Makefile.in (DESTDIR): Define.
17 (install-only, install-gdbtk, uninstall-gdbtk): Add $(DESTDIR)
18 prefix.
19
20 * config/djgpp/fnchange.lst: 8.3 proof i386obsd-nat.c and
21 i386obsd-tdep.c. Rename to "gdb.cxx", paths containing "gdb.c++".
22
23 2002-11-08 Andrew Cagney <ac131313@redhat.com>
24
25 * i386-linux-tdep.c: Include "reggroups.h".
26 (i386_linux_register_reggroup_p): New function.
27 (i386_linux_init_abi): Set register_reggroup_p to
28 i386_linux_register_reggroup_p.
29 * i386-tdep.h (i386_register_reggroup_p): Declare.
30 * i386-tdep.c: Include "reggroups.h".
31 (i386_init_reggroups): New function.
32 (i386_add_reggroups): New function.
33 (i386_register_reggroup_p): New function.
34 (i386_sse_reggroup, i386_mmx_reggroup): New variables.
35 (_initialize_i386_tdep): Call i386_init_reggroups.
36 (i386_gdbarch_init): Set register_reggroup_p and add in the i386
37 specific reggroups.
38
39 2002-11-09 Mark Kettenis <kettenis@gnu.org>
40
41 * infptrace.c (child_xfer_memory): Make use of the new PT_IO
42 request that's available in *BSD.
43
44 * i386-tdep.h (IS_FPU_CTRL_REGNUM): Remove.
45
46 * i387-tdep.c (i387_fill_fxsave): Use FOOFF_REGNUM instead of
47 FDOFF_REGNUM.
48
49 2002-11-08 Andrew Cagney <ac131313@redhat.com>
50
51 * frame.c (set_unwind_by_pc): Use dummy_frame_register_unwind.
52 * dummy-frame.c (find_dummy_frame): Rename
53 generic_find_dummy_frame, make static. Return the dummy frame
54 instead of the regcache.
55 (generic_find_dummy_frame): Re-implement using find_dummy_frame,
56 (cached_find_dummy_frame): New function. Use find_dummy_frame.
57 (dummy_frame_register_unwind): Rename
58 generic_call_dummy_register_unwind. Use cached_find_dummy_frame.
59 * dummy-frame.h (dummy_frame_register_unwind): Rename
60 generic_call_dummy_register_unwind.
61
62 2002-11-08 Mark Kettenis <kettenis@gnu.org>
63
64 * config/i386/tm-i386v42mp.h: Remove file. Move its contents,
65 except the inclusion of "i386/tm-i386.h", to...
66 * config/i386/nm-i386v42mp.h: ...here.
67 * config/i386/i386v42mp.mt (TM_FILE): Set to tm-i386.h.
68
69 2002-11-08 Andrew Cagney <ac131313@redhat.com>
70
71 * Makefile.in (frame.o): Update dependencies.
72 * blockframe.c (current_frame, frame_obstack_alloc)
73 (frame_saved_regs_zalloc, get_current_frame)
74 (set_current_frame, create_new_frame)
75 (set_unwind_by_pc, get_next_frame)
76 (flush_cached_frames, reinit_frame_cache)
77 (frame_saved_regs_register_unwind)
78 (deprecated_generic_get_saved_register)
79 (get_prev_frame, get_frame_pc, get_frame_saved_regs)
80 (_initialize_blockframe): Move frame code from here...
81 * frame.c: ...to here. Include "gdb_obstack.h", "gdbcore.h",
82 "annotate.h" and "dummy-frame.h".
83 (_initialize_frame): New function.
84
85 2002-11-08 Jim Blandy <jimb@redhat.com>
86
87 * dwarf2read.c (read_func_scope): Restore list_in_scope properly
88 when we finish a function a context.
89 * buildsym.h (outermost_context_p): New macro.
90 (Bug analyzed by David Edelsohn.)
91
92 2002-11-08 Andrew Cagney <ac131313@redhat.com>
93
94 * blockframe.c: Include "dummy-frame.h".
95 (struct dummy_frame, dummy_frame_stack)
96 (generic_find_dummy_frame, deprecated_generic_find_dummy_frame)
97 (generic_pc_in_call_dummy, deprecated_read_register_dummy)
98 (generic_push_dummy_frame, generic_save_dummy_frame_tos)
99 (generic_save_call_dummy_addr, generic_pop_current_frame)
100 (generic_pop_dummy_frame, generic_fix_call_dummy)
101 (generic_fix_call_dummy, generic_call_dummy_register_unwind): Move
102 dummy frame code from here...
103 * dummy-frame.c: ...to here. New file.
104 * dummy-frame.h: New file.
105 (generic_call_dummy_register_unwind): Declare.
106 (generic_find_dummy_frame): Declare.
107 * Makefile.in (SFILES): Add dummy-frame.c.
108 (dummy-frame.o): Specify dependencies.
109 (dummy_frame_h): Define.
110 (COMMON_OBS): Add dummy-frame.o.
111 (blockframe.o): Update dependencies.
112
113 2002-11-08 Jim Blandy <jimb@redhat.com>
114
115 * dwarf2read.c (read_func_scope): Restore local_symbols and
116 param_symbols after we finish the function context. (Based on a
117 patch from David Edelsohn.)
118
119 2002-11-08 David Carlton <carlton@math.stanford.edu>
120
121 * linespec.c (symbol_found): New function.
122 (minsym_found): New function.
123 (decode_line_1): Separate out some code into separate functions.
124
125 2002-11-08 Joel Brobecker <brobecker@gnat.com>
126
127 * i386-tdep.c (i386_frameless_signal_p): Make non static for
128 the benefit of the interix target.
129 * i386-tdep.h (i386_frameless_signal_p): Declare.
130
131 2002-11-08 Andrew Cagney <ac131313@redhat.com>
132
133 * i386-tdep.h (i386_linux_orig_eax_regnum_p): Delete stray
134 declaration that snuck in from change below.
135
136 2002-11-06 Andrew Cagney <cagney@redhat.com>
137
138 * i386-tdep.c (i386_mmx_regnum_p): Rename mmx_regnum_p. Update
139 all callers.
140 (i386_fp_regnum_p): New function. Use instead of FP_REGNUM_P.
141 (i386_fpc_regnum_p): New function. Use instead of FPC_REGNUM_P.
142 (i386_sse_regnum_p): New function. Use instead of SSE_REGNUM_P.
143 (i386_mxcsr_regnum_p): new function. Use instead of
144 MXCSR_REGNUM_P.
145 * i386-tdep.h (SSE_REGNUM_P): Delete macro.
146 (i386_sse_regnum_p): Declare.
147 (i386_mxcsr_regnum_p): Declare.
148 (FP_REGNUM_P, FPC_REGNUM_P): Delete macros.
149 (i386_fp_regnum_p, i386_fpc_regnum_p): Declare.
150 (IS_FP_REGNUM): Update definition.
151 (IS_FPU_CTRL_REGNUM): Update definition..
152 (IS_SSE_REGNUM): Update definition..
153 * i386v-nat.c (register_u_addr): Update.
154 * go32-nat.c (fetch_register): Update.
155 (store_register): Update.
156
157 2002-11-07 Joel Brobecker <brobecker@gnat.com>
158
159 Preparation work to convert the hppa targets to multiarch partial.
160
161 * hppa-tdep.c: Add new functions replacing macro bodies from
162 config/pa/tm-hppa.h. These function will be used to initialize
163 the gdbarch structure. Import some comments from tm-hppa.h,
164 and place them where appropriate, to avoid loosing them when
165 we cleanup this file.
166 (hppa_reg_struct_has_addr): New function.
167 (hppa_inner_than): New function.
168 (hppa_stack_align): New function.
169 (hppa_pc_requires_run_before_use): New function.
170 (hppa_instruction_nullified): New function.
171 (hppa_register_byte): New function.
172 (hppa_register_virtual_type): New function.
173 (hppa_store_struct_return): New function.
174 (hppa_cannot_store_register): New function.
175 (hppa_frame_args_address): New function.
176 (hppa_frame_locals_address): New function.
177 (hppa_smash_text_address): New function.
178 (hppa_coerce_float_to_double): New function. Requires the inclusion
179 of "language.h".
180
181 * Makefile.in (hppa-tdep.o): Add dependency on language.h.
182
183 * tm-hppa.h (REG_STRUCT_HAS_ADDR): Change the definition of this
184 gdbarch-eligible macro to a call to the new associated function
185 created in hppa-tdep.c.
186 (INNER_THAN): Likewise.
187 (STACK_ALIGN): Likewise.
188 (PC_REQUIRES_RUN_BEFORE_USE): Likewise.
189 (INSTRUCTION_NULLIFIED): Likewise.
190 (REGISTER_BYTE): Likewise.
191 (REGISTER_VIRTUAL_TYPE): Likewise.
192 (STORE_STRUCT_RETURN): Likewise.
193 (CANNOT_STORE_REGISTER): Likewise.
194 (FRAME_ARGS_ADDRESS): Likewise.
195 (FRAME_LOCALS_ADDRESS): Likewise.
196 (SMASH_TEXT_ADDRESS): Likewise.
197 (COERCE_FLOAT_TO_DOUBLE): Likewise.
198 (ABOUT_TO_RETURN): Delete, as no longer used.
199
200 2002-11-07 Fernando Nasser <fnasser@redhat.com>
201
202 * printcmd.c (disassemble_command): Remove obsolete function.
203 (_initialize_printcmd): Do not create disassemble command here.
204 * cli/cli-cmds.c (disassemble_command): New function. Implements
205 disassemble command.
206 (init_cli_cmds): Create disassemble command here instead.
207
208 2002-11-07 Andrew Cagney <ac131313@redhat.com>
209
210 * MAINTAINERS: Add Daniel Jacobowitz to global maintainers list.
211
212 2002-11-07 Andrew Cagney <ac131313@redhat.com>
213
214 * regcache.h (regcache_cooked_read_using_offset_hack)
215 (regcache_cooked_write_using_offset_hack): Delete declarations.
216 (register_changed): Delete declaration.
217 * regcache.c (regcache_cooked_read_using_offset_hack)
218 (regcache_cooked_write_using_offset_hack): Delete functions.
219 (cooked_xfer_using_offset_hack): Delete function.
220 (register_changed): Delete function.
221
222 2002-11-07 Jim Blandy <jimb@redhat.com>
223
224 * macroscope.c: #include "complaints.h".
225 (sal_macro_scope): Cope with filenames that appear in the symtabs,
226 but not in the macro table.
227 * Makefile.in (macroscope.o): Record dependency.
228
229 2002-11-07 Joel Brobecker <brobecker@gnat.com>
230
231 * PROBLEMS: Document gdb/816 (unable to read core file on alpha-osf).
232
233 2002-11-07 Andrew Cagney <ac131313@redhat.com>
234
235 * regcache.c (deprecated_registers_fetched): Update.
236 * regcache.h (deprecated_registers_fetched): Rename
237 registers_fetched.
238 * remote-vxsparc.c (vx_read_register): Update.
239 * remote-vxmips.c (vx_read_register): Update.
240 * remote-vx68.c (vx_read_register): Update.
241 * irix5-nat.c (fetch_core_registers): Update.
242 * mipsm3-nat.c (fetch_inferior_registers): Update.
243 * sun3-nat.c (fetch_inferior_registers): Update.
244 * symm-nat.c (fetch_inferior_registers): Update.
245 * ns32knbsd-nat.c (fetch_inferior_registers): Update.
246 (fetch_core_registers): Update.
247 (fetch_kcore_registers): Update.
248 * mips-nat.c (fetch_inferior_registers): Update.
249 * corelow.c (get_core_registers): Update.
250 * a68v-nat.c (fetch_inferior_registers): Update.
251
252 2002-11-06 Joel Brobecker <brobecker@gnat.com>
253
254 Put in place the framework necessary for multiarching the hppa targets.
255 * hppa-tdep.c (hppa_gdbarch_init): New function.
256 (hppa_dump_tdep): New function.
257 (_initialize_hppa_tdep): Register the hppa gdbarch init function and
258 tdep structure dumper.
259 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): New macro, defined to 0
260 until the multi-arching conversion has partially been completed.
261
262 2002-11-06 Andrew Cagney <ac131313@redhat.com>
263
264 * valops.c (value_assign): Merge lval_register case into
265 lval_reg_frame_relative. Use frame_register and
266 regcache_cooked_write instead of get_saved_register and
267 write_register_bytes. After flushing the register cache, try to
268 re-select the selected frame.
269
270 2002-11-06 Andrew Cagney <ac131313@redhat.com>
271
272 * regcache.h (deprecated_register_valid): Rename register_valid.
273 * regcache.c: Update.
274 * ia64-aix-nat.c: Update.
275 * i386gnu-nat.c: Update.
276 * alpha-nat.c: Update.
277 * sparc-nat.c: Update.
278 * lynx-nat.c: Update.
279 * remote-mips.c: Update.
280
281 2002-11-06 Joel Brobecker <brobecker@gnat.com>
282
283 * hppa-tdep.c (_initialize_hppa_tdep): Move function body
284 to end of file, to be more consistent with the pratice followed
285 by other targets.
286
287 2002-11-06 Andrew Cagney <ac131313@redhat.com>
288
289 * infcmd.c: Include "reggroups.h" and <ctype.h>.
290 (print_float_info): Print registers in float_reggroup.
291 (print_vector_info): Print registers in vector_reggroup.
292 (default_print_registers_info): When all, print registers in
293 all_reggroup. Otherwize, print registers in general_reggroup.
294 (registers_info): Rewrite. Add support for register groups.
295 Eliminate a goto.
296
297 2002-11-06 Elena Zannoni <ezannoni@redhat.com>
298
299 * symtab.c (methods_info): Delete. It has been ifdeffed out for
300 ages.
301 (symtab_symbol_info): Remove eons old ifdeffed out code.
302 (_initialize_symtab): Remove prehistoric disabled 'info methods'
303 command.
304
305 2002-11-06 Theodore A. Roth <troth@openavr.org>
306
307 * c-exp.y: Add missing semi-colons.
308 * f-exp.y: Add missing semi-colons.
309 * m2-exp.y: Add missing semi-colons.
310 * p-exp.y: Add missing semi-colons.
311 Add empty action to start rule to avoid a type clash error when
312 building with bison >= 1.50.
313
314 2002-11-06 Jim Blandy <jimb@redhat.com>
315
316 * macrotab.h (struct macro_source_file): Doc fix.
317
318 2002-11-05 Jeff Johnston <jjohnstn@redhat.com>
319
320 * varobj.c (child_exists, cplus_number_of_children): Change
321 STREQ macro references to strcmp.
322 (cplus_name_of_child): Change code to handle the fact that
323 fields are not necessarily contiguous with regards to their
324 access control. This is a fix for PR gdb/792.
325
326 2002-11-05 Andrew Cagney <ac131313@redhat.com>
327
328 * gdbarch.sh (GET_SAVED_REGISTER): Change to a predicate function.
329 * gdbarch.h, gdbarch.c: Regnerate.
330 * frame.h (frame_register): Declare.
331 * frame.c (frame_register): New function.
332 (get_saved_register): Test GET_SAVED_REGISTER_P before calling
333 GET_SAVED_REGISTER, otherwize call
334 generic_unwind_get_saved_register.
335 (frame_register_read): Use frame_register instead of
336 get_saved_register.
337
338 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
339
340 From Jim Ingham <jingham@apple.com>:
341 * event-top.c (gdb_disable_readline): New function.
342 (_initialize_event_loop): Move comment.
343
344 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
345
346 * event-loop.c (start_event_loop): Add comment.
347 Update copyright.
348
349 2002-11-05 Andrew Cagney <ac131313@redhat.com>
350
351 * infcmd.c (default_print_registers_info): Do not call
352 PRINT_REGISTER_HOOK.
353
354 2002-11-05 Andrew Cagney <ac131313@redhat.com>
355
356 * sparc-tdep.c (sparc_print_register_hook): Make static.
357 (sparc_print_registers_info): New function.
358 (sparc_do_registers_info): New function.
359 (sparclet_print_registers_info): New function.
360 (sparclet_do_registers_info): New function.
361 (do_sparc_print_registers_info): New function.
362 (sparc_print_registers): New static function, clone of infcmd.c's
363 default_print_registers_info.
364 * config/sparc/tm-sparclet.h (PRINT_REGISTER_HOOK): Delete macro.
365 (sparclet_do_registers_info): Declare.
366 (DEPRECATED_DO_REGISTERS_INFO): Re-define.
367 * config/sparc/tm-sparc.h (DEPRECATED_DO_REGISTERS_INFO):
368 Re-define.
369 (sparc_do_registers_info): Declare.
370 (PRINT_REGISTER_HOOK): Delete macro.
371 (sparc_print_register_hook): Delete declaration.
372
373 2002-11-05 David Carlton <carlton@math.stanford.edu>
374
375 * symtab.c (lookup_symbol_aux): Move chunks of code into separate
376 functions.
377 (lookup_symbol_aux_local): New function.
378 (lookup_symbol_aux_symtabs): New function.
379 (lookup_symbol_aux_psymtabs): New function.
380
381 2002-11-05 David Carlton <carlton@math.stanford.edu>
382
383 * symtab.c (lookup_symbol_aux): In minsym sections, don't use the
384 previous values of 'objfile' and 'block'.
385
386 2002-11-05 Pierre Muller <muller@ics.u-strasbg.fr>
387
388 * values.c (value_change_enclosing_type): Set
389 enclosing_type field correctly also for the case where
390 more memory needs to be allocated.
391
392 2002-11-03 Mark Kettenis <kettenis@gnu.org>
393
394 * i387-tdep.c (i387_print_float_info): Call fputs_filtered instead
395 of puts_filtered.
396
397 * i387-tdep.c (i387_print_float_info): Replace calls to
398 register_read and deprecated_read_register_gen with calls to
399 frame_register_read, and make the necessary adjustments to the
400 surrounding code.
401
402 2002-11-02 Andrew Cagney <ac131313@redhat.com>
403
404 * gdbarch.sh (register_reggroup_p): Allow default value.
405 * gdbarch.h, gdbarch.c: Regenerate.
406
407 2002-11-02 Andrew Cagney <ac131313@redhat.com>
408
409 * regcache.h: Add coment indicating replacements for deprecated
410 functions.
411
412 2002-11-02 Andrew Cagney <cagney@redhat.com>
413
414 * reggroups.h, reggroups.c: New files.
415 * regcache.c: Include "reggroups.h".
416 (enum regcache_dump_what): Add `regcache_dump_groups'.
417 (regcache_dump): Contract size of the "Type" column. When
418 specified, dump the register's groups.
419 (maintenance_print_register_groups): New function.
420 (_initialize_regcache): Add command `maint print register-groups'.
421 * Makefile.in (COMMON_OBS): Add reggroups.o
422 (SFILES): Add reggroups.c.
423 (reggroups_h): Define.
424 (regcache.o, gdbarch.o): Update dependencies.
425 (reggroups.o): Specify dependencies.
426 * gdbarch.sh (register_reggroup_p): Add pure multi-arch method.
427 Add opaque declaration for `struct reggroup' in generated .h file.
428 Include "reggroups.h" in generated .c file.
429 gdbarch.h, gdbarch.c: Re-generate.
430
431 2002-11-02 Andrew Cagney <cagney@redhat.com>
432
433 * regcache.h (deprecated_read_register_gen): Rename
434 read_register_gen.
435 (deprecated_write_register_gen): Rename write_register_gen.
436 * i387-tdep.c: Update.
437 * x86-64-linux-nat.c: Update
438 * wince.c: Update.
439 * thread-db.c: Update.
440 * win32-nat.c: Update.
441 * mips-tdep.c: Update.
442 * d10v-tdep.c: Update.
443 * cris-tdep.c: Update.
444 * remote-sim.c: Update.
445 * remote-rdi.c: Update.
446 * remote-rdp.c: Update.
447 * frame.c: Update.
448 * target.c: Update.
449 * blockframe.c: Update.
450 * x86-64-tdep.c: Update.
451 * xstormy16-tdep.c: Update.
452 * sh-tdep.c: Update.
453 * s390-tdep.c: Update.
454 * rs6000-tdep.c: Update.
455 * sparc-tdep.c: Update.
456 * i386-tdep.c: Update.
457 * dwarf2cfi.c: Update.
458 * regcache.c: Update.
459
460 2002-11-01 Joel Brobecker <brobecker@gnat.com>
461
462 New interix-specific files:
463 * config/i386/nm-interix.h: New file.
464 * config/i386/interix.mh: New file.
465 * config/i386/interix.mt: New file.
466 * i386-interix-nat.c: New file.
467 * i386-interix-tdep.c: New file.
468
469 2002-11-01 Andrew Cagney <cagney@redhat.com>
470
471 * frame.h (deprecated_generic_get_saved_register): Rename
472 generic_get_saved_register.
473 * blockframe.c (deprecated_generic_get_saved_register): Update.
474 * xstormy16-tdep.c (xstormy16_get_saved_register): Update.
475 (xstormy16_frame_saved_register): Update.
476 * sh-tdep.c (sh_gdbarch_init): Update.
477 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
478 * ia64-tdep.c (ia64_get_saved_register): Update.
479 * cris-tdep.c (cris_gdbarch_init): Update.
480 * config/m32r/tm-m32r.h (GET_SAVED_REGISTER): Update.
481 * arm-tdep.c (arm_gdbarch_init): Update.
482
483 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
484
485 * lin-lwp.c (lin_lwp_resume): Remove resume_all test for !step.
486
487 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
488
489 * i386-linux-tdep.c (i386_linux_pc_in_sigtramp): Check for
490 trampolines in sigaction.
491
492 2002-10-31 Andrew Cagney <cagney@redhat.com>
493
494 * h8300-tdep.c: Include "gdb_assert.h".
495 (h8300_print_register): Add gdbarch, file and frame parameters.
496 Use frame_read_unsigned_register to read the register's value.
497 Use fprintf_filtered to display output.
498 (h8300_print_registers_info): Replace h8300_do_registers_info.
499 (h8300_gdbarch_init): Set print_registers_info.
500
501 2002-10-31 Andrew Cagney <cagney@redhat.com>
502
503 * frame.c (frame_read_unsigned_register): New function.
504 (frame_read_signed_register): New function.
505 * frame.h (frame_read_unsigned_register): Declare.
506 (frame_read_signed_register): Declare.
507
508 2002-10-31 Andrew Cagney <cagney@redhat.com>
509
510 * h8500-tdep.c (h8500_print_registers_info): New static function,
511 clone of infcmd.c's default_print_registers_info.
512 (h8500_do_registers_info): New funtion.
513 (h8500_print_register_hook): Rename print_register_hook, make
514 static.
515
516 * config/h8500/tm-h8500.h: Update copyright.
517 (DEPRECATED_DO_REGISTERS_INFO): Define.
518 (h8500_do_registers_info: Declare.
519 (PRINT_REGISTER_HOOK): Delete macro.
520 (print_register_hook): Delete function.
521
522 2002-10-31 Andrew Cagney <cagney@redhat.com>
523
524 * z8k-tdep.c (z8k_print_register_hook): Make static.
525 (z8k_print_registers_info): New static function, clone of
526 infcmd.c's default_print_registers_info.
527 (z8k_do_registers_info): New function. Wrap
528 z8k_print_registers_info.
529 * config/z8k/tm-z8k.h: Update copyright.
530 (PRINT_REGISTER_HOOK): Delete macro.
531 (z8k_print_register_hook): Delete declaration.
532 (DEPRECATED_DO_REGISTERS_INFO): Define.
533 (z8k_do_registers_info): Declare.
534
535 2002-10-30 Joel Brobecker <brobecker@gnat.com>
536
537 * hppa-tdep.c (find_function_in_inferior): Remove this extern,
538 as this is already provided by value.h, and was actually causing
539 a compilation error because of a conflict in parameter type
540 declaration due to a missing const keyword.
541 (low_text_segment_addres): Fix a compilation warning.
542
543 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
544
545 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
546 registers without a name.
547 (mips_linux_cannot_store_register): Don't store registers without
548 a name.
549
550 2002-10-28 David Carlton <carlton@math.stanford.edu>
551
552 * symtab.c (find_addr_symbol): Delete. (It was already commented
553 out.)
554 * symtab.h: Delete prototype for find_addr_symbol.
555
556 2002-10-26 Andrew Cagney <cagney@redhat.com>
557
558 * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
559 DO_REGISTERS_INFO.
560 gdbarch.h, gdbarch.c: Re-generate.
561 * infcmd.c (default_print_registers_info): Update reference.
562 * mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info.
563 (mips_dump_tdep): Do not print DO_REGISTERS_INFO.
564 * sh-tdep.c (sh_gdbarch_init): Ditto.
565 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
566 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
567
568 2002-10-26 Mark Kettenis <kettenis@gnu.org>
569
570 * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
571 cfi_init_extra_frame_info.
572 * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
573 * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
574
575 * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
576 target where necessary. Add more comments and remove the ones
577 that don't provide any useful information.
578
579 * i386-tdep.c (i386_frame_saved_pc): Replace call to
580 deprecated_read_register_dummy with
581 frame_unwind_unsigned_register.
582
583 * i386-tdep.c (i386_extract_struct_value_address): Use
584 regcache_raw_read_unsigned instead of
585 regcache_cooked_read_unsigned since we know that the register
586 we're reading isn't a pseudo register. Rename variable 'val' into
587 the more descriptive 'addr'.
588
589 * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
590 (x86_64_push_return_address): Add comment.
591 (x86_64_pop_frame): Make static.
592 (examine_argument): Clarify comment.
593 (x86_64_skip_prologue): Make prolog_expact variable static.
594
595 * dwarf2cfi.c: Fix some formatting problems.
596 (context_cpy, read_encoded_pointer): Clarify comments.
597
598 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
599 (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
600 i386 target back into x86_64_gdbarch_init. Add some comments and
601 remove meaningless ones.
602
603 2002-10-25 Andrew Cagney <cagney@redhat.com>
604
605 * complaints.h (struct deprecated_complaint): Rename `struct
606 complaint'.
607 * complaints.c (complain): Update.
608 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
609 incorrect comment indicating that "symfile.h" was being included
610 for the `struct complaint' definition.
611 * remote-vx.c: Update.
612 * objc-lang.c: Update.
613 * xcoffread.c: Update.
614 * hpread.c: Update.
615 * mdebugread.c: Update.
616 * stabsread.c: Update.
617 * dwarf2read.c: Update.
618 * dwarfread.c: Update.
619 * elfread.c: Update.
620 * coffread.c: Update.
621 * stabsread.h: Update.
622 * dbxread.c: Update.
623 * buildsym.c: Update.
624 * gdbtypes.c: Update.
625 * macrotab.c: Update.
626
627 2002-10-25 Mark Kettenis <kettenis@gnu.org>
628
629 * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
630 the version in i386-tdep.c. Move set_gdbarch_* calls out into...
631 (x86_64_init_abi): ...new function.
632
633 * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
634 * i386v-nat.c: Include "i386-tdep.h".
635
636 2002-10-25 Andrew Cagney <cagney@redhat.com>
637
638 * gdbtypes.c (address_space_name_to_int): Update.
639 (address_space_int_to_name): Update.
640 * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
641 multi-arch predicate.
642 (address_class_name_to_type_flags): Ditto.
643 * gdbarch.h, gdbarch.c: Re-generate.
644
645 * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
646
647 2002-10-24 Martin M. Hunt <hunt@redhat.com>
648
649 * utils.c (string_to_core_addr): Revert patch from 11 Oct.
650
651 2002-10-24 Elena Zannoni <ezannoni@redhat.com>
652
653 * symtab.h (INIT_SAL): Delete macro.
654 (init_sal): Export.
655 * symtab.c (init_sal): New function.
656
657 * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
658 to init_sal function call.
659 (find_sal_from_funcs_and_line): Ditto.
660 (all_sals_for_line): Ditto.
661 * breakpoint.c (create_internal_breakpoint): Ditto.
662 (create_fork_vfork_event_catchpoint): Ditto.
663 (create_exec_event_catchpoint): Ditto.
664 (parse_breakpoint_sals): Ditto.
665 (watch_command_1): Ditto.
666 (handle_gnu_4_16_catch_command): Ditto.
667 (clear_command): Ditto.
668 * hppa-tdep.c (child_enable_exception_callback): Ditto.
669 * infcmd.c (run_stack_dummy): Ditto.
670 * infrun.c (process_event_stop_test): Ditto.
671 (check_sigtramp2): Ditto.
672 (step_over_function): Ditto.
673 * linespec.c (decode_line_2): Ditto.
674 (decode_line_1): Ditto.
675 * source.c (line_info): Ditto.
676 * symtab.c (find_pc_sect_line): Ditto.
677
678 2002-10-24 Michal Ludvig <mludvig@suse.cz>
679
680 * dwarf2cfi.c (struct context)
681 (struct context_reg): Moved to dwarf2cfi.h
682 (context_alloc, frame_state_alloc, context_cpy):
683 Made extern instead of static, removed prototypes.
684 * dwarf2cfi.h (struct context)
685 (struct context_reg): New, moved from dwarf2cfi.c
686 (context_alloc, frame_state_alloc, context_cpy):
687 New prototypes.
688 * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
689 Changed from static to extern.
690 (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
691 (LINUX_SIGCONTEXT_FP_OFFSET)
692 (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
693 (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
694 (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
695 * x86-64-tdep.c (x86_64_gdbarch_init): Several
696 set_gdbarch_*() calls now use x86-64 specific functions
697 instead of DWARF2 CFI ones.
698 * x86-64-tdep.h (x86_64_linux_in_sigtramp)
699 (x86_64_linux_frame_chain, x86_64_init_frame_pc)
700 (x86_64_init_extra_frame_info): New prototypes.
701
702 2002-10-23 David Carlton <carlton@math.stanford.edu>
703
704 * linespec.c: #include "parser-defs.h".
705 Delete prototype for find_template_name_end.
706 * Makefile.in (linespec.o): Depend on $(parser_defs_h).
707
708 2002-10-23 Jeff Johnston <jjohnstn@redhat.com>
709
710 * NEWS: add recent mi fixes.
711 * varobj.c (struct varobj): Add new "updated" flag.
712 (new_variable): Default "updated" flag to 0.
713 (varobj_set_value): Set "updated" flag to 1 if value
714 changes.
715 (varobj_update): Check varobj "updated" flag before
716 comparing old and refreshed values. Fix for
717 PR gdb/702.
718
719 2002-10-23 David Carlton <carlton@math.stanford.edu>
720
721 * parse.c (parse_exp_1): Use BLOCK_START.
722 * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
723 SYMBOL_BLOCK_VALUE.
724 * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
725
726 2002-10-23 David Carlton <carlton@math.stanford.edu>
727
728 * symtab.c: Delete cplusplus_hint.
729 Delete prototype for find_template_name_end.
730
731 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
732
733 * symtab.h: Update comment.
734
735 2002-10-23 Michael Snyder <msnyder@redhat.com>
736
737 * printcmd.c (address_info): Restore quotes in output.
738 * valops.c (value_of_local): Restore quotes in error message.
739
740 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
741
742 * symtab.c (symbol_demangled_name): New function.
743 * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
744 turning most of it into a function.
745 (symbol_demangled_name): Export.
746
747 2002-10-23 Michael Snyder <msnyder@redhat.com>
748
749 * valops.c (value_of_local): Restore quotes in error message.
750
751 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
752
753 * symtab.c (symbol_init_language_specific): New function.
754 * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
755 turning most of it into a function.
756 (symbol_init_language_specific): Export.
757
758 2002-10-23 David Carlton <carlton@math.stanford.edu>
759
760 * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
761 (dwarf_attr_name): Ditto.
762 (dwarf_type_encoding_name): Ditto.
763 (scan_partial_symbols): Descend into DW_TAG_namespace entries.
764 (process_die): Handle DW_TAG_namespace,
765 DW_TAG_imported_declaration, DW_TAG_imported_module.
766 (read_namespace): New function.
767
768 2002-10-22 Joel Brobecker <brobecker@gnat.com>
769
770 * configure.in: Define NEW_PROC_API on Interix too.
771 * configure: Regenerate.
772
773 2002-10-21 Joel Brobecker <brobecker@gnat.com>
774
775 * configure: Regenerate using the proper version of autoconf.
776
777 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
778
779 * findvar.c (read_var_value): Temporarily disable TLS code, until
780 complete TLS support is added.
781
782 2002-10-21 Jim Blandy <jimb@redhat.com>
783 Elena Zannoni <ezannoni@redhat.com>
784
785 * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
786 for thread local storage locations.
787 (struct symbol): Add objfile field.
788 (SYMBOL_OBJFILE): Define.
789 * dwarf2read.c (is_thread_local): New static variable.
790 (new_symbol): If variable is in thread local fill in address class
791 and objfile appropriately.
792 (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
793 stack operation.
794 * printcmd.c (address_info): Print the information for thread
795 local storage variable.
796 * findvar.c (read_var_value): In case of thread local variable,
797 defer to the target vector code to compute address.
798
799 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
800
801 * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
802 * solib-svr4.h (svr4_fetch_objfile_link_map): Export.
803
804 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
805
806 * symtab.h (address_class): Rename
807 LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
808 * hpread.c (hpread_process_one_debug_symbol): Ditto.
809 * printcmd.c (address_info): Ditto.
810 * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
811
812 2002-10-20 Mark Kettenis <kettenis@gnu.org>
813
814 * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
815 DBREG_DRX macro to acces debug registers.
816
817 * Makefile.in (i386obsd-tdep.o): New target.
818
819 * solib-sunos.c: Include "bcache.h" and "regcache.h".
820 * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
821
822 * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
823 * config/i386/obsd.mt: New file.
824 * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
825 i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
826 * i386obsd-nat.c (_initialize_i386obsd_nat): Set
827 i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
828 i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
829 * i386obsd-tdep.c: New file.
830
831 2002-10-19 Adam Fedor <fedor@gnu.org>
832
833 * objc-exp.y (name_not_typename): Fix invalid comment.
834
835 2002-10-20 Mark Kettenis <kettenis@gnu.org>
836
837 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
838 to allocate partial syms and macro byte caches.
839
840 2002-10-18 David Carlton <carlton@math.stanford.edu>
841
842 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
843
844 2002-10-18 Adam Fedor <fedor@gnu.org>
845
846 * stabsread.c (find_name_end): New function.
847 (define_symbol): Use it.
848
849 2002-10-18 Daniel Jacobowitz <drow@mvista.com>
850
851 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
852 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
853 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
854 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
855
856 2002-10-17 David Carlton <carlton@math.stanford.edu>
857
858 * symfile.h: Add opaque declaration for struct obstack.
859 Declare obsavestring to take a const char *.
860 * symfile.c (obsavestring): Make first argument a const char *.
861
862 2002-10-16 Adam Fedor <fedor@gnu.org>
863
864 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
865 names when matching breakpoints in current file.
866
867 2002-10-16 Kevin Buettner <kevinb@redhat.com>
868
869 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
870 (read_tag_pointer_type): Add address class support.
871 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
872 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
873 New methods.
874 * gdbarch.h, gdbarch.c: Regenerate.
875 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
876 (make_type_with_address_space, recursive_type_dump): Add address
877 class support.
878 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
879 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
880 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
881
882 2002-10-16 Klee Dienes <kdienes@apple.com>
883
884 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
885 to get the last character of a char[] buffer, not
886 name[sizeof(vptr_name)-1].
887
888 2002-10-14 Adam Fedor <fedor@gnu.org>
889
890 * symtab.h: New objc_specific struct.
891 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
892 (SYMBOL_DEMANGLED_NAME): Likewise.
893
894 2002-10-14 Adam Fedor <fedor@gnu.org>
895
896 * symfile.c (init_filename_language_table): Add ObjC file extension.
897
898 2002-10-14 Adam Fedor <fedor@gnu.org>
899
900 * utils.c (puts_filtered_tabular): New function.
901 (fprintf_symbol_filtered): Get ObjC demangled name.
902 * defs.h (puts_filtered_tabular): Declared.
903
904 2002-10-14 Kevin Buettner <kevinb@redhat.com>
905
906 * c-lang.h (c_type_print_varspec_prefix): Delete.
907 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
908 ``need_post_space'' parameter. Adjust all callers.
909
910 2002-10-14 Daniel Jacobowitz <drow@mvista.com>
911
912 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
913 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
914 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
915 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
916
917 2002-10-13 Adam Fedor <fedor@gnu.org>
918
919 * source.c (print_source_lines): Update comments.
920
921 2002-10-13 Adam Fedor <fedor@gnu.org>
922
923 * valops.c (value_of_local): New function.
924 (value_of_this): Use it.
925 * value.h (value_of_local): Declared.
926
927 2002-10-13 Adam Fedor <fedor@gnu.org>
928
929 * parse.c: (length_of_subexp, prefixify_subexp): Handle
930 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
931
932 2002-10-12 Adam Fedor <fedor@gnu.org>
933
934 * language.c (binop_result_type): Add language_objc to case.
935 (integral_type): Likewise.
936 (character_type): Likewise.
937 (string_type): Likewise.
938 (boolean_type): Likewise.
939 (structured_type): Likewise.
940 (binop_type_check): Likewise.
941
942 2002-10-11 Adam Fedor <fedor@gnu.org>
943
944 * printcmd.c (address_info): Print 'self' for ObjC.
945
946 2002-10-11 Adam Fedor <fedor@gnu.org>
947
948 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
949 OP_SELF.
950
951 2002-10-11 Adam Fedor <fedor@gnu.org>
952
953 * language.h (CAST_IS_CONVERSION): Add language_objc.
954
955 2002-10-11 Adam Fedor <fedor@gnu.org>
956
957 * defs.h (enum language): Add language_objc.
958
959 2002-10-11 Klee Dienes <kdienes@apple.com>
960
961 * corefile.c (read_memory_typed_address): New function.
962 * gdbcore.h (read_memory_typed_address): Add prototype.
963 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
964 to read a value destined for a CORE_ADDR, not read_memory_integer.
965 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
966 (f77_get_dynamic_lowerbound): Ditto.
967
968 2002-10-11 Martin M. Hunt <hunt@redhat.com>
969
970 * utils.c (string_to_core_addr): After turning string into
971 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
972 which will do necessary sign-extension, etc.
973
974 2002-10-11 Daniel Jacobowitz <drow@mvista.com>
975
976 * c-exp.y (THIS): Delete token and grammar rule.
977 (yylex): Don't return THIS.
978 * cp-valprint.c (vtbl_ptr_name_old): Delete.
979 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
980 * demangle.c (cplus_markers): Update comment. Put '$'
981 first. Remove CPLUS_MARKER.
982 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
983 * jv-exp.y (THIS): Delete token and grammar rule.
984 (yylex): Don't return THIS.
985 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
986 * objc-exp.y (THIS): Delete token and grammar rule.
987 (yylex): Don't return THIS.
988 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
989 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
990 (read_member_functions): Likewise for opname.
991 (read_tilde_fields): Use is_cplus_marker.
992
993 * defs.h (CPLUS_MARKER): Don't define.
994 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
995 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
996 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
997 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
998 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
999
1000 * config/i386/tm-i386v4.h: Delete file.
1001 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
1002 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
1003 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
1004 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
1005 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
1006 * config/i386/i386sco5.mt (TM_FILE): Likewise.
1007 * config/i386/i386v4.mt (TM_FILE): Likewise.
1008 * config/i386/ncr3000.mt (TM_FILE): Likewise.
1009
1010 2002-10-10 Marko Mlinar <markom@opencores.org>
1011
1012 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
1013 accidentially not commited 2002-10-09
1014 * gdbarch.h, gdbarch.c: Re-generate.
1015
1016 2002-10-09 Marko Mlinar <markom@opencores.org>
1017
1018 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
1019 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
1020 * gdbarch.h, gdbarch.c: Re-generate.
1021
1022 2002-10-08 Petr Sorfa <petrs@caldera.com>
1023
1024 Revised and re-submitted by John Wolfe <jlw@caldera.com>
1025
1026 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
1027 so we can work on more than one compilation unit at a time. This
1028 helps prepare GDB to handle inter-CU die references.
1029 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
1030 the code to be defined before struct comp_unit_head.
1031 (comp_unit_head): Added new members - offset, cu_head,
1032 begin_die, next and dwarf2_abbrevs.
1033 (dwarf2_abbrevs): Removed single static var; now member of
1034 struct comp_unit_head.
1035 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
1036 members.
1037 (psymtab_to_symtab_1): Changed to work with the new
1038 struct comp_unit_head.
1039 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
1040 constructs the dwarf2_abbrevs[] inside the cu_header.
1041 (dwarf2_empty_abbrev_table): Now expects a ptr to a
1042 dwarf2_abbrev table to clean up.
1043 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
1044 handling of dwarf2_abbrevs inside the cu_header.
1045 (read_partial_die): Now supports the call to the new
1046 dwarf2_lookup_abbrev.
1047 (read_full_die): Now supports the call to the new
1048 dwarf2_lookup_abbrev.
1049
1050 2002-10-06 Christopher Faylor <cgf@redhat.com>
1051
1052 * Makefile.in (install-gdbtk): Add missing continuation backslash to
1053 insure that shell variables, such as "transformed_name" are propagated
1054 to later shell statements in rule.
1055
1056 2002-10-06 Mark Kettenis <kettenis@gnu.org>
1057
1058 * config/i386/nm-i386sco.h: Add protection against
1059 multiple-inclusion. Include "i386/nm-i386v.h".
1060 (REGISTER_U_ADDR): Remove define.
1061 (i386_register_u_addr): Remove prototype.
1062
1063 2002-10-04 Michael Snyder <msnyder@redhat.com>
1064
1065 * m32r-stub.c (handle_exception): Make sure exception is "trap"
1066 before treating it as a single-step event.
1067
1068 2002-10-03 Adam Fedor <fedor@gnu.org>
1069
1070 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
1071 (objc_demangle): Remove assignment in if statements, Replace
1072 free with xfree.
1073 (add_msglist): Likewise.
1074 (end_msglist): Likewise.
1075 (complare_selectors): Likewise.
1076 (selectors_info): Likewise.
1077 (compare_classes): Likewise.
1078 (classes_info): Likewise.
1079 (print_object_command): Likewise.
1080 (find_objc_msgcall_submethod): Replace PTR with void *.
1081 * objc-lang.h: Remove check for __STDC__.
1082
1083 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
1084
1085 * ui-out.h (ui_out_field_fmt_int): New prototype.
1086 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
1087 of field width and alignment.
1088 * stack.c (print_frame_info_base): When printing frame level, use
1089 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
1090 PR gdb/192
1091
1092 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
1093
1094 * MAINTAINERS: Add self to Write After Approval list.
1095
1096 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
1097
1098 * infcmd.c (interrupt_target_command_wrapper): Delete.
1099 (interrupt_target_command): Make non static.
1100 (nofp_registers_info): Make static.
1101 * stack.c (return_command_wrapper): Delete.
1102 (return_command): Make non static.
1103
1104 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
1105
1106 * event-top.c (gdb_setup_readline): New function. Code moved from
1107 _initialize_event_loop().
1108 (_initialize_event_loop): Call gdb_setup_readline().
1109
1110 2002-10-02 Andrew Cagney <ac131313@redhat.com>
1111
1112 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
1113 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
1114 * gdbarch.h, gdbarch.c: Re-generate.
1115
1116 2002-10-02 Daniel Jacobowitz <drow@mvista.com>
1117
1118 Fix PR gdb/778
1119 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
1120 before recursing.
1121 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
1122 of fill_in_vptr_fieldno.
1123
1124 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
1125
1126 * inferior.h (registers_info, stepi_command, nexti_command,
1127 continue_command, interrupt_target_command): Export from infcmd.c.
1128 * frame.h (args_info, selected_frame_level_changed_hook,
1129 return_command): Export from stack.c.
1130 * v850ice.c (stepi_command, nexti_command, continue_command): use
1131 prototypes from inferior.h.
1132 * tracepoint.c (registers_info, args_info, locals_info): Use
1133 prototypes from frame.h and inferior.h.
1134 * Makefile.in (mi-main.o): Add dependency on frame.h.
1135
1136 2002-10-02 Andrew Cagney <ac131313@redhat.com>
1137
1138 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
1139 value in register 3 adjusted by ppc_gp0_regnum.
1140
1141 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
1142
1143 2002-10-02 Marko Mlinar <markom@opencores.org>
1144
1145 * MAINTAINERS: Add myself to the Write After Approval list.
1146
1147 2002-10-01 Alexandre Oliva <aoliva@redhat.com>
1148
1149 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
1150 of the section for the N64 ABI, fixed.
1151
1152 * config/mips/tm-irix6.h: Include solib.h.
1153
1154 2002-10-01 Elena Zannoni <ezannoni@redhat.com>
1155
1156 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
1157 GNU operators.
1158
1159 2002-10-01 Andrew Cagney <ac131313@redhat.com>
1160
1161 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
1162 and that "mi0" syntax has been removed.
1163
1164 2002-09-30 David Carlton <carlton@math.stanford.edu>
1165
1166 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
1167 * ppc-sysv-tdep.c: #include "gdb_string.h".
1168 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
1169 pacify GCC.
1170
1171 2002-10-01 Andrew Cagney <ac131313@redhat.com>
1172
1173 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
1174 "vrsave"'s register number.
1175
1176 2002-09-30 Andrew Cagney <ac131313@redhat.com>
1177
1178 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
1179 use frame_unwind_signed_register to obtain the PC.
1180 (mips_frame_chain): Handle a generic dummy frame.
1181 (mips_init_extra_frame_info): When a generic dummy frame, don't
1182 re-compute the frame base.
1183 (mips_pop_frame): Handle generic dummy frames.
1184 (mips_gdbarch_init): When generic dummy frames, set
1185 use_generic_dummy_frames, push_dummy_frame to
1186 generic_push_dummy_frame, pc_in_call_dummy to
1187 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
1188 generic_save_dummy_frame_tos.
1189
1190 2002-09-30 Andrew Cagney <ac131313@redhat.com>
1191
1192 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
1193 against TOP when TOP was explictly set.
1194 (generic_push_dummy_frame): Set TOP to zero.
1195
1196 2002-09-30 Elena Zannoni <ezannoni@redhat.com>
1197
1198 * event-loop.c (start_event_loop): Rename variable 'result' to
1199 'gdb_result', to avoid conflicts with upcoming intepreters changes.
1200
1201 2002-09-30 Keith Seitz <keiths@redhat.com>
1202
1203 * gdb-events.sh (selected_thread_changed): New event.
1204 * gdb-events.c: Regenerated.
1205 * gdb-events.h: Regenerated.
1206
1207 2002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
1208
1209 * MAINTAINERS: Add self to Write After Approval list.
1210
1211 2002-09-30 Fernando Nasser <fnasser@redhat.com>
1212
1213 * disasm.c: New file.
1214 * disasm.h: New file.
1215 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
1216 (compare_lines): Ditto.
1217 (dump_insns): Ditto.
1218 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
1219 argument.
1220 (do_assembly_only): Ditto.
1221 (do_disassembly): Renamed to gdb_disassembly and moved to
1222 disasm.c. Sdded uiout argument.
1223 * Makefile.in: Add new files. Reorder SFILES list. Update
1224 dependencies. Include libgdb.a later in the insight executable.
1225
1226 2002-09-29 Andrew Cagney <ac131313@redhat.com>
1227
1228 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
1229 bfd/elf64-alpha-fbsd.c.
1230
1231 2002-09-29 Andrew Cagney <ac131313@redhat.com>
1232
1233 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
1234 i386gnu-tdep.c.
1235
1236 2002-09-29 Andrew Cagney <ac131313@redhat.com>
1237
1238 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
1239 __FUNCTION__.
1240 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
1241 function name.
1242 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
1243 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
1244 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
1245 (S_msg_sig_post_reply): Ditto.
1246
1247 2002-09-28 Corinna Vinschen <vinschen@redhat.com>
1248
1249 * sh-tdep.c (sh_use_struct_convention): Use definition according
1250 to ABI.
1251 (sh_push_arguments): Store in register with correct endianess.
1252 (sh_default_store_return_value): Ditto.
1253 (sh_gdbarch_init): Set sizeof long double to 8.
1254
1255 2002-09-27 Mark Kettenis <kettenis@gnu.org>
1256
1257 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
1258 Fix some whitespace problems.
1259
1260 2002-09-27 David Carlton <carlton@math.stanford.edu>
1261
1262 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
1263 (mcore-tdep.o): Ditto.
1264 (ns32k-tdep.o): Ditto.
1265 (ns32knbsd-tdep.o): Ditto.
1266 (sh3-rom.o): Ditto.
1267 (vax-tdep.o): Ditto.
1268 * cris-tdep.c: #include "gdb_string.h"
1269 * mcore-tdep.c: Ditto.
1270 * ns32k-tdep.c: Ditto.
1271 * ns32knbsd-tdep.c: Ditto.
1272 * sh3-rom.c: Ditto.
1273 * vax-tdep.c: Ditto.
1274
1275 2002-09-27 David Carlton <carlton@math.stanford.edu>
1276
1277 * config/djgpp/fnchange.lst: Add entries for
1278 gdb/testsuite/gdb.c++/m-static files.
1279
1280 2002-09-27 Jim Wilson <wilson@redhat.com>
1281
1282 * MAINTAINERS: Add myself to the Write After Approval list.
1283
1284 2002-09-26 Martin M. Hunt <hunt@redhat.com>
1285
1286 * mips-tdep.c (find_proc_desc): Initialize startaddr.
1287
1288
1289 2002-09-26 Andrew Cagney <ac131313@redhat.com>
1290
1291 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
1292 frame.
1293
1294 2002-09-26 Andrew Cagney <ac131313@redhat.com>
1295
1296 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
1297 (rs6000_struct_return_address): Delete variable.
1298 (rs6000_store_struct_return): Update.
1299 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
1300 deprecated_extract_struct_value_address.
1301 (rs6000_frame_align): New function.
1302 (rs6000_gdbarch_init): Set frame_align.
1303
1304 2002-09-26 Andrew Cagney <ac131313@redhat.com>
1305
1306 From Grace Sainsbury <graces@redhat.com>:
1307 * Makefile.in (gdbtk-main.o): New target.
1308 (gdb.o): New target.
1309 (main_h): Define.
1310 (main.o): Update dependencies.
1311 (gdb$(EXEEXT)): Add gdb.o.
1312 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
1313 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
1314 (SUBDIR_GDBTK_CLEAN): Set.
1315 (install-gdbtk): Install the insight binary.
1316 (uninstall-gdbtk): New target.
1317 (all-gdbtk, clean-gdbtk): New rule.
1318 * top.c (use_windows): Default to zero.
1319 * main.c: Include "main.h".
1320 (main): Delete.
1321 (struct captured_main_args): Delete.
1322 (gdb_main): New function.
1323 * main.h: New file.
1324 * gdb.c: New File.
1325
1326 2002-09-25 Andrew Cagney <cagney@redhat.com>
1327
1328 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
1329 (frame_map_regnum_to_name): New function.
1330 (frame_map_name_to_regnum): New function.
1331 * frame.h (frame_map_name_to_regnum): Declare.
1332 (frame_map_regnum_to_name): Declare.
1333 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
1334 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
1335 * parse.c: Do not include "builtin-regs.h".
1336 (target_map_name_to_register): Delete function.
1337 (write_dollar_variable): Use frame_map_name_to_regnum.
1338 * parser-defs.h (target_map_name_to_register): Delete declaration.
1339 * expprint.c: Include "frame.h".
1340 (print_subexp): Use frame_map_regnum_to_name.
1341 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
1342 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
1343
1344 2002-09-25 Andrew Cagney <ac131313@redhat.com>
1345
1346 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
1347 wasn't saved, and the next innermost frame is a dummy, return the
1348 dummy frame's link register.
1349
1350 2002-09-24 Jim Blandy <jimb@redhat.com>
1351
1352 Fix from Paul Breed:
1353 * main.c (captured_main): Add a `break' after the case for 'b'.
1354
1355 2002-09-24 Keith Seitz <keiths@redhat.com>
1356
1357 * varobj.c (c_type_of_child): Use get_target_type instead
1358 of TYPE_TARGET_TYPE.
1359
1360 2002-09-22 Fernando Nasser <fnasser@redhat.com>
1361
1362 * source.c (get_current_or_default_source_symtab_and_line): Remove
1363 function.
1364 (set_default_source_symtab_and_line): New function. Attempts to
1365 determine a source file to list lines from if one is not currently
1366 defined.
1367 (get_current_source_symtab_and_line): Initialize sal.pc and
1368 sal.end fields.
1369 (set_current_source_symtab_and_line): Mark argument as const.
1370 * source.h: Update declarations and comments.
1371 * linespec.c (decode_line_1): Replace call to removed routine above.
1372 * stack.c (print_frame_info_base): Ditto.
1373 * cli/cli-cmds.c (edit_command): Ditto.
1374 (list_command): Ditto.
1375
1376 2002-09-22 Fernando Nasser <fnasser@redhat.com>
1377
1378 * source.c (get_current_or_default_source_symtab_and_line): Initialize
1379 sal.pc and sal.end fields.
1380 (get_current_or_default_source_symtab_and_line): Ditto.
1381 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
1382 so we do not cause a new source symtab to be searched for (reverting an
1383 unintentional change from the 2002-09-20 patch).
1384 * scm-lang.c (scm_unpac): Ditto.
1385
1386 2002-09-21 Andrew Cagney <cagney@redhat.com>
1387
1388 * complaints.c (symfile_explanations): Remove new-line from
1389 ``isolated_message''.
1390 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
1391 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
1392
1393 2002-09-20 Nick Clifton <nickc@redhat.com>
1394
1395 * NEWS: Announce that V850EA ISA is no longer supported.
1396 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
1397
1398 2002-09-20 David Carlton <carlton@math.stanford.edu>
1399
1400 * Makefile.in (c-lang.o): Correct dependencies.
1401 (utils.o): Gather dependencies.
1402 (charset.o): Move.
1403 * c-lang.c: #include "gdb_string.h"
1404
1405 2002-09-20 Fernando Nasser <fnasser@redhat.com>
1406
1407 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
1408 * cli/cli-cmds.c (list_command): New function. Implements the new
1409 cli edit command.
1410 (_init_cli_cmds): Add new command definition.
1411 * gdb.1: Document edit command.
1412 * doc/gdb.texinfo: Document edit command.
1413
1414 2002-09-20 Fernando Nasser <fnasser@redhat.com>
1415
1416 * source.c: Make global variables current_source_symtab and
1417 current_source_line static.
1418 (list_command): Moved to cli/cli-cmds.c.
1419 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
1420 (get_first_line_listed): New accessor function.
1421 (get_lines_to_list): New accessor function.
1422 (get_current_source_symtab_and_line): New function. Retrieves the
1423 position in the source code that we consider current.
1424 (get_current_or_default_source_symtab_and_line): New function.
1425 Like the above but attempts to determine a default position if one
1426 is not currently defined.
1427 (set_current_source_symtab_and_line): New function. Sets the source
1428 code position considered current and returns the previously set one.
1429 (clear_current_source_symtab_and_line): Reset stored information about
1430 a current source line.
1431 (_initialize_source): Remove registration for the "list" command and
1432 its alias.
1433 * source.h: Add declarations for the new functions above.
1434 * symtab.h: Remove declarations for the global variables mentioned
1435 above.
1436 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
1437 obtain current source line.
1438 * linespec.c (decode_line_1): Ditto.
1439 * macroscope.c (default_macro_scope): Ditto.
1440 * scm-lang.c (scm_unpac): Ditto.
1441 * stack.c (print_frame_info_base): Ditto.
1442 * symfile.c (clear_symtab_users): Ditto.
1443 * symtab.c (decode_line_spec): Ditto.
1444 * cli/cli-cmds.c (list_command): Moved here from source.c.
1445 (ambiguous_line_spec): Moved here from source.c.
1446 (_init_cli_cmds): Add definition for "list" and its alias.
1447 * Makefile.in: Update dependencies.
1448
1449 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
1450
1451 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
1452 with what gcc thinks is correct.
1453
1454 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
1455
1456 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
1457 multiple register push instruction.
1458
1459 2002-09-19 Jim Blandy <jimb@redhat.com>
1460
1461 Add support for distinct host and target character sets.
1462 * charset.c, charset.h: New files.
1463 * c-exp.y: #include "charset.h".
1464 (yylex): Convert character and string literals to the target
1465 character set, before returning them as the semantic value of the
1466 token.
1467 * c-lang.c: #include "charset.h".
1468 (c_emit_char): Use charset-specific methods to recognize
1469 characters with backslash escape forms, to decide which characters
1470 to print literally and which to print using numeric escape
1471 sequences, and to convert target characters to host characters
1472 before printing.
1473 * utils.c: #include "charset.h".
1474 (no_control_char_error): New function.
1475 (parse_escape): Use charset-specific methods to recognize
1476 backslash escapes, parse `control character' notation, and convert
1477 characters from the host character set to the target character set.
1478 * configure.in: Set the default host character set.
1479 Check where to find iconv, and what its argument types might be.
1480 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
1481 * Makefile.in (SFILES): List charset.c.
1482 (COMMON_OBS): List charset.o.
1483 (charset.o): New rule.
1484 (charset_h): New header dependency variable.
1485 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
1486 (LIBICONV): New variable, set by configure.
1487 (CLIBS): Include $(LIBICONV) here.
1488 * aclocal.m4, config.in, configure: Regenerated.
1489
1490 2002-09-19 Joel Brobecker <brobecker@gnat.com>
1491
1492 * ada-exp.y: Add missing semicolons to end rules. Fixes a
1493 bison 1.35 warning.
1494
1495 2002-09-19 Richard Earnshaw <rearnsha@arm.com>
1496
1497 * gdb_mbuild.sh: New file.
1498
1499 2002-09-19 Andrew Cagney <ac131313@redhat.com>
1500
1501 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
1502
1503 2002-09-18 Andrew Cagney <ac131313@redhat.com>
1504
1505 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
1506 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
1507 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
1508 valops.c, value.h: Revert previous change.
1509
1510 2002-09-18 Michael Snyder <msnyder@redhat.com>
1511
1512 Preliminary support for Objective-C:
1513 * defs.h (language_objc): New enum value.
1514 (puts_filtered_tabular): Declaration only, exported from utils.c.
1515 (skip_quoted): Delete, declared in completer.h.
1516 * c-exp.y: Include completer.h.
1517 * p-exp.y: Ditto.
1518 * jv-exp.y: Ditto.
1519 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
1520 New operator enum values.
1521 * language.h (CAST_IS_CONVERSION): Test for language_objc.
1522 * language.c (binop_result_type): Handle language_objc case.
1523 (integral_type, character_type, string_type, boolean_type,
1524 structured_type, binop_type_check): Ditto.
1525 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
1526 (struct objc_specific): Add to general_symbol_info.
1527 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
1528 (SYMBOL_DEMANGLED_NAME): Handle objc case.
1529 * parser-defs.h (struct objc_class_str): New struct type.
1530 (start_msglist, end_msglist, add_msglist): Declaration only,
1531 exported from objc-lang.c.
1532 * value.h (value_of_local, value_nsstring,
1533 call_function_by_hand_expecting_type): Exported from valops.c.
1534 * valops.c (find_function_addr): Export.
1535 (call_function_by_hand_expecting_type): New function.
1536 (value_of_local): New function.
1537 * symfile.c (init_filename_language_table): Add ".m" extension
1538 for Objective-C.
1539 * utils.c (puts_filtered_tabular): New function.
1540 (fprintf_symbol_filtered): Add objc demangling support (disabled).
1541 (set/show demangle): Extend help-string to refer to ObjC.
1542 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
1543 * stabsread.c (symbol_reference_defined): Objective-C symbols
1544 may contain colons: make allowances when scanning stabs strings
1545 for colons.
1546 (objc_find_colon): New function.
1547 * printcmd.c (address_info): If language == objc then print
1548 "self" instead of "this".
1549 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
1550 OP_NSSTRING, and OP_SELF.
1551 (prefixify_subexp): Ditto.
1552 * source.c (print_source_lines): Mention objc in comment.
1553 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
1554 method names.
1555
1556 2002-09-18 Andrew Cagney <ac131313@redhat.com>
1557
1558 * complaints.h: Update copyright.
1559 (struct complaints): Declare.
1560 (struct complaint): Make `message' constant.
1561 (internal_complaint): Declare.
1562 (complaint): Declare.
1563 (complaint_root): Delete declaration.
1564 (symfile_complaints): Delete declaration.
1565 (struct complaints): Add opaque declaration.
1566 (clear_complaints): Add a complaints parameter.
1567 * complaints.c: Update copyright.
1568 (enum complaint_series): Define.
1569 (complaint_root): Delete.
1570 (struct complaints): Define.
1571 (complaint_sentinel, symfile_complaint_book): New variables.
1572 (symfile_explanations, symfile_complaints): New variables.
1573 New variables.
1574 (get_complaints): New function.
1575 (vcomplaint): New function.
1576 (complaint): New function.
1577 (internal_complaint): New function.
1578 (complain): Call vcomplain with symfile_complaint.
1579 (clear_complaints): Rewrite.
1580 (_initialize_complaints): Use add_setshow_command.
1581 * Makefile.in (complaints.o): Update dependencies.
1582 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
1583 to call to clear_complaints.
1584 (new_symfile_objfile, reread_symbols): Ditto.
1585 (oldsyms_complaint): Delete.
1586 (empty_symtab_complaint, unknown_option_complaint): Delete.
1587 (free_named_symtabs): Use complaint instead of complain.
1588
1589 2002-09-18 Michael Snyder <msnyder@redhat.com>
1590
1591 Contributed by Apple Computer, Inc. Merged with current sources
1592 by Adam Fedor <fedor@doc.com> [cagney].
1593
1594 * objc-lang.c: First clean-up round: comments, indentation.
1595 * objc-lang.h: Ditto.
1596 * objc-lang.y: Ditto.
1597
1598 2002-09-18 Andrew Cagney <ac131313@redhat.com>
1599
1600 * maint.c (maintenance_internal_error): Print the parameter as the
1601 error message.
1602 (maintenance_internal_warning): New function.
1603 (_initialize_maint_cmds): Add command `maint internal-warning'.
1604
1605 * defs.h (internal_warning, internal_vwarning): Declare.
1606 * utils.c (struct internal_problem): Define.
1607 (internal_vproblem): New function.
1608 (internal_warning): New function.
1609 (internal_vwarning): New function.
1610 (internal_warning_problem, internal_error_problem): New variables.
1611 (internal_verror): Just call internal_vproblem.
1612
1613 2002-09-18 Michael Snyder <msnyder@redhat.com>
1614
1615 * objc-lang.c: New file, support for Objective-C.
1616 Preliminary check-in, not yet integrated into gdb.
1617 * objc-lang.h: New file.
1618 * objc-exp.y: New file.
1619
1620 2002-09-18 Andrew Cagney <ac131313@redhat.com>
1621
1622 * infrun.c (signal_stop_update): Convert definition to ISO C.
1623 (signal_print_update): Ditto.
1624 (signal_pass_update): Ditto.
1625 * inflow.c (terminal_save_ours): Ditto.
1626
1627 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
1628 comments.
1629
1630 * config/djgpp/fnchange.lst: Handle name clashes between
1631 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
1632 bfd/coff-tic80.c.
1633
1634 * i386-linux-tdep.h: Fix tipo.
1635
1636 2002-09-18 Adam Fedor <fedor@gnu.org>
1637
1638 * MAINTAINERS: Add myself to the Write After Approval list.
1639
1640 2002-09-18 Jim Blandy <jimb@redhat.com>
1641
1642 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
1643 texthigh and textlow to reader-specific structs caused
1644 objfile_relocate to miss them. This is fixable, but the work that
1645 the change was supposed to prepare GDB for never got done anyway.
1646
1647 2002-09-18 David Carlton <carlton@math.stanford.edu>
1648
1649 * MAINTAINERS: Alphabetize Write After Approval list.
1650
1651 2002-09-18 Daniel Jacobowitz <drow@mvista.com>
1652
1653 Fix PR gdb/709
1654 * values.c (value_static_field): Call read_var_value.
1655
1656 2002-09-18 Andrew Cagney <ac131313@redhat.com>
1657
1658 * valops.c (hand_function_call): Align the initial stack pointer
1659 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
1660 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
1661 return value.
1662 * mips-tdep.c (mips_frame_align): New function.
1663 (mips_gdbarch_init): Set frame_align.
1664 * gdbarch.sh (FRAME_ALIGN): New method.
1665 * gdbarch.h, gdbarch.c: Re-generate.
1666
1667 2002-09-18 Michal Ludvig <mludvig@suse.cz>
1668
1669 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
1670 registers.
1671
1672 2002-09-17 Andrew Cagney <ac131313@redhat.com>
1673
1674 * NEWS: Mention that MIPS $fp behavior changed.
1675 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
1676 reference to FP_REGNUM.
1677 (mipsnbsd_cannot_store_register): Ditto.
1678 * mips-linux-nat.c: Update copyright.
1679 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
1680 (mips_linux_cannot_store_register): Ditto.
1681 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
1682 * config/mips/tm-mips.h: Update copyright.
1683 (FP_REGNUM): Delete macro.
1684 (MIPS_REGISTER_NAMES): Replace "fp" with "".
1685 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
1686 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
1687 (mips_r3041_reg_names, mips_r3051_reg_names)
1688 (mips_r3081_reg_names): Replace "fp" with "".
1689 Fix PR gdb/480.
1690
1691 2002-09-17 Theodore A. Roth <troth@verinet.com>
1692
1693 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
1694 generic_read_register_dummy() (PR gdb/703).
1695 (avr_push_return_address): #if 0 out unused vars.
1696 (avr_gdbarch_init): Enable use of avr_push_return_address().
1697
1698 2002-09-17 Michael Snyder <msnyder@redhat.com>
1699
1700 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
1701 RTE will take care of it.
1702
1703 2002-09-17 Andrew Cagney <ac131313@redhat.com>
1704
1705 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
1706 invalid, return SP_REGNUM.
1707
1708 2002-09-17 Michael Snyder <msnyder@redhat.com>
1709
1710 * mips-tdep.c (mips_pop_frame): Read saved values of floating
1711 point registers without sign extension.
1712
1713 2002-09-17 Andrew Cagney <cagney@redhat.com>
1714
1715 * blockframe.c (deprecated_read_register_dummy): Rename
1716 generic_read_register_dummy.
1717 * frame.c (frame_unwind_signed_register): New function.
1718 (frame_unwind_unsigned_register): New function.
1719 * frame.h (frame_unwind_signed_register): Declare.
1720 (frame_unwind_unsigned_register): Declare.
1721 (deprecated_read_register_dummy): Rename
1722 generic_read_register_dummy.
1723
1724 * h8300-tdep.c (h8300_frame_chain): Update.
1725 (h8300_frame_saved_pc): Update.
1726 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
1727 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
1728 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
1729 (s390_frame_chain): Update.
1730 * v850-tdep.c (v850_find_callers_reg): Update.
1731 (v850_frame_saved_pc): Update.
1732 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
1733 (m32r_find_callers_reg): Update.
1734 (m32r_frame_saved_pc): Update.
1735 * sh-tdep.c (sh_find_callers_reg): Update.
1736 (sh64_get_saved_pr): Update.
1737 (sh_init_extra_frame_info): Update.
1738 (sh_init_extra_frame_info): Update.
1739 (sh64_init_extra_frame_info): Update.
1740 (sh64_init_extra_frame_info): Update.
1741 * mcore-tdep.c (mcore_find_callers_reg): Update.
1742 (mcore_frame_saved_pc): Update.
1743 (mcore_init_extra_frame_info): Update.
1744 * i386-tdep.c (i386_frame_saved_pc): Update.
1745 * ia64-tdep.c (ia64_frame_saved_pc): Update.
1746 (ia64_init_extra_frame_info): Update.
1747 (ia64_init_extra_frame_info): Update.
1748 * d10v-tdep.c (d10v_frame_saved_pc): Update.
1749 * cris-tdep.c (cris_init_extra_frame_info): Update.
1750 * avr-tdep.c (avr_frame_chain): Update.
1751 (avr_init_extra_frame_info): Update.
1752 (avr_frame_saved_pc): Update.
1753 * arm-tdep.c (arm_find_callers_reg): Update.
1754 (arm_init_extra_frame_info): Update.
1755 (arm_frame_saved_pc): Update.
1756
1757 2002-09-17 Tom Tromey <tromey@redhat.com>
1758
1759 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
1760 is "'".
1761
1762 2002-09-17 Corinna Vinschen <vinschen@redhat.com>
1763
1764 * MAINTAINERS: Remove "non multi-arched" text from h8300.
1765 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
1766 NEXT_PROLOGUE_INSN.
1767 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
1768 NEXT_PROLOGUE_INSN.
1769
1770 2002-09-16 Joel Brobecker <brobecker@gnat.com>
1771
1772 * osfsolib.c: Remove file, replaced by solib-osf.c.
1773 * Makefile.in: Remove compilation rules for osfsolib.c.
1774
1775 2002-09-16 David Carlton <carlton@math.stanford.edu>
1776
1777 * cp-valprint.c (cp_print_class_method): Correct args to
1778 check_stub_method_group.
1779
1780 2002-09-16 Corinna Vinschen <vinschen@redhat.com>
1781
1782 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
1783 `set architecture'. Unify naming convention of functions.
1784 (h8300_skip_prologue): Improve prologue analysis.
1785 (h8300_push_arguments): Rewritten to more closely match GCC's
1786 bizarre argument-passing behavior, along with the comment describing
1787 said behavior.
1788 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
1789 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
1790 sim, remote-e7000.c, remote-hms.c and remote.c
1791
1792 2002-09-15 Mark Kettenis <kettenis@gnu.org>
1793
1794 * i386-tdep.c (gdb_print_insn_i386): Removed.
1795 (i386_print_insn): New function.
1796 (i386_gdbarch_init): Set print_insn to i386_print_insns.
1797 (_initialize_i386_tdep): Don't initialize tm_print_insn and
1798 tm_print_insn_info.
1799
1800 2002-09-14 Mark Kettenis <kettenis@gnu.org>
1801
1802 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
1803 zero.
1804
1805 2002-09-14 Corinna Vinschen <vinschen@redhat.com>
1806
1807 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
1808 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
1809 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
1810
1811 2002-09-13 Christopher Faylor <cgf@redhat.com>
1812
1813 * win32-nat.c (child_create_inferior): Honor 'tty' command.
1814
1815 2002-09-13 Daniel Jacobowitz <drow@mvista.com>
1816
1817 * gdbtypes.c (check_stub_method): Make static.
1818 (check_stub_method_group): New function.
1819 * gdbtypes.h: Update prototypes.
1820 * cp-support.c: New file.
1821 * cp-support.h: New file.
1822
1823 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
1824 (update_method_name_from_physname): New function.
1825 (read_member_functions): Correct method names for operators
1826 and v3 constructors/destructors. Separate v2 constructors and
1827 destructors.
1828 * Makefile.in (stabsread.o): Update dependencies.
1829 (SFILES): Add cp-support.c.
1830 (COMMON_OBS): Add cp-support.o.
1831 (cp_support_h, cp-support.o): Add.
1832
1833 * cp-valprint.c (cp_print_class_method): Call
1834 check_stub_method_group instead of check_stub_method. Remove
1835 extraneous QUITs.
1836 * p-valprint.c (pascal_object_print_class_method): Likewise.
1837 * valops.c (search_struct_method): Likewise.
1838 (find_method_list, value_struct_elt_for_reference): Likewise.
1839
1840 2002-09-13 Andrew Cagney <cagney@redhat.com>
1841
1842 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
1843 * gdbarch.h, gdbarch.c: Regenerate.
1844
1845 2002-09-13 Andrew Cagney <ac131313@redhat.com>
1846
1847 * frame.c (find_saved_register): Delete function.
1848 * frame.h (find_saved_register): Delete declaration.
1849 Fix PR gdb/631.
1850
1851 Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
1852
1853 * mips-tdep.c (read_next_frame_reg): Re-hack using
1854 frame_register_unwind.
1855
1856 Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
1857
1858 * mips-tdep.c (mips_get_saved_register): Re-hack using
1859 frame_register_unwind.
1860
1861 2002-09-12 Joel Brobecker <brobecker@gnat.com>
1862
1863 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
1864 vector. Will be useful for Interix.
1865 * gdbarch.h, gdbarch.c: Regenerate.
1866
1867 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
1868 name of the malloc function by NAME_OF_MALLOC.
1869
1870 2002-09-12 Joel Brobecker <brobecker@gnat.com>
1871
1872 * value.h (find_function_in_inferior): Add const keyword to
1873 one of the parameters. Allows us to invoke this function with
1874 a const char *.
1875 * valops.c (find_function_in_inferior): Likewise.
1876
1877 2002-09-12 Joel Brobecker <brobecker@gnat.com>
1878
1879 * exec.c (xfer_memory): Fix compilation warning with old versions
1880 of GCC.
1881 * tracepoint.c (trace_find_tracepoint_command): Likewise.
1882
1883 2002-09-12 David Carlton <carlton@math.stanford.edu>
1884
1885 * symtab.h: Run through gdb_indent.h.
1886 Add 2002 to Copyright year list.
1887
1888 2002-09-12 Alan Modra <amodra@bigpond.net.au>
1889
1890 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
1891 mach constants.
1892 * MAINTAINERS: Add myself to write after approval list.
1893
1894 2002-09-11 J. Brobecker <brobecker@gnat.com>
1895
1896 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
1897
1898 2002-09-11 J. Brobecker <brobecker@gnat.com>
1899
1900 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
1901 Interix.
1902
1903 2002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
1904
1905 * procfs.c (do_detach): Clear current signal, not just fault.
1906 Corrects problem with breakpoint trap signal leaking to detached
1907 process on Tru64.
1908
1909 2002-09-10 Michael Snyder <msnyder@redhat.com>
1910
1911 * buildsym.c (finish_block): Protect against null pointer.
1912
1913 2002-09-10 Andrew Cagney <cagney@redhat.com>
1914
1915 * infcmd.c (default_print_registers_info): Send all output to
1916 ``file'' instead of ``gdb_stdout''.
1917
1918 2002-09-10 Michael Snyder <msnyder@redhat.com>
1919
1920 * mips-tdep.c (mips_extract_struct_value_address): Make val a
1921 LONGEST, and use signed register read (addresses are sign-
1922 extended for mips).
1923
1924 2002-09-10 Stephane Carrez <stcarrez@nerim.fr>
1925
1926 * event-loop.c (gdb_do_one_event): Make public.
1927 * event-loop.h (gdb_do_one_event): Declare.
1928
1929 2002-09-10 Jeff Law <law@redhat.com>
1930
1931 * infttrace.c (child_resume): Simplify and rework to avoid
1932 TT_PROC_CONTINUE.
1933
1934 2002-09-09 Fred Fish <fnf@intrinsity.com>
1935
1936 * printcmd.c (print_scalar_formatted): "len" is the number of
1937 target bytes, NOT the number of target bits.
1938
1939 2002-09-09 Elena Zannoni <ezannoni@redhat.com>
1940
1941 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
1942 * top.c (init_main): Set rl_terminal_name.
1943
1944 2002-09-08 Aidan Skinner <aidan@velvet.net>
1945
1946 * ada-lang.c (ada_array_bound, ada_type_match,
1947 _initialize_ada_language): Fix K&R definitions.
1948 * ada-tasks.c (get_current_task): Fix K&R definitions.
1949 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
1950
1951 2002-09-07 Christopher Faylor <cgf@redhat.com>
1952
1953 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
1954 Add XP.
1955
1956 2002-09-06 Mark Kettenis <kettenis@gnu.org>
1957
1958 * i386-tdep.c (i386_register_virtual_type,
1959 i386_register_convertible, i386_register_convert_to_virtual,
1960 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
1961 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
1962 (i386_gdbarch_init): Fix comment. Add comments on calls that set
1963 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
1964 Don't set push_arguments twice.
1965
1966 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
1967 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
1968 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
1969 sigtramp_end to NULL.
1970 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
1971 defines.
1972 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
1973
1974 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
1975 whitespace.
1976
1977 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
1978 * gdbarch.h, gdbarch.c: Re-generate.
1979 * blockframe.c (find_pc_sect_partial_function): Convert to use
1980 SIGTRAMP_START_P predicate.
1981
1982 2002-09-05 Michael Snyder <msnyder@redhat.com>
1983
1984 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
1985 generic_dummy_frame method and old method. Also distinguish
1986 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
1987 (arm_extract_return_value): Use new regcache method.
1988
1989 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
1990 adjustment that doesn't conform to the ABI.
1991 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
1992 saved regcache, not from current regcache.
1993
1994 2002-09-05 Andrew Cagney <ac131313@redhat.com>
1995
1996 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
1997 * README: Update.
1998
1999 2002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
2000
2001 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
2002 if arm_apcs_32 is false.
2003
2004 2002-09-04 Andrew Cagney <ac131313@redhat.com>
2005
2006 GDB 5.3 branch created.
2007
2008 2002-09-03 Theodore A. Roth <troth@verinet.com>
2009
2010 * gdb/avr-tdep.c (avr_gdbarch_init): Use
2011 generic_unwind_get_saved_register.
2012
2013 2002-09-03 David Carlton <carlton@math.stanford.edu>
2014
2015 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
2016 argument (PR gdb/653). Update call to smash_to_method_type.
2017 (read_structure_scope): Update call to dwarf2_add_member_fn.
2018
2019 2002-09-03 Michal Ludvig <mludvig@suse.cz>
2020
2021 * x86-64-linux-tdep.c: Include gdb_string.h
2022 * x86-64-linux-nat.c: Ditto.
2023
2024 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
2025
2026 * ada-exp.y (yyname, yyrule): Remap global variables that appear
2027 when YYDEBUG is set to 1.
2028 * c-exp.y: Likewise.
2029 * f-exp.y: Likewise.
2030 * jv-exp.y: Likewise.
2031 * m2-exp.y: Likewise.
2032 * p-exp.y: Likewise.
2033
2034 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
2035
2036 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
2037 dependency list.
2038 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
2039 solib_svr4_fetch_link_map_offsets to
2040 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
2041 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
2042 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
2043 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
2044 solib-svr4.o, and solib-legacy.o.
2045 * config/i386/tm-nbsd.h: Include solib.h.
2046
2047 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
2048
2049 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
2050 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
2051 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
2052 comment noting that this needs its own target configuration.
2053 * config/i386/nbsd.mt: New file.
2054 * config/i386/nbsdaout.mt: Remove.
2055 * config/i386/nbsdelf.mt: Ditto.
2056 * config/i386/tm-nbsdaout.h: Ditto.
2057
2058 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
2059
2060 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
2061 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
2062 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
2063 tdep->sigtramp_end.
2064 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
2065 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
2066 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
2067
2068 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
2069
2070 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
2071 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
2072 * i386-tdep.h (i386bsd_init_abi): New prototype.
2073 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
2074 function declaration.
2075 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
2076 for NetBSD-a.out or NetBSD-ELF.
2077 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
2078 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
2079 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
2080 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
2081 and nbsd-tdep.h.
2082 (i386nbsd_pc_in_sigtramp): New function.
2083 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
2084 i386nbsd_pc_in_sigtramp.
2085 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
2086 and i386nbsdelf_init_abi OS ABI handlers.
2087 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
2088 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
2089
2090 2002-09-02 Mark Kettenis <kettenis@gnu.org>
2091
2092 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
2093 registers if the target really has them.
2094
2095 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
2096
2097 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
2098 than nbsd-tdep.h.
2099
2100 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
2101
2102 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
2103 list.
2104 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
2105 (alphanbsd_skip_sigtramp_frame): New functions.
2106 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
2107 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
2108 to alphanbsd_sigcontext_addr.
2109
2110 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
2111
2112 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
2113 list.
2114 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
2115 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
2116 nbsd_pc_in_sigtramp.
2117 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
2118 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
2119 * nbsd-tdep.c: Include gdb_string.h.
2120 (nbsd_pc_in_sigtramp): New function.
2121 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
2122 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
2123 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
2124 ppcnbsd_pc_in_sigtramp.
2125 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
2126 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
2127 shnbsd_pc_in_sigtramp.
2128 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
2129 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
2130 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
2131
2132 2002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
2133
2134 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
2135 watchpoints to NULL.
2136 (insert_breakpoints): set val field of watchpoints if NULL.
2137
2138
2139 2002-08-29 Jim Blandy <jimb@redhat.com>
2140
2141 * symtab.c (lookup_symbol_aux): In the cases where we find a
2142 minimal symbol of an appropriate name and use its address to
2143 select a symtab to read and search, use `name' (as passed to us)
2144 as the demangled name when searching the symtab's global and
2145 static blocks, not the minsym's name.
2146
2147 2002-08-29 Keith Seitz <keiths@redhat.com>
2148
2149 * stack.c (print_frame_info_base): Always set current_source_symtab
2150 and current_source_line.
2151
2152 2002-08-29 Donn Terry <donnte@microsoft.com>
2153
2154 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
2155
2156 2002-08-28 Keith Seitz <keiths@redhat.com>
2157
2158 * stack.c (select_frame): Add FIXME concerning selected-frame
2159 events.
2160 (select_frame_command): Send selected-frame-level-changed
2161 event notification, but only if the level actually changed.
2162 (up_silently_base): Add selected-frame-level-changed event
2163 notification.
2164 (down_silently_base): Likewise.
2165
2166 2002-08-28 Andrew Cagney <ac131313@redhat.com>
2167
2168 * Makefile.in: Update dependencies for all gdb/*.c files.
2169
2170 2002-08-27 Tom Tromey <tromey@redhat.com>
2171
2172 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
2173 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
2174 Update dependencies.
2175 * i387-tdep.c: Include gdb_string.h.
2176 * osabi.c: Likewise.
2177 * i386-linux-nat.c: Likewise.
2178 * lin-lwp.c: Likewise.
2179 * ax-gdb.c: Likewise.
2180 * signals/signals.c: Likewise.
2181 * jv-valprint.c: Likewise.
2182 * p-lang.c: Likewise.
2183 * c-valprint.c: Likewise.
2184 * cp-abi.c: Likewise.
2185
2186 2002-08-27 Elena Zannoni <ezannoni@redhat.com>
2187
2188 * cli/cli-script.h (copy_command_lines): Export.
2189 * breakpoint.c: Include cli/cli-script.h.
2190 * Makefile.in (breakpoint.o): Update dependencies.
2191
2192 2002-08-26 Michael Snyder <msnyder@redhat.com>
2193
2194 * breakpoint.c (insert_breakpoints): Protect all references
2195 to 'process_warning'. Shorten long lines.
2196
2197 2002-08-26 Joel Brobecker <brobecker@gnat.com>
2198
2199 * cli/cli-script.c (copy_command_lines): New function.
2200 * defs.h (copy_command_lines): Export.
2201 * testsuite/gdb.base/commands.exp: New tests for commands
2202 attached to a temporary breakpoint, and for commands that
2203 delete the breakpoint they are attached to.
2204
2205 2002-08-26 Michael Snyder <msnyder@redhat.com>
2206
2207 * breakpoint.c (bpstat_stop_status): Instead of copying the
2208 pointer to the breakpoint commands struct, make a new copy
2209 of the struct and point to that.
2210 (bpstat_clear): Free the commands struct.
2211 (bpstat_clear_actions): Free the commands struct.
2212 (bpstat_do_actions): Free the command actions. Also execute
2213 the local cleanups, instead of deleting them.
2214 (delete_breakpoint): Leave the commands field of the bpstat
2215 chain alone -- it will be freed later.
2216
2217 2002-08-26 Kevin Buettner <kevinb@redhat.com>
2218
2219 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
2220 deleted in 2002-08-20 commit. This function is still used by
2221 ppc-linux-nat.c.
2222
2223 2002-08-26 Keith Seitz <keiths@redhat.com>
2224
2225 * gdb-events.sh: Add selected-frame-level-changed event.
2226 * gdb-events.c: Regenerated.
2227 * gdb-events.h: Regenerated.
2228
2229 2002-08-26 Stephane Carrez <stcarrez@nerim.fr>
2230
2231 Fix PR gdb/393:
2232 * inflow.c (terminal_save_ours): New function to save terminal
2233 settings.
2234 * inferior.h (terminal_save_ours): Declare.
2235 * target.c (debug_to_terminal_save_ours): New function.
2236 (cleanup_target): Defaults to_terminal_save_ours.
2237 (update_current_target): Inherit to_terminal_save_ours.
2238 (setup_target_debug): Set to_terminal_save_ours.
2239 * target.h (target_terminal_save_ours): New to save terminal settings.
2240 (target_ops): New member to_terminal_save_ours.
2241 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
2242 * hpux-thread.c (init_hpux_thread_ops): Likewise.
2243 * inftarg.c (init_child_ops): Likewise.
2244 * m3-nat.c (init_m3_ops): Likewise.
2245 * procfs.c (init_procfs_ops): Likewise.
2246 * wince.c (init_child_ops): Likewise.
2247 * win32-nat.c (init_child_ops): Likewise.
2248 * sol-thread.c (init_sol_thread_ops): Likewise.
2249
2250 2002-08-26 Mark Kettenis <kettenis@gnu.org>
2251
2252 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
2253 use regcache_* functions.
2254 (i386_gdbarch_init): Set store_return_value instead of
2255 deprecated_store_return_value.
2256
2257 * regcache.c (regcache_raw_write_signed,
2258 regcache_raw_write_unsigned): New functions.
2259 * regcache.h (regcache_raw_write_signed,
2260 regcache_raw_write_unsigned): New prototypes.
2261
2262 2002-08-25 Andrew Cagney <ac131313@redhat.com>
2263
2264 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
2265 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
2266 source file dependencies. Cleanup corresponding generator rules.
2267
2268 2002-08-25 Andrew Cagney <ac131313@redhat.com>
2269
2270 * regcache.h (register_offset_hack): Declare.
2271 (regcache_cooked_read_using_offset_hack): Declare.
2272 (regcache_cooked_write_using_offset_hack): Declare.
2273
2274 * regcache.c (register_offset_hack): New function.
2275 (regcache_cooked_read_using_offset_hack): New function.
2276 (regcache_cooked_write_using_offset_hack): New function.
2277 (regcache_dump): Check that the registers, according to their
2278 offset, are packed hard against each other.
2279 (cooked_xfer_using_offset_hack): New function.
2280
2281 2002-08-25 Andrew Cagney <ac131313@redhat.com>
2282
2283 * regcache.c (struct regcache_descr): Add field register_type.
2284 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
2285 in as a parameter
2286 (init_regcache_descr): Initialize register_type. Pass the descr
2287 to init_legacy_regcache_descr. Use register_type instead of
2288 REGISTER_VIRTUAL_TYPE.
2289 (register_type): New function.
2290 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
2291 * regcache.h (register_type): Declare.
2292
2293 2002-08-25 Andrew Cagney <ac131313@redhat.com>
2294
2295 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
2296 instead of deprecated_store_return_value. Fix fallout from
2297 2002-08-23 Andrew Cagney <cagney@redhat.com>.
2298
2299 2002-08-25 Andrew Cagney <ac131313@redhat.com>
2300
2301 * regcache.c (max_register_size): New function.
2302 (init_legacy_regcache_descr): Ensure that max_register_size is
2303 large enough for REGISTER_VIRTUAL_SIZE.
2304 * regcache.h (max_register_size): Declare.
2305
2306 2002-08-24 Andrew Cagney <ac131313@redhat.com>
2307
2308 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
2309 store_return_value.
2310 (e500_extract_return_value): Change type of valbuf pointer to
2311 void.
2312
2313 2002-08-24 Mark Kettenis <kettenis@gnu.org>
2314
2315 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
2316 workaround.
2317
2318 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
2319 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
2320 long long) to prevent compiler warning on 64-bit systems.
2321
2322 2002-08-23 Andrew Cagney <cagney@redhat.com>
2323
2324 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
2325 (DEPRECATED_STORE_RETURN_VALUE): New method.
2326 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
2327 * gdbarch.h, gdbarch.c: Re-generate.
2328
2329 * values.c (set_return_value): Pass current_regcache to
2330 STORE_RETURN_VALUE.
2331 * arch-utils.h (legacy_store_return_value): Declare.
2332 * arch-utils.c (legacy_store_return_value): New function.
2333 (legacy_extract_return_value): Update parameters.
2334
2335 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
2336 STORE_RETURN_VALUE.
2337 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2338 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2339 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2340 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2341 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2342 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2343 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2344 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2345 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2346 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2347
2348 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2349 * i386-tdep.c (i386_extract_return_value): Update.
2350 * arch-utils.c (legacy_extract_return_value): Update.
2351 * frv-tdep.c (frv_gdbarch_init): Update.
2352 * cris-tdep.c (cris_gdbarch_init): Update.
2353 * d10v-tdep.c (d10v_gdbarch_init): Update.
2354 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2355 * m68k-tdep.c (m68k_gdbarch_init): Update.
2356 * mcore-tdep.c (mcore_gdbarch_init): Update.
2357 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2358 * s390-tdep.c (s390_gdbarch_init): Update.
2359 * sparc-tdep.c (sparc_gdbarch_init): Update.
2360 * sh-tdep.c (sh_gdbarch_init): Update.
2361 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
2362 * v850-tdep.c (v850_gdbarch_init): Update.
2363 * avr-tdep.c (avr_gdbarch_init): Update.
2364 * ia64-tdep.c (ia64_gdbarch_init): Update.
2365 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2366 * vax-tdep.c (vax_gdbarch_init): Update.
2367 * alpha-tdep.c (alpha_gdbarch_init): Update.
2368 * arm-tdep.c (arm_gdbarch_init): Update.
2369 * mips-tdep.c (mips_gdbarch_init): Update.
2370 * i386-tdep.c (i386_gdbarch_init): Update.
2371
2372 2002-08-23 Andrew Cagney <ac131313@redhat.com>
2373
2374 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
2375 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
2376
2377 2002-08-24 Mark Kettenis <kettenis@gnu.org>
2378
2379 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
2380 problems.
2381
2382 2002-08-23 Joel Brobecker <brobecker@gnat.com>
2383
2384 * infrun.c (handle_inferior_event): Move a comment outside of a
2385 function call, in order to avoid indent reformatting this part
2386 of the code in an unreadable way.
2387
2388 2002-08-23 Grace Sainsbury <graces@redhat.com>
2389
2390 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
2391 when breakpoints fail. Move general breakpoint error messages to
2392 insert_breakpoints.
2393 * breakpoint.c (insert_breakpoints): Change warnings when
2394 breakpoints are nto inserted to specify the type. Remove call to
2395 memory_error when hardware breakpoints can't be inserted. Remove
2396 multiple calls to warning so all messages are sent to the user at
2397 once.
2398 (delete_breakpoints): Make insert error messsages more explicit.
2399
2400 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
2401
2402 * ChangeLog: Move gdbserver entries after GDB 5.2 to
2403 gdbserver/ChangeLog.
2404
2405 2002-08-23 Mark Kettenis <kettenis@gnu.org>
2406
2407 * i386-tdep.c: Include "objfiles.h".
2408 (i386_svr4_init_abi): Set in_solib_call_trampoline and
2409 skip_trampoline_code.
2410 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
2411 (CPLUS_MARKER): Define to '.'.
2412
2413 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
2414 member.
2415 (linux_corefile_thread_callback): Increase args->num_notes.
2416 (linux_make_note_section): Initialize thread_args.num_notes, and
2417 use it to determine whether notes for any threads were created.
2418
2419 2002-08-23 Donn Terry <donnte@microsoft.com>
2420
2421 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
2422 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
2423 and PCUNKILL.
2424 (write_with_trace): Conditionalize out the switch branch handling
2425 PCSHOLD if the corresponding macro is not defined. Likewise for
2426 PRSABORT and PRSTOP.
2427 This change will be needed by the Interix port.
2428
2429 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
2430
2431 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
2432 write_register wherever possible instead of manipulating the
2433 register bytes directly.
2434 Assign VALUE_CONTENTS to a variable and use that.
2435 The GPR numbers are now dependent on the architecture.
2436
2437 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
2438
2439 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
2440 ev_offset fields.
2441 (skip_prologue): Add support for BookE/e500 instructions.
2442 (e500_extract_return_value): New function.
2443 (frame_get_saved_regs): Add support for saving ev registers and
2444 pseudo gpr's.
2445 (e500_store_return_value): New function.
2446 (rs6000_gdbarch_init): Move up default intializations of
2447 deprecated_extract_return_value and store_return_value. Overwrite
2448 init of store_return_value with e500 specific version.
2449 Set extract_return_value for e500.
2450
2451 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
2452
2453 * blockframe.c (generic_call_dummy_register_unwind): Use
2454 regcache_cooked_read to catch cases in which the variable is
2455 stored in a pseudo register.
2456
2457 2002-08-22 Andrew Cagney <cagney@redhat.com>
2458
2459 * NEWS: Mention that the i960 has been made obsolete.
2460 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
2461 i960-tdep.c
2462 (remote-nrom.o): Obsolete target.
2463 (remote-nindy.o, i960-tdep.o): Ditto.
2464 * remote-nrom.c: Make file obsolete.
2465 * remote-nindy.c, remote-vx960.c: Ditto.
2466 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
2467 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
2468 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
2469 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
2470 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
2471 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
2472 i960-*-vxworks* obsolete.
2473 * MAINTAINERS: Note that the i960 is obsolete.
2474
2475 2002-08-21 Corinna Vinschen <vinschen@redhat.com
2476
2477 * aix-thread.c (aix_thread_detach): Disable thread debugging on
2478 detach to allow reinitialization.
2479
2480 2002-08-22 Andrew Cagney <ac131313@redhat.com>
2481
2482 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
2483 attempt).
2484
2485 2002-08-22 Jim Blandy <jimb@redhat.com>
2486
2487 * coffread.c (coff_symfile_read): Don't try to read the line
2488 number table from disk if the image file doesn't have a symbol
2489 table; we'll never actually look at the info anyway, and Windows
2490 ships DLL's with bogus file offsets for the line number data.
2491
2492 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
2493
2494 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
2495 an e500 executable.
2496
2497 2002-08-21 Michael Snyder <msnyder@redhat.com>
2498
2499 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
2500 (MSYMBOL_SIZE): Replace macro with function.
2501 (DEFAULT_MIPS_TYPE): Delete unused macro.
2502 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
2503 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
2504
2505 2002-08-21 Jim Blandy <jimb@redhat.com>
2506
2507 * valops.c (value_cast): Simplify and correct logic for doing a
2508 static cast from a pointer to a base class to a pointer to a
2509 derived class.
2510
2511 2002-08-21 Andrew Cagney <ac131313@redhat.com>
2512
2513 * infcmd.c (default_print_registers_info): Replace
2514 do_registers_info.
2515 (registers_info): Use gdbarch_print_registers_info instead of
2516 DO_REGISTERS_INFO.
2517 * inferior.h (default_print_registers_info): Replace
2518 do_registers_info.
2519 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
2520 (DO_REGISTERS_INFO): Change to a predicate function.
2521 * gdbarch.h, gdbarch.c: Regenerate.
2522
2523 2002-08-21 Keith Seitz <keiths@redhat.com>
2524
2525 * gdb-events.sh: Add target-changed event.
2526 * gdb-events.c: Regenerated.
2527 * gdb-events.c: Regenerated.
2528 * valops.c (value_assign): Add target-changed event notification
2529 to inlval_register, lval_memory, and lval_reg_frame_relative.
2530
2531 2002-08-21 Joel Brobecker <brobecker@gnat.com>
2532
2533 * NEWS: Add an entry regarding the improvement of the next/step
2534 operation on Alpha Tru64 multi-processor machines.
2535
2536 2002-08-21 Andrew Cagney <ac131313@redhat.com>
2537
2538 * Makefile.in: Update dependencies for mi/ cli/ and tui/
2539 directores.
2540 * Makefile.in: Update all _h macro definitions.
2541 * Makefile.in (install-gdbtk): Move to install section.
2542 (rdi-share/libangsd.a): Move to end of file.
2543
2544 2002-08-19 Andrew Cagney <ac131313@redhat.com>
2545
2546 * frame.c (frame_register_unwind): When a register, set addrp to
2547 the register's byte.
2548
2549 2002-08-20 Michael Snyder <msnyder@redhat.com>
2550
2551 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
2552 used locally, so move them from the target machine header to here.
2553 (mips_set_processor_type, mips_register_name, mips32_next_pc,
2554 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
2555 Make static.
2556 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
2557
2558 2002-08-20 Andrew Cagney <cagney@redhat.com>
2559
2560 * NEWS: Mention that the Apollo line was made obsolete.
2561 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
2562 m68*-hp-hpux* obsolete.
2563 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
2564 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
2565 * buildsym.c (make_blockvector): Make static.
2566 * buildsym.h (make_blockvector): Make extern declaration obsolete.
2567 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
2568 (ALLDEPFILES): Remove dstread.c.
2569 (dstread.o): Obsolete make rule.
2570 * dstread.c: Makefile obsolete.
2571 * dst.h: Ditto.
2572 * config/m68k/hp300hpux.mt: Ditto.
2573 * config/m68k/hp300hpux.mh: Ditto.
2574 * config/m68k/hp300bsd.mt: Ditto.
2575 * config/m68k/hp300bsd.mh: Ditto.
2576 * config/m68k/apollo68b.mt: Ditto.
2577 * config/m68k/apollo68v.mh: Ditto.
2578 * config/m68k/apollo68b.mh: Ditto.
2579
2580 2002-08-20 Michael Snyder <msnyder@redhat.com>
2581
2582 * mips-tdep.c (mips_in_return_stub): Make static.
2583 (mips_gdbarch_init): Set in_solib_return_trampoline.
2584 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
2585
2586 2002-08-20 Michael Snyder <msnyder@redhat.com>
2587
2588 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
2589 * gdbarch.c, gdbarch.h: Regenerate.
2590 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
2591 Add.
2592 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
2593
2594 2002-08-20 Michael Snyder <msnyder@redhat.com>
2595
2596 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
2597 (mips_gdbarch_init): Set skip_trampoline_code,
2598 in_solib_call_trampoline.
2599 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
2600 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
2601
2602 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
2603
2604 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
2605
2606 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
2607 vector type for ev registers.
2608 (e500_pseudo_register_read): New function.
2609 (e500_pseudo_register_write): New function.
2610 (e500_dwarf2_reg_to_regnum): New function.
2611 (PPC_UISA_NOFP_SPRS): New macro.
2612 (PPC_EV_REGS): New macro.
2613 (PPC_GPRS_PSEUDO_REGS): New macro.
2614 (registers_e500): New register set for e500.
2615 (variants): Add e500 variant.
2616 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
2617 before setting architectural dependent variations. Initialize ev
2618 registers numbers. Add case for e500 architecture. Set the
2619 number of pseudo registers.
2620
2621 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
2622
2623 * rs6000-tdep.c: Clean up comments.
2624
2625 2002-08-20 Andrew Cagney <cagney@redhat.com>
2626
2627 * h8300-tdep.c: Re-indent file.
2628
2629 2002-08-20 Jim Blandy <jimb@redhat.com>
2630
2631 * Makefile.in (LDFLAGS): Allow the configure script to establish a
2632 default for this.
2633
2634 2002-08-20 Keith Seitz <keiths@redhat.com>
2635
2636 * breakpoints.c (watch_command_1): Use internal breakpoint
2637 when setting a watchpoint_scope breakpoint.
2638
2639 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
2640
2641 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
2642 (build_builtin_type_vec64i): Ditto.
2643 (build_builtin_type_vec128): Ditto.
2644 (build_builtin_type_vec128i): Ditto.
2645
2646 2002-08-19 Michael Snyder <msnyder@redhat.com>
2647
2648 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
2649 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
2650 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
2651 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
2652 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
2653 CALL_DUMMY_ADDRESS): Delete.
2654 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
2655 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
2656 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
2657 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
2658 push_return_address.
2659 (mips_register_raw_size, mips_eabi_use_struct_convention,
2660 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
2661 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
2662 mips_init_extra_frame_info, mips_eabi_push_arguments,
2663 mips_n32n64_push_arguments, mips_push_return_address,
2664 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
2665 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
2666
2667 2002-08-19 Michael Snyder <msnyder@redhat.com>
2668
2669 * mips-tdep.c (mips_frame_num_args): New function.
2670 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
2671 frame_saved_pc, frame_args_address, frame_locals_address,
2672 frame_num_args, and frame_args_skip.
2673 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
2674 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
2675 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
2676 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
2677
2678 2002-08-20 Michael Snyder <msnyder@redhat.com>
2679
2680 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
2681 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
2682 * mips-tdep.c (mips_store_struct_return): New function.
2683 (mips_extract_struct_value_address): New function.
2684 (mips_gdbarch_init): Set store_struct_return and
2685 extract_struct_value_address.
2686
2687 2002-08-20 David Carlton <carlton@math.stanford.edu>
2688
2689 * dwarf2read.c (dwarf2_build_psymtabs): Check that
2690 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
2691 (read_file_scope): Check that line_header is nonzero before
2692 decoding macro information.
2693
2694 2002-08-20 Mark Kettenis <kettenis@gnu.org>
2695
2696 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
2697 flag the general-purpose registers as floating-point on targets
2698 that don't support the floating-point registers.
2699
2700 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
2701
2702 * rs6000-tdep.c (altivec_register_p): Delete.
2703 (rs6000_do_altivec_registers): Delete.
2704 (rs6000_altivec_registers_info): Delete.
2705 (rs6000_do_registers_info): Delete.
2706 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
2707 (rs6000_gdbarch_init): Remove setting of do_registers_info.
2708
2709 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
2710
2711 * infcmd.c (do_registers_info): Print vector registers in hex
2712 format only.
2713 (print_vector_info): Check that printing registers
2714 makes sense.
2715 (print_float_info): Ditto.
2716
2717 2002-08-20 Andrew Cagney <ac131313@redhat.com>
2718
2719 * mips-tdep.c (mips_gdbarch_init): Update.
2720 (mips_o32_extract_return_value): Rewrite.
2721 (mips_o32_store_return_value): Rewrite.
2722 (mips_o32_xfer_return_value): New function.
2723 (mips_xfer_register): Tweak debug print message. Allow for
2724 buf_offset when dumping the value transfered.
2725
2726 2002-08-20 Andrew Cagney <ac131313@redhat.com>
2727
2728 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
2729 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
2730 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
2731 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
2732 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
2733
2734 2002-08-14 Michael Snyder <msnyder@redhat.com>
2735
2736 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
2737
2738 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
2739
2740 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
2741 register.
2742 (P): New macro to define a register as a pseudo register.
2743 (R, R4, R8, R16, FR32, R64, R0): Updated.
2744 (struct variant): Add new fields for number of pseudo registers
2745 and number of total registers.
2746 (tot_num_registers): New macro replacing....
2747 (num_registers): ...deleted macro.
2748 (num_registers): New function.
2749 (num_pseudo_registers): New function.
2750 (variants): Update all variants to intialize new fields correctly.
2751 Postpone initialization of number of pseudo regs and real regs.
2752 (init_variants): New function.
2753 (rs6000_gdbarch_init): Initialize variants. Update calculation of
2754 registers offsets.
2755
2756 2002-08-19 David Carlton <carlton@math.stanford.edu>
2757
2758 * valops.c (search_struct_field): Change error message to treat
2759 return value of 0 from value_static_field as meaning that field is
2760 optimized out.
2761 (value_struct_elt_for_reference): Ditto.
2762 * values.c (value_static_field): Treat an unresolved location the
2763 same as a nonexistent symbol. Fix PR gdb/635.
2764 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
2765 enclosed. Fix PR gdb/574.
2766 * MAINTAINERS: Add self to Write After Approval list.
2767
2768 2002-08-19 Andrew Cagney <ac131313@redhat.com>
2769
2770 * mips-tdep.c (mips_xfer_register): New function.
2771 (mips_n32n64_extract_return_value): Rewrite.
2772 (mips_gdbarch_init): For N32 and N64, set extract_return_value
2773 instead of deprecated_extract_return_value.
2774
2775 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
2776
2777 * rs6000-tdep.c (TDEP): Delete macro.
2778 (branch_dest): Replace use of TDEP macro with its body.
2779 (rs6000_pop_frame): Ditto.
2780 (rs6000_push_arguments): Ditto.
2781 (rs6000_skip_trampoline_code): Ditto.
2782 (rs6000_frame_saved_pc): Ditto.
2783 (rs6000_frame_chain): Ditto.
2784 (rs6000_register_name): Ditto.
2785 (rs6000_register_byte): Ditto.
2786 (rs6000_register_raw_size): Ditto.
2787 (rs6000_register_virtual_type): Ditto.
2788 (rs6000_register_convertible): Ditto.
2789 (rs6000_convert_from_func_ptr_addr): Ditto.
2790
2791 2002-08-19 Daniel Jacobowitz <drow@mvista.com>
2792
2793 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
2794 conditionally.
2795 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
2796 MIPS_LINUX_JB_ELEMENT_SIZE.
2797 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
2798 for MAX_REGISTER_RAW_SIZE arrays.
2799 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
2800 MIPS_LINUX_JB_ELEMENT_SIZE.
2801
2802 2002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
2803
2804 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
2805
2806 2002-08-19 Aidan Skinner <aidan@velvet.net>
2807
2808 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
2809 ada-valprint.c ada-tasks.c.
2810 (YYFILES): Add ada-exp.y.
2811 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
2812 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
2813 (ada-exp.tab.o): New target.
2814
2815 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2816
2817 * regcache.c (regcache_xfer_part): New function.
2818 (regcache_raw_read_part): New function.
2819 (regcache_raw_write_part): New function.
2820 (regcache_cooked_read_part): New function.
2821 (regcache_cooked_write_part): New function.
2822 * regcache.h (regcache_raw_read_part): Declare.
2823 (regcache_raw_write_part): Declare.
2824 (regcache_cooked_read_part): Declare.
2825 (regcache_cooked_write_part): Declare.
2826
2827 2002-08-18 Daniel Jacobowitz <drow@mvista.com>
2828
2829 * remote.c (remote_open_1): Add async_p.
2830 (remote_async_open_1): Delete.
2831 (open_remote_target): Delete.
2832 (remote_open, extended_remote_open): Update calls to remote_open_1.
2833 (remote_async_open, extended_remote_async_open): Call
2834 remote_open_1 instead of remote_async_open_1.
2835
2836 2002-08-19 Mark Kettenis <kettenis@gnu.org>
2837
2838 * blockframe.c: Fix a few coding standard violations.
2839
2840 2002-08-19 Mark Kettenis <kettenis@gnu.org>
2841
2842 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
2843 here from ...
2844 * config/i386/tm-i386sco5.h: ... here. File removed.
2845 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
2846
2847 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
2848 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
2849 (TM_FILE): Set to tm-i386.h.
2850 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
2851 * config/i386/tm-i386v.h: Remove file.
2852 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
2853 instead of "i386/tm-i386v.h".
2854 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
2855 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
2856 "i386/tm-i386v.h".
2857 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
2858 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
2859 "i386/tm-i386.h".
2860
2861 2002-08-18 Mark Kettenis <kettenis@gnu.org>
2862
2863 * config/i386/nm-i386v.h: Add protection against
2864 multiple-inclusion.
2865 (i386_register_u_addr): Remove prototype.
2866 (register_u_addr): New prototype.
2867 (REGISTER_U_ADDR): Redefine accordingly.
2868 * i386v-nat.c: Improve several comments.
2869 (i386_register_u_addr): Change signature and rename to
2870 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
2871 ubase variable.
2872
2873 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2874
2875 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
2876 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
2877 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
2878 deprecated_extract_return_value.
2879 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
2880 rename mips_o32o64_push_arguments.
2881 (mips_gdbarch_init): Update.
2882 (mips_extract_return_value): Delete.
2883 (mips_o32_extract_return_value): Clone mips_extract_return_value.
2884 (mips_o64_extract_return_value): Clone mips_extract_return_value.
2885 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
2886 (mips_n32n64_extract_return_value): Clone
2887 mips_extract_return_value.
2888 (mips_store_return_value): Delete.
2889 (mips_o32_store_return_value): Clone mips_store_return_value.
2890 (mips_o64_store_return_value): Clone mips_store_return_value.
2891 (mips_eabi_store_return_value): Clone mips_store_return_value.
2892 (mips_n32n64_store_return_value): Clone mips_store_return_value.
2893
2894 2002-08-18 Aidan Skinner <aidan@velvet.net>
2895
2896 * ada-lang.c: Use gdb_string.h instead of <string.h>.
2897 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
2898
2899 2002-08-18 Aidan Skinner <aidan@velvet.net>
2900
2901 * ada-lang.c: Run through gdb_indent.sh.
2902 * ada-lang.h: Run through gdb_indent.sh.
2903 * ada-tasks.c: Run through gdb_indent.sh.
2904 * ada-typeprint.c: Run through gdb_indent.sh.
2905 * ada-valprint.c: Run through gdb_indent.sh.
2906
2907 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2908
2909 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
2910 ABI.
2911
2912 2002-08-18 Mark Kettenis <kettenis@gnu.org>
2913
2914 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
2915
2916 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
2917 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
2918
2919 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
2920 write_register_gen instead of write_register_bytes.
2921
2922 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
2923 i[3456]-*-osf1mk* configurations have been made obsolete.
2924 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
2925 i[3456]86-*-osf1mk* hosts obsolete.
2926 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
2927 targets obsolete.
2928 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
2929 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
2930 config/i386/i386m3.mt, config/i386/nm-m3.h,
2931 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
2932 config/i386/i386mk.mh, config/i386/i386mk.mt,
2933 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
2934 obsolete.
2935 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
2936 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
2937 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
2938
2939 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2940
2941 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
2942 (hppa_value_returned_from_stack): Declare.
2943 (hppa_extract_return_value): Declare.
2944 * config/pa/hppa.mt: New file.
2945 * configure.tgt: Recognize hppa*-*-*.
2946 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
2947
2948 2002-08-18 Mark Kettenis <kettenis@gnu.org>
2949
2950 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
2951 comment.
2952
2953 2002-08-17 Mark Kettenis <kettenis@gnu.org>
2954
2955 * top.c (gdb_rl_operate_and_get_next): Make sure
2956 operate-and-get-next functions correctly even when the history
2957 list is completely filled.
2958
2959 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2960
2961 * MAINTAINERS (Target Instruction Set Architectures): Rename
2962 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
2963 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
2964 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
2965 already listed under Host/Native.
2966
2967 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
2968 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
2969 mips*-*-*.
2970
2971 2002-08-17 Andrew Cagney <ac131313@redhat.com>
2972
2973 * config/ia64/ia64.mt: New file.
2974 * config/alpha/alpha.mt: New file.
2975 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
2976 ia64-linux-gnu. Mention that ia64-elf is broken.
2977 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
2978
2979 2002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
2980
2981 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
2982 generic_func_frame_valid instead of func_frame_valid.
2983
2984 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2985
2986 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
2987 procfs appears to be broken when debugging on multi-processor
2988 machines. So enable software single stepping in order to avoid
2989 using the procfs interface to do next/step operations, using
2990 internal breakpoints instead.
2991
2992 * infrun.c (handle_inferior_event): Readjust the stop_pc by
2993 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
2994 make this pc address equal to the value it would have if the
2995 system stepping capability was used. Also set a new flag used
2996 to ensure that we don't readjust the PC one more time later.
2997
2998 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
2999 address by DECR_PC_AFTER_BREAK when software single step is
3000 in use for this architecture, as this has already been taken
3001 care of in handle_inferior_event().
3002
3003 2002-08-16 Joel Brobecker <brobecker@gnat.com>
3004
3005 * infrun.c (handle_inferior_event): Minor reformatting, to make
3006 a rather long condition expression easier to read.
3007
3008 2002-08-16 Andrew Cagney <ac131313@redhat.com>
3009
3010 * Makefile.in (gdbtk.o): Move to end of file.
3011 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
3012 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
3013 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
3014 (gdbtk-wrapper.o, gdbres.o): Ditto.
3015
3016 2002-08-16 Andrew Cagney <ac131313@redhat.com>
3017
3018 * Makefile.in (copying.o): Separate out compile rule.
3019 (hpux-thread.o, procfs.o, signals.o): Ditto.
3020 (v850ice.o, z8k-tdep.o): Ditto.
3021 (tui-file.o): Move to TUI section.
3022 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
3023 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
3024
3025 2002-08-16 Joel Brobecker <brobecker@gnat.com>
3026
3027 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
3028 skip_trampoline_code, for better namespace-proofing.
3029
3030 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
3031
3032 2002-08-16 Joel Brobecker <brobecker@gnat.com>
3033
3034 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
3035
3036 2002-08-16 Joel Brobecker <brobecker@gnat.com>
3037
3038 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
3039 signal, check whether we hit a breakpoint before checking for a
3040 single step breakpoint. Otherwise, GDB fails to notice that a
3041 breakpoint has been hit when stepping onto a breakpoint.
3042
3043 2002-08-16 Keith Seitz <keiths@redhat.com>
3044
3045 * gdb-events.sh (clear_gdb_event_hooks): New function.
3046 * gdb-events.c: Regenerate.
3047 * gdb-events.h: Regenerate.
3048
3049 2002-08-16 Andrew Cagney <ac131313@redhat.com>
3050
3051 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
3052 not_a_sw_breakpoint.
3053 * breakpoint.h (bpstat_stop_status): Add parameter names.
3054
3055 2002-08-16 Grace Sainsbury <graces@redhat.com>
3056
3057 * remote.c (remote_insert_hw_breakpoint)
3058 (remote_remove_hw_breakpoint): Fix calculation of length field
3059 for Z-packet.
3060
3061 2002-08-15 Michael Snyder <msnyder@redhat.com>
3062
3063 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
3064 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
3065 (supply_fpregset): Ditto.
3066
3067 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
3068 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
3069 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
3070 (TARGET_READ_SP): Delete.
3071 (DO_REGISTERS_INFO): Delete.
3072 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
3073 Delete.
3074 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
3075 from macros to functions.
3076
3077 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
3078 (mips_register_convertible, mips_register_convert_to_virtual,
3079 mips_register_convert_to_raw): Make static.
3080 (mips_read_sp): New function.
3081 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
3082 (mips_do_registers_info): Make static.
3083 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
3084 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
3085 (mips_register_convert_from_type, mips_register_convert_to_type):
3086 New functions.
3087 (mips_gdbarch_init): Set up function_start_offset,
3088 register_virtual_size, pc_in_sigtramp.
3089
3090 2002-08-15 Andrew Cagney <ac131313@redhat.com>
3091
3092 * infcmd.c (vector_info): New function.
3093 (_initialize_infcmd): Add command "info vector".
3094 (print_vector_info): New function.
3095
3096 * gdbarch.sh (PRINT_VECTOR_INFO): New method
3097 * gdbarch.h, gdbarch.c: Regenerate.
3098
3099 2002-08-15 Andrew Cagney <ac131313@redhat.com>
3100
3101 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
3102 ``print_all''. Only print vector registers when ``print_all''.
3103
3104 2002-08-15 Andrew Cagney <ac131313@redhat.com>
3105
3106 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
3107 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
3108
3109 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
3110 Add `args' parameter.
3111 * gdbarch.h, gdbarch.c: Regenerate.
3112
3113 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
3114
3115 * infcmd.c (float_info): Call print_float_info.
3116 (print_float_info): New function. By default, print the
3117 floating-point registers.
3118
3119 * arch-utils.h (default_print_float_info): Delete declaration.
3120 * arch-utils.c (default_print_float_info): Delete function.
3121
3122 2002-08-16 Mark Kettenis <kettenis@gnu.org>
3123
3124 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
3125 out define.
3126
3127 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
3128 FRAME.
3129
3130 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
3131 * configure.host: Make i[3456]86-*-aix host obsolete.
3132 * configure.tgt: Make i[3456]86-*-aix target obsolete.
3133 * config/i386/i386aix.mh, config/i386/i386aix.mt,
3134 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
3135 config/i386/xm-i386aix.h: Make files obsolete.
3136 * i386aix-nat.c: Make file obsolete.
3137 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
3138 (i386aix-nat.o): Make target obsolete.
3139
3140 * config/i386/nm-gnu.h: Removed.
3141 * config/i386/nm-i386gnu.h: New file.
3142 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
3143 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
3144 Moved here from ...
3145 * config/i386/tm-i386gnu.h: ... here. Removed.
3146 * config/i386/xm-i386gnu.h: Removed.
3147 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
3148 (NAT_FILE): Set to nm-i386gnu.h.
3149 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
3150 * i386-tdep.c: New file.
3151 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
3152 (i386gnu-tdep.o): Specify dependencies.
3153
3154 2002-08-15 Mark Kettenis <kettenis@gnu.org>
3155
3156 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
3157 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
3158 Adjust a few comments to reflect reality a bit closer.
3159 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
3160 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
3161 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
3162 target_insert_watchpoint, target_remove_watchpoint):
3163 Move defines to ...
3164 * config/i386/nm-i386sco5.h: ... here.
3165 (kernel_u_size): Add prototype. Improve a few comments and add
3166 protection against multiple inclusion.
3167
3168 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
3169 out define.
3170
3171 * uw-thread.c (SP_ARG0): Define if not already defined.
3172 * config/i386/tm-i386.h (SO_ARG0): Remove define.
3173
3174 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
3175
3176 * config/i386/tm-i386.h: Don't include "regcache.h".
3177
3178 * i387-tdep.h (i387_print_float_info): New prototype.
3179 * i387-tdep.c (print_i387_value, print_i387_ext,
3180 print_i387_status_word, print_i387_control_word): Add `struct
3181 ui_file *' argument and use it for output.
3182 (i387_print_float_info): Renamed from i387_float_info. Add
3183 `struct gdbarch *' and `struct ui_file *' arguments and use the
3184 latter for output.
3185 * i386-tdep.c: Include "i387-tdep.h".
3186 (i386_gdbarch_init): Set print_float_info.
3187 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
3188 (FLOAT_INFO): Remove define.
3189
3190 2002-08-13 Michael Snyder <msnyder@redhat.com>
3191
3192 * mips-tdep.c (mips_push_arguments): Rename to
3193 mips_eabi_push_arguments, and tune for EABI.
3194 (MIPS_REGS_HAVE_HOME_P): Delete.
3195 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
3196 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
3197 Delete references to mips_regs_have_home_p.
3198
3199 2002-08-14 Keith Seitz <keiths@redhat.com>
3200
3201 * Makefile.in (install-gdbtk): Create insight plugin directory.
3202 Install plugins.tcl file.
3203
3204 2002-08-14 Keith Seitz <keiths@redhat.com>
3205
3206 * configure.in: Move SUBDIRS to near top of the file so that
3207 --enable options may add things to it.
3208 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
3209 * configure: Regenerate.
3210
3211 2002-08-13 Michael Snyder <msnyder@redhat.com>
3212
3213 * mips-tdep.c (mips_o32o64_push_arguments): New function,
3214 cloned from mips_push_arguments, tuned for o32/o64 ABI.
3215 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
3216
3217 2002-08-13 Andrew Cagney <ac131313@redhat.com>
3218
3219 * vax-tdep.c (vax_get_saved_register): Delete function.
3220 (vax_gdbarch_init): Update.
3221 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
3222 (ns32k_gdbarch_init): Update.
3223 * alpha-tdep.c (alpha_get_saved_register): Delete function.
3224 (alpha_gdbarch_init): Update.
3225
3226 2002-08-13 Andrew Cagney <cagney@redhat.com>
3227
3228 * regcache.c (init_regcache_descr): Overallocate the
3229 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
3230 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
3231 nr_raw_registers.
3232 (set_register_cached): Add range checking assertions. Use
3233 current_regcache.
3234
3235 2002-08-13 Mark Kettenis <kettenis@gnu.org>
3236
3237 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
3238 numbers for MMX registers.
3239
3240 2002-08-13 Andrew Cagney <cagney@redhat.com>
3241
3242 * i386-tdep.c (i386_gdbarch_init): Use
3243 generic_unwind_get_saved_register.
3244
3245 2002-08-13 Kevin Buettner <kevinb@redhat.com>
3246
3247 * procfs.c (procfs_can_use_hw_breakpoint): New function.
3248 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
3249 target vector.
3250 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
3251 Delete. Add comment regarding this now-deleted target method.
3252
3253 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
3254
3255 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
3256 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
3257 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
3258 real PC and the page number (if it's within the memory bank window).
3259 (m68hc11_pseudo_register_write): Likewise when saving.
3260 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
3261 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
3262 (m68hc11_register_raw_size): And use 32-bit for it.
3263 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
3264 16K memory bank is used by the prog; also use the virtual pc.
3265
3266 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
3267
3268 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
3269 (m68hc11_gdbarch_init): Install it in gdbarch.
3270 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
3271 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
3272 (MSYMBOL_SIZE): New for documentation.
3273 (insn_return_kind): Enum to specify how a function returns.
3274 (frame_extra_info): Cleanup and record the return mode.
3275 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
3276 register in address computation.
3277 (m68hc11_get_return_insn): New to obtain the return instruction used
3278 by the function.
3279 (m68hc11_frame_init_saved_regs): Take into account the return
3280 instruction used by the function for far and interrupt functions.
3281 (m68hc11_init_extra_frame_info): Take into account page register.
3282 (m68hc11_frame_args_address): Adjust according to the return mode.
3283 (show_regs): Print page register only when it's used.
3284
3285 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
3286
3287 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
3288 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
3289 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
3290 registers.
3291 (m68hc11_register_raw_size): Likewise.
3292
3293 2002-08-13 Andrew Cagney <cagney@redhat.com>
3294
3295 * i386-tdep.c (i386_register_name): Handle mmx registers.
3296 (mmx_regnum_p): New function.
3297 (i386_mmx_names): New array.
3298 (mmx_num_regs): New variable.
3299 (i386_pseudo_register_read): New function.
3300 (i386_pseudo_register_write): New function.
3301 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
3302
3303 * regcache.c (regcache_raw_read_unsigned): New function.
3304 (regcache_raw_read_signed): New function.
3305 * regcache.h (regcache_raw_read_unsigned): Declare.
3306 (regcache_raw_read_signed): Declare.
3307
3308 2002-08-13 Andrew Cagney <cagney@redhat.com>
3309
3310 * regcache.c (regcache_raw_read_as_address): Delete function.
3311 (regcache_cooked_read_signed): New function.
3312 (regcache_cooked_read_unsigned): New function.
3313 * regcache.h (regcache_cooked_read_signed): Declare.
3314 (regcache_cooked_read_unsigned): Declare.
3315 (regcache_raw_read_as_address): Delete declaration.
3316
3317 * blockframe.c (generic_read_register_dummy): Use
3318 regcache_cooked_read_unsigned.
3319 * i386-tdep.c (i386_extract_struct_value_address): Use
3320 regcache_cooked_read_unsigned.
3321
3322 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
3323
3324 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
3325 double sizes according to ELF ABI flags.
3326 (gdbarch_tdep): Record elf_flags.
3327
3328 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
3329
3330 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
3331 (m6812_prolog): They can appear in 68HC12 function prologue.
3332 (m68hc11_frame_chain): Cleanup.
3333
3334 2002-08-12 Andrew Cagney <cagney@redhat.com>
3335
3336 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
3337 declarations.
3338 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
3339 (i386_linux_register_raw_size): Delete function.
3340 (i386_linux_init_abi): Update.
3341 * i386-tdep.c (i386_register_raw_size): Delete function.
3342 (i386_register_byte): Delete function.
3343 (i386_gdbarch_init): Update.
3344 (i386_register_size): Delete array.
3345 (i386_register_offset): Delete array.
3346
3347 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
3348 (REGISTER_RAW_SIZE): Delete macro.
3349 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
3350 (REGISTER_BYTE): Delete macro.
3351
3352 2002-08-11 Aidan Skinner <aidan@velvet.net>
3353
3354 * ada-lang.c (ada_lookup_partial_symbol)
3355 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
3356 prototype names so that grep ^func works properly.
3357
3358 * ada-lang.c (ada_array_element_type)
3359 (ada_lookup_partial_symbol): Fix typos in parameter list.
3360
3361 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
3362 Fix prototype names so that grep ^func works properly.
3363
3364 2002-08-10 Andrew Cagney <cagney@redhat.com>
3365 Elena Zannoni <ezannoni@redhat.com>
3366 Martin M. Hunt <hunt@redhat.com>
3367
3368 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
3369 (build_builtin_type_vec128i): Set the vector bit.
3370 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
3371 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
3372 (build_builtin_type_vec64): New function.
3373 (build_builtin_type_vec64i): New function.
3374 (build_gdbtypes): Initialize builtin_type_vec64 and
3375 builtin_type_vec64i.
3376
3377 2002-08-09 Andrew Cagney <cagney@redhat.com>
3378
3379 * regcache.c (regcache_dump): Compare the register offset
3380 with REGISTER_BYTE.
3381 * arch-utils.c (generic_register_byte): New function.
3382 * arch-utils.h (generic_register_byte): Declare.
3383 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
3384 * gdbarch.h, gdbarch.c: Regenerate.
3385
3386 2002-08-09 Andrew Cagney <cagney@redhat.com>
3387
3388 * regcache.c: Include "gdbcmd.h"
3389 (_initialize_regcache): Add commands "maintenance print
3390 registers", "maintenance print raw-registers" and "maintenance
3391 print cooked-registers".
3392 (enum regcache_dump_what): Define.
3393 (dump_endian_bytes): New function.
3394 (regcache_dump): New function.
3395 (regcache_print): New function.
3396 (maintenance_print_registers): New function.
3397 (maintenance_print_raw_registers): New function.
3398 (maintenance_print_cooked_registers): New function.
3399 * Makefile.in (regcache.o): Update dependencies.
3400
3401 2002-08-09 Michael Snyder <msnyder@redhat.com>
3402
3403 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
3404 (mips_push_arguments): Correct some comments. Use paddr_nz
3405 for printing addresses in debug output. Replace static
3406 allocation using MAX_REGISTER_RAW_SIZE with alloca.
3407 (mips_n32n64_push_arguments): New function, cloned from
3408 mips_push_arguments and tuned for the n32/n64 ABI.
3409 (mips_push_register): Buffer needs dynamic allocation.
3410 (mips_print_register): Ditto.
3411 (do_gp_register_row): Ditto.
3412 (mips_store_return_value): Ditto.
3413 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
3414
3415 2002-08-09 Don Howard <dhoward@redhat.com>
3416
3417 * memattr.c (mem_info_command): Print special case of upper bound
3418 as max CORE_ADDR + 1.
3419
3420 2002-08-08 Michael Snyder <msnyder@redhat.com>
3421
3422 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
3423 returns structs by ref if they're too big to fit in two registers.
3424
3425 2002-08-09 Kevin Buettner <kevinb@redhat.com>
3426
3427 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
3428 saved regs value.
3429 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
3430 mips_find_saved_regs().
3431 (mips_pop_frame): Likewise.
3432
3433 2002-08-09 Kevin Buettner <kevinb@redhat.com>
3434
3435 * blockframe.c (frame_saved_regs_register_unwind): Revise
3436 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
3437 frames are in use.
3438
3439 2002-08-09 Grace Sainsbury <graces@redhat.com>
3440
3441 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
3442 T-packets; the 'a' is not taken as a register number.
3443 (remote_check_watch_resources, remote_stopped_by_watchpoint)
3444 (remote_stopped_data_address): New functions; add to target
3445 vector.
3446 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
3447 prototypes to match other implementations of this
3448 function. replace integer argument with pointer -- the length
3449 field in the Z-packet is the length of what is pointed to or 1 if
3450 pointer is null. Add to target vector.
3451 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
3452 target vector.
3453
3454 From Mark Salter:
3455 * remote.c (remote_wait): Add support to extract optional
3456 watchpoint information from T-packet. Ignore unrecognized
3457 optional info in T-packet.
3458 (remote_async_wait): Ditto.
3459
3460 2002-08-09 Corinna Vinschen <vinschen@redhat.com>
3461
3462 * cli/cli-dump.c: Change fopen modes to use binary open modes
3463 as defined in include/fopen-bin.h throughout.
3464
3465 2002-08-08 Michael Snyder <msnyder@redhat.com>
3466
3467 * mips-tdep.c: Minor whitespace and indentation clean-ups.
3468
3469 2002-08-08 Kevin Buettner <kevinb@redhat.com>
3470
3471 * doublest.c (store_floating): Avoid floatformat_from_doublest()
3472 assertion failure by returning early after a warning.
3473
3474 2002-08-08 Kevin Buettner <kevinb@redhat.com>
3475
3476 * mips-tdep.c (mips_find_saved_regs): Make static.
3477 (mips_frame_init_saved_regs): New function.
3478 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
3479 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
3480 (mips_find_saved_regs): Delete declaration.
3481
3482 2002-08-08 Grace Sainsbury <graces@redhat.com>
3483
3484 * remote.c (remote_wait, remote_async_wait): Change
3485 thread_num from int to ULONGEST.
3486 (unpack_varlen_hex): Change result parameter from
3487 int * to ULONGEST *.
3488
3489 2002-08-08 Andrew Cagney <ac131313@redhat.com>
3490
3491 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
3492 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
3493 powerpc*-*-*.
3494 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
3495
3496 2002-08-08 Andrew Cagney <cagney@redhat.com>
3497
3498 * gcore.c (override_derive_stack_segment): Delete variable.
3499 (preempt_derive_stack_segment): Delete function.
3500 (derive_stack_segment): Delete function.
3501 (default_derive_stack_segment): Renamed to derive_stack_segment.
3502 (override_derive_heap_segment): Delete variable.
3503 (preempt_derive_heap_segment): Delete function.
3504 (derive_heap_segment): Delete function.
3505 (default_derive_heap_segment): Rename to derive_heap_segment.
3506
3507 2002-08-06 Michael Snyder <msnyder@redhat.com>
3508
3509 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
3510 * mips-tdep.c (mips_EABI_use_struct_convention,
3511 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
3512 New functions. (mips_use_struct_convention): Delete.
3513 (mips_gdbarch_init): set use_gdbarch_convention.
3514
3515 2002-08-06 Michael Snyder <msnyder@redhat.com>
3516
3517 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
3518 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
3519 mips_o32_reg_struct_has_addr): New functions.
3520 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
3521
3522 2002-08-07 Andrew Cagney <ac131313@redhat.com>
3523
3524 * regcache.c (pseudo_register): Delete function.
3525 (fetch_register): Delete function.
3526 (store_register): Delete function.
3527 (regcache_raw_read, legacy_read_register_gen): Use
3528 target_fetch_registers instead of fetch_register.
3529 (legacy_write_register_gen, regcache_raw_write): Use
3530 target_store_register instead of store_register.
3531 (write_register_bytes): Ditto.
3532
3533 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
3534 (STORE_PSEUDO_REGISTER): Delete.
3535 * gdbarch.h, gdbarch.c: Regenerate.
3536
3537 2002-08-06 Corinna Vinschen <vinschen@redhat.com>
3538
3539 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
3540 write dump file binary.
3541
3542 2002-08-05 Michael Snyder <msnyder@redhat.com>
3543
3544 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
3545 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
3546 (mips_gdbarch_init): Set N32 target to be mips64.
3547
3548 2002-08-06 Kevin Buettner <kevinb@redhat.com>
3549
3550 * frame.c (find_saved_register): Break out of loop once saved
3551 register address is found. Don't mention sparc in loop comment
3552 anymore.
3553
3554 2002-08-06 Kevin Buettner <kevinb@redhat.com>
3555
3556 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
3557 mips_default_saved_regsize to 8.
3558
3559 2002-08-06 Andrew Cagney <ac131313@redhat.com>
3560
3561 * gcore.c: Do not include <sys/procfs.h>.
3562 * Makefile.in (gcore.o): Update dependencies.
3563
3564 2002-08-06 Andrew Cagney <cagney@redhat.com>
3565
3566 * configure.tgt: Make arc-*-* obsolete.
3567 * NEWS: Mention that arc-*-* has been identifed as obsolete.
3568 * MAINTAINERS: Make arc-elf obsolete.
3569 * arc-tdep.c: Make file obsolete.
3570 * config/arc/arc.mt: Ditto.
3571 * config/arc/tm-arc.h: Ditto.
3572
3573 2002-08-05 Theodore A. Roth <troth@verinet.com>
3574
3575 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
3576
3577 2002-08-05 Andrew Cagney <ac131313@redhat.com>
3578
3579 * mcore-tdep.c (mcore_gdbarch_init): Use
3580 generic_unwind_get_saved_register instead of
3581 generic_get_saved_register.
3582 * v850-tdep.c (v850_gdbarch_init): Ditto.
3583 * frv-tdep.c (frv_gdbarch_init): Ditto.
3584 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3585 * s390-tdep.c (s390_gdbarch_init): Ditto.
3586 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
3587 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
3588 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
3589
3590 2002-08-05 Joel Brobecker <brobecker@gnat.com>
3591
3592 * objfiles.h: Add missing #include "symfile.h"
3593
3594 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
3595
3596 2002-08-04 Andrew Cagney <ac131313@redhat.com>
3597
3598 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
3599 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
3600 of FIELD_BITSIZE.
3601
3602 2002-08-04 Daniel Jacobowitz <drow@mvista.com>
3603
3604 * NEWS: Cleanup and nitpick.
3605
3606 2002-08-03 Andrew Cagney <ac131313@redhat.com>
3607
3608 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
3609
3610 2002-08-03 Andrew Cagney <ac131313@redhat.com>
3611
3612 * Makefile.in (gdbtk-bp.o): Update dependencies.
3613 (gdbtk-register.o): Ditto.
3614 (gdbtk-varobj.o): Ditto.
3615
3616 2002-08-03 Andrew Cagney <cagney@redhat.com>
3617
3618 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
3619 m68hc11_fetch_pseudo_register.
3620 (m68hc11_pseudo_register_write): Replace
3621 m68hc11_store_pseudo_register.
3622 (m68hc11_gdbarch_init): Update.
3623
3624 Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
3625
3626 * gdbarch.sh: Include "gdb_string.h".
3627 * gdbarch.c: Regenerate.
3628
3629 * regcache.c: Include "gdb_string.h".
3630 * ax-general.c: Ditto.
3631 * varobj.c: Ditto.
3632 * std-regs.c: Ditto.
3633 * fbsd-proc.c: Ditto.
3634 * thread.c: Ditto.
3635
3636 * Makefile.in (regcache.o): Update dependencies.
3637 (thread.o, gdbarch.o): Ditto.
3638 (ax-general.o, gdbarch.o): Ditto.
3639 (varobj.o, std-regs.o): Ditto.
3640 (fbsd-proc.o): Specify dependencies.
3641
3642 2002-08-02 Andrew Cagney <cagney@redhat.com>
3643
3644 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
3645 regnum.
3646 (regcache_cooked_write): Ditto.
3647
3648 2002-08-02 Andrew Cagney <ac131313@redhat.com>
3649
3650 * regcache.c (regcache_cooked_read): New function.
3651 (regcache_cooked_write): New function.
3652 (read_register_gen): Rewrite using regcache_cooked_read.
3653 (write_register_gen): Rewrite using regcache_cooked_write.
3654
3655 * regcache.h (regcache_cooked_read, regcache_cooked_write):
3656 Declare.
3657
3658 2002-08-02 Andrew Cagney <cagney@redhat.com>
3659
3660 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
3661 Replace the architecture methods register_read and register_write.
3662 * gdbarch.h, gdbarch.c: Regenerate.
3663 * regcache.c (init_regcache_descr): Update.
3664 (read_register_gen): Update.
3665 (write_register_gen): Update.
3666 (supply_register): Update comment.
3667
3668 * sh-tdep.c (sh_gdbarch_init): Update.
3669 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
3670 `regcache' and `gdbarch' parameters. Make `buffer' a void
3671 pointer. Update code.
3672 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
3673 `regcache' and `gdbarch' parameters. Make `buffer' a constant
3674 void pointer. Update code.
3675 (sh64_register_write): Delete.
3676 (sh4_register_read): Delete.
3677 (sh64_register_read): Delete.
3678 (sh4_register_write): Delete.
3679 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
3680 void pointer, `to' parameter a void pointer.
3681 (sh_sh64_register_convert_to_raw): Ditto.
3682
3683 2002-08-01 Kevin Buettner <kevinb@redhat.com>
3684
3685 * mips-tdep.c (mips_register_virtual_type): Use architecture
3686 invariant return values.
3687
3688 2002-08-01 Andrew Cagney <cagney@redhat.com>
3689
3690 * linux-proc.c: Include "gdb_string.h".
3691 * Makefile.in (linux-proc.o): Update dependency list.
3692
3693 2002-08-01 Kevin Buettner <kevinb@redhat.com>
3694
3695 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
3696 comment.
3697
3698 2002-08-01 Grace Sainsbury <graces@redhat.com>
3699
3700 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
3701 to_insert_watchpoint, to_remove_watchpoint,
3702 to_stopped_by_watchpoint, to_stopped_data_address,
3703 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
3704 target vecctor. Define their corresponding macros so they call
3705 them.
3706
3707 * target.c: Add default and debug versions of for
3708 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
3709 to_insert_watchpoint, to_remove_watchpoint,
3710 to_stopped_by_watchpoint, to_stopped_data_address,
3711 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
3712
3713 2002-08-01 Kevin Buettner <kevinb@redhat.com>
3714
3715 * mips-tdep.c (mips_register_virtual_type): New function.
3716 (mips_gdbarch_init): Register mips_register_virtual_type()
3717 with gdbarch machinery.
3718 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
3719 this file instead of tm-bigmips.h.
3720 (MIPS_REGSIZE): Delete this macro.
3721 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
3722 multiarch version in mips-tdep.c will be found.
3723
3724 2002-08-01 Andrew Cagney <cagney@redhat.com>
3725
3726 * NEWS: Menion that CHILL has been made obsolete.
3727
3728 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
3729 * stabsread.c (read_range_type): Ditto.
3730 * gdbtypes.h: Ditto.
3731 * language.c (binop_type_check): Ditto.
3732 (binop_result_type): Ditto.
3733 (integral_type): Ditto.
3734 (character_type): Ditto.
3735 (string_type): Ditto.
3736 (boolean_type): Ditto.
3737 (structured_type): Ditto.
3738 (lang_bool_type): Ditto.
3739 (binop_type_check): Ditto.
3740 * language.h (_LANG_chill): Ditto.
3741 * dwarfread.c (set_cu_language): Ditto.
3742 * dwarfread.c (CHILL_PRODUCER): Ditto.
3743 * dwarfread.c (handle_producer): Ditto.
3744 * expression.h (enum exp_opcode): Ditto.
3745 * eval.c: Ditto for comments.
3746 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
3747 * expprint.c (print_subexp): Ditto.
3748 (print_subexp): Ditto.
3749 * valops.c (value_cast): Ditto.
3750 (search_struct_field): Ditto.
3751 * value.h (COERCE_VARYING_ARRAY): Ditto.
3752 * symfile.c (init_filename_language_table): Ditto.
3753 (add_psymbol_with_dem_name_to_list): Ditto.
3754 * valarith.c (value_binop): Ditto.
3755 (value_neg): Ditto.
3756 * valops.c (value_slice): Ditto.
3757 * symtab.h (union language_specific): Ditto.
3758 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
3759 (SYMBOL_DEMANGLED_NAME): Ditto.
3760 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
3761 * defs.h (enum language): Ditto.
3762 * symtab.c (got_symtab): Ditto.
3763 * utils.c (fprintf_symbol_filtered): Ditto.
3764
3765 * ch-typeprint.c: Make file obsolete.
3766 * ch-valprint.c: Make file obsolete.
3767 * ch-lang.h: Make file obsolete.
3768 * ch-exp.c: Make file obsolete.
3769 * ch-lang.c: Make file obsolete.
3770
3771 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
3772 CHILL_LIB.
3773 (TARGET_FLAGS_TO_PASS): Ditto.
3774 (CHILLFLAGS): Obsolete.
3775 (CHILL): Obsolete.
3776 (CHILL_FOR_TARGET): Obsolete.
3777 (CHILL_LIB): Obsolete.
3778 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
3779 ch-valprint.c.
3780 (HFILES_NO_SRCDIR): Remove ch-lang.h.
3781 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
3782 ch-lang.o.
3783 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
3784 targets.
3785
3786 2002-07-31 Joel Brobecker <brobecker@gnat.com>
3787
3788 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
3789 This does not change anything at the moment, but will be helpful
3790 later when full Ada support is integrated.
3791
3792 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3793
3794 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
3795 help message.
3796
3797 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3798
3799 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
3800 and save it in a local variable. Use variable in later test.
3801
3802 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3803
3804 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
3805 test. (Thanks to Daniel Jacobowitz.)
3806
3807 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3808
3809 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
3810 (mips_abi_strings): Add "n64".
3811 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
3812
3813 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3814
3815 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
3816 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
3817
3818 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3819
3820 * utils.c (host_pointer_to_address, address_to_host_pointer):
3821 Use gdb_assert() instead of explicit call to internal_error().
3822
3823 2002-07-30 Kevin Buettner <kevinb@redhat.com>
3824
3825 * Makefile.in (rs6000-nat.o): Update dependencies.
3826
3827 From Nicholas Duffek:
3828 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
3829 (aix-thread.o): New rule.
3830 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
3831 * config/powerpc/aix432.mh: New file.
3832
3833 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
3834
3835 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
3836 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
3837 (fetch_core_registers, ppc_linux_supply_gregset)
3838 (ppc_linux_supply_fpregset): New functions.
3839 (ppc_linux_regset_core_fns): New.
3840 (_initialize_ppc_linux_tdep): Call add_core_fns.
3841 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
3842 and ppc_linux_supply_gregset.
3843 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
3844 (supply_fpregset): Call ppc_linux_supply_fpregset.
3845 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
3846 corelow.o.
3847 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
3848
3849 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
3850
3851 * symtab.c (lookup_symbol): Demangle before lowercasing.
3852
3853 2002-07-30 Andrew Cagney <ac131313@redhat.com>
3854
3855 * symtab.h: Replace #include "gdb_obstack.h" with opaque
3856 declaration.
3857 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
3858 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
3859 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
3860 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
3861 "gdb_string.h".
3862 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
3863 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
3864 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
3865 (avr-tdep.o, mon960-rom.o): Ditto.
3866 (aout_stabs_gnu_h): Define.
3867 (symtab_h): Remove $(gdb_obstack_h).
3868
3869 2002-07-30 Jim Blandy <jimb@redhat.com>
3870
3871 Patch from David Carlton <carlton@math.stanford.edu>:
3872 * gdbinit.in: Move the `dir' commands that add GDB's own source
3873 directory to the search path to the end, so that the `gdb' source
3874 directory will be searched first.
3875
3876 2002-07-29 Andrew Cagney <ac131313@redhat.com>
3877
3878 * gdb_obstack.h: New file.
3879 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
3880 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
3881 * objfiles.h: Include "gdb_obstack.h".
3882 * Makefile.in (gdb_obstack_h): Define.
3883 (symtab_h): Add $(gdb_obstack_h).
3884 (objfiles_h): Add $(gdb_obstack_h).
3885
3886 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
3887 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
3888 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
3889 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
3890 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
3891 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
3892 * symfile.c, coffread.c, c-typeprint.c: Ditto.
3893 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
3894
3895 * Makefile.in (bcache.o): Update dependencies.
3896 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
3897 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
3898 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
3899 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
3900 (stabsread.o, symfile.o, symmisc.o): Ditto.
3901 (symtab.o, typeprint.o, macroexp.o): Ditto.
3902 (macrotab.o, mdebugread.o): Ditto.
3903 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
3904 (coff_ecoff_h, aout_aout64_h): Define.
3905 (aout_stabs_gnu_h, libaout_h): Define.
3906
3907 2002-07-29 Andrew Cagney <cagney@redhat.com>
3908
3909 * regcache.c (struct regcache_descr): Rename nr_registers to
3910 nr_cooked_registers. Revise comments describing the structure
3911 member fields.
3912 (init_regcache_descr): Update.
3913 (init_legacy_regcache_descr): Update.
3914 (read_register_gen, write_register_gen): When a cooked register in
3915 the raw register range, directly access the value from the raw
3916 register cache.
3917
3918 2002-07-29 Andrew Cagney <ac131313@redhat.com>
3919
3920 * z8k-tdep.c: Do not include "obstack.h".
3921 * h8300-tdep.c, h8500-tdep.c: Ditto.
3922 * m68hc11-tdep.c, sh-tdep.c: Ditto.
3923 * valprint.c, v850-tdep.c: Ditto.
3924 * d10v-tdep.c, mn10300-tdep.c: Ditto.
3925 * mn10200-tdep.c: Ditto.
3926
3927 * Makefile.in (z8k-tdep.o): Update dependencies.
3928 (m68hc11-tdep.o, valprint.o): Ditto.
3929 (v850-tdep.o, d10v-tdep.o): Ditto.
3930 (mn10300-tdep.o, sparc-tdep.o): Ditto.
3931 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
3932 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
3933 (sh_opc_h, gdb_sim_sh_h): Define.
3934 (elf_sh_h, elf_bfd_h): Define.
3935 (opcode_m68hc11_h): Define.
3936 (OPCODES_SRC, OPCODES_DIR): define.
3937 (OPCODES): Use $(OPCODES_DIR).
3938 (gdb_sim_d10v_h): Rename sim_d10v_h.
3939 (gdb_sim_arm_h): Rename sim_arm_h.
3940
3941 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3942
3943 * utils.c (host_pointer_to_address, address_to_host_pointer):
3944 Change internal_error() message to indicate function responsible
3945 for the error.
3946
3947 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3948
3949 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
3950 calls to local_hex_string_custom().
3951
3952 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3953
3954 * irix5-nat.c: Move IRIX shared library support from here...
3955 * solib-irix.c: ...to here. Revised substantially to work with
3956 generic solib framework.
3957
3958 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
3959 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
3960 * mips-irix-tdep.c: New file.
3961
3962 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
3963 (mips-irix-tdep.o, solib-irix.o): New rules.
3964 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
3965 solib-irix.o.
3966 * config/mips/irix6.mt (TDEPFILES): Likewise.
3967 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
3968
3969 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3970
3971 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
3972 disabled (via ``#if 0'') includes.
3973
3974 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3975
3976 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
3977 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
3978 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
3979 Add support for the fpscr register.
3980 * rs6000-nat.c (regmap, fetch_inferior_registers)
3981 (store_inferior_registers, fetch_core_registers): Likewise.
3982
3983 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3984
3985 * rs6000-nat.c (language.h): Include.
3986 (special_regs): Delete this array.
3987 (regmap): New function.
3988 (fetch_register, store_register): Use regmap() to map gdb
3989 register numbers to ptrace register numbers. Also, use
3990 outputs from regmap() to make decisions regarding type of
3991 ptrace() call to make. In particular, don't compare against
3992 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
3993 (fetch_inferior_registers, store_inferior_registers): Where
3994 possible, obtain register numbers from tdep struct. Don't
3995 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
3996 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
3997 (LAST_UISA_SP_REGNUM): Delete.
3998
3999 2002-07-25 Kevin Buettner <kevinb@redhat.com>
4000
4001 * rs6000-nat.c (ppc-tdep.h): Include.
4002 (fetch_registers, store_register, fetch_core_registers): Don't
4003 access registers[] directly. Instead, use supply_register() or
4004 regcache_collect() as appropriate.
4005 (find_toc_address): Format hex address with local_hex_string().
4006
4007 2002-07-25 Andrew Cagney <ac131313@redhat.com>
4008
4009 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
4010 bfd/elf32-frv.c.
4011
4012 2002-07-24 Tom Tromey <tromey@redhat.com>
4013
4014 * jv-exp.y: Marked all strings with _().
4015 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
4016 internal_error.
4017 (MethodInvocation, CastExpression, parse_number, yyerror,
4018 java_type_from_name, push_expression_name, yylex): Typo fixes.
4019
4020 2002-07-24 Daniel Jacobowitz <drow@mvista.com>
4021
4022 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
4023 (tee_file_flush, tee_file_write, tee_file_fputs)
4024 (tee_file_isatty): New.
4025 * ui-file.h (tee_file_new): Add prototype.
4026
4027 2002-07-24 Aidan Skinner <aidan@velvet.net>
4028
4029 * ada-lang.c: Change k&r style function definitions to prototyped
4030 form.
4031 * ada-typeprint.c: Change k&r style function definitions to prototyped
4032 form.
4033 * ada-valprint.c: Change k&r style function definitions to prototyped
4034 form.
4035
4036 2002-07-24 Andrew Cagney <cagney@redhat.com>
4037
4038 * README: Remove reference to remote-bug.
4039 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
4040 remote-bug.c.
4041 (m88k-nat.o): Delete rule.
4042 (m88k-tdep.o): Delete rule.
4043 (remote-bug.o): Delete rule.
4044 * MAINTAINERS: Mark as obsolete.
4045 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
4046 * m88k-tdep.c: Make file obsolete.
4047 * config/m88k/m88k.mh: Ditto.
4048 * config/m88k/delta88v4.mh: Ditto.
4049 * config/m88k/delta88v4.mt: Ditto.
4050 * config/m88k/delta88.mt: Ditto.
4051 * config/m88k/delta88.mh: Ditto.
4052 * remote-bug.c: Ditto.
4053 * config/m88k/tm-delta88.h: Ditto.
4054 * config/m88k/nm-delta88v4.h: Ditto.
4055 * config/m88k/xm-delta88.h: Ditto.
4056 * config/m88k/xm-dgux.h: Ditto.
4057 * config/m88k/tm-m88k.h: Ditto.
4058 * config/m88k/nm-m88k.h: Ditto.
4059 * config/m88k/tm-delta88v4.h: Ditto.
4060 * m88k-nat.c: Ditto.
4061 * cxux-nat.c: Ditto.
4062 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
4063 and m88*-*-* obsolete.
4064 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
4065 m88*-*-* obsolete.
4066
4067 2002-07-24 Andrew Cagney <cagney@redhat.com>
4068
4069 * findvar.c (extract_unsigned_integer): Make `addr' parameter
4070 constant. Same for local pointer variables.
4071 (extract_signed_integer): Ditto.
4072 * defs.h (extract_unsigned_integer): Update.
4073 (extract_signed_integer): Update.
4074
4075 2002-07-24 Andrew Cagney <cagney@redhat.com>
4076
4077 * regcache.c (regcache_raw_write): Change buf parameter to a
4078 constant void pointer.
4079 (regcache_raw_read): Change buf parameter to a void pointer.
4080 (legacy_write_register_gen): Change myaddr parameter a constant
4081 void pointer.
4082 (supply_register): Change val parameter to a const void pointer.
4083 * regcache.h (regcache_raw_write): Update declaration.
4084 (regcache_raw_read): Update declaration.
4085 (supply_register): Update declaration.
4086
4087 2002-07-24 Tom Tromey <tromey@redhat.com>
4088
4089 * defs.h (gdb_readline_wrapper): Declare.
4090 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
4091 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
4092 * top.c (gdb_readline_wrapper): New function.
4093 (command_line_input): Use it.
4094
4095 2002-07-24 Andrew Cagney <cagney@redhat.com>
4096
4097 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
4098 regcache_read and regcache_write.
4099 (regcache_raw_read_as_address): Replace regcache_read_as_address.
4100 * regcache.c: Update.
4101 * sh-tdep.c (sh64_push_arguments): Update comment.
4102 (sh_pseudo_register_read): Update.
4103 (sh_pseudo_register_write): Update.
4104 (sh4_register_read): Update.
4105 (sh4_register_write): Update.
4106 (sh64_pseudo_register_read): Update.
4107 (sh64_pseudo_register_write): Update.
4108 (sh64_register_read): Update.
4109 (sh64_register_write): Update.
4110 * i386-tdep.c (i386_extract_return_value): Update.
4111 (i386_extract_struct_value_address): Update.
4112 (i386_extract_return_value): Update.
4113 * blockframe.c (generic_read_register_dummy): Update.
4114 (generic_call_dummy_register_unwind): Update
4115 * infrun.c (write_inferior_status_register): Update.
4116
4117 2002-07-23 Jim Blandy <jimb@redhat.com>
4118
4119 * parser-defs.h (expression_context_pc): Make this extern.
4120 (Thanks to Michael Snyder.)
4121
4122 2002-07-23 Andrew Cagney <ac131313@redhat.com>
4123
4124 GDB 5.2.1 released from 5.2 branch.
4125 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
4126 * README: Update to mention 5.2.1.
4127
4128 2002-07-23 Mark Salter <msalter@redhat.com>
4129
4130 * remote.c (remote_read_bytes): Fix check for error.
4131
4132 2002-07-22 Kevin Buettner <kevinb@redhat.com>
4133
4134 * aix-thread.c (language.h): Include.
4135 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
4136 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
4137 Print newlines at end of debug messages.
4138 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
4139 (pdc_write_data): Use local_hex_string() instead of %llx formats.
4140
4141 2002-07-22 Kevin Buettner <kevinb@redhat.com>
4142
4143 * aix-thread.c (ppc-tdep.h): Include.
4144 (special_register_p): New function.
4145 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
4146 (store_regs_user_thread): Use register number information from
4147 gdbarch_tdep struct instead of hardcoded offsets relative to
4148 FIRST_UISA_SP_REGNUM.
4149 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
4150 special_register_p() instead of using FPLAST_REGNUM and
4151 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
4152 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
4153 will be MQ's register number.
4154
4155 2002-07-22 Michael Snyder <msnyder@redhat.com>
4156
4157 * aix-thread.c (ops): Rename to aix_thread_ops.
4158 (base_ops): Rename to base_target.
4159 (ops_attach): Rename to aix_thread_attach.
4160 (ops_detach): Rename to aix_thread_detach.
4161 (ops_resume): Rename to aix_thread_detach.
4162 (ops_wait): Rename to aix_thread_wait.
4163 (ops_kill): Rename to aix_thread_kill.
4164 (init_ops): Rename to init_aix_thread_ops.
4165 (ops_fetch_register): Rename to aix_thread_fetch_register.
4166 (ops_store_register): Rename to aix_thread_store_register.
4167 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
4168 (ops_thread_alive): Rename to aix_thread_thread_alive.
4169 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
4170 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
4171 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
4172 (fetch_regs_lib): Rename to fetch_regs_user_thread.
4173 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
4174 (store_regs_lib): Rename to store_regs_user_thread.
4175 (store_regs_kern): Rename to store_regs_kernel_thread.
4176
4177 2002-07-22 Michael Snyder <msnyder@redhat.com>
4178
4179 * aix-thread.c (ops_prepare_to_store): Eliminate.
4180 (init_ops): Don't initialize ops.prepare_to_store.
4181 (store_regs_kern): Pre-fetch register buffers from child,
4182 because some registers may not be in the cache. Copy
4183 regs from register cache only if they are cached.
4184 (store_regs_lib): Copy regs from register cache only
4185 if they are cached.
4186 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
4187 fill_gprs64): Ditto.
4188
4189 2002-07-22 Kevin Buettner <kevinb@redhat.com>
4190
4191 * aix-thread.c (gdb_assert.h): Include.
4192 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
4193 register sizes (from register cache) match size of buffer holding
4194 register data.
4195 (fill_sprs32): Change parameter types to match those in the ptrace()
4196 buffer.
4197 (store_regs_lib): Likewise, but for 32-bit temporary variables.
4198 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
4199
4200 2002-07-22 Michael Snyder <msnyder@redhat.com>
4201
4202 * aix-thread.c (supply_sprs64): Cosmetic change.
4203 (supply_sprs32): Cosmetic change.
4204 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
4205 (fill_sprs64): Use regcache_collect instead of read_register.
4206 (store_regs_lib): Use regcache_collect instead of
4207 read_register. Use fill_sprs32 instead of fill_sprs64,
4208 if debugging a 32-bit architecture.
4209 (store_regs_kern): Use fill_gprs64 etc. to pull the values
4210 out of the register cache, instead of passing a pointer into
4211 the register cache directly to ptrace. Use regcache_collect
4212 insteaad of read_register.
4213 (ops_prepare_to_store): Use target_read_registers instead
4214 of read_register_bytes.
4215
4216 2002-07-20 Aidan Skinner <aidan@velvet.net>
4217
4218 * MAINTAINERS: Add self under write after approval.
4219
4220 2002-07-20 Aidan Skinner <aidan@velvet.net>
4221
4222 * ada-tasks.c: Change k&r style function definitions to prototyped
4223 form.
4224
4225 2002-07-19 Andrew Cagney <ac131313@redhat.com>
4226
4227 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
4228 * x86-64-tdep.c: Include "objfiles.h".
4229 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
4230 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
4231
4232 2002-07-17 Michal Ludvig <michal@suse.cz>
4233
4234 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
4235 (update_context): Initialise cfa variable.
4236
4237 2002-07-17 Michael Snyder <msnyder@redhat.com>
4238
4239 * aix-thread.c: Shorten some long lines.
4240 Bring comments into line with code spec.
4241
4242 2002-07-18 Joel Brobecker <brobecker@gnat.com>
4243
4244 * infrun.c: Re-indent using gdb_indent.sh.
4245
4246 2002-07-18 Joel Brobecker <brobecker@gnat.com>
4247
4248 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
4249 Leave the indentation temporarily untouched, to minimize the diffs.
4250
4251 2002-07-18 Elena Zannoni <ezannoni@redhat.com>
4252
4253 * stabsread.c: Make os9k sections of the code obsolete,
4254 for real this time.
4255 * stabsread.h: Make os9k sections of the code obsolete.
4256
4257 2002-07-18 Michal Ludvig <mludvig@suse.cz>
4258
4259 * linux-low.c (regsets_store_inferior_registers): Add free()
4260 at the end of a loop to prevent memory leak.
4261 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
4262 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
4263 * config/sparc/tm-sp64linux.h: Make the rest of #endif
4264 line a comment.
4265 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
4266
4267 2002-07-17 Jim Blandy <jimb@redhat.com>
4268
4269 * macrocmd.c (info_macro_command): Remove newline from error
4270 message.
4271
4272 2002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
4273
4274 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
4275 (sh_gdbarch_init): Use it for sh-dsp.
4276
4277 2002-07-16 Kevin Buettner <kevinb@redhat.com>
4278
4279 * dwarf2read.c (read_initial_length): Handle older, non-standard,
4280 64-bit DWARF2 format.
4281
4282 2002-07-16 Joel Brobecker <brobecker@gnat.com>
4283
4284 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
4285 <sys/proc.h> when not available.
4286
4287 2002-07-16 Andrew Cagney <ac131313@redhat.com>
4288
4289 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
4290 * stabsread.c: Make os9k sections of the code obsolete.
4291 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
4292 * config/i386/i386os9k.mt: Make file obsolete.
4293 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
4294 (COMMON_OBS): Remove os9kread.o
4295 (SFILES): Remove os9kread.c.
4296 (os9kread.o, remote-os9k.o): Make target obsolete.
4297 * remote-os9k.c: Make file obsolete.
4298 * os9kread.c: Make file obsolete.
4299 * Makefile.in
4300
4301 2002-07-16 Andrew Cagney <ac131313@redhat.com>
4302
4303 * NEWS: Mention that the FR30 has been made obsolete.
4304 * fr30-tdep.c: Make file obsolete.
4305 * config/fr30/tm-fr30.h: Ditto.
4306 * config/fr30/fr30.mt: Ditto.
4307 * configure.tgt: Make fr30-*-elf obsolete.
4308 * MAINTAINERS: Make fr30-elf obsolete.
4309
4310 2002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
4311
4312 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
4313 found is not inside a section.
4314
4315 2002-07-15 Kevin Buettner <kevinb@redhat.com>
4316
4317 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
4318 strerror().
4319 (pdc_realloc): Use xrealloc() instead of realloc().
4320
4321 2002-07-15 Kevin Buettner <kevinb@redhat.com>
4322
4323 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
4324 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
4325 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
4326 macros.
4327
4328 2002-07-15 Kevin Buettner <kevinb@redhat.com>
4329
4330 * aix-thread.c (ptrace_check): Eliminate goto.
4331 (sync_threadlists): Eliminate gotos. Also, fix array overrun
4332 problem.
4333
4334 2002-07-15 Kevin Buettner <kevinb@redhat.com>
4335
4336 * aix-thread.c (gdbcmd.h): Include.
4337 (DEBUG, DBG, DBG2, dbg): Eliminate.
4338 (debug_aix_thread): New static global.
4339 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
4340 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
4341 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
4342 invocations to DBG and DBG2 macros to test against
4343 ``debug_aix_thread'' and call fprintf_unfiltered().
4344 (_initialize_aix_thread): Add new command "set debug aix-thread".
4345
4346 2002-07-15 Andrew Cagney <ac131313@redhat.com>
4347
4348 From Gerhard Tonn <TON@de.ibm.com>:
4349 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
4350 instead of supply_register.
4351
4352 2002-07-15 Andrew Cagney <ac131313@redhat.com>
4353
4354 * dwarf2cfi.c: Include "gdb_assert.h".
4355 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
4356 non-NULL.
4357 (update_context): Do not use __func__. Add missing ``break''.
4358 (update_context): Do not use __func__.
4359
4360 2002-07-15 Elena Zannoni <ezannoni@redhat.com>
4361
4362 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
4363 and its setting. Set gdbarch instruction printing functions
4364 directly. For non-rs6000 case use new function
4365 gdb_print_insn_powerpc.
4366 (gdb_print_insn_powerpc): New function.
4367
4368 2002-07-13 Andrew Cagney <ac131313@redhat.com>
4369
4370 * NEWS: Mention that the d30v has been marked obsolete.
4371 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
4372 * configure.tgt: Mark d30v-*-* as obsolete.
4373 * d30v-tdep.c: Mark file as obsolete.
4374 * config/d30v/d30v.mt: Ditto.
4375 * config/d30v/tm-d30v.h: Ditto.
4376
4377 2002-07-13 Aidan Skinner <aidan@velvet.net>
4378
4379 * ada-tasks.c (add_task_entry): replace calls to
4380 malloc() with xmalloc
4381 * ada-tasks.c (init_task_list): replace calls to free with xfree()
4382
4383 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
4384 ada_finish_decode_line_1, all_sals_for_line
4385 ada_breakpoint_rewrite): replace calls to free() with xfree()
4386
4387 2002-07-12 Kevin Buettner <kevinb@redhat.com>
4388
4389 From Nicholas Duffek (with minor changes by Martin Hunt,
4390 Louis Hamilton, and Kevin Buettner):
4391 * aix-thread.c: New file.
4392
4393 2002-07-12 Petr Sorfa <petrs@caldera.com>
4394
4395 * dwarf2read.c (dwarf2_invalid_attrib_class): New
4396 complaint for invalid attribute class or form.
4397 (read_func_scope): DW_AT_frame_base
4398 better handling of DW_AT_block*.
4399 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
4400 better handling of DW_AT_block*.
4401 (read_common_block): DW_AT_location
4402 better handling of DW_AT_block*.
4403 (read_partial_die): DW_AT_location better handling
4404 of DW_AT_block*.
4405 (new_symbol): DW_AT_external better handling of
4406 DW_AT_block*. Proper initialization of variable
4407 "addr".
4408 (attr_form_is_block): New function that returns true
4409 if the attribute's form is of DW_FORM_block*.
4410
4411 2002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
4412
4413 * valops.c (find_method_list): Remove comment about
4414 removed STATIC_MEMFUNCP argument.
4415 (value_find_oload_method_list): Likewise.
4416
4417 2002-07-12 Kevin Buettner <kevinb@redhat.com>
4418
4419 From Nicholas Duffek:
4420 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
4421 target_new_objfile_hook.
4422
4423 2002-07-12 Kevin Buettner <kevinb@redhat.com>
4424
4425 From Nicholas Duffek:
4426 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
4427 csect.
4428
4429 2002-07-12 Andrew Cagney <cagney@redhat.com>
4430
4431 * MAINTAINERS: Mention --enable-sim-build-warnings.
4432 (m68hc11-elf): Disable sim build warnings.
4433 (m32r-elf): Mark as broken obsolete candidate.
4434 (x86_64-linux-gnu): Mark as buildable with -Werror.
4435 (arm-elf): Change -w to ``,'' which enables warnings but not
4436 -Werror.
4437
4438 2002-07-12 Andrew Cagney <ac131313@redhat.com>
4439
4440 * bcache.h: Update copyright.
4441 (struct bstring, struct bcache): Move definition to "bcache.c".
4442 Replaced by opaque declaration.
4443 (bcache_xfree): Replace free_bcache.
4444 (bcache_xmalloc, bcache_memory_used): Declare.
4445
4446 * bcache.c: Update copyright.
4447 (struct bstring, struct bcache): Moved to here from "bcache.h".
4448 Update comments.
4449 (bcache_xmalloc, bcache_memory_used): New functions.
4450 (bcache_xfree): Replace function free_bcache.
4451
4452 * Makefile.in (objfiles.o): Add $(bcache_h).
4453 (objfiles_h): Remove $(bcache_h).
4454 (symfile.o): Add $(bcache_h).
4455
4456 * symmisc.c: Update copyright.
4457 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
4458 (print_objfile_statistics): Use bcache_memory_used.
4459
4460 * symfile.c: Include "bcache.h".
4461 (reread_symbols): Use bcache_xfree.
4462 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
4463 (add_psymbol_to_list): Pass psymbol_cache by value.
4464 (add_psymbol_with_dem_name_to_list): Ditto.
4465
4466 * objfiles.h: Update copyright.
4467 (struct bcache): Declare opaque. Do not include "bcache.h".
4468 (struct objfile): Change psymbol_cache and macro_cache to ``struct
4469 bcache'' pointers.
4470 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
4471
4472 * objfiles.c: Include "bcache.h". Update copyright.
4473 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
4474 macro_cache.
4475 (free_objfile): Use bcache_xfree.
4476
4477 2002-07-11 Grace Sainsbury <graces@redhat.com>
4478
4479 * monitor.c (monitor_fetch_register): Make name a constant.
4480 (monitor_store_register): Same.
4481
4482 2002-07-11 Daniel Jacobowitz <drow@mvista.com>
4483
4484 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
4485 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
4486 (finish_block) For non-function blocks, hash the symbol table. For
4487 function blocks, mark the symbol table as unhashed.
4488 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
4489 (msymbol_hash_iw): Likewise.
4490 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
4491 value.
4492 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
4493 (lookup_minimal_symbol): Likewise for both.
4494 * symtab.h (struct block): Add `hashtable' flag. Comment the
4495 hashtable.
4496 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
4497 (ALL_BLOCK_SYMBOLS): Update.
4498 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
4499 (struct symbol): Add `hash_next' pointer.
4500 * symtab.c (lookup_block_symbol): Search using the hash table when
4501 possible.
4502 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
4503 (search_symbols, find_addr_symbol): Likewise.
4504
4505 * dstread.c (process_dst_block): Clear hashtable bit for new block.
4506 (read_dst_symtab): Likewise.
4507 * jv-lang.c (get_java_class_symtab): Likewise.
4508 * mdebugread.c: Include "gdb_assert.h".
4509 (shrink_block): Assert that the block being modified is not hashed.
4510 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
4511 * symmisc.c (free_symtab_block): Walk the hash table when freeing
4512 symbols.
4513 (dump_symtab): Recognize hashed blocks.
4514 * printcmd.c (print_frame_args): Assert that function blocks do not
4515 have hashed symbol tables.
4516 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
4517 (fill_in_ada_prototype, debug_print_block): Likewise.
4518 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
4519
4520 2002-07-11 Corinna Vinschen <vinschen@redhat.com>
4521
4522 * stack.c (print_frame): Use result of frame_address_in_block()
4523 instead of fi->pc when evaluating symbols.
4524 (backtrace_command_1): Ditto.
4525
4526 2002-07-11 Andrew Cagney <cagney@redhat.com>
4527
4528 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
4529 Make static.
4530
4531 * arm-tdep.c (arm_register_name): Make return type constant.
4532
4533 2002-07-10 Andrew Cagney <ac131313@redhat.com>
4534
4535 * win32-nat.c (has_detach_ability): Convert to strict ISO C
4536 prototype.
4537 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
4538 * s390-tdep.c (s390_fp_regnum): Ditto.
4539 (s390_read_fp): Ditto.
4540 (s390_pop_frame): Ditto.
4541 (_initialize_s390_tdep): Ditto.
4542 * remote.c (get_remote_state): Ditto.
4543 * procfs.c (mappingflags): Ditto.
4544 * memattr.c (_initialize_mem): Ditto.
4545 * mcore-tdep.c (mcore_pop_frame): Ditto.
4546 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
4547 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
4548 * language.c (set_case_str): Ditto.
4549 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
4550 * frv-tdep.c (new_variant): Ditto.
4551 (frv_stopped_data_address): Ditto.
4552 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
4553 (context_alloc): Ditto.
4554 (frame_state_alloc): Ditto.
4555 (unwind_tmp_obstack_init): Ditto.
4556 (unwind_tmp_obstack_free): Ditto.
4557 (cfi_read_fp): Ditto.
4558 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
4559 (cris_pop_frame): Ditto.
4560 * c-lang.c (scanning_macro_expansion): Ditto.
4561 (finished_macro_expansion): Ditto.
4562 (c_preprocess_and_parse): Ditto.
4563 * gdbarch.sh: Ditto.
4564 * gdbarch.h, gdbarch.c: Regenerate.
4565 * config/mn10200/tm-mn10200.h: Adjust indentation.
4566 * target.c: Adjust indentation.
4567 * symtab.h: Adjust indentation.
4568 * stabsread.h: Adjust indentation.
4569 * remote-es.c: Adjust indentation.
4570 * os9kread.c: Adjust indentation.
4571
4572 2002-07-10 Andrew Cagney <ac131313@redhat.com>
4573
4574 * wince.c (_initialize_wince): Rename _initialize_inftarg.
4575 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
4576
4577 2002-07-10 Grace Sainsbury <graces@redhat.com>
4578
4579 * NEWS: Mention m68k, mcore multi-arching.
4580 * MAINTAINERS: Change status of m68k, mcore to reflect
4581 multi-arching.
4582
4583 2002-07-10 Daniel Jacobowitz <drow@mvista.com>
4584
4585 * valops.c (find_overload_match): Free oload_syms.
4586
4587 2002-07-09 Joel Brobecker <brobecker@gnat.com>
4588
4589 Define HAVE_SYS_PROC_H if sys/proc.h exists
4590 * configure.in: Add check for sys/proc.h
4591 * config.in: Regenerate.
4592 * configure: Regenerate.
4593
4594 2002-07-09 Grace Sainsbury <graces@redhat.com>
4595
4596 * config/m68k/tm-m68k.h: Remove macros wrapped in
4597 #if !GDB_MULTI_ARCH.
4598
4599 2002-07-08 Andrew Cagney <ac131313@redhat.com>
4600
4601 * config.in, configure: Regenerate.
4602
4603 2002-07-08 Mark Kettenis <kettenis@gnu.org>
4604
4605 * dwarf2cfi.c: Include "gcore.h".
4606 (execute_stack_op): Fix implementation of the
4607 DW_OP_deref and DW_OP_deref_size operators by letting do their
4608 lookup in the target.
4609
4610 2002-07-07 Mark Kettenis <kettenis@gnu.org>
4611
4612 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
4613 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
4614 tdep->sc_sp_offset.
4615
4616 2002-07-05 Daniel Jacobowitz <drow@mvista.com>
4617
4618 Fix PR gdb/595, gdb/602
4619 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
4620 Don't call value_cast, just read the vtable pointer; update comments
4621 to match.
4622
4623 2002-07-05 Grace Sainsbury <graces@redhat.com>
4624
4625 * config/mcore/tm-mcore.h: Remove file.
4626 * config/mcore/mcore.mt: Remove definition of TM_FILE
4627 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
4628
4629 2002-07-05 Mark Kettenis <kettenis@gnu.org>
4630
4631 * i386bsd-tdep.c: Include "gdb_string.h".
4632
4633 2002-07-04 Grace Sainsbury <graces@redhat.com>
4634
4635 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
4636 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
4637 mcore-tdep.
4638 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
4639 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
4640 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
4641 (RETVAL_REGNUM): Move macros from tm-mcore.h
4642 (mcore_reg_struct_has_addr): New function.
4643 (mcore_gdbarch_init): Added initializations for the macros removed
4644 from tm-mcore.h.
4645
4646 2002-07-04 Mark Kettenis <kettenis@gnu.org>
4647
4648 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
4649 traditonal string branding within the ELF header.
4650
4651 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
4652
4653 * symtab.c (remove_params): New function.
4654 (make_symbol_overload_list): Use it instead of cplus_demangle.
4655 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
4656
4657 2002-07-04 Mark Kettenis <kettenis@gnu.org>
4658
4659 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
4660
4661 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
4662 New variables.
4663 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
4664 and tdep->sigtramp_end.
4665 * i386obsd-nat.c: New file.
4666 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
4667
4668 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
4669 Don't call get_current_frame().
4670
4671 2002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
4672
4673 * i386-nat.c (child_post_startup_inferior): New function
4674 calling i386_cleanup_dregs if
4675 I386_USE_GENERIC_WATCHPOINTS is defined.
4676 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
4677 conditional to acknowledge that i386-nat.c has its
4678 own child_post_startup_inferior function.
4679
4680 2002-07-04 Mark Kettenis <kettenis@gnu.org>
4681
4682 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
4683 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
4684 instead of MAX_REGISTER_RAW_SIZE.
4685 (i386_extract_return_value, i386_extract_struct_value_address):
4686 Convert to use regcache.
4687 (i386_gdbarch_init): Set max_register_raw_size and
4688 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
4689 Set extract_return_value and extract_struct_value_address instead
4690 of their deprecated variants.
4691
4692 Convert i386 target to generic dummy frames.
4693 * i386-tdep.c: Include "symfile.h".
4694 (i386_frameless_signal_p): Consider a function to be frameless if
4695 the pc points at the first instruction of the function.
4696 (i386_frame_chain): Handle (generic) call dummies.
4697 (i386_frame_saved_pc): Likewise.
4698 (i386_frame_init_saved_regs): Remove code dealing with call
4699 dummies on the stack.
4700 (i386_push_dummy_frame): Removed.
4701 (i386_call_dummy_words): Removed.
4702 (i386_fix_call_dummy): Removed.
4703 (i386_push_return_address): New function.
4704 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
4705 parameter, and don't call get_current_frame.
4706 (i386_pop_frame): New function.
4707 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
4708 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
4709 entry_point_address, set call_dummy_breakpoint_offset to 0, set
4710 call_dummy_length to 0, set call_dummy_words to NULL, set
4711 sizeof_call_dummy_words to 0, set fix_call_dummy to
4712 generic_fix_call_dummy, set pc_in_call_dummy to
4713 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
4714 generic_push_dummy_frame, set push_return_address to
4715 i386_push_return_address and set frame_chain_valid to
4716 generic_file_frame_chain_valid.
4717
4718 2002-07-03 Andrew Cagney <ac131313@redhat.com>
4719
4720 * gdbarch.sh (struct regcache): Add opaque declaration.
4721 (EXTRACT_RETURN_VALUE): New architecture method.
4722 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
4723 * gdbarch.h, gdbarch.c: Regenerate.
4724 * arch-utils.c (legacy_extract_return_value): New function.
4725 * arch-utils.h (legacy_extract_return_value): Declare.
4726 * values.c (value_being_returned): Re-enable code handling
4727 EXTRACT_STRUCT_VALUE_ADDRESS. Move
4728 deprecated_grub_regcache_for_registers call to block handling
4729 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
4730 (EXTRACT_RETURN_VALUE): Do not define.
4731
4732 2002-07-03 Grace Sainsbury <graces@redhat.com>
4733
4734 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
4735 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
4736 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
4737 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
4738 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
4739 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
4740 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
4741 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
4742 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
4743 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
4744 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
4745 argument so the function fits the prototype in the architecture
4746 vector.
4747 (mcore_pop_frame): Remove argument so the function fits the
4748 prototype. Use get_current_frame instead of the argument.
4749 (mcore_push_arguments): Change type of struct_return so the
4750 function can be used in the architecture vector.
4751 (mcore_store_struct_return): Add.
4752 (mcore_frame_init_saved_regs): Add.
4753 (mcore_gdbarch_init): Add function calls to replace the macros
4754 removed from tm-mcore.h
4755
4756 2002-07-03 Andrew Cagney <ac131313@redhat.com>
4757
4758 * infcmd.c (print_return_value): Remove compatibility code calling
4759 deprecated_grub_regcache_for_registers.
4760
4761 * values.c: Include "regcache.h".
4762 (value_being_returned): Update. Use
4763 deprecated_grub_regcache_for_registers to extract the register
4764 buffer address.
4765 * value.h (value_being_returned): Change ``retbuf'' parameter to a
4766 ``struct regcache''.
4767 * Makefile.in (values.o): Add dependency on $(regcache_h).
4768
4769 * inferior.h (run_stack_dummy): Change type of second parameter to
4770 a ``struct regcache''.
4771 * valops.c (hand_function_call): Change type of retbuf to ``struct
4772 regcache''. Allocate using regcache_xmalloc, clean using
4773 make_cleanup_regcache_xfree.
4774 * infcmd.c (run_stack_dummy): Update. Use
4775 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
4776
4777 * regcache.c (do_regcache_xfree): New function.
4778 (make_cleanup_regcache_xfree): New function.
4779 * regcache.h (make_cleanup_regcache_xfree): Declare.
4780
4781 2002-07-03 Martin M. Hunt <hunt@redhat.com>
4782
4783 * event-top.c (command_line_handler): Don't read past
4784 beginning of buffer.
4785
4786 2002-07-03 Martin M. Hunt <hunt@redhat.com>
4787
4788 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
4789 struct frame_id.
4790 (varobj_create): Store frame_id for root.
4791 (varobj_gen_name): Use xasprintf.
4792 (varobj_update): Save and restore frame using get_frame_id() and
4793 frame_find_by_id().
4794 (create_child): Use xasprintf.
4795 (new_root_variable): Initialize frame_id.
4796 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
4797 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
4798 to prevent memory leak.
4799
4800 2002-07-03 Andrew Cagney <ac131313@redhat.com>
4801
4802 * valops.c (hand_function_call): Move declaration of retbuf to
4803 start of function, allocate using malloc, add a cleanup but before
4804 the inf_status cleanup, cleanup the buffer. Rename local variable
4805 old_chain to inf_status_cleanup.
4806
4807 2002-07-03 Martin M. Hunt <hunt@redhat.com>
4808
4809 * top.c (execute_command): Use cmd_func() and cmd_func_p().
4810
4811 * cli/cli-decode.c (cmd_func_p): New function.
4812 (cmd_func): New function.
4813
4814 * command.h: Add cmd_func() and cmd_func_p().
4815
4816 2002-07-03 Grace Sainsbury <graces@redhat.com>
4817
4818 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
4819 (REGISTER_SIZE): Remove.
4820 (MAX_REGISTER_RAW_SIZE): Remove.
4821 (REGISTER_VIRTUAL_TYPE): Remove.
4822 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
4823 (REGISTER_NAME): Remove.
4824 (USE_GENERIC_DUMMY_FRAMES): Remove.
4825 (CALL_DUMMY): Remove.
4826 (CALL_DUMMY_START_OFFSET): Remove.
4827 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
4828 (CALL_DUMMY_LOCATION): Remove.
4829 (FIX_CALL_DUMMY): Remove.
4830 (CALL_DUMMY_ADDRESS): Remove.
4831 (SIZEOF_CALL_DUMMY_WORDS): Remove.
4832 (SAVE_DUMMY_FRAME_TOS): Remove.
4833 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
4834 (mcore_register_virtual_type): New function.
4835 (mcore_register_byte): New function.
4836 (mcore_register_size): New function.
4837 (mcore_register_name): New function.
4838 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
4839 macros removed from tm-mcore.h.
4840 (mcore_dump_tdep): Add.
4841 (_initialize_mcore_tdep): Add gdbarch_register call.
4842
4843 2002-07-03 Mark Kettenis <kettenis@gnu.org>
4844
4845 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
4846 frameless_look_for_prologue, such that we actually call this
4847 function.
4848
4849 2002-07-02 Joel Brobecker <brobecker@gnat.com>
4850
4851 * frame.h (frame_address_in_block): New function.
4852
4853 * blockframe.c (frame_address_in_block): New function extracted
4854 from get_frame_block().
4855 (get_frame_block): Use frame_address_in_block().
4856 (block_innermost_frame): Use frame_address_in_block() to match
4857 the frame pc address against the block boundaries rather than
4858 the frame pc directly. This prevents a failure when a frame pc
4859 is actually a return-address pointing immediately after the end
4860 of the given block.
4861
4862 2002-07-02 Grace Sainsbury <graces@redhat.com>
4863
4864 * MAINTAINERS: Add self under write after approval.
4865
4866 2002-07-02 Grace Sainsbury <graces@redhat.com>
4867
4868 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
4869 used in architecture vector. The default is
4870 m68k_local_breakpoint_from_pc.
4871 (m68k_local_breakpoint_from_pc): Add.
4872 (enum): Add register numbers from tm-m68k.h.
4873 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
4874 vector.
4875 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
4876 GDB_MULTI_ARCH_PARTIAL.
4877 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
4878 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
4879 m68k-tdep.c.
4880 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
4881 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
4882 to enum in m68k-tdep.c
4883
4884 2002-07-02 Joel Brobecker <brobecker@gnat.com>
4885
4886 * solib-osf.c (open_map): Compute the list of shared libraries
4887 loaded by the inferior, rather than the list of libraries loaded
4888 by GDB itself. Otherwise, GDB ends up reading the symbols from
4889 the wrong shared libraries...
4890
4891 2002-07-02 Mark Kettenis <kettenis@gnu.org>
4892
4893 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
4894 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
4895 macros.
4896 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
4897 Remove functions.
4898 (FRAMELESS_SIGNAL): Remove function.
4899 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
4900 i386_linux_saved_pc_after_call): Removed.
4901 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
4902 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
4903 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
4904
4905 * i386-tdep.c (i386_frameless_signal_p): New function.
4906 (i386_frame_chain): Deal with frameless signals.
4907 (i386_sigtramp_saved_sp): New function.
4908 (i386_frame_saved_pc): Deal with frameless signals.
4909 (i386_saved_pc_after_call): Make sure the correct value is
4910 returned just after entry into a sigtramp.
4911 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
4912 i386fbsd4_sc_sp_offset): New variables.
4913 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
4914 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
4915 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
4916 similiar to what we already did for sc_pc_offset.
4917 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
4918 tdep->sc_sp_offset.
4919
4920 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
4921
4922 2002-07-02 Michal Ludvig <mludvig@suse.cz>
4923
4924 * config/i386/tm-x86-64linux.h: New.
4925 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
4926 definitions.
4927 * config/i386/nm-x86-64.h: Rename to ...
4928 * config/i386/nm-x86-64linux.h: ... this one.
4929 * config/i386/x86-64linux.mh: Reflect the above change.
4930
4931 2002-07-01 Mark Kettenis <kettenis@gnu.org>
4932
4933 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
4934 with sigcontext_addr. Add sc_sp_offset.
4935 (i386bsd_sigtramp_saved_pc): Remove prototype.
4936 (i386bsd_sicontext_addr): Add prototype.
4937 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
4938 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
4939 (i386_svr4_sigtramp_saved_pc): Removed.
4940 (i386_svr4_sigcontext_addr): New function.
4941 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
4942 Initialize tdep->sigcontext_addr instead. Initialize
4943 tdep->sc_pc_offset and tdep->sc_sp_offset.
4944 (i386_gdbarch_init): Likewise.
4945 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
4946 any more.
4947 (i386bsd_sigtramp_saved_pc): Remove function.
4948 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
4949 Initialize tdep->sigcontext_addr instead. Initialize
4950 tdep->sc_pc_offset.
4951 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
4952 of tdep->sigtramp_saved_pc.
4953 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
4954 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
4955 instead.
4956
4957 * i386-tdep.c (i386_frameless_function_invocation,
4958 i386_frame_num_args, i386_frame_init_saved_regs,
4959 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
4960 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
4961 i386_extract_return_value, i386_store_return_value,
4962 i386_extract_struct_value_address, i386_register_virtual_type,
4963 i386_register_convertible, i386_register_convert_to_virtual,
4964 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
4965 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
4966 static.
4967
4968 2002-07-01 Mark Kettenis <kettenis@gnu.org>
4969
4970 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
4971
4972 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
4973 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
4974 this macro. Include "value.h".
4975
4976 2002-06-30 Aidan Skinner <aidan@velvet.net>
4977
4978 * ada-exp.tab.c: remove as it's a generated file
4979 * ada-lex.c: remove as it's a generated file
4980
4981 2002-06-30 Mark Kettenis <kettenis@gnu.org>
4982
4983 * config/i386/tm-i386.h (struct frame_info, struct
4984 frame_saved_regs, struct value, struct type): Remove forward
4985 declarations.
4986
4987 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
4988 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
4989 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
4990 (FILL_FPXREGSET): Define.
4991
4992 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
4993
4994 * configure.tgt (i[3456]86-*-openbsd*): Fold into
4995 i[3456]86-*-netbsd* case.
4996 * config/i386/tm-obsd.h: Removed.
4997 * config/i386/obsd.mt: Removed.
4998 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
4999 core-aout.o.
5000 (MH_CFLAGS): Add -DYYDEBUG=0.
5001
5002 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
5003 i386nbsd_sc_pc_offset on OpenBSD too.
5004
5005 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
5006 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
5007 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
5008 define.
5009 * i386bsd-tdep.c: Include "arch-utils.h".
5010 (i386bsd_aout_in_solib_call_trampoline): New function.
5011 (i386bsd_init_abi): Set in_solib_call_trampoline to
5012 i386bsd_aout_in_solib_call_trampoline.
5013 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
5014 in_solib_call_trampoline to generic_in_solib_call_trampoline.
5015
5016 2002-06-28 Andrew Cagney <ac131313@redhat.com>
5017
5018 * macrotab.h: Do not include "obstack.h" or "bcache.h".
5019 (struct obstack, struct bcache): Add opaque declarations.
5020 * Makefile.in (macrotab_h): Update
5021
5022 2002-06-28 Andrew Cagney <ac131313@redhat.com>
5023
5024 * blockframe.c (generic_find_dummy_frame): Change return type to
5025 ``struct regcache''.
5026 (struct dummy_frame): Replace field ``registers'' with regcache, a
5027 struct regcache object.
5028 (generic_find_dummy_frame): Update.
5029 (generic_push_dummy_frame): Update. Use regcache_xfree,
5030 regcache_xmalloc and regcache_cpy.
5031 (generic_pop_dummy_frame): Update. Use regcache_cpy and
5032 regcache_xfree.
5033 (deprecated_generic_find_dummy_frame): Update.
5034 (generic_read_register_dummy): Update. Use
5035 regcache_read_as_address.
5036 (generic_call_dummy_register_unwind): Update. Use regcache_read.
5037 (generic_get_saved_register): Update. Use regcache_read.
5038
5039 2002-06-28 Andrew Cagney <ac131313@redhat.com>
5040
5041 * Makefile.in (objfiles_h): Add $(bcache_h).
5042 * objfiles.h: Include "bcache.h".
5043
5044 * Makefile.in (symtab_h): Remove $(bcache_h).
5045 * symtab.h: Do not include "bcache.h".
5046
5047 2002-06-28 Andrew Cagney <ac131313@redhat.com>
5048
5049 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
5050 generic_func_frame_chain_valid.
5051
5052 2002-06-28 David O'Brien <obrien@FreeBSD.org>
5053
5054 * config/i386/nm-fbsd.h: Include <sys/param.h>.
5055 * config/i386/tm-fbsd.h: Likewise.
5056
5057 2002-06-28 Andrew Cagney <ac131313@redhat.com>
5058
5059 * rs6000-tdep.c (rs6000_gdbarch_init): Use
5060 generic_unwind_get_saved_register.
5061
5062 2002-06-27 Andrew Cagney <ac131313@redhat.com>
5063
5064 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
5065 * regcache.c (supply_register): Add missing argument to
5066 register_buffer call.
5067
5068 2002-06-27 Andrew Cagney <ac131313@redhat.com>
5069
5070 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
5071 Solaris /bin/grep does not not like it. From Peter Schauer.
5072
5073 2002-06-26 Tom Tromey <tromey@redhat.com>
5074
5075 * command.h (add_setshow_cmd): Declare.
5076 (add_setshow_cmd_full): Declare.
5077 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
5078 returns void. Use add_setshow_cmd_full.
5079 (add_setshow_cmd_full): New function.
5080 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
5081 (add_setshow_boolean_cmd): Likewise.
5082
5083 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
5084
5085 * config/vax/tm-vax.h: Protect from multiple inclusion.
5086 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
5087 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
5088 * config/vax/tm-vaxbsd.h: ...here. New file.
5089 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
5090
5091 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
5092
5093 * config/vax/tm-vax.h (BREAKPOINT): Remove.
5094 (BELIEVE_PCC_PROMOTION): Remove.
5095 (AP_REGNUM): Move to...
5096 * config/vax/nm-vax.h: ...here.
5097 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
5098 (vax_breakpoint_from_pc): New function.
5099 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
5100 and gdbarch_believe_pcc_promotion.
5101
5102 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
5103
5104 * Makefile.in (vax_tdep_h): Define.
5105 (vax-tdep.o): Use $(vax_tdep_h).
5106 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
5107 (vax_dump_tdep): New function.
5108 (_initialize_vax_tdep): Register vax_dump_tdep.
5109 * vax-tdep.h: Include osabi.h.
5110 (struct gdbarch_tdep): New.
5111
5112 2002-06-26 Andrew Cagney <cagney@redhat.com>
5113
5114 * frame.h (deprecated_generic_find_dummy_frame): Rename
5115 generic_find_dummy_frame.
5116 * blockframe.c (generic_find_dummy_frame): Make static.
5117 (deprecated_generic_find_dummy_frame): New function.
5118 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
5119 generic_find_dummy_frame with deprecated_find_dummy_frame.
5120 (sh64_nofp_frame_init_saved_regs): Ditto.
5121 (sh_fp_frame_init_saved_regs): Ditto.
5122 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
5123 (s390_frame_chain): Ditto.
5124 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
5125
5126 2002-06-26 Grace Sainsbury <graces@redhat.com>
5127
5128 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
5129 gdbarch vector are at the top.
5130 (NUM_REGS): Remove.
5131 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
5132 (FRAME_ARGS_ADDRESS): Remove.
5133 (FRAME_LOCALS_ADDRESS): Remove.
5134 (FRAME_NUM_ARGS): Remove.
5135 (FRAME_ARGS_SKIP): Remove.
5136 * m68k-tdep.c (enum): Add eumeration of special register numbers.
5137 (m68k_gdbarch_init): Add gdbarch initializations for macros
5138 undefined in tm-m68k.h
5139
5140 2002-06-26 Grace Sainsbury <graces@redhat.com>
5141
5142 * monitor.h: Add the function regname to monitor_ops
5143 structure. This way NUM_REGS does not have to be a constant.
5144 * monitor.c (monitor_fetch_register): Added support for regname
5145 function. The function is called if the array regnames is NULL.
5146 (monitor_store_register): Same.
5147 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
5148 regnames array.
5149 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
5150 cpu32bug_cmds.regname to point to new function.
5151 * abug-rom.c (abug_regname): Same as above.
5152 (init_abug_cmds): Same.
5153 * dbug-rom.c (dbug_regname): Same as above.
5154 (init_dbug_cmds): Same.
5155 * remote-est.c (est_regname): Same.
5156 (init_est_cmds): Same.
5157 * rom68k-rom.c (rom68k_regname): Same.
5158 (init_rom68k_cmds): Same.
5159
5160 2002-06-25 Tom Tromey <tromey@redhat.com>
5161
5162 * breakpoint.c (delete_command): Don't repeat `delete' commands.
5163
5164 2002-06-25 Andrew Cagney <cagney@redhat.com>
5165
5166 * infrun.c (stop_registers): Change variable's type to ``struct
5167 regcache'''.
5168 (xmalloc_inferior_status): Delete function.
5169 (free_inferior_status): Delete function.
5170 (normal_stop): Use regcache_cpy.
5171 (struct inferior_status): Change type of fields ``stop_registers''
5172 and ``registers'' to ``struct regcache''.
5173 (write_inferior_status_register): Use regcache_write.
5174 (save_inferior_status): Instead of calling
5175 xmalloc_inferior_status, allocate the inf_status buffer directly.
5176 Use regcache_dup_no_passthrough and regcache_dup to save the
5177 buffers.
5178 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
5179 Replace the stop_registers regcache instead of overriding it. Use
5180 regcache_xfree. Instead of calling free_inferior_status, xfree
5181 the buffer directly.
5182 (discard_inferior_status): Use regcache_xfree. Instead of calling
5183 free_inferior_status, xfree the buffer directly.
5184 (build_infrun): Use regcache_xmalloc.
5185 (_initialize_infrun): Delete redundant call to build_infrun.
5186
5187 * Makefile.in (infcmd.o): Add $(regcache_h).
5188
5189 * infcmd.c: Include "regcache.h".
5190 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
5191 obtain the address of `stop_registers' register buffer.
5192 (print_return_value): Ditto.
5193
5194 * inferior.h (struct regcache): Add opaque declaration.
5195 (stop_registers): Change variable's declared type to ``struct
5196 regcache''.
5197
5198 2002-06-24 Tom Tromey <tromey@redhat.com>
5199
5200 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
5201 * target.c (initialize_targets): Fixed typo in
5202 trust-readonly-sections `show' documentation.
5203
5204 * main.c: Marked all strings with _().
5205
5206 2002-06-24 Don Howard <dhoward@redhat.com>
5207
5208 * memattr.c (create_mem_region): Treat hi == 0 as a special case
5209 that means max CORE_ADDR+1.
5210 (lookup_mem_region): Ditto.
5211 (mem_info_command): Ditto.
5212
5213 2002-06-24 Grace Sainsbury <graces@redhat.com>
5214
5215 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
5216 (REGISTER_BYTES_OK): Remove.
5217 (REGISTER_BYTES): Remove.
5218 (STORE_STRUCT_RETURN): Remove.
5219 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
5220 (STORE_RETURN_VALUE): Remove.
5221 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
5222 (FRAME_CHAIN): Remove.
5223 (FRAMELESS_FUNCTION_INVOCATION): Remove.
5224 (FRAME_SAVED_PC): Remove.
5225 * m68k-tdep.c (m68k_register_bytes_ok):Add.
5226 (m68k_store_struct_return): Add.
5227 (m68k_deprecated_extract_return_value): Add.
5228 (m68k_deprecated_extract_struct_value_address): Add.
5229 (m68k_store_return_value): Add.
5230 (m68k_frame_chain): Add.
5231 (m68k_frameless_function_invocation): Add.
5232 (m68k_frame_saved_pc): Add.
5233 (m68k_gdbarch_init): added set_gdbarch calls for new
5234 functions and deleted macros.
5235
5236 2002-06-23 Tom Tromey <tromey@redhat.com>
5237
5238 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
5239 (ALLDEPFILES): Likewise.
5240 (udiheaders): Removed.
5241 (udip2soc.o): Likewise.
5242 (udi2go32.o): Likewise.
5243 (udr.o): Likewise.
5244 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
5245
5246 2002-06-22 Andrew Cagney <ac131313@redhat.com>
5247
5248 * infrun.c (_initialize_infrun): Delete unnecessary call to
5249 build_infrun.
5250
5251 * regcache.h: Update comments describing the regcache_cpy family
5252 of functions.
5253 (regcache_save, regcache_restore): Delete declaration.
5254 (regcache_save_no_passthrough): Delete declaration.
5255 (regcache_restore_no_passthrough): Delete declaration.
5256 * regcache.c (regcache_save): Delete function.
5257 (regcache_save_no_passthrough): Delete function.
5258 (regcache_restore): Delete function.
5259 (regcache_restore_no_passthrough): Delete function.
5260
5261 2002-06-21 Andrew Cagney <ac131313@redhat.com>
5262
5263 * config/m68k/tm-m68k.h: Fix typo.
5264 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
5265 (m68k_frame_init_saved_regs): Declare.
5266
5267 2002-06-21 Jim Blandy <jimb@redhat.com>
5268
5269 Remove some vestiges of Harris 88k support.
5270 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
5271 register numbering quirk.
5272 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
5273 odd symbols occurring in Harris 88k ELF targets.
5274
5275 2002-06-21 Tom Tromey <tromey@redhat.com>
5276
5277 * gdb_locale.h: New file.
5278 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
5279 (defs_h): Added gdb_locale.h.
5280 * configure, config.in: Rebuilt.
5281 * configure.in (PACKAGE): Define.
5282 * defs.h: Include gdb_locale.h.
5283 * main.c (captured_main): Call setlocale, bindtextdomain,
5284 textdomain.
5285
5286 2002-06-21 Dave Brolley <brolley@redhat.com>
5287
5288 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
5289 * config/frv/frv.mt: New file.
5290 * config/frv/tm-frv.h: New file.
5291 * configure.tgt: Support frv-*-*.
5292 * Makefile.in (frv-tdep.o): New target.
5293 * frv-tdep.c: New file.
5294 * NEWS: Mention frv.
5295
5296 2002-06-21 Dave Brolley <brolley@redhat.com>
5297
5298 * MAINTAINERS: Add self to "Write After Approval" list.
5299
5300 2002-06-21 Grace Sainsbury <graces@redhat.com>
5301
5302 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
5303 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
5304 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
5305 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
5306 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
5307
5308 * m68k-tdep.c: Include arch-utils.h
5309 (m68k_register_raw_size): Add.
5310 (m68k_register_virtual_size): Add.
5311 (m68k_register_virtual_type): Add.
5312 (m68k_register_name): Add.
5313 (m68k_stack_align): Add.
5314 (m68k_register_byte): Add.
5315 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
5316 tm-m68k.h.
5317
5318 2002-06-21 Grace Sainsbury <graces@redhat.com>
5319
5320 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
5321 m68k_find_saved_regs.
5322 (m68k_pop_frame): Removed saved_regs structure, and replaced
5323 references to it with frame->saved_regs.
5324 (m68k_gdbarch_init): Added function calls to initialize the
5325 gdbarch structure.
5326 (m68k_fix_call_dummy): Add.
5327 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
5328 (CALL_DUMMY): Remove.
5329 (CALL_DUMMY_LENGTH): Remove.
5330 (CALL_DUMMY_START_OFFSET): Remove.
5331 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
5332 (FIX_CALL_DUMMY): Remove.
5333 (PUSH_DUMMY_FRAME): Remove.
5334 (POP_FRAME): Remove.
5335
5336 2002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
5337
5338 * parse.c (parse_fprintf): New function used to avoid calls to
5339 fprintf in bison parser generated debug code.
5340 * parser-defs.h: Declaration of new parse_fprintf function.
5341 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
5342 Set YYDEBUG to 1 by default.
5343 Set YYFPRINTF as parse_fprintf.
5344
5345 2002-06-21 Michal Ludvig <mludvig@suse.cz>
5346
5347 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
5348 encoding anymore.
5349 (pointer_encoding, enum ptr_encoding): New.
5350 (execute_cfa_program): Take care about pointer encoding.
5351 (dwarf2_build_frame_info): Only call parse_frame_info for
5352 .debug_frame and .eh_frame.
5353 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
5354 fixed augmentation handling, added relative addressing,
5355 ignore duplicate FDEs. Added comments.
5356 * dwarf2cfi.c: Reindented.
5357
5358 2002-06-20 Elena Zannoni <ezannoni@redhat.com>
5359
5360 * event-top.c (command_handler): Don't use space_at_cmd_start
5361 unless there is sbrk() on the host. Assign time and space data
5362 to union fields of the appropriate length.
5363
5364 2002-06-20 Michal Ludvig <mludvig@suse.cz>
5365
5366 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
5367 x86_64_register_name. Return type changed to 'const char *'.
5368 (x86_64_register_name2nr): Rename to x86_64_register_number.
5369 (x86_64_gdbarch_init): Update to reflect the change.
5370 * x86-64-tdep.h: Ditto.
5371 * x86-64-linux-nat.c (x86_64_fxsave_offset)
5372 (supply_fpregset): Ditto.
5373
5374 2002-06-19 Andrew Cagney <cagney@redhat.com>
5375
5376 * regcache.h: Update copyright.
5377 (struct regcache, struct gdbarch): Add opaque declarations.
5378 (current_regcache): Declare global variable.
5379 (regcache_read, regcache_write): Add gdbarch parameter.
5380 (regcache_save, regcache_save_no_passthrough)
5381 (regcache_restore, regcache_restore_no_passthrough)
5382 (regcache_dup, regcache_dup_no_passthrough)
5383 (regcache_cpy, regcache_cpy_no_passthrough)
5384 (deprecated_grub_regcache_for_registers)
5385 (deprecated_grub_regcache_for_register_valid)
5386 (regcache_valid_p): Add function declarations.
5387
5388 * regcache.c: Update copyright.
5389 (regcache_descr_handle): New global variable.
5390 (struct regcache_descr): Define.
5391 (init_legacy_regcache_descr, init_regcache_descr): New functions.
5392 (regcache_descr, xfree_regcache_descr): New functions.
5393 (struct regcache): Define.
5394 (regcache_xmalloc, regcache_xfree): New functions.
5395 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
5396 (regcache_dup, regcache_dup_no_passthrough): New functions.
5397 (regcache_valid_p, regcache_read_as_address): New functions.
5398 (deprecated_grub_regcache_for_registers): New function.
5399 (deprecated_grub_regcache_for_register_valid): New function.
5400 (current_regcache): New global variable.
5401 (register_buffer): Add regcache parameter. Update calls.
5402 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
5403 (read_register_gen, write_register_gen): Update register_buffer
5404 call. Test for legacy_p instead of gdbarch_register_read_p or
5405 gdbarch_register_write_p.
5406 (regcache_collect): Update register_buffer call.
5407 (build_regcache): Rewrite. Use deprecated grub functions.
5408 (regcache_save, regcache_save_no_passthrough): New functions.
5409 (regcache_restore, regcache_restore_no_passthrough): New
5410 functions.
5411 (_initialize_regcache): Create the regcache_data_handle. Swap
5412 current_regcache global variable.
5413
5414 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
5415 parameter to regcache_read and regcache_write calls.
5416 (sh4_register_read): Ditto.
5417 (sh64_pseudo_register_read): Ditto.
5418 (sh64_register_read): Ditto.
5419 (sh_pseudo_register_write): Ditto.
5420 (sh4_register_write): Ditto.
5421 (sh64_pseudo_register_write): Ditto.
5422 (sh64_register_write): Ditto.
5423
5424 * defs.h (XCALLOC): Define.
5425
5426 2002-06-19 Grace Sainsbury <graces@redhat.com>
5427
5428 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
5429 * m68k-tdep.c (m68k_gdbarch_init): Added.
5430 (m68k_dump_tdep): Added.
5431
5432 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
5433
5434 * ada-lang.c (fill_in_ada_prototype): Update comment.
5435
5436 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
5437
5438 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
5439 MIPS_ABI_LAST.
5440 (mips_abi_string, mips_abi_strings): New.
5441 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
5442 (mips_gdbarch_init): Set tdep->found_abi. Don't set
5443 tdep->mips_abi_string. Honor mips_abi_string. Default to
5444 O32 if no ABI is found.
5445 (mips_dump_tdep): Use mips_abi_strings.
5446 (mips_abi_update): New function.
5447 (_initialize_mips_tdep): Initialize mips_abi_string. Add
5448 ``set mips abi'' and ``show mips abi''. Check the size of
5449 mips_abi_strings.
5450
5451 2002-06-19 Andrew Cagney <cagney@redhat.com>
5452
5453 * i386-linux-tdep.c (i386_linux_register_name): Make return type
5454 constant.
5455
5456 2002-06-18 Joel Brobecker <brobecker@gnat.com>
5457
5458 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
5459 current frame using only the first stack size adjustment. All
5460 subsequent size adjustments are not considered to be part of
5461 the "static" part of the current frame.
5462 Compute the address of the saved registers relative to the
5463 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
5464 in use in this frame.
5465
5466 2002-06-18 Don Howard <dhoward@redhat.com>
5467
5468 * valops.c (value_ind): Use value_at_lazy() when dereferencing
5469 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
5470 suggesting this solution.
5471
5472 2002-06-18 Andrew Cagney <ac131313@redhat.com>
5473
5474 * config/romp/xm-rtbsd.h: Delete file.
5475 * config/romp/rtbsd.mh: Delete file.
5476
5477 2002-06-18 Keith Seitz <keiths@redhat.com>
5478
5479 * breakpoint.c (condition_command): Post breakpoint_modify
5480 when a condition is added to an existing breakpoint.
5481 (commands_command): Likewise for commands.
5482 (set_ignore_count): Likewise for ignore counts.
5483 If no tty, do not simply return, still need to send event
5484 notification.
5485 (ignore_command): Only print a newline if the command came
5486 from a tty.
5487 Don't call breakpoints_changed, since this is now properly
5488 handled by set_ignore_count.
5489
5490 2002-06-18 Andrew Cagney <cagney@redhat.com>
5491
5492 * MAINTAINERS: Note that cris-elf target can be compiled with
5493 -Werror.
5494 * cris-tdep.c (cris_register_name): Make return type constant.
5495 (cris_breakpoint_from_pc): Ditto.
5496
5497 2002-06-18 Michal Ludvig <mludvig@suse.cz>
5498
5499 * frame.h (struct frame_info): Change type of context to
5500 'struct context'.
5501
5502 2002-06-17 Andrew Cagney <cagney@redhat.com>
5503
5504 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
5505 pointer.
5506 * gdbarch.h, gdbarch.c: Regenerate.
5507 * config/mips/tm-mips.h (mips_register_name): Update.
5508 * i386-tdep.h (i386_register_name): Update.
5509 * mips-tdep.c (mips_register_name): Update
5510 * alpha-tdep.c (alpha_register_name): Update.
5511 * arch-utils.c (legacy_register_name): Update.
5512 * arch-utils.h (legacy_register_name): Update.
5513 * avr-tdep.c (avr_register_name): Update.
5514 * ia64-tdep.c (ia64_register_name): Update.
5515 * i386-tdep.c (i386_register_name): Update.
5516 * sparc-tdep.c (sparc32_register_name): Update.
5517 (sparc64_register_name): Update.
5518 (sparclite_register_name): Update.
5519 (sparclet_register_name): Update.
5520 * sh-tdep.c (sh_generic_register_name): Update.
5521 (sh_sh_register_name): Update.
5522 (sh_sh3_register_name): Update.
5523 (sh_sh3e_register_name): Update.
5524 (sh_sh_dsp_register_name): Update.
5525 (sh_sh3_dsp_register_name): Update.
5526 (sh_sh4_register_name): Update.
5527 (sh_sh64_register_name): Update.
5528 * s390-tdep.c (s390_register_name): Update.
5529 * rs6000-tdep.c (rs6000_register_name): Update.
5530 * ns32k-tdep.c (ns32k_register_name_32082): Update.
5531 (ns32k_register_name_32382): Update.
5532 * d10v-tdep.c (d10v_ts2_register_name): Update.
5533 (d10v_ts3_register_name): Update.
5534 * xstormy16-tdep.c (xstormy16_register_name): Update.
5535 * vax-tdep.c (vax_register_name): Update.
5536 * v850-tdep.c (v850_register_name): Update.
5537 * m68hc11-tdep.c (m68hc11_register_name): Update.
5538 * mn10300-tdep.c (mn10300_generic_register_name): Update.
5539 (am33_register_name): Update.
5540
5541 2002-06-17 Grace Sainsbury <graces@redhat.com>
5542
5543 * m68k-tdep.c: Reindented.
5544
5545 2002-06-17 Andrew Cagney <ac131313@redhat.com>
5546
5547 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
5548 list of predefined types.
5549
5550 2002-06-16 Mark Kettenis <kettenis@gnu.org>
5551
5552 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
5553 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
5554 REGISTER_CONVERT_TO_RAW): Remove defines.
5555 (i386_register_virtual_type, i386_register_convertible,
5556 i386_register_convert_to_virtual, i386_register_convert_to_raw):
5557 Remove prototypes.
5558 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
5559 macros mentioned above.
5560
5561 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
5562 (i386lynx_saved_pc_after_call): Remove prototype.
5563 * i386ly-tdep.c: Include "i386-tdep.h".
5564 (i386lynx_saved_pc_after_call): Make static. Use
5565 read_memory_nobpt instead of read_memory. Use
5566 read_memory_unsigned_integer instead of read_memory_integer.
5567 (i386lynx_init_abi): New function.
5568 (i386lynx_coff_osabi_sniffer): New function.
5569 (_initialize_i386bsd_tdep): New function.
5570
5571 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
5572 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
5573 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
5574 (i386_fix_call_dummy): Remove prototype.
5575 * i386-tdep.c (i386_call_dummy_words): New variable.
5576 (i386_gdbarch_init): Adjust for removal of the
5577 macros mentioned above.
5578
5579 2002-06-15 Andrew Cagney <ac131313@redhat.com>
5580
5581 * command.h (add_setshow_auto_boolean_cmd): Replace
5582 add_set_auto_boolean_cmd.
5583 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
5584 add_set_auto_boolean_cmd.
5585 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
5586 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
5587 mask-address'' command.
5588 (show_mask_address): Add cmd parameter.
5589 * remote.c (add_packet_config_cmd): Update. Change type of
5590 set_func and show_func to cmd_sfunc_ftype.
5591 (_initialize_remote): Update `set remote Z-packet'
5592 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
5593 (show_remote_protocol_e_packet_cmd): Ditto.
5594 (show_remote_protocol_E_packet_cmd): Ditto.
5595 (show_remote_protocol_P_packet_cmd): Ditto.
5596 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
5597 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
5598 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
5599 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
5600 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
5601 (show_remote_protocol_Z_packet_cmd): Ditto.
5602 (show_remote_protocol_binary_download_cmd): Ditto.
5603 (show_remote_cmd): Pass NULL to all of above.
5604
5605 2002-06-15 Mark Kettenis <kettenis@gnu.org>
5606
5607 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
5608 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
5609 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
5610 POP_FRAME): Remove defines.
5611 (i386_push_arguments, i386_store_struct_return,
5612 i386_extract_return_value, i386_store_return_value,
5613 i386_extract_struct_value_address, i386_push_dummy_frame,
5614 i386_pop_frame): Renove prototypes.
5615 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
5616 macros mentioned above.
5617
5618 2002-06-15 Andrew Cagney <ac131313@redhat.com>
5619
5620 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
5621 add_set_boolean_cmd.
5622 (add_setshow_cmd): New function.
5623 * command.h (add_setshow_boolean_cmd): Replace
5624 add_set_boolean_cmd.
5625 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
5626 and ``set rdiromatzero''.
5627 * maint.c (_initialize_maint_cmds): Update commented out code.
5628 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
5629 * target.c (initialize_targets): Update `set
5630 trust-readonly-sections'.
5631 * remote.c (_initialize_remote): Update `set remotebreak'.
5632
5633 2002-06-15 Mark Kettenis <kettenis@gnu.org>
5634
5635 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
5636 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
5637 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
5638 fit into multi-arch framework.
5639 (i386_breakpoint_from_pc): New function.
5640 (i386_gdbarch_init): Adjust for removal of the macros mentioned
5641 above.
5642
5643 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
5644 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
5645 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
5646 (i386_frameless_function_invocation, i386_frame_num_args,
5647 i386_frame_init_saved_regs): Remove prototypes.
5648 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
5649 macros mentioned above.
5650
5651 2002-06-15 Andrew Cagney <ac131313@redhat.com>
5652
5653 * cli/cli-decode.c (set_cmd_cfunc): Update.
5654 (set_cmd_sfunc): Update.
5655 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
5656 (set_cmd_sfunc, set_cmd_cfunc): Update.
5657 * cli/cli-decode.h: Update.
5658
5659 2002-06-15 Mark Kettenis <kettenis@gnu.org>
5660
5661 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
5662 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
5663
5664 2002-06-15 Andrew Cagney <ac131313@redhat.com>
5665
5666 * defs.h (auto_boolean): Declare enum.
5667 * command.h (cmd_auto_boolean): Delete enum.
5668 * mips-tdep.c (mask_address_var): Update.
5669 (mips_mask_address_p): Update.
5670 (show_mask_address): Update.
5671 * remote.c (struct packet_config): Update.
5672 (update_packet_config): Update.
5673 (show_packet_config_cmd): Update.
5674 (packet_ok): Update.
5675 (add_packet_config_cmd): Update.
5676 (_initialize_remote):
5677 * command.h: Update.
5678 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
5679 (do_setshow_command): Update.
5680 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
5681 * cli/cli-decode.h: Update.
5682
5683 2002-06-15 Mark Kettenis <kettenis@gnu.org>
5684
5685 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
5686 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
5687 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
5688 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
5689 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
5690 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
5691
5692 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
5693 list of DJGPP COFF targets.
5694
5695 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
5696 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
5697 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
5698 (FP0_REGNUM): Remove define.
5699 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
5700 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
5701 (i386_register_virtual_size): Remove protoype.
5702 * i386-tdep.c (i386_register_virtual_size): Removed.
5703 (i386_extract_return_value, i386_store_return_value): Use
5704 FP0_REGNUM instead of NUM_FREGS to determine whether the
5705 floating-point registers are available.
5706 (i386_gdbarch_init): Tweak FIXME about FPU registers.
5707 Adjust for removal of macros mentioned above.
5708
5709 2002-06-15 Mark Kettenis <kettenis@gnu.org>
5710
5711 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
5712 comments.
5713 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
5714 Remove prototypes.
5715 (supply_gregset, fill_gregset): Remove use of register keyword and
5716 remove declaration for regmap. Use I386_NUM_GREGS instead of
5717 NUM_REGS and NUM_FREGS.
5718 (FPREGSET_FSAVE_OFFSET): Remove.
5719 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
5720 NUM_FREGS to determine whether the floating-point registers are
5721 available.
5722
5723 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
5724 gnu_store_registers): Replace usage of NUM_GREGS with
5725 I386_NUM_GREGS.
5726
5727 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
5728 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
5729 usage of NUM_GREGS with I386_NUM_GREGS.
5730
5731 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
5732
5733 * i386bsd-nat.c: Include "i386-tdep.h".
5734 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
5735 I386_NUM_GREGS.
5736
5737 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
5738 and associated comment. They no longer make any sense, since we
5739 don't use this file anymore on Linux.
5740
5741 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
5742 * i386-tdep.c (i386_register_offset, i386_register_size): Use
5743 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
5744 elements in these arrays.
5745 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
5746 MAX_NUM_REGS.
5747
5748 2002-06-15 Mark Kettenis <kettenis@gnu.org>
5749
5750 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
5751 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
5752
5753 2002-06-14 Andrew Cagney <cagney@redhat.com>
5754
5755 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
5756 EXTRACT_RETURN_VALUE.
5757 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
5758 EXTRACT_STRUCT_VALUE_ADDRESS.
5759 * gdbarch.h, gdbarch.c: Regenerate.
5760
5761 * values.c (value_being_returned): Handle
5762 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
5763 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
5764
5765 * arm-linux-tdep.c (arm_linux_init_abi): Update.
5766 * arm-tdep.c (arm_gdbarch_init): Update.
5767 * avr-tdep.c (avr_gdbarch_init): Update.
5768 * cris-tdep.c (cris_gdbarch_init): Update.
5769 * d10v-tdep.c (d10v_gdbarch_init): Update.
5770 * ia64-tdep.c (ia64_gdbarch_init): Update.
5771 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5772 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5773 * s390-tdep.c (s390_gdbarch_init): Update.
5774 * sh-tdep.c (sh_gdbarch_init): Update.
5775 * s390-tdep.c (s390_gdbarch_init): Update.
5776 * sparc-tdep.c (sparc_gdbarch_init): Update.
5777 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5778 * v850-tdep.c (v850_gdbarch_init): Update.
5779 * vax-tdep.c (vax_gdbarch_init): Update.
5780 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
5781 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5782
5783 * config/arc/tm-arc.h: Update.
5784 * config/d30v/tm-d30v.h: Update.
5785 * config/fr30/tm-fr30.h: Update.
5786 * config/h8300/tm-h8300.h: Update.
5787 * config/h8500/tm-h8500.h: Update.
5788 * config/i386/tm-i386.h: Update.
5789 * config/i386/tm-ptx.h: Update.
5790 * config/i386/tm-symmetry.h: Update.
5791 * config/i960/tm-i960.h: Update.
5792 * config/m32r/tm-m32r.h: Update.
5793 * config/m68k/tm-delta68.h: Update.
5794 * config/m68k/tm-linux.h: Update.
5795 * config/m68k/tm-m68k.h: Update.
5796 * config/m88k/tm-m88k.h: Update.
5797 * config/mcore/tm-mcore.h: Update.
5798 * config/mips/tm-mips.h: Update.
5799 * config/mn10200/tm-mn10200.h: Update.
5800 * config/pa/tm-hppa.h: Update.
5801 * config/pa/tm-hppa64.h: Update.
5802 * config/sparc/tm-sp64.h: Update.
5803 * config/sparc/tm-sparc.h: Update.
5804 * config/sparc/tm-sparclet.h: Update.
5805 * config/z8k/tm-z8k.h: Update.
5806
5807 2002-06-14 Andrew Cagney <cagney@redhat.com>
5808
5809 * Makefile.in (i386_linux_tdep_h): Define.
5810 (i386_tdep_h, i387_tdep_h): Define.
5811 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
5812 $(i386_tdep_h) and $(i387_tdep_h).
5813 * i386-linux-nat.c: Include "i386-linux-tdep.h".
5814
5815 2002-06-14 Mark Kettenis <kettenis@gnu.org>
5816
5817 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
5818 Already covered by the default.
5819
5820 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
5821 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
5822 (i386_gdbarch_init): Initialize long_double_format and long_double
5823 bit.
5824
5825 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
5826 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
5827 Move these to ...
5828 * config/i386/i386sol2.mh: ... here.
5829 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
5830 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
5831 (SIGCONTEXT_PC_OFFSET): Remove define.
5832 (IN_SIGTRAMP): Remove define.
5833 * i386-sol2-tdep.c: New file.
5834
5835 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
5836 * config/i386/tm-i386nw.h: Removed.
5837
5838 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
5839 USE_STRUCT_CONVENTION): Remove defines.
5840 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5841 (get_longjmp_target): Remove prototype.
5842 (IN_SIGTRAMP): Remove define.
5843 (i386bsd_in_sigtramp): Remove prototype.
5844 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
5845 function. Update comment accordingly
5846 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
5847 (FRAME_SAVED_PC): Remove define.
5848 (i386bsd_frame_saved_pc): Remove prototype.
5849 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
5850 GET_LONGJMP_TARGET): Remove defines.
5851 (get_longjmp_target): Remove prototype.
5852 (IN_SIGTRAMP): Remove define.
5853 (i386bsd_in_sigtramp): Remove prototype.
5854 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
5855 function. Update comment accordingly
5856 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
5857 (FRAME_SAVED_PC): Remove define.
5858 (i386bsd_frame_saved_pc): Remove prototype.
5859 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
5860 Remove prototype.
5861 (USE_STRUCT_CONVENTION): Remove prototype.
5862 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
5863 declaration.
5864 (_initialize_i386bsd_nat): Revise logic to determine some
5865 constants at compile time when compiling a native GDB. Warn if
5866 things don't match up with what we expect.
5867 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
5868 Remove variables.
5869 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
5870 to use date stored in `struct gdbarch_tdep'.
5871 (i386bsd_sigcontext_offset): Remove varaible.
5872 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
5873 stored in `struct gdbarch_tdep'.
5874 (i386bsd_frame_saved_pc): Make static.
5875 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
5876 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
5877 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
5878 i386fbsd4_sc_pc_offset): New variables.
5879 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
5880 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
5881 functions.
5882 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
5883 functions.
5884 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
5885 Modify the value of i386fbsd_sigtramp_start and
5886 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
5887 i386fbsd_sigtramp_end.
5888 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
5889 function.
5890
5891 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
5892 define to i386-linux-tdep.h.
5893 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
5894 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
5895 defines.
5896 (i386_linux_register_name, i386_linux_register_byte,
5897 i386_linux_register_raw_size): Remove prototypes.
5898 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
5899 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
5900 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
5901 TARGET_WRITE_PC): Remove defines.
5902 (i386_linux_in_sigtramp, i386_linux_frame_chain,
5903 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
5904 i386_linux_write_pc): Remove prototypes.
5905 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5906 (get_longjmp_target): Remove prototype.
5907 * i386-linux-tdep.h: New file.
5908 * i386-linux-nat.c: Include "i386-linux-tdep.h".
5909 * i386-linux-tdep.c: Include "i386-tdep.h" and
5910 "i386-linux-tdep.h".
5911 (i386_linux_register_name, i386_linux_register_byte,
5912 i386_linux_register_raw_size, i386_linux_in_sigtramp,
5913 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
5914 Make static.
5915 (i386_linux_init_abi): New function.
5916 (_initialize_i386_linux_tdep): New function.
5917
5918 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
5919 (i386_saved_pc_after_call): Remove prototype.
5920 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
5921 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
5922 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
5923 (i386_register_name, i386_stab_reg_to_regnum,
5924 i386_dwarf_reg_to_regnum): Remove prototypes.
5925 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
5926 SIZEOF_SSE_REGS): Remove defines.
5927 (REGISTER_BYTES): Remove define.
5928 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
5929 (i386_register_byte, i386_register_raw_size): Remove prototypes.
5930 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
5931 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
5932 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
5933 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
5934 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
5935 (get_longjmp_target): Remove prototype.
5936 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
5937 (sigtramp_saved_pc): Remove define.
5938 (i386v4_sigtramp_saved_pc): Remove prototype.
5939 * config/i386/tm-go32.h (FRAME_CHAIN,
5940 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
5941 (i386go32_frame_saved_pc): Remove prototype.
5942 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5943 (get_longjmp_target): Remove prototype.
5944 * i386-tdep.h: Include "osabi.h".
5945 (enum i386_abi): Removed.
5946 (enum struct_return): New enum.
5947 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
5948 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
5949 sc_pc_offset members.
5950 (i386_gdbarch_register_os_abi): Remove prototype.
5951 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
5952 I386_SSE_NUM_REGS): New defines.
5953 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
5954 I386_SSE_SIZEOF_REGS): New defines.
5955 (i386_register_name, i386_register_byte, i386_register_raw_size):
5956 New prototypes.
5957 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
5958 (i386bsd_sigtramp_saved_pc): New prototype.
5959 * i386-tdep.c: Don't include "elf-bfd.h".
5960 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
5961 i386_frame_chain, i386_saved_pc_after_call): Make static.
5962 (i386_frame_saved_pc): Rewrite to call architecture dependent
5963 function to deal with signal handlers. Make static.
5964 (i386go32_frame_saved_pc): Removed.
5965 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
5966 Removed.
5967 (i386_get_longjmp_target): New function.
5968 (default_struct_convention, pcc_struct_convention,
5969 reg_struct_convention, valid_conventions, struct_convention): New
5970 variables.
5971 (i386_use_struct_convention): New function.
5972 (i386v4_sigtramp_saved_pc): Renamed to
5973 i386_svr4_sigtramp_saved_pc. Made static. Moved.
5974 (i386_pc_in_sigtramp): New function.
5975 (i386_abi_names): Removed.
5976 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
5977 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
5978 Removed.
5979 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
5980 i386_gdbarch_register_os_abi): Removed.
5981 (struct i386_abi_handler): Removed.
5982 (i386_abi_handler_list): Removed.
5983 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
5984 functions.
5985 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
5986 i386_nw_init_abi): New functions.
5987 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
5988 Use set_gdbarch_xxx() calls instead of relying on macros for a
5989 number of calls.
5990 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
5991 (_initialize_i386_tdep): Add new 'struct-convcention' command.
5992 Register the various architecture variants defined in this file.
5993
5994 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
5995
5996 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
5997 (struct main_type): Remove arg_types member. Update comments for
5998 struct field.
5999 (TYPE_ARG_TYPES): Remove.
6000 (TYPE_FN_FIELD_ARGS): Update.
6001 (smash_to_method_type): Update prototype.
6002
6003 * c-typeprint.c (cp_type_print_method_args): Take method type
6004 instead of argument list. Use new argument layout. Simplify.
6005 (c_type_print_args): Use new argument layout. Simplify.
6006 (c_type_print_base): Update call to cp_type_print_method_args.
6007 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
6008 argument; use die->type instead. Update call to
6009 smash_to_method_type.
6010 (read_structure_scope): Update call to dwarf2_add_member_fn.
6011 * gdbtypes.c (allocate_stub_method): Update comment.
6012 (smash_to_method_type): Take new NARGS and VARARGS arguments.
6013 Use new argument layout.
6014 (check_stub_method): Use new argument layout. Don't count
6015 void as an argument.
6016 (print_arg_types): Update comments. Use new argument layout.
6017 (recursive_dump_type): Don't print arg_types member.
6018 * hpread.c (hpread_read_struct_type): Use new argument layout.
6019 (fixup_class_method_type): Likewise.
6020 (hpread_type_lookup): Likewise.
6021 * stabsread.c (read_type): Update calls to read_args and
6022 smash_to_method_type.
6023 (read_args): Use new argument layout. Simplify.
6024 * valops.c (typecmp): Use new argument layout. Update parameters
6025 and comments. Simplify.
6026 (hand_function_call): Use new argument layout.
6027 (search_struct_method): Update call to typecmp.
6028 (find_overload_match): Use new argument layout.
6029
6030 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
6031
6032 * NEWS: Mention multithreaded debug support for gdbserver.
6033
6034 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
6035
6036 * MAINTAINERS: Mention NEWS.
6037
6038 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
6039
6040 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
6041 (struct mips_objfile_private, compare_pdr_entries): New.
6042 (non_heuristic_proc_desc): Read the ".pdr" section if it
6043 is present.
6044
6045 2002-06-12 Andrew Cagney <ac131313@redhat.com>
6046
6047 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
6048 (arm_debug): New static variable.
6049 (_initialize_arm_tdep): Add ``set debug arm'' command.
6050
6051 2002-06-12 Andrew Cagney <ac131313@redhat.com>
6052
6053 * Makefile.in (sim_arm_h): Define.
6054 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
6055 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
6056 (arm_register_sim_regno): New function, map an internal REGNUM
6057 onto a simulator register number.
6058 (arm_gdbarch_init): Set register_sim_regno.
6059
6060 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
6061
6062 * MAINTAINERS: Add self.
6063
6064 2002-06-11 Jim Blandy <jimb@redhat.com>
6065
6066 * source.c (source_info): Mention whether the symtab has
6067 information about preprocessor macros.
6068
6069 Call the command `info macro', not `show macro'.
6070 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
6071 Fix error message.
6072 (_initialize_macrocmd): Register `info_macro_command' in
6073 `infolist', not `showlist'.
6074
6075 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
6076
6077 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
6078 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
6079 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
6080 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
6081 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
6082 unconditionally.
6083 (set_mipsfpu_single_command, set_mipsfpu_double_command)
6084 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
6085 (_initialize_mips_tdep): Remove dead code.
6086 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
6087 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
6088 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
6089 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
6090 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
6091 MIPS_LAST_FP_ARG_REGNUM): Remove.
6092
6093 2002-06-11 Michal Ludvig <mludvig@suse.cz>
6094
6095 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
6096 (unwind_tmp_obstack_free, parse_frame_info)
6097 (update_context, cfi_read_fp, cfi_write_fp)
6098 (cfi_frame_chain, cfi_init_extra_frame_info)
6099 (cfi_virtual_frame_pointer): Use the above function.
6100 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
6101
6102 2002-06-11 Corinna Vinschen <vinschen@redhat.com>
6103
6104 * v850-tdep.c (v850_type_is_scalar): New function.
6105 (v850_use_struct_convention): Match current gcc implementation
6106 as close as possible.
6107 (v850_push_arguments): Fix stack_offset handling. Don't write
6108 struct_addr into register. This is done by v850_store_struct_return.
6109 (v850_extract_return_value): Care for structs.
6110 (v850_store_return_value): Ditto.
6111 (v850_store_struct_return): Actually write address.
6112
6113 2002-06-11 Michal Ludvig <mludvig@suse.cz>
6114
6115 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
6116 without debug information too.
6117
6118 2002-06-10 Andrew Cagney <ac131313@redhat.com>
6119
6120 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
6121 Make multi-arch pure.
6122 * gdbarch.h, gdbarch.c: Re-generate.
6123 * arm-tdep.c (arm_print_float_info): Update.
6124 * arch-utils.h (default_print_float_info): Update.
6125 * arch-utils.c (default_print_float_info): Update.
6126 * infcmd.c (float_info): Update call.
6127
6128 2002-06-10 Andrew Cagney <ac131313@redhat.com>
6129
6130 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
6131 the front of the initialize list.
6132
6133 2002-06-10 Andrew Cagney <ac131313@redhat.com>
6134
6135 * infrun.c (struct inferior_status): Replace fields
6136 selected_frame_address and selected_level with field
6137 selected_frame_id.
6138 (save_inferior_status): Update. Use get_frame_id.
6139 (struct restore_selected_frame_args): Delete.
6140 (restore_selected_frame): Update. Use frame_find_by_id.
6141 (restore_inferior_status): Update.
6142
6143 * breakpoint.h (struct breakpoint): Change type of
6144 watchpoint_frame to frame_id.
6145 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
6146 call to get_current_frame.
6147 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
6148 get_current_frame.
6149 (watchpoint_check): Use frame_find_by_id.
6150
6151 * frame.h (record_selected_frame): Delete declaration.
6152 * stack.c (record_selected_frame): Delete function.
6153
6154 * frame.h (struct frame_id): Define.
6155 (get_frame_id): Declare.
6156 (frame_find_by_id): Declare.
6157 * frame.c (frame_find_by_id): New function.
6158 (get_frame_id): New function.
6159
6160 2002-06-10 Andrey Volkov <avolkov@transas.com>
6161
6162 * ser-e7kpc.c: Fix duplicated define and call of
6163 _initialize_ser_e7000pc
6164
6165 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
6166
6167 * signals/signals.c (target_signal_from_host): Fix #ifdef
6168 SIGRTMIN case.
6169 (do_target_signal_to_host): Likewise.
6170
6171 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
6172
6173 * mips-tdep.c (mips_find_abi_section): New function.
6174 (mips_gdbarch_init): Call it.
6175
6176 2002-06-09 Mark Kettenis <kettenis@gnu.org>
6177
6178 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
6179 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
6180 after Andrew's 2002-06-08 gdbarch change.
6181
6182 2002-06-09 Mark Kettenis <kettenis@gnu.org>
6183
6184 * i386-linux-nat.c (suppy_gregset): Don't supply
6185 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
6186 register cache.
6187 (fill_gregset): Don't fetch it under the same circumstances.
6188
6189 2002-06-09 Andrew Cagney <cagney@redhat.com>
6190
6191 * Makefile.in (callback_h): Define.
6192 (remote_sim_h): Update path to remote-sim.h.
6193 (remote-rdp.o): Add $(callback_h).
6194 (remote-sim.o): Use $(callback_h).
6195 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
6196 * remote-rdp.c: Include "gdb/callback.h".
6197
6198 2002-06-09 Mark Kettenis <kettenis@gnu.org>
6199
6200 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
6201 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
6202
6203 2002-06-08 Andrew Cagney <ac131313@redhat.com>
6204
6205 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
6206 * rdi-share/serpardr.c: Ditto.
6207 * rdi-share/unixcomm.c: Ditto.
6208 * rdi-share/serdrv.c: Ditto.
6209 * rdi-share/hostchan.h: Ditto.
6210 * rdi-share/hostchan.c: Ditto.
6211 * rdi-share/host.h: Ditto.
6212 * rdi-share/devsw.c: Ditto.
6213
6214 * objfiles.h: Change type of obj_private to void pointer.
6215 * pa64solib.c: Update copyright. Don't include "assert.h", use
6216 strcmp instead of STREQ, use LONGEST, do not use PTR
6217 * somsolib.c: Ditto.
6218
6219 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
6220 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
6221 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
6222
6223 2002-06-08 Andrew Cagney <ac131313@redhat.com>
6224
6225 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
6226 (default_get_saved_register): Delete function.
6227 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
6228 generic_unwind_get_saved_register.
6229 * gdbarch.h, gdbarch.c: Re-generate.
6230
6231 2002-06-08 Andrew Cagney <ac131313@redhat.com>
6232
6233 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
6234 generic_func_frame_chain_valid.
6235 * gdbarch.h, gdbarch.c: Re-generate.
6236 * blockframe.c (generic_func_frame_chain_valid): Only check
6237 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
6238 passing FP to PC_IN_CALL_DUMMY.
6239 Fix PR gdb/360.
6240
6241 2002-06-08 Andrew Cagney <ac131313@redhat.com>
6242
6243 * gdbarch.sh (struct gdbarch_data): Add field init_p.
6244 (register_gdbarch_data): Initialize init_p.
6245 (gdbarch_data): Initialize data pointer using the init function.
6246 (init_gdbarch_data): Delete function.
6247 (gdbarch_update_p): Update.
6248 (initialize_non_multiarch): Update.
6249 (struct gdbarch): Add field initialized_p.
6250 * gdbarch.h, gdbarch.c: Re-generate.
6251
6252 2002-06-07 Michal Ludvig <mludvig@suse.cz>
6253
6254 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
6255 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
6256 better do the things actually here.
6257 * x86-64-tdep.c (x86_64_register_name2nr): New.
6258 (x86_64_register_name): Renamed to x86_64_register_nr2name.
6259 (x86_64_gdbarch_init): Respect the above change.
6260 * x86-64-tdep.h (x86_64_register_name2nr)
6261 (x86_64_register_nr2name): Add prototypes.
6262 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
6263
6264 2002-06-06 Michael Snyder <msnyder@redhat.com>
6265
6266 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
6267 Delete extra braces and re-indent.
6268 (d10v_store_return_value): Char return values
6269 must be shifted over by one byte in R0.
6270 (d10v_extract_return_value): Delete extra braces, re-indent.
6271
6272 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
6273
6274 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
6275 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
6276 (d10v_integer_to_address): Rewrite.
6277 (d10v_frame_init_saved_regs): When reading fp and sp registers use
6278 the d10v specific functions which take care of converting to the
6279 correct space.
6280
6281 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
6282
6283 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
6284 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
6285
6286 2002-06-02 Andrew Cagney <ac131313@redhat.com>
6287
6288 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
6289 includes.
6290 * config/tm-linux.h: Ditto.
6291 * config/alpha/tm-alphalinux.h: Ditto.
6292 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
6293 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
6294 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
6295 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
6296 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
6297 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
6298 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
6299 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
6300 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
6301 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
6302 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
6303 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
6304 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
6305 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
6306 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
6307 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
6308 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
6309 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
6310 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
6311 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
6312 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
6313 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
6314 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
6315 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
6316 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
6317 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
6318 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
6319 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
6320 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
6321 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
6322 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
6323 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
6324 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
6325 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
6326 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
6327 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
6328 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
6329
6330 2002-05-04 Aidan Skinner <aidan@velvet.net>
6331
6332 * ada-exp.tab.c: New file
6333 * ada-exp.y: New file
6334 * ada-lang.c: New file
6335 * ada-lang.h: New file
6336 * ada-lex.c: New file
6337 * ada-lex.l: New file
6338 * ada-tasks.c: New file
6339 * ada-typeprint.c: New file
6340 * ada-valprint.c: New file
6341
6342 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
6343
6344 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
6345 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
6346
6347 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
6348
6349 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
6350 insetead of ppc-linux-tdep.o.
6351 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
6352 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
6353
6354 2002-06-02 Andrew Cagney <ac131313@redhat.com>
6355
6356 2002-05-07 Christian Groessler <chris@groessler.org>
6357 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
6358 bit register contents for little endian hosts.
6359
6360 2002-06-01 Andrew Cagney <ac131313@redhat.com>
6361
6362 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
6363 any maintainer.
6364
6365 2002-06-01 Andrew Cagney <ac131313@redhat.com>
6366
6367 * gdbarch.h: Regenerate.
6368
6369 2002-06-01 Andrew Cagney <ac131313@redhat.com>
6370
6371 * MAINTAINERS: Add everyone to write-after-approval list.
6372
6373 2002-06-01 Andrew Cagney <ac131313@redhat.com>
6374
6375 * stack.c (frame_info): Use frame_register_unwind instead of
6376 saved_regs. Mention when the SP is on the stack or in a register.
6377
6378 * frame.h (frame_register_unwind_ftype): Define. Document.
6379 (struct frame_info): Add field register_unwind and
6380 register_unwind_cache.
6381 (frame_register_unwind): Declare.
6382 (generic_unwind_get_saved_register): Declare.
6383
6384 * frame.c (frame_register_unwind): New function.
6385 (generic_unwind_get_saved_register): New function.
6386
6387 * blockframe.c (generic_call_dummy_register_unwind): New function.
6388 (frame_saved_regs_register_unwind): New function.
6389 (set_unwind_by_pc): New function.
6390 (create_new_frame): New function.
6391 (get_prev_frame): New function.
6392
6393 2002-05-30 Andrew Cagney <ac131313@redhat.com>
6394
6395 * a29k-share/: Delete directory.
6396 * remote-vx29k.c: Delete file.
6397
6398 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
6399
6400 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
6401 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
6402
6403 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
6404
6405 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
6406 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
6407 (sparc64nbsd-nat.o)
6408 (sparcnbsd-nat.o)
6409 (sparcnbsd-tdep.o): New dependency lists.
6410 * NEWS: Note new UltraSPARC NetBSD native configuration.
6411 * configure.host (sparc64-*-netbsd*): New host.
6412 * configure.tgt (sparc-*-netbsdelf*)
6413 (sparc-*-netbsd*): Set gdb_target to nbsd.
6414 (sparc64-*-netbsd*): New target.
6415 * sparc64nbsd-nat.c: New file.
6416 * sparcnbsd-nat.c: New file.
6417 * sparcnbsd-tdep.c: New file.
6418 * sparcnbsd-tdep.h: New file.
6419 * config/sparc/nbsd.mt: New file.
6420 * config/sparc/nbsd64.mh: New file.
6421 * config/sparc/nbsd64.mt: New file.
6422 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
6423 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
6424 (HOST_IPC): Remove.
6425 * config/sparc/nbsdaout.mt: Remove.
6426 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
6427 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
6428 (HOST_IPC): Remove.
6429 * config/sparc/nbsdelf.mt: Remove.
6430 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
6431 sparc-nat.c compatiblity defines.
6432 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
6433 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
6434 * config/sparc/tm-nbsd64.h: New file.
6435 * config/sparc/tm-nbsdaout.h: Remove.
6436 * config/sparc/xm-nbsd.h: Remove.
6437
6438 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
6439
6440 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
6441 * sparc-tdep.c: Include osabi.h.
6442 (gdbarch_tdep): Add osabi member.
6443 (_initialize_sparc_tdep): Use gdbarch_register.
6444 (sparc_gdbarch_init): Use generic OS ABI framework.
6445 (sparc_dump_tdep): New function.
6446
6447 2002-05-30 Kevin Buettner <kevinb@redhat.com>
6448
6449 * corefile.c (do_captured_read_memory_integer): Return non-zero
6450 result.
6451 (safe_read_memory_integer): Copy result of memory read when
6452 status is non-zero. Also, add comments.
6453
6454 2002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
6455
6456 * Makefile.in (ppc_tdep_h): Define.
6457 (ppc-linux-nat.o)
6458 (ppc-linux-tdep.o)
6459 (rs6000-tdep.o): Use $(ppc_tdep_h).
6460 (ppc-sysv-tdep.o)
6461 (ppcnbsd-nat.o)
6462 (ppcnbsd-tdep.o): New dependency lists.
6463 * ppc-tdep.h: Use generic OS ABI framework.
6464 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
6465 (ppc_linux_init_abi): New functions.
6466 (ppc_sysv_abi_broken_use_struct_convention)
6467 (ppc_sysv_abi_use_struct_convention)
6468 (ppc_sysv_abi_push_arguments): Move to...
6469 * ppc-sysv-tdep.c: ...here.
6470 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
6471 * rs6000-tdep.c (process_note_abi_tag_sections)
6472 (get_elfosabi): Remove.
6473 (rs6000_gdbarch_init): Use generic OS ABI framework.
6474 (rs6000_dump_tdep): New function.
6475 (_initialize_rs6000_tdep): Use gdbarch_register.
6476 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
6477 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
6478 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
6479 of ppc-linux-tdep.o.
6480 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
6481 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
6482 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
6483 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
6484 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
6485 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
6486
6487 2002-05-29 Jim Blandy <jimb@redhat.com>
6488
6489 * macroscope.c (default_macro_scope): Put `void' in empty argument
6490 list.
6491
6492 2002-05-29 Andrew Cagney <ac131313@redhat.com>
6493
6494 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
6495 * arch-utils.c: Include "sim-regno.h".
6496 * gdbarch.sh: Don't include "sim-regno.h".
6497 * gdbarch.h, gdbarch.c: Regenerate.
6498 * sim-regno.h (legacy_register_sim_regno): Move declaration from
6499 here.
6500 * arch-utils.h (legacy_register_sim_regno): To here.
6501 * remote-sim.c (legacy_register_sim_regno): Move function from
6502 here.
6503 * arch-utils.c (legacy_register_sim_regno): To here.
6504
6505 2002-05-28 Andrew Cagney <ac131313@redhat.com>
6506
6507 * sim-regno.h: New file.
6508 * Makefile.in (sim_regno_h): Define.
6509 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
6510 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
6511 (legacy_register_sim_regno): New function.
6512 (one2one_register_sim_regno): New function.
6513 (gdbsim_fetch_register): Rewrite.
6514 (gdbsim_store_register): Only store a register when
6515 REGISTER_SIM_REGNO is valid.
6516 * d10v-tdep.c: Include "sim-regno.h".
6517 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
6518 (d10v_ts3_register_sim_regno): Ditto.
6519 * gdbarch.sh: Include "sim-regno.h".
6520 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
6521 * gdbarch.h, gdbarch.c: Regenerate.
6522 * arch-utils.h (default_register_sim_regno): Delete declaration.
6523 * arch-utils.c (default_register_sim_regno): Delete function.
6524
6525 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
6526
6527 * ppcnbsd-nat.c: Rewrite.
6528 * ppcnbsd-tdep.c: New file.
6529 * ppcnbsd-tdep.h: New file.
6530 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
6531 solib.o, and solib-svr4.o.
6532 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
6533 nbsd-tdep.o, and corelow.o.
6534
6535 2002-05-28 Andrew Cagney <ac131313@redhat.com>
6536
6537 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
6538 `tr' and `sed'. Mention that `broken' targets are not expected to
6539 build.
6540
6541 2002-05-27 Michal Ludvig <mludvig@suse.cz>
6542
6543 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
6544 Let PC point right after the prologue before looking up symbols.
6545
6546 2002-05-27 Martin M. Hunt <hunt@redhat.com>
6547
6548 * i386-tdep.c (i386_register_virtual_type): Return
6549 builtin_type_vec128i for SSE registers.
6550
6551 * gdbtypes.h (builtin_type_vec128i): Declare.
6552
6553 * gdbtypes.c (build_builtin_type_vec128i): New function.
6554 (builtin_type_v2_double, builtin_type_v4_int64): New types.
6555 (builtin_type_vec128i): New type for SSE2 128-bit registers.
6556 (build_gdbtypes): Initialize new builtin vector types.
6557 (_initialize_gdbtypes): Register new vector types with gdbarch.
6558
6559 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6560
6561 * MAINTAINERS: ns32k is not longer an obsolete candidate,
6562 since it has been multi-arch'd.
6563 * NEWS: Note that ns32k-*-* is now partial multi-arch.
6564 Move Alpha and VAX multi-arch news entries to same section
6565 as other multi-arch news.
6566
6567 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6568
6569 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
6570 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
6571 static. Rename some register numbers to put them in ns32k-tdep
6572 private namespace.
6573 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
6574 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
6575 functions.
6576 (_initialize_ns32k_tdep): Use gdbarch_register.
6577 * ns32k-tdep.h: New file.
6578 * ns32knbsd-tdep.c: New file.
6579 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
6580 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
6581 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
6582 REGISTER_BYTES, REGISTER_BYTE): Remove.
6583 * config/ns32k/tm-ns32k.h: New file.
6584 * config/ns32k/tm-umax.h: Remove.
6585
6586 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6587
6588 * ns32k-tdep.c (ns32k_saved_pc_after_call,
6589 ns32k_store_struct_return, ns32k_extract_return_value,
6590 ns32k_store_return_value, ns32k_extract_struct_value_address): New
6591 functions.
6592 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
6593 ns32k_saved_pc_after_call.
6594 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
6595 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
6596 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
6597 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
6598 ns32k_extract_struct_value_address.
6599
6600 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6601
6602 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
6603 ns32k_fix_call_dummy): New.
6604 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
6605 ns32k_call_dummy_words.
6606 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
6607 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
6608 CALL_DUMMY_NARGS): Remove.
6609 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
6610
6611 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6612
6613 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
6614 ns32k_frame_saved_pc, ns32k_frame_args_address,
6615 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
6616 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
6617 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
6618 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
6619 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
6620 (BREAKPOINT): Remove..
6621 (FRAME_CHAIN): Define as ns32k_frame_chain.
6622 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
6623 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
6624 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
6625 (FRAME_FIND_SAVED_REGS): Remove.
6626 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
6627 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
6628 (POP_FRAME): Define as ns32k_pop_frame.
6629
6630 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6631
6632 * ns32k-tdep.c (ns32k_register_byte_32082,
6633 ns32k_register_byte_32382, ns32k_register_raw_size,
6634 ns32k_register_virtual_size, ns32k_register_virtual_type): New
6635 functions.
6636 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
6637 ns32k_register_byte_32382.
6638 * config/ns32k/tm-umax.h: Update copyright years.
6639 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
6640 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
6641 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
6642 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
6643 (ns32k_get_enter_addr): Fix prototype.
6644
6645 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6646
6647 * ns32k-tdep.c: Update copyright years.
6648 (ns32k_register_name_32082): New function.
6649 (ns32k_register_name_32382): Ditto.
6650 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
6651 (REGISTER_NAME): Define as ns32k_register_name_32382.
6652 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
6653 (REGISTER_NAME): Define as ns32k_register_name_32082.
6654
6655 2002-05-24 Jim Blandy <jimb@redhat.com>
6656
6657 * dwarf2read.c (free_line_header): Use xfree, not free.
6658
6659 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
6660
6661 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
6662 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
6663
6664 2002-05-23 Andrew Cagney <ac131313@redhat.com>
6665
6666 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
6667
6668 2002-05-23 Andrew Cagney <ac131313@redhat.com>
6669
6670 From Ross Alexander at NEC Europe:
6671 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
6672
6673 2002-05-23 Michael Snyder <msnyder@redhat.com>
6674
6675 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
6676 for input, rather than parse_and_eval_address.
6677
6678 2002-05-23 Andrew Cagney <ac131313@redhat.com>
6679
6680 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
6681 * Makefile.in (sim_d10v_h): Update definition.
6682
6683 2002-05-24 Andrew Cagney <cagney@redhat.com>
6684
6685 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
6686 change `2002-05-22 Michael Snyder' below.
6687 (d10v_push_arguments): Ditto.
6688 (d10v_extract_return_value): Ditto.
6689
6690 2002-05-23 Jim Blandy <jimb@redhat.com>
6691
6692 * macrotab.c (check_for_redefinition): Don't complain if the new
6693 definition is the same as the previous one. Take more arguments
6694 to allow the comparison.
6695 (macro_define_object, macro_define_function): Pass more arguments
6696 to check_for_redefinition.
6697
6698 2002-05-22 Michael Snyder <msnyder@redhat.com>
6699
6700 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
6701 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
6702 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
6703 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
6704 Don't bail if return_pc is PC_IN_CALL_DUMMY.
6705 Add a temp variable to save a call (and a memory read).
6706 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
6707 if possible (so that PC_IN_CALL_DUMMY will work).
6708
6709 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
6710
6711 * MAINTAINERS: Remove status `OBSOLETE' from v850.
6712
6713 2002-05-22 Michal Ludvig <mludvig@suse.cz>
6714
6715 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
6716 fde->cie_ptr.
6717 (dwarf2_build_frame_info): Corrected handling of eh_frame.
6718 (dwarf2_build_frame_info): Add offset to fde->initial_location
6719 so that frames of shared libraries are mapped correctly.
6720 (execute_stack_op): Change type of 'result' from ULONGEST to
6721 CORE_ADDR.
6722
6723 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
6724
6725 * config/alpha/tm-nbsd.h: Include solib.h.
6726
6727 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
6728
6729 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
6730 assumptions about the host's byte order.
6731
6732 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
6733
6734 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
6735 to dependency list.
6736 * alphanbsd-tdep.c: Include solib-svr4.h.
6737 * shnbsd-tdep.c: Ditto.
6738
6739 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
6740
6741 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
6742 nbsd-tdep.h to dependency list.
6743 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
6744 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
6745 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
6746 nbsdaout.mh and nbsdelf.mh consistently.
6747 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
6748 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
6749 nbsdaout.mt and nbsdelf.mh consistently.
6750 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
6751 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
6752 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
6753 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
6754 a.out shared library stuff from here...
6755 * config/nm-nbsdaout.h: ...to here.
6756 * config/tm-nbsd.h: Remove.
6757 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
6758 * config/arm/nbsd.mh: Remove.
6759 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
6760 nbsd-tdep.o.
6761 * config/arm/nbsdaout.mh: New file.
6762 * config/arm/nbsdelf.mh: New file.
6763 * config/arm/nm-nbsdaout.h: New file.
6764 * config/i386/nbsd.mh: Remove.
6765 * config/i386/nbsd.mt: Remove.
6766 * config/i386/nbsdaout.mh: New file.
6767 * config/i386/nbsdaout.mt: New file.
6768 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
6769 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
6770 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
6771 i386_register_u_addr): Remove.
6772 * config/i386/nm-nbsdaout.h: New file.
6773 * config/i386/nm-nbsdelf.h: Remove.
6774 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
6775 (USE_STRUCT_CONVENTION): Remove.
6776 * config/i386/tm-nbsdaout.h: New file.
6777 * config/i386/tm-nbsdelf.h: Remove.
6778 * config/m68k/nbsd.mh: Remove.
6779 * config/m68k/nbsd.mt: Remove.
6780 * config/m68k/nbsdaout.mh: New file.
6781 * config/m68k/nbsdaout.mt: New file.
6782 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
6783 * config/m68k/nm-nbsdaout.h: New file.
6784 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
6785 (IN_SOLIB_CALL_TRAMPOLINE): Define.
6786 * config/ns32k/nbsd.mh: Remove.
6787 * config/ns32k/nbsd.mt: Remove.
6788 * config/ns32k/nbsdaout.mh: New file.
6789 * config/ns32k/nbsdaout.mt: New file.
6790 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
6791 * config/ns32k/nm-nbsdaout.h: New file.
6792 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
6793 (IN_SOLIB_CALL_TRAMPOLINE): Define.
6794 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
6795 (SVR4_SHARED_LIBS): Remove.
6796 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
6797 * config/sparc/nbsd.mh: Remove.
6798 * config/sparc/nbsd.mt: Remove.
6799 * config/sparc/nbsdaout.mh: New file.
6800 * config/sparc/nbsdaout.mt: New file.
6801 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
6802 * config/sparc/nbsdelf.mt: New file.
6803 * config/sparc/nm-nbsdaout.h: New file.
6804 * config/sparc/nm-nbsdelf.h: Remove.
6805 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
6806 * config/sparc/tm-nbsdaout.h: New file.
6807
6808 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6809
6810 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
6811 mipsnbsd-tdep.c
6812 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
6813
6814 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6815
6816 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
6817 shnbsd-nat.c.
6818 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
6819
6820 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6821
6822 * NEWS: Note new MIPS NetBSD native configuration.
6823 * configure.host (mips*-*-netbsd*): New host.
6824 * configure.tgt (mips*-*-netbsd*): New target.
6825 * mipsnbsd-nat.c: New file.
6826 * mipsnbsd-tdep.c: New file.
6827 * mipsnbsd-tdep.h: New file.
6828 * config/mips/nbsd.mh: New file.
6829 * config/mips/nbsd.mt: New file.
6830 * config/mips/nm-nbsd.h: New file.
6831 * config/mips/tm-nbsd.h: New file.
6832
6833 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6834
6835 * Makefile.in (SFILES): Add osabi.c.
6836 (COMMON_OBS): Add osabi.o.
6837 (osabi.o): New dependency list.
6838 * osabi.c: New file.
6839 * osabi.h: New file.
6840 * doc/gdbint.texinfo: Document new generic OS ABI framework.
6841
6842 * Makefile.in (alpha_tdep_h): Define and use instead of
6843 alpha-tdep.h.
6844 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
6845 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
6846 Remove.
6847 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
6848 * alpha-tdep.h: Include osabi.h.
6849 (alpha_abi): Remove.
6850 (gdbarch_tdep): Use generic OS ABI framework.
6851 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
6852 gdbarch_register_osabi.
6853 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
6854 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
6855 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
6856
6857 * Makefile.in (sh_tdep_h): Add osabi.h.
6858 * sh-tdep.h (sh_osabi): Remove.
6859 (gdbarch_tdep): Use generic OS ABI framework.
6860 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
6861 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
6862 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
6863 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
6864
6865 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
6866 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
6867 gdbarch_register_osabi.
6868 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
6869 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
6870 (get_elfosabi): Rename to...
6871 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
6872 ABI framework support routines.
6873 (arm_gdbarch_init): Use generic OS ABI framework.
6874 (arm_dump_tdep): Likewise.
6875 (_initialize_arm_tdep): Likewise.
6876 * arm-tdep.h: Include osabi.h.
6877 (arm_abi): Remove.
6878 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
6879 osabi member.
6880 (arm_gdbarch_register_os_abi): Remove prototype.
6881 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
6882 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
6883
6884 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
6885 * mips-tdep.c: Include osabi.h.
6886 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
6887 OS ABI framework.
6888
6889 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
6890
6891 * h8300-tdep.c: Fix formatting.
6892
6893 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
6894
6895 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
6896 printing vector registers.
6897
6898 2002-05-19 Andrew Cagney <ac131313@redhat.com>
6899
6900 From Fernando Nasser:
6901 * remote.c (remote_async_open_1): Re-throw the exception when the
6902 connection fails.
6903 (remote_cisco_open): Ditto.
6904 (remote_open_1): Ditto.
6905
6906 2002-05-19 Andrew Cagney <ac131313@redhat.com>
6907
6908 * remote.c (remote_start_remote_dummy): Add uiout parameter.
6909 (remote_start_remote): Add uiout parameter. Pass through to
6910 remote_start_remote_dummy.
6911 (remote_open_1): Use catch_exception instead of catch_errors.
6912 (remote_async_open_1): Ditto.
6913 (remote_cisco_open): Ditto.
6914
6915 2002-05-19 Andrew Cagney <ac131313@redhat.com>
6916
6917 * remote.c (remote_start_remote): Replace PTR with void pointer.
6918 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
6919 static.
6920
6921 2002-05-18 Andrew Cagney <ac131313@redhat.com>
6922
6923 * gdb_indent.sh: Allow the script to be run in the sim directory.
6924
6925 2002-05-18 Mark Kettenis <kettenis@gnu.org>
6926
6927 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
6928 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
6929
6930 * corelow.c (core_open): Only call set_gdbarch_from_file if
6931 exec_bfd is NULL.
6932
6933 2002-05-17 Andrey Volkov <avolkov@transas.com>
6934
6935 * h8300-tdep.c: Add support of EXR register
6936 * config/h8300/tm-h8300.h: Ditto.
6937
6938 2002-05-17 Andrey Volkov <avolkov@transas.com>
6939
6940 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
6941
6942 2002-05-17 Andrey Volkov <avolkov@transas.com>
6943
6944 * h8300-tdep.c: Change literal regnums to REGNO.
6945
6946 2002-05-17 Jim Blandy <jimb@redhat.com>
6947
6948 * NEWS: Note addition of macro support.
6949
6950 Expand preprocessor macros in C expressions.
6951 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
6952 (scan_macro_expansion, scanning_macro_expansion,
6953 finished_macro_expansion): New function declarations.
6954 (expression_macro_lookup_func, expression_macro_lookup_baton): New
6955 variable declarations.
6956 * parser-defs.h (expression_context_pc): New declaration.
6957 * parse.c (expression_context_pc): New variable.
6958 (parse_exp_1): Set expression_context_pc, as well as
6959 expression_context_block.
6960 * c-exp.y (yylex): If we're not already reading the result of a
6961 macro expansion, try to macro-expand the next token. When we're
6962 done scanning a macro expansion, switch back to the mainline text.
6963 Commas and `if's in a macro's expansion don't terminate the input.
6964 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
6965 (macro_original_text, macro_expanded_text,
6966 expression_macro_lookup_func, expression_macro_lookup_baton): New
6967 variables.
6968 (scan_macro_expansion, scanning_macro_expansion,
6969 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
6970 c_preprocess_and_parse): New functions.
6971 (c_language_defn, cplus_language_defn, asm_language_defn): Call
6972 c_preprocess_and_parse, instead of c_parse.
6973 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
6974 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
6975
6976 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
6977
6978 * sh-tdep.c (gdb_print_insn_sh64): Delete.
6979 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
6980 (sh_gdbarch_init): Always use gdb_print_insn_sh.
6981
6982 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
6983
6984 * NEWS: Add section for multi-arched targets. Add v850 to that section.
6985
6986 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
6987
6988 * Makefile.in (sh_tdep_h): Define and use.
6989 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
6990 register enum): Move to...
6991 * * sh-tdep.h: ...here.
6992 * sh-tdep.c: Include sh-tdep.h.
6993 * sh3-rom.c: Likewise.
6994 * shnbsd-tdep.c: Likewise.
6995
6996 2002-05-16 Michael Snyder <msnyder@redhat.com>
6997
6998 * arm-tdep.c: Spelling fix in comment.
6999
7000 2002-05-16 Jim Blandy <jimb@redhat.com>
7001
7002 Add commands for manually expanding macros and showing their
7003 definitions.
7004 * macrocmd.c, macroscope.c, macroscope.h: New files.
7005 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
7006 (macroscope_h): New variable.
7007 (HFILES_NO_SRCDIR): Add macroscope.h.
7008 (COMMON_OBS): Add macrocmd.o, macroscope.o.
7009 (macroscope.o, macrocmd.o): New rules.
7010
7011 Teach the Dwarf 2 reader to read macro information.
7012 * dwarf2read.c: #include "macrotab.h".
7013 (dwarf_macinfo_buffer): New variable.
7014 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
7015 dwarf_macinfo_size.
7016 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
7017 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
7018 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
7019 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
7020 dwarf2_macro_spaces_in_definition): New complaints.
7021 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
7022 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
7023 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
7024 the partial symbol table.
7025 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
7026 from what's recorded in the partial symbol table.
7027 (read_file_scope): If the compilation unit has a
7028 `DW_AT_macro_info' attribute, read its macro information.
7029 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
7030
7031 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
7032
7033 Fix PR gdb/546
7034 * ser-tcp.c: Don't include <netinet/udp.h>.
7035
7036 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
7037
7038 * MAINTAINERS: Update my email address.
7039
7040 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
7041
7042 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
7043 include file of the same name.
7044
7045 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
7046
7047 * configure.tgt: Mark v850 as multi-arched.
7048 * config/v850/tm-v850.h: Remove file.
7049 * config/v850/v850.mt: Eliminate TM_FILE.
7050
7051 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
7052
7053 * v850-tdep.c: Full multi-arch.
7054 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
7055 Define GDB_MULTI_ARCH to 2.
7056
7057 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
7058
7059 * p-exp.y (current_type): New static variable.
7060 Carries the type of the expression at the position that is parsed.
7061 (push_current_type, pop_current_type): Two new functions. Used
7062 to store/restore current_type in expression on specific tokens.
7063 (search_field): New static variable. Set to one after parsing a point
7064 as at that point only a FIELDNAME token should be searched.
7065 (FIELDNAME): New token. After a point only a token belonging to
7066 current_type type definition is allowed.
7067 (all over token rules): reset and change current_type according
7068 to rules.
7069 (exp '[' rule): insert implicit array index field if
7070 exp is a pascal string type.
7071
7072 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
7073
7074 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
7075 frame info. Use frame_info's saved_regs instead of matching member
7076 in extra_frame_info throughout.
7077 (v850_frame_init_saved_regs): New function.
7078 (v850_init_extra_frame_info): Move most functionality into
7079 v850_frame_init_saved_regs().
7080 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
7081 (v850_frame_find_saved_regs): Remove declaration.
7082 (FRAME_FIND_SAVED_REGS): Remove definition.
7083 (v850_frame_init_saved_regs): Add declaration.
7084 (FRAME_INIT_SAVED_REGS): Add definition.
7085
7086 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
7087
7088 * v850-tdep.c: Begin multi-arch'ing v850.
7089 (v850_target_architecture_hook): Remove function.
7090 (v850_gdbarch_init): New function. Add code previously in
7091 v850_target_architecture_hook().
7092 (_initialize_v850_tdep): Don't set target_architecture_hook.
7093 Call register_gdbarch_init() instead.
7094
7095 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
7096
7097 * gdbtypes.h (struct cplus_struct_type): Remove args field.
7098 * hpread.c (hpread_read_struct_type): Remove assignments to args.
7099 (fixup_class_method_type): Likewise.
7100
7101 2002-05-15 Jim Blandy <jimb@redhat.com>
7102
7103 Add macro structures to GDB's symbol tables. Nobody puts anything
7104 in them yet.
7105 * symtab.h (struct symtab): New member: `macro_table'.
7106 * buildsym.h (pending_macros): New global variable.
7107 * buildsym.c: #include "macrotab.h".
7108 (buildsym_init): Initialize `pending_macros'.
7109 (end_symtab): If we found macro information while reading a CU's
7110 debugging info, do build a symtab structure for it. Make the
7111 symtab point to the macro information, and clear the
7112 `pending_macros' pointer which held it while we were reading the
7113 debug info.
7114 (really_free_pendings): Free any pending macro table.
7115 * objfiles.h (struct objfile): New member: `macro_cache'.
7116 * objfiles.c (allocate_objfile): Set allocate and free functions
7117 for the macro cache's objstack.
7118 (free_objfile): Empty the macro cache's obstack.
7119 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
7120 set new allocate and free functions for it.
7121 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
7122 free functions for the macro cache's objstack. (Why is this
7123 function building its own objfile?)
7124 * symmisc.c (print_objfile_statistics): Print statistics on the
7125 macro bcache.
7126 * Makefile.in: Note that buildsym.o depends on macrotab.h.
7127
7128 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
7129
7130 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
7131 (REGISTER_U_ADDR): Delete definition.
7132 (arm_register_u_addr): Delete declaration.
7133
7134 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
7135
7136 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
7137 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
7138
7139 2002-05-14 Andrew Cagney <ac131313@redhat.com>
7140
7141 * regcache.c (register_valid): Revise comments refering to "Not
7142 available" and "unavailable".
7143 * frame.c (frame_register_read): Ditto.
7144 * findvar.c (value_of_register): Ditto.
7145
7146 2002-05-15 Andrew Cagney <cagney@redhat.com>
7147
7148 * Makefile.in (remote_sim_h): Replace remote-sim_h.
7149 (remote-sim.o): Update dependencies.
7150 (d10v-tdep.o): Specify dependencies.
7151 (sim_d10v_h): Define.
7152
7153 2002-05-14 Jim Blandy <jimb@redhat.com>
7154
7155 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
7156 * macrotab.c (macro_lookup_inclusion, find_definition,
7157 new_macro_table): Same.
7158
7159 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
7160 not `! strcmp ()'. This is a dubious improvement.
7161 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
7162
7163 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
7164 although it's not necessary, to avoid a warning.
7165
7166 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
7167
7168 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
7169 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
7170 TYPE_INSTANCE_FLAGS.
7171 (struct main_type): New.
7172 (struct type): Move most members to struct main_type. Change
7173 cv_type and as_type to new type_chain member. Add instance_flags.
7174 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
7175 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
7176 (finish_cv_type): Remove prototype.
7177 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
7178 Set TYPE_CHAIN.
7179 (alloc_type_instance): New function.
7180 (smash_type): New function.
7181 (make_pointer_type, make_reference_type, make_function_type)
7182 (smash_to_member_type, smash_to_method_type): Call smash_type.
7183 (make_qualified_type): New function.
7184 (make_type_with_address_space): Call make_qualified_type.
7185 (make_cv_type): Likewise.
7186 (finish_cv_type): Remove unnecessary function.
7187 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
7188 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
7189 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
7190 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
7191 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
7192 * hpread.c (hpread_read_struct_type): Likewise.
7193 * stabsread.c (read_struct_type): Likewise.
7194
7195 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
7196
7197 * configure.tgt: Add a catch all sh* target, for cases like
7198 sh[2,3,4]-elf and sh-hms.
7199
7200 2002-05-14 Keith Seitz <keiths@redhat.com>
7201
7202 * event-loop.c (create_file_handler): Don't do anything but
7203 update data when we are given a fd which we are already
7204 monitoring.
7205
7206 2002-05-14 Michal Ludvig <mludvig@suse.cz>
7207
7208 * dwarf2cfi.c (context_cpy): Copy registers correctly.
7209 (update_context): Use __func__ in warnings.
7210
7211 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
7212
7213 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
7214 and tcp_close to net_open and net_close.
7215 (net_open): Accept "udp:" and "tcp:" specifications. Connect
7216 using UDP if requested. Don't try to disable Nagle on UDP
7217 sockets.
7218 * remote.c (remote_serial_open): New function. Warn about UDP.
7219 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
7220
7221 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
7222
7223 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
7224
7225 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
7226
7227 * configure.tgt: Remove sh-hms target.
7228 * MAINTAINERS: Don't list sh-hms as a separate target.
7229
7230 2002-05-13 Jim Blandy <jimb@redhat.com>
7231
7232 Add first preprocessor macro-expansion files.
7233 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
7234 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
7235 (splay_tree_h, macroexp_h, macrotab_h): New variable.
7236 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
7237 (COMMON_OBS): Add macrotab.o, macroexp.o.
7238 (macroexp.o, macrotab.o): New rules.
7239
7240 2002-05-13 Andrew Cagney <ac131313@redhat.com>
7241
7242 * config/m88k/tm-m88k.h: Update copyright.
7243 (m88k_target_write_pc): Declare
7244 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
7245 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
7246 (SHIFT_INST_REGS): Update definition.
7247 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
7248 using old definition of TARGET_WRITE_PC.
7249 * regcache.c (generic_target_write_pc): Delete code handling
7250 NNPC_REGNUM.
7251 * gdbarch.sh (NNPC_REGNUM): Delete.
7252 * gdbarch.h, gdbarch.c: Regenerate.
7253
7254 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
7255
7256 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
7257 builtin reg number.
7258
7259 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
7260
7261 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
7262 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
7263 (gen_address_of, gen_struct_ref, gen_repeat): Use type
7264 access macros.
7265 * c-typeprint.c (cp_type_print_method_args): Likewise.
7266 (c_type_print_args): Likewise.
7267 * d10v-tdep.c (d10v_push_arguments): Likewise.
7268 (d10v_extract_return_value): Likewise.
7269 * expprint.c (print_subexp): Likewise.
7270 * gdbtypes.c (lookup_primitive_typename): Likewise.
7271 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
7272 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
7273 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
7274 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
7275 (TYPE_VECTOR): Likewise.
7276 * hpread.c (hpread_read_struct_type)
7277 (fix_static_member_physnames, fixup_class_method_type)
7278 (hpread_type_lookup): Likewise.
7279 * mdebugread.c (parse_symbol, parse_type): Likewise.
7280 * p-lang.c (is_pascal_string_type): Likewise.
7281 * valops.c (hand_function_call): Likewise.
7282 * x86-64-tdep.c (classify_argument): Likewise.
7283
7284 * hpread.c (hpread_read_function_type)
7285 (hpread_read_doc_function_type): Call replace_type.
7286 * dstread.c (create_new_type): Delete.
7287 (decode_dst_structure, process_dst_function): Call alloc_type.
7288 Use type access macros.
7289
7290 2002-05-12 Mark Kettenis <kettenis@gnu.org>
7291
7292 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
7293 the're not supported by the current architecture.
7294 (i387_fill_fxsave): Likewise.
7295
7296 2002-05-12 Fred Fish <fnf@redhat.com>
7297
7298 * symfile.c (default_symfile_offsets): Arrange for uninitialized
7299 sect_index_xxx members to index the first slot in section_offsets
7300 if all of the section_offsets are zero.
7301
7302 2002-05-12 Mark Kettenis <kettenis@gnu.org>
7303
7304 * configure.tgt (sparc-*openbsd): Remove entry accidentially
7305 checked in with last change.
7306
7307 2002-05-12 Mark Kettenis <kettenis@gnu.org>
7308
7309 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
7310 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
7311 config.sub.
7312
7313 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
7314
7315 * Makefile.in: Update dependencies.
7316
7317 2002-05-11 Andrew Cagney <ac131313@redhat.com>
7318
7319 * language.c (local_hex_string_custom): Simplify. Do not depend
7320 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
7321
7322 * memattr.c (mem_info_command): Replace calls to
7323 longest_local_hex_string and longest_local_hex_string_custom.
7324 * buildsym.c (make_blockvector): Ditto.
7325 * solib.c (info_sharedlibrary_command): Ditto.
7326 * tracepoint.c (tracepoints_info): Ditto.
7327 * symtab.c (print_msymbol_info): Ditto.
7328
7329 * language.c (local_hex_string): Delete.
7330 (local_hex_string_custom): Delete.
7331 (longest_local_hex_string): Rename to local_hex_string.
7332 (longest_local_hex_string_custom): Rename to
7333 local_hex_string_custom.
7334 * language.h (local_hex_string): Change parameter type to LONGEST.
7335 (local_hex_string_custom): Ditto.
7336 (longest_local_hex_string): Delete declaration.
7337 (longest_local_hex_string_custom): Ditto.
7338
7339 * solib.c: Update copyright.
7340 * memattr.c: Update copyright.
7341
7342 2002-05-11 Andrew Cagney <ac131313@redhat.com>
7343
7344 * arch-utils.h (legacy_register_to_value): Declare.
7345 (legacy_value_to_register): Declare.
7346 (legacy_convert_register_p): Declare.
7347 * arch-utils.c (legacy_register_to_value): New function.
7348 (legacy_value_to_register): New function.
7349 (legacy_convert_register_p): New function.
7350
7351 * gdbarch.sh (REGISTER_TO_VALUE): Define.
7352 (VALUE_TO_REGISTER): Define.
7353 (CONVERT_REGISTER_P): Define.
7354 * gdbarch.h, gdbarch.c: Regenerate.
7355
7356 * valops.c (value_assign): Use CONVERT_REGISTER_P and
7357 VALUE_TO_REGISTER.
7358 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
7359 CONVERT_REGISTER_P.
7360
7361 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
7362 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7363
7364 * Makefile.in: Update dependencies for valops.c.
7365 * valops.c: Include "gdb_assert.h".
7366 (typecmp): Skip THIS parameter to methods.
7367 (find_method_list): Remove static_memfuncp argument,
7368 update callers. Check for stub methods.
7369 (find_value_oload_method_list): Don't set *static_memfuncp.
7370 (find_overload_match): Don't check for stub methods. Assert
7371 that methods are not stubbed. Handle static methods.
7372 (value_find_oload_method_list): Remove static_memfuncp argument.
7373 * gdbtypes.c (check_stub_method): Do not add THIS pointer
7374 to the argument list for static stub methods.
7375 * value.h (value_find_oload_method_list): Update prototype.
7376
7377 2002-05-11 Andrew Cagney <ac131313@redhat.com>
7378
7379 * arch-utils.h (generic_register_size): Declare.
7380 (generic_register_raw_size, generic_register_virtual_size): Delete
7381 declarations.
7382 * arch-utils.c (generic_register_raw_size): Delete.
7383 (generic_register_size): New function.
7384 (generic_register_virtual_size): Delete.
7385
7386 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
7387 default generic_register_size.
7388 * gdbarch.h, gdbarch.c: Re-generate.
7389
7390 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
7391 register_virtual_size.
7392 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
7393 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7394
7395 2002-05-11 Andrew Cagney <ac131313@redhat.com>
7396
7397 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
7398 * gdbarch.h, gdbarch.c: Regenerate.
7399 * gnu-v3-abi.c: Update copyright.
7400 (vtable_address_point_offset): Update.
7401 (gnuv3_rtti_type): Update.
7402 (gnuv3_baseclass_offset): Update.
7403 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
7404 (init_fetch_link_map_offsets): Update.
7405 * remote.c (get_remote_state): Update.
7406
7407 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
7408
7409 * TODO: Remove value_headof/value_from_vtable_info comment.
7410 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
7411 * values.c (value_headof, value_from_vtable_info): Delete.
7412 * value.h (value_from_vtable_info): Delete prototype.
7413
7414 2002-05-11 Andrew Cagney <ac131313@redhat.com>
7415
7416 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
7417 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
7418 $(gdb_regex_h).
7419 (gdb_assert_h): Define.
7420 (gdb_wait_h): Define.
7421 (gdb_regex_h): Define.
7422
7423 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
7424
7425 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
7426 * linespec.c (find_methods): Handle GCC 3.x template constructors.
7427
7428 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7429
7430 * nbsd-tdep.c: Fix comment.
7431
7432 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7433
7434 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
7435 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
7436 (nbsd-tdep.o): New dependency list.
7437 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
7438 nbsd-tdep.h.
7439 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
7440 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
7441 * nbsd-tdep.c: New file.
7442 * nbsd-tdep.h: New file.
7443 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
7444 nbsd-tdep.h.
7445 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
7446 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
7447 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
7448 * config/sh/nbsd.mt (TDEPFILES): Ditto.
7449
7450 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7451
7452 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
7453 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
7454 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
7455 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
7456 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
7457 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
7458
7459 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7460
7461 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
7462 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
7463 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
7464 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
7465 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
7466 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
7467 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
7468
7469 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7470
7471 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
7472 fetch_elfcore_registers to...
7473 * i386nbsd-tdep.c: ...here.
7474 (i386nbsd_use_struct_convention): Rename to...
7475 (i386nbsd_aout_use_struct_convention): ...this.
7476 (i386nbsd_supply_reg): New function.
7477 (i386nbsd_fill_reg): New function.
7478 (fetch_core_registers): Use i386nbsd_supply_reg.
7479 (fetch_elfcore_registers): Likewise.
7480 (_initialize_i386nbsd_tdep): New function.
7481 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
7482 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
7483 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
7484 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
7485 (i386nbsd_aout_use_struct_convention): ...this.
7486
7487 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7488
7489 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
7490 (store_inferior_registers): Use shnbsd_fill_reg.
7491 * shnbsd-tdep.c (sh_nbsd_supply_registers,
7492 sh_nbsd_supply_register): Collapse into...
7493 (shnbsd_supply_reg): ...this.
7494 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
7495 (shnbsd_fill_reg): ...this.
7496 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
7497 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
7498 (fetch_core_registers): Use shnbsd_supply_reg.
7499 (fetch_elfcore_registers): Use shnbsd_supply_reg.
7500 (sh_nbsd_core_fns): Rename to...
7501 (shnbsd_core_fns): ...this.
7502 (sh_nbsd_elfcore_fns): Rename to...
7503 (shnbsd_elfcore_fns): ...this.
7504 (sh_nbsd_init_abi): Rename to...
7505 (shnbsd_init_abi): ...this.
7506 (_initialize_sh_nbsd_tdep): Rename to...
7507 (_initialize_shnbsd_tdep): ...this.
7508 * shnbsd-tdep.h (sh_nbsd_supply_registers,
7509 sh_nbsd_supply_register, sh_nbsd_fill_registers,
7510 sh_nbsd_fill_register): Remove prototypes.
7511 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
7512
7513 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7514
7515 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
7516 (i387-nat.o): Delete dependency list.
7517 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
7518 (x86-64-linux-nat.o): Likewise.
7519 * i387-nat.c: Delete file, moving contents to...
7520 * i387-tdep.c: ...here.
7521 * i387-nat.h: Rename...
7522 * i387-tdep.h: ...to this.
7523 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
7524 * i386-linux-nat.c: Likewise.
7525 * i386bsd-nat.c: Likewise.
7526 * i386gnu-nat.c: Likewise.
7527 * i386nbsd-nat.c: Likewise.
7528 * i386v4-nat.c: Likewise.
7529 * x86-64-linux-nat.c: Likewise.
7530 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
7531 * config/i386/go32.mh (NATDEPFILES): Likewise.
7532 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
7533 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
7534 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
7535 * config/i386/linux.mh (NATDEPFILES): Likewise.
7536 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
7537 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
7538 * config/i386/obsd.mh (NATDEPFILES): Likewise.
7539 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
7540
7541 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7542
7543 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
7544 (alphanbsd-nat.o): Remove dependency list.
7545 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
7546 * alphanbsd-nat.c: Delete. Contents moved to...
7547 * alphanbsd-tdep.c: ...here.
7548 (_initialize_alphanbsd_tdep): Register core functions.
7549 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
7550
7551 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7552
7553 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
7554 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
7555 (alphanbsd-nat.o): Likewise.
7556 (alphabsd-tdep.o): New dependency list.
7557 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
7558 (fill_gregset): Use alphabsd_fill_reg.
7559 (supply_fpregset): Use alphabsd_supply_fpreg.
7560 (fill_fpregset): Use alphabsd_fill_fpreg.
7561 (fetch_inferior_registers): Use struct reg and struct fpreg
7562 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
7563 and alphabsd_supply_fpreg.
7564 (store_inferior_registers): Use struct reg and struct fpreg
7565 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
7566 and alphabsd_fill_fpreg.
7567 * alphabsd-tdep.c: New file.
7568 * alphabsd-tdep.h: New file.
7569 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
7570 (fetch_elfcore_registers): Use alphabsd_supply_reg and
7571 alphabsd_supply_fpreg.
7572 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
7573 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
7574
7575 2002-05-11 Eric Christopher <echristo@redhat.com>
7576
7577 * mips-tdep.c (mips_double_register_type): Fix thinko.
7578 (mips_single_register_type): Ditto.
7579 * MAINTAINERS: Add self.
7580
7581 2002-05-11 Mark Kettenis <kettenis@gnu.org>
7582
7583 * i387-nat.c (i387_supply_register, i387_fill_fsave,
7584 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
7585 right thing on architectures with different endianness and/or
7586 integer sizes.
7587
7588 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
7589
7590 From Christian Limpach <chris@Pin.LU>
7591 * configure.in: Change sed expression which comments out
7592 NATDEPFILES to also comment out continuation lines.
7593 * configure: Regenerate.
7594
7595 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
7596
7597 * sh-tdep.c: Clean up code erroneously reintroduced by previous
7598 big patch.
7599
7600 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
7601
7602 * sh-tdep.c: Include correct file.
7603
7604 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
7605
7606 New support for sh64-elf (sh5) target.
7607
7608 * configure.tgt: For sh64-elf target, default to sh-elf.
7609
7610 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
7611 (struct gdbarch_tdep): Add new fields for new registers and ABI
7612 info.
7613
7614 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
7615 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
7616 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
7617 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
7618 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
7619 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
7620 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
7621 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
7622 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
7623 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
7624 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
7625 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
7626 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
7627 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
7628 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
7629 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
7630 sh64_get_gdb_regnum, sh64_media_reg_base_num,
7631 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
7632 sign_extend, sh64_nofp_frame_init_saved_regs,
7633 sh64_init_extra_frame_info, sh64_get_saved_register,
7634 sh64_extract_struct_value_address, sh64_pop_frame,
7635 sh64_push_arguments, sh64_extract_return_value,
7636 sh64_store_return_value, sh64_show_media_regs,
7637 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
7638 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
7639 sh_sh64_register_virtual_type,
7640 sh_sh64_register_convert_to_virtual,
7641 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
7642 sh64_register_read, sh64_pseudo_register_write,
7643 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
7644 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
7645 sh64_do_pseudo_register, sh_compact_do_registers_info,
7646 sh64_do_registers_info, sh_gdbarch_init): New functions.
7647
7648 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
7649
7650 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
7651
7652 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
7653
7654 * linespec.c (decode_line_1): Check for a double quote after
7655 a filename correctly.
7656
7657 2002-05-10 Jim Blandy <jimb@redhat.com>
7658
7659 Properly track the size of the current objfile's .debug_line section.
7660 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
7661 (DWARF_LINE_SIZE): New macro.
7662 (dwarf2_build_psymtabs_hard): Record the line section's size in
7663 the partial symbol table.
7664 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
7665 symbol table.
7666
7667 2002-05-10 Petr Sorfa <petrs@caldera.com>
7668
7669 * ia64-tdep.c: Handle breakpoints on L instruction type
7670 in MLX instruction bundle by moving the breakpoint to
7671 the third slot (X instruction type) as L holds only data.
7672
7673 2002-05-10 Kevin Buettner <kevinb@redhat.com>
7674
7675 * dbxread.c (discarding_local_symbols_complaint): New complaint.
7676 (process_one_symbol): Complain about discarding local symbols
7677 due to a misplaced N_LBRAC entry.
7678
7679 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
7680
7681 From Daniel Berlin <dan@cgsoftware.com>
7682 * linespec.c (find_toplevel_char): '<' and '>' also increase and
7683 decrease the depth we are at, in the case of templates.
7684
7685 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
7686
7687 * mips-tdep.c (mips_float_register_type): New function.
7688 (mips_double_register_type): New function.
7689 (mips_print_register): Use them.
7690 (do_fp_register_row): Likewise.
7691
7692 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
7693
7694 * signals/signals.c (signals): Remove conditional compilation around
7695 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
7696 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
7697
7698 2002-05-09 Michael Snyder <msnyder@redhat.com>
7699
7700 * remote-rdp.c (remote_rdp_can_run): Remove.
7701
7702 2002-05-09 Tom Tromey <tromey@redhat.com>
7703
7704 * jv-valprint.c (java_val_print): Handle `char' as a special case
7705 of TYPE_CODE_INT.
7706
7707 2002-05-09 Michael Snyder <msnyder@redhat.com>
7708
7709 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
7710 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
7711 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
7712 str r(0123),[sp,#nn].
7713 (arm_skip_prologue): Ditto. Also make disassembly
7714 order-independent by placing it in a loop.
7715
7716 2002-05-06 Michael Snyder <msnyder@redhat.com>
7717
7718 * stabsread.c (read_type): Add recognition for new attribute:
7719 "@V;" means that an array type is actually a vector.
7720 This is analogous to the vector flag that's been added to dwarf2.
7721
7722 2002-05-09 Mark Kettenis <kettenis@gnu.org>
7723
7724 * i386-tdep.h (i386_abi): New enum.
7725 (struct gdbarch_tdep): Replace os_ident member with abi.
7726 (i386_gdbarch_register_os_abi): New prototype.
7727 * i386-tdep.c (i386_abi_names): New array.
7728 (process_note_abi_tag_sections): Removed.
7729 (process_note_sections): New function.
7730 (i386_elf_abi_from_note, i386_elf_abi): New functions.
7731 (struct i386_abi_handler): New struct.
7732 (i386_abi_handler_list): New variable.
7733 (i386_gdbarch_register_os_abi): New function.
7734 (i386_gdbarch_init): Adapt for the changes given above.
7735
7736 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
7737
7738 * gregset.h: Say "GNU/Linux".
7739
7740 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
7741
7742 * gdbtypes.c : Add new builtin type for 64 bit vectors.
7743 (build_gdbtypes): Build builtin_type_v2_float.
7744 (_initialize_gdbtypes): Register new builtin type.
7745
7746 2002-05-08 Andrew Cagney <ac131313@redhat.com>
7747
7748 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
7749 (clear_gdbarch_swap): New function.
7750 (initialize_non_multiarch): Call.
7751 (gdbarch_update_p): Before calling init(), swap out and clear the
7752 existing architecture.
7753 * gdbarch.c: Regenerate.
7754
7755 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7756
7757 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
7758 alphanbsd-tdep.c.
7759
7760 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7761
7762 * sh-nbsd-nat.c: Rename to...
7763 * shnbsd-nat.c: ...this.
7764 * sh-nbsd-tdep.c: Rename to...
7765 * shnbsd-tdep.c: ...this.
7766 * sh-nbsd-tdep.h: Rename to...
7767 * shnbsd-tdep.h: ...this.
7768 * config/sh/nbsd.mh: Use shnbsd-nat.o.
7769 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
7770
7771 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
7772
7773 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
7774 concatenation for command help messages.
7775
7776 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7777
7778 * NEWS: Note new sh*-*-netbsdelf* configuration.
7779 * configure.host: Set gdb_host_cpu to sh for all sh*.
7780 (sh*-*-netbsdelf*): New host.
7781 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
7782 (sh*-*-netbsdelf*): New target.
7783 * sh-nbsd-nat.c: New file.
7784 * sh-nbsd-tdep.c: New file.
7785 * sh-nbsd-tdep.h: New file.
7786 * config/sh/nbsd.mh: New file.
7787 * config/sh/nbsd.mt: New file.
7788 * config/sh/nm-nbsd.h: New file.
7789 * config/sh/tm-nbsd.h: New file.
7790
7791 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7792
7793 * sh-tdep.c (sh_osabi_names): Declare.
7794 (process_note_abi_tag_sections): New function.
7795 (get_elfosabi): Ditto.
7796 (sh_gdbarch_register_os_abi): Ditto.
7797 (sh_dump_tdep): Ditto.
7798 _initialize_sh_tdep): Use gdbarch_register to register
7799 sh_gdbarch_init and sh_dump_tdep.
7800 * config/sh/tm-sh.h (sh_osabi): Declare.
7801 (gdbarch_tdep): Add sh_osabi and osabi_name members.
7802
7803 2002-05-07 Andrew Cagney <ac131313@redhat.com>
7804
7805 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
7806 (thumb_scan_prologue): Ditto.
7807 (arm_find_callers_reg): Ditto.
7808 (arm_frame_chain): Ditto.
7809 (arm_init_extra_frame_info): Ditto.
7810 (arm_frame_saved_pc): Ditto.
7811 (arm_pop_frame): Ditto.
7812 (arm_push_return_address): New function.
7813 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
7814 call_dummy_location, call_dummy_breakpoint_offset_p,
7815 call_dummy_breakpoint_offset, call_dummy_p,
7816 call_dummy_stack_adjust_p, call_dummy_words,
7817 sizeof_call_dummy_words, call_dummy_start_offset,
7818 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
7819 call_dummy_address, push_return_address and push_dummy_frame for
7820 generic dummy frames.
7821
7822 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
7823
7824 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
7825 size computation for alloca.
7826 (sh_fp_frame_init_saved_regs): Likewise.
7827
7828 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
7829
7830 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
7831 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
7832 * arm-tdep.c (arm_store_return_value): Use them.
7833 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
7834 * remote-rdp.c (remote_rdp_fetch_register): Use
7835 ARM_MAX_REGISTER_RAW_SIZE.
7836 (remote_rdp_store_register): Likewise.
7837
7838 2002-05-07 Michal Ludvig <mludvig@suse.cz>
7839
7840 * dwarf2cfi.c: Code cleanup, removed unused variables,
7841 added default labels to switch {} statements.
7842 * x86-64-tdep.c: Ditto.
7843 * x86-64-linux-nat.c: Ditto.
7844
7845 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
7846
7847 * solib.h: Protect against multiple inclusion.
7848
7849 2002-05-06 Jim Blandy <jimb@redhat.com>
7850
7851 Add first preprocessor macro-expansion files.
7852 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
7853 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
7854 (splay_tree_h, macroexp_h, macrotab_h): New variable.
7855 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
7856 (COMMON_OBS): Add macrotab.o, macroexp.o.
7857 (macroexp.o, macrotab.o): New rules.
7858
7859 Separate the job of reading the line number info statement program
7860 header (...expialidocious) out into its own function.
7861 * dwarf2read.c (struct line_head, struct filenames, struct
7862 directories): Replace with...
7863 (struct line_header): New structure, containing the full
7864 contents of the statement program header, including the
7865 include directory and file name tables.
7866 (read_file_scope): If we have line number info, instead of just
7867 calling dwarf_decode_lines to do all the work, call
7868 dwarf_decode_line_header first to get a `struct line_header'
7869 containing the data in the statement program header, and then
7870 pass that to dwarf_decode_lines, which will pick up where that
7871 left off. Be sure to clean up the `struct line_header' object.
7872 (dwarf_decode_line_header, free_line_header, add_include_dir,
7873 add_file_name): New functions.
7874 (dwarf_decode_lines): Move all the code to read the statement
7875 program header into dwarf_decode_line_header. Take the line
7876 header it built as the first argument, instead of the offset to
7877 the compilation unit's line number info. Use the new `struct
7878 line_header' type instead of the old structures. No need to do
7879 cleanups here now, since we don't allocate anything.
7880 (dwarf2_statement_list_fits_in_line_number_section,
7881 dwarf2_line_header_too_long): New complaints.
7882
7883 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
7884
7885 * gdbtypes.c (init_vector_type): New function.
7886 (build_builtin_type_vec128): Simplify the representation of SIMD
7887 registers.
7888 (build_gdbtypes): Initialize new builtin vector types.
7889 (_initialize_gdbtypes): Register new vector types with gdbarch.
7890 (builtin_type_v4_float, builtin_type_v4_int32,
7891 builtin_type_v8_int16, builtin_type_v16_int8,
7892 builtin_type_v2_int32, builtin_type_v4_int16,
7893 builtin_type_v8_int8): New (renamed) SIMD types.
7894
7895 2002-05-06 Mark Kettenis <kettenis@gnu.org>
7896
7897 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
7898 (i387_fill_fxsave): Likewise.
7899
7900 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
7901
7902 * alpha-tdep.c (alpha_extract_return_value): Don't use
7903 non-constant array size in prototype.
7904
7905 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7906
7907 From Brian Taylor <briant at model dot com>:
7908 * ui-out.c (ui_out_field_core_addr): Use the function
7909 longest_local_hex_string_custom'to format addresses > 32 bits
7910 wide.
7911
7912 * ui-out.c (ui_out_field_core_addr): Update comment.
7913
7914 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7915
7916 * stack.c (select_and_print_frame): Make static. Delete the
7917 parameter `level'.
7918 (func_command): Update call.
7919 (select_frame_command): Delete code computing the frame level.
7920 * frame.h (select_and_print_frame): Delete declaration.
7921
7922 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7923
7924 * sparc-tdep.c (sparc_get_saved_register): Comment why
7925 get_prev_frame call is safe.
7926
7927 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7928
7929 * frame.h (select_frame): Delete level parameter.
7930 * stack.c (select_frame): Update. Use frame_relative_level to
7931 obtain the frame's level.
7932 (select_and_print_frame): Update call.
7933 (select_frame_command): Ditto.
7934 (up_silently_base): Ditto.
7935 (down_silently_base): Ditto.
7936 * ocd.c (ocd_start_remote): Ditto.
7937 * remote-rdp.c (remote_rdp_open): Ditto.
7938 * remote-mips.c (mips_initialize): Ditto.
7939 (common_open): Ditto.
7940 * remote-e7000.c (e7000_start_remote): Ditto.
7941 * m3-nat.c (select_thread): Ditto.
7942 * hppa-tdep.c (child_get_current_exception_event): Ditto.
7943 (child_get_current_exception_event): Ditto.
7944 * varobj.c (varobj_create): Ditto.
7945 (varobj_update): Ditto.
7946 (c_value_of_root): Ditto.
7947 * tracepoint.c (finish_tfind_command): Ditto.
7948 * corelow.c (core_open): Ditto.
7949 * arch-utils.c (generic_prepare_to_proceed): Ditto.
7950 * thread.c (info_threads_command): Ditto.
7951 (switch_to_thread): Ditto.
7952 * infrun.c (normal_stop): Ditto.
7953 (restore_selected_frame): Ditto.
7954 (restore_inferior_status): Ditto.
7955 * breakpoint.c (insert_breakpoints): Ditto.
7956 (watchpoint_check): Ditto.
7957 (bpstat_stop_status): Ditto.
7958 (do_enable_breakpoint): Ditto.
7959 * blockframe.c (flush_cached_frames): Ditto.
7960 (reinit_frame_cache): Ditto.
7961
7962 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7963
7964 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
7965 maintainer.
7966
7967 2002-05-04 Jim Blandy <jimb@redhat.com>
7968
7969 * gdbtypes.c (replace_type): Doc fix.
7970
7971 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7972
7973 * valprint.c (strcat_longest): Delete commented out function.
7974 Update copyright.
7975
7976 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7977
7978 * MAINTAINERS: Mark a29k as deleted.
7979 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
7980 Move new configurations to the top.
7981 * configure.tgt: Remove a29k.
7982 * config/a29k/tm-vx29k.h: Delete.
7983 * config/a29k/vx29k.mt: Delete.
7984 * config/a29k/tm-a29k.h: Delete.
7985 * config/a29k/a29k-udi.mt: Delete.
7986 * config/a29k/a29k.mt: Delete.
7987 * a29k-tdep.c: Delete.
7988 * remote-udi.c: Delete.
7989 * remote-mm.c: Delete.
7990 * remote-eb.c: Delete.
7991 * remote-adapt.c: Delete.
7992 * Makefile.in: Remove obsolete code.
7993 * config/s390/s390x.mt: Ditto.
7994 * config/s390/s390.mt: Ditto.
7995 * config/sparc/sparclynx.mh: Ditto.
7996 * config/sparc/linux.mh: Ditto.
7997 * config/pa/hppaosf.mh: Ditto.
7998 * config/pa/hppabsd.mh: Ditto.
7999 * config/ns32k/nbsd.mt: Ditto.
8000 * config/mips/vr5000.mt: Ditto.
8001 * config/m68k/sun3os4.mh: Ditto.
8002 * config/m68k/nbsd.mt: Ditto.
8003 * config/m68k/m68klynx.mh: Ditto.
8004 * config/m32r/m32r.mt: Ditto.
8005 * config/i386/x86-64linux.mt: Ditto.
8006 * config/i386/nbsdelf.mt: Ditto.
8007 * config/i386/nbsd.mt: Ditto.
8008 * config/i386/i386lynx.mh: Ditto.
8009
8010 2002-05-04 Andrew Cagney <ac131313@redhat.com>
8011
8012 * target.c (debug_print_register): New function. Handle oversize
8013 registers.
8014 (debug_to_fetch_registers): Call.
8015 (debug_to_store_registers): Call.
8016
8017 2002-05-03 Jim Blandy <jimb@redhat.com>
8018
8019 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
8020 (read_type): Doc fix.
8021 * gdbtypes.c (replace_type): Doc fix.
8022
8023 * stabsread.c (multiply_defined_struct): New complaint.
8024 (read_struct_type): If the type we were passed isn't empty, or
8025 incomplete, don't read the new struct type into it; complain,
8026 and return the original type unchanged. Take a new `type_code'
8027 argument, which is the type code for the new type.
8028 (read_type): Rather than storing the type's type code here, pass
8029 it as an argument to read_struct_type, and let that take care of
8030 storing it. That way, we don't overwrite the original type code,
8031 so read_struct_type can use it to decide whether we're overwriting
8032 something we shouldn't.
8033 (complain_about_struct_wipeout): New function.
8034
8035 2002-05-03 Andrew Cagney <ac131313@redhat.com>
8036
8037 * gdbarch.sh: Assert that gdbarch is non-NULL.
8038 * gdbarch.c: Regenerate.
8039
8040 2002-05-03 Jason Merrill <jason@redhat.com>
8041
8042 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
8043 and return NULL.
8044
8045 2002-05-03 Michal Ludvig <mludvig@suse.cz>
8046
8047 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
8048 (x86_64_dwarf2gdb_regno_map_length),
8049 (x86_64_dwarf2_reg_to_regnum): Added.
8050 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
8051 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
8052 (_initialize_x86_64_tdep): Synced with the change above.
8053 (x86_64_skip_prologue): Reformulated message.
8054
8055 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
8056
8057 * f-exp.y: Also use new prev_lexptr variable
8058 to improve error reporting. Based on Michael Snyder
8059 2002-04-24 dated patch to c-exp.y.
8060 * jv-exp.y: Likewise.
8061 * m2-exp.y: Likewise.
8062
8063 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
8064
8065 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
8066 we are dealing with vectors.
8067
8068 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
8069
8070 * config/m68k/tm-nbsd.h: Obvious fix,
8071 correct machine name.
8072
8073 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
8074
8075 * p-typeprint.c (pascal_type_print_base): Add support
8076 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
8077
8078 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
8079
8080 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
8081 for fondamental pascal 'char' type.
8082
8083 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
8084
8085 * p-lang.h (is_pascal_string_type): Declaration changed,
8086 new sixth argument of type char ** added.
8087 * p-lang.c (is_pascal_string_type): Implementation
8088 changed. Args length_pos, length_size, string_pos, char_size
8089 can now be NULL. New argument arrayname set to the field
8090 name of the char array. Return value set to char array
8091 field index plus one.
8092 * p-valprint.c (pascal_val_print): Adapt to new declaration of
8093 is_pascal_string_type function.
8094
8095 2002-05-02 Andrew Cagney <cagney@redhat.com>
8096
8097 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
8098 <cagney@redhat.com> change.
8099 * gdbarch.c: Regenerate.
8100
8101 2002-05-02 Andrew Cagney <cagney@redhat.com>
8102
8103 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
8104 before probing for a new one. Detect errorenous gdbarch_init
8105 functions.
8106 * gdbarch.c: Regenerate.
8107
8108 2002-05-01 Andrew Cagney <cagney@redhat.com>
8109
8110 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
8111 * config/mcore/tm-mcore.h: Ditto. Update copyright.
8112 * config/v850/tm-v850.h: Ditto. Update copyright.
8113
8114 2002-04-30 Andrew Cagney <ac131313@redhat.com>
8115
8116 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
8117 current_gdbarch.
8118
8119 2002-04-30 Michael Snyder <msnyder@redhat.com>
8120
8121 * arm-tdep.c: Whitespace clean-ups.
8122 (arm_skip_prologue): Fix thinko; two lines
8123 should have been removed as part of 4/24 change.
8124
8125 2002-04-30 Kevin Buettner <kevinb@redhat.com>
8126
8127 * rs6000-tdep.c: Added comment describing how fpscr register
8128 numbers were chosen.
8129
8130 2002-04-30 Michael Snyder <msnyder@redhat.com>
8131
8132 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
8133
8134 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
8135
8136 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
8137 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
8138 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
8139
8140 2002-04-29 Kevin Buettner <kevinb@redhat.com>
8141
8142 From Louis Hamilton <hamilton@redhat.com>:
8143 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
8144 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
8145 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
8146 not bfd-private xcoff data, to determine wordsize.
8147 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
8148
8149 2002-04-29 Andrew Cagney <ac131313@redhat.com>
8150
8151 GDB 5.2 released from 5.2 branch.
8152
8153 2002-04-29 Michal Ludvig <mludvig@suse.cz>
8154
8155 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
8156 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
8157 (x86_64_register_info_table): Added comments with register numbers.
8158
8159 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
8160
8161 * rs6000-tdep.c (rs6000_extract_return_value,
8162 rs6000_store_return_value): Handle returning vectors.
8163 (rs6000_gdbarch_init): Use
8164 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
8165 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
8166 New function.
8167 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
8168 vectors.
8169 (ppc_sysv_abi_push_arguments): Handle vector parameters.
8170 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
8171
8172 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
8173
8174 * hpread.c (hpread_psymtab_to_symtab_1,
8175 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
8176 with fprintf_unfiltered (gdb_stderr,...).
8177
8178 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
8179
8180 * remote-array.c (printf_monitor, write_monitor,
8181 array_insert_breakpoint, array_remove_breakpoint ):
8182 Replace fprintf (stderr,...
8183 with fprintf_unfiltered (gdb_stderr,....
8184 * remote-es.c: Likewise.
8185 * remote-os9k.c: Likewise.
8186 * remote-st.c: Likewise.
8187
8188 2002-04-28 Andreas Schwab <schwab@suse.de>
8189
8190 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
8191 linux-proc.o and gcore.o.
8192
8193 2002-04-26 Michal Ludvig <mludvig@suse.cz>
8194
8195 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
8196 code without frame pointers.
8197
8198 2002-04-26 Andrew Cagney <ac131313@redhat.com>
8199
8200 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
8201 ON_STACK is needed.
8202
8203 2002-04-26 Ben Elliston <bje@redhat.com>
8204
8205 * target.c (do_xfer_memory): Correct reference to the new option
8206 "trust-readonly-sections".
8207
8208 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
8209
8210 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
8211 * gdbtypes.c (recursive_dump_type): Output the vector flag.
8212 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
8213 vectors.
8214 (read_array_type): Record the fact that this array type is really a
8215 vector (i.e. are passed in by value).
8216
8217 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
8218
8219 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
8220 * alpha-tdep.c (alpha_sigcontext_addr): New function.
8221 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
8222 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
8223 * alpha-linux-tdep.c: Include frame.h.
8224 (alpha_linux_sigcontext_addr): New function.
8225 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
8226 alpha_linux_sigcontext_addr.
8227 * alpha-osf1-tdep.c: Include gdbcore.h.
8228 (alpha_osf1_sigcontext_addr): New function.
8229 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
8230 alpha_osf1_sigcontext_addr.
8231 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
8232 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
8233
8234 2002-04-26 Andrew Cagney <ac131313@redhat.com>
8235
8236 * stack.c (selected_frame_level):
8237 (select_frame): Do not set selected_frame_level.
8238 * frame.h (selected_frame_level): Delete declaration.
8239
8240 2002-04-26 Andrew Cagney <ac131313@redhat.com>
8241
8242 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
8243 convert_from_func_ptr-addr when AIX / PowerOpen.
8244
8245 2002-04-25 Andrew Cagney <ac131313@redhat.com>
8246
8247 * valops.c (hand_function_call): Call
8248 generic_save_call_dummy_addr.
8249 * frame.h (generic_save_call_dummy_addr): Declare.
8250 * blockframe.c (struct dummy_frame): Add fields call_lo and
8251 call_hi.
8252 (generic_find_dummy_frame): Check for PC in range call_lo to
8253 call_hi instead of entry_point_address.
8254 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
8255 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
8256 (generic_save_call_dummy_addr): New function.
8257
8258 2002-04-24 David S. Miller <davem@redhat.com>
8259
8260 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
8261 sparc_skip_prologue.
8262 (sparc_skip_prologue): Kill frameless_p arg, and use line number
8263 information to find prologue when possible.
8264 (sparc_prologue_frameless_p): Call examine_prologue directly.
8265 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
8266 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
8267 second argument.
8268 (SKIP_PROLOGUE): Likewise.
8269
8270 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
8271
8272 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
8273 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
8274 indicate that the condition it was testing is always true.
8275 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
8276 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
8277 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
8278
8279 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
8280
8281 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
8282 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
8283 tdep->jb_pc and tdep->jb_elt_size.
8284 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
8285 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
8286 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
8287 * alpha-nat.c (get_longjmp_target): Remove.
8288 (JB_ELEMENT_SIZE): Ditto.
8289 (JB_PC): Ditto.
8290 * alpha-tdep.c (alpha_get_longjmp_target): New function.
8291 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
8292 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
8293 to alpha_get_longjmp_target.
8294 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
8295 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
8296 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
8297
8298 2002-04-25 Andrew Cagney <ac131313@redhat.com>
8299
8300 * README: Update to GDB 5.2.
8301
8302 2002-04-25 Andrew Cagney <ac131313@redhat.com>
8303
8304 * gdbarch.sh (LC_ALL): Set to `c'.
8305
8306 2002-04-25 Theodore A. Roth <troth@verinet.com>
8307
8308 * avr-tdep.c: Ran through gdb_indent.sh.
8309
8310 2002-04-25 Theodore A. Roth <troth@verinet.com>
8311
8312 * MAINTAINERS: Add myself as AVR maintainer.
8313 * NEWS: Note new target avr.
8314
8315 2002-04-25 Theodore A. Roth <troth@verinet.com>
8316
8317 * Makefile.in: Add support for AVR target.
8318 * configure.tgt: Add support for AVR target.
8319 * avr-tdep.c: New file
8320 * config/avr/avr.mt: New file.
8321
8322 2002-04-25 Theodore A. Roth <troth@verinet.com>
8323
8324 * MAINTAINERS: Add myself to write-after-approval.
8325
8326 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
8327
8328 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
8329 with fprintf_unfiltered (gdb_stderr,....
8330
8331 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
8332
8333 Fix PR gdb/508.
8334 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
8335
8336 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
8337
8338 * p-exp.y: Also use new prev_lexptr variable
8339 to improve error reporting. Based on Michael Snyder
8340 2002-04-24 dated patch to c-exp.y.
8341
8342 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
8343
8344 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
8345 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
8346 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
8347 to 0.
8348 * config/alpha/tm-alpha.h: Remove forward decls of struct type
8349 and struct value.
8350 (FUNCTION_START_OFFSET): Remove.
8351 (BREAKPOINT): Ditto.
8352
8353 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
8354
8355 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
8356 * NEWS: Ditto.
8357
8358 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
8359
8360 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
8361 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
8362 alpha_linux_pc_in_sigtramp.
8363 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
8364 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
8365 alpha_osf1_pc_in_sigtramp.
8366 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
8367 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
8368 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
8369 alphafbsd_pc_in_sigtramp.
8370 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
8371 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
8372 alphanbsd_pc_in_sigtramp.
8373 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
8374 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
8375
8376 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
8377
8378 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
8379
8380 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
8381
8382 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
8383 alphanbsd-tdep.c.
8384 (alphanbsd-nat.o): New dependency list.
8385 (alphanbsd-tdep.o): Ditto.
8386 * NEWS: Note new native NetBSD/alpha configuration.
8387 * alphanbsd-nat.c: New file.
8388 * alphanbsd-tdep.c: Ditto.
8389 * configure.host (alpha*-*-netbsd*): New host.
8390 * configure.tgt (alpha*-*-netbsd*): New target.
8391 * config/alpha/nbsd.mh: New file.
8392 * config/alpha/nbsd.mt: Ditto.
8393 * config/alpha/nm-nbsd.h: Ditto.
8394 * config/alpha/tm-nbsd.h: Ditto.
8395
8396 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
8397
8398 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
8399 (alpha-osf1-tdep.o): New dependency list.
8400 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
8401 and skip_sigtramp_frame members.
8402 * alpha-linux-tdep.c: Include gdbcore.h.
8403 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
8404 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
8405 * alpha-osf1-tdep.c: New file.
8406 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
8407 alpha-osf1-dep.c.
8408 (alpha_frame_past_sigtramp_frame): New function.
8409 (alpha_dynamic_sigtramp_offset): Ditto.
8410 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
8411 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
8412 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
8413 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
8414 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
8415 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
8416 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
8417 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
8418 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
8419 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
8420 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
8421 to find_solib_trampoline_target.
8422 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
8423 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
8424 (SKIP_TRAMPOLINE_CODE): Remove.
8425 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
8426 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
8427 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
8428 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
8429 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
8430 (PROC_SIGTRAMP_MAGIC): Ditto.
8431 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
8432 (SET_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
8437 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
8438
8439 * NEWS: Note that Alpha targets are now multi-arch.
8440
8441 2002-04-24 Michael Snyder <msnyder@redhat.com>
8442
8443 * parser-defs.h (prev_lexptr): New external variable.
8444 * parse.c (parse_exp_1): Set prev_lexptr to null before
8445 calling the language-specific parser.
8446 * c-exp.y (yylex): Set prev_lexptr to start of current token.
8447 (yyerror): Use prev_lexptr in error reporting.
8448
8449 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
8450
8451 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
8452 * gregset.h: If FILL_FPXREGSET is defined, provide
8453 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
8454 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
8455 is defined, call fill_fpxregset.
8456
8457 2002-04-24 Roland McGrath <roland@frob.com>
8458
8459 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
8460 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
8461 (supply_gregset, supply_fpregset): New functions.
8462
8463 * gnu-nat.c (gnu_find_memory_regions): New function.
8464 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
8465 (gnu_xfer_memory): Add a cast.
8466
8467 2002-04-24 Michael Snyder <msnyder@redhat.com>
8468
8469 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
8470 loop. Add handling for "str lr, [sp, #-4]!" and for saves
8471 of argument regs ("str r(0123), [r11, #-nn"]).
8472 (arm_skip_prologue): Better handling for frameless functions.
8473 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
8474 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
8475
8476 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
8477
8478 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
8479 NUM_PSEUDO_REGS can be used.
8480
8481 2002-04-24 Andrew Cagney <ac131313@redhat.com>
8482
8483 * arch-utils.h: Update copyright.
8484
8485 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
8486 * gdbarch.h, gdbarch.c: Re-generate.
8487
8488 * inferior.h (IN_SIGTRAMP): Delete definition.
8489 * arch-utils.c (legacy_pc_in_sigtramp): New function.
8490 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
8491
8492 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
8493 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
8494 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
8495 (find_proc_framesize): Ditto.
8496 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
8497 (alpha_init_extra_frame_info): Ditto.
8498 * infrun.c (handle_inferior_event): Ditto.
8499 (handle_inferior_event): Ditto.
8500 (check_sigtramp2): Ditto.
8501 * blockframe.c (create_new_frame): Ditto.
8502 (get_prev_frame): Ditto.
8503 * ppc-linux-tdep.c: Update comments.
8504 * i386-linux-tdep.c: Update comments.
8505 * breakpoint.c (bpstat_what): Update comment.
8506
8507 2002-04-24 David S. Miller <davem@redhat.com>
8508
8509 * i960-tdep.c (register_in_window_p): New function.
8510 (i960_find_saved_register): Use it instead of
8511 REGISTER_IN_WINDOW_P.
8512 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
8513
8514 * symtab.h (find_stab_function_addr): Kill extern.
8515 * minsyms.c (find_stab_function_addr): Remove from here...
8516 * dbxread.c: ... to here, and mark it static.
8517
8518 2002-04-20 David S. Miller <davem@redhat.com>
8519
8520 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
8521 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
8522
8523 2002-04-21 David S. Miller <davem@redhat.com>
8524
8525 * remote-vxsparc.c (vx_read_register): Fix typo, we want
8526 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
8527 (vx_write_register): Likewise.
8528
8529 2002-04-23 J. Brobecker <brobecker@gnat.com>
8530
8531 * source.c (is_regular_file): New function.
8532 (openp): Check wether file to open is a regular file
8533 to avoid opening directories.
8534
8535 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8536
8537 * findvar.c (extract_signed_integer): Cast printf argument
8538 to suppress format warning.
8539 (extract_unsigned_integer): Likewise.
8540 * infcmd.c (registers_info): Likewise.
8541 * top.c (get_prompt_1): Likewise.
8542 * valops.c (value_assign): Likewise.
8543 * valprint.c (print_decimal): Likewise.
8544
8545 2002-04-22 H.J. Lu (hjl@gnu.org)
8546
8547 * c-exp.y (typebase): Support
8548
8549 [long|long long|short] [signed|unsigned] [int|]
8550
8551 and
8552
8553 signed [long|long long|short] int
8554
8555 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8556
8557 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
8558 and vax-tdep.h.
8559 * vax-tdep.h: New file.
8560 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
8561 Make several routines static.
8562 (vax_get_saved_register): New function.
8563 (vax_gdbarch_init): New function.
8564 (_initialize_vax_tdep): Register vax_gdbarch_init.
8565 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
8566 Remove macros now under the control of gdbarch.
8567
8568 2002-04-22 Michael Snyder <msnyder@redhat.com>
8569
8570 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
8571 Some whitespace and coding standards tweaks.
8572
8573 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8574
8575 * vax-tdep.c: Include regcache.h.
8576 (vax_call_dummy_words): New.
8577 (sizeof_vax_call_dummy_words): New.
8578 (vax_fix_call_dummy): New function.
8579 (vax_saved_pc_after_call): Ditto.
8580 * config/vax/tm-vax.h: Don't include regcache.h.
8581 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
8582 (CALL_DUMMY): Remove.
8583 (CALL_DUMMY_WORDS): Define.
8584 (SIZEOF_CALL_DUMMY_WORDS): Define.
8585 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
8586
8587 2002-04-18 Michael Snyder <msnyder@redhat.com>
8588
8589 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
8590
8591 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8592
8593 * vax-tdep.c (vax_frame_chain): New function.
8594 (vax_push_dummy_frame): Ditto.
8595 (vax_pop_frame): Ditto.
8596 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
8597 (FRAMELESS_FUNCTION_INVOCATION): Use
8598 generic_frameless_function_invocation_not.
8599 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
8600 (POP_FRAME): Use vax_pop_frame.
8601
8602 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8603
8604 * vax-tdep.c (vax_store_struct_return): New function.
8605 (vax_extract_return_value): Ditto.
8606 (vax_store_return_value): Ditto.
8607 (vax_extract_struct_value_address): Ditto.
8608 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
8609 vax_store_struct_return.
8610 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
8611 (STORE_RETURN_VALUE): Use vax_store_return_value.
8612 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
8613
8614 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8615
8616 * vax-tdep.c (vax_frame_saved_pc): New function.
8617 (vax_frame_args_address_correct): Ditto.
8618 (vax_frame_args_address): Ditto.
8619 (vax_frame_locals_address): Ditto.
8620 (vax_frame_num_args): Move code to be in proximity to
8621 other frame-related functions.
8622 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
8623 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
8624 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
8625 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
8626 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
8627
8628 2002-04-22 H.J. Lu (hjl@gnu.org)
8629
8630 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
8631 includedir.
8632
8633 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8634
8635 * vax-tdep.c (vax_frame_init_saved_regs): New function.
8636 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
8637 (FRAME_INIT_SAVED_REGS): New macro.
8638
8639 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8640
8641 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
8642
8643 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8644
8645 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
8646 where needed.
8647 (fetch_osf_core_registers): Likewise.
8648 (supply_gregset): Likewise.
8649
8650 2002-04-22 J. Brobecker <brobecker@gnat.com>
8651
8652 * symfile.h (get_section_index): Define.
8653 * symfile.c (get_section_index): New function.
8654 * mdebugread.c (SC_IS_SBSS): New macro.
8655 (SC_IS_BSS): Return true for the scBss storage class only, as
8656 the scSBss storage class refers to the .sbss section.
8657 (parse_partial_symbols): Discard the symbols which associated
8658 section does not exist.
8659 Make sure to use the .sbss section index for symbols which
8660 storage class is scBss, rather than using the .bss section index.
8661
8662 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8663
8664 * vax-tdep.c: Update copyright years.
8665 (vax_register_name): New function.
8666 (vax_register_byte): Ditto.
8667 (vax_register_raw_size): Ditto.
8668 (vax_register_virtual_size): Ditto.
8669 (vax_register_virtual_type): Ditto.
8670 * config/vax/tm-vax.h: Update copyright years.
8671 (REGISTER_NAMES): Remove.
8672 (REGISTER_NAME): Define.
8673 (REGISTER_BYTE): Use vax_register_byte.
8674 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
8675 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
8676 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
8677
8678 2002-04-21 Andrew Cagney <ac131313@redhat.com>
8679
8680 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
8681 declaration
8682 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
8683
8684 2002-04-21 David S. Miller <davem@redhat.com>
8685
8686 * arch-utils.c (generic_prologue_frameless_p): Kill
8687 SKIP_PROLOGUE_FRAMELESS_P code.
8688 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
8689 references.
8690 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
8691 * arc-tdep.c (arc_prologue_frameless_p): Implement.
8692 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
8693 references.
8694 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
8695 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
8696 (sparc_gdbarch_init): Pass it to
8697 set_gdbarch_prologue_frameless_p.
8698
8699 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8700
8701 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
8702 (alphabsd-nat.o): New dependency list.
8703
8704 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8705
8706 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
8707 alphafbsd-tdep.c.
8708 (alpha-linux-tdep.o): New dependency list.
8709 (alphafbsd-tdep.o): Likewise.
8710
8711 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8712
8713 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
8714 to here...
8715 * alpha-tdep.c: ...from here.
8716 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
8717
8718 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8719
8720 * config/alpha/tm-alpha.h: Move alpha_software_single_step
8721 prototype from here...
8722 * alpha-tdep.h: ...to here.
8723
8724 2002-04-21 Andrew Cagney <ac131313@redhat.com>
8725
8726 * frame.h (selected_frame_level): Document as deprecated.
8727 (frame_relative_level): Declare.
8728 * stack.c (frame_relative_level): New function.
8729 (selected_frame_level): Document as deprecated.
8730 (select_frame): Do not set the selected_frame_level.
8731
8732 * stack.c (frame_info, record_selected_frame): Update.
8733 (frame_command, current_frame_command): Update.
8734 (up_silently_base, up_command, down_silently_base): Update.
8735 (down_command): Update.
8736 * inflow.c (kill_command): Update.
8737 * tracepoint.c (finish_tfind_command): Update.
8738 * corelow.c (core_open): Update.
8739 * thread.c (info_threads_command): Update.
8740 (do_captured_thread_select): Update.
8741 * infcmd.c (finish_command): Update.
8742 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
8743
8744 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8745
8746 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
8747
8748 2002-04-21 Andrew Cagney <ac131313@redhat.com>
8749
8750 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
8751 type const.
8752
8753 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8754
8755 * alphafbsd-tdep.c: Update copyright years. Include
8756 alpha-tdep.h.
8757 (alphafbsd_use_struct_convention): Make static.
8758 (alphafbsd_init_abi): New function.
8759 (_initialize_alphafbsd_tdep): New function.
8760 * config/alpha/tm-fbsd.h: Update copyright years.
8761 (USE_STRUCT_CONVENTION): Remove.
8762
8763 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8764
8765 * alpha-tdep.c (alpha_abi_handler): New structure to describe
8766 an Alpha ABI variant.
8767 (alpha_abi_handler_list): Declare.
8768 (alpha_gdbarch_register_os_abi): New function.
8769 (alpha_gdbarch_init): Give registered ABI variant handlers a
8770 chance to tweak the gdbarch once we have set up defaults.
8771 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
8772
8773 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8774
8775 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
8776 to standard_coerce_float_to_double.
8777 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
8778
8779 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8780
8781 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
8782 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
8783 from gdbarch_tdep rather than a constant.
8784 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
8785 the default text address for all Alpha Unix ABIs.
8786 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
8787 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
8788
8789 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8790
8791 * alpha-tdep.h: New file. Includes several Alpha target constants
8792 taken from...
8793 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
8794 let gdbarch deal with.
8795 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
8796 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
8797 to dependency list.
8798 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
8799 Alpha target register names.
8800 * alphabsd-nat.c: Likewise.
8801 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
8802 Alpha target register names. Make serveral routines static.
8803 (alpha_get_saved_register): New function.
8804 (alpha_abi_names): New.
8805 (process_note_abi_tag_sections): New function.
8806 (get_elfosabi): New function.
8807 (alpha_gdbarch_init): New function.
8808 (alpha_dump_tdep): New function.
8809 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
8810
8811 2002-04-21 Andrew Cagney <ac131313@redhat.com>
8812
8813 * frame.c (find_saved_register): Delete #ifdef
8814 HAVE_REGISTER_WINDOWS code.
8815 * config/sparc/tm-sparc.h: Update comments.
8816 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
8817
8818 2002-04-21 Andrew Cagney <ac131313@redhat.com>
8819
8820 * i960-tdep.c (i960_find_saved_register): New function.
8821 (i960_get_saved_register): New function.
8822 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
8823 (i960_get_saved_register): Declare.
8824 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
8825
8826 2002-04-20 David S. Miller <davem@redhat.com>
8827
8828 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
8829
8830 2002-04-20 Andrew Cagney <ac131313@redhat.com>
8831
8832 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
8833 instead of NUM_PSEUDO_REGS.
8834
8835 2002-04-20 David S. Miller <davem@redhat.com>
8836
8837 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
8838 GDB_MULTI_ARCH_PARTIAL
8839 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
8840 define, let tm-sp64.h do it.
8841
8842 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
8843
8844 * frame.c (find_saved_register): Avoid a NULL pointer
8845 dereference and actually walk the frame list.
8846
8847 2002-04-20 Andrew Cagney <ac131313@redhat.com>
8848
8849 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
8850 sorted in most most-recent-used order. Document.
8851 * gdbarch.h, gdbarch.c: Regenerate.
8852
8853 2002-04-19 Andrew Cagney <ac131313@redhat.com>
8854
8855 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
8856 instead of ->prev.
8857 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
8858 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
8859 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
8860 instead of ->prev.
8861
8862 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
8863
8864 Fix PR gdb/471.
8865 * gdbtypes.c (init_simd_type): Rewrite using new functions.
8866 (build_builtin_type_vec128): Ditto.
8867 (append_composite_type_field): Fix calculation of type length in
8868 union case.
8869
8870 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
8871
8872 * config/djgpp/README: Update.
8873
8874 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
8875 compiler warnings.
8876
8877 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
8878
8879 * alpha-tdep.c (setup_arbitrary_frame): Rename...
8880 (alpha_setup_arbitrary_frame): ...to this.
8881 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
8882 for alpha_setup_arbitrary_frame.
8883
8884 2002-04-18 Andrew Cagney <cagney@redhat.com>
8885
8886 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
8887 * gdbarch.h, gdbarch.c: Regenerate.
8888
8889 * defs.h (breakpoint_from_pc_fn): Delete type definition.
8890 * target.h (memory_breakpoint_from_pc): Update declaration.
8891 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
8892
8893 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
8894 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
8895 * mem-break.c (memory_breakpoint_from_pc): Ditto.
8896 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
8897 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
8898 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
8899 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
8900 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
8901 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
8902 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
8903 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
8904 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
8905
8906 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
8907 const pointer.
8908 * monitor.c (monitor_insert_breakpoint): Ditto.
8909 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
8910
8911 * config/mcore/tm-mcore.h: Update copyright.
8912 * mem-break.c: Ditto.
8913 * xstormy16-tdep.c: Ditto.
8914
8915 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
8916
8917 * p-exp.y: Add precedence rule for '^' token.
8918 This removes the shift/reduce conflicts.
8919 Remove the comment concerning these shift/reduce conflicts.
8920
8921 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
8922
8923 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
8924 (registers_powerpc_nofp): New register set for processors
8925 without floating point unit.
8926
8927 2002-04-18 David S. Miller <davem@redhat.com>
8928
8929 * MAINTAINERS: Add myself to write-after-approval.
8930
8931 2002-04-17 Michael Snyder <msnyder@redhat.com>
8932
8933 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
8934
8935 2002-04-17 Andrew Cagney <ac131313@redhat.com>
8936
8937 * rs6000-tdep.c (frame_initial_stack_address): Use
8938 frame_register_read to read the alloca_reg.
8939
8940 2002-04-17 Andrew Cagney <ac131313@redhat.com>
8941
8942 * frame.c (find_saved_register): Find saved registers in the next
8943 not prev frame.
8944 Fix PR gdb/365.
8945
8946 2002-04-17 Andrew Cagney <ac131313@redhat.com>
8947
8948 * gdbarch.sh (LANG): Set to ``c''.
8949
8950 2002-04-15 Andrew Cagney <ac131313@redhat.com>
8951
8952 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
8953
8954 2002-04-15 Andrew Cagney <ac131313@redhat.com>
8955
8956 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
8957 Update copyright.
8958
8959 * hpread.c (hpread_get_lntt): Add declaration.
8960 Also fix PR gdb/391.
8961
8962 2002-04-14 Andrew Cagney <ac131313@redhat.com>
8963
8964 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
8965 * aclocal.m4, configure: Re-generate.
8966 Fix PR gdb/391.
8967
8968 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
8969
8970 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
8971 instead of tm_print_insn.
8972
8973 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
8974
8975 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
8976
8977 2002-04-14 Andrew Cagney <ac131313@redhat.com>
8978
8979 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
8980 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
8981 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
8982
8983 2002-04-12 Don Howard <dhoward@redhat.com>
8984
8985 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
8986 max_user_call_depth.
8987 (init_cmd_lists): Initialize the new value;
8988 * cli/cli-script.c (execute_user_command): Limit the call depth of
8989 user defined commands. This avoids a core-dump when user commands
8990 are infinitly recursive.
8991
8992 2002-04-12 Kevin Buettner <kevinb@redhat.com>
8993
8994 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
8995 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
8996 from tdep struct instead of DEFAULT_LR_SAVE.
8997 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
8998 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
8999 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
9000
9001 2002-04-12 Michael Snyder <msnyder@redhat.com>
9002
9003 * Remote.c: Spelling fix.
9004 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
9005 If no symbol found for "sbrk", try "_sbrk".
9006 (make_output_phdrs): Use bfd_section_name.
9007 (gcore_copy_callback): Use bfd_section_name.
9008 * eval.c: Indentation fix-ups.
9009 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
9010 in case it gets applied to an address that is already
9011 in the instruction space.
9012 * cli/cli-decode.c (help_list): Allow long lines to wrap.
9013 * symfile.c: Fix indentation, long lines.
9014 * source.c: White space fix-up.
9015
9016 2002-04-12 Andrew Cagney <cagney@redhat.com>
9017
9018 * defs.h (read_relative_register_raw_bytes): Delete declaration.
9019 * frame.c (frame_register_read): New function. Return non-zero on
9020 success.
9021 (read_relative_register_raw_bytes_for_frame): Delete.
9022 (read_relative_register_raw_bytes): Delete.
9023 * frame.h (frame_register_read): Declare.
9024 * d30v-tdep.c: Update Copyright. Use frame_register_read.
9025 * sh-tdep.c: Ditto.
9026 * infcmd.c (do_registers_info): Ditto.
9027 * hppa-tdep.c: Ditto.
9028 * rs6000-tdep.c: Ditto.
9029 * h8500-tdep.c: Ditto.
9030 * mips-tdep.c: Ditto.
9031 * h8300-tdep.c: Ditto.
9032 * z8k-tdep.c: Ditto.
9033
9034 2002-04-12 Kevin Buettner <kevinb@redhat.com>
9035
9036 From Jimi X <jimix@watson.ibm.com>:
9037 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
9038 64-bit SysV ABI.
9039
9040 2002-04-12 Kevin Buettner <kevinb@redhat.com>
9041
9042 From Jimi X <jimix@watson.ibm.com>:
9043 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
9044 bfd info.
9045
9046 2002-04-12 Kevin Buettner <kevinb@redhat.com>
9047
9048 From Jimi X <jimix@watson.ibm.com>:
9049 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
9050 register sets for these processor variants.
9051
9052 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
9053
9054 * regformats/reg-ppc.dat: Support FPSCR.
9055
9056 2002-04-11 Kevin Buettner <kevinb@redhat.com>
9057
9058 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
9059 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
9060 Add fpscr as an invalid/unfetchable register.
9061 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
9062 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
9063 (fill_fpregset): Add support for register fpscr.
9064 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
9065 (fill_gregset): Account for the fact that register ``mq'' might
9066 not exist.
9067 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
9068 (registers_power): Add fpscr to register set at slot 71.
9069 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
9070 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
9071
9072 2002-04-11 Michael Snyder <msnyder@redhat.com>
9073
9074 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
9075 * configure: Regenerate.
9076 * config.in: Regenerate.
9077 * acconfig.h: Add define for _SYSCALL32.
9078 * core-sol2.c: Remove #define _SYSCALL32.
9079 * solib-legacy.c: Remove #define _SYSCALL32.
9080
9081 2002-04-10 Andrew Cagney <ac131313@redhat.com>
9082
9083 * stack.c (select_frame): Cleanup internal error message, do not
9084 use %p.
9085
9086 2002-04-10 Andrew Cagney <ac131313@redhat.com>
9087
9088 * stack.c (select_frame): Check that selected_frame and the
9089 specified level are as expected.
9090 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
9091 Update copyright.
9092 * frame.h (struct frame_info): Add field `level'. Update
9093 copyright.
9094 Work-in-progress PR gdb/464.
9095
9096 2002-04-10 Andrew Cagney <ac131313@redhat.com>
9097
9098 * maint.c (maint_print_section_info): Rename print_section_info.
9099 (print_bfd_section_info, print_objfile_section_info): Update.
9100 * inferior.h (struct gdbarch): Add opaque declaration.
9101 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
9102 * gdbarch.h: Regenerate.
9103
9104 2002-04-10 Michal Ludvig <mludvig@suse.cz>
9105
9106 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
9107 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
9108 (kernel_u_size): Added.
9109 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
9110 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
9111
9112 2002-04-04 Jim Ingham <jingham@apple.com>
9113
9114 * valarith.c (find_size_for_pointer_math): New function, either returns
9115 the size for a pointer's target, returns 1 for void *, or errors for
9116 incomplete types.
9117 (value_add, value_sub): use find_size_for_pointer_math.
9118
9119 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
9120
9121 * linux-low.c (linux_look_up_symbols): New hook.
9122 (linux_target_ops): Add linux_look_up_symbols.
9123 * remote-utils.c (decode_address): New function.
9124 (look_up_one_symbol): New function.
9125 * server.c (handle_query): Call target look_up_symbols hook.
9126 * server.h (look_up_one_symbol): Add prototype.
9127 * target.h (struct target_ops): Add look_up_symbols hook.
9128
9129 2002-04-09 Andrew Cagney <ac131313@redhat.com>
9130
9131 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
9132 override FP_REGNUM with frame->fp. Update copyright.
9133 * parse.c (num_std_regs, std_regs): Delete.
9134 (target_map_name_to_register): Do not search std_regs. Update
9135 function description.
9136 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
9137 declarations. Update copyright.
9138 Fix PR gdb/251.
9139
9140 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
9141
9142 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
9143 after the last symbol in a block.
9144
9145 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
9146
9147 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
9148 is non zero as a found symbol.
9149
9150 2002-04-08 Andrew Cagney <ac131313@redhat.com>
9151
9152 * findvar.c: Include "builtin-regs.h".
9153 (value_of_register): Call value_of_builtin_reg when applicable.
9154 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
9155 (target_map_name_to_register): Call
9156 builtin_reg_map_name_to_regnum.
9157 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
9158 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
9159 (builtin_regs_h): Define.
9160 (builtin-regs.o): New target.
9161 (findvar.o): Add $(builtin_regs_h).
9162 * builtin-regs.c, builtin-regs.h: New files.
9163 * std-regs.c: New file.
9164 Partial fix for PR gdb/251.
9165
9166 2002-04-08 Kevin Buettner <kevinb@redhat.com>
9167
9168 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
9169 it's no longer required.
9170
9171 2002-04-08 Andrew Cagney <ac131313@redhat.com>
9172
9173 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
9174
9175 2002-04-08 Kevin Buettner <kevinb@redhat.com>
9176
9177 From Jimi X <jimix@watson.ibm.com>:
9178 * rs6000-tdep.c (rs6000_software_single_step): Use
9179 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
9180 and size. Use target_insert_breakpoint() and
9181 target_remove_breakpoint() to insert and remove breakpoints
9182 instead of explicit memory reads and writes.
9183
9184 2002-04-08 Kevin Buettner <kevinb@redhat.com>
9185
9186 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
9187 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
9188 ELF_OBJECT_FORMAT ifdef.
9189
9190 2002-04-08 Kevin Buettner <kevinb@redhat.com>
9191
9192 From Jimi X <jimix@watson.ibm.com>:
9193 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
9194
9195 2002-04-08 Kevin Buettner <kevinb@redhat.com>
9196
9197 From Jimi X <jimix@watson.ibm.com>:
9198 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
9199 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
9200
9201 2002-04-07 Mark Kettenis <kettenis@gnu.org>
9202
9203 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
9204 s/asprintf/xasprintf/.
9205 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
9206
9207 2002-04-07 Andrew Cagney <ac131313@redhat.com>
9208
9209 I believe Jeff Law denies responsability for this one:
9210 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
9211 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
9212 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
9213 Work-around for PR gdb/366.
9214
9215 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
9216
9217 * remote-e7000.c (write_small, e7000_read_inferior_memory,
9218 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
9219 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
9220
9221 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
9222
9223 * sh-tdep.c (sh_fp_frame_init_saved_regs,
9224 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
9225 information.
9226
9227 2002-04-07 Andrew Cagney <ac131313@redhat.com>
9228
9229 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
9230 maintainer.
9231
9232 2002-04-07 Andrew Cagney <ac131313@redhat.com>
9233
9234 * README (Reporting Bugs in GDB): Document the bug web page as the
9235 prefered way of submitting bugs.
9236 Fix PR gdb/402.
9237
9238 2002-04-06 Andrew Cagney <ac131313@redhat.com>
9239
9240 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
9241 -1. Update comment.
9242 * gdbarch.h, gdbarch.c: Re-generate.
9243
9244 2002-04-07 Andreas Schwab <schwab@suse.de>
9245
9246 * m68klinux-nat.c (fill_fpregset): Properly pass address of
9247 buffer to regcache_collect.
9248
9249 2002-04-06 Andrew Cagney <ac131313@redhat.com>
9250
9251 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
9252 * gdbarch.c, gdbarch.h: Re-generate.
9253
9254 2002-04-06 Andrew Cagney <ac131313@redhat.com>
9255
9256 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
9257 declaration. Fix -Werror.
9258
9259 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
9260
9261 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
9262 * gdbarch.c: Regenerate.
9263
9264 2002-04-05 Michael Snyder <msnyder@redhat.com>
9265
9266 * breakpoint.c (clear_command): Rewrite middle section to
9267 combine two loops with identical control conditions.
9268 Add a cleanup to eliminate a memory leak.
9269 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
9270
9271 2002-04-05 H.J. Lu (hjl@gnu.org)
9272
9273 * solib-svr4.c (bkpt_names): Add "__start".
9274
9275 2002-04-04 Andrew Cagney <ac131313@redhat.com>
9276
9277 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
9278 as test for 64 bit target.
9279
9280 2002-04-05 Andrew Cagney <ac131313@redhat.com>
9281
9282 * h8500-tdep.c (h8500_write_fp): Delete function.
9283 * dwarf2cfi.c (cfi_write_fp): Document as not used.
9284 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
9285 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
9286 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
9287 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
9288 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
9289 (s390_write_fp):
9290 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
9291 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
9292 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
9293 (d10v_write_fp): Delete function.
9294 * inferior.h (write_fp, generic_target_write_fp): Delete
9295 declarations.
9296 * regcache.c (generic_target_write_fp): Delete function.
9297 (write_fp): Delete function.
9298 * gdbarch.sh (TARGET_WRITE_FP): Delete.
9299 * gdbarch.h, gdbarch.c: Regenerate.
9300 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
9301 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
9302 (sparc64_write_fp): Delete declaration.
9303 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
9304 (h8500_write_fp): Delete declaration.
9305
9306 2002-04-04 Andrew Cagney <ac131313@redhat.com>
9307
9308 * sparc-tdep.c (sparc64_write_fp): Delete.
9309 (sparc_push_dummy_frame): Replace write_fp call with code to store
9310 the FP directly.
9311 (sparc_gdbarch_init): Do not initialize write_fp.
9312
9313 2002-04-05 Kevin Buettner <kevinb@redhat.com>
9314
9315 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
9316 clause.
9317
9318 2002-03-29 Jim Blandy <jimb@redhat.com>
9319
9320 * stack.c (get_selected_block): Add new argument `addr_in_block',
9321 used to return the exact code address we used to select the block,
9322 not just the block.
9323 * blockframe.c (get_frame_block, get_current_block): Same.
9324 * frame.h (get_frame_block, get_current_block,
9325 get_selected_block): Update declarations.
9326 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
9327 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
9328
9329 2002-04-05 Michael Snyder <msnyder@redhat.com>
9330
9331 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
9332 warning message.
9333
9334 2002-04-05 J. Brobecker <brobecker@gnat.com>
9335
9336 * utils.c (xfullpath): New function.
9337 * defs.h (xfullpath): Add declaration.
9338 * source.c (openp): Use xfullpath in place of gdb_realpath to
9339 avoid resolving the basename part of filenames when the
9340 associated file is a symbolic link. This fixes a potential
9341 inconsistency between the filenames known to GDB and the
9342 filenames it prints in the annotations.
9343 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
9344 to be able to match a filename with either the real filename, or
9345 the name of any symbolic link to this file.
9346 (lookup_partial_symtab): Ditto.
9347
9348 2002-04-04 Michael Snyder <msnyder@redhat.com>
9349
9350 * breakpoint.c: Add support for hardware breakpoints in overlays.
9351 (overlay_events_enabled): New state variable.
9352 (insert_breakpoints): Use overlay_events_enabled to decide
9353 whether to attempt to set a breakpoint at the overlay load addr.
9354 Handle bp_hardware_breakpoint as well as bp_breakpoint.
9355 (remove_breakpoint): Use overlay_events_enabled to decide
9356 whether breakpoints need to be removed from overlay load addr.
9357 Handle bp_hardware_breakpoint as well as bp_breakpoint.
9358 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
9359 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
9360 disable_overlay_breakpoints): Update overlay_events_enabled.
9361
9362 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
9363
9364 * dwarf2read.c (struct function_range): New.
9365 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
9366 (check_cu_functions): New.
9367 (read_file_scope): Initialize global function lists.
9368 Call dwarf_decode_line after processing children.
9369 (read_func_scope): Add to global function list.
9370 (dwarf_decode_lines): Call check_cu_functions everywhere
9371 record_line is called. Call record_line with a linenumber
9372 of 0 to mark sequence ends.
9373
9374 2002-04-04 Michal Ludvig <mludvig@suse.cz>
9375
9376 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
9377 change sync with glibc.
9378
9379 2002-04-03 Jim Blandy <jimb@redhat.com>
9380
9381 * configure.in: Call AC_C_INLINE.
9382 * configure: Regenerated.
9383
9384 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
9385
9386 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
9387 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
9388
9389 2002-03-31 Mark Kettenis <kettenis@gnu.org>
9390
9391 * NEWS: Mention gcore support on FreeBSD/i386.
9392
9393 * fbsd-proc.c: New file.
9394 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
9395 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
9396
9397 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
9398 while statement.
9399
9400 2002-03-29 Jim Blandy <jimb@redhat.com>
9401
9402 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
9403 unescaped newlines in string literals, but newer ones don't. So
9404 escape them.
9405
9406 2002-03-26 Michael Snyder <msnyder@redhat.com>
9407 Andrew Cagney <cagney@redhat.com>
9408
9409 * cli/cli-dump.c: New file. Dump memory to file,
9410 restore file to memory.
9411 * cli/cli-dump.h: New file.
9412 * Makefile.in: Add rules, dependencies for cli-dump.o.
9413 * NEWS: Mention new commands.
9414
9415 2002-03-28 Michael Snyder <msnyder@redhat.com>
9416
9417 * symfile.c (symbol_file_add): Move test for null symbols to later.
9418
9419 2002-03-27 Andrew Cagney <ac131313@redhat.com>
9420
9421 From veksler at il.ibm.com:
9422 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
9423 the xstrduped original path.
9424 Fix PR gdb/417.
9425
9426 2002-03-27 Michael Snyder <msnyder@redhat.com>
9427
9428 * breakpoint.c (_initialize_breakpoint): Clean up help string.
9429 * infcmd.c (_initialize_infcmd): Ditto.
9430 * language.c (_initialize_language): Ditto.
9431 * symfile.c (_initialize_symfile): Ditto.
9432 * top.c (_init_main): Ditto.
9433 * cli/cli-cmds.c (init_cli_cmds): Ditto.
9434
9435 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
9436
9437 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
9438 vector registers handling.
9439 (skip_prologue): Handle new AltiVec instructions. Fill in new
9440 fields of frame data.
9441 (frame_get_saved_regs): Fill in information for AltiVec registers.
9442
9443 2002-03-27 Jim Blandy <jimb@redhat.com>
9444
9445 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
9446 a function; leave this macro here to invoke that function.
9447 (symbol_init_mangled_name): Declaration for that function.
9448 * symtab.c (symbol_init_mangled_name): New function.
9449
9450 2002-03-27 Andrew Cagney <ac131313@redhat.com>
9451
9452 * valarith.c: Replace strerror with safe_strerror.
9453 * tracepoint.c: Ditto.
9454 * lin-lwp.c: Ditto.
9455 * go32-nat.c: Ditto.
9456 * inflow.c: Ditto.
9457 * gnu-nat.c: Ditto.
9458
9459 2002-03-27 Andreas Schwab <schwab@suse.de>
9460
9461 * event-top.c (command_line_handler): Remove useless if.
9462
9463 2002-03-27 Andreas Jaeger <aj@suse.de>
9464
9465 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
9466 comment.
9467
9468 2002-03-27 Michal Ludvig <mludvig@suse.cz>
9469
9470 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
9471 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
9472 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
9473 (x86_64_linux_dr_get_status, supply_gregset),
9474 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
9475 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
9476 (x86_64_register_info_table): Add.
9477 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
9478 (x86_64_register_raw_size, x86_64_register_virtual_type),
9479 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
9480 general x86_64_register_info_table.
9481 (i386_gdbarch_init): gdbarch_register_bytes is now set
9482 dynamicaly during initialization.
9483 * regformats/reg-x86-64.dat: Synced with changes to registers above.
9484 * gdbserver/linux-x86-64-low.c: Ditto.
9485
9486 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
9487
9488 * gdbserver/server.c (main): Call target_signal_to_host_p
9489 and target_signal_to_host on signals received from the remote.
9490 * gdbserver/remote-utils.c (prepare_resume_reply): Call
9491 target_signal_from_host on signals sent to the remote.
9492 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
9493 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
9494
9495 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
9496
9497 * signals/signals.c: Include "server.h" in gdbserver build.
9498 (target_signal_from_name): Don't use STREQ.
9499 (_initialize_signals): Likewise. Don't include function in
9500 gdbserver build.
9501
9502 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
9503
9504 * signals.c: Moved to...
9505 * signals/signals.c: Here.
9506 * Makefile (signals.o): Update.
9507
9508 2002-03-26 Jeff Law (law@redhat.com)
9509
9510 * somread.c (som_symtab_read): Remove some commented out code and
9511 updated related comments. Do not set the minimal symbol table to
9512 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
9513 in a dynamic executable.
9514 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
9515 where we are unable to find the minimal symbol for the given
9516 PC value.
9517
9518 2002-03-25 Jeff Law (law@redhat.com)
9519
9520 * linux-proc.c (read_mapping): Scan up to end of line for filename.
9521
9522 2002-03-25 Michal Ludvig <mludvig@suse.cz>
9523
9524 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
9525
9526 2002-03-23 Andrew Cagney <ac131313@redhat.com>
9527
9528 * command.h: Update copyright.
9529 (struct cmd_list_element): Replace definition with opaque
9530 declaration.
9531 (enum cmd_types): Document that it will eventually be moved to
9532 cli/cli-decode.h
9533 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
9534 (MALLOCED_REPLACEMENT): Delete macro.
9535 * Makefile.in (cli_decode_h): Add $(command_h).
9536 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
9537 * top.c: Include "cli/cli-decode.h".
9538 * completer.c: Include "cli/cli-decode.h".
9539 * maint.c: Include "cli/cli-decode.h".
9540 * cli/cli-decode.h: Include "command.h".
9541 (enum command_class): Delete.
9542 (enum cmd_types): Comment out.
9543 (enum cmd_auto_boolean): Delete.
9544 (enum var_types): Delete.
9545
9546 2002-03-23 Andrew Cagney <ac131313@redhat.com>
9547
9548 * cli/cli-decode.c: Include "gdb_assert.h".
9549 (add_set_or_show_cmd): New static function.
9550 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
9551 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
9552 all fields, such as func, from the set command.
9553
9554 2002-03-23 Andrew Cagney <ac131313@redhat.com>
9555
9556 * MAINTAINERS (sh-elf): Change warning flag to -w.
9557
9558 2002-03-23 Andrew Cagney <cagney@redhat.com>
9559
9560 * defs.h (error): Add printf format attribute.
9561 * thread-db.c (thread_from_lwp): Fix error format string.
9562 * stack.c (parse_frame_specification): Ditto.
9563 * cli/cli-decode.c (undef_cmd_error): Ditto.
9564 * scm-lang.c (scm_lookup_name): Ditto.
9565 * tracepoint.c (trace_error): Ditto.
9566 * remote-utils.c (usage): Ditto.
9567 * remote.c (compare_sections_command): Ditto.
9568 Fix PR gdb/328.
9569
9570 2002-03-22 Andrew Cagney <ac131313@redhat.com>
9571
9572 * gdbtypes.c (append_composite_type_field): New function.
9573 (init_composite_type): New function.
9574 * gdbtypes.h (append_composite_type_field): Declare.
9575 (init_composite_type): Ditto.
9576
9577 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
9578
9579 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
9580 function.
9581 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
9582 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
9583 structure returning convention for SYSV ABI case, but not
9584 for GNU/Linux, FreeBSD, or NetBSD.
9585
9586 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
9587
9588 * symtab.h (lookup_block_symbol): Add mangled_name argument
9589 to prototype.
9590
9591 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
9592 with new mangled_name argument.
9593 * linespec.c (decode_line_1): Likewise.
9594 * valops (value_of_this): Likewise.
9595 * symtab.c (lookup_transparent_type): Likewise.
9596 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
9597 (lookup_symbol): If we are given a mangled name, pass it down
9598 to lookup_symbol_aux.
9599 (lookup_block_symbol): If we are given a mangled name to check
9600 against, only return symbols which match it.
9601
9602 2002-03-22 Christopher Faylor <cgf@redhat.com>
9603
9604 * win32-nat.c (child_create_inferior): Check for proper shell to use
9605 here, in case the user changes it on the fly.
9606 (_initialize_inftarg): Remove shell path considerations.
9607
9608 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
9609
9610 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
9611 for gdbarch_max_register_raw_size and max_register_virtual_size.
9612 Adjust copyright year.
9613
9614 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
9615
9616 * dbxread.c (process_one_symbol): Extend the first N_SLINE
9617 in a function to cover the entire beginning of the function
9618 as well if it does not already.
9619
9620 2002-03-21 Tom Rix <trix@redhat.com>
9621
9622 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
9623 (rs6000_ptrace64): Renamed from ptrace64.
9624
9625 2002-03-20 Martin M. Hunt <hunt@redhat.com>
9626
9627 * gdbserver/remote-utils.c (remote_open): Don't call
9628 getprotobyname, we're all using TCP here so just use
9629 IPPROTO_TCP.
9630 * gdbserver/gdbreplay.c (remote_open): Ditto.
9631
9632 2002-03-20 Martin M. Hunt <hunt@redhat.com>
9633
9634 * regcache.c (_initialize_regcache): No need to call
9635 build_regcache() at this time; it gets called whenever
9636 the gdbarch changes.
9637
9638 2002-03-20 David O'Brien <obrien@FreeBSD.org>
9639
9640 * sparc-nat.c: Include sys/param.h where possible.
9641
9642 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
9643
9644 Fix PR gdb/422.
9645 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
9646 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
9647 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
9648 complex types.
9649 * stabsread.c (rs6000_builtin_type): Likewise.
9650 (read_sun_floating_type): Likewise.
9651
9652 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9653
9654 * stabsread.c (read_member_functions): Remove skip code for duplicate
9655 constructor/destructor methods. Use standard parsing for these
9656 methods and just do not chain them to the list of methods after
9657 parsing.
9658
9659 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
9660
9661 * coffread.c: Remove redundant static declarations. Replace
9662 occurrences of `PTR' with `void *'.
9663 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
9664 * top.h (quit_cover): Likewise.
9665 * defs.h (catch_errors): Likewise.
9666
9667 2002-03-18 Andrew Cagney <ac131313@redhat.com>
9668
9669 * defs.h (XMALLOC): Define.
9670 * gdb-events.sh (XMALLOC): Delete macro.
9671 * gdb-events.c, gdb-events.h: Regenerate.
9672 * gdbarch.sh (XMALLOC): Delete macro.
9673 * gdbarch.c: Regenerate.
9674 * serial.c (XMALLOC): Delete macro.
9675 * ui-file.c (XMALLOC): Ditto.
9676 * ser-unix.h (XMALLOC): Ditto.
9677 * sh-tdep.c (XMALLOC): Ditto.
9678 * ui-out.c (XMALLOC): Ditto.
9679 * utils.c (XMALLOC): Ditto.
9680 * i386-tdep.c (XMALLOC): Ditto.
9681 * gdb-events.c (XMALLOC): Ditto.
9682 * d10v-tdep.c (XMALLOC): Ditto.
9683 * cli-out.c (XMALLOC): Ditto.
9684
9685 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
9686 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
9687 * ui-file.c, ui-out.c: Ditto.
9688
9689 2002-03-18 Andrew Cagney <ac131313@redhat.com>
9690
9691 * command.h (struct cmd_list_element): Add field context.
9692 (set_cmd_context, get_cmd_context): Declare.
9693 * cli/cli-decode.h: Ditto.
9694 * cli/cli-decode.c (get_cmd_context): New function.
9695 (set_cmd_context): New function.
9696 (add_cmd): Initialize context.
9697 Part of fixing PR gdb/145 and PR gdb/146.
9698
9699 2002-03-17 Andrew Cagney <ac131313@redhat.com>
9700
9701 * cli/cli-decode.c (cmd_type): New function.
9702 * command.h (cmd_type): Declare.
9703 * infrun.c (set_schedlock_func): Call function cmd_type.
9704 * kod.c (kod_set_os): Call cmd_type.
9705 * cris-tdep.c (cris_version_update): Use function cmd_type.
9706 (cris_mode_update, cris_abi_update): Ditto.
9707
9708 * command.h: (execute_cmd_post_hook): Declare.
9709 (execute_cmd_pre_hook): Declare.
9710 * cli/cli-script.c (clear_hook_in_cleanup): New function.
9711 (execute_cmd_post_hook, execute_cmd_pre_hook): New
9712 functions. Execute pre/post hook while ensuring that afterwords
9713 hook_in is cleared.
9714 * top.c (execute_command): Use execute_cmd_post_hook, and
9715 execute_cmd_pre_hook to execute pre/post commands.
9716 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
9717 hook_stop_stub.
9718 (hook_stop_stub): Call execute_cmd_pre_hook.
9719
9720 2002-03-17 Andrew Cagney <ac131313@redhat.com>
9721
9722 * kod.c (kod_set_os): Revert previous change. Is called by ``info
9723 set'' and this leads to a core dump. Move xstrdup of
9724 operating_system to after check that it is not NULL.
9725
9726 2002-03-17 Andrew Cagney <ac131313@redhat.com>
9727
9728 * kod.c (kod_set_os): Remove unnecessary check that
9729 ``command->type'' is set_cmd.
9730
9731 * valprint.c (set_input_radix): Use input_radix.
9732 (set_output_radix): Use output_radix.
9733 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
9734 isn't reverted.
9735
9736 2002-03-16 Andrew Cagney <ac131313@redhat.com>
9737
9738 * value.h (struct value): Delete field ``substring_addr''. Change
9739 aligner fields to force_doublest_align, force_longest_align,
9740 force_core_addr_align and force_pointer_aligh.
9741
9742 * value.h (struct value): Fix typo in above change.
9743
9744 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9745
9746 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
9747 to fix internal_error from ``maintenance print architecture''.
9748
9749 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9750
9751 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
9752 for gcc versions after gcc-2.8.1.
9753
9754 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9755
9756 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
9757 for method resolution. Restore adjustment of ``this'' pointer after
9758 calling value_struct_elt, which was accidentally removed during the
9759 HP merge.
9760
9761 2002-03-15 Andrew Cagney <ac131313@redhat.com>
9762
9763 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
9764 value_of_register.
9765 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
9766 get_saved_register.
9767 * value.h (value_of_register): Update.
9768
9769 2002-03-14 Richard Henderson <rth@redhat.com>
9770
9771 * configure.in: Detect declaration for canonicalize_file_name.
9772 * utils.c (canonicalize_file_name): Declare, if needed.
9773 (gdb_realpath): Prefer realpath if available and usable.
9774 * config.in, configure: Rebuild.
9775
9776 2002-03-14 Richard Henderson <rth@redhat.com>
9777
9778 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
9779 a constant array bound.
9780
9781 * MAINTAINERS: Add myself to write-after-approval.
9782
9783 2002-03-14 Michael Snyder <msnyder@redhat.com>
9784
9785 * symfile.c (syms_from_objfile): Return immediately if no syms.
9786 (symbol_file_add): Return immediately if no syms.
9787 (find_sym_fns): Return immediately if no syms.
9788
9789 2002-03-13 Michal Ludvig <mludvig@suse.cz>
9790
9791 * gdbserver/remote-util.c (remote_open): Print remote-side's
9792 IP address when remote debugging over the network.
9793
9794 2002-03-12 David O'Brien <obrien@FreeBSD.org>
9795
9796 * config/sparc/fbsd.mh: Fix copyright.
9797 * config/sparc/fbsd.mt: Likewise.
9798
9799 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
9800
9801 * MAINTAINERS: Fix typo in name of gdb warnings option.
9802 (x86-64): Fix formating so that this can be parsed by awk.
9803
9804 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
9805
9806 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
9807 * defs.h: Include "gdb/signals.h".
9808 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
9809
9810 2002-03-10 Michal Ludvig <mludvig@suse.cz>
9811
9812 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
9813 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
9814 from x86-64-tdep.h
9815
9816 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
9817 Don Howard <dhoward@redhat.com>
9818
9819 * mips-tdep.c (ST0_FR): Define.
9820 (mips2_fp_compat): New function, temporarily disabled.
9821 (mips_read_fp_register_single): New function.
9822 (mips_read_fp_register_double): New function.
9823 (mips_print_register): Use them.
9824 (do_fp_register_row): Likewise.
9825
9826 2002-03-09 Andrew Cagney <ac131313@redhat.com>
9827
9828 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
9829 approval''.
9830
9831 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9832
9833 * stabsread.c (read_member_functions): Fix is_stub test for
9834 static member functions, improve comment.
9835
9836 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
9837
9838 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
9839 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
9840 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
9841 commands that set boolean values.
9842 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
9843 (arm_rdi_resume): Always initialize PC.
9844 (arm_rdi_open): Don't use rslt as a boolean.
9845 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
9846 (arm_rdi_fetch_registers, arm_rdi_store_registers)
9847 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
9848 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
9849
9850 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
9851
9852 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
9853 * configure: Rebuilt.
9854
9855 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9856
9857 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
9858 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
9859
9860 2002-03-06 Andrew Cagney <ac131313@redhat.com>
9861
9862 * cli/cli-decode.c (set_cmd_completer): New function.
9863 * command.h (set_cmd_completer): Declare.
9864 * cli/cli-decode.h (set_cmd_completer): Ditto.
9865
9866 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
9867 * cli/cli-cmds.c (init_cli_cmds): Ditto.
9868 * win32-nat.c (_initialize_inftarg): Ditto.
9869 * remote-rdi.c (_initialize_remote_rdi): Ditto.
9870 * proc-api.c (_initialize_proc_api): Ditto.
9871 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
9872 * source.c (_initialize_source): Ditto.
9873 * exec.c (_initialize_exec): Ditto.
9874 * solib.c (_initialize_solib): Ditto.
9875 * top.c (init_main): Ditto.
9876 * tracepoint.c (_initialize_tracepoint): Ditto.
9877 * symfile.c (_initialize_symfile): Ditto.
9878 * printcmd.c (_initialize_printcmd): Ditto.
9879 * infcmd.c (_initialize_infcmd): Ditto.
9880 * corefile.c (_initialize_core): Ditto.
9881
9882 2002-03-05 Andrew Cagney <ac131313@redhat.com>
9883
9884 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
9885
9886 2002-03-05 Andrew Cagney <ac131313@redhat.com>
9887
9888 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
9889
9890 2002-03-05 Andrew Cagney <ac131313@redhat.com>
9891
9892 * NEWS: Update headings, 5.2 has branched.
9893
9894 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
9895
9896 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
9897 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
9898 (register_addr, REGISTER_RAW_SIZE): Likewise.
9899 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
9900 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
9901
9902 2002-03-03 Michal Ludvig <mludvig@suse.cz>
9903
9904 * MAINTAINERS (x86-64): Add myself.
9905 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
9906 changed value_ptr -> struct value *
9907
9908 2002-03-01 David O'Brien <obrien@FreeBSD.org>
9909
9910 * configure.host (sparc64-*-freebsd): Add.
9911 * configure.tgt: Likewise.
9912 * config/sparc/fbsd.mh: New file.
9913 * config/sparc/fbsd.mt: Likewise.
9914 * config/sparc/nm-fbsd.h: Likewise.
9915 * config/sparc/tm-fbsd.h: Likewise.
9916
9917 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
9918
9919 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
9920 regformats/reg-s390x.dat.
9921
9922 2002-03-01 Andrew Cagney <ac131313@redhat.com>
9923
9924 * utils.c: Add FIXME explaining true/false problem.
9925
9926 2002-02-28 Andrew Cagney <ac131313@redhat.com>
9927
9928 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
9929
9930 2002-02-28 Michael Chastain <mec@shout.net>
9931
9932 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
9933
9934 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
9935
9936 * gdbserver/linux-s390-low.c: New file.
9937 * regformats/reg-s390.dat: New file.
9938 * regformats/reg-s390x.dat: New file.
9939 * gdbserver/configure.srv: Add S/390.
9940 * gdbserver/Makefile.in: Add S/390.
9941 * configure.tgt: Enable gdbserver for S/390.
9942
9943 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
9944
9945 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
9946 first line of the doc string for "info dos", except at the end of
9947 the sentence, since the short help stops at the first period.
9948
9949 2002-02-28 Jason Merrill <jason@redhat.com>
9950
9951 * dwarf2read.c (dwarf_cfi_name): Add new codes.
9952
9953 2002-02-27 Fred Fish <fnf@redhat.com>
9954
9955 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
9956 comment (dumy -> dummy).
9957
9958 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9959
9960 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
9961
9962 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
9963
9964 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
9965
9966 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
9967
9968 * gdbserver/acconfig.h: New file.
9969 * gdbserver/i387-fp.c: New file.
9970 * gdbserver/i387-fp.h: New file.
9971 * gdbserver/linux-x86-64.c: New file.
9972 * regformats/reg-x86-64.dat: New file.
9973 * configure.tgt: Add x86_64-*-linux* gdbserver support.
9974 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
9975 * gdbserver/configure.in: Add support for regsets.
9976 * gdbserver/config.in: Regenerate.
9977 * gdbserver/configure: Regenerate.
9978 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
9979 * gdbserver/linux-low.h: New file.
9980 * gdbserver/linux-low.c: Include "linux-low.h". Add support
9981 for regsets.
9982 * gdbserver/linux-arm-low.c: Include "linux-low.h".
9983 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
9984 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
9985 * gdbserver/linux-mips-low.c: Include "linux-low.h".
9986 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
9987 * gdbserver/linux-sh-low.c: Include "linux-low.h".
9988 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
9989 "i387-fp.h". Add PTRACE_GETREGS and friends.
9990 * gdbserver/regcache.c (supply_register): New function.
9991 (supply_register_by_name): New function.
9992 (collect_register): New function.
9993 (collect_register_by_name): New function.
9994
9995 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
9996
9997 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
9998 (config.status): Add configure.srv dependency.
9999 (server_h): Add config.h dependency.
10000
10001 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
10002
10003 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
10004 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
10005 * gdbserver/configure.srv: Change i386-*-linux* to use
10006 reg-i386-linux.o.
10007
10008 2002-02-26 Andrew Cagney <ac131313@redhat.com>
10009
10010 * x86-64-tdep.c: Re-indent. Update copyright date.
10011
10012 2002-02-26 Andrew Cagney <ac131313@redhat.com>
10013
10014 From Michal Ludvig <mludvig@suse.cz>:
10015 * x86-64-tdep.c (value.h): Delete.
10016 (gdb_assert.h): Include.
10017 (x86_64_register_convert_to_virtual,
10018 x86_64_register_convert_to_raw ): Add check which lets only
10019 floating-point values to be converted.
10020 (value_push): Delete.
10021 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
10022 (i386_gdbarch_init): Number of register_bytes fixed.
10023
10024 2002-02-26 Andrew Cagney <ac131313@redhat.com>
10025
10026 * MAINTAINERS: Add x86-64 target.
10027
10028 2002-02-26 Andrew Cagney <ac131313@redhat.com>
10029
10030 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
10031 * osfsolib.c (solib_map_sections): Ditto.
10032 * irix5-nat.c (solib_map_sections): Ditto.
10033 * corelow.c (gdb_check_format): Ditto.
10034 * symfile.c (symfile_bfd_open): Ditto.
10035 * solib.c (solib_map_sections): Ditto.
10036 Fix PR gdb/354.
10037
10038 2002-02-26 Andrew Cagney <ac131313@redhat.com>
10039
10040 * remote.c (_initialize_remote): By default, disable ``e'' and
10041 ``E'' step out-of-range packets.
10042
10043 2002-02-26 Andreas Schwab <schwab@suse.de>
10044
10045 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
10046 m68k_linux_frame_saved_pc.
10047 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
10048 in_sigtramp.
10049 (SIGCONTEXT_PC_OFFSET): Remove.
10050 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
10051 m68k_linux_sigtramp_saved_pc): New functions.
10052 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
10053 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
10054 (UCONTEXT_PC_OFFSET): Define.
10055 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
10056 non-RT and RT signal trampolines.
10057
10058 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
10059
10060 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
10061 (TARGET_NBPG, STACK_END_ADDR): Delete
10062 (VARIABLES_INSIDE_BLOCK): Delete.
10063
10064 2002-02-25 Andrew Cagney <ac131313@redhat.com>
10065
10066 * utils.c (perror_with_name): Make string parameter constant.
10067 (print_sys_errmsg): Ditto.
10068 (query): Ditto.
10069 * defs.h (perror_with_name): Update.
10070 (print_sys_errmsg): Update.
10071 (query): Update.
10072
10073 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
10074
10075 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
10076 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
10077
10078 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10079
10080 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
10081 if it already matches the current architecture from the exec file.
10082 Include arch-utils.h for gdbarch_info_init prototype.
10083 * Makefile.in (rs6000-nat.o): Update dependencies.
10084
10085 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
10086
10087 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
10088 list of exported variables.
10089
10090 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
10091
10092 * gdbserver/configure.srv: New file.
10093 * gdbserver/configure.in: Use configure.srv instead
10094 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
10095 from it.
10096 * gdbserver/configure: Regenerated.
10097 * gdbserver/terminal.h: New file.
10098 * gdbserver/Makefile.in: Update for configure changes. Remove
10099 more unneeded include paths.
10100
10101 2002-02-24 Andrew Cagney <ac131313@redhat.com>
10102
10103 From wiz at danbala:
10104 * config/sparc/tm-sp64.h: Fix grammar and typos.
10105 Fix PR gdb/287.
10106
10107 2002-02-24 Andrew Cagney <ac131313@redhat.com>
10108
10109 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
10110 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
10111 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
10112 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
10113 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
10114 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
10115 * s390-tdep.c: Ditto.
10116 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
10117 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
10118 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
10119 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
10120 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
10121 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
10122 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
10123 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
10124 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
10125 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
10126 Fix PR gdb/378.
10127
10128 2002-02-23 Andrew Cagney <ac131313@redhat.com>
10129
10130 * lin-thread.c: Delete file.
10131 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
10132 to gdb_proc_service.h.
10133 * configure: Re-generate.
10134
10135 * ocd.c (ocd_open): Do not try to open the "ocd" device.
10136 * serial.c (serial_open): Delete check for "ocd".
10137 Fix PR gdb/349.
10138
10139 * Makefile.in (linux-thread.o): Delete target.
10140 * linux-thread.c: Delete file.
10141
10142 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
10143 renamed SH files to be consistent.
10144
10145 * symtab.c (sort_search_symbols): Use xfree.
10146
10147 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
10148
10149 * arm-linux-tdep.c (arm_linux_init_abi): Register
10150 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
10151 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
10152 definition with undef, since we don't want the sysvr4 definition.
10153 (SKIP_TRAMPOLINE_CODE): Likewise.
10154
10155 2002-02-23 Andrew Cagney <ac131313@redhat.com>
10156
10157 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
10158
10159 * configure.in: (AC_CHECK_FUNCS) Added test for
10160 canonicalize_file_name Regenerated.
10161 * config.in, configure: Regenerated.
10162 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
10163 defined use canonicalize_file_name.
10164
10165 2002-02-23 Michael Chastain <mec@shout.net>
10166
10167 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
10168
10169 2002-02-23 Andrew Cagney <ac131313@redhat.com>
10170
10171 * README: Remove references to cygnus.com.
10172 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
10173 dot com'' form. Remove references to cygnus.com and sourceware.
10174
10175 2002-02-23 Andrew Cagney <ac131313@redhat.com>
10176
10177 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
10178 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
10179 1003.1-2001 no longer allows "head -1".
10180 * gdb/Makefile.in (version.c): Likewise.
10181 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
10182 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
10183 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
10184
10185 2002-02-23 Andrew Cagney <ac131313@redhat.com>
10186
10187 * cli/cli-decode.c (cmd_cfunc_eq): New function.
10188 * command.h (cmd_cfunc_eq): Declare.
10189 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
10190
10191 * cli/cli-cmds.h (is_complete_command): Change parameter to a
10192 ``struct cmd_list_element *''.
10193 * cli/cli-cmds.c (is_complete_command): Update. Use
10194 cmd_cfunc_eq.
10195 * top.c (execute_command): Pass the command to
10196 is_complete_command.
10197 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
10198
10199 2002-02-23 Andrew Cagney <ac131313@redhat.com>
10200
10201 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
10202 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
10203 architecture defines.
10204 * s390-tdep.c (s390_gdbarch_init): Likewise.
10205
10206 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
10207
10208 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
10209 (arm_linux_push_arguments): Likewise.
10210 (arm_linux_init_abi): Register them. Also register linux-specific
10211 call_dummy_words.
10212 (find_minsym_and_objfile): Use strcmp, not STREQ.
10213 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
10214 (arm_linux_call_dummy_words): Delete declaration.
10215 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
10216 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
10217 declarations.
10218 (LOWEST_PC): Delete.
10219
10220 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10221
10222 * maint.c (print_section_info): Do not prepend `0x' to filepos
10223 output, it will be handled by local_hex_string_custom.
10224
10225 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
10226
10227 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
10228 (store_newfpe_double, store_newfpe_extended, store_fpregister)
10229 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
10230
10231 2002-02-22 Jim Blandy <jimb@redhat.com>
10232
10233 Indicate that the bcache functions don't change the strings
10234 they're passed.
10235 * bcache.h (bcache, hash): Add `const' keywords to declarations.
10236 * bcache.c (bcache, hash): Add `const' keywords to definitions.
10237
10238 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
10239
10240 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
10241
10242 2002-02-21 Christopher Faylor <cgf@redhat.com>
10243
10244 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
10245 find the complete path to a loaded DLL.
10246
10247 2002-02-21 Fred Fish <fnf@redhat.com>
10248
10249 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
10250 that marks the end of the range of a function, enter a line number
10251 entry that has a line number of zero and a PC offset that matches
10252 the end of the function. This starts a range of PC's for which no
10253 line number information is known.
10254 * symtab.c (find_pc_sect_line): If our best fit is in a range of
10255 PC's for which no line number info is found (line number is zero)
10256 then we didn't find any valid line information.
10257 * symtab.h: Document use of zero line number entry.
10258
10259 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
10260
10261 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
10262 (have_ptrace_getvrregs): Define for run time checks.
10263 (gdb_vrregset_t): New type for Altivec register handling.
10264 (fetch_register, store_register): Fetch/store altivec register
10265 when needed.
10266 (fetch_altivec_register, store_altivec_register): New functions.
10267 (supply_vrregset, fill_vrregset): New functions.
10268 (fetch_altivec_registers, store_altivec_registers): New functions.
10269 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
10270 registers as well.
10271
10272 2002-02-21 Jiri Smid <smid@suse.cz>
10273
10274 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
10275
10276 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
10277
10278 * Makefile.in (armnbsd-nat.o): Update dependencies.
10279 * armnbsd-nat.c (supply_gregset): New function. Common code to
10280 supply the integer register set.
10281 (supply_fparegset): New function. Similar for FPA registers.
10282 (fetch_regs, fetch_fp_regs): Use them.
10283 (fetch_core_registers): Likewise.
10284 (fetch_elfcore_registers): New function.
10285 (arm_netbsd_elfcore_fns): New core-file type specification.
10286 (_initialize_arm_netbsd_nat): Register it.
10287
10288 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
10289
10290 * armnbsd-nat.c: Include gdbcore.h.
10291 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
10292 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
10293 'void' to declaration, to shut up ARI.
10294 (fetch_core_registers): Make static. Rewrite using supply_register.
10295 (arm_netbsd_core_fns): New core-file type specification.
10296 (_initialize_arm_netbsd_nat): New function.
10297
10298 2002-02-21 Christopher Faylor <cgf@redhat.com>
10299
10300 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
10301 value.
10302
10303 2002-02-20 Christopher Faylor <cgf@redhat.com>
10304
10305 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
10306 fails.
10307
10308 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
10309
10310 * jv-exp.y (parse_number): Change type of implicit longs
10311 to builtin_type_uint64.
10312
10313 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
10314
10315 * gdbserver/linux-low.c (mywait): Change argument to waitpid
10316 to be an integer instead of a `union wait'.
10317
10318 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
10319
10320 * mips-linux-nat.c: Call the operating system GNU/Linux.
10321 * mips-linux-tdep.c: Likewise.
10322 * mips-tdep.c: Likewise.
10323
10324 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
10325
10326 Fix PR gdb/265.
10327 * jv-exp.y (parse_number): Handle 64-bit integers.
10328
10329 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
10330
10331 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
10332 AC_STDC_HEADERS to AC_HEADER_STDC.
10333 * gdbserver/configure: Regenerated.
10334
10335 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
10336
10337 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
10338 is defined.
10339 * sparc-tdep.c (get_longjmp_target): Likewise.
10340
10341 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
10342
10343 * News: Add news about ARM and Multi-arch. Mention the new target
10344 arm*-*-netbsd*.
10345
10346 2002-02-19 Jim Blandy <jimb@redhat.com>
10347
10348 * stabsread.c (error_type_complaint): Improve error message.
10349
10350 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
10351
10352 * gdbserver/README: Update documentation.
10353 * gdbserver/configure.in: Update configury to match documentation.
10354 * gdbserver/Makefile.in: Likewise.
10355 * gdbserver/configure: Regenerated.
10356 * gdbserver/aclocal.m4: New file, generated by aclocal.
10357 * gdbserver/config.in: New file, generated by autoheader.
10358
10359 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
10360
10361 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
10362 armnbsd-nat.c.
10363
10364 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
10365
10366 * arm-tdep.h (enum arm_float_model): New enum.
10367 (struct gdbarch_tdep): Add fp_model.
10368 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
10369 up floating-point conversions until we know the floating-point model
10370 in use by the inferior. Don't complain about being unable to
10371 determine the ABI of the inferior when we don't have one.
10372 (arm_extract_return_value): Support different floating-point models.
10373 (arm_store_return_value): Likewise.
10374 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
10375 ARM_FLOAT_SOFT.
10376 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
10377
10378 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10379
10380 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
10381 of ``current_gdbarch''.
10382
10383 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
10384
10385 * armnbsd-nat.c : ANSIfy all function declarations.
10386 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
10387 (fetch_inferior_registers): Re-implement in terms of above.
10388 (store_register, store_regs, store_fp_register, store_fp_regs): New.
10389 (store_inferior_registers): Re-implement in terms of above.
10390
10391 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
10392
10393 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
10394 kernel.
10395 * arm-linux-tdep.c: Likewise.
10396 * config/arm/tm-linux.h: Likewise.
10397
10398 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
10399
10400 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
10401 * config/arm/nbsd.mt (TM_FILE): Delete.
10402 * config/arm/tm-nbsd.h: Delete.
10403
10404 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
10405
10406 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
10407 Initialize CALL_DUMMY_LENGTH.
10408
10409 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
10410
10411 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
10412 function.
10413 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
10414 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
10415 defines one thing and that is incorrect for this port.
10416 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
10417
10418 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
10419
10420 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
10421
10422 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
10423
10424 * win32-nat.c (display_selector): New function. Displays information
10425 about the information returned by GetThreadSelectorEntry API function.
10426 (display_selectors): New function. Displays the infomation of
10427 the selector given as argument, or of CS, DS ans FS selectors
10428 if no argument is given.
10429 ( _initialize_inftarg): Add "w32" as info prefix command.
10430 Add "info w32 selector" as command calling display_selectors.
10431
10432 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
10433
10434 * i386-tdep.c (get_longjmp_target): Fix compilation failure
10435 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
10436 if not defined.
10437
10438 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
10439
10440 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
10441
10442 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
10443
10444 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
10445 (arm_fix_call_dummy): Call it.
10446 (arm_call_dummy_breakpoint_offset): Delete.
10447 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
10448 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
10449
10450 2002-02-18 Andrew Cagney <ac131313@redhat.com>
10451
10452 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
10453 Default to func_frame_chain_valid.
10454 * gdbarch.h, gdbarch.c: Re-generate.
10455 * frame.h (FRAME_CHAIN_VALID): Delete definition.
10456
10457 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
10458
10459 * ppc-linux-nat.c: Update copyright.
10460 (fetch_register, store_register): Add tid parameter, don't compute
10461 tid here.
10462 (fetch_ppc_registers, store_ppc_registers): Add tid
10463 parameter. Pass it along to callees.
10464 (fetch_inferior_registers, store_inferior_registers): Compute tid
10465 here, and pass it to calleed functions.
10466 (fill_gregset, supply_fpregset): Clean up formatting.
10467
10468 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
10469
10470 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
10471 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
10472
10473 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
10474
10475 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
10476 * gdbarch.c gdbarch.h: Regenerate.
10477 * breakpoint.c (create_longjmp_breakpoint): Always compile this
10478 function.
10479 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
10480 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
10481 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
10482
10483 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
10484 * arm-tdep.c (arm_get_longjmp_target): New function.
10485 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
10486 this to a positive value register arm_get_longjmp_target as the
10487 longjmp handler.
10488 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
10489 (arm_linux_init_abi): Set up longjmp description in tdep.
10490 * armnbsd-nat.c (get_longjmp_target): Delete.
10491 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
10492 description in tdep.
10493 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
10494 (get_longjmp_target): Delete declaration.
10495 (GET_LONGJMP_TARGET): Delete.
10496 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
10497 (GET_LONGJMP_TARGET): Delete.
10498
10499 2002-02-17 Kevin Buettner <kevinb@redhat.com>
10500
10501 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
10502 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
10503 of ``current_gdbarch''.
10504
10505 2002-02-17 Tom Tromey <tromey@redhat.com>
10506
10507 * cli/cli-cmds.c (compare_strings): New function.
10508 (complete_command): Only print each unique item once.
10509 * completer.h (complete_line): Declare.
10510 * completer.c (complete_line): New function.
10511 (line_completion_function): Use it.
10512
10513 2002-02-16 Andrew Cagney <ac131313@redhat.com>
10514
10515 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
10516 * gdbarch.h, gdbarch.c: Re-generate.
10517
10518 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
10519
10520 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
10521
10522 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
10523
10524 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
10525 * valops.c (value_arg_coerce): Don't take the address of a reference
10526 to convert an argument to a reference.
10527
10528 2002-02-15 Christopher Faylor <cgf@redhat.com>
10529
10530 * win32-nat.c (get_image_name): New function.
10531 (handle_load_dll): Use get_image_name function.
10532 (get_child_debug_event): Avoid registering debug events until possibly
10533 execed process is started.
10534 (child_create_inferior): Allow invocation via shell so that command
10535 line redirection, etc. works ok.
10536 (_initialize_inftarg): Add new command: "set shell" to control whether
10537 a shell is used to start a process.
10538
10539 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
10540
10541 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
10542 instead of find_register_by_number.
10543 (cannot_store_register): Likewise.
10544
10545 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
10546
10547 * dwarf2read.c: Replace fprintf (stderr, ...) by
10548 fprintf_unfiltered (gdb_stderr, ...).
10549
10550 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
10551
10552 * gdbserver/gdbserver.1: Document --attach.
10553
10554 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
10555
10556 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
10557 descriptions.
10558 * arm-tdep.c (arm_default_arm_le_breakpoint)
10559 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
10560 (arm_default_thumb_be_breakpoint): New. Initialize them from
10561 traditional breakpoint defines.
10562 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
10563 (arm_gdbarch_init): Initialize new breakpoint variables.
10564 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
10565 (arm_linux_init_abi): Initialize linux-specific breakpoint.
10566 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
10567 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
10568 code out to ...
10569 (arm_netbsd_init_abi_common): ... here; new function.
10570 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
10571 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
10572 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
10573 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
10574
10575 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
10576
10577 * arm-tdep.h (enum arm_abi): New enum.
10578 (struct gdbarch_tdep): New structure.
10579 (LOWEST_PC): Provide a default.
10580 (arm_gdbarch_register_os_abi): Declare new function.
10581 * arm-tdep.c (arm_abi_names): New array.
10582 (process_note_abi_tag_sections): New function.
10583 (get_elfosabi): New function.
10584 (arm_gdbarch_register_os_abi): New function.
10585 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
10586 support for that ABI has been built in, then call the appropriate
10587 configuration routine. Use gdbarch_num_regs() to get the number
10588 of registers.
10589 (arm_dump_tdep): New function.
10590 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
10591 place-holder functions.
10592 (_initialize_arm_tdep): Register them.
10593 * config/arm/tm-arm.h (LOWEST_PC): Delete.
10594
10595 * armnbsd-tdep.c: New file.
10596 * Makefile.in (armnbsd-tdep.o): Add dependencies.
10597 * config/arm/nbsd.mt (TDEPFILES): Add it.
10598 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
10599
10600 * armnbsd-nat.c: Include regcache.h.
10601 * Makefile.in (armnbsd-nat.o): Update dependency list.
10602
10603 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
10604
10605 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
10606
10607 * gdbserver/Makefile.in: Fix typos in target rules.
10608
10609 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
10610
10611 Fix part of PR gdb/267.
10612 * linespec.c (find_methods): Handle constructors specially for now.
10613
10614 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
10615
10616 * arm-tdep.c (arm_push_arguments): Eliminate special float type
10617 handling.
10618 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
10619 standard_coerce_float_to_double().
10620
10621 2002-02-14 Christopher Faylor <cgf@redhat.com>
10622
10623 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
10624 GDBINIT_FILENAME.
10625
10626 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
10627
10628 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
10629 find_variant_by_name, because it confuses the multiarch
10630 framework. Return NULL if there isn't an architecture with the
10631 user supplied name, instead of forcing a different one without
10632 recording the change with the multiarch machinery.
10633 (find_variant_by_name): Delete.
10634
10635 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10636
10637 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
10638 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
10639
10640 2002-02-13 Martin M. Hunt <hunt@redhat.com>
10641
10642 * stack.c (print_frame_info_base): When calling
10643 print_frame_info_listing_hook, set current_source_symtab.
10644
10645 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
10646
10647 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
10648 and remove unused $(INCLUDE_DIR).
10649 Add regcache.c to OBS.
10650 Add generated register protocol files to clean target.
10651 Update dependencies for new objects, obsolete old target code.
10652
10653 * gdbserver/linux-low.c: Remove all platform-specific code to
10654 new files. Remove various dead code. Update to use regcache
10655 functionality.
10656 * gdbserver/remote-utils.c (fromhex): Add return statement
10657 to quiet warning.
10658 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
10659 constant.
10660 (input_interrupt): Add integer parameter to match prototype
10661 of a signal handler.
10662 (outreg): Use register_data ().
10663 (prepare_resume_reply): Use gdbserver_expedite_regs.
10664 * gdbserver/server.c (main): Dynamically allocate own_buf because
10665 PBUFSIZ is no longer constant. Use registers_to_string () and
10666 registers_from_string ().
10667 * gdbserver/server.h: No longer include "defs.h". Add prototypes
10668 for error (), fatal (), and warning (). Update definition of
10669 PBUFSIZ to use regcache functionality. Add include guard.
10670 * gdbserver/utils.c (fatal): Add missing ``const''.
10671 (warning): New function.
10672
10673 * regformats/regdat.sh: Include "regcache.h" in generated files.
10674 Provide init_registers () function.
10675 * regformats/regdef.h: Add prototype for set_register_cache ().
10676 Add include guard.
10677
10678 * gdbserver/linux-arm-low.c: New file.
10679 * gdbserver/linux-i386-low.c: New file.
10680 * gdbserver/linux-ia64-low.c: New file.
10681 * gdbserver/linux-m68k-low.c: New file.
10682 * gdbserver/linux-mips-low.c: New file.
10683 * gdbserver/linux-ppc-low.c: New file.
10684 * gdbserver/linux-sh-low.c: New file.
10685
10686 * gdbserver/regcache.c: New file.
10687 * gdbserver/regcache.h: New file.
10688
10689 * gdbserver/low-linux.c: Removed obsolete file.
10690
10691 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
10692
10693 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
10694 * config/i386/linux.mt: Likewise.
10695 * config/ia64/linux.mt: Likewise.
10696 * config/m68k/linux.mh: Likewise.
10697 * config/powerpc/linux.mh: Likewise.
10698 * config/mips/linux.mt: Likewise.
10699
10700 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
10701
10702 * config/i386/i386lynx.mh: Mark gdbserver variables
10703 as (currently) obsolete for this target.
10704 * config/i386/nbsd.mt: Likewise.
10705 * config/i386/nbsdelf.mt: Likewise.
10706 * config/m32r/m32r.mt: Likewise.
10707 * config/m68k/m68klynx.mh: Likewise.
10708 * config/m68k/nbsd.mt: Likewise.
10709 * config/m68k/sun3os4.mh: Likewise.
10710 * config/mips/vr5000.mt: Likewise.
10711 * config/ns32k/nbsd.mt: Likewise.
10712 * config/pa/hppabsd.mh: Likewise.
10713 * config/pa/hppaosf.mh: Likewise.
10714 * config/powerpc/nbsd.mt: Likewise.
10715 * config/rs6000/rs6000lynx.mh: Likewise.
10716 * config/s390/s390.mt: Likewise.
10717 * config/s390/s390x.mt: Likewise.
10718 * config/sparc/sparclynx.mh: Likewise.
10719 * config/sparc/sun4os4.mh: Likewise.
10720 * config/i386/x86-64linux.mt: Likewise.
10721 * config/sparc/linux.mh: Likewise.
10722
10723 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
10724
10725 * configure.tgt: Configure gdbserver only for known working
10726 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
10727 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
10728 SUBDIRS if it is configured. Update comment for ${nativefile}.
10729 * configure: Regenerated.
10730
10731 2002-02-13 Michael Snyder <msnyder@redhat.com>
10732
10733 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
10734
10735 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
10736 (default_gcore_mach): Just return 0, work around a problem in bfd.
10737 (default_gcore_target): OK to return NULL if exec_bfd is null.
10738 (make_mem_sec): Use a cast, avoid a warning.
10739
10740 * procfs.c (find_memory_regions_callback): Use a cast instead of
10741 calling host_pointer_to_address (which complains if
10742 sizeof (host pointer) != sizeof (target pointer)).
10743 (procfs_make_note_section): Avoid overflow in psargs string.
10744
10745 * procfs.c (procfs_make_note_section): Make the default
10746 implementation return an error.
10747
10748 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
10749
10750 * procfs.c (procfs_make_note_section): Provide a default definition
10751 (for alpha-dec-osf4.0f). Fix typos.
10752
10753 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
10754
10755 * linux-proc.c: Add include of regcache.h.
10756 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
10757
10758 2002-02-13 Andrew Cagney <ac131313@redhat.com>
10759
10760 From 2002-01-18 Greg McGary <greg@mcgary.org>:
10761 * memattr.c (create_mem_region): Disallow useless empty region.
10762 Regions are half-open intervals, so allow [A..B) [B..C) as
10763 non-overlapping.
10764
10765 2002-02-13 Michael Chastain <mec@shout.net>
10766
10767 * defs.h: Kill CONST_PTR.
10768 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
10769 * c-lang.c (c_builtin_types): Likewise.
10770 * ch-lang.c (ch_builtin_types): Likewise.
10771 * f-lang.c (f_builtin_types): Likewise.
10772 * language.c (unknown_builtin_types): Likewise.
10773 * m2-lang.c (m2_builtin_types): Likewise.
10774 * p-lang.c (pascal_builtin_types): Likewise.
10775 * scm-lang.c (c_builtin_types): Likewise.
10776
10777 2002-02-13 Keith Seitz <keiths@redhat.com>
10778
10779 * arm-tdep.h (arm_get_next_pc): Add declaration.
10780
10781 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
10782
10783 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
10784 with other related struct-returning functions.
10785 (arm_extract_struct_value_address): New function.
10786 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
10787 initialize float_format, double_format and long_double_format as
10788 appropriate to the endianness of the target.
10789 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
10790 (arm_use_struct_convention): Delete declaration.
10791 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
10792
10793 2002-02-13 Keith Seitz <keiths@redhat.com>
10794
10795 * defs.h (core_addr_to_string_nz): New function.
10796
10797 2002-02-13 Mark Kettenis <kettenis@gnu.org>
10798
10799 Apply missing bits of 2002-01-15 patch.
10800 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
10801 (fill_fpregset): Use i387_fill_fsave.
10802
10803 2002-02-12 Keith Seitz <keiths@redhat.com>
10804
10805 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
10806 (core_addr_to_string_nz): New function.
10807
10808 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
10809
10810 * arm-linux-nat.c: Really include arm-tdep.h.
10811 * config/arm/tm-linux.h (struct type, struct value): Declare.
10812
10813 2002-02-11 Michael Snyder <msnyder@redhat.com>
10814
10815 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
10816 (gcore section): Ifdef for Solaris and Unixware only.
10817 (procfs_do_thread_registers): Unixware needs one lwpstatus
10818 per thread (not one prstatus or pstatus).
10819 (procfs_make_note_section): Iterate only over kernel threads (lwps),
10820 not over all gdb threads. For unixware, call elfcore_write_pstatus
10821 once before iterating over threads.
10822
10823 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
10824
10825 * arm-tdep.h: New file.
10826 * arm-tdep.c: Include arm-tdep.h.
10827 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
10828 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
10829 (arm_print_float_info, arm_register_type, convert_to_extended)
10830 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
10831 (arm_extract_return_value, arm_register_name): Make static.
10832 (arm_software_single_step): Similarly. Fix types in declaration.
10833 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
10834 (arm_store_return_value, arm_store_struct_return): New functions.
10835 (arm_gdbarch_init): Register the above functions. Also register
10836 call_dummy_start_offset, sizeof_call_dummy_words,
10837 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
10838 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
10839 max_register_virtual_size, register_size. Set up
10840 prologue_cache.saved_regs here, rather than ...
10841 (_initialize_arm_tdep): ... here.
10842 * config/arm/tm-arm.h (struct type, struct value): Delete forward
10843 declarations.
10844 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
10845 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
10846 (arm_print_float_info, arm_register_type, convert_to_extended)
10847 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
10848 (arm_extract_return_value, arm_register_name): Delete declarations.
10849 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
10850 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
10851 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
10852 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
10853 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
10854 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
10855 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
10856 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
10857 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
10858 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
10859 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
10860 (arm_get_next_pc): No-longer static -- these are needed by the RDI
10861 interface.
10862 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
10863 * remote-rdi.c remote-rdp.c: Likewise.
10864 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
10865 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
10866 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
10867 definition.
10868
10869 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
10870 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
10871 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
10872 from non-ARM_ prefixed definitions.
10873 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
10874 all uses of above.
10875 * remote-rdi.c remote-rdp.c: Likewise.
10876 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
10877
10878 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
10879
10880 * arm-tdep.c (arm_frameless_function_invocation)
10881 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
10882 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
10883 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
10884 (arm_pop_frame, arm_get_next_pc): Make static.
10885 (arm_gdbarch_init): Register above in gdbarch structure.
10886 (arm_read_fp): Renamed from arm_target_read_fp.
10887 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
10888 * config/arm/tm-arm.h (arm_frameless_function_invocation)
10889 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
10890 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
10891 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
10892 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
10893 (arm_pc_is_thumb_dummy): Delete declarations.
10894 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
10895 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
10896 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
10897 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
10898
10899 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
10900
10901 * symtab.c (compare_search_syms): New function.
10902 (sort_search_symbols): New function.
10903 (search_symbols): Sort symbols after searching rather than
10904 before.
10905
10906 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10907
10908 * NEWS: Linux -> GNU/Linux.
10909
10910 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10911
10912 * gdbarch.sh: For for level one methods, disallow a definition
10913 when partially multi-arched. Add comments explaining rationale.
10914 * gdbarch.h: Re-generate.
10915
10916 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10917
10918 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
10919 multi-arch partial.
10920
10921 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10922
10923 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
10924 field. Use diff -u.
10925 * gdbarch.c: Re-generate.
10926
10927 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10928
10929 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
10930 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
10931 partial.
10932
10933 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10934
10935 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
10936 multi-arch partial.
10937 (PUSH_ARGUMENTS): Switch to using predefault.
10938 * gdbarch.c: Regenerate.
10939
10940 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10941
10942 * valops.c (PUSH_ARGUMENTS): Delete definition.
10943 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
10944 partial. Default to default_push_arguments.
10945 * gdbarch.h, gdbarch.c: Regenerate.
10946
10947 2002-02-09 Andrew Cagney <ac131313@redhat.com>
10948
10949 * defs.h (throw_exception): Rename return_to_top_level. Update
10950 comments.
10951 * utils.c (error_stream, internal_verror, quit): Ditto.
10952 * top.c (throw_exception, catcher): Ditto.
10953 * sparclet-rom.c (sparclet_load): Ditto.
10954 * remote.c (interrupt_query, minitelnet): Ditto.
10955 * remote-sds.c (interrupt_query): Ditto.
10956 * remote-mips.c (mips_error, mips_kill): Ditto.
10957 * ocd.c (interrupt_query): Ditto.
10958 * monitor.c (monitor_interrupt_query): Ditto.
10959 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
10960 * target.h: Update comment.
10961
10962 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
10963
10964 2002-02-09 Andrew Cagney <ac131313@redhat.com>
10965
10966 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
10967 default_double_format.
10968 * gdbarch.h, gdbarch.c: Re-generate.
10969 * findvar.c (floatformat_unknown): Delete variable definition.
10970 * doublest.h (floatformat_unknown): Delete variable declaration.
10971
10972 2002-02-09 Jim Blandy <jimb@redhat.com>
10973
10974 * stabsread.c (read_type): Add code to parse Sun's syntax for
10975 prototyped function types.
10976
10977 2002-02-09 Andrew Cagney <ac131313@redhat.com>
10978
10979 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
10980 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
10981
10982 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10983
10984 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
10985 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
10986 now _initialize_xcoffsolib gets called again and overrides the
10987 commands from solib.c in a native configuration.
10988
10989 2002-02-09 Mark Kettenis <kettenis@gnu.org>
10990
10991 * doublest.c (store_typed_floating): Don't try to return a value.
10992 Fixes PR gdb/290.
10993
10994 2002-02-08 Jim Blandy <jimb@redhat.com>
10995
10996 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
10997 is prototyped and has no arguments, print its argument list as
10998 `(void)'.
10999
11000 2002-02-08 Chris Demetriou <cgd@broadcom.com>
11001
11002 * MAINTAINERS (write-after-approval): Add myself.
11003 (paper-trail): I've escaped!
11004
11005 2002-02-08 Christopher Faylor <cgf@redhat.com>
11006
11007 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
11008 changes.
11009 (_initialize_check_for_gdb_ini): Ditto.
11010
11011 2002-02-08 Martin M. Hunt <hunt@redhat.com>
11012
11013 * win32-nat.c (cygwin_pid_to_str): Fix typo.
11014 xaprintf -> xasprintf.
11015
11016 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
11017
11018 * win32-nat.c: Remove use of printf and sprintf functions.
11019
11020 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
11021
11022 * arm-tdep.c (arm_frame_chain_valid): Make static.
11023 (arm_push_arguments): Likewise.
11024 (arm_gdbarch_init): New function.
11025 (_initialize_arm_tdep): Call it.
11026 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
11027 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
11028 (FRAME_CHAIN_VALID): Delete.
11029 (arm_frame_chain_valid): Delete declaration.
11030 (PUSH_ARGUMENTS): Delete.
11031 (arm_push_arguments): Delete declaration.
11032 (CALL_DUMMY_P): Delete.
11033
11034 2002-02-08 Andrew Cagney <ac131313@redhat.com>
11035 Corinna Vinschen <vinschen@redhat.com>
11036
11037 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
11038 on builtin float types.
11039
11040 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
11041
11042 * utils.c: Include <curses.h> before "bfd.h".
11043 * tui/tui-hooks.c: Likewise.
11044 * tui/tui.c: Likewise.
11045 * tui/tuiCommand.c: Likewise.
11046 * tui/tuiData.c: Likewise.
11047 * tui/tuiDataWin.c: Likewise.
11048 * tui/tuiDisassem.c: Likewise.
11049 * tui/tuiGeneralWin.c: Likewise.
11050 * tui/tuiIO.c: Likewise.
11051 * tui/tuiLayout.c: Likewise.
11052 * tui/tuiRegs.c: Likewise.
11053 * tui/tuiSource.c: Likewise.
11054 * tui/tuiSourceWin.c: Likewise.
11055 * tui/tuiStack.c: Likewise.
11056 * tui/tuiWin.c: Likewise.
11057
11058 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
11059
11060 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
11061 to include space for pseudoregs as well. Update loops accordingly.
11062 (sh_fp_frame_init_saved_regs): Ditto.
11063 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
11064
11065 2002-02-07 Andrew Cagney <ac131313@redhat.com>
11066
11067 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
11068 Add Richard Earnshaw to Arm maintainers.
11069
11070 2002-02-07 Andrew Cagney <ac131313@redhat.com>
11071
11072 * defs.h (warning_begin): Delete declaration.
11073
11074 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
11075 Delete macro.
11076
11077 2002-02-07 Michael Snyder <msnyder@redhat.com>
11078
11079 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
11080 Logic bug, remove misplaced else.
11081
11082 2002-02-07 Klee Dienes <klee@apple.com>
11083
11084 * fork-inferior.c (fork_inferior): Add '!' to the list of
11085 characters that need to be quoted when building a string for the
11086 shell. Quote '!' specifically with a backslash, since CSH chokes
11087 when trying to evaluate "str!str".
11088
11089 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
11090
11091 * rdi-share/host.h: Only provide a typedef for bool if it is not
11092 defined.
11093
11094 2002-02-04 Michael Snyder <msnyder@redhat.com>
11095
11096 * breakpoint.h (enum bptype): Add new overlay event bp type.
11097 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
11098
11099 * breakpoint.c (create_internal_breakpoint): New function.
11100 (internal_breakpoint_number): Moved into create_internal_breakpoint.
11101 (create_longjmp_breakpoint): Use create_internal_breakpoint.
11102 (create_thread_event_breakpoint): Ditto.
11103 (create_solib_event_breakpoint): Ditto.
11104 (create_overlay_event_breakpoint): New function.
11105 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
11106 (update_breakpoints_after_exec): Delete and re-initialize
11107 overlay event breakpoints after an exec. Add FIXME comment
11108 about longjmp breakpoint.
11109 (print_it_typical): Ignore overlay event breakpoints.
11110 (print_one_breakpoint): Ditto.
11111 (mention): Ditto.
11112 (bpstat_what): Do not stop for overlay event breakpoints.
11113 (delete_breakpoint): Don't delete overlay event breakpoints.
11114 (breakpoint_re_set_one): Delete the overlay event breakpoint.
11115 (breakpoint_re_set): Re-create overlay event breakpoint.
11116
11117 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
11118 (overlay_manual_command): Disable overlay breakpoints.
11119 (overlay_off_command): Disable overlay breakpoints.
11120
11121 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
11122
11123 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
11124 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
11125 to here from config/tm-arm.h.
11126 (coff_sym_is_thumb): Make static.
11127 (arm_elf_make_msymbol_special): New function.
11128 (arm_coff_make_msymbol_special): New function.
11129 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
11130 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
11131 (coff_sym_is_thumb): Delete declaration.
11132 (arm_elf_make_msymbol_special): Declare.
11133 (arm_coff_make_msymbol_special): Declare.
11134 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
11135 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
11136
11137 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
11138
11139 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
11140
11141 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
11142
11143 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
11144 * gdbarch.c gdbarch.h: Regenerate.
11145 * arch-utils.c (default_print_float_info): New function.
11146 * arch-utils.h (default_print_float_info): Prototype it.
11147 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
11148 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
11149 (PRINT_FLOAT_INFO): Document it.
11150
11151 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
11152 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
11153 (PRINT_FLOAT_INFO): Define.
11154
11155 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
11156
11157 * win32-nat.c (_initialize_check_for_gdb_ini):
11158 Add typecast to sprintf argument to suppress a warning.
11159
11160 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
11161
11162 * win32-nat.c (last_sig): Changed type of variable to target_signal,
11163 to allow easier handling of pass state.
11164 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
11165 that gives exception name and address.
11166 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
11167 and set last_sig value to ourstatus->value.sig. Some missing
11168 exceptions added.
11169 (child_continue): Correctly report continue_status.
11170 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
11171 TARGET_SIGNAL_0 (new default value).
11172 (child_resume): consider sig argument passed to decide if
11173 the exception should be passed to debuggee or not.
11174
11175 2002-02-05 Michael Snyder <msnyder@redhat.com>
11176
11177 * regcache.c (fetch_register): Call target_fetch_register
11178 only if we don't call FETCH_PSEUDO_REGISTER.
11179 (store_register): Call target_store_register only if we
11180 don't call STORE_PSEUDO_REGISTER.
11181
11182 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
11183
11184 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
11185 ELF_MAKE_MSYMBOL_SPECIAL.
11186 * gdbarch.c, gdbarch.h: Regenerate.
11187 * arch-utils.c (default_make_msymbol_special): New function.
11188 * arch-utils.h (default_make_msymbol_special): Export.
11189 * elfread.c (elf_symtab_read): Compile use of
11190 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
11191 multiarched.
11192 * coffread.c (coff_symtab_read): Ditto, for
11193 COFF_MAKE_MSYMBOL_SPECIAL.
11194
11195 2002-02-05 Jim Blandy <jimb@redhat.com>
11196
11197 * solib-svr4.c (svr4_truncate_ptr): New function.
11198 (svr4_relocate_section_addresses): Do the address arithmetic with
11199 the appropriate truncation for target addresses, even when
11200 CORE_ADDR is larger than a target address.
11201
11202 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
11203
11204 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
11205 to (int *).
11206
11207 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
11208
11209 * gdbserver/linux-low.c (kill_inferior): Remove commented out
11210 code.
11211
11212 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
11213
11214 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
11215
11216 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
11217
11218 * gdbserver/linux-low.c: Remove unused include files.
11219
11220 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
11221
11222 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
11223 (read_inferior_memory): Use it.
11224 (write_inferior_memory): Likewise.
11225
11226 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
11227
11228 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
11229 grubbing through sys_errlist.
11230
11231 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
11232
11233 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
11234
11235 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
11236 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
11237
11238 2002-02-04 Andrew Cagney <ac131313@redhat.com>
11239
11240 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
11241 (do_sfunc, set_cmd_sfunc): New functions.
11242
11243 * command.h (struct cmd_list_element): Add field func.
11244 * cli/cli-decode.h (struct cmd_list_element): Ditto.
11245 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
11246 * cli/cli-decode.h: Ditto.
11247
11248 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
11249 (help_all, help_cmd_list): Ditto.
11250 (find_cmd, complete_on_cmdlist): Ditto.
11251 * top.c (execute_command): Ditto.
11252
11253 * cli/cli-setshow.c (do_setshow_command): Call func instead of
11254 function.sfunc.
11255
11256 * infcmd.c (notice_args_read): Fix function signature.
11257
11258 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
11259 * cli/cli-decode.c (add_set_cmd): Ditto.
11260 * utils.c (initialize_utils): Ditto.
11261 * maint.c (_initialize_maint_cmds): Ditto.
11262 * infrun.c (_initialize_infrun): Ditto.
11263 * demangle.c (_initialize_demangler): Ditto.
11264 * remote.c (add_packet_config_cmd): Ditto.
11265 * mips-tdep.c (_initialize_mips_tdep): Ditto.
11266 * cris-tdep.c (_initialize_cris_tdep): Ditto.
11267 * proc-api.c (_initialize_proc_api): Ditto.
11268 * kod.c (_initialize_kod): Ditto.
11269 * valprint.c (_initialize_valprint): Ditto.
11270 * top.c (init_main): Ditto.
11271 * infcmd.c (_initialize_infcmd): Ditto.
11272 * corefile.c (_initialize_core): Ditto.
11273 * arm-tdep.c (_initialize_arm_tdep): Ditto.
11274 * arch-utils.c (initialize_current_architecture): Ditto.
11275 (_initialize_gdbarch_utils): Ditto.
11276 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
11277
11278 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
11279 * wince.c (_initialize_inftarg): Ditto.
11280 * symfile.c (_initialize_symfile): Ditto.
11281 * mips-tdep.c (_initialize_mips_tdep): Ditto.
11282 * language.c (_initialize_language): Ditto.
11283 * arc-tdep.c (_initialize_arc_tdep): Ditto.
11284
11285 2002-02-04 Michael Snyder <msnyder@redhat.com>
11286
11287 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
11288
11289 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
11290
11291 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
11292 Add rules for building the register data files.
11293
11294 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
11295
11296 * regformats/regdat.sh: Add braces to the definition of
11297 expedite_regs_${arch}.
11298
11299 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
11300
11301 * regformats/regdef.h (struct reg): Add comment describing the
11302 requirements for offset and size fields.
11303
11304 2002-02-04 Andreas Schwab <schwab@suse.de>
11305
11306 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
11307 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
11308
11309 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
11310
11311 * gdbarch.sh (copyright): Update years in generated header.
11312 (SMASH_TEXT_ADDRESS): Add rule.
11313 * gdbarch.h, gdbarch.c: Re-generate.
11314 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
11315 * dbxread.c: Likewise.
11316 * dwarfread.c: Likewise.
11317 * elfread.c: Likewise.
11318 * somread.c: Likewise.
11319
11320 * arm-tdep.c (arm_smash_text_address): New function.
11321 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
11322
11323 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
11324
11325 Add support for hardware watchpoints on win32 native.
11326 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
11327 CONTEXT_DEBUG_REGISTERS.
11328 (dr variable): New variable. Static array containing a local copy
11329 of debug registers.
11330 (debug_registers_changed): New variable. Reflects when debug registers
11331 are changed and need to be written to inferior.
11332 (debug_registers_used): New variable. Reflects when any debug register
11333 was set, used when new threads are created.
11334 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
11335 i386-nat code.
11336 (thread_rec): Set dr array if id is the thread of current_event .
11337 (child_continue, child_resume): Change the debug registers for all
11338 threads if debug_registers_changed.
11339 (child_add_thread): Change the debug registers if debug_registers_used.
11340 * config/i386/cygwin.mh: Add use of i386-nat.o file.
11341 Link nm.h to new nm-cygwin.h file.
11342 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
11343 of hardware registers.
11344
11345 2002-02-03 Andrew Cagney <ac131313@redhat.com>
11346
11347 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
11348 Restore behavour broken by 2002-01-20 Andrew Cagney
11349 <ac131313@redhat.com> IEEE_FLOAT removal.
11350
11351 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
11352
11353 * c-valprint.c (c_val_print): Pass a proper valaddr to
11354 cp_print_class_method.
11355 * valops.c (search_struct_method): If there is only one method
11356 and args is NULL, return that method.
11357
11358 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
11359
11360 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
11361 accessing tag_name directly.
11362
11363 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
11364
11365 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
11366 of accessing tag_name directly.
11367
11368 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
11369
11370 PR gdb/280
11371 * gdbtypes.c (replace_type): New function.
11372 * gdbtypes.h (replace_type): Add prototype.
11373 * stabsread.c (read_type): Use replace_type.
11374
11375 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
11376
11377 * Makefile.in (memattr.o): Add missing dependencies rule.
11378
11379 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11380
11381 * breakpoint.c (break_at_finish_command): Really export.
11382 (break_at_finish_at_depth_command): Ditto.
11383 (tbreak_at_finish_command): Ditto.
11384 * hppa-tdep.c: Include completer.h.
11385 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
11386 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
11387
11388 2002-02-01 Andrew Cagney <ac131313@redhat.com>
11389
11390 * utils.c (do_write): New function.
11391 (error_stream): Rewrite combining the code from error_begin and
11392 verror.
11393 (verror): Rewrite using error_stream.
11394 (error_begin): Delete function.
11395
11396 2002-02-01 Andrew Cagney <ac131313@redhat.com>
11397
11398 * utils.c (error_begin): Make static.
11399 * defs.h (error_begin): Delete declaration.
11400
11401 * linespec.c (cplusplus_error): Replace cplusplus_hint.
11402 (decode_line_1): Use cplusplus_error instead of error_begin,
11403 cplusplus_hint and return_to_top_level.
11404 * coffread.c (coff_symfile_read): Use error instead of error_begin
11405 and return_to_top_level.
11406 * infrun.c (default_skip_permanent_breakpoint): Ditto.
11407
11408 2002-02-01 Andrew Cagney <ac131313@redhat.com>
11409
11410 * language.h (type_error, range_error): Make string parameter
11411 constant.
11412 * language.c (warning_pre_print): Delete extern declaration.
11413 * dwarfread.c (warning_pre_print): Ditto.
11414 * language.c (type_error, range_error): Rewrite to use verror and
11415 vwarning instead of warning_begin.
11416
11417 2002-02-01 Michael Snyder <msnyder@redhat.com>
11418
11419 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
11420 (set_ignore_count): Move misplaced comment back where it belongs.
11421
11422 2002-02-01 Andrew Cagney <ac131313@redhat.com>
11423
11424 * command.h (NO_FUNCTION): Delete macro.
11425 * cli/cli-decode.h (NO_FUNCTION): Ditto.
11426 * top.c (execute_command): Replace NO_FUNCTION with NULL.
11427 * tracepoint.c (_initialize_tracepoint): Ditto.
11428 * cli/cli-decode.c (add_set_cmd): Ditto.
11429 * cli/cli-cmds.c (init_cli_cmds): Ditto.
11430
11431 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
11432
11433 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
11434 Update ``this'' pointer when calling virtual functions.
11435
11436 2002-02-01 Michael Snyder <msnyder@redhat.com>
11437
11438 * breakpoint.c (create_temp_exception_breakpoint): Delete.
11439 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
11440
11441 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
11442
11443 * regformats/reg-arm.dat: New file.
11444 * regformats/reg-i386.dat: New file.
11445 * regformats/reg-ia64.dat: New file.
11446 * regformats/reg-m68k.dat: New file.
11447 * regformats/reg-mips.dat: New file.
11448 * regformats/reg-ppc.dat: New file.
11449 * regformats/reg-sh.dat: New file.
11450 * regformats/regdef.h: New file.
11451 * regformats/regdat.sh: New file.
11452
11453 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
11454
11455 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
11456 (arm_frame_args_address, arm_frame_locals_address): New functions.
11457 (arm_frame_num_args): New function.
11458 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
11459 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
11460 (FRMA_NUM_ARGS): Call arm_frame_num_args.
11461
11462 2002-01-31 Michael Snyder <msnyder@redhat.com>
11463
11464 * breakpoint.c (break_at_finish_command): Export.
11465 (break_at_finish_at_depth_command): Export.
11466 (tbreak_at_finish_command): Export.
11467 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
11468 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
11469 "txbreak" commands, which are HPPA specific.
11470
11471 * printcmd.c (disassemble_command): Remove an ancient
11472 artifact of an old merge.
11473
11474 * symfile.h (enum overlay_debugging_state):
11475 Define enum constant values for overlay mode.
11476 * symfile.c (overlay_debugging): Use enums instead of literals.
11477 (overlay_is_mapped, overlay_auto_command,
11478 overlay_manual_command): Ditto.
11479
11480 * breakpoint.c (insert_breakpoints, remove_breakpoint,
11481 breakpoint_here_p, breakpoint_inserted_here_p,
11482 breakpoint_thread_match, bpstat_stop_status,
11483 describe_other_breakpoints, check_duplicates, clear_command):
11484 Coding standard fixes.
11485
11486 * target.c (target_xfer_memory): Add spaces, coding standard.
11487 (do_xfer_memory): Add missing line to trust-readonly
11488 code: check bfd SEC_READONLY flag for section.
11489
11490 2002-01-31 Andrew Cagney <ac131313@redhat.com>
11491
11492 * PROBLEMS: Fix typo, 5.1->5.1.1.
11493
11494 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
11495
11496 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
11497 data symbols, since we search based on textlow and texthigh.
11498 (find_pc_sect_symtab): Likewise.
11499
11500 2002-01-30 Andrew Cagney <ac131313@redhat.com>
11501
11502 * defs.h (vwarning): Declare.
11503 * utils.c (vwarning): New function.
11504 (warning): Call vwarning.
11505 (warning_begin): Delete function.
11506
11507 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
11508 the warning message.
11509 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
11510 warning_begin.
11511
11512 2002-01-30 Michael Snyder <msnyder@redhat.com>
11513
11514 * NEWS: Mention "set trust-readonly-sections" command.
11515 Mention generate-core-file command.
11516
11517 2002-01-15 Michael Snyder <msnyder@redhat.com>
11518
11519 * target.c: New command, "set trust-readonly-sections on".
11520 (do_xfer_memory): Honor the suggestion to trust readonly sections
11521 by reading them from the object file instead of from the target.
11522 (initialize_targets): Register command "set trust-readonly-sections".
11523
11524 2002-01-29 Andrew Cagney <ac131313@redhat.com>
11525
11526 * parse.c (target_map_name_to_register): Simplify, search regs and
11527 pseudo-regs using a single loop.
11528
11529 2002-01-30 Andrew Cagney <ac131313@redhat.com>
11530
11531 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
11532
11533 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
11534
11535 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
11536 * config/i386/i386v42mp.mh: Add i387-nat.o .
11537 * i386v4-nat.c: Include i387-nat.h.
11538 (supply_fpregset): Use i387_supply_fsave.
11539 (fill_fpregset): Use i387_fill_fsave.
11540
11541 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
11542
11543 * arm-tdep.c (arm_call_dummy_words): Define.
11544 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
11545 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
11546 (CALL_DUMMY_WORDS): Define.
11547 (arm_call_dummy_words): Declare.
11548 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
11549 (arm_linux_call_dummy_words): Declare.
11550
11551 2002-01-30 Andreas Schwab <schwab@suse.de>
11552
11553 * m68klinux-nat.c: Fix last change to use regcache_collect
11554 instead of referencing registers[] directly.
11555
11556 2002-01-29 Andrew Cagney <ac131313@redhat.com>
11557
11558 * parse.c (target_map_name_to_register): Delete code wrapped in
11559 #ifdef REGISTER_NAME_ALIAS_HOOK.
11560
11561 2002-01-28 Michael Snyder <msnyder@redhat.com>
11562
11563 * regcache.c (legacy_read_register_gen): Need to be able to
11564 read pseudo-register as well as real register.
11565 (legacy_write_register_gen): Ditto.
11566
11567 2002-01-28 Andrew Cagney <ac131313@redhat.com>
11568
11569 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
11570 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
11571 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
11572 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
11573 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
11574 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
11575 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
11576 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
11577 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
11578 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
11579 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
11580 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
11581 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
11582 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
11583 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
11584 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
11585 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
11586 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
11587 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
11588 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
11589
11590 2002-01-28 Andrew Cagney <ac131313@redhat.com>
11591
11592 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
11593 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
11594 (initialize_current_architecture): Update target_byte_order using
11595 information from BFD.
11596 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
11597 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
11598
11599 2002-01-28 Andrew Cagney <ac131313@redhat.com>
11600
11601 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
11602 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
11603
11604 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
11605 #ifdef INVALID_FLOAT.
11606 * infcmd.c (do_registers_info): Ditto.
11607 * values.c (unpack_double): Ditto. Add comment.
11608
11609 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
11610 already commented out.
11611
11612 2002-01-26 Andreas Schwab <schwab@suse.de>
11613
11614 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
11615 * m68klinux-nat.c: Update ptrace interface for fetching/storing
11616 registers and add support for PTRACE_GETREGS.
11617
11618 2002-01-24 Andrew Cagney <ac131313@redhat.com>
11619
11620 GDB 5.1.1 released from 5.1 branch.
11621 * NEWS: Add 5.1.1 news.
11622 * README: Sync with 5.1 branch.
11623
11624 2002-01-23 Fred Fish <fnf@redhat.com>
11625
11626 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
11627 stabstring on initial malloc. Reallocing will copy it for us,
11628 if necessary.
11629
11630 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
11631
11632 * Makefile.in (hpread_h): Delete.
11633 (HFILES_NO_SRCDIR): Remove hpread.h.
11634 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
11635 (hpread.o): Update dependencies.
11636 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
11637
11638 * hp-psymtab-read.c: Remove file.
11639 * hp-symtab-read.c: Remove file.
11640 * hpread.h: Remove file.
11641
11642 * hpread.c: Merge all contents of hp-psymtab-read.c,
11643 hp-symtab-read.c and hpread.h into this file, as it was prior to
11644 January 1999.
11645
11646 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
11647 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
11648 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
11649 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
11650
11651 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
11652
11653 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
11654 fill_gregset): Call gdbarch_tdep() just once, assign result to
11655 variable and use that, instead of calling the function several
11656 times.
11657
11658 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
11659
11660 * configure.host: Accept sparcv9 as alias for sparc64.
11661 * configure.tgt: Likewise.
11662
11663 2002-01-22 Kevin Buettner <kevinb@redhat.com>
11664
11665 * solib-aix5.c (build_so_list_from_mapfile)
11666 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
11667 arguments is not reversed.
11668 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
11669 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
11670
11671 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
11672
11673 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
11674 modified version of obsolete sh_fetch_pseudo_register.
11675 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
11676 (sh4_register_read): New function.
11677 (sh_pseudo_register_write): New function. Renamed and modified
11678 version of obsolete sh_store_pseudo_register.
11679 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
11680 (sh4_register_write): New function.
11681 (sh_gdbarch_init): Remove setting of gdbarch function
11682 fetch_pseudo_register and store_pseudo_register. Remove setting of
11683 register_convert_to_raw, register_convert_to_virtual,
11684 register_convertible.
11685 (sh_sh4_register_convertible): Delete. No longer needed. All is
11686 taken care by architecture specific functions
11687 register_read/register_write.
11688 (sh_sh4_register_convert_to_virtual): Make static.
11689 (sh_sh4_register_convert_to_raw): Ditto.
11690
11691 2002-01-22 Andrew Cagney <ac131313@redhat.com>
11692
11693 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
11694 (floatformat_is_nan, floatformat_mantissa): Ditto.
11695
11696 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
11697 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
11698 builtin_type_ieee_double_little,
11699 builtin_type_ieee_double_littlebyte_bigword,
11700 builtin_type_m68881_ext, builtin_type_i960_ext,
11701 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
11702 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
11703 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
11704 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
11705
11706 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
11707
11708 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
11709 parameter. Set frameless flag if it exists and depended of
11710 whether the scanned function is frameless or not.
11711 (xstormy16_skip_prologue): If function is frameless, return
11712 result of xstormy16_scan_prologue().
11713 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
11714 call.
11715
11716 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
11717
11718 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
11719 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
11720 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
11721 sh_sh4_register_byte, sh_sh4_register_raw_size,
11722 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
11723 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
11724 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
11725 sh_store_pseudo_register, sh_do_pseudo_register): Call
11726 gdbarch_tdep() just once, assign result to variable and use that,
11727 instead of calling the function several times.
11728
11729 2002-01-20 Mark Kettenis <kettenis@gnu.org>
11730
11731 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
11732 macros instead of LAST_FPU_CTRL_REGNUM.
11733 (store_register): Likewise.
11734
11735 2002-01-21 Jim Blandy <jimb@redhat.com>
11736
11737 * infcmd.c (run_command): Check that the `exec' target layer's BFD
11738 is up-to-date before running the program, not just when a program
11739 exits.
11740
11741 2002-01-21 Fred Fish <fnf@redhat.com>
11742
11743 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
11744 when we have found all instructions we are looking for.
11745
11746 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
11747
11748 * arm-tdep.c (arm_register_name): New function.
11749 (arm_registers_names): Make static.
11750 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
11751 (arm_register_name): Declare.
11752 (REGISTER_NAME): Use it.
11753
11754 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
11755 Kevin Buettner <kevinb@redhat.com>
11756
11757 Convert arm targets to new FRAME interface.
11758 * arm-tdep.c (struct frame_extra_info): Remove fsr.
11759 (arm_frame_find_save_regs): Delete.
11760 (arm_frame_init_saved_regs): New.
11761 (arm_init_extra_frame_info): Alloacte saved_regs as required.
11762 Allocate extra_info as required. Convert all uses of fsr.regs
11763 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
11764 to use extra_info.
11765 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
11766 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
11767 (check_prologue_cache, save_prologue_cache): Likewise.
11768 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
11769 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
11770 (FRAME_FIND_SAVED_REGS): Delete.
11771 (arm_frame_find_saved_regs): Delete prototype.
11772 (arm_frame_init_saved_regs): New prototype.
11773 (FRAME_INIT_SAVED_REGS): Define.
11774
11775 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11776
11777 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
11778
11779 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11780
11781 From Jeff Law <law@redhat.com>:
11782 * infttrace.c: Include <sys/pstat.h>.
11783 (child_pid_to_exec_file): Revamp. Use pstat call to get the
11784 exec file if the ttrace equivalent fails.
11785
11786 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11787
11788 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
11789 (closeLogFile): Ditto.
11790
11791 2002-01-20 Michael Chastain <mec@shout.net>
11792
11793 * top.c (print_gdb_version): Bump copyright year to 2002.
11794
11795 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11796
11797 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
11798 Zannoni and Eli Zaretskii.
11799
11800 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
11801
11802 * buildsym.c: Update copyright years.
11803 * c-typeprint.c: Likewise.
11804 * dwarf2read.c: Likewise.
11805 * f-typeprint.c: Likewise.
11806 * gdbtypes.c: Likewise.
11807 * gdbtypes.h: Likewise.
11808 * hp-symtab-read.c: Likewise.
11809 * hpread.c: Likewise.
11810 * mdebugread.c: Likewise.
11811 * p-typeprint.c: Likewise.
11812
11813 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11814
11815 * remote-sim.c (gdbsim_open): Simplify code testing the macro
11816 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
11817 byte-order selectable.
11818 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
11819 * arch-utils.c: Ditto.
11820 (set_endian): Ditto.
11821 (set_endian_from_file): Ditto.
11822 * gdbserver/low-sim.c (create_inferior): Ditto.
11823 * gdbarch.sh: Ditto.
11824 * gdbarch.h: Re-generate.
11825 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11826 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
11827 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
11828 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11829 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11830 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11831 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
11832 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
11833 macro definition.
11834 * config/mips/tm-wince.h: Remove #undef of macro
11835 TARGET_BYTE_ORDER_SELECTABLE.
11836 * config/sh/tm-wince.h: Ditto.
11837
11838 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
11839
11840 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
11841 member function fields. Add accessor macro
11842 TYPE_FN_FIELD_ARTIFICIAL.
11843 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
11844 * c-typeprint.c (c_type_print_base): Skip artificial member
11845 functions.
11846
11847 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
11848
11849 * f-typeprint.c: Delete unused function f_type_print_args.
11850 * p-typeprint.c: Delete unused function pascal_type_print_args.
11851
11852 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
11853
11854 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
11855 comment. Add ``artificial'' to ``union field_location''.
11856
11857 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
11858
11859 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
11860 * mdebugread.c (parse_symbol): Likewise.
11861 * stabsread.c (define_symbol): Likewise.
11862 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
11863 initializing TYPE_FIELD_BITPOS to n (obsolete).
11864 (hpread_doc_function_type): Likewise.
11865 * hpread.c (hpread_function_type): Likewise.
11866
11867 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11868
11869 * configure.in (host_makefile_frag): Only require a host makefile
11870 fragment when a native build.
11871 * configure: Re-generate.
11872
11873 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11874
11875 * doublest.h (floatformat_from_type): Declare.
11876 * doublest.c (floatformat_from_type): New function.
11877 (convert_typed_floating): Use.
11878
11879 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
11880 call to function floatformat_from_type.
11881
11882 * gdbarch.sh (IEEE_FLOAT): Delete.
11883 * gdbarch.h, gdbarch.c: Re-generate.
11884 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
11885 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
11886 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
11887 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
11888 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
11889 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
11890 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
11891 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
11892 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
11893 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
11894 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
11895 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
11896
11897 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
11898 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
11899 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
11900 * sh-tdep.c (sh_gdbarch_init): Ditto.
11901 * mips-tdep.c (mips_gdbarch_init): Ditto.
11902 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11903 * cris-tdep.c (cris_gdbarch_init): Ditto.
11904
11905 2002-01-20 Jiri Smid <smid@suse.cz>
11906
11907 * configure.host, configure.tgt: Support x86-64.
11908 * NEWS: Note new target x86-64.
11909
11910 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
11911 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
11912 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
11913 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
11914 x86-64-linux-nat.o): Fix dependencies.
11915
11916 2002-01-19 Andrew Cagney <ac131313@redhat.com>
11917
11918 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
11919 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
11920 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
11921 * config/sparc/xm-sun4os4.h: Delete file.
11922 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
11923
11924 2002-01-19 Andrew Cagney <ac131313@redhat.com>
11925
11926 * config/sparc/sparclynx.mh (XM_FILE): Delete.
11927 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
11928 * config/m68k/m68klynx.mh (XM_FILE): Delete.
11929 * config/i386/i386lynx.mh (XM_FILE): Delete.
11930 * config/rs6000/xm-rs6000ly.h: Delete file.
11931 * config/sparc/xm-sparclynx.h: Delete file.
11932 * config/m68k/xm-m68klynx.h: Delete file.
11933 * config/i386/xm-i386lynx.h: Delete file.
11934 * config/xm-lynx.h: Delete file.
11935 * config/djgpp/fnchange.lst: Update.
11936
11937 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11938
11939 * alpha-tdep.c (alpha_register_byte): New function.
11940 (alpha_register_raw_size): Ditto.
11941 (alpha_register_virtual_size): Ditto.
11942 (alpha_skip_prologue_internal): Renamed from
11943 alpha_skip_prologue.
11944 (alpha_skip_prologue): New version that calls
11945 alpha_skip_prologue_internal.
11946 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
11947 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
11948 second argument from alpha_skip_prologue.
11949 (REGISTER_BYTE): Use alpha_register_byte.
11950 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
11951 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
11952 (FRAMELESS_FUNCTION_INVOCATION): Use
11953 generic_frameless_function_invocation_not.
11954 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
11955 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
11956
11957 2002-01-19 Andrew Cagney <ac131313@redhat.com>
11958
11959 * config/mips/xm-news-mips.h: Delete file.
11960 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
11961
11962 * config/m88k/xm-m88k.h: Delete file.
11963 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
11964 * config/m88k/xm-delta88v4.h: Ditto.
11965 * config/m88k/xm-delta88.h: Ditto.
11966
11967 * config/alpha/xm-fbsd.h: Delete file.
11968 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
11969
11970 * config/sparc/xm-sparc.h: Delete file.
11971 * Makefile.in (xm-sun4os4.h): Delete dependency.
11972 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
11973 * config/sparc/xm-sun4os4.h: Ditto.
11974 * config/sparc/xm-linux.h: Ditto.
11975
11976 * config/i386/xm-windows.h: Delete file.
11977
11978 2002-01-19 Andrew Cagney <ac131313@redhat.com>
11979
11980 * utils.c: Include <sys/param.h> for MAXPATHLEN.
11981 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
11982
11983 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11984
11985 * alpha-tdep.c (alpha_call_dummy_words): New.
11986 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
11987 (CALL_DUMMY_P): Define.
11988 (CALL_DUMMY_WORDS): Define.
11989 (SIZEOF_CALL_DUMMY_WORDS): Define.
11990
11991 2002-01-19 Per Bothner <per@bothner.com>
11992
11993 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
11994 isn't NULL, which can happen with some gcj-3.x-produced code.
11995
11996 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11997
11998 * alpha-tdep.c (alpha_register_virtual_type): New function.
11999 (alpha_init_frame_pc_first): Ditto.
12000 (alpha_fix_call_dummy): Ditto.
12001 (alpha_store_struct_return): Ditto.
12002 (alpha_extract_struct_value_address): Ditto.
12003 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
12004 alpha_register_virtual_type.
12005 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
12006 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
12007 alpha_extract_struct_value_address.
12008 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
12009 (INIT_FRAME_PC): Use init_frame_pc_noop.
12010 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
12011
12012 2002-01-19 Mark Kettenis <kettenis@gnu.org>
12013
12014 * i386gnu-nat.c: Include "i386-tdep.h".
12015 (fetch_fpregs): Simplify code dealing with uninitialized floating
12016 point states such that it doesn't require FP7_REGNUM.
12017
12018 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
12019
12020 * alpha-tdep.c (frame_extra_info): New.
12021 (alpha_find_saved_regs): Make static. Use
12022 frame->extra_info.
12023 (alpha_frame_init_saved_regs): New function.
12024 (alpha_frame_saved_pc): Use frame->extra_info.
12025 (temp_saved_regs): Don't declare as struct frame_saved_regs.
12026 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
12027 (init_extra_frame_info): Rename to...
12028 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
12029 (alpha_print_extra_frame_info): New function.
12030 (alpha_frame_locals_address): Ditto.
12031 (alpha_frame_args_address): Ditto.
12032 (alpha_pop_frame): Use frame->extra_info.
12033 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
12034 alpha_frame_args_address.
12035 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
12036 (alpha_find_saved_regs): Remove prototype.
12037 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
12038 (EXTRA_FRAME_INFO): Remove.
12039 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
12040 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
12041
12042 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
12043
12044 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
12045 (alpha_cannot_fetch_register): Ditto.
12046 (alpha_cannot_store_register): Ditto.
12047 (alpha_register_convertible): Ditto.
12048 (alpha_use_struct_convention): Ditto.
12049 * config/alpha/tm-alpha.h: Update copyright years.
12050 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
12051 (INNER_THAN): Use core_addr_lessthan.
12052 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
12053 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
12054 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
12055 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
12056 (FRAME_CHAIN): Remove unnecessary cast.
12057
12058 2002-01-18 Andrew Cagney <ac131313@redhat.com>
12059
12060 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
12061 obsolete.
12062
12063 2002-01-18 Andrew Cagney <ac131313@redhat.com>
12064
12065 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
12066 * monitor.c, remote-array.c, remote-bug.c: Ditto.
12067 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
12068 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
12069 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
12070 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
12071 * x86-64-linux-nat.c: Ditto.
12072
12073 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
12074
12075 * alpha-tdep.c (alpha_register_name): New function.
12076 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
12077 (REGISTER_NAME): Define.
12078
12079 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
12080
12081 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
12082
12083 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
12084
12085 * alpha-tdep.c: Update copyright years.
12086 (alpha_next_pc): New function.
12087 (alpha_software_single_step): Ditto.
12088 * config/alpha/tm-alpha.h: Add prototype for
12089 alpha_software_single_step.
12090
12091 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
12092
12093 * alphabsd-nat.c: Update copyright years.
12094 (fill_gregset): Use regcache_collect.
12095 (fill_fpregset): Likewise.
12096 (fetch_inferior_registers): Only fetch integer registers
12097 if requested to do so.
12098 (store_inferior_registers): Only store integer registers
12099 if requested to do so.
12100
12101 2002-01-17 Andrew Cagney <ac131313@redhat.com>
12102
12103 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
12104 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
12105 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
12106 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
12107 * config/alpha/fbsd.mh (XDEPFILES): Delete.
12108 * config/arm/linux.mh (XDEPFILES): Delete.
12109 * config/arm/nbsd.mh (XDEPFILES): Delete.
12110 * config/i386/i386dgux.mh (XDEPFILES): Delete.
12111 * config/i386/i386sol2.mh (XDEPFILES): Delete.
12112 * config/i386/i386m3.mh (XDEPFILES): Delete.
12113 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
12114 * config/i386/i386gnu.mh (XDEPFILES): Delete.
12115 * config/i386/fbsd.mh (XDEPFILES): Delete.
12116 * config/i386/i386bsd.mh (XDEPFILES): Delete.
12117 * config/i386/i386sco5.mh (XDEPFILES): Delete.
12118 * config/i386/i386v4.mh (XDEPFILES): Delete.
12119 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
12120 * config/i386/i386sco4.mh (XDEPFILES): Delete.
12121 * config/i386/i386aix.mh (XDEPFILES): Delete.
12122 * config/i386/go32.mh (XDEPFILES): Delete.
12123 * config/i386/cygwin.mh (XDEPFILES): Delete.
12124 * config/i386/i386lynx.mh (XDEPFILES): Delete.
12125 * config/i386/i386mach.mh (XDEPFILES): Delete.
12126 * config/i386/i386v32.mh (XDEPFILES): Delete.
12127 * config/i386/linux.mh (XDEPFILES): Delete.
12128 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
12129 * config/i386/ncr3000.mh (XDEPFILES): Delete.
12130 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
12131 * config/i386/i386sco.mh (XDEPFILES): Delete.
12132 * config/i386/i386v.mh (XDEPFILES): Delete.
12133 * config/i386/nbsd.mh (XDEPFILES): Delete.
12134 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
12135 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
12136 * config/i386/symmetry.mh (XDEPFILES): Delete.
12137 * config/i386/obsd.mh (XDEPFILES): Delete.
12138 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
12139 * config/ia64/linux.mh (XDEPFILES): Delete.
12140 * config/ia64/aix.mh (XDEPFILES): Delete.
12141 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
12142 * config/m68k/dpx2.mh (XDEPFILES): Delete.
12143 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
12144 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
12145 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
12146 * config/m68k/linux.mh (XDEPFILES): Delete.
12147 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
12148 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
12149 * config/m68k/nbsd.mh (XDEPFILES): Delete.
12150 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
12151 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
12152 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
12153 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
12154 * config/m88k/delta88.mh (XDEPFILES): Delete.
12155 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
12156 * config/m88k/m88k.mh (XDEPFILES): Delete.
12157 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
12158 * config/mips/linux.mh (XDEPFILES): Delete.
12159 * config/mips/irix6.mh (XDEPFILES): Delete.
12160 * config/mips/irix5.mh (XDEPFILES): Delete.
12161 * config/mips/irix4.mh (XDEPFILES): Delete.
12162 * config/mips/irix3.mh (XDEPFILES): Delete.
12163 * config/mips/decstation.mh (XDEPFILES): Delete.
12164 * config/mips/mipsm3.mh (XDEPFILES): Delete.
12165 (NATDEPFILES): Move core-aout.o to here.
12166 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
12167 * config/pa/hpux1020.mh (XDEPFILES): Delete.
12168 * config/pa/hppabsd.mh (XDEPFILES): Delete.
12169 * config/pa/hppahpux.mh (XDEPFILES): Delete.
12170 * config/pa/hpux11w.mh (XDEPFILES): Delete.
12171 * config/pa/hppaosf.mh (XDEPFILES): Delete.
12172 * config/pa/hpux11.mh (XDEPFILES): Delete.
12173 * config/powerpc/aix.mh (XDEPFILES): Delete.
12174 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
12175 * config/powerpc/linux.mh (XDEPFILES): Delete.
12176 * config/romp/rtbsd.mh: Rename XDEPFILES.
12177 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
12178 * config/rs6000/aix4.mh (XDEPFILES): Delete.
12179 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
12180 * config/s390/s390.mh (XDEPFILES): Delete.
12181 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
12182 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
12183 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
12184 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
12185 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
12186 * config/sparc/nbsd.mh (XDEPFILES): Delete.
12187 * config/sparc/linux.mh (XDEPFILES): Delete.
12188 * config/vax/vaxult.mh (XDEPFILES): Delete.
12189 * config/vax/vaxult2.mh (XDEPFILES): Delete.
12190 * Makefile.in (DEPFILES): Remove XDEPFILES.
12191
12192 2002-01-17 Andrew Cagney <ac131313@redhat.com>
12193
12194 * utils.c (internal_verror): Fix comments, default is yes not no.
12195 Update queries to match. Default to quit and dump core.
12196
12197 2002-01-17 Andrew Cagney <ac131313@redhat.com>
12198
12199 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
12200 copyright.
12201 * defs.h, event-top.c, gdbcmd.h: Ditto.
12202 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
12203 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
12204 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
12205 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
12206 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
12207 * mi/mi-main.c:Ditto.
12208
12209 * stack.c, symfile.c: Update copyright.
12210
12211 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
12212
12213 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
12214 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
12215 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
12216 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
12217
12218 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
12219
12220 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
12221 * gdbserver/low-lynx.c (myattach): Likewise.
12222 * gdbserver/low-nbsd.c (myattach): Likewise.
12223 * gdbserver/low-sim.c (myattach): Likewise.
12224 * gdbserver/low-sparc.c (myattach): Likewise.
12225 * gdbserver/low-sun3.c (myattach): Likewise.
12226
12227 * gdbserver/low-linux.c (myattach): New function.
12228
12229 * gdbserver/server.c (attach_inferior): New function.
12230 (main): Handle "--attach".
12231
12232 2002-01-16 Andrew Cagney <ac131313@redhat.com>
12233
12234 * MAINTAINERS (language support): Daniel Jacobwitz is C++
12235 maintainer.
12236
12237 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
12238
12239 * c-typeprint.c (is_type_conversion_operator): Add additional
12240 check for non-conversion operators.
12241
12242 2002-01-15 Michael Snyder <msnyder@redhat.com>
12243
12244 * linux-proc.c: Add "info proc" command, a la procfs.c.
12245 (read_mapping): New function, abstract and re-use code.
12246 (linux_find_memory_regions): Use new func read_mapping.
12247 (linux_info_proc_cmd): New function, implement "info proc".
12248 (_initialize_linux_proc): Add new command "info proc".
12249
12250 2002-01-15 Michael Snyder <msnyder@redhat.com>
12251
12252 * symfile.c (generic_load): Use bfd_map_over_sections method
12253 instead of manipulating bfd structure members directly.
12254 (add_section_size_callback): New function, bfd sections callback
12255 used by generic_load.
12256 (load_sections_callback): New function, bfd sections callback
12257 used by generic_load.
12258
12259 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
12260
12261 [Based on work by Jim Blandy]
12262 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
12263 (builtin_type_vec128): Export.
12264 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
12265 types.
12266 (builtin_type_vec128): New builtin type for 128 bit vector
12267 registers.
12268 (build_gdbtypes): Initialize builtin_type_v16qi and
12269 builtin_type_v8hi. Create the vec128 register builtin type
12270 structure.
12271 (build_builtin_type_vec128): New function.
12272 (_initialize_gdbtypes): Register builtin_type_v16qi and
12273 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
12274 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
12275 AltiVec register to new builtin type.
12276
12277 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
12278
12279 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
12280 to make_cv_type.
12281
12282 2002-01-14 Andrew Cagney <ac131313@redhat.com>
12283
12284 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
12285 CLEAN_UP_REGISTER_VALUE.
12286 * regcache.c (supply_register): Update only call.
12287
12288 2002-01-14 Andrew Cagney <ac131313@redhat.com>
12289
12290 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
12291 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
12292 a29k-*-vxworks* targets as obsolete.
12293
12294 2002-01-14 Michael Snyder <msnyder@redhat.com>
12295
12296 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
12297 until we can resolve portability issues.
12298 * gregset.h: Remove references to fpxregs.
12299 * gcore.c (gcore_command): Initialize note_sec to NULL.
12300
12301 2002-01-13 Andrew Cagney <ac131313@redhat.com>
12302
12303 * signals.c (target_signal_to_name): Rewrite. Only use
12304 signals[].name when in bounds and non-NULL.
12305
12306 2002-01-13 Andrew Cagney <ac131313@redhat.com>
12307
12308 From Petr Ledvina <ledvinap@kae.zcu.cz>:
12309 * signals.c (target_signal_to_name): Verify that SIG is within the
12310 bounds of the signals array.
12311
12312 2002-01-13 Andrew Cagney <ac131313@redhat.com>
12313
12314 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
12315
12316 2002-01-13 Keith Seitz <keiths@redhat.com>
12317
12318 * stack.c (print_frame_info_base): Print the frame's pc
12319 only if when print_frame_info_listing_hook is not defined.
12320
12321 2002-01-13 Keith Seitz <keiths@redhat.com>
12322
12323 * varobj.c (varobj_set_value): Make sure that there were no
12324 errors evaluating the object before attempting to set its
12325 value.
12326 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
12327 so this offset adjustment is no longer necessary.
12328 (create_child): Don't set the error flag if the child is
12329 a CPLUS_FAKE_CHILD.
12330 (value_of_child): If value_fetch_lazy fails, return NULL
12331 so that callers will be notified that an error occurred.
12332 (c_value_of_variable): Delay check of variable's validity
12333 until later. We actually want all structs and unions to have
12334 the value "{...}".
12335 Do not return "???" for variables which could not be evaluated.
12336 This error condition must be returned to the caller so that it
12337 can get the error condition from gdb.
12338 (cplus_name_of_child): Adjust index for vptr before figuring
12339 out the name of the child.
12340 (cplus_value_of_child): If a child's (real) parent is not valid,
12341 don't even bother trying to give a value for it. Just return
12342 an error. Change all instances in this function.
12343 (cplus_type_of_child): If our parent is one of the "fake"
12344 parents, we need to get at the type of the real parent, and
12345 derive the child's true type using this information.
12346
12347 2002-01-13 Andrew Cagney <ac131313@redhat.com>
12348
12349 From 2002-01-09 John Marshall <johnm@falch.net>:
12350 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
12351 sources.redhat.com, and tweak some related URLs which had
12352 suffered from linkrot.
12353
12354 2002-01-13 Andrew Cagney <ac131313@redhat.com>
12355
12356 From Jeff law:
12357 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
12358 structures passed in registers.
12359
12360 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
12361
12362 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
12363 white space which prevented compilation. Reported by DSK
12364 <dsk@student.unsw.edu.au>.
12365
12366 2002-01-11 Michael Snyder <msnyder@redhat.com>
12367
12368 * symfile.c (build_section_addr_info_from_section_tab):
12369 Use bfd access method instead of manipulating bfd directly.
12370 (syms_from_objfile): Ditto.
12371 (simple_overlay_update_1): Ditto.
12372 (simple_overlay_update): Ditto.
12373 (generic_load): Ditto.
12374 (overlay_unmapped_address): FIXME comment, bfd access methods.
12375 (sections_overlap): FIXME comment, bfd access methods.
12376 (pc_in_mapped_range): FIXME comment, bfd access methods.
12377 (pc_in_unmapped_range): FIXME comment, bfd access methods.
12378 (section_is_mapped): FIXME comment, bfd access methods.
12379 (section_is_overlay): FIXME comment, bfd access methods.
12380
12381 * symfile.c (generic_load): Whitespace and long line cleanups.
12382 Remove duplicate variable, change several local variables to
12383 more appropriate data types.
12384 (print_transfer_performance): Use %lu instead of %ld for ulongs.
12385
12386 2002-01-12 Andrew Cagney <ac131313@redhat.com>
12387
12388 From Peter Schauer:
12389 * language.c (longest_local_hex_string_custom): Use phex_nz to
12390 convert NUM to a hex string.
12391
12392 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
12393
12394 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
12395 the function.
12396 Update Copyright year.
12397
12398 2002-01-12 Andrew Cagney <ac131313@redhat.com>
12399
12400 * language.c (longest_raw_hex_string): Delete unused function.
12401
12402 2002-01-11 Petr Sorfa <petrs@caldera.com>
12403
12404 * MAINTAINERS (write-after-approval): Add myself.
12405 * dwarf2read.c (read_tag_string_type): Handling of
12406 DW_AT_byte_size.
12407 (read_tag_string_type): FORTRAN fix to prevent propagation of
12408 first string size.
12409 (set_cu_language): Handling of DW_LANG_Fortran95
12410
12411 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
12412
12413 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
12414 GETPID(inferior_ptid).
12415 (store_inferior_registers): Likewise.
12416
12417 2002-01-10 Jason Merrill <jason@redhat.com>
12418
12419 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
12420 Fix DW_OP_minus.
12421
12422 2002-01-10 Andrew Cagney <ac131313@redhat.com>
12423
12424 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
12425 and bfd/elf32-sh-nbsd.c.
12426
12427 2002-01-10 Michael Snyder <msnyder@redhat.com>
12428
12429 * NEWS: Mention --pid and corefile/proc-id behavior change.
12430
12431 * Makefile.in: Add rules for gcore.o and linux-proc.o.
12432 * gcore.c: Include cli/cli-decode.h instead of command.h.
12433
12434 * main.c (captured_main): Add new command line option "--pid".
12435 If the second command line argument (following the symbol-file)
12436 begins with a digit, try to attach to it before trying to open
12437 it as a corefile.
12438 (print_gdb_help): Document the "--pid" argument.
12439
12440 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
12441
12442 * completer.c (command_completer): New function.
12443
12444 * completer.h <command_completer>: Add prototype.
12445
12446 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
12447 completer for the "help" command.
12448
12449 2002-01-09 Jason Merrill <jason@redhat.com>
12450
12451 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
12452
12453 2002-01-09 Michael Snyder <msnyder@redhat.com>
12454
12455 * i386-linux-nat.c (fill_fpxregset): Make global.
12456 (store_fpxregset): Ditto.
12457
12458 * gregset.h (gdb_fpxregset_t): Define.
12459 (supply_fpxregset): Prototype.
12460 (fill_fpxregset): Prototype.
12461
12462 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
12463
12464 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
12465
12466 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
12467 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
12468 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
12469
12470 2002-01-09 Andrew Cagney <ac131313@redhat.com>
12471
12472 * MAINTAINERS: Update target maintainer rules so that any
12473 Maintainer can approve a tested patch for a maintenance-only
12474 target.
12475
12476 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
12477
12478 * MAINTAINERS (write-after-approval): Add myself.
12479
12480 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
12481 IN_SIGTRAMP.
12482
12483 2002-01-08 Michael Snyder <msnyder@redhat.com>
12484
12485 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
12486 real name of the executable, rather than the /proc name.
12487
12488 2002-01-03 Michael Snyder <msnyder@redhat.com>
12489
12490 Implement a "generate-core-file" command in gdb, save target state.
12491 * gcore.c: New file. Implement new command 'generate-core-file'.
12492 Save a corefile image of the current state of the inferior.
12493 * linux-proc.c: Add linux-specific code for saving corefiles.
12494 * target.h (struct target_ops): Add new target vectors for saving
12495 corefiles; to_find_memory_regions and to_make_corefile_notes.
12496 (target_find_memory_regions): New macro.
12497 (target_make_corefile_notes): New macro.
12498 * target.c (update_current_target): Inherit new target methods.
12499 (dummy_find_memory_regions): New place-holder method.
12500 (dummy_make_corefile_notes): New place-holder method.
12501 (init_dummy_target): Initialize new dummy target vectors.
12502 * exec.c (exec_set_find_memory_regions): New function.
12503 Allow the exec_ops vector for memory regions to be taken over.
12504 (exec_make_note_section): New function, target vector method.
12505 * defs.h (exec_set_find_memory_regions): Export prototype.
12506 * procfs.c (proc_find_memory_regions): New function, corefile method.
12507 (procfs_make_note_section): New function, corefile method.
12508 (init_procfs_ops): Set new target vector pointers.
12509 (find_memory_regions_callback): New function.
12510 (procfs_do_thread_registers): New function.
12511 (procfs_corefile_thread_callback): New function.
12512 * sol-thread.c (sol_find_memory_regions): New function.
12513 (sol_make_note_section): New function.
12514 (init_sol_thread_ops): Initialize new target vectors.
12515 * inftarg.c (inftarg_set_find_memory_regions): New function.
12516 Allow to_find_memory_regions vector to be taken over.
12517 (inftarg_set_make_corefile_notes): New function.
12518 Allow to_make_corefile_notes vector to be taken over.
12519 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
12520 interface layer if not target_has_execution (may be a corefile).
12521 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
12522 * config/sparc/sun4sol2.mh: Ditto.
12523 * config/alpha/alpha-linux.mh: Ditto.
12524 * config/arm/linux.mh: Ditto.
12525 * config/i386/x86-64linux.mh: Ditto.
12526 * config/ia64/linux.mh: Ditto.
12527 * config/m68k/linux.mh: Ditto.
12528 * config/mips/linux.mh: Ditto.
12529 * config/powerpc/linux.mh: Ditto.
12530 * config/sparc/linux.mh: Ditto.
12531
12532 2002-01-07 Michael Snyder <msnyder@redhat.com>
12533
12534 * arm-linux-nat.c: Remove references to regcache.c internal data
12535 (registers[] and register_valid[]).
12536
12537 2002-01-07 Michael Snyder <msnyder@redhat.com>
12538
12539 * linux-proc.c: New file. Implement child_pid_to_exec_file,
12540 so that attaching to a pid will automatically read the process's
12541 symbol file and shlibs.
12542 * Makefile.in: Add rule for linux-proc.o.
12543 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
12544 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
12545 * config/arm/linux.mh: Ditto.
12546 * config/i386/linux.mh: Ditto.
12547 * config/i386/x86-64linux.mh: Ditto.
12548 * config/ia64/linux.mh: Ditto.
12549 * config/m68k/linux.mh: Ditto.
12550 * config/mips/linux.mh: Ditto.
12551 * config/powerpc/linux.mh: Ditto.
12552 * config/sparc/linux.mh: Ditto.
12553
12554 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
12555
12556 * win32-nat.c: Add i386-tdep.h dependency.
12557
12558 2002-01-07 Michael Snyder <msnyder@redhat.com>
12559
12560 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
12561 instead of bfd_get_arch_size. Don't bail out just because
12562 there's no exec_bfd.
12563
12564 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
12565 * p-valprint.c (pascal_object_print_value): Ditto.
12566 * somread.c (som_symtab_read): Ditto.
12567 * symfile.c (simple_free_overlay_region_table): Ditto.
12568 * valops.c (value_assign): Ditto.
12569
12570 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
12571 use tilde_expand and strerror for opening save-tracepoints file.
12572
12573 * thread-db.c (thread_db_new_objfile): Indendation fix.
12574
12575 * infptrace.c (GDB_MAX_ALLOCA): New define.
12576 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
12577 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
12578 can be overridden with whatever value is appropriate to the host).
12579 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
12580 alloca to allocate potentially large buffer.
12581 * rs6000-nat.c (child_xfer_memory): Ditto.
12582 * symm-nat.c (child_xfer_memory): Ditto.
12583 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
12584
12585 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
12586
12587 From Nick Clifton <nickc@redhat.com>
12588 * d10v-tdep.c: Set STACK_START to 0x200bffe.
12589
12590 2002-01-07 Michael Snyder <msnyder@redhat.com>
12591
12592 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
12593 Don't use exec_bfd if it's NULL.
12594
12595 2002-01-06 Mark Kettenis <kettenis@gnu.org>
12596
12597 * valops.c (value_arg_coerce): Fix formatting.
12598
12599 2002-01-06 Andrew Cagney <ac131313@redhat.com>
12600
12601 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
12602 * gnu-nat.c: Ditto.
12603
12604 2002-01-06 Andrew Cagney <ac131313@redhat.com>
12605
12606 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
12607 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
12608 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
12609 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
12610 z8k-coff have not been multi-arched. Update z8k-coff build
12611 status.
12612
12613 2002-01-06 Andrew Cagney <ac131313@redhat.com>
12614
12615 * MAINTAINERS: Mark a29k target as obsolete.
12616 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
12617 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
12618 comments.
12619 * NEWS: Note that a29k targets are obsolete.
12620 * a29k-tdep.c: Mark as obsolete.
12621 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
12622 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
12623 a29k-*-vxworks* targets as obsolete.
12624 * remote-adapt.c: Obsolete.
12625 * remote-eb.c: Obsolete.
12626 * remote-mm.c: Obsolete.
12627 * remote-udi.c: Obsolete.
12628 * config/a29k/a29k-udi.mt: Obsolete.
12629 * config/a29k/a29k.mt: Obsolete.
12630 * config/a29k/tm-a29k.h: Obsolete.
12631 * config/a29k/tm-vx29k.h: Obsolete.
12632 * config/a29k/vx29k.mt: Obsolete.
12633
12634 2002-01-05 Andrew Cagney <ac131313@redhat.com>
12635
12636 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
12637 with BFD_ENDIAN_BIG.
12638
12639 2002-01-05 Andrew Cagney <ac131313@redhat.com>
12640
12641 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
12642 * configure, config.in: Re-generate.
12643 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
12644 * defs.h: Do not include <endian.h>.
12645
12646 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
12647
12648 * acconfig.h (HAVE_PT_GETXMMREGS): New.
12649 * config.in: Regenerate.
12650 * configure.in: Update copyright years.
12651 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
12652 * configure: Regenerate.
12653 * i386bsd-nat.c: Update copyright years.
12654 (fill_gregset): Use regcache_collect.
12655 (fetch_inferior_registers): Only fetch integer registers
12656 if requested to do so. Add support for XMM registers
12657 using PT_GETXMMREGS.
12658 (store_inferior_registers): Only store integer registers
12659 if requested to do so. Add support for XMM registers
12660 using PT_SETXMMREGS.
12661 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
12662 (store_inferior_registers): Remove.
12663 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
12664 (fetch_elfcore_registers): New function.
12665 (i386nbsd_elfcore_fns): New.
12666 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
12667 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
12668 i386bsd-nat.o.
12669 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
12670 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
12671 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
12672 * config/i386/tm-nbsd.h: Update copyright years.
12673 (HAVE_SSE_REGS): Define.
12674 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
12675 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
12676 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
12677 (SIGCONTEXT_PC_OFFSET): Remove.
12678 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
12679
12680 2002-01-05 Andrew Cagney <ac131313@redhat.com>
12681
12682 * configure.tgt: Remove powerpc-*-macos* target.
12683 * config/m68k/xm-mpw.h: Delete file.
12684 * config/xm-mpw.h: Delete file.
12685 * ser-mac.c: Delete file.
12686 * mpw-make.sed: Delete file.
12687 * mpw-config.in: Delete file.
12688 * mac-xdep.c: Delete file.
12689 * mac-gdb.r: Delete file.
12690 * mac-defs.h: Delete file.
12691 * mac-nat.c: Delete file.
12692 * config/powerpc/macos.mh: Delete file.
12693 * config/powerpc/macos.mt: Delete file.
12694 * config/powerpc/nm-macos.h: Delete file.
12695 * config/powerpc/tm-macos.h: Delete file.
12696 * source.c (openp, open_source_file): Remove obsolete code.
12697 * top.c (gdb_readline): Ditto.
12698 * utils.c (query): Ditto.
12699 * event-top.c (display_gdb_prompt): Ditto.
12700 * Makefile.in (ser-mac.o): Delete obsolete target.
12701 * NEWS: Update.
12702
12703 2002-01-04 Andrew Cagney <ac131313@redhat.com>
12704
12705 * defs.h (BIG_ENDIAN): Delete macro definition.
12706 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
12707 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
12708 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
12709 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
12710 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
12711 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
12712 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
12713 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
12714 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
12715 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
12716 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
12717 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
12718 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
12719 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
12720 * gdbarch.c: Re-generate.
12721
12722 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
12723
12724 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
12725 for core files.
12726
12727 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
12728
12729 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
12730
12731 2002-01-04 Andrew Cagney <ac131313@redhat.com>
12732
12733 * value.h (value_ptr): Delete typedef.
12734
12735 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
12736
12737 * i386nbsd-nat.c: Update copyright years.
12738 Include i386-tdep.h.
12739
12740 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
12741
12742 * stabsread.c: Update copyright years.
12743
12744 From Debashis Mahata <debashis.mahata@wipro.com>:
12745 (read_struct_fields): Deal with Sun C compiler erroneous stab
12746 output for structs and unions.
12747 Fix PR gdb/269.
12748
12749 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
12750
12751 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
12752 prototype.
12753
12754 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
12755
12756 * cp-abi.c: Fix whitespace.
12757 (baseclass_offset): New wrapper function.
12758 * cp-abi.h (baseclass_offset): Add prototype.
12759 (struct cp_abi_ops): Add baseclass_offset pointer.
12760
12761 * valops.c (vb_match): Move to...
12762 * gnu-v2-abi.c (vb_match): here.
12763 * valops.c (baseclass_offset): Move to...
12764 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
12765
12766 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
12767
12768 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
12769 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
12770 * hpacc-abi.c (init_hpacc_ops): Likewise.
12771
12772 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
12773
12774 * valops.c (find_overload_match): Accept obj as a
12775 reference parameter. Update it before returning.
12776 * value.h (find_overload_match): Update prototype.
12777 * eval.c (evaluate_subexp_standard): Pass object to
12778 find_overload_match by reference.
12779
12780 2002-01-03 Andrew Cagney <ac131313@redhat.com>
12781
12782 * valarith.c: Replace value_ptr with struct value pointer. Remove
12783 register attribute from value declarations.
12784 * valops.c: Ditto.
12785 * value.h: Ditto.
12786 * scm-lang.c (scm_lookup_name): Ditto.
12787
12788 2002-01-03 Michael Snyder <msnyder@redhat.com>
12789
12790 Abstract the functionality of iterating over mapped memory
12791 regions into a general purpose iterator function.
12792 * procfs.c (iterate_over_mappings): New function, general purpose
12793 iterator for memory sections.
12794 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
12795 (solib_mappings_callback): New function, callback for above.
12796 (info_proc_mappings): Reimpliment using iterate_over_mappings.
12797 (info_mappings_callback): New function, callback for above.
12798
12799 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
12800
12801 2002-01-01 Mark Kettenis <kettenis@gnu.org>
12802
12803 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
12804 * i386-tdep.c: Include "elf-bfd.h".
12805 (process_note_abi_tag_sections): New function.
12806 (i386_gdbarch_init): Add code to recognize various OS/ABI
12807 combinations.
12808
12809 * maint.c (_initialize_maint_cmds): Add missing \ in
12810 string-literal.
12811
12812 For older changes see ChangeLog-2001
12813 \f
12814 Local Variables:
12815 mode: change-log
12816 left-margin: 8
12817 fill-column: 74
12818 version-control: never
12819 End:
This page took 0.270857 seconds and 5 git commands to generate.