2002-11-02 Andrew Cagney <cagney@redhat.com>
[binutils-gdb.git] / gdb / ChangeLog
1 2002-11-02 Andrew Cagney <cagney@redhat.com>
2
3 * reggroups.h, reggroups.c: New files.
4 * regcache.c: Include "reggroups.h".
5 (enum regcache_dump_what): Add `regcache_dump_groups'.
6 (regcache_dump): Contract size of the "Type" column. When
7 specified, dump the register's groups.
8 (maintenance_print_register_groups): New function.
9 (_initialize_regcache): Add command `maint print register-groups'.
10 * Makefile.in (COMMON_OBS): Add reggroups.o
11 (SFILES): Add reggroups.c.
12 (reggroups_h): Define.
13 (regcache.o, gdbarch.o): Update dependencies.
14 (reggroups.o): Specify dependencies.
15 * gdbarch.sh (register_reggroup_p): Add pure multi-arch method.
16 Add opaque declaration for `struct reggroup' in generated .h file.
17 Include "reggroups.h" in generated .c file.
18 gdbarch.h, gdbarch.c: Re-generate.
19
20 2002-11-02 Andrew Cagney <cagney@redhat.com>
21
22 * regcache.h (deprecated_read_register_gen): Rename
23 read_register_gen.
24 (deprecated_write_register_gen): Rename write_register_gen.
25 * i387-tdep.c: Update.
26 * x86-64-linux-nat.c: Update
27 * wince.c: Update.
28 * thread-db.c: Update.
29 * win32-nat.c: Update.
30 * mips-tdep.c: Update.
31 * d10v-tdep.c: Update.
32 * cris-tdep.c: Update.
33 * remote-sim.c: Update.
34 * remote-rdi.c: Update.
35 * remote-rdp.c: Update.
36 * frame.c: Update.
37 * target.c: Update.
38 * blockframe.c: Update.
39 * x86-64-tdep.c: Update.
40 * xstormy16-tdep.c: Update.
41 * sh-tdep.c: Update.
42 * s390-tdep.c: Update.
43 * rs6000-tdep.c: Update.
44 * sparc-tdep.c: Update.
45 * i386-tdep.c: Update.
46 * dwarf2cfi.c: Update.
47 * regcache.c: Update.
48
49 2002-11-01 Joel Brobecker <brobecker@gnat.com>
50
51 New interix-specific files:
52 * config/i386/nm-interix.h: New file.
53 * config/i386/interix.mh: New file.
54 * config/i386/interix.mt: New file.
55 * i386-interix-nat.c: New file.
56 * i386-interix-tdep.c: New file.
57
58 2002-11-01 Andrew Cagney <cagney@redhat.com>
59
60 * frame.h (deprecated_generic_get_saved_register): Rename
61 generic_get_saved_register.
62 * blockframe.c (deprecated_generic_get_saved_register): Update.
63 * xstormy16-tdep.c (xstormy16_get_saved_register): Update.
64 (xstormy16_frame_saved_register): Update.
65 * sh-tdep.c (sh_gdbarch_init): Update.
66 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
67 * ia64-tdep.c (ia64_get_saved_register): Update.
68 * cris-tdep.c (cris_gdbarch_init): Update.
69 * config/m32r/tm-m32r.h (GET_SAVED_REGISTER): Update.
70 * arm-tdep.c (arm_gdbarch_init): Update.
71
72 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
73
74 * lin-lwp.c (lin_lwp_resume): Remove resume_all test for !step.
75
76 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
77
78 * i386-linux-tdep.c (i386_linux_pc_in_sigtramp): Check for
79 trampolines in sigaction.
80
81 2002-10-31 Andrew Cagney <cagney@redhat.com>
82
83 * h8300-tdep.c: Include "gdb_assert.h".
84 (h8300_print_register): Add gdbarch, file and frame parameters.
85 Use frame_read_unsigned_register to read the register's value.
86 Use fprintf_filtered to display output.
87 (h8300_print_registers_info): Replace h8300_do_registers_info.
88 (h8300_gdbarch_init): Set print_registers_info.
89
90 2002-10-31 Andrew Cagney <cagney@redhat.com>
91
92 * frame.c (frame_read_unsigned_register): New function.
93 (frame_read_signed_register): New function.
94 * frame.h (frame_read_unsigned_register): Declare.
95 (frame_read_signed_register): Declare.
96
97 2002-10-31 Andrew Cagney <cagney@redhat.com>
98
99 * h8500-tdep.c (h8500_print_registers_info): New static function,
100 clone of infcmd.c's default_print_registers_info.
101 (h8500_do_registers_info): New funtion.
102 (h8500_print_register_hook): Rename print_register_hook, make
103 static.
104
105 * config/h8500/tm-h8500.h: Update copyright.
106 (DEPRECATED_DO_REGISTERS_INFO): Define.
107 (h8500_do_registers_info: Declare.
108 (PRINT_REGISTER_HOOK): Delete macro.
109 (print_register_hook): Delete function.
110
111 2002-10-31 Andrew Cagney <cagney@redhat.com>
112
113 * z8k-tdep.c (z8k_print_register_hook): Make static.
114 (z8k_print_registers_info): New static function, clone of
115 infcmd.c's default_print_registers_info.
116 (z8k_do_registers_info): New function. Wrap
117 z8k_print_registers_info.
118 * config/z8k/tm-z8k.h: Update copyright.
119 (PRINT_REGISTER_HOOK): Delete macro.
120 (z8k_print_register_hook): Delete declaration.
121 (DEPRECATED_DO_REGISTERS_INFO): Define.
122 (z8k_do_registers_info): Declare.
123
124 2002-10-30 Joel Brobecker <brobecker@gnat.com>
125
126 * hppa-tdep.c (find_function_in_inferior): Remove this extern,
127 as this is already provided by value.h, and was actually causing
128 a compilation error because of a conflict in parameter type
129 declaration due to a missing const keyword.
130 (low_text_segment_addres): Fix a compilation warning.
131
132 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
133
134 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
135 registers without a name.
136 (mips_linux_cannot_store_register): Don't store registers without
137 a name.
138
139 2002-10-28 David Carlton <carlton@math.stanford.edu>
140
141 * symtab.c (find_addr_symbol): Delete. (It was already commented
142 out.)
143 * symtab.h: Delete prototype for find_addr_symbol.
144
145 2002-10-26 Andrew Cagney <cagney@redhat.com>
146
147 * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
148 DO_REGISTERS_INFO.
149 gdbarch.h, gdbarch.c: Re-generate.
150 * infcmd.c (default_print_registers_info): Update reference.
151 * mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info.
152 (mips_dump_tdep): Do not print DO_REGISTERS_INFO.
153 * sh-tdep.c (sh_gdbarch_init): Ditto.
154 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
155 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
156
157 2002-10-26 Mark Kettenis <kettenis@gnu.org>
158
159 * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
160 cfi_init_extra_frame_info.
161 * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
162 * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
163
164 * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
165 target where necessary. Add more comments and remove the ones
166 that don't provide any useful information.
167
168 * i386-tdep.c (i386_frame_saved_pc): Replace call to
169 deprecated_read_register_dummy with
170 frame_unwind_unsigned_register.
171
172 * i386-tdep.c (i386_extract_struct_value_address): Use
173 regcache_raw_read_unsigned instead of
174 regcache_cooked_read_unsigned since we know that the register
175 we're reading isn't a pseudo register. Rename variable 'val' into
176 the more descriptive 'addr'.
177
178 * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
179 (x86_64_push_return_address): Add comment.
180 (x86_64_pop_frame): Make static.
181 (examine_argument): Clarify comment.
182 (x86_64_skip_prologue): Make prolog_expact variable static.
183
184 * dwarf2cfi.c: Fix some formatting problems.
185 (context_cpy, read_encoded_pointer): Clarify comments.
186
187 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
188 (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
189 i386 target back into x86_64_gdbarch_init. Add some comments and
190 remove meaningless ones.
191
192 2002-10-25 Andrew Cagney <cagney@redhat.com>
193
194 * complaints.h (struct deprecated_complaint): Rename `struct
195 complaint'.
196 * complaints.c (complain): Update.
197 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
198 incorrect comment indicating that "symfile.h" was being included
199 for the `struct complaint' definition.
200 * remote-vx.c: Update.
201 * objc-lang.c: Update.
202 * xcoffread.c: Update.
203 * hpread.c: Update.
204 * mdebugread.c: Update.
205 * stabsread.c: Update.
206 * dwarf2read.c: Update.
207 * dwarfread.c: Update.
208 * elfread.c: Update.
209 * coffread.c: Update.
210 * stabsread.h: Update.
211 * dbxread.c: Update.
212 * buildsym.c: Update.
213 * gdbtypes.c: Update.
214 * macrotab.c: Update.
215
216 2002-10-25 Mark Kettenis <kettenis@gnu.org>
217
218 * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
219 the version in i386-tdep.c. Move set_gdbarch_* calls out into...
220 (x86_64_init_abi): ...new function.
221
222 * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
223 * i386v-nat.c: Include "i386-tdep.h".
224
225 2002-10-25 Andrew Cagney <cagney@redhat.com>
226
227 * gdbtypes.c (address_space_name_to_int): Update.
228 (address_space_int_to_name): Update.
229 * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
230 multi-arch predicate.
231 (address_class_name_to_type_flags): Ditto.
232 * gdbarch.h, gdbarch.c: Re-generate.
233
234 * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
235
236 2002-10-24 Martin M. Hunt <hunt@redhat.com>
237
238 * utils.c (string_to_core_addr): Revert patch from 11 Oct.
239
240 2002-10-24 Elena Zannoni <ezannoni@redhat.com>
241
242 * symtab.h (INIT_SAL): Delete macro.
243 (init_sal): Export.
244 * symtab.c (init_sal): New function.
245
246 * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
247 to init_sal function call.
248 (find_sal_from_funcs_and_line): Ditto.
249 (all_sals_for_line): Ditto.
250 * breakpoint.c (create_internal_breakpoint): Ditto.
251 (create_fork_vfork_event_catchpoint): Ditto.
252 (create_exec_event_catchpoint): Ditto.
253 (parse_breakpoint_sals): Ditto.
254 (watch_command_1): Ditto.
255 (handle_gnu_4_16_catch_command): Ditto.
256 (clear_command): Ditto.
257 * hppa-tdep.c (child_enable_exception_callback): Ditto.
258 * infcmd.c (run_stack_dummy): Ditto.
259 * infrun.c (process_event_stop_test): Ditto.
260 (check_sigtramp2): Ditto.
261 (step_over_function): Ditto.
262 * linespec.c (decode_line_2): Ditto.
263 (decode_line_1): Ditto.
264 * source.c (line_info): Ditto.
265 * symtab.c (find_pc_sect_line): Ditto.
266
267 2002-10-24 Michal Ludvig <mludvig@suse.cz>
268
269 * dwarf2cfi.c (struct context)
270 (struct context_reg): Moved to dwarf2cfi.h
271 (context_alloc, frame_state_alloc, context_cpy):
272 Made extern instead of static, removed prototypes.
273 * dwarf2cfi.h (struct context)
274 (struct context_reg): New, moved from dwarf2cfi.c
275 (context_alloc, frame_state_alloc, context_cpy):
276 New prototypes.
277 * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
278 Changed from static to extern.
279 (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
280 (LINUX_SIGCONTEXT_FP_OFFSET)
281 (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
282 (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
283 (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
284 * x86-64-tdep.c (x86_64_gdbarch_init): Several
285 set_gdbarch_*() calls now use x86-64 specific functions
286 instead of DWARF2 CFI ones.
287 * x86-64-tdep.h (x86_64_linux_in_sigtramp)
288 (x86_64_linux_frame_chain, x86_64_init_frame_pc)
289 (x86_64_init_extra_frame_info): New prototypes.
290
291 2002-10-23 David Carlton <carlton@math.stanford.edu>
292
293 * linespec.c: #include "parser-defs.h".
294 Delete prototype for find_template_name_end.
295 * Makefile.in (linespec.o): Depend on $(parser_defs_h).
296
297 2002-10-23 Jeff Johnston <jjohnstn@redhat.com>
298
299 * NEWS: add recent mi fixes.
300 * varobj.c (struct varobj): Add new "updated" flag.
301 (new_variable): Default "updated" flag to 0.
302 (varobj_set_value): Set "updated" flag to 1 if value
303 changes.
304 (varobj_update): Check varobj "updated" flag before
305 comparing old and refreshed values. Fix for
306 PR gdb/702.
307
308 2002-10-23 David Carlton <carlton@math.stanford.edu>
309
310 * parse.c (parse_exp_1): Use BLOCK_START.
311 * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
312 SYMBOL_BLOCK_VALUE.
313 * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
314
315 2002-10-23 David Carlton <carlton@math.stanford.edu>
316
317 * symtab.c: Delete cplusplus_hint.
318 Delete prototype for find_template_name_end.
319
320 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
321
322 * symtab.h: Update comment.
323
324 2002-10-23 Michael Snyder <msnyder@redhat.com>
325
326 * printcmd.c (address_info): Restore quotes in output.
327 * valops.c (value_of_local): Restore quotes in error message.
328
329 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
330
331 * symtab.c (symbol_demangled_name): New function.
332 * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
333 turning most of it into a function.
334 (symbol_demangled_name): Export.
335
336 2002-10-23 Michael Snyder <msnyder@redhat.com>
337
338 * valops.c (value_of_local): Restore quotes in error message.
339
340 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
341
342 * symtab.c (symbol_init_language_specific): New function.
343 * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
344 turning most of it into a function.
345 (symbol_init_language_specific): Export.
346
347 2002-10-23 David Carlton <carlton@math.stanford.edu>
348
349 * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
350 (dwarf_attr_name): Ditto.
351 (dwarf_type_encoding_name): Ditto.
352 (scan_partial_symbols): Descend into DW_TAG_namespace entries.
353 (process_die): Handle DW_TAG_namespace,
354 DW_TAG_imported_declaration, DW_TAG_imported_module.
355 (read_namespace): New function.
356
357 2002-10-22 Joel Brobecker <brobecker@gnat.com>
358
359 * configure.in: Define NEW_PROC_API on Interix too.
360 * configure: Regenerate.
361
362 2002-10-21 Joel Brobecker <brobecker@gnat.com>
363
364 * configure: Regenerate using the proper version of autoconf.
365
366 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
367
368 * findvar.c (read_var_value): Temporarily disable TLS code, until
369 complete TLS support is added.
370
371 2002-10-21 Jim Blandy <jimb@redhat.com>
372 Elena Zannoni <ezannoni@redhat.com>
373
374 * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
375 for thread local storage locations.
376 (struct symbol): Add objfile field.
377 (SYMBOL_OBJFILE): Define.
378 * dwarf2read.c (is_thread_local): New static variable.
379 (new_symbol): If variable is in thread local fill in address class
380 and objfile appropriately.
381 (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
382 stack operation.
383 * printcmd.c (address_info): Print the information for thread
384 local storage variable.
385 * findvar.c (read_var_value): In case of thread local variable,
386 defer to the target vector code to compute address.
387
388 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
389
390 * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
391 * solib-svr4.h (svr4_fetch_objfile_link_map): Export.
392
393 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
394
395 * symtab.h (address_class): Rename
396 LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
397 * hpread.c (hpread_process_one_debug_symbol): Ditto.
398 * printcmd.c (address_info): Ditto.
399 * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
400
401 2002-10-20 Mark Kettenis <kettenis@gnu.org>
402
403 * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
404 DBREG_DRX macro to acces debug registers.
405
406 * Makefile.in (i386obsd-tdep.o): New target.
407
408 * solib-sunos.c: Include "bcache.h" and "regcache.h".
409 * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
410
411 * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
412 * config/i386/obsd.mt: New file.
413 * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
414 i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
415 * i386obsd-nat.c (_initialize_i386obsd_nat): Set
416 i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
417 i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
418 * i386obsd-tdep.c: New file.
419
420 2002-10-19 Adam Fedor <fedor@gnu.org>
421
422 * objc-exp.y (name_not_typename): Fix invalid comment.
423
424 2002-10-20 Mark Kettenis <kettenis@gnu.org>
425
426 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
427 to allocate partial syms and macro byte caches.
428
429 2002-10-18 David Carlton <carlton@math.stanford.edu>
430
431 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
432
433 2002-10-18 Adam Fedor <fedor@gnu.org>
434
435 * stabsread.c (find_name_end): New function.
436 (define_symbol): Use it.
437
438 2002-10-18 Daniel Jacobowitz <drow@mvista.com>
439
440 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
441 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
442 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
443 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
444
445 2002-10-17 David Carlton <carlton@math.stanford.edu>
446
447 * symfile.h: Add opaque declaration for struct obstack.
448 Declare obsavestring to take a const char *.
449 * symfile.c (obsavestring): Make first argument a const char *.
450
451 2002-10-16 Adam Fedor <fedor@gnu.org>
452
453 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
454 names when matching breakpoints in current file.
455
456 2002-10-16 Kevin Buettner <kevinb@redhat.com>
457
458 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
459 (read_tag_pointer_type): Add address class support.
460 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
461 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
462 New methods.
463 * gdbarch.h, gdbarch.c: Regenerate.
464 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
465 (make_type_with_address_space, recursive_type_dump): Add address
466 class support.
467 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
468 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
469 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
470
471 2002-10-16 Klee Dienes <kdienes@apple.com>
472
473 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
474 to get the last character of a char[] buffer, not
475 name[sizeof(vptr_name)-1].
476
477 2002-10-14 Adam Fedor <fedor@gnu.org>
478
479 * symtab.h: New objc_specific struct.
480 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
481 (SYMBOL_DEMANGLED_NAME): Likewise.
482
483 2002-10-14 Adam Fedor <fedor@gnu.org>
484
485 * symfile.c (init_filename_language_table): Add ObjC file extension.
486
487 2002-10-14 Adam Fedor <fedor@gnu.org>
488
489 * utils.c (puts_filtered_tabular): New function.
490 (fprintf_symbol_filtered): Get ObjC demangled name.
491 * defs.h (puts_filtered_tabular): Declared.
492
493 2002-10-14 Kevin Buettner <kevinb@redhat.com>
494
495 * c-lang.h (c_type_print_varspec_prefix): Delete.
496 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
497 ``need_post_space'' parameter. Adjust all callers.
498
499 2002-10-14 Daniel Jacobowitz <drow@mvista.com>
500
501 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
502 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
503 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
504 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
505
506 2002-10-13 Adam Fedor <fedor@gnu.org>
507
508 * source.c (print_source_lines): Update comments.
509
510 2002-10-13 Adam Fedor <fedor@gnu.org>
511
512 * valops.c (value_of_local): New function.
513 (value_of_this): Use it.
514 * value.h (value_of_local): Declared.
515
516 2002-10-13 Adam Fedor <fedor@gnu.org>
517
518 * parse.c: (length_of_subexp, prefixify_subexp): Handle
519 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
520
521 2002-10-12 Adam Fedor <fedor@gnu.org>
522
523 * language.c (binop_result_type): Add language_objc to case.
524 (integral_type): Likewise.
525 (character_type): Likewise.
526 (string_type): Likewise.
527 (boolean_type): Likewise.
528 (structured_type): Likewise.
529 (binop_type_check): Likewise.
530
531 2002-10-11 Adam Fedor <fedor@gnu.org>
532
533 * printcmd.c (address_info): Print 'self' for ObjC.
534
535 2002-10-11 Adam Fedor <fedor@gnu.org>
536
537 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
538 OP_SELF.
539
540 2002-10-11 Adam Fedor <fedor@gnu.org>
541
542 * language.h (CAST_IS_CONVERSION): Add language_objc.
543
544 2002-10-11 Adam Fedor <fedor@gnu.org>
545
546 * defs.h (enum language): Add language_objc.
547
548 2002-10-11 Klee Dienes <kdienes@apple.com>
549
550 * findvar.c (read_memory_typed_address): New function.
551 * gdbcore.h (read_memory_typed_address): Add prototype.
552 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
553 to read a value destined for a CORE_ADDR, not read_memory_integer.
554 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
555 (f77_get_dynamic_lowerbound): Ditto.
556
557 2002-10-11 Martin M. Hunt <hunt@redhat.com>
558
559 * utils.c (string_to_core_addr): After turning string into
560 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
561 which will do necessary sign-extension, etc.
562
563 2002-10-11 Daniel Jacobowitz <drow@mvista.com>
564
565 * c-exp.y (THIS): Delete token and grammar rule.
566 (yylex): Don't return THIS.
567 * cp-valprint.c (vtbl_ptr_name_old): Delete.
568 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
569 * demangle.c (cplus_markers): Update comment. Put '$'
570 first. Remove CPLUS_MARKER.
571 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
572 * jv-exp.y (THIS): Delete token and grammar rule.
573 (yylex): Don't return THIS.
574 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
575 * objc-exp.y (THIS): Delete token and grammar rule.
576 (yylex): Don't return THIS.
577 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
578 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
579 (read_member_functions): Likewise for opname.
580 (read_tilde_fields): Use is_cplus_marker.
581
582 * defs.h (CPLUS_MARKER): Don't define.
583 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
584 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
585 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
586 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
587 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
588
589 * config/i386/tm-i386v4.h: Delete file.
590 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
591 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
592 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
593 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
594 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
595 * config/i386/i386sco5.mt (TM_FILE): Likewise.
596 * config/i386/i386v4.mt (TM_FILE): Likewise.
597 * config/i386/ncr3000.mt (TM_FILE): Likewise.
598
599 2002-10-10 Marko Mlinar <markom@opencores.org>
600
601 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
602 accidentially not commited 2002-10-09
603 * gdbarch.h, gdbarch.c: Re-generate.
604
605 2002-10-09 Marko Mlinar <markom@opencores.org>
606
607 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
608 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
609 * gdbarch.h, gdbarch.c: Re-generate.
610
611 2002-10-08 Petr Sorfa <petrs@caldera.com>
612
613 Revised and re-submitted by John Wolfe <jlw@caldera.com>
614
615 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
616 so we can work on more than one compilation unit at a time. This
617 helps prepare GDB to handle inter-CU die references.
618 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
619 the code to be defined before struct comp_unit_head.
620 (comp_unit_head): Added new members - offset, cu_head,
621 begin_die, next and dwarf2_abbrevs.
622 (dwarf2_abbrevs): Removed single static var; now member of
623 struct comp_unit_head.
624 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
625 members.
626 (psymtab_to_symtab_1): Changed to work with the new
627 struct comp_unit_head.
628 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
629 constructs the dwarf2_abbrevs[] inside the cu_header.
630 (dwarf2_empty_abbrev_table): Now expects a ptr to a
631 dwarf2_abbrev table to clean up.
632 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
633 handling of dwarf2_abbrevs inside the cu_header.
634 (read_partial_die): Now supports the call to the new
635 dwarf2_lookup_abbrev.
636 (read_full_die): Now supports the call to the new
637 dwarf2_lookup_abbrev.
638
639 2002-10-06 Christopher Faylor <cgf@redhat.com>
640
641 * Makefile.in (install-gdbtk): Add missing continuation backslash to
642 insure that shell variables, such as "transformed_name" are propagated
643 to later shell statements in rule.
644
645 2002-10-06 Mark Kettenis <kettenis@gnu.org>
646
647 * config/i386/nm-i386sco.h: Add protection against
648 multiple-inclusion. Include "i386/nm-i386v.h".
649 (REGISTER_U_ADDR): Remove define.
650 (i386_register_u_addr): Remove prototype.
651
652 2002-10-04 Michael Snyder <msnyder@redhat.com>
653
654 * m32r-stub.c (handle_exception): Make sure exception is "trap"
655 before treating it as a single-step event.
656
657 2002-10-03 Adam Fedor <fedor@gnu.org>
658
659 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
660 (objc_demangle): Remove assignment in if statements, Replace
661 free with xfree.
662 (add_msglist): Likewise.
663 (end_msglist): Likewise.
664 (complare_selectors): Likewise.
665 (selectors_info): Likewise.
666 (compare_classes): Likewise.
667 (classes_info): Likewise.
668 (print_object_command): Likewise.
669 (find_objc_msgcall_submethod): Replace PTR with void *.
670 * objc-lang.h: Remove check for __STDC__.
671
672 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
673
674 * ui-out.h (ui_out_field_fmt_int): New prototype.
675 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
676 of field width and alignment.
677 * stack.c (print_frame_info_base): When printing frame level, use
678 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
679 PR gdb/192
680
681 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
682
683 * MAINTAINERS: Add self to Write After Approval list.
684
685 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
686
687 * infcmd.c (interrupt_target_command_wrapper): Delete.
688 (interrupt_target_command): Make non static.
689 (nofp_registers_info): Make static.
690 * stack.c (return_command_wrapper): Delete.
691 (return_command): Make non static.
692
693 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
694
695 * event-top.c (gdb_setup_readline): New function. Code moved from
696 _initialize_event_loop().
697 (_initialize_event_loop): Call gdb_setup_readline().
698
699 2002-10-02 Andrew Cagney <ac131313@redhat.com>
700
701 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
702 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
703 * gdbarch.h, gdbarch.c: Re-generate.
704
705 2002-10-02 Daniel Jacobowitz <drow@mvista.com>
706
707 Fix PR gdb/778
708 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
709 before recursing.
710 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
711 of fill_in_vptr_fieldno.
712
713 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
714
715 * inferior.h (registers_info, stepi_command, nexti_command,
716 continue_command, interrupt_target_command): Export from infcmd.c.
717 * frame.h (args_info, selected_frame_level_changed_hook,
718 return_command): Export from stack.c.
719 * v850ice.c (stepi_command, nexti_command, continue_command): use
720 prototypes from inferior.h.
721 * tracepoint.c (registers_info, args_info, locals_info): Use
722 prototypes from frame.h and inferior.h.
723 * Makefile.in (mi-main.o): Add dependency on frame.h.
724
725 2002-10-02 Andrew Cagney <ac131313@redhat.com>
726
727 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
728 value in register 3 adjusted by ppc_gp0_regnum.
729
730 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
731
732 2002-10-02 Marko Mlinar <markom@opencores.org>
733
734 * MAINTAINERS: Add myself to the Write After Approval list.
735
736 2002-10-01 Alexandre Oliva <aoliva@redhat.com>
737
738 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
739 of the section for the N64 ABI, fixed.
740
741 * config/mips/tm-irix6.h: Include solib.h.
742
743 2002-10-01 Elena Zannoni <ezannoni@redhat.com>
744
745 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
746 GNU operators.
747
748 2002-10-01 Andrew Cagney <ac131313@redhat.com>
749
750 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
751 and that "mi0" syntax has been removed.
752
753 2002-09-30 David Carlton <carlton@math.stanford.edu>
754
755 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
756 * ppc-sysv-tdep.c: #include "gdb_string.h".
757 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
758 pacify GCC.
759
760 2002-10-01 Andrew Cagney <ac131313@redhat.com>
761
762 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
763 "vrsave"'s register number.
764
765 2002-09-30 Andrew Cagney <ac131313@redhat.com>
766
767 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
768 use frame_unwind_signed_register to obtain the PC.
769 (mips_frame_chain): Handle a generic dummy frame.
770 (mips_init_extra_frame_info): When a generic dummy frame, don't
771 re-compute the frame base.
772 (mips_pop_frame): Handle generic dummy frames.
773 (mips_gdbarch_init): When generic dummy frames, set
774 use_generic_dummy_frames, push_dummy_frame to
775 generic_push_dummy_frame, pc_in_call_dummy to
776 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
777 generic_save_dummy_frame_tos.
778
779 2002-09-30 Andrew Cagney <ac131313@redhat.com>
780
781 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
782 against TOP when TOP was explictly set.
783 (generic_push_dummy_frame): Set TOP to zero.
784
785 2002-09-30 Elena Zannoni <ezannoni@redhat.com>
786
787 * event-loop.c (start_event_loop): Rename variable 'result' to
788 'gdb_result', to avoid conflicts with upcoming intepreters changes.
789
790 2002-09-30 Keith Seitz <keiths@redhat.com>
791
792 * gdb-events.sh (selected_thread_changed): New event.
793 * gdb-events.c: Regenerated.
794 * gdb-events.h: Regenerated.
795
796 2002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
797
798 * MAINTAINERS: Add self to Write After Approval list.
799
800 2002-09-30 Fernando Nasser <fnasser@redhat.com>
801
802 * disasm.c: New file.
803 * disasm.h: New file.
804 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
805 (compare_lines): Ditto.
806 (dump_insns): Ditto.
807 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
808 argument.
809 (do_assembly_only): Ditto.
810 (do_disassembly): Renamed to gdb_disassembly and moved to
811 disasm.c. Sdded uiout argument.
812 * Makefile.in: Add new files. Reorder SFILES list. Update
813 dependencies. Include libgdb.a later in the insight executable.
814
815 2002-09-29 Andrew Cagney <ac131313@redhat.com>
816
817 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
818 bfd/elf64-alpha-fbsd.c.
819
820 2002-09-29 Andrew Cagney <ac131313@redhat.com>
821
822 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
823 i386gnu-tdep.c.
824
825 2002-09-29 Andrew Cagney <ac131313@redhat.com>
826
827 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
828 __FUNCTION__.
829 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
830 function name.
831 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
832 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
833 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
834 (S_msg_sig_post_reply): Ditto.
835
836 2002-09-28 Corinna Vinschen <vinschen@redhat.com>
837
838 * sh-tdep.c (sh_use_struct_convention): Use definition according
839 to ABI.
840 (sh_push_arguments): Store in register with correct endianess.
841 (sh_default_store_return_value): Ditto.
842 (sh_gdbarch_init): Set sizeof long double to 8.
843
844 2002-09-27 Mark Kettenis <kettenis@gnu.org>
845
846 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
847 Fix some whitespace problems.
848
849 2002-09-27 David Carlton <carlton@math.stanford.edu>
850
851 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
852 (mcore-tdep.o): Ditto.
853 (ns32k-tdep.o): Ditto.
854 (ns32knbsd-tdep.o): Ditto.
855 (sh3-rom.o): Ditto.
856 (vax-tdep.o): Ditto.
857 * cris-tdep.c: #include "gdb_string.h"
858 * mcore-tdep.c: Ditto.
859 * ns32k-tdep.c: Ditto.
860 * ns32knbsd-tdep.c: Ditto.
861 * sh3-rom.c: Ditto.
862 * vax-tdep.c: Ditto.
863
864 2002-09-27 David Carlton <carlton@math.stanford.edu>
865
866 * config/djgpp/fnchange.lst: Add entries for
867 gdb/testsuite/gdb.c++/m-static files.
868
869 2002-09-27 Jim Wilson <wilson@redhat.com>
870
871 * MAINTAINERS: Add myself to the Write After Approval list.
872
873 2002-09-26 Martin M. Hunt <hunt@redhat.com>
874
875 * mips-tdep.c (find_proc_desc): Initialize startaddr.
876
877
878 2002-09-26 Andrew Cagney <ac131313@redhat.com>
879
880 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
881 frame.
882
883 2002-09-26 Andrew Cagney <ac131313@redhat.com>
884
885 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
886 (rs6000_struct_return_address): Delete variable.
887 (rs6000_store_struct_return): Update.
888 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
889 deprecated_extract_struct_value_address.
890 (rs6000_frame_align): New function.
891 (rs6000_gdbarch_init): Set frame_align.
892
893 2002-09-26 Andrew Cagney <ac131313@redhat.com>
894
895 From Grace Sainsbury <graces@redhat.com>:
896 * Makefile.in (gdbtk-main.o): New target.
897 (gdb.o): New target.
898 (main_h): Define.
899 (main.o): Update dependencies.
900 (gdb$(EXEEXT)): Add gdb.o.
901 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
902 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
903 (SUBDIR_GDBTK_CLEAN): Set.
904 (install-gdbtk): Install the insight binary.
905 (uninstall-gdbtk): New target.
906 (all-gdbtk, clean-gdbtk): New rule.
907 * top.c (use_windows): Default to zero.
908 * main.c: Include "main.h".
909 (main): Delete.
910 (struct captured_main_args): Delete.
911 (gdb_main): New function.
912 * main.h: New file.
913 * gdb.c: New File.
914
915 2002-09-25 Andrew Cagney <cagney@redhat.com>
916
917 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
918 (frame_map_regnum_to_name): New function.
919 (frame_map_name_to_regnum): New function.
920 * frame.h (frame_map_name_to_regnum): Declare.
921 (frame_map_regnum_to_name): Declare.
922 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
923 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
924 * parse.c: Do not include "builtin-regs.h".
925 (target_map_name_to_register): Delete function.
926 (write_dollar_variable): Use frame_map_name_to_regnum.
927 * parser-defs.h (target_map_name_to_register): Delete declaration.
928 * expprint.c: Include "frame.h".
929 (print_subexp): Use frame_map_regnum_to_name.
930 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
931 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
932
933 2002-09-25 Andrew Cagney <ac131313@redhat.com>
934
935 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
936 wasn't saved, and the next innermost frame is a dummy, return the
937 dummy frame's link register.
938
939 2002-09-24 Jim Blandy <jimb@redhat.com>
940
941 Fix from Paul Breed:
942 * main.c (captured_main): Add a `break' after the case for 'b'.
943
944 2002-09-24 Keith Seitz <keiths@redhat.com>
945
946 * varobj.c (c_type_of_child): Use get_target_type instead
947 of TYPE_TARGET_TYPE.
948
949 2002-09-22 Fernando Nasser <fnasser@redhat.com>
950
951 * source.c (get_current_or_default_source_symtab_and_line): Remove
952 function.
953 (set_default_source_symtab_and_line): New function. Attempts to
954 determine a source file to list lines from if one is not currently
955 defined.
956 (get_current_source_symtab_and_line): Initialize sal.pc and
957 sal.end fields.
958 (set_current_source_symtab_and_line): Mark argument as const.
959 * source.h: Update declarations and comments.
960 * linespec.c (decode_line_1): Replace call to removed routine above.
961 * stack.c (print_frame_info_base): Ditto.
962 * cli/cli-cmds.c (edit_command): Ditto.
963 (list_command): Ditto.
964
965 2002-09-22 Fernando Nasser <fnasser@redhat.com>
966
967 * source.c (get_current_or_default_source_symtab_and_line): Initialize
968 sal.pc and sal.end fields.
969 (get_current_or_default_source_symtab_and_line): Ditto.
970 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
971 so we do not cause a new source symtab to be searched for (reverting an
972 unintentional change from the 2002-09-20 patch).
973 * scm-lang.c (scm_unpac): Ditto.
974
975 2002-09-21 Andrew Cagney <cagney@redhat.com>
976
977 * complaints.c (symfile_explanations): Remove new-line from
978 ``isolated_message''.
979 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
980 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
981
982 2002-09-20 Nick Clifton <nickc@redhat.com>
983
984 * NEWS: Announce that V850EA ISA is no longer supported.
985 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
986
987 2002-09-20 David Carlton <carlton@math.stanford.edu>
988
989 * Makefile.in (c-lang.o): Correct dependencies.
990 (utils.o): Gather dependencies.
991 (charset.o): Move.
992 * c-lang.c: #include "gdb_string.h"
993
994 2002-09-20 Fernando Nasser <fnasser@redhat.com>
995
996 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
997 * cli/cli-cmds.c (list_command): New function. Implements the new
998 cli edit command.
999 (_init_cli_cmds): Add new command definition.
1000 * gdb.1: Document edit command.
1001 * doc/gdb.texinfo: Document edit command.
1002
1003 2002-09-20 Fernando Nasser <fnasser@redhat.com>
1004
1005 * source.c: Make global variables current_source_symtab and
1006 current_source_line static.
1007 (list_command): Moved to cli/cli-cmds.c.
1008 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
1009 (get_first_line_listed): New accessor function.
1010 (get_lines_to_list): New accessor function.
1011 (get_current_source_symtab_and_line): New function. Retrieves the
1012 position in the source code that we consider current.
1013 (get_current_or_default_source_symtab_and_line): New function.
1014 Like the above but attempts to determine a default position if one
1015 is not currently defined.
1016 (set_current_source_symtab_and_line): New function. Sets the source
1017 code position considered current and returns the previously set one.
1018 (clear_current_source_symtab_and_line): Reset stored information about
1019 a current source line.
1020 (_initialize_source): Remove registration for the "list" command and
1021 its alias.
1022 * source.h: Add declarations for the new functions above.
1023 * symtab.h: Remove declarations for the global variables mentioned
1024 above.
1025 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
1026 obtain current source line.
1027 * linespec.c (decode_line_1): Ditto.
1028 * macroscope.c (default_macro_scope): Ditto.
1029 * scm-lang.c (scm_unpac): Ditto.
1030 * stack.c (print_frame_info_base): Ditto.
1031 * symfile.c (clear_symtab_users): Ditto.
1032 * symtab.c (decode_line_spec): Ditto.
1033 * cli/cli-cmds.c (list_command): Moved here from source.c.
1034 (ambiguous_line_spec): Moved here from source.c.
1035 (_init_cli_cmds): Add definition for "list" and its alias.
1036 * Makefile.in: Update dependencies.
1037
1038 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
1039
1040 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
1041 with what gcc thinks is correct.
1042
1043 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
1044
1045 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
1046 multiple register push instruction.
1047
1048 2002-09-19 Jim Blandy <jimb@redhat.com>
1049
1050 Add support for distinct host and target character sets.
1051 * charset.c, charset.h: New files.
1052 * c-exp.y: #include "charset.h".
1053 (yylex): Convert character and string literals to the target
1054 character set, before returning them as the semantic value of the
1055 token.
1056 * c-lang.c: #include "charset.h".
1057 (c_emit_char): Use charset-specific methods to recognize
1058 characters with backslash escape forms, to decide which characters
1059 to print literally and which to print using numeric escape
1060 sequences, and to convert target characters to host characters
1061 before printing.
1062 * utils.c: #include "charset.h".
1063 (no_control_char_error): New function.
1064 (parse_escape): Use charset-specific methods to recognize
1065 backslash escapes, parse `control character' notation, and convert
1066 characters from the host character set to the target character set.
1067 * configure.in: Set the default host character set.
1068 Check where to find iconv, and what its argument types might be.
1069 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
1070 * Makefile.in (SFILES): List charset.c.
1071 (COMMON_OBS): List charset.o.
1072 (charset.o): New rule.
1073 (charset_h): New header dependency variable.
1074 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
1075 (LIBICONV): New variable, set by configure.
1076 (CLIBS): Include $(LIBICONV) here.
1077 * aclocal.m4, config.in, configure: Regenerated.
1078
1079 2002-09-19 Joel Brobecker <brobecker@gnat.com>
1080
1081 * ada-exp.y: Add missing semicolons to end rules. Fixes a
1082 bison 1.35 warning.
1083
1084 2002-09-19 Richard Earnshaw <rearnsha@arm.com>
1085
1086 * gdb_mbuild.sh: New file.
1087
1088 2002-09-19 Andrew Cagney <ac131313@redhat.com>
1089
1090 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
1091
1092 2002-09-18 Andrew Cagney <ac131313@redhat.com>
1093
1094 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
1095 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
1096 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
1097 valops.c, value.h: Revert previous change.
1098
1099 2002-09-18 Michael Snyder <msnyder@redhat.com>
1100
1101 Preliminary support for Objective-C:
1102 * defs.h (language_objc): New enum value.
1103 (puts_filtered_tabular): Declaration only, exported from utils.c.
1104 (skip_quoted): Delete, declared in completer.h.
1105 * c-exp.y: Include completer.h.
1106 * p-exp.y: Ditto.
1107 * jv-exp.y: Ditto.
1108 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
1109 New operator enum values.
1110 * language.h (CAST_IS_CONVERSION): Test for language_objc.
1111 * language.c (binop_result_type): Handle language_objc case.
1112 (integral_type, character_type, string_type, boolean_type,
1113 structured_type, binop_type_check): Ditto.
1114 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
1115 (struct objc_specific): Add to general_symbol_info.
1116 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
1117 (SYMBOL_DEMANGLED_NAME): Handle objc case.
1118 * parser-defs.h (struct objc_class_str): New struct type.
1119 (start_msglist, end_msglist, add_msglist): Declaration only,
1120 exported from objc-lang.c.
1121 * value.h (value_of_local, value_nsstring,
1122 call_function_by_hand_expecting_type): Exported from valops.c.
1123 * valops.c (find_function_addr): Export.
1124 (call_function_by_hand_expecting_type): New function.
1125 (value_of_local): New function.
1126 * symfile.c (init_filename_language_table): Add ".m" extension
1127 for Objective-C.
1128 * utils.c (puts_filtered_tabular): New function.
1129 (fprintf_symbol_filtered): Add objc demangling support (disabled).
1130 (set/show demangle): Extend help-string to refer to ObjC.
1131 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
1132 * stabsread.c (symbol_reference_defined): Objective-C symbols
1133 may contain colons: make allowances when scanning stabs strings
1134 for colons.
1135 (objc_find_colon): New function.
1136 * printcmd.c (address_info): If language == objc then print
1137 "self" instead of "this".
1138 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
1139 OP_NSSTRING, and OP_SELF.
1140 (prefixify_subexp): Ditto.
1141 * source.c (print_source_lines): Mention objc in comment.
1142 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
1143 method names.
1144
1145 2002-09-18 Andrew Cagney <ac131313@redhat.com>
1146
1147 * complaints.h: Update copyright.
1148 (struct complaints): Declare.
1149 (struct complaint): Make `message' constant.
1150 (internal_complaint): Declare.
1151 (complaint): Declare.
1152 (complaint_root): Delete declaration.
1153 (symfile_complaints): Delete declaration.
1154 (struct complaints): Add opaque declaration.
1155 (clear_complaints): Add a complaints parameter.
1156 * complaints.c: Update copyright.
1157 (enum complaint_series): Define.
1158 (complaint_root): Delete.
1159 (struct complaints): Define.
1160 (complaint_sentinel, symfile_complaint_book): New variables.
1161 (symfile_explanations, symfile_complaints): New variables.
1162 New variables.
1163 (get_complaints): New function.
1164 (vcomplaint): New function.
1165 (complaint): New function.
1166 (internal_complaint): New function.
1167 (complain): Call vcomplain with symfile_complaint.
1168 (clear_complaints): Rewrite.
1169 (_initialize_complaints): Use add_setshow_command.
1170 * Makefile.in (complaints.o): Update dependencies.
1171 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
1172 to call to clear_complaints.
1173 (new_symfile_objfile, reread_symbols): Ditto.
1174 (oldsyms_complaint): Delete.
1175 (empty_symtab_complaint, unknown_option_complaint): Delete.
1176 (free_named_symtabs): Use complaint instead of complain.
1177
1178 2002-09-18 Michael Snyder <msnyder@redhat.com>
1179
1180 Contributed by Apple Computer, Inc. Merged with current sources
1181 by Adam Fedor <fedor@doc.com> [cagney].
1182
1183 * objc-lang.c: First clean-up round: comments, indentation.
1184 * objc-lang.h: Ditto.
1185 * objc-lang.y: Ditto.
1186
1187 2002-09-18 Andrew Cagney <ac131313@redhat.com>
1188
1189 * maint.c (maintenance_internal_error): Print the parameter as the
1190 error message.
1191 (maintenance_internal_warning): New function.
1192 (_initialize_maint_cmds): Add command `maint internal-warning'.
1193
1194 * defs.h (internal_warning, internal_vwarning): Declare.
1195 * utils.c (struct internal_problem): Define.
1196 (internal_vproblem): New function.
1197 (internal_warning): New function.
1198 (internal_vwarning): New function.
1199 (internal_warning_problem, internal_error_problem): New variables.
1200 (internal_verror): Just call internal_vproblem.
1201
1202 2002-09-18 Michael Snyder <msnyder@redhat.com>
1203
1204 * objc-lang.c: New file, support for Objective-C.
1205 Preliminary check-in, not yet integrated into gdb.
1206 * objc-lang.h: New file.
1207 * objc-exp.y: New file.
1208
1209 2002-09-18 Andrew Cagney <ac131313@redhat.com>
1210
1211 * infrun.c (signal_stop_update): Convert definition to ISO C.
1212 (signal_print_update): Ditto.
1213 (signal_pass_update): Ditto.
1214 * inflow.c (terminal_save_ours): Ditto.
1215
1216 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
1217 comments.
1218
1219 * config/djgpp/fnchange.lst: Handle name clashes between
1220 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
1221 bfd/coff-tic80.c.
1222
1223 * i386-linux-tdep.h: Fix tipo.
1224
1225 2002-09-18 Adam Fedor <fedor@gnu.org>
1226
1227 * MAINTAINERS: Add myself to the Write After Approval list.
1228
1229 2002-09-18 Jim Blandy <jimb@redhat.com>
1230
1231 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
1232 texthigh and textlow to reader-specific structs caused
1233 objfile_relocate to miss them. This is fixable, but the work that
1234 the change was supposed to prepare GDB for never got done anyway.
1235
1236 2002-09-18 David Carlton <carlton@math.stanford.edu>
1237
1238 * MAINTAINERS: Alphabetize Write After Approval list.
1239
1240 2002-09-18 Daniel Jacobowitz <drow@mvista.com>
1241
1242 Fix PR gdb/709
1243 * values.c (value_static_field): Call read_var_value.
1244
1245 2002-09-18 Andrew Cagney <ac131313@redhat.com>
1246
1247 * valops.c (hand_function_call): Align the initial stack pointer
1248 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
1249 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
1250 return value.
1251 * mips-tdep.c (mips_frame_align): New function.
1252 (mips_gdbarch_init): Set frame_align.
1253 * gdbarch.sh (FRAME_ALIGN): New method.
1254 * gdbarch.h, gdbarch.c: Re-generate.
1255
1256 2002-09-18 Michal Ludvig <mludvig@suse.cz>
1257
1258 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
1259 registers.
1260
1261 2002-09-17 Andrew Cagney <ac131313@redhat.com>
1262
1263 * NEWS: Mention that MIPS $fp behavior changed.
1264 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
1265 reference to FP_REGNUM.
1266 (mipsnbsd_cannot_store_register): Ditto.
1267 * mips-linux-nat.c: Update copyright.
1268 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
1269 (mips_linux_cannot_store_register): Ditto.
1270 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
1271 * config/mips/tm-mips.h: Update copyright.
1272 (FP_REGNUM): Delete macro.
1273 (MIPS_REGISTER_NAMES): Replace "fp" with "".
1274 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
1275 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
1276 (mips_r3041_reg_names, mips_r3051_reg_names)
1277 (mips_r3081_reg_names): Replace "fp" with "".
1278 Fix PR gdb/480.
1279
1280 2002-09-17 Theodore A. Roth <troth@verinet.com>
1281
1282 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
1283 generic_read_register_dummy() (PR gdb/703).
1284 (avr_push_return_address): #if 0 out unused vars.
1285 (avr_gdbarch_init): Enable use of avr_push_return_address().
1286
1287 2002-09-17 Michael Snyder <msnyder@redhat.com>
1288
1289 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
1290 RTE will take care of it.
1291
1292 2002-09-17 Andrew Cagney <ac131313@redhat.com>
1293
1294 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
1295 invalid, return SP_REGNUM.
1296
1297 2002-09-17 Michael Snyder <msnyder@redhat.com>
1298
1299 * mips-tdep.c (mips_pop_frame): Read saved values of floating
1300 point registers without sign extension.
1301
1302 2002-09-17 Andrew Cagney <cagney@redhat.com>
1303
1304 * blockframe.c (deprecated_read_register_dummy): Rename
1305 generic_read_register_dummy.
1306 * frame.c (frame_unwind_signed_register): New function.
1307 (frame_unwind_unsigned_register): New function.
1308 * frame.h (frame_unwind_signed_register): Declare.
1309 (frame_unwind_unsigned_register): Declare.
1310 (deprecated_read_register_dummy): Rename
1311 generic_read_register_dummy.
1312
1313 * h8300-tdep.c (h8300_frame_chain): Update.
1314 (h8300_frame_saved_pc): Update.
1315 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
1316 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
1317 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
1318 (s390_frame_chain): Update.
1319 * v850-tdep.c (v850_find_callers_reg): Update.
1320 (v850_frame_saved_pc): Update.
1321 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
1322 (m32r_find_callers_reg): Update.
1323 (m32r_frame_saved_pc): Update.
1324 * sh-tdep.c (sh_find_callers_reg): Update.
1325 (sh64_get_saved_pr): Update.
1326 (sh_init_extra_frame_info): Update.
1327 (sh_init_extra_frame_info): Update.
1328 (sh64_init_extra_frame_info): Update.
1329 (sh64_init_extra_frame_info): Update.
1330 * mcore-tdep.c (mcore_find_callers_reg): Update.
1331 (mcore_frame_saved_pc): Update.
1332 (mcore_init_extra_frame_info): Update.
1333 * i386-tdep.c (i386_frame_saved_pc): Update.
1334 * ia64-tdep.c (ia64_frame_saved_pc): Update.
1335 (ia64_init_extra_frame_info): Update.
1336 (ia64_init_extra_frame_info): Update.
1337 * d10v-tdep.c (d10v_frame_saved_pc): Update.
1338 * cris-tdep.c (cris_init_extra_frame_info): Update.
1339 * avr-tdep.c (avr_frame_chain): Update.
1340 (avr_init_extra_frame_info): Update.
1341 (avr_frame_saved_pc): Update.
1342 * arm-tdep.c (arm_find_callers_reg): Update.
1343 (arm_init_extra_frame_info): Update.
1344 (arm_frame_saved_pc): Update.
1345
1346 2002-09-17 Tom Tromey <tromey@redhat.com>
1347
1348 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
1349 is "'".
1350
1351 2002-09-17 Corinna Vinschen <vinschen@redhat.com>
1352
1353 * MAINTAINERS: Remove "non multi-arched" text from h8300.
1354 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
1355 NEXT_PROLOGUE_INSN.
1356 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
1357 NEXT_PROLOGUE_INSN.
1358
1359 2002-09-16 Joel Brobecker <brobecker@gnat.com>
1360
1361 * osfsolib.c: Remove file, replaced by solib-osf.c.
1362 * Makefile.in: Remove compilation rules for osfsolib.c.
1363
1364 2002-09-16 David Carlton <carlton@math.stanford.edu>
1365
1366 * cp-valprint.c (cp_print_class_method): Correct args to
1367 check_stub_method_group.
1368
1369 2002-09-16 Corinna Vinschen <vinschen@redhat.com>
1370
1371 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
1372 `set architecture'. Unify naming convention of functions.
1373 (h8300_skip_prologue): Improve prologue analysis.
1374 (h8300_push_arguments): Rewritten to more closely match GCC's
1375 bizarre argument-passing behavior, along with the comment describing
1376 said behavior.
1377 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
1378 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
1379 sim, remote-e7000.c, remote-hms.c and remote.c
1380
1381 2002-09-15 Mark Kettenis <kettenis@gnu.org>
1382
1383 * i386-tdep.c (gdb_print_insn_i386): Removed.
1384 (i386_print_insn): New function.
1385 (i386_gdbarch_init): Set print_insn to i386_print_insns.
1386 (_initialize_i386_tdep): Don't initialize tm_print_insn and
1387 tm_print_insn_info.
1388
1389 2002-09-14 Mark Kettenis <kettenis@gnu.org>
1390
1391 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
1392 zero.
1393
1394 2002-09-14 Corinna Vinschen <vinschen@redhat.com>
1395
1396 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
1397 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
1398 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
1399
1400 2002-09-13 Christopher Faylor <cgf@redhat.com>
1401
1402 * win32-nat.c (child_create_inferior): Honor 'tty' command.
1403
1404 2002-09-13 Daniel Jacobowitz <drow@mvista.com>
1405
1406 * gdbtypes.c (check_stub_method): Make static.
1407 (check_stub_method_group): New function.
1408 * gdbtypes.h: Update prototypes.
1409 * cp-support.c: New file.
1410 * cp-support.h: New file.
1411
1412 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
1413 (update_method_name_from_physname): New function.
1414 (read_member_functions): Correct method names for operators
1415 and v3 constructors/destructors. Separate v2 constructors and
1416 destructors.
1417 * Makefile.in (stabsread.o): Update dependencies.
1418 (SFILES): Add cp-support.c.
1419 (COMMON_OBS): Add cp-support.o.
1420 (cp_support_h, cp-support.o): Add.
1421
1422 * cp-valprint.c (cp_print_class_method): Call
1423 check_stub_method_group instead of check_stub_method. Remove
1424 extraneous QUITs.
1425 * p-valprint.c (pascal_object_print_class_method): Likewise.
1426 * valops.c (search_struct_method): Likewise.
1427 (find_method_list, value_struct_elt_for_reference): Likewise.
1428
1429 2002-09-13 Andrew Cagney <cagney@redhat.com>
1430
1431 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
1432 * gdbarch.h, gdbarch.c: Regenerate.
1433
1434 2002-09-13 Andrew Cagney <ac131313@redhat.com>
1435
1436 * frame.c (find_saved_register): Delete function.
1437 * frame.h (find_saved_register): Delete declaration.
1438 Fix PR gdb/631.
1439
1440 Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
1441
1442 * mips-tdep.c (read_next_frame_reg): Re-hack using
1443 frame_register_unwind.
1444
1445 Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
1446
1447 * mips-tdep.c (mips_get_saved_register): Re-hack using
1448 frame_register_unwind.
1449
1450 2002-09-12 Joel Brobecker <brobecker@gnat.com>
1451
1452 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
1453 vector. Will be useful for Interix.
1454 * gdbarch.h, gdbarch.c: Regenerate.
1455
1456 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
1457 name of the malloc function by NAME_OF_MALLOC.
1458
1459 2002-09-12 Joel Brobecker <brobecker@gnat.com>
1460
1461 * value.h (find_function_in_inferior): Add const keyword to
1462 one of the parameters. Allows us to invoke this function with
1463 a const char *.
1464 * valops.c (find_function_in_inferior): Likewise.
1465
1466 2002-09-12 Joel Brobecker <brobecker@gnat.com>
1467
1468 * exec.c (xfer_memory): Fix compilation warning with old versions
1469 of GCC.
1470 * tracepoint.c (trace_find_tracepoint_command): Likewise.
1471
1472 2002-09-12 David Carlton <carlton@math.stanford.edu>
1473
1474 * symtab.h: Run through gdb_indent.h.
1475 Add 2002 to Copyright year list.
1476
1477 2002-09-12 Alan Modra <amodra@bigpond.net.au>
1478
1479 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
1480 mach constants.
1481 * MAINTAINERS: Add myself to write after approval list.
1482
1483 2002-09-11 J. Brobecker <brobecker@gnat.com>
1484
1485 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
1486
1487 2002-09-11 J. Brobecker <brobecker@gnat.com>
1488
1489 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
1490 Interix.
1491
1492 2002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
1493
1494 * procfs.c (do_detach): Clear current signal, not just fault.
1495 Corrects problem with breakpoint trap signal leaking to detached
1496 process on Tru64.
1497
1498 2002-09-10 Michael Snyder <msnyder@redhat.com>
1499
1500 * buildsym.c (finish_block): Protect against null pointer.
1501
1502 2002-09-10 Andrew Cagney <cagney@redhat.com>
1503
1504 * infcmd.c (default_print_registers_info): Send all output to
1505 ``file'' instead of ``gdb_stdout''.
1506
1507 2002-09-10 Michael Snyder <msnyder@redhat.com>
1508
1509 * mips-tdep.c (mips_extract_struct_value_address): Make val a
1510 LONGEST, and use signed register read (addresses are sign-
1511 extended for mips).
1512
1513 2002-09-10 Stephane Carrez <stcarrez@nerim.fr>
1514
1515 * event-loop.c (gdb_do_one_event): Make public.
1516 * event-loop.h (gdb_do_one_event): Declare.
1517
1518 2002-09-10 Jeff Law <law@redhat.com>
1519
1520 * infttrace.c (child_resume): Simplify and rework to avoid
1521 TT_PROC_CONTINUE.
1522
1523 2002-09-09 Fred Fish <fnf@intrinsity.com>
1524
1525 * printcmd.c (print_scalar_formatted): "len" is the number of
1526 target bytes, NOT the number of target bits.
1527
1528 2002-09-09 Elena Zannoni <ezannoni@redhat.com>
1529
1530 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
1531 * top.c (init_main): Set rl_terminal_name.
1532
1533 2002-09-08 Aidan Skinner <aidan@velvet.net>
1534
1535 * ada-lang.c (ada_array_bound, ada_type_match,
1536 _initialize_ada_language): Fix K&R definitions.
1537 * ada-tasks.c (get_current_task): Fix K&R definitions.
1538 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
1539
1540 2002-09-07 Christopher Faylor <cgf@redhat.com>
1541
1542 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
1543 Add XP.
1544
1545 2002-09-06 Mark Kettenis <kettenis@gnu.org>
1546
1547 * i386-tdep.c (i386_register_virtual_type,
1548 i386_register_convertible, i386_register_convert_to_virtual,
1549 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
1550 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
1551 (i386_gdbarch_init): Fix comment. Add comments on calls that set
1552 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
1553 Don't set push_arguments twice.
1554
1555 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
1556 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
1557 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
1558 sigtramp_end to NULL.
1559 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
1560 defines.
1561 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
1562
1563 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
1564 whitespace.
1565
1566 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
1567 * gdbarch.h, gdbarch.c: Re-generate.
1568 * blockframe.c (find_pc_sect_partial_function): Convert to use
1569 SIGTRAMP_START_P predicate.
1570
1571 2002-09-05 Michael Snyder <msnyder@redhat.com>
1572
1573 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
1574 generic_dummy_frame method and old method. Also distinguish
1575 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
1576 (arm_extract_return_value): Use new regcache method.
1577
1578 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
1579 adjustment that doesn't conform to the ABI.
1580 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
1581 saved regcache, not from current regcache.
1582
1583 2002-09-05 Andrew Cagney <ac131313@redhat.com>
1584
1585 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
1586 * README: Update.
1587
1588 2002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
1589
1590 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
1591 if arm_apcs_32 is false.
1592
1593 2002-09-04 Andrew Cagney <ac131313@redhat.com>
1594
1595 GDB 5.3 branch created.
1596
1597 2002-09-03 Theodore A. Roth <troth@verinet.com>
1598
1599 * gdb/avr-tdep.c (avr_gdbarch_init): Use
1600 generic_unwind_get_saved_register.
1601
1602 2002-09-03 David Carlton <carlton@math.stanford.edu>
1603
1604 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
1605 argument (PR gdb/653). Update call to smash_to_method_type.
1606 (read_structure_scope): Update call to dwarf2_add_member_fn.
1607
1608 2002-09-03 Michal Ludvig <mludvig@suse.cz>
1609
1610 * x86-64-linux-tdep.c: Include gdb_string.h
1611 * x86-64-linux-nat.c: Ditto.
1612
1613 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1614
1615 * ada-exp.y (yyname, yyrule): Remap global variables that appear
1616 when YYDEBUG is set to 1.
1617 * c-exp.y: Likewise.
1618 * f-exp.y: Likewise.
1619 * jv-exp.y: Likewise.
1620 * m2-exp.y: Likewise.
1621 * p-exp.y: Likewise.
1622
1623 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1624
1625 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
1626 dependency list.
1627 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
1628 solib_svr4_fetch_link_map_offsets to
1629 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
1630 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
1631 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
1632 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
1633 solib-svr4.o, and solib-legacy.o.
1634 * config/i386/tm-nbsd.h: Include solib.h.
1635
1636 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1637
1638 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
1639 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
1640 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
1641 comment noting that this needs its own target configuration.
1642 * config/i386/nbsd.mt: New file.
1643 * config/i386/nbsdaout.mt: Remove.
1644 * config/i386/nbsdelf.mt: Ditto.
1645 * config/i386/tm-nbsdaout.h: Ditto.
1646
1647 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1648
1649 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
1650 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
1651 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
1652 tdep->sigtramp_end.
1653 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
1654 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
1655 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
1656
1657 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1658
1659 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
1660 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
1661 * i386-tdep.h (i386bsd_init_abi): New prototype.
1662 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
1663 function declaration.
1664 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
1665 for NetBSD-a.out or NetBSD-ELF.
1666 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
1667 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
1668 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
1669 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
1670 and nbsd-tdep.h.
1671 (i386nbsd_pc_in_sigtramp): New function.
1672 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1673 i386nbsd_pc_in_sigtramp.
1674 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
1675 and i386nbsdelf_init_abi OS ABI handlers.
1676 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
1677 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
1678
1679 2002-09-02 Mark Kettenis <kettenis@gnu.org>
1680
1681 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
1682 registers if the target really has them.
1683
1684 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1685
1686 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
1687 than nbsd-tdep.h.
1688
1689 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1690
1691 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
1692 list.
1693 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
1694 (alphanbsd_skip_sigtramp_frame): New functions.
1695 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
1696 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
1697 to alphanbsd_sigcontext_addr.
1698
1699 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1700
1701 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
1702 list.
1703 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
1704 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
1705 nbsd_pc_in_sigtramp.
1706 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
1707 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
1708 * nbsd-tdep.c: Include gdb_string.h.
1709 (nbsd_pc_in_sigtramp): New function.
1710 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
1711 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
1712 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1713 ppcnbsd_pc_in_sigtramp.
1714 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
1715 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1716 shnbsd_pc_in_sigtramp.
1717 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
1718 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
1719 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
1720
1721 2002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
1722
1723 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
1724 watchpoints to NULL.
1725 (insert_breakpoints): set val field of watchpoints if NULL.
1726
1727
1728 2002-08-29 Jim Blandy <jimb@redhat.com>
1729
1730 * symtab.c (lookup_symbol_aux): In the cases where we find a
1731 minimal symbol of an appropriate name and use its address to
1732 select a symtab to read and search, use `name' (as passed to us)
1733 as the demangled name when searching the symtab's global and
1734 static blocks, not the minsym's name.
1735
1736 2002-08-29 Keith Seitz <keiths@redhat.com>
1737
1738 * stack.c (print_frame_info_base): Always set current_source_symtab
1739 and current_source_line.
1740
1741 2002-08-29 Donn Terry <donnte@microsoft.com>
1742
1743 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
1744
1745 2002-08-28 Keith Seitz <keiths@redhat.com>
1746
1747 * stack.c (select_frame): Add FIXME concerning selected-frame
1748 events.
1749 (select_frame_command): Send selected-frame-level-changed
1750 event notification, but only if the level actually changed.
1751 (up_silently_base): Add selected-frame-level-changed event
1752 notification.
1753 (down_silently_base): Likewise.
1754
1755 2002-08-28 Andrew Cagney <ac131313@redhat.com>
1756
1757 * Makefile.in: Update dependencies for all gdb/*.c files.
1758
1759 2002-08-27 Tom Tromey <tromey@redhat.com>
1760
1761 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
1762 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
1763 Update dependencies.
1764 * i387-tdep.c: Include gdb_string.h.
1765 * osabi.c: Likewise.
1766 * i386-linux-nat.c: Likewise.
1767 * lin-lwp.c: Likewise.
1768 * ax-gdb.c: Likewise.
1769 * signals/signals.c: Likewise.
1770 * jv-valprint.c: Likewise.
1771 * p-lang.c: Likewise.
1772 * c-valprint.c: Likewise.
1773 * cp-abi.c: Likewise.
1774
1775 2002-08-27 Elena Zannoni <ezannoni@redhat.com>
1776
1777 * cli/cli-script.h (copy_command_lines): Export.
1778 * breakpoint.c: Include cli/cli-script.h.
1779 * Makefile.in (breakpoint.o): Update dependencies.
1780
1781 2002-08-26 Michael Snyder <msnyder@redhat.com>
1782
1783 * breakpoint.c (insert_breakpoints): Protect all references
1784 to 'process_warning'. Shorten long lines.
1785
1786 2002-08-26 Joel Brobecker <brobecker@gnat.com>
1787
1788 * cli/cli-script.c (copy_command_lines): New function.
1789 * defs.h (copy_command_lines): Export.
1790 * testsuite/gdb.base/commands.exp: New tests for commands
1791 attached to a temporary breakpoint, and for commands that
1792 delete the breakpoint they are attached to.
1793
1794 2002-08-26 Michael Snyder <msnyder@redhat.com>
1795
1796 * breakpoint.c (bpstat_stop_status): Instead of copying the
1797 pointer to the breakpoint commands struct, make a new copy
1798 of the struct and point to that.
1799 (bpstat_clear): Free the commands struct.
1800 (bpstat_clear_actions): Free the commands struct.
1801 (bpstat_do_actions): Free the command actions. Also execute
1802 the local cleanups, instead of deleting them.
1803 (delete_breakpoint): Leave the commands field of the bpstat
1804 chain alone -- it will be freed later.
1805
1806 2002-08-26 Kevin Buettner <kevinb@redhat.com>
1807
1808 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
1809 deleted in 2002-08-20 commit. This function is still used by
1810 ppc-linux-nat.c.
1811
1812 2002-08-26 Keith Seitz <keiths@redhat.com>
1813
1814 * gdb-events.sh: Add selected-frame-level-changed event.
1815 * gdb-events.c: Regenerated.
1816 * gdb-events.h: Regenerated.
1817
1818 2002-08-26 Stephane Carrez <stcarrez@nerim.fr>
1819
1820 Fix PR gdb/393:
1821 * inflow.c (terminal_save_ours): New function to save terminal
1822 settings.
1823 * inferior.h (terminal_save_ours): Declare.
1824 * target.c (debug_to_terminal_save_ours): New function.
1825 (cleanup_target): Defaults to_terminal_save_ours.
1826 (update_current_target): Inherit to_terminal_save_ours.
1827 (setup_target_debug): Set to_terminal_save_ours.
1828 * target.h (target_terminal_save_ours): New to save terminal settings.
1829 (target_ops): New member to_terminal_save_ours.
1830 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
1831 * hpux-thread.c (init_hpux_thread_ops): Likewise.
1832 * inftarg.c (init_child_ops): Likewise.
1833 * m3-nat.c (init_m3_ops): Likewise.
1834 * procfs.c (init_procfs_ops): Likewise.
1835 * wince.c (init_child_ops): Likewise.
1836 * win32-nat.c (init_child_ops): Likewise.
1837 * sol-thread.c (init_sol_thread_ops): Likewise.
1838
1839 2002-08-26 Mark Kettenis <kettenis@gnu.org>
1840
1841 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
1842 use regcache_* functions.
1843 (i386_gdbarch_init): Set store_return_value instead of
1844 deprecated_store_return_value.
1845
1846 * regcache.c (regcache_raw_write_signed,
1847 regcache_raw_write_unsigned): New functions.
1848 * regcache.h (regcache_raw_write_signed,
1849 regcache_raw_write_unsigned): New prototypes.
1850
1851 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1852
1853 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
1854 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
1855 source file dependencies. Cleanup corresponding generator rules.
1856
1857 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1858
1859 * regcache.h (register_offset_hack): Declare.
1860 (regcache_cooked_read_using_offset_hack): Declare.
1861 (regcache_cooked_write_using_offset_hack): Declare.
1862
1863 * regcache.c (register_offset_hack): New function.
1864 (regcache_cooked_read_using_offset_hack): New function.
1865 (regcache_cooked_write_using_offset_hack): New function.
1866 (regcache_dump): Check that the registers, according to their
1867 offset, are packed hard against each other.
1868 (cooked_xfer_using_offset_hack): New function.
1869
1870 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1871
1872 * regcache.c (struct regcache_descr): Add field register_type.
1873 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
1874 in as a parameter
1875 (init_regcache_descr): Initialize register_type. Pass the descr
1876 to init_legacy_regcache_descr. Use register_type instead of
1877 REGISTER_VIRTUAL_TYPE.
1878 (register_type): New function.
1879 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
1880 * regcache.h (register_type): Declare.
1881
1882 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1883
1884 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
1885 instead of deprecated_store_return_value. Fix fallout from
1886 2002-08-23 Andrew Cagney <cagney@redhat.com>.
1887
1888 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1889
1890 * regcache.c (max_register_size): New function.
1891 (init_legacy_regcache_descr): Ensure that max_register_size is
1892 large enough for REGISTER_VIRTUAL_SIZE.
1893 * regcache.h (max_register_size): Declare.
1894
1895 2002-08-24 Andrew Cagney <ac131313@redhat.com>
1896
1897 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
1898 store_return_value.
1899 (e500_extract_return_value): Change type of valbuf pointer to
1900 void.
1901
1902 2002-08-24 Mark Kettenis <kettenis@gnu.org>
1903
1904 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
1905 workaround.
1906
1907 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
1908 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
1909 long long) to prevent compiler warning on 64-bit systems.
1910
1911 2002-08-23 Andrew Cagney <cagney@redhat.com>
1912
1913 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
1914 (DEPRECATED_STORE_RETURN_VALUE): New method.
1915 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
1916 * gdbarch.h, gdbarch.c: Re-generate.
1917
1918 * values.c (set_return_value): Pass current_regcache to
1919 STORE_RETURN_VALUE.
1920 * arch-utils.h (legacy_store_return_value): Declare.
1921 * arch-utils.c (legacy_store_return_value): New function.
1922 (legacy_extract_return_value): Update parameters.
1923
1924 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
1925 STORE_RETURN_VALUE.
1926 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1927 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1928 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1929 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1930 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1931 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1932 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1933 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1934 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1935 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1936
1937 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1938 * i386-tdep.c (i386_extract_return_value): Update.
1939 * arch-utils.c (legacy_extract_return_value): Update.
1940 * frv-tdep.c (frv_gdbarch_init): Update.
1941 * cris-tdep.c (cris_gdbarch_init): Update.
1942 * d10v-tdep.c (d10v_gdbarch_init): Update.
1943 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1944 * m68k-tdep.c (m68k_gdbarch_init): Update.
1945 * mcore-tdep.c (mcore_gdbarch_init): Update.
1946 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1947 * s390-tdep.c (s390_gdbarch_init): Update.
1948 * sparc-tdep.c (sparc_gdbarch_init): Update.
1949 * sh-tdep.c (sh_gdbarch_init): Update.
1950 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1951 * v850-tdep.c (v850_gdbarch_init): Update.
1952 * avr-tdep.c (avr_gdbarch_init): Update.
1953 * ia64-tdep.c (ia64_gdbarch_init): Update.
1954 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1955 * vax-tdep.c (vax_gdbarch_init): Update.
1956 * alpha-tdep.c (alpha_gdbarch_init): Update.
1957 * arm-tdep.c (arm_gdbarch_init): Update.
1958 * mips-tdep.c (mips_gdbarch_init): Update.
1959 * i386-tdep.c (i386_gdbarch_init): Update.
1960
1961 2002-08-23 Andrew Cagney <ac131313@redhat.com>
1962
1963 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
1964 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
1965
1966 2002-08-24 Mark Kettenis <kettenis@gnu.org>
1967
1968 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
1969 problems.
1970
1971 2002-08-23 Joel Brobecker <brobecker@gnat.com>
1972
1973 * infrun.c (handle_inferior_event): Move a comment outside of a
1974 function call, in order to avoid indent reformatting this part
1975 of the code in an unreadable way.
1976
1977 2002-08-23 Grace Sainsbury <graces@redhat.com>
1978
1979 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
1980 when breakpoints fail. Move general breakpoint error messages to
1981 insert_breakpoints.
1982 * breakpoint.c (insert_breakpoints): Change warnings when
1983 breakpoints are nto inserted to specify the type. Remove call to
1984 memory_error when hardware breakpoints can't be inserted. Remove
1985 multiple calls to warning so all messages are sent to the user at
1986 once.
1987 (delete_breakpoints): Make insert error messsages more explicit.
1988
1989 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
1990
1991 * ChangeLog: Move gdbserver entries after GDB 5.2 to
1992 gdbserver/ChangeLog.
1993
1994 2002-08-23 Mark Kettenis <kettenis@gnu.org>
1995
1996 * i386-tdep.c: Include "objfiles.h".
1997 (i386_svr4_init_abi): Set in_solib_call_trampoline and
1998 skip_trampoline_code.
1999 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
2000 (CPLUS_MARKER): Define to '.'.
2001
2002 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
2003 member.
2004 (linux_corefile_thread_callback): Increase args->num_notes.
2005 (linux_make_note_section): Initialize thread_args.num_notes, and
2006 use it to determine whether notes for any threads were created.
2007
2008 2002-08-23 Donn Terry <donnte@microsoft.com>
2009
2010 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
2011 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
2012 and PCUNKILL.
2013 (write_with_trace): Conditionalize out the switch branch handling
2014 PCSHOLD if the corresponding macro is not defined. Likewise for
2015 PRSABORT and PRSTOP.
2016 This change will be needed by the Interix port.
2017
2018 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
2019
2020 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
2021 write_register wherever possible instead of manipulating the
2022 register bytes directly.
2023 Assign VALUE_CONTENTS to a variable and use that.
2024 The GPR numbers are now dependent on the architecture.
2025
2026 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
2027
2028 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
2029 ev_offset fields.
2030 (skip_prologue): Add support for BookE/e500 instructions.
2031 (e500_extract_return_value): New function.
2032 (frame_get_saved_regs): Add support for saving ev registers and
2033 pseudo gpr's.
2034 (e500_store_return_value): New function.
2035 (rs6000_gdbarch_init): Move up default intializations of
2036 deprecated_extract_return_value and store_return_value. Overwrite
2037 init of store_return_value with e500 specific version.
2038 Set extract_return_value for e500.
2039
2040 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
2041
2042 * blockframe.c (generic_call_dummy_register_unwind): Use
2043 regcache_cooked_read to catch cases in which the variable is
2044 stored in a pseudo register.
2045
2046 2002-08-22 Andrew Cagney <cagney@redhat.com>
2047
2048 * NEWS: Mention that the i960 has been made obsolete.
2049 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
2050 i960-tdep.c
2051 (remote-nrom.o): Obsolete target.
2052 (remote-nindy.o, i960-tdep.o): Ditto.
2053 * remote-nrom.c: Make file obsolete.
2054 * remote-nindy.c, remote-vx960.c: Ditto.
2055 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
2056 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
2057 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
2058 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
2059 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
2060 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
2061 i960-*-vxworks* obsolete.
2062 * MAINTAINERS: Note that the i960 is obsolete.
2063
2064 2002-08-21 Corinna Vinschen <vinschen@redhat.com
2065
2066 * aix-thread.c (aix_thread_detach): Disable thread debugging on
2067 detach to allow reinitialization.
2068
2069 2002-08-22 Andrew Cagney <ac131313@redhat.com>
2070
2071 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
2072 attempt).
2073
2074 2002-08-22 Jim Blandy <jimb@redhat.com>
2075
2076 * coffread.c (coff_symfile_read): Don't try to read the line
2077 number table from disk if the image file doesn't have a symbol
2078 table; we'll never actually look at the info anyway, and Windows
2079 ships DLL's with bogus file offsets for the line number data.
2080
2081 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
2082
2083 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
2084 an e500 executable.
2085
2086 2002-08-21 Michael Snyder <msnyder@redhat.com>
2087
2088 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
2089 (MSYMBOL_SIZE): Replace macro with function.
2090 (DEFAULT_MIPS_TYPE): Delete unused macro.
2091 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
2092 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
2093
2094 2002-08-21 Jim Blandy <jimb@redhat.com>
2095
2096 * valops.c (value_cast): Simplify and correct logic for doing a
2097 static cast from a pointer to a base class to a pointer to a
2098 derived class.
2099
2100 2002-08-21 Andrew Cagney <ac131313@redhat.com>
2101
2102 * infcmd.c (default_print_registers_info): Replace
2103 do_registers_info.
2104 (registers_info): Use gdbarch_print_registers_info instead of
2105 DO_REGISTERS_INFO.
2106 * inferior.h (default_print_registers_info): Replace
2107 do_registers_info.
2108 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
2109 (DO_REGISTERS_INFO): Change to a predicate function.
2110 * gdbarch.h, gdbarch.c: Regenerate.
2111
2112 2002-08-21 Keith Seitz <keiths@redhat.com>
2113
2114 * gdb-events.sh: Add target-changed event.
2115 * gdb-events.c: Regenerated.
2116 * gdb-events.c: Regenerated.
2117 * valops.c (value_assign): Add target-changed event notification
2118 to inlval_register, lval_memory, and lval_reg_frame_relative.
2119
2120 2002-08-21 Joel Brobecker <brobecker@gnat.com>
2121
2122 * NEWS: Add an entry regarding the improvement of the next/step
2123 operation on Alpha Tru64 multi-processor machines.
2124
2125 2002-08-21 Andrew Cagney <ac131313@redhat.com>
2126
2127 * Makefile.in: Update dependencies for mi/ cli/ and tui/
2128 directores.
2129 * Makefile.in: Update all _h macro definitions.
2130 * Makefile.in (install-gdbtk): Move to install section.
2131 (rdi-share/libangsd.a): Move to end of file.
2132
2133 2002-08-19 Andrew Cagney <ac131313@redhat.com>
2134
2135 * frame.c (frame_register_unwind): When a register, set addrp to
2136 the register's byte.
2137
2138 2002-08-20 Michael Snyder <msnyder@redhat.com>
2139
2140 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
2141 used locally, so move them from the target machine header to here.
2142 (mips_set_processor_type, mips_register_name, mips32_next_pc,
2143 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
2144 Make static.
2145 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
2146
2147 2002-08-20 Andrew Cagney <cagney@redhat.com>
2148
2149 * NEWS: Mention that the Apollo line was made obsolete.
2150 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
2151 m68*-hp-hpux* obsolete.
2152 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
2153 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
2154 * buildsym.c (make_blockvector): Make static.
2155 * buildsym.h (make_blockvector): Make extern declaration obsolete.
2156 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
2157 (ALLDEPFILES): Remove dstread.c.
2158 (dstread.o): Obsolete make rule.
2159 * dstread.c: Makefile obsolete.
2160 * dst.h: Ditto.
2161 * config/m68k/hp300hpux.mt: Ditto.
2162 * config/m68k/hp300hpux.mh: Ditto.
2163 * config/m68k/hp300bsd.mt: Ditto.
2164 * config/m68k/hp300bsd.mh: Ditto.
2165 * config/m68k/apollo68b.mt: Ditto.
2166 * config/m68k/apollo68v.mh: Ditto.
2167 * config/m68k/apollo68b.mh: Ditto.
2168
2169 2002-08-20 Michael Snyder <msnyder@redhat.com>
2170
2171 * mips-tdep.c (mips_in_return_stub): Make static.
2172 (mips_gdbarch_init): Set in_solib_return_trampoline.
2173 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
2174
2175 2002-08-20 Michael Snyder <msnyder@redhat.com>
2176
2177 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
2178 * gdbarch.c, gdbarch.h: Regenerate.
2179 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
2180 Add.
2181 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
2182
2183 2002-08-20 Michael Snyder <msnyder@redhat.com>
2184
2185 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
2186 (mips_gdbarch_init): Set skip_trampoline_code,
2187 in_solib_call_trampoline.
2188 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
2189 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
2190
2191 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
2192
2193 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
2194
2195 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
2196 vector type for ev registers.
2197 (e500_pseudo_register_read): New function.
2198 (e500_pseudo_register_write): New function.
2199 (e500_dwarf2_reg_to_regnum): New function.
2200 (PPC_UISA_NOFP_SPRS): New macro.
2201 (PPC_EV_REGS): New macro.
2202 (PPC_GPRS_PSEUDO_REGS): New macro.
2203 (registers_e500): New register set for e500.
2204 (variants): Add e500 variant.
2205 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
2206 before setting architectural dependent variations. Initialize ev
2207 registers numbers. Add case for e500 architecture. Set the
2208 number of pseudo registers.
2209
2210 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
2211
2212 * rs6000-tdep.c: Clean up comments.
2213
2214 2002-08-20 Andrew Cagney <cagney@redhat.com>
2215
2216 * h8300-tdep.c: Re-indent file.
2217
2218 2002-08-20 Jim Blandy <jimb@redhat.com>
2219
2220 * Makefile.in (LDFLAGS): Allow the configure script to establish a
2221 default for this.
2222
2223 2002-08-20 Keith Seitz <keiths@redhat.com>
2224
2225 * breakpoints.c (watch_command_1): Use internal breakpoint
2226 when setting a watchpoint_scope breakpoint.
2227
2228 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
2229
2230 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
2231 (build_builtin_type_vec64i): Ditto.
2232 (build_builtin_type_vec128): Ditto.
2233 (build_builtin_type_vec128i): Ditto.
2234
2235 2002-08-19 Michael Snyder <msnyder@redhat.com>
2236
2237 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
2238 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
2239 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
2240 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
2241 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
2242 CALL_DUMMY_ADDRESS): Delete.
2243 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
2244 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
2245 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
2246 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
2247 push_return_address.
2248 (mips_register_raw_size, mips_eabi_use_struct_convention,
2249 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
2250 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
2251 mips_init_extra_frame_info, mips_eabi_push_arguments,
2252 mips_n32n64_push_arguments, mips_push_return_address,
2253 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
2254 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
2255
2256 2002-08-19 Michael Snyder <msnyder@redhat.com>
2257
2258 * mips-tdep.c (mips_frame_num_args): New function.
2259 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
2260 frame_saved_pc, frame_args_address, frame_locals_address,
2261 frame_num_args, and frame_args_skip.
2262 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
2263 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
2264 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
2265 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
2266
2267 2002-08-20 Michael Snyder <msnyder@redhat.com>
2268
2269 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
2270 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
2271 * mips-tdep.c (mips_store_struct_return): New function.
2272 (mips_extract_struct_value_address): New function.
2273 (mips_gdbarch_init): Set store_struct_return and
2274 extract_struct_value_address.
2275
2276 2002-08-20 David Carlton <carlton@math.stanford.edu>
2277
2278 * dwarf2read.c (dwarf2_build_psymtabs): Check that
2279 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
2280 (read_file_scope): Check that line_header is nonzero before
2281 decoding macro information.
2282
2283 2002-08-20 Mark Kettenis <kettenis@gnu.org>
2284
2285 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
2286 flag the general-purpose registers as floating-point on targets
2287 that don't support the floating-point registers.
2288
2289 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
2290
2291 * rs6000-tdep.c (altivec_register_p): Delete.
2292 (rs6000_do_altivec_registers): Delete.
2293 (rs6000_altivec_registers_info): Delete.
2294 (rs6000_do_registers_info): Delete.
2295 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
2296 (rs6000_gdbarch_init): Remove setting of do_registers_info.
2297
2298 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
2299
2300 * infcmd.c (do_registers_info): Print vector registers in hex
2301 format only.
2302 (print_vector_info): Check that printing registers
2303 makes sense.
2304 (print_float_info): Ditto.
2305
2306 2002-08-20 Andrew Cagney <ac131313@redhat.com>
2307
2308 * mips-tdep.c (mips_gdbarch_init): Update.
2309 (mips_o32_extract_return_value): Rewrite.
2310 (mips_o32_store_return_value): Rewrite.
2311 (mips_o32_xfer_return_value): New function.
2312 (mips_xfer_register): Tweak debug print message. Allow for
2313 buf_offset when dumping the value transfered.
2314
2315 2002-08-20 Andrew Cagney <ac131313@redhat.com>
2316
2317 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
2318 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
2319 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
2320 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
2321 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
2322
2323 2002-08-14 Michael Snyder <msnyder@redhat.com>
2324
2325 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
2326
2327 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
2328
2329 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
2330 register.
2331 (P): New macro to define a register as a pseudo register.
2332 (R, R4, R8, R16, FR32, R64, R0): Updated.
2333 (struct variant): Add new fields for number of pseudo registers
2334 and number of total registers.
2335 (tot_num_registers): New macro replacing....
2336 (num_registers): ...deleted macro.
2337 (num_registers): New function.
2338 (num_pseudo_registers): New function.
2339 (variants): Update all variants to intialize new fields correctly.
2340 Postpone initialization of number of pseudo regs and real regs.
2341 (init_variants): New function.
2342 (rs6000_gdbarch_init): Initialize variants. Update calculation of
2343 registers offsets.
2344
2345 2002-08-19 David Carlton <carlton@math.stanford.edu>
2346
2347 * valops.c (search_struct_field): Change error message to treat
2348 return value of 0 from value_static_field as meaning that field is
2349 optimized out.
2350 (value_struct_elt_for_reference): Ditto.
2351 * values.c (value_static_field): Treat an unresolved location the
2352 same as a nonexistent symbol. Fix PR gdb/635.
2353 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
2354 enclosed. Fix PR gdb/574.
2355 * MAINTAINERS: Add self to Write After Approval list.
2356
2357 2002-08-19 Andrew Cagney <ac131313@redhat.com>
2358
2359 * mips-tdep.c (mips_xfer_register): New function.
2360 (mips_n32n64_extract_return_value): Rewrite.
2361 (mips_gdbarch_init): For N32 and N64, set extract_return_value
2362 instead of deprecated_extract_return_value.
2363
2364 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
2365
2366 * rs6000-tdep.c (TDEP): Delete macro.
2367 (branch_dest): Replace use of TDEP macro with its body.
2368 (rs6000_pop_frame): Ditto.
2369 (rs6000_push_arguments): Ditto.
2370 (rs6000_skip_trampoline_code): Ditto.
2371 (rs6000_frame_saved_pc): Ditto.
2372 (rs6000_frame_chain): Ditto.
2373 (rs6000_register_name): Ditto.
2374 (rs6000_register_byte): Ditto.
2375 (rs6000_register_raw_size): Ditto.
2376 (rs6000_register_virtual_type): Ditto.
2377 (rs6000_register_convertible): Ditto.
2378 (rs6000_convert_from_func_ptr_addr): Ditto.
2379
2380 2002-08-19 Daniel Jacobowitz <drow@mvista.com>
2381
2382 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
2383 conditionally.
2384 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
2385 MIPS_LINUX_JB_ELEMENT_SIZE.
2386 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
2387 for MAX_REGISTER_RAW_SIZE arrays.
2388 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
2389 MIPS_LINUX_JB_ELEMENT_SIZE.
2390
2391 2002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
2392
2393 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
2394
2395 2002-08-19 Aidan Skinner <aidan@velvet.net>
2396
2397 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
2398 ada-valprint.c ada-tasks.c.
2399 (YYFILES): Add ada-exp.y.
2400 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
2401 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
2402 (ada-exp.tab.o): New target.
2403
2404 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2405
2406 * regcache.c (regcache_xfer_part): New function.
2407 (regcache_raw_read_part): New function.
2408 (regcache_raw_write_part): New function.
2409 (regcache_cooked_read_part): New function.
2410 (regcache_cooked_write_part): New function.
2411 * regcache.h (regcache_raw_read_part): Declare.
2412 (regcache_raw_write_part): Declare.
2413 (regcache_cooked_read_part): Declare.
2414 (regcache_cooked_write_part): Declare.
2415
2416 2002-08-18 Daniel Jacobowitz <drow@mvista.com>
2417
2418 * remote.c (remote_open_1): Add async_p.
2419 (remote_async_open_1): Delete.
2420 (open_remote_target): Delete.
2421 (remote_open, extended_remote_open): Update calls to remote_open_1.
2422 (remote_async_open, extended_remote_async_open): Call
2423 remote_open_1 instead of remote_async_open_1.
2424
2425 2002-08-19 Mark Kettenis <kettenis@gnu.org>
2426
2427 * blockframe.c: Fix a few coding standard violations.
2428
2429 2002-08-19 Mark Kettenis <kettenis@gnu.org>
2430
2431 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
2432 here from ...
2433 * config/i386/tm-i386sco5.h: ... here. File removed.
2434 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
2435
2436 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
2437 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
2438 (TM_FILE): Set to tm-i386.h.
2439 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
2440 * config/i386/tm-i386v.h: Remove file.
2441 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
2442 instead of "i386/tm-i386v.h".
2443 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
2444 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
2445 "i386/tm-i386v.h".
2446 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
2447 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
2448 "i386/tm-i386.h".
2449
2450 2002-08-18 Mark Kettenis <kettenis@gnu.org>
2451
2452 * config/i386/nm-i386v.h: Add protection against
2453 multiple-inclusion.
2454 (i386_register_u_addr): Remove prototype.
2455 (register_u_addr): New prototype.
2456 (REGISTER_U_ADDR): Redefine accordingly.
2457 * i386v-nat.c: Improve several comments.
2458 (i386_register_u_addr): Change signature and rename to
2459 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
2460 ubase variable.
2461
2462 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2463
2464 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
2465 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
2466 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
2467 deprecated_extract_return_value.
2468 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
2469 rename mips_o32o64_push_arguments.
2470 (mips_gdbarch_init): Update.
2471 (mips_extract_return_value): Delete.
2472 (mips_o32_extract_return_value): Clone mips_extract_return_value.
2473 (mips_o64_extract_return_value): Clone mips_extract_return_value.
2474 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
2475 (mips_n32n64_extract_return_value): Clone
2476 mips_extract_return_value.
2477 (mips_store_return_value): Delete.
2478 (mips_o32_store_return_value): Clone mips_store_return_value.
2479 (mips_o64_store_return_value): Clone mips_store_return_value.
2480 (mips_eabi_store_return_value): Clone mips_store_return_value.
2481 (mips_n32n64_store_return_value): Clone mips_store_return_value.
2482
2483 2002-08-18 Aidan Skinner <aidan@velvet.net>
2484
2485 * ada-lang.c: Use gdb_string.h instead of <string.h>.
2486 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
2487
2488 2002-08-18 Aidan Skinner <aidan@velvet.net>
2489
2490 * ada-lang.c: Run through gdb_indent.sh.
2491 * ada-lang.h: Run through gdb_indent.sh.
2492 * ada-tasks.c: Run through gdb_indent.sh.
2493 * ada-typeprint.c: Run through gdb_indent.sh.
2494 * ada-valprint.c: Run through gdb_indent.sh.
2495
2496 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2497
2498 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
2499 ABI.
2500
2501 2002-08-18 Mark Kettenis <kettenis@gnu.org>
2502
2503 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
2504
2505 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
2506 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
2507
2508 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
2509 write_register_gen instead of write_register_bytes.
2510
2511 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
2512 i[3456]-*-osf1mk* configurations have been made obsolete.
2513 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
2514 i[3456]86-*-osf1mk* hosts obsolete.
2515 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
2516 targets obsolete.
2517 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
2518 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
2519 config/i386/i386m3.mt, config/i386/nm-m3.h,
2520 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
2521 config/i386/i386mk.mh, config/i386/i386mk.mt,
2522 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
2523 obsolete.
2524 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
2525 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
2526 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
2527
2528 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2529
2530 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
2531 (hppa_value_returned_from_stack): Declare.
2532 (hppa_extract_return_value): Declare.
2533 * config/pa/hppa.mt: New file.
2534 * configure.tgt: Recognize hppa*-*-*.
2535 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
2536
2537 2002-08-18 Mark Kettenis <kettenis@gnu.org>
2538
2539 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
2540 comment.
2541
2542 2002-08-17 Mark Kettenis <kettenis@gnu.org>
2543
2544 * top.c (gdb_rl_operate_and_get_next): Make sure
2545 operate-and-get-next functions correctly even when the history
2546 list is completely filled.
2547
2548 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2549
2550 * MAINTAINERS (Target Instruction Set Architectures): Rename
2551 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
2552 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
2553 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
2554 already listed under Host/Native.
2555
2556 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
2557 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
2558 mips*-*-*.
2559
2560 2002-08-17 Andrew Cagney <ac131313@redhat.com>
2561
2562 * config/ia64/ia64.mt: New file.
2563 * config/alpha/alpha.mt: New file.
2564 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
2565 ia64-linux-gnu. Mention that ia64-elf is broken.
2566 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
2567
2568 2002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
2569
2570 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
2571 generic_func_frame_valid instead of func_frame_valid.
2572
2573 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2574
2575 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
2576 procfs appears to be broken when debugging on multi-processor
2577 machines. So enable software single stepping in order to avoid
2578 using the procfs interface to do next/step operations, using
2579 internal breakpoints instead.
2580
2581 * infrun.c (handle_inferior_event): Readjust the stop_pc by
2582 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
2583 make this pc address equal to the value it would have if the
2584 system stepping capability was used. Also set a new flag used
2585 to ensure that we don't readjust the PC one more time later.
2586
2587 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
2588 address by DECR_PC_AFTER_BREAK when software single step is
2589 in use for this architecture, as this has already been taken
2590 care of in handle_inferior_event().
2591
2592 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2593
2594 * infrun.c (handle_inferior_event): Minor reformatting, to make
2595 a rather long condition expression easier to read.
2596
2597 2002-08-16 Andrew Cagney <ac131313@redhat.com>
2598
2599 * Makefile.in (gdbtk.o): Move to end of file.
2600 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
2601 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
2602 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
2603 (gdbtk-wrapper.o, gdbres.o): Ditto.
2604
2605 2002-08-16 Andrew Cagney <ac131313@redhat.com>
2606
2607 * Makefile.in (copying.o): Separate out compile rule.
2608 (hpux-thread.o, procfs.o, signals.o): Ditto.
2609 (v850ice.o, z8k-tdep.o): Ditto.
2610 (tui-file.o): Move to TUI section.
2611 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
2612 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
2613
2614 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2615
2616 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
2617 skip_trampoline_code, for better namespace-proofing.
2618
2619 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
2620
2621 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2622
2623 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
2624
2625 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2626
2627 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
2628 signal, check whether we hit a breakpoint before checking for a
2629 single step breakpoint. Otherwise, GDB fails to notice that a
2630 breakpoint has been hit when stepping onto a breakpoint.
2631
2632 2002-08-16 Keith Seitz <keiths@redhat.com>
2633
2634 * gdb-events.sh (clear_gdb_event_hooks): New function.
2635 * gdb-events.c: Regenerate.
2636 * gdb-events.h: Regenerate.
2637
2638 2002-08-16 Andrew Cagney <ac131313@redhat.com>
2639
2640 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
2641 not_a_sw_breakpoint.
2642 * breakpoint.h (bpstat_stop_status): Add parameter names.
2643
2644 2002-08-16 Grace Sainsbury <graces@redhat.com>
2645
2646 * remote.c (remote_insert_hw_breakpoint)
2647 (remote_remove_hw_breakpoint): Fix calculation of length field
2648 for Z-packet.
2649
2650 2002-08-15 Michael Snyder <msnyder@redhat.com>
2651
2652 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
2653 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
2654 (supply_fpregset): Ditto.
2655
2656 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
2657 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
2658 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
2659 (TARGET_READ_SP): Delete.
2660 (DO_REGISTERS_INFO): Delete.
2661 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
2662 Delete.
2663 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
2664 from macros to functions.
2665
2666 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
2667 (mips_register_convertible, mips_register_convert_to_virtual,
2668 mips_register_convert_to_raw): Make static.
2669 (mips_read_sp): New function.
2670 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
2671 (mips_do_registers_info): Make static.
2672 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
2673 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
2674 (mips_register_convert_from_type, mips_register_convert_to_type):
2675 New functions.
2676 (mips_gdbarch_init): Set up function_start_offset,
2677 register_virtual_size, pc_in_sigtramp.
2678
2679 2002-08-15 Andrew Cagney <ac131313@redhat.com>
2680
2681 * infcmd.c (vector_info): New function.
2682 (_initialize_infcmd): Add command "info vector".
2683 (print_vector_info): New function.
2684
2685 * gdbarch.sh (PRINT_VECTOR_INFO): New method
2686 * gdbarch.h, gdbarch.c: Regenerate.
2687
2688 2002-08-15 Andrew Cagney <ac131313@redhat.com>
2689
2690 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
2691 ``print_all''. Only print vector registers when ``print_all''.
2692
2693 2002-08-15 Andrew Cagney <ac131313@redhat.com>
2694
2695 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
2696 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
2697
2698 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
2699 Add `args' parameter.
2700 * gdbarch.h, gdbarch.c: Regenerate.
2701
2702 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
2703
2704 * infcmd.c (float_info): Call print_float_info.
2705 (print_float_info): New function. By default, print the
2706 floating-point registers.
2707
2708 * arch-utils.h (default_print_float_info): Delete declaration.
2709 * arch-utils.c (default_print_float_info): Delete function.
2710
2711 2002-08-16 Mark Kettenis <kettenis@gnu.org>
2712
2713 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
2714 out define.
2715
2716 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
2717 FRAME.
2718
2719 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
2720 * configure.host: Make i[3456]86-*-aix host obsolete.
2721 * configure.tgt: Make i[3456]86-*-aix target obsolete.
2722 * config/i386/i386aix.mh, config/i386/i386aix.mt,
2723 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
2724 config/i386/xm-i386aix.h: Make files obsolete.
2725 * i386aix-nat.c: Make file obsolete.
2726 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
2727 (i386aix-nat.o): Make target obsolete.
2728
2729 * config/i386/nm-gnu.h: Removed.
2730 * config/i386/nm-i386gnu.h: New file.
2731 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
2732 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
2733 Moved here from ...
2734 * config/i386/tm-i386gnu.h: ... here. Removed.
2735 * config/i386/xm-i386gnu.h: Removed.
2736 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
2737 (NAT_FILE): Set to nm-i386gnu.h.
2738 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
2739 * i386-tdep.c: New file.
2740 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
2741 (i386gnu-tdep.o): Specify dependencies.
2742
2743 2002-08-15 Mark Kettenis <kettenis@gnu.org>
2744
2745 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
2746 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
2747 Adjust a few comments to reflect reality a bit closer.
2748 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
2749 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
2750 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
2751 target_insert_watchpoint, target_remove_watchpoint):
2752 Move defines to ...
2753 * config/i386/nm-i386sco5.h: ... here.
2754 (kernel_u_size): Add prototype. Improve a few comments and add
2755 protection against multiple inclusion.
2756
2757 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
2758 out define.
2759
2760 * uw-thread.c (SP_ARG0): Define if not already defined.
2761 * config/i386/tm-i386.h (SO_ARG0): Remove define.
2762
2763 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
2764
2765 * config/i386/tm-i386.h: Don't include "regcache.h".
2766
2767 * i387-tdep.h (i387_print_float_info): New prototype.
2768 * i387-tdep.c (print_i387_value, print_i387_ext,
2769 print_i387_status_word, print_i387_control_word): Add `struct
2770 ui_file *' argument and use it for output.
2771 (i387_print_float_info): Renamed from i387_float_info. Add
2772 `struct gdbarch *' and `struct ui_file *' arguments and use the
2773 latter for output.
2774 * i386-tdep.c: Include "i387-tdep.h".
2775 (i386_gdbarch_init): Set print_float_info.
2776 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
2777 (FLOAT_INFO): Remove define.
2778
2779 2002-08-13 Michael Snyder <msnyder@redhat.com>
2780
2781 * mips-tdep.c (mips_push_arguments): Rename to
2782 mips_eabi_push_arguments, and tune for EABI.
2783 (MIPS_REGS_HAVE_HOME_P): Delete.
2784 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
2785 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
2786 Delete references to mips_regs_have_home_p.
2787
2788 2002-08-14 Keith Seitz <keiths@redhat.com>
2789
2790 * Makefile.in (install-gdbtk): Create insight plugin directory.
2791 Install plugins.tcl file.
2792
2793 2002-08-14 Keith Seitz <keiths@redhat.com>
2794
2795 * configure.in: Move SUBDIRS to near top of the file so that
2796 --enable options may add things to it.
2797 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
2798 * configure: Regenerate.
2799
2800 2002-08-13 Michael Snyder <msnyder@redhat.com>
2801
2802 * mips-tdep.c (mips_o32o64_push_arguments): New function,
2803 cloned from mips_push_arguments, tuned for o32/o64 ABI.
2804 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
2805
2806 2002-08-13 Andrew Cagney <ac131313@redhat.com>
2807
2808 * vax-tdep.c (vax_get_saved_register): Delete function.
2809 (vax_gdbarch_init): Update.
2810 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
2811 (ns32k_gdbarch_init): Update.
2812 * alpha-tdep.c (alpha_get_saved_register): Delete function.
2813 (alpha_gdbarch_init): Update.
2814
2815 2002-08-13 Andrew Cagney <cagney@redhat.com>
2816
2817 * regcache.c (init_regcache_descr): Overallocate the
2818 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
2819 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
2820 nr_raw_registers.
2821 (set_register_cached): Add range checking assertions. Use
2822 current_regcache.
2823
2824 2002-08-13 Mark Kettenis <kettenis@gnu.org>
2825
2826 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
2827 numbers for MMX registers.
2828
2829 2002-08-13 Andrew Cagney <cagney@redhat.com>
2830
2831 * i386-tdep.c (i386_gdbarch_init): Use
2832 generic_unwind_get_saved_register.
2833
2834 2002-08-13 Kevin Buettner <kevinb@redhat.com>
2835
2836 * procfs.c (procfs_can_use_hw_breakpoint): New function.
2837 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
2838 target vector.
2839 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
2840 Delete. Add comment regarding this now-deleted target method.
2841
2842 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2843
2844 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
2845 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
2846 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
2847 real PC and the page number (if it's within the memory bank window).
2848 (m68hc11_pseudo_register_write): Likewise when saving.
2849 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
2850 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
2851 (m68hc11_register_raw_size): And use 32-bit for it.
2852 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
2853 16K memory bank is used by the prog; also use the virtual pc.
2854
2855 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2856
2857 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
2858 (m68hc11_gdbarch_init): Install it in gdbarch.
2859 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
2860 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
2861 (MSYMBOL_SIZE): New for documentation.
2862 (insn_return_kind): Enum to specify how a function returns.
2863 (frame_extra_info): Cleanup and record the return mode.
2864 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
2865 register in address computation.
2866 (m68hc11_get_return_insn): New to obtain the return instruction used
2867 by the function.
2868 (m68hc11_frame_init_saved_regs): Take into account the return
2869 instruction used by the function for far and interrupt functions.
2870 (m68hc11_init_extra_frame_info): Take into account page register.
2871 (m68hc11_frame_args_address): Adjust according to the return mode.
2872 (show_regs): Print page register only when it's used.
2873
2874 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2875
2876 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
2877 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
2878 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
2879 registers.
2880 (m68hc11_register_raw_size): Likewise.
2881
2882 2002-08-13 Andrew Cagney <cagney@redhat.com>
2883
2884 * i386-tdep.c (i386_register_name): Handle mmx registers.
2885 (mmx_regnum_p): New function.
2886 (i386_mmx_names): New array.
2887 (mmx_num_regs): New variable.
2888 (i386_pseudo_register_read): New function.
2889 (i386_pseudo_register_write): New function.
2890 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
2891
2892 * regcache.c (regcache_raw_read_unsigned): New function.
2893 (regcache_raw_read_signed): New function.
2894 * regcache.h (regcache_raw_read_unsigned): Declare.
2895 (regcache_raw_read_signed): Declare.
2896
2897 2002-08-13 Andrew Cagney <cagney@redhat.com>
2898
2899 * regcache.c (regcache_raw_read_as_address): Delete function.
2900 (regcache_cooked_read_signed): New function.
2901 (regcache_cooked_read_unsigned): New function.
2902 * regcache.h (regcache_cooked_read_signed): Declare.
2903 (regcache_cooked_read_unsigned): Declare.
2904 (regcache_raw_read_as_address): Delete declaration.
2905
2906 * blockframe.c (generic_read_register_dummy): Use
2907 regcache_cooked_read_unsigned.
2908 * i386-tdep.c (i386_extract_struct_value_address): Use
2909 regcache_cooked_read_unsigned.
2910
2911 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2912
2913 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
2914 double sizes according to ELF ABI flags.
2915 (gdbarch_tdep): Record elf_flags.
2916
2917 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2918
2919 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
2920 (m6812_prolog): They can appear in 68HC12 function prologue.
2921 (m68hc11_frame_chain): Cleanup.
2922
2923 2002-08-12 Andrew Cagney <cagney@redhat.com>
2924
2925 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
2926 declarations.
2927 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
2928 (i386_linux_register_raw_size): Delete function.
2929 (i386_linux_init_abi): Update.
2930 * i386-tdep.c (i386_register_raw_size): Delete function.
2931 (i386_register_byte): Delete function.
2932 (i386_gdbarch_init): Update.
2933 (i386_register_size): Delete array.
2934 (i386_register_offset): Delete array.
2935
2936 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
2937 (REGISTER_RAW_SIZE): Delete macro.
2938 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
2939 (REGISTER_BYTE): Delete macro.
2940
2941 2002-08-11 Aidan Skinner <aidan@velvet.net>
2942
2943 * ada-lang.c (ada_lookup_partial_symbol)
2944 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
2945 prototype names so that grep ^func works properly.
2946
2947 * ada-lang.c (ada_array_element_type)
2948 (ada_lookup_partial_symbol): Fix typos in parameter list.
2949
2950 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
2951 Fix prototype names so that grep ^func works properly.
2952
2953 2002-08-10 Andrew Cagney <cagney@redhat.com>
2954 Elena Zannoni <ezannoni@redhat.com>
2955 Martin M. Hunt <hunt@redhat.com>
2956
2957 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
2958 (build_builtin_type_vec128i): Set the vector bit.
2959 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
2960 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
2961 (build_builtin_type_vec64): New function.
2962 (build_builtin_type_vec64i): New function.
2963 (build_gdbtypes): Initialize builtin_type_vec64 and
2964 builtin_type_vec64i.
2965
2966 2002-08-09 Andrew Cagney <cagney@redhat.com>
2967
2968 * regcache.c (regcache_dump): Compare the register offset
2969 with REGISTER_BYTE.
2970 * arch-utils.c (generic_register_byte): New function.
2971 * arch-utils.h (generic_register_byte): Declare.
2972 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
2973 * gdbarch.h, gdbarch.c: Regenerate.
2974
2975 2002-08-09 Andrew Cagney <cagney@redhat.com>
2976
2977 * regcache.c: Include "gdbcmd.h"
2978 (_initialize_regcache): Add commands "maintenance print
2979 registers", "maintenance print raw-registers" and "maintenance
2980 print cooked-registers".
2981 (enum regcache_dump_what): Define.
2982 (dump_endian_bytes): New function.
2983 (regcache_dump): New function.
2984 (regcache_print): New function.
2985 (maintenance_print_registers): New function.
2986 (maintenance_print_raw_registers): New function.
2987 (maintenance_print_cooked_registers): New function.
2988 * Makefile.in (regcache.o): Update dependencies.
2989
2990 2002-08-09 Michael Snyder <msnyder@redhat.com>
2991
2992 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
2993 (mips_push_arguments): Correct some comments. Use paddr_nz
2994 for printing addresses in debug output. Replace static
2995 allocation using MAX_REGISTER_RAW_SIZE with alloca.
2996 (mips_n32n64_push_arguments): New function, cloned from
2997 mips_push_arguments and tuned for the n32/n64 ABI.
2998 (mips_push_register): Buffer needs dynamic allocation.
2999 (mips_print_register): Ditto.
3000 (do_gp_register_row): Ditto.
3001 (mips_store_return_value): Ditto.
3002 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
3003
3004 2002-08-09 Don Howard <dhoward@redhat.com>
3005
3006 * memattr.c (mem_info_command): Print special case of upper bound
3007 as max CORE_ADDR + 1.
3008
3009 2002-08-08 Michael Snyder <msnyder@redhat.com>
3010
3011 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
3012 returns structs by ref if they're too big to fit in two registers.
3013
3014 2002-08-09 Kevin Buettner <kevinb@redhat.com>
3015
3016 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
3017 saved regs value.
3018 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
3019 mips_find_saved_regs().
3020 (mips_pop_frame): Likewise.
3021
3022 2002-08-09 Kevin Buettner <kevinb@redhat.com>
3023
3024 * blockframe.c (frame_saved_regs_register_unwind): Revise
3025 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
3026 frames are in use.
3027
3028 2002-08-09 Grace Sainsbury <graces@redhat.com>
3029
3030 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
3031 T-packets; the 'a' is not taken as a register number.
3032 (remote_check_watch_resources, remote_stopped_by_watchpoint)
3033 (remote_stopped_data_address): New functions; add to target
3034 vector.
3035 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
3036 prototypes to match other implementations of this
3037 function. replace integer argument with pointer -- the length
3038 field in the Z-packet is the length of what is pointed to or 1 if
3039 pointer is null. Add to target vector.
3040 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
3041 target vector.
3042
3043 From Mark Salter:
3044 * remote.c (remote_wait): Add support to extract optional
3045 watchpoint information from T-packet. Ignore unrecognized
3046 optional info in T-packet.
3047 (remote_async_wait): Ditto.
3048
3049 2002-08-09 Corinna Vinschen <vinschen@redhat.com>
3050
3051 * cli/cli-dump.c: Change fopen modes to use binary open modes
3052 as defined in include/fopen-bin.h throughout.
3053
3054 2002-08-08 Michael Snyder <msnyder@redhat.com>
3055
3056 * mips-tdep.c: Minor whitespace and indentation clean-ups.
3057
3058 2002-08-08 Kevin Buettner <kevinb@redhat.com>
3059
3060 * doublest.c (store_floating): Avoid floatformat_from_doublest()
3061 assertion failure by returning early after a warning.
3062
3063 2002-08-08 Kevin Buettner <kevinb@redhat.com>
3064
3065 * mips-tdep.c (mips_find_saved_regs): Make static.
3066 (mips_frame_init_saved_regs): New function.
3067 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
3068 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
3069 (mips_find_saved_regs): Delete declaration.
3070
3071 2002-08-08 Grace Sainsbury <graces@redhat.com>
3072
3073 * remote.c (remote_wait, remote_async_wait): Change
3074 thread_num from int to ULONGEST.
3075 (unpack_varlen_hex): Change result parameter from
3076 int * to ULONGEST *.
3077
3078 2002-08-08 Andrew Cagney <ac131313@redhat.com>
3079
3080 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
3081 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
3082 powerpc*-*-*.
3083 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
3084
3085 2002-08-08 Andrew Cagney <cagney@redhat.com>
3086
3087 * gcore.c (override_derive_stack_segment): Delete variable.
3088 (preempt_derive_stack_segment): Delete function.
3089 (derive_stack_segment): Delete function.
3090 (default_derive_stack_segment): Renamed to derive_stack_segment.
3091 (override_derive_heap_segment): Delete variable.
3092 (preempt_derive_heap_segment): Delete function.
3093 (derive_heap_segment): Delete function.
3094 (default_derive_heap_segment): Rename to derive_heap_segment.
3095
3096 2002-08-06 Michael Snyder <msnyder@redhat.com>
3097
3098 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
3099 * mips-tdep.c (mips_EABI_use_struct_convention,
3100 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
3101 New functions. (mips_use_struct_convention): Delete.
3102 (mips_gdbarch_init): set use_gdbarch_convention.
3103
3104 2002-08-06 Michael Snyder <msnyder@redhat.com>
3105
3106 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
3107 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
3108 mips_o32_reg_struct_has_addr): New functions.
3109 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
3110
3111 2002-08-07 Andrew Cagney <ac131313@redhat.com>
3112
3113 * regcache.c (pseudo_register): Delete function.
3114 (fetch_register): Delete function.
3115 (store_register): Delete function.
3116 (regcache_raw_read, legacy_read_register_gen): Use
3117 target_fetch_registers instead of fetch_register.
3118 (legacy_write_register_gen, regcache_raw_write): Use
3119 target_store_register instead of store_register.
3120 (write_register_bytes): Ditto.
3121
3122 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
3123 (STORE_PSEUDO_REGISTER): Delete.
3124 * gdbarch.h, gdbarch.c: Regenerate.
3125
3126 2002-08-06 Corinna Vinschen <vinschen@redhat.com>
3127
3128 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
3129 write dump file binary.
3130
3131 2002-08-05 Michael Snyder <msnyder@redhat.com>
3132
3133 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
3134 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
3135 (mips_gdbarch_init): Set N32 target to be mips64.
3136
3137 2002-08-06 Kevin Buettner <kevinb@redhat.com>
3138
3139 * frame.c (find_saved_register): Break out of loop once saved
3140 register address is found. Don't mention sparc in loop comment
3141 anymore.
3142
3143 2002-08-06 Kevin Buettner <kevinb@redhat.com>
3144
3145 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
3146 mips_default_saved_regsize to 8.
3147
3148 2002-08-06 Andrew Cagney <ac131313@redhat.com>
3149
3150 * gcore.c: Do not include <sys/procfs.h>.
3151 * Makefile.in (gcore.o): Update dependencies.
3152
3153 2002-08-06 Andrew Cagney <cagney@redhat.com>
3154
3155 * configure.tgt: Make arc-*-* obsolete.
3156 * NEWS: Mention that arc-*-* has been identifed as obsolete.
3157 * MAINTAINERS: Make arc-elf obsolete.
3158 * arc-tdep.c: Make file obsolete.
3159 * config/arc/arc.mt: Ditto.
3160 * config/arc/tm-arc.h: Ditto.
3161
3162 2002-08-05 Theodore A. Roth <troth@verinet.com>
3163
3164 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
3165
3166 2002-08-05 Andrew Cagney <ac131313@redhat.com>
3167
3168 * mcore-tdep.c (mcore_gdbarch_init): Use
3169 generic_unwind_get_saved_register instead of
3170 generic_get_saved_register.
3171 * v850-tdep.c (v850_gdbarch_init): Ditto.
3172 * frv-tdep.c (frv_gdbarch_init): Ditto.
3173 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3174 * s390-tdep.c (s390_gdbarch_init): Ditto.
3175 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
3176 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
3177 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
3178
3179 2002-08-05 Joel Brobecker <brobecker@gnat.com>
3180
3181 * objfiles.h: Add missing #include "symfile.h"
3182
3183 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
3184
3185 2002-08-04 Andrew Cagney <ac131313@redhat.com>
3186
3187 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
3188 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
3189 of FIELD_BITSIZE.
3190
3191 2002-08-04 Daniel Jacobowitz <drow@mvista.com>
3192
3193 * NEWS: Cleanup and nitpick.
3194
3195 2002-08-03 Andrew Cagney <ac131313@redhat.com>
3196
3197 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
3198
3199 2002-08-03 Andrew Cagney <ac131313@redhat.com>
3200
3201 * Makefile.in (gdbtk-bp.o): Update dependencies.
3202 (gdbtk-register.o): Ditto.
3203 (gdbtk-varobj.o): Ditto.
3204
3205 2002-08-03 Andrew Cagney <cagney@redhat.com>
3206
3207 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
3208 m68hc11_fetch_pseudo_register.
3209 (m68hc11_pseudo_register_write): Replace
3210 m68hc11_store_pseudo_register.
3211 (m68hc11_gdbarch_init): Update.
3212
3213 Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
3214
3215 * gdbarch.sh: Include "gdb_string.h".
3216 * gdbarch.c: Regenerate.
3217
3218 * regcache.c: Include "gdb_string.h".
3219 * ax-general.c: Ditto.
3220 * varobj.c: Ditto.
3221 * std-regs.c: Ditto.
3222 * fbsd-proc.c: Ditto.
3223 * thread.c: Ditto.
3224
3225 * Makefile.in (regcache.o): Update dependencies.
3226 (thread.o, gdbarch.o): Ditto.
3227 (ax-general.o, gdbarch.o): Ditto.
3228 (varobj.o, std-regs.o): Ditto.
3229 (fbsd-proc.o): Specify dependencies.
3230
3231 2002-08-02 Andrew Cagney <cagney@redhat.com>
3232
3233 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
3234 regnum.
3235 (regcache_cooked_write): Ditto.
3236
3237 2002-08-02 Andrew Cagney <ac131313@redhat.com>
3238
3239 * regcache.c (regcache_cooked_read): New function.
3240 (regcache_cooked_write): New function.
3241 (read_register_gen): Rewrite using regcache_cooked_read.
3242 (write_register_gen): Rewrite using regcache_cooked_write.
3243
3244 * regcache.h (regcache_cooked_read, regcache_cooked_write):
3245 Declare.
3246
3247 2002-08-02 Andrew Cagney <cagney@redhat.com>
3248
3249 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
3250 Replace the architecture methods register_read and register_write.
3251 * gdbarch.h, gdbarch.c: Regenerate.
3252 * regcache.c (init_regcache_descr): Update.
3253 (read_register_gen): Update.
3254 (write_register_gen): Update.
3255 (supply_register): Update comment.
3256
3257 * sh-tdep.c (sh_gdbarch_init): Update.
3258 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
3259 `regcache' and `gdbarch' parameters. Make `buffer' a void
3260 pointer. Update code.
3261 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
3262 `regcache' and `gdbarch' parameters. Make `buffer' a constant
3263 void pointer. Update code.
3264 (sh64_register_write): Delete.
3265 (sh4_register_read): Delete.
3266 (sh64_register_read): Delete.
3267 (sh4_register_write): Delete.
3268 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
3269 void pointer, `to' parameter a void pointer.
3270 (sh_sh64_register_convert_to_raw): Ditto.
3271
3272 2002-08-01 Kevin Buettner <kevinb@redhat.com>
3273
3274 * mips-tdep.c (mips_register_virtual_type): Use architecture
3275 invariant return values.
3276
3277 2002-08-01 Andrew Cagney <cagney@redhat.com>
3278
3279 * linux-proc.c: Include "gdb_string.h".
3280 * Makefile.in (linux-proc.o): Update dependency list.
3281
3282 2002-08-01 Kevin Buettner <kevinb@redhat.com>
3283
3284 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
3285 comment.
3286
3287 2002-08-01 Grace Sainsbury <graces@redhat.com>
3288
3289 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
3290 to_insert_watchpoint, to_remove_watchpoint,
3291 to_stopped_by_watchpoint, to_stopped_data_address,
3292 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
3293 target vecctor. Define their corresponding macros so they call
3294 them.
3295
3296 * target.c: Add default and debug versions of for
3297 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
3298 to_insert_watchpoint, to_remove_watchpoint,
3299 to_stopped_by_watchpoint, to_stopped_data_address,
3300 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
3301
3302 2002-08-01 Kevin Buettner <kevinb@redhat.com>
3303
3304 * mips-tdep.c (mips_register_virtual_type): New function.
3305 (mips_gdbarch_init): Register mips_register_virtual_type()
3306 with gdbarch machinery.
3307 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
3308 this file instead of tm-bigmips.h.
3309 (MIPS_REGSIZE): Delete this macro.
3310 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
3311 multiarch version in mips-tdep.c will be found.
3312
3313 2002-08-01 Andrew Cagney <cagney@redhat.com>
3314
3315 * NEWS: Menion that CHILL has been made obsolete.
3316
3317 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
3318 * stabsread.c (read_range_type): Ditto.
3319 * gdbtypes.h: Ditto.
3320 * language.c (binop_type_check): Ditto.
3321 (binop_result_type): Ditto.
3322 (integral_type): Ditto.
3323 (character_type): Ditto.
3324 (string_type): Ditto.
3325 (boolean_type): Ditto.
3326 (structured_type): Ditto.
3327 (lang_bool_type): Ditto.
3328 (binop_type_check): Ditto.
3329 * language.h (_LANG_chill): Ditto.
3330 * dwarfread.c (set_cu_language): Ditto.
3331 * dwarfread.c (CHILL_PRODUCER): Ditto.
3332 * dwarfread.c (handle_producer): Ditto.
3333 * expression.h (enum exp_opcode): Ditto.
3334 * eval.c: Ditto for comments.
3335 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
3336 * expprint.c (print_subexp): Ditto.
3337 (print_subexp): Ditto.
3338 * valops.c (value_cast): Ditto.
3339 (search_struct_field): Ditto.
3340 * value.h (COERCE_VARYING_ARRAY): Ditto.
3341 * symfile.c (init_filename_language_table): Ditto.
3342 (add_psymbol_with_dem_name_to_list): Ditto.
3343 * valarith.c (value_binop): Ditto.
3344 (value_neg): Ditto.
3345 * valops.c (value_slice): Ditto.
3346 * symtab.h (union language_specific): Ditto.
3347 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
3348 (SYMBOL_DEMANGLED_NAME): Ditto.
3349 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
3350 * defs.h (enum language): Ditto.
3351 * symtab.c (got_symtab): Ditto.
3352 * utils.c (fprintf_symbol_filtered): Ditto.
3353
3354 * ch-typeprint.c: Make file obsolete.
3355 * ch-valprint.c: Make file obsolete.
3356 * ch-lang.h: Make file obsolete.
3357 * ch-exp.c: Make file obsolete.
3358 * ch-lang.c: Make file obsolete.
3359
3360 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
3361 CHILL_LIB.
3362 (TARGET_FLAGS_TO_PASS): Ditto.
3363 (CHILLFLAGS): Obsolete.
3364 (CHILL): Obsolete.
3365 (CHILL_FOR_TARGET): Obsolete.
3366 (CHILL_LIB): Obsolete.
3367 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
3368 ch-valprint.c.
3369 (HFILES_NO_SRCDIR): Remove ch-lang.h.
3370 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
3371 ch-lang.o.
3372 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
3373 targets.
3374
3375 2002-07-31 Joel Brobecker <brobecker@gnat.com>
3376
3377 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
3378 This does not change anything at the moment, but will be helpful
3379 later when full Ada support is integrated.
3380
3381 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3382
3383 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
3384 help message.
3385
3386 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3387
3388 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
3389 and save it in a local variable. Use variable in later test.
3390
3391 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3392
3393 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
3394 test. (Thanks to Daniel Jacobowitz.)
3395
3396 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3397
3398 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
3399 (mips_abi_strings): Add "n64".
3400 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
3401
3402 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3403
3404 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
3405 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
3406
3407 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3408
3409 * utils.c (host_pointer_to_address, address_to_host_pointer):
3410 Use gdb_assert() instead of explicit call to internal_error().
3411
3412 2002-07-30 Kevin Buettner <kevinb@redhat.com>
3413
3414 * Makefile.in (rs6000-nat.o): Update dependencies.
3415
3416 From Nicholas Duffek:
3417 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
3418 (aix-thread.o): New rule.
3419 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
3420 * config/powerpc/aix432.mh: New file.
3421
3422 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
3423
3424 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
3425 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
3426 (fetch_core_registers, ppc_linux_supply_gregset)
3427 (ppc_linux_supply_fpregset): New functions.
3428 (ppc_linux_regset_core_fns): New.
3429 (_initialize_ppc_linux_tdep): Call add_core_fns.
3430 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
3431 and ppc_linux_supply_gregset.
3432 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
3433 (supply_fpregset): Call ppc_linux_supply_fpregset.
3434 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
3435 corelow.o.
3436 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
3437
3438 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
3439
3440 * symtab.c (lookup_symbol): Demangle before lowercasing.
3441
3442 2002-07-30 Andrew Cagney <ac131313@redhat.com>
3443
3444 * symtab.h: Replace #include "gdb_obstack.h" with opaque
3445 declaration.
3446 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
3447 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
3448 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
3449 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
3450 "gdb_string.h".
3451 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
3452 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
3453 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
3454 (avr-tdep.o, mon960-rom.o): Ditto.
3455 (aout_stabs_gnu_h): Define.
3456 (symtab_h): Remove $(gdb_obstack_h).
3457
3458 2002-07-30 Jim Blandy <jimb@redhat.com>
3459
3460 Patch from David Carlton <carlton@math.stanford.edu>:
3461 * gdbinit.in: Move the `dir' commands that add GDB's own source
3462 directory to the search path to the end, so that the `gdb' source
3463 directory will be searched first.
3464
3465 2002-07-29 Andrew Cagney <ac131313@redhat.com>
3466
3467 * gdb_obstack.h: New file.
3468 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
3469 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
3470 * objfiles.h: Include "gdb_obstack.h".
3471 * Makefile.in (gdb_obstack_h): Define.
3472 (symtab_h): Add $(gdb_obstack_h).
3473 (objfiles_h): Add $(gdb_obstack_h).
3474
3475 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
3476 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
3477 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
3478 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
3479 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
3480 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
3481 * symfile.c, coffread.c, c-typeprint.c: Ditto.
3482 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
3483
3484 * Makefile.in (bcache.o): Update dependencies.
3485 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
3486 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
3487 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
3488 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
3489 (stabsread.o, symfile.o, symmisc.o): Ditto.
3490 (symtab.o, typeprint.o, macroexp.o): Ditto.
3491 (macrotab.o, mdebugread.o): Ditto.
3492 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
3493 (coff_ecoff_h, aout_aout64_h): Define.
3494 (aout_stabs_gnu_h, libaout_h): Define.
3495
3496 2002-07-29 Andrew Cagney <cagney@redhat.com>
3497
3498 * regcache.c (struct regcache_descr): Rename nr_registers to
3499 nr_cooked_registers. Revise comments describing the structure
3500 member fields.
3501 (init_regcache_descr): Update.
3502 (init_legacy_regcache_descr): Update.
3503 (read_register_gen, write_register_gen): When a cooked register in
3504 the raw register range, directly access the value from the raw
3505 register cache.
3506
3507 2002-07-29 Andrew Cagney <ac131313@redhat.com>
3508
3509 * z8k-tdep.c: Do not include "obstack.h".
3510 * h8300-tdep.c, h8500-tdep.c: Ditto.
3511 * m68hc11-tdep.c, sh-tdep.c: Ditto.
3512 * valprint.c, v850-tdep.c: Ditto.
3513 * d10v-tdep.c, mn10300-tdep.c: Ditto.
3514 * mn10200-tdep.c: Ditto.
3515
3516 * Makefile.in (z8k-tdep.o): Update dependencies.
3517 (m68hc11-tdep.o, valprint.o): Ditto.
3518 (v850-tdep.o, d10v-tdep.o): Ditto.
3519 (mn10300-tdep.o, sparc-tdep.o): Ditto.
3520 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
3521 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
3522 (sh_opc_h, gdb_sim_sh_h): Define.
3523 (elf_sh_h, elf_bfd_h): Define.
3524 (opcode_m68hc11_h): Define.
3525 (OPCODES_SRC, OPCODES_DIR): define.
3526 (OPCODES): Use $(OPCODES_DIR).
3527 (gdb_sim_d10v_h): Rename sim_d10v_h.
3528 (gdb_sim_arm_h): Rename sim_arm_h.
3529
3530 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3531
3532 * utils.c (host_pointer_to_address, address_to_host_pointer):
3533 Change internal_error() message to indicate function responsible
3534 for the error.
3535
3536 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3537
3538 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
3539 calls to local_hex_string_custom().
3540
3541 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3542
3543 * irix5-nat.c: Move IRIX shared library support from here...
3544 * solib-irix.c: ...to here. Revised substantially to work with
3545 generic solib framework.
3546
3547 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
3548 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
3549 * mips-irix-tdep.c: New file.
3550
3551 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
3552 (mips-irix-tdep.o, solib-irix.o): New rules.
3553 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
3554 solib-irix.o.
3555 * config/mips/irix6.mt (TDEPFILES): Likewise.
3556 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
3557
3558 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3559
3560 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
3561 disabled (via ``#if 0'') includes.
3562
3563 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3564
3565 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
3566 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
3567 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
3568 Add support for the fpscr register.
3569 * rs6000-nat.c (regmap, fetch_inferior_registers)
3570 (store_inferior_registers, fetch_core_registers): Likewise.
3571
3572 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3573
3574 * rs6000-nat.c (language.h): Include.
3575 (special_regs): Delete this array.
3576 (regmap): New function.
3577 (fetch_register, store_register): Use regmap() to map gdb
3578 register numbers to ptrace register numbers. Also, use
3579 outputs from regmap() to make decisions regarding type of
3580 ptrace() call to make. In particular, don't compare against
3581 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
3582 (fetch_inferior_registers, store_inferior_registers): Where
3583 possible, obtain register numbers from tdep struct. Don't
3584 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
3585 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
3586 (LAST_UISA_SP_REGNUM): Delete.
3587
3588 2002-07-25 Kevin Buettner <kevinb@redhat.com>
3589
3590 * rs6000-nat.c (ppc-tdep.h): Include.
3591 (fetch_registers, store_register, fetch_core_registers): Don't
3592 access registers[] directly. Instead, use supply_register() or
3593 regcache_collect() as appropriate.
3594 (find_toc_address): Format hex address with local_hex_string().
3595
3596 2002-07-25 Andrew Cagney <ac131313@redhat.com>
3597
3598 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
3599 bfd/elf32-frv.c.
3600
3601 2002-07-24 Tom Tromey <tromey@redhat.com>
3602
3603 * jv-exp.y: Marked all strings with _().
3604 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
3605 internal_error.
3606 (MethodInvocation, CastExpression, parse_number, yyerror,
3607 java_type_from_name, push_expression_name, yylex): Typo fixes.
3608
3609 2002-07-24 Daniel Jacobowitz <drow@mvista.com>
3610
3611 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
3612 (tee_file_flush, tee_file_write, tee_file_fputs)
3613 (tee_file_isatty): New.
3614 * ui-file.h (tee_file_new): Add prototype.
3615
3616 2002-07-24 Aidan Skinner <aidan@velvet.net>
3617
3618 * ada-lang.c: Change k&r style function definitions to prototyped
3619 form.
3620 * ada-typeprint.c: Change k&r style function definitions to prototyped
3621 form.
3622 * ada-valprint.c: Change k&r style function definitions to prototyped
3623 form.
3624
3625 2002-07-24 Andrew Cagney <cagney@redhat.com>
3626
3627 * README: Remove reference to remote-bug.
3628 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
3629 remote-bug.c.
3630 (m88k-nat.o): Delete rule.
3631 (m88k-tdep.o): Delete rule.
3632 (remote-bug.o): Delete rule.
3633 * MAINTAINERS: Mark as obsolete.
3634 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
3635 * m88k-tdep.c: Make file obsolete.
3636 * config/m88k/m88k.mh: Ditto.
3637 * config/m88k/delta88v4.mh: Ditto.
3638 * config/m88k/delta88v4.mt: Ditto.
3639 * config/m88k/delta88.mt: Ditto.
3640 * config/m88k/delta88.mh: Ditto.
3641 * remote-bug.c: Ditto.
3642 * config/m88k/tm-delta88.h: Ditto.
3643 * config/m88k/nm-delta88v4.h: Ditto.
3644 * config/m88k/xm-delta88.h: Ditto.
3645 * config/m88k/xm-dgux.h: Ditto.
3646 * config/m88k/tm-m88k.h: Ditto.
3647 * config/m88k/nm-m88k.h: Ditto.
3648 * config/m88k/tm-delta88v4.h: Ditto.
3649 * m88k-nat.c: Ditto.
3650 * cxux-nat.c: Ditto.
3651 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
3652 and m88*-*-* obsolete.
3653 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
3654 m88*-*-* obsolete.
3655
3656 2002-07-24 Andrew Cagney <cagney@redhat.com>
3657
3658 * findvar.c (extract_unsigned_integer): Make `addr' parameter
3659 constant. Same for local pointer variables.
3660 (extract_signed_integer): Ditto.
3661 * defs.h (extract_unsigned_integer): Update.
3662 (extract_signed_integer): Update.
3663
3664 2002-07-24 Andrew Cagney <cagney@redhat.com>
3665
3666 * regcache.c (regcache_raw_write): Change buf parameter to a
3667 constant void pointer.
3668 (regcache_raw_read): Change buf parameter to a void pointer.
3669 (legacy_write_register_gen): Change myaddr parameter a constant
3670 void pointer.
3671 (supply_register): Change val parameter to a const void pointer.
3672 * regcache.h (regcache_raw_write): Update declaration.
3673 (regcache_raw_read): Update declaration.
3674 (supply_register): Update declaration.
3675
3676 2002-07-24 Tom Tromey <tromey@redhat.com>
3677
3678 * defs.h (gdb_readline_wrapper): Declare.
3679 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
3680 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
3681 * top.c (gdb_readline_wrapper): New function.
3682 (command_line_input): Use it.
3683
3684 2002-07-24 Andrew Cagney <cagney@redhat.com>
3685
3686 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
3687 regcache_read and regcache_write.
3688 (regcache_raw_read_as_address): Replace regcache_read_as_address.
3689 * regcache.c: Update.
3690 * sh-tdep.c (sh64_push_arguments): Update comment.
3691 (sh_pseudo_register_read): Update.
3692 (sh_pseudo_register_write): Update.
3693 (sh4_register_read): Update.
3694 (sh4_register_write): Update.
3695 (sh64_pseudo_register_read): Update.
3696 (sh64_pseudo_register_write): Update.
3697 (sh64_register_read): Update.
3698 (sh64_register_write): Update.
3699 * i386-tdep.c (i386_extract_return_value): Update.
3700 (i386_extract_struct_value_address): Update.
3701 (i386_extract_return_value): Update.
3702 * blockframe.c (generic_read_register_dummy): Update.
3703 (generic_call_dummy_register_unwind): Update
3704 * infrun.c (write_inferior_status_register): Update.
3705
3706 2002-07-23 Jim Blandy <jimb@redhat.com>
3707
3708 * parser-defs.h (expression_context_pc): Make this extern.
3709 (Thanks to Michael Snyder.)
3710
3711 2002-07-23 Andrew Cagney <ac131313@redhat.com>
3712
3713 GDB 5.2.1 released from 5.2 branch.
3714 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
3715 * README: Update to mention 5.2.1.
3716
3717 2002-07-23 Mark Salter <msalter@redhat.com>
3718
3719 * remote.c (remote_read_bytes): Fix check for error.
3720
3721 2002-07-22 Kevin Buettner <kevinb@redhat.com>
3722
3723 * aix-thread.c (language.h): Include.
3724 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
3725 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
3726 Print newlines at end of debug messages.
3727 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
3728 (pdc_write_data): Use local_hex_string() instead of %llx formats.
3729
3730 2002-07-22 Kevin Buettner <kevinb@redhat.com>
3731
3732 * aix-thread.c (ppc-tdep.h): Include.
3733 (special_register_p): New function.
3734 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
3735 (store_regs_user_thread): Use register number information from
3736 gdbarch_tdep struct instead of hardcoded offsets relative to
3737 FIRST_UISA_SP_REGNUM.
3738 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
3739 special_register_p() instead of using FPLAST_REGNUM and
3740 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
3741 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
3742 will be MQ's register number.
3743
3744 2002-07-22 Michael Snyder <msnyder@redhat.com>
3745
3746 * aix-thread.c (ops): Rename to aix_thread_ops.
3747 (base_ops): Rename to base_target.
3748 (ops_attach): Rename to aix_thread_attach.
3749 (ops_detach): Rename to aix_thread_detach.
3750 (ops_resume): Rename to aix_thread_detach.
3751 (ops_wait): Rename to aix_thread_wait.
3752 (ops_kill): Rename to aix_thread_kill.
3753 (init_ops): Rename to init_aix_thread_ops.
3754 (ops_fetch_register): Rename to aix_thread_fetch_register.
3755 (ops_store_register): Rename to aix_thread_store_register.
3756 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
3757 (ops_thread_alive): Rename to aix_thread_thread_alive.
3758 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
3759 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
3760 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
3761 (fetch_regs_lib): Rename to fetch_regs_user_thread.
3762 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
3763 (store_regs_lib): Rename to store_regs_user_thread.
3764 (store_regs_kern): Rename to store_regs_kernel_thread.
3765
3766 2002-07-22 Michael Snyder <msnyder@redhat.com>
3767
3768 * aix-thread.c (ops_prepare_to_store): Eliminate.
3769 (init_ops): Don't initialize ops.prepare_to_store.
3770 (store_regs_kern): Pre-fetch register buffers from child,
3771 because some registers may not be in the cache. Copy
3772 regs from register cache only if they are cached.
3773 (store_regs_lib): Copy regs from register cache only
3774 if they are cached.
3775 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
3776 fill_gprs64): Ditto.
3777
3778 2002-07-22 Kevin Buettner <kevinb@redhat.com>
3779
3780 * aix-thread.c (gdb_assert.h): Include.
3781 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
3782 register sizes (from register cache) match size of buffer holding
3783 register data.
3784 (fill_sprs32): Change parameter types to match those in the ptrace()
3785 buffer.
3786 (store_regs_lib): Likewise, but for 32-bit temporary variables.
3787 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
3788
3789 2002-07-22 Michael Snyder <msnyder@redhat.com>
3790
3791 * aix-thread.c (supply_sprs64): Cosmetic change.
3792 (supply_sprs32): Cosmetic change.
3793 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
3794 (fill_sprs64): Use regcache_collect instead of read_register.
3795 (store_regs_lib): Use regcache_collect instead of
3796 read_register. Use fill_sprs32 instead of fill_sprs64,
3797 if debugging a 32-bit architecture.
3798 (store_regs_kern): Use fill_gprs64 etc. to pull the values
3799 out of the register cache, instead of passing a pointer into
3800 the register cache directly to ptrace. Use regcache_collect
3801 insteaad of read_register.
3802 (ops_prepare_to_store): Use target_read_registers instead
3803 of read_register_bytes.
3804
3805 2002-07-20 Aidan Skinner <aidan@velvet.net>
3806
3807 * MAINTAINERS: Add self under write after approval.
3808
3809 2002-07-20 Aidan Skinner <aidan@velvet.net>
3810
3811 * ada-tasks.c: Change k&r style function definitions to prototyped
3812 form.
3813
3814 2002-07-19 Andrew Cagney <ac131313@redhat.com>
3815
3816 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
3817 * x86-64-tdep.c: Include "objfiles.h".
3818 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
3819 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
3820
3821 2002-07-17 Michal Ludvig <michal@suse.cz>
3822
3823 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
3824 (update_context): Initialise cfa variable.
3825
3826 2002-07-17 Michael Snyder <msnyder@redhat.com>
3827
3828 * aix-thread.c: Shorten some long lines.
3829 Bring comments into line with code spec.
3830
3831 2002-07-18 Joel Brobecker <brobecker@gnat.com>
3832
3833 * infrun.c: Re-indent using gdb_indent.sh.
3834
3835 2002-07-18 Joel Brobecker <brobecker@gnat.com>
3836
3837 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
3838 Leave the indentation temporarily untouched, to minimize the diffs.
3839
3840 2002-07-18 Elena Zannoni <ezannoni@redhat.com>
3841
3842 * stabsread.c: Make os9k sections of the code obsolete,
3843 for real this time.
3844 * stabsread.h: Make os9k sections of the code obsolete.
3845
3846 2002-07-18 Michal Ludvig <mludvig@suse.cz>
3847
3848 * linux-low.c (regsets_store_inferior_registers): Add free()
3849 at the end of a loop to prevent memory leak.
3850 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
3851 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
3852 * config/sparc/tm-sp64linux.h: Make the rest of #endif
3853 line a comment.
3854 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
3855
3856 2002-07-17 Jim Blandy <jimb@redhat.com>
3857
3858 * macrocmd.c (info_macro_command): Remove newline from error
3859 message.
3860
3861 2002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
3862
3863 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
3864 (sh_gdbarch_init): Use it for sh-dsp.
3865
3866 2002-07-16 Kevin Buettner <kevinb@redhat.com>
3867
3868 * dwarf2read.c (read_initial_length): Handle older, non-standard,
3869 64-bit DWARF2 format.
3870
3871 2002-07-16 Joel Brobecker <brobecker@gnat.com>
3872
3873 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
3874 <sys/proc.h> when not available.
3875
3876 2002-07-16 Andrew Cagney <ac131313@redhat.com>
3877
3878 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
3879 * stabsread.c: Make os9k sections of the code obsolete.
3880 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
3881 * config/i386/i386os9k.mt: Make file obsolete.
3882 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
3883 (COMMON_OBS): Remove os9kread.o
3884 (SFILES): Remove os9kread.c.
3885 (os9kread.o, remote-os9k.o): Make target obsolete.
3886 * remote-os9k.c: Make file obsolete.
3887 * os9kread.c: Make file obsolete.
3888 * Makefile.in
3889
3890 2002-07-16 Andrew Cagney <ac131313@redhat.com>
3891
3892 * NEWS: Mention that the FR30 has been made obsolete.
3893 * fr30-tdep.c: Make file obsolete.
3894 * config/fr30/tm-fr30.h: Ditto.
3895 * config/fr30/fr30.mt: Ditto.
3896 * configure.tgt: Make fr30-*-elf obsolete.
3897 * MAINTAINERS: Make fr30-elf obsolete.
3898
3899 2002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
3900
3901 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
3902 found is not inside a section.
3903
3904 2002-07-15 Kevin Buettner <kevinb@redhat.com>
3905
3906 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
3907 strerror().
3908 (pdc_realloc): Use xrealloc() instead of realloc().
3909
3910 2002-07-15 Kevin Buettner <kevinb@redhat.com>
3911
3912 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
3913 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
3914 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
3915 macros.
3916
3917 2002-07-15 Kevin Buettner <kevinb@redhat.com>
3918
3919 * aix-thread.c (ptrace_check): Eliminate goto.
3920 (sync_threadlists): Eliminate gotos. Also, fix array overrun
3921 problem.
3922
3923 2002-07-15 Kevin Buettner <kevinb@redhat.com>
3924
3925 * aix-thread.c (gdbcmd.h): Include.
3926 (DEBUG, DBG, DBG2, dbg): Eliminate.
3927 (debug_aix_thread): New static global.
3928 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
3929 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
3930 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
3931 invocations to DBG and DBG2 macros to test against
3932 ``debug_aix_thread'' and call fprintf_unfiltered().
3933 (_initialize_aix_thread): Add new command "set debug aix-thread".
3934
3935 2002-07-15 Andrew Cagney <ac131313@redhat.com>
3936
3937 From Gerhard Tonn <TON@de.ibm.com>:
3938 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
3939 instead of supply_register.
3940
3941 2002-07-15 Andrew Cagney <ac131313@redhat.com>
3942
3943 * dwarf2cfi.c: Include "gdb_assert.h".
3944 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
3945 non-NULL.
3946 (update_context): Do not use __func__. Add missing ``break''.
3947 (update_context): Do not use __func__.
3948
3949 2002-07-15 Elena Zannoni <ezannoni@redhat.com>
3950
3951 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
3952 and its setting. Set gdbarch instruction printing functions
3953 directly. For non-rs6000 case use new function
3954 gdb_print_insn_powerpc.
3955 (gdb_print_insn_powerpc): New function.
3956
3957 2002-07-13 Andrew Cagney <ac131313@redhat.com>
3958
3959 * NEWS: Mention that the d30v has been marked obsolete.
3960 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
3961 * configure.tgt: Mark d30v-*-* as obsolete.
3962 * d30v-tdep.c: Mark file as obsolete.
3963 * config/d30v/d30v.mt: Ditto.
3964 * config/d30v/tm-d30v.h: Ditto.
3965
3966 2002-07-13 Aidan Skinner <aidan@velvet.net>
3967
3968 * ada-tasks.c (add_task_entry): replace calls to
3969 malloc() with xmalloc
3970 * ada-tasks.c (init_task_list): replace calls to free with xfree()
3971
3972 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
3973 ada_finish_decode_line_1, all_sals_for_line
3974 ada_breakpoint_rewrite): replace calls to free() with xfree()
3975
3976 2002-07-12 Kevin Buettner <kevinb@redhat.com>
3977
3978 From Nicholas Duffek (with minor changes by Martin Hunt,
3979 Louis Hamilton, and Kevin Buettner):
3980 * aix-thread.c: New file.
3981
3982 2002-07-12 Petr Sorfa <petrs@caldera.com>
3983
3984 * dwarf2read.c (dwarf2_invalid_attrib_class): New
3985 complaint for invalid attribute class or form.
3986 (read_func_scope): DW_AT_frame_base
3987 better handling of DW_AT_block*.
3988 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
3989 better handling of DW_AT_block*.
3990 (read_common_block): DW_AT_location
3991 better handling of DW_AT_block*.
3992 (read_partial_die): DW_AT_location better handling
3993 of DW_AT_block*.
3994 (new_symbol): DW_AT_external better handling of
3995 DW_AT_block*. Proper initialization of variable
3996 "addr".
3997 (attr_form_is_block): New function that returns true
3998 if the attribute's form is of DW_FORM_block*.
3999
4000 2002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
4001
4002 * valops.c (find_method_list): Remove comment about
4003 removed STATIC_MEMFUNCP argument.
4004 (value_find_oload_method_list): Likewise.
4005
4006 2002-07-12 Kevin Buettner <kevinb@redhat.com>
4007
4008 From Nicholas Duffek:
4009 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
4010 target_new_objfile_hook.
4011
4012 2002-07-12 Kevin Buettner <kevinb@redhat.com>
4013
4014 From Nicholas Duffek:
4015 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
4016 csect.
4017
4018 2002-07-12 Andrew Cagney <cagney@redhat.com>
4019
4020 * MAINTAINERS: Mention --enable-sim-build-warnings.
4021 (m68hc11-elf): Disable sim build warnings.
4022 (m32r-elf): Mark as broken obsolete candidate.
4023 (x86_64-linux-gnu): Mark as buildable with -Werror.
4024 (arm-elf): Change -w to ``,'' which enables warnings but not
4025 -Werror.
4026
4027 2002-07-12 Andrew Cagney <ac131313@redhat.com>
4028
4029 * bcache.h: Update copyright.
4030 (struct bstring, struct bcache): Move definition to "bcache.c".
4031 Replaced by opaque declaration.
4032 (bcache_xfree): Replace free_bcache.
4033 (bcache_xmalloc, bcache_memory_used): Declare.
4034
4035 * bcache.c: Update copyright.
4036 (struct bstring, struct bcache): Moved to here from "bcache.h".
4037 Update comments.
4038 (bcache_xmalloc, bcache_memory_used): New functions.
4039 (bcache_xfree): Replace function free_bcache.
4040
4041 * Makefile.in (objfiles.o): Add $(bcache_h).
4042 (objfiles_h): Remove $(bcache_h).
4043 (symfile.o): Add $(bcache_h).
4044
4045 * symmisc.c: Update copyright.
4046 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
4047 (print_objfile_statistics): Use bcache_memory_used.
4048
4049 * symfile.c: Include "bcache.h".
4050 (reread_symbols): Use bcache_xfree.
4051 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
4052 (add_psymbol_to_list): Pass psymbol_cache by value.
4053 (add_psymbol_with_dem_name_to_list): Ditto.
4054
4055 * objfiles.h: Update copyright.
4056 (struct bcache): Declare opaque. Do not include "bcache.h".
4057 (struct objfile): Change psymbol_cache and macro_cache to ``struct
4058 bcache'' pointers.
4059 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
4060
4061 * objfiles.c: Include "bcache.h". Update copyright.
4062 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
4063 macro_cache.
4064 (free_objfile): Use bcache_xfree.
4065
4066 2002-07-11 Grace Sainsbury <graces@redhat.com>
4067
4068 * monitor.c (monitor_fetch_register): Make name a constant.
4069 (monitor_store_register): Same.
4070
4071 2002-07-11 Daniel Jacobowitz <drow@mvista.com>
4072
4073 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
4074 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
4075 (finish_block) For non-function blocks, hash the symbol table. For
4076 function blocks, mark the symbol table as unhashed.
4077 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
4078 (msymbol_hash_iw): Likewise.
4079 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
4080 value.
4081 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
4082 (lookup_minimal_symbol): Likewise for both.
4083 * symtab.h (struct block): Add `hashtable' flag. Comment the
4084 hashtable.
4085 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
4086 (ALL_BLOCK_SYMBOLS): Update.
4087 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
4088 (struct symbol): Add `hash_next' pointer.
4089 * symtab.c (lookup_block_symbol): Search using the hash table when
4090 possible.
4091 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
4092 (search_symbols, find_addr_symbol): Likewise.
4093
4094 * dstread.c (process_dst_block): Clear hashtable bit for new block.
4095 (read_dst_symtab): Likewise.
4096 * jv-lang.c (get_java_class_symtab): Likewise.
4097 * mdebugread.c: Include "gdb_assert.h".
4098 (shrink_block): Assert that the block being modified is not hashed.
4099 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
4100 * symmisc.c (free_symtab_block): Walk the hash table when freeing
4101 symbols.
4102 (dump_symtab): Recognize hashed blocks.
4103 * printcmd.c (print_frame_args): Assert that function blocks do not
4104 have hashed symbol tables.
4105 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
4106 (fill_in_ada_prototype, debug_print_block): Likewise.
4107 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
4108
4109 2002-07-11 Corinna Vinschen <vinschen@redhat.com>
4110
4111 * stack.c (print_frame): Use result of frame_address_in_block()
4112 instead of fi->pc when evaluating symbols.
4113 (backtrace_command_1): Ditto.
4114
4115 2002-07-11 Andrew Cagney <cagney@redhat.com>
4116
4117 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
4118 Make static.
4119
4120 * arm-tdep.c (arm_register_name): Make return type constant.
4121
4122 2002-07-10 Andrew Cagney <ac131313@redhat.com>
4123
4124 * win32-nat.c (has_detach_ability): Convert to strict ISO C
4125 prototype.
4126 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
4127 * s390-tdep.c (s390_fp_regnum): Ditto.
4128 (s390_read_fp): Ditto.
4129 (s390_pop_frame): Ditto.
4130 (_initialize_s390_tdep): Ditto.
4131 * remote.c (get_remote_state): Ditto.
4132 * procfs.c (mappingflags): Ditto.
4133 * memattr.c (_initialize_mem): Ditto.
4134 * mcore-tdep.c (mcore_pop_frame): Ditto.
4135 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
4136 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
4137 * language.c (set_case_str): Ditto.
4138 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
4139 * frv-tdep.c (new_variant): Ditto.
4140 (frv_stopped_data_address): Ditto.
4141 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
4142 (context_alloc): Ditto.
4143 (frame_state_alloc): Ditto.
4144 (unwind_tmp_obstack_init): Ditto.
4145 (unwind_tmp_obstack_free): Ditto.
4146 (cfi_read_fp): Ditto.
4147 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
4148 (cris_pop_frame): Ditto.
4149 * c-lang.c (scanning_macro_expansion): Ditto.
4150 (finished_macro_expansion): Ditto.
4151 (c_preprocess_and_parse): Ditto.
4152 * gdbarch.sh: Ditto.
4153 * gdbarch.h, gdbarch.c: Regenerate.
4154 * config/mn10200/tm-mn10200.h: Adjust indentation.
4155 * target.c: Adjust indentation.
4156 * symtab.h: Adjust indentation.
4157 * stabsread.h: Adjust indentation.
4158 * remote-es.c: Adjust indentation.
4159 * os9kread.c: Adjust indentation.
4160
4161 2002-07-10 Andrew Cagney <ac131313@redhat.com>
4162
4163 * wince.c (_initialize_wince): Rename _initialize_inftarg.
4164 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
4165
4166 2002-07-10 Grace Sainsbury <graces@redhat.com>
4167
4168 * NEWS: Mention m68k, mcore multi-arching.
4169 * MAINTAINERS: Change status of m68k, mcore to reflect
4170 multi-arching.
4171
4172 2002-07-10 Daniel Jacobowitz <drow@mvista.com>
4173
4174 * valops.c (find_overload_match): Free oload_syms.
4175
4176 2002-07-09 Joel Brobecker <brobecker@gnat.com>
4177
4178 Define HAVE_SYS_PROC_H if sys/proc.h exists
4179 * configure.in: Add check for sys/proc.h
4180 * config.in: Regenerate.
4181 * configure: Regenerate.
4182
4183 2002-07-09 Grace Sainsbury <graces@redhat.com>
4184
4185 * config/m68k/tm-m68k.h: Remove macros wrapped in
4186 #if !GDB_MULTI_ARCH.
4187
4188 2002-07-08 Andrew Cagney <ac131313@redhat.com>
4189
4190 * config.in, configure: Regenerate.
4191
4192 2002-07-08 Mark Kettenis <kettenis@gnu.org>
4193
4194 * dwarf2cfi.c: Include "gcore.h".
4195 (execute_stack_op): Fix implementation of the
4196 DW_OP_deref and DW_OP_deref_size operators by letting do their
4197 lookup in the target.
4198
4199 2002-07-07 Mark Kettenis <kettenis@gnu.org>
4200
4201 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
4202 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
4203 tdep->sc_sp_offset.
4204
4205 2002-07-05 Daniel Jacobowitz <drow@mvista.com>
4206
4207 Fix PR gdb/595, gdb/602
4208 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
4209 Don't call value_cast, just read the vtable pointer; update comments
4210 to match.
4211
4212 2002-07-05 Grace Sainsbury <graces@redhat.com>
4213
4214 * config/mcore/tm-mcore.h: Remove file.
4215 * config/mcore/mcore.mt: Remove definition of TM_FILE
4216 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
4217
4218 2002-07-05 Mark Kettenis <kettenis@gnu.org>
4219
4220 * i386bsd-tdep.c: Include "gdb_string.h".
4221
4222 2002-07-04 Grace Sainsbury <graces@redhat.com>
4223
4224 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
4225 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
4226 mcore-tdep.
4227 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
4228 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
4229 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
4230 (RETVAL_REGNUM): Move macros from tm-mcore.h
4231 (mcore_reg_struct_has_addr): New function.
4232 (mcore_gdbarch_init): Added initializations for the macros removed
4233 from tm-mcore.h.
4234
4235 2002-07-04 Mark Kettenis <kettenis@gnu.org>
4236
4237 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
4238 traditonal string branding within the ELF header.
4239
4240 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
4241
4242 * symtab.c (remove_params): New function.
4243 (make_symbol_overload_list): Use it instead of cplus_demangle.
4244 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
4245
4246 2002-07-04 Mark Kettenis <kettenis@gnu.org>
4247
4248 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
4249
4250 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
4251 New variables.
4252 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
4253 and tdep->sigtramp_end.
4254 * i386obsd-nat.c: New file.
4255 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
4256
4257 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
4258 Don't call get_current_frame().
4259
4260 2002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
4261
4262 * i386-nat.c (child_post_startup_inferior): New function
4263 calling i386_cleanup_dregs if
4264 I386_USE_GENERIC_WATCHPOINTS is defined.
4265 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
4266 conditional to acknowledge that i386-nat.c has its
4267 own child_post_startup_inferior function.
4268
4269 2002-07-04 Mark Kettenis <kettenis@gnu.org>
4270
4271 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
4272 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
4273 instead of MAX_REGISTER_RAW_SIZE.
4274 (i386_extract_return_value, i386_extract_struct_value_address):
4275 Convert to use regcache.
4276 (i386_gdbarch_init): Set max_register_raw_size and
4277 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
4278 Set extract_return_value and extract_struct_value_address instead
4279 of their deprecated variants.
4280
4281 Convert i386 target to generic dummy frames.
4282 * i386-tdep.c: Include "symfile.h".
4283 (i386_frameless_signal_p): Consider a function to be frameless if
4284 the pc points at the first instruction of the function.
4285 (i386_frame_chain): Handle (generic) call dummies.
4286 (i386_frame_saved_pc): Likewise.
4287 (i386_frame_init_saved_regs): Remove code dealing with call
4288 dummies on the stack.
4289 (i386_push_dummy_frame): Removed.
4290 (i386_call_dummy_words): Removed.
4291 (i386_fix_call_dummy): Removed.
4292 (i386_push_return_address): New function.
4293 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
4294 parameter, and don't call get_current_frame.
4295 (i386_pop_frame): New function.
4296 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
4297 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
4298 entry_point_address, set call_dummy_breakpoint_offset to 0, set
4299 call_dummy_length to 0, set call_dummy_words to NULL, set
4300 sizeof_call_dummy_words to 0, set fix_call_dummy to
4301 generic_fix_call_dummy, set pc_in_call_dummy to
4302 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
4303 generic_push_dummy_frame, set push_return_address to
4304 i386_push_return_address and set frame_chain_valid to
4305 generic_file_frame_chain_valid.
4306
4307 2002-07-03 Andrew Cagney <ac131313@redhat.com>
4308
4309 * gdbarch.sh (struct regcache): Add opaque declaration.
4310 (EXTRACT_RETURN_VALUE): New architecture method.
4311 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
4312 * gdbarch.h, gdbarch.c: Regenerate.
4313 * arch-utils.c (legacy_extract_return_value): New function.
4314 * arch-utils.h (legacy_extract_return_value): Declare.
4315 * values.c (value_being_returned): Re-enable code handling
4316 EXTRACT_STRUCT_VALUE_ADDRESS. Move
4317 deprecated_grub_regcache_for_registers call to block handling
4318 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
4319 (EXTRACT_RETURN_VALUE): Do not define.
4320
4321 2002-07-03 Grace Sainsbury <graces@redhat.com>
4322
4323 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
4324 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
4325 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
4326 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
4327 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
4328 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
4329 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
4330 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
4331 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
4332 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
4333 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
4334 argument so the function fits the prototype in the architecture
4335 vector.
4336 (mcore_pop_frame): Remove argument so the function fits the
4337 prototype. Use get_current_frame instead of the argument.
4338 (mcore_push_arguments): Change type of struct_return so the
4339 function can be used in the architecture vector.
4340 (mcore_store_struct_return): Add.
4341 (mcore_frame_init_saved_regs): Add.
4342 (mcore_gdbarch_init): Add function calls to replace the macros
4343 removed from tm-mcore.h
4344
4345 2002-07-03 Andrew Cagney <ac131313@redhat.com>
4346
4347 * infcmd.c (print_return_value): Remove compatibility code calling
4348 deprecated_grub_regcache_for_registers.
4349
4350 * values.c: Include "regcache.h".
4351 (value_being_returned): Update. Use
4352 deprecated_grub_regcache_for_registers to extract the register
4353 buffer address.
4354 * value.h (value_being_returned): Change ``retbuf'' parameter to a
4355 ``struct regcache''.
4356 * Makefile.in (values.o): Add dependency on $(regcache_h).
4357
4358 * inferior.h (run_stack_dummy): Change type of second parameter to
4359 a ``struct regcache''.
4360 * valops.c (hand_function_call): Change type of retbuf to ``struct
4361 regcache''. Allocate using regcache_xmalloc, clean using
4362 make_cleanup_regcache_xfree.
4363 * infcmd.c (run_stack_dummy): Update. Use
4364 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
4365
4366 * regcache.c (do_regcache_xfree): New function.
4367 (make_cleanup_regcache_xfree): New function.
4368 * regcache.h (make_cleanup_regcache_xfree): Declare.
4369
4370 2002-07-03 Martin M. Hunt <hunt@redhat.com>
4371
4372 * event-top.c (command_line_handler): Don't read past
4373 beginning of buffer.
4374
4375 2002-07-03 Martin M. Hunt <hunt@redhat.com>
4376
4377 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
4378 struct frame_id.
4379 (varobj_create): Store frame_id for root.
4380 (varobj_gen_name): Use xasprintf.
4381 (varobj_update): Save and restore frame using get_frame_id() and
4382 frame_find_by_id().
4383 (create_child): Use xasprintf.
4384 (new_root_variable): Initialize frame_id.
4385 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
4386 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
4387 to prevent memory leak.
4388
4389 2002-07-03 Andrew Cagney <ac131313@redhat.com>
4390
4391 * valops.c (hand_function_call): Move declaration of retbuf to
4392 start of function, allocate using malloc, add a cleanup but before
4393 the inf_status cleanup, cleanup the buffer. Rename local variable
4394 old_chain to inf_status_cleanup.
4395
4396 2002-07-03 Martin M. Hunt <hunt@redhat.com>
4397
4398 * top.c (execute_command): Use cmd_func() and cmd_func_p().
4399
4400 * cli/cli-decode.c (cmd_func_p): New function.
4401 (cmd_func): New function.
4402
4403 * command.h: Add cmd_func() and cmd_func_p().
4404
4405 2002-07-03 Grace Sainsbury <graces@redhat.com>
4406
4407 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
4408 (REGISTER_SIZE): Remove.
4409 (MAX_REGISTER_RAW_SIZE): Remove.
4410 (REGISTER_VIRTUAL_TYPE): Remove.
4411 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
4412 (REGISTER_NAME): Remove.
4413 (USE_GENERIC_DUMMY_FRAMES): Remove.
4414 (CALL_DUMMY): Remove.
4415 (CALL_DUMMY_START_OFFSET): Remove.
4416 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
4417 (CALL_DUMMY_LOCATION): Remove.
4418 (FIX_CALL_DUMMY): Remove.
4419 (CALL_DUMMY_ADDRESS): Remove.
4420 (SIZEOF_CALL_DUMMY_WORDS): Remove.
4421 (SAVE_DUMMY_FRAME_TOS): Remove.
4422 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
4423 (mcore_register_virtual_type): New function.
4424 (mcore_register_byte): New function.
4425 (mcore_register_size): New function.
4426 (mcore_register_name): New function.
4427 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
4428 macros removed from tm-mcore.h.
4429 (mcore_dump_tdep): Add.
4430 (_initialize_mcore_tdep): Add gdbarch_register call.
4431
4432 2002-07-03 Mark Kettenis <kettenis@gnu.org>
4433
4434 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
4435 frameless_look_for_prologue, such that we actually call this
4436 function.
4437
4438 2002-07-02 Joel Brobecker <brobecker@gnat.com>
4439
4440 * frame.h (frame_address_in_block): New function.
4441
4442 * blockframe.c (frame_address_in_block): New function extracted
4443 from get_frame_block().
4444 (get_frame_block): Use frame_address_in_block().
4445 (block_innermost_frame): Use frame_address_in_block() to match
4446 the frame pc address against the block boundaries rather than
4447 the frame pc directly. This prevents a failure when a frame pc
4448 is actually a return-address pointing immediately after the end
4449 of the given block.
4450
4451 2002-07-02 Grace Sainsbury <graces@redhat.com>
4452
4453 * MAINTAINERS: Add self under write after approval.
4454
4455 2002-07-02 Grace Sainsbury <graces@redhat.com>
4456
4457 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
4458 used in architecture vector. The default is
4459 m68k_local_breakpoint_from_pc.
4460 (m68k_local_breakpoint_from_pc): Add.
4461 (enum): Add register numbers from tm-m68k.h.
4462 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
4463 vector.
4464 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
4465 GDB_MULTI_ARCH_PARTIAL.
4466 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
4467 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
4468 m68k-tdep.c.
4469 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
4470 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
4471 to enum in m68k-tdep.c
4472
4473 2002-07-02 Joel Brobecker <brobecker@gnat.com>
4474
4475 * solib-osf.c (open_map): Compute the list of shared libraries
4476 loaded by the inferior, rather than the list of libraries loaded
4477 by GDB itself. Otherwise, GDB ends up reading the symbols from
4478 the wrong shared libraries...
4479
4480 2002-07-02 Mark Kettenis <kettenis@gnu.org>
4481
4482 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
4483 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
4484 macros.
4485 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
4486 Remove functions.
4487 (FRAMELESS_SIGNAL): Remove function.
4488 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
4489 i386_linux_saved_pc_after_call): Removed.
4490 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
4491 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
4492 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
4493
4494 * i386-tdep.c (i386_frameless_signal_p): New function.
4495 (i386_frame_chain): Deal with frameless signals.
4496 (i386_sigtramp_saved_sp): New function.
4497 (i386_frame_saved_pc): Deal with frameless signals.
4498 (i386_saved_pc_after_call): Make sure the correct value is
4499 returned just after entry into a sigtramp.
4500 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
4501 i386fbsd4_sc_sp_offset): New variables.
4502 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
4503 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
4504 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
4505 similiar to what we already did for sc_pc_offset.
4506 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
4507 tdep->sc_sp_offset.
4508
4509 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
4510
4511 2002-07-02 Michal Ludvig <mludvig@suse.cz>
4512
4513 * config/i386/tm-x86-64linux.h: New.
4514 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
4515 definitions.
4516 * config/i386/nm-x86-64.h: Rename to ...
4517 * config/i386/nm-x86-64linux.h: ... this one.
4518 * config/i386/x86-64linux.mh: Reflect the above change.
4519
4520 2002-07-01 Mark Kettenis <kettenis@gnu.org>
4521
4522 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
4523 with sigcontext_addr. Add sc_sp_offset.
4524 (i386bsd_sigtramp_saved_pc): Remove prototype.
4525 (i386bsd_sicontext_addr): Add prototype.
4526 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
4527 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
4528 (i386_svr4_sigtramp_saved_pc): Removed.
4529 (i386_svr4_sigcontext_addr): New function.
4530 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
4531 Initialize tdep->sigcontext_addr instead. Initialize
4532 tdep->sc_pc_offset and tdep->sc_sp_offset.
4533 (i386_gdbarch_init): Likewise.
4534 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
4535 any more.
4536 (i386bsd_sigtramp_saved_pc): Remove function.
4537 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
4538 Initialize tdep->sigcontext_addr instead. Initialize
4539 tdep->sc_pc_offset.
4540 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
4541 of tdep->sigtramp_saved_pc.
4542 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
4543 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
4544 instead.
4545
4546 * i386-tdep.c (i386_frameless_function_invocation,
4547 i386_frame_num_args, i386_frame_init_saved_regs,
4548 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
4549 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
4550 i386_extract_return_value, i386_store_return_value,
4551 i386_extract_struct_value_address, i386_register_virtual_type,
4552 i386_register_convertible, i386_register_convert_to_virtual,
4553 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
4554 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
4555 static.
4556
4557 2002-07-01 Mark Kettenis <kettenis@gnu.org>
4558
4559 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
4560
4561 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
4562 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
4563 this macro. Include "value.h".
4564
4565 2002-06-30 Aidan Skinner <aidan@velvet.net>
4566
4567 * ada-exp.tab.c: remove as it's a generated file
4568 * ada-lex.c: remove as it's a generated file
4569
4570 2002-06-30 Mark Kettenis <kettenis@gnu.org>
4571
4572 * config/i386/tm-i386.h (struct frame_info, struct
4573 frame_saved_regs, struct value, struct type): Remove forward
4574 declarations.
4575
4576 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
4577 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
4578 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
4579 (FILL_FPXREGSET): Define.
4580
4581 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
4582
4583 * configure.tgt (i[3456]86-*-openbsd*): Fold into
4584 i[3456]86-*-netbsd* case.
4585 * config/i386/tm-obsd.h: Removed.
4586 * config/i386/obsd.mt: Removed.
4587 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
4588 core-aout.o.
4589 (MH_CFLAGS): Add -DYYDEBUG=0.
4590
4591 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
4592 i386nbsd_sc_pc_offset on OpenBSD too.
4593
4594 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
4595 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
4596 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
4597 define.
4598 * i386bsd-tdep.c: Include "arch-utils.h".
4599 (i386bsd_aout_in_solib_call_trampoline): New function.
4600 (i386bsd_init_abi): Set in_solib_call_trampoline to
4601 i386bsd_aout_in_solib_call_trampoline.
4602 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
4603 in_solib_call_trampoline to generic_in_solib_call_trampoline.
4604
4605 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4606
4607 * macrotab.h: Do not include "obstack.h" or "bcache.h".
4608 (struct obstack, struct bcache): Add opaque declarations.
4609 * Makefile.in (macrotab_h): Update
4610
4611 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4612
4613 * blockframe.c (generic_find_dummy_frame): Change return type to
4614 ``struct regcache''.
4615 (struct dummy_frame): Replace field ``registers'' with regcache, a
4616 struct regcache object.
4617 (generic_find_dummy_frame): Update.
4618 (generic_push_dummy_frame): Update. Use regcache_xfree,
4619 regcache_xmalloc and regcache_cpy.
4620 (generic_pop_dummy_frame): Update. Use regcache_cpy and
4621 regcache_xfree.
4622 (deprecated_generic_find_dummy_frame): Update.
4623 (generic_read_register_dummy): Update. Use
4624 regcache_read_as_address.
4625 (generic_call_dummy_register_unwind): Update. Use regcache_read.
4626 (generic_get_saved_register): Update. Use regcache_read.
4627
4628 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4629
4630 * Makefile.in (objfiles_h): Add $(bcache_h).
4631 * objfiles.h: Include "bcache.h".
4632
4633 * Makefile.in (symtab_h): Remove $(bcache_h).
4634 * symtab.h: Do not include "bcache.h".
4635
4636 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4637
4638 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
4639 generic_func_frame_chain_valid.
4640
4641 2002-06-28 David O'Brien <obrien@FreeBSD.org>
4642
4643 * config/i386/nm-fbsd.h: Include <sys/param.h>.
4644 * config/i386/tm-fbsd.h: Likewise.
4645
4646 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4647
4648 * rs6000-tdep.c (rs6000_gdbarch_init): Use
4649 generic_unwind_get_saved_register.
4650
4651 2002-06-27 Andrew Cagney <ac131313@redhat.com>
4652
4653 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
4654 * regcache.c (supply_register): Add missing argument to
4655 register_buffer call.
4656
4657 2002-06-27 Andrew Cagney <ac131313@redhat.com>
4658
4659 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
4660 Solaris /bin/grep does not not like it. From Peter Schauer.
4661
4662 2002-06-26 Tom Tromey <tromey@redhat.com>
4663
4664 * command.h (add_setshow_cmd): Declare.
4665 (add_setshow_cmd_full): Declare.
4666 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
4667 returns void. Use add_setshow_cmd_full.
4668 (add_setshow_cmd_full): New function.
4669 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
4670 (add_setshow_boolean_cmd): Likewise.
4671
4672 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4673
4674 * config/vax/tm-vax.h: Protect from multiple inclusion.
4675 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
4676 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
4677 * config/vax/tm-vaxbsd.h: ...here. New file.
4678 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
4679
4680 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4681
4682 * config/vax/tm-vax.h (BREAKPOINT): Remove.
4683 (BELIEVE_PCC_PROMOTION): Remove.
4684 (AP_REGNUM): Move to...
4685 * config/vax/nm-vax.h: ...here.
4686 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
4687 (vax_breakpoint_from_pc): New function.
4688 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
4689 and gdbarch_believe_pcc_promotion.
4690
4691 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4692
4693 * Makefile.in (vax_tdep_h): Define.
4694 (vax-tdep.o): Use $(vax_tdep_h).
4695 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
4696 (vax_dump_tdep): New function.
4697 (_initialize_vax_tdep): Register vax_dump_tdep.
4698 * vax-tdep.h: Include osabi.h.
4699 (struct gdbarch_tdep): New.
4700
4701 2002-06-26 Andrew Cagney <cagney@redhat.com>
4702
4703 * frame.h (deprecated_generic_find_dummy_frame): Rename
4704 generic_find_dummy_frame.
4705 * blockframe.c (generic_find_dummy_frame): Make static.
4706 (deprecated_generic_find_dummy_frame): New function.
4707 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
4708 generic_find_dummy_frame with deprecated_find_dummy_frame.
4709 (sh64_nofp_frame_init_saved_regs): Ditto.
4710 (sh_fp_frame_init_saved_regs): Ditto.
4711 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
4712 (s390_frame_chain): Ditto.
4713 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
4714
4715 2002-06-26 Grace Sainsbury <graces@redhat.com>
4716
4717 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
4718 gdbarch vector are at the top.
4719 (NUM_REGS): Remove.
4720 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
4721 (FRAME_ARGS_ADDRESS): Remove.
4722 (FRAME_LOCALS_ADDRESS): Remove.
4723 (FRAME_NUM_ARGS): Remove.
4724 (FRAME_ARGS_SKIP): Remove.
4725 * m68k-tdep.c (enum): Add eumeration of special register numbers.
4726 (m68k_gdbarch_init): Add gdbarch initializations for macros
4727 undefined in tm-m68k.h
4728
4729 2002-06-26 Grace Sainsbury <graces@redhat.com>
4730
4731 * monitor.h: Add the function regname to monitor_ops
4732 structure. This way NUM_REGS does not have to be a constant.
4733 * monitor.c (monitor_fetch_register): Added support for regname
4734 function. The function is called if the array regnames is NULL.
4735 (monitor_store_register): Same.
4736 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
4737 regnames array.
4738 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
4739 cpu32bug_cmds.regname to point to new function.
4740 * abug-rom.c (abug_regname): Same as above.
4741 (init_abug_cmds): Same.
4742 * dbug-rom.c (dbug_regname): Same as above.
4743 (init_dbug_cmds): Same.
4744 * remote-est.c (est_regname): Same.
4745 (init_est_cmds): Same.
4746 * rom68k-rom.c (rom68k_regname): Same.
4747 (init_rom68k_cmds): Same.
4748
4749 2002-06-25 Tom Tromey <tromey@redhat.com>
4750
4751 * breakpoint.c (delete_command): Don't repeat `delete' commands.
4752
4753 2002-06-25 Andrew Cagney <cagney@redhat.com>
4754
4755 * infrun.c (stop_registers): Change variable's type to ``struct
4756 regcache'''.
4757 (xmalloc_inferior_status): Delete function.
4758 (free_inferior_status): Delete function.
4759 (normal_stop): Use regcache_cpy.
4760 (struct inferior_status): Change type of fields ``stop_registers''
4761 and ``registers'' to ``struct regcache''.
4762 (write_inferior_status_register): Use regcache_write.
4763 (save_inferior_status): Instead of calling
4764 xmalloc_inferior_status, allocate the inf_status buffer directly.
4765 Use regcache_dup_no_passthrough and regcache_dup to save the
4766 buffers.
4767 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
4768 Replace the stop_registers regcache instead of overriding it. Use
4769 regcache_xfree. Instead of calling free_inferior_status, xfree
4770 the buffer directly.
4771 (discard_inferior_status): Use regcache_xfree. Instead of calling
4772 free_inferior_status, xfree the buffer directly.
4773 (build_infrun): Use regcache_xmalloc.
4774 (_initialize_infrun): Delete redundant call to build_infrun.
4775
4776 * Makefile.in (infcmd.o): Add $(regcache_h).
4777
4778 * infcmd.c: Include "regcache.h".
4779 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
4780 obtain the address of `stop_registers' register buffer.
4781 (print_return_value): Ditto.
4782
4783 * inferior.h (struct regcache): Add opaque declaration.
4784 (stop_registers): Change variable's declared type to ``struct
4785 regcache''.
4786
4787 2002-06-24 Tom Tromey <tromey@redhat.com>
4788
4789 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
4790 * target.c (initialize_targets): Fixed typo in
4791 trust-readonly-sections `show' documentation.
4792
4793 * main.c: Marked all strings with _().
4794
4795 2002-06-24 Don Howard <dhoward@redhat.com>
4796
4797 * memattr.c (create_mem_region): Treat hi == 0 as a special case
4798 that means max CORE_ADDR+1.
4799 (lookup_mem_region): Ditto.
4800 (mem_info_command): Ditto.
4801
4802 2002-06-24 Grace Sainsbury <graces@redhat.com>
4803
4804 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
4805 (REGISTER_BYTES_OK): Remove.
4806 (REGISTER_BYTES): Remove.
4807 (STORE_STRUCT_RETURN): Remove.
4808 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
4809 (STORE_RETURN_VALUE): Remove.
4810 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
4811 (FRAME_CHAIN): Remove.
4812 (FRAMELESS_FUNCTION_INVOCATION): Remove.
4813 (FRAME_SAVED_PC): Remove.
4814 * m68k-tdep.c (m68k_register_bytes_ok):Add.
4815 (m68k_store_struct_return): Add.
4816 (m68k_deprecated_extract_return_value): Add.
4817 (m68k_deprecated_extract_struct_value_address): Add.
4818 (m68k_store_return_value): Add.
4819 (m68k_frame_chain): Add.
4820 (m68k_frameless_function_invocation): Add.
4821 (m68k_frame_saved_pc): Add.
4822 (m68k_gdbarch_init): added set_gdbarch calls for new
4823 functions and deleted macros.
4824
4825 2002-06-23 Tom Tromey <tromey@redhat.com>
4826
4827 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
4828 (ALLDEPFILES): Likewise.
4829 (udiheaders): Removed.
4830 (udip2soc.o): Likewise.
4831 (udi2go32.o): Likewise.
4832 (udr.o): Likewise.
4833 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
4834
4835 2002-06-22 Andrew Cagney <ac131313@redhat.com>
4836
4837 * infrun.c (_initialize_infrun): Delete unnecessary call to
4838 build_infrun.
4839
4840 * regcache.h: Update comments describing the regcache_cpy family
4841 of functions.
4842 (regcache_save, regcache_restore): Delete declaration.
4843 (regcache_save_no_passthrough): Delete declaration.
4844 (regcache_restore_no_passthrough): Delete declaration.
4845 * regcache.c (regcache_save): Delete function.
4846 (regcache_save_no_passthrough): Delete function.
4847 (regcache_restore): Delete function.
4848 (regcache_restore_no_passthrough): Delete function.
4849
4850 2002-06-21 Andrew Cagney <ac131313@redhat.com>
4851
4852 * config/m68k/tm-m68k.h: Fix typo.
4853 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
4854 (m68k_frame_init_saved_regs): Declare.
4855
4856 2002-06-21 Jim Blandy <jimb@redhat.com>
4857
4858 Remove some vestiges of Harris 88k support.
4859 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
4860 register numbering quirk.
4861 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
4862 odd symbols occurring in Harris 88k ELF targets.
4863
4864 2002-06-21 Tom Tromey <tromey@redhat.com>
4865
4866 * gdb_locale.h: New file.
4867 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
4868 (defs_h): Added gdb_locale.h.
4869 * configure, config.in: Rebuilt.
4870 * configure.in (PACKAGE): Define.
4871 * defs.h: Include gdb_locale.h.
4872 * main.c (captured_main): Call setlocale, bindtextdomain,
4873 textdomain.
4874
4875 2002-06-21 Dave Brolley <brolley@redhat.com>
4876
4877 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
4878 * config/frv/frv.mt: New file.
4879 * config/frv/tm-frv.h: New file.
4880 * configure.tgt: Support frv-*-*.
4881 * Makefile.in (frv-tdep.o): New target.
4882 * frv-tdep.c: New file.
4883 * NEWS: Mention frv.
4884
4885 2002-06-21 Dave Brolley <brolley@redhat.com>
4886
4887 * MAINTAINERS: Add self to "Write After Approval" list.
4888
4889 2002-06-21 Grace Sainsbury <graces@redhat.com>
4890
4891 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
4892 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
4893 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
4894 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
4895 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
4896
4897 * m68k-tdep.c: Include arch-utils.h
4898 (m68k_register_raw_size): Add.
4899 (m68k_register_virtual_size): Add.
4900 (m68k_register_virtual_type): Add.
4901 (m68k_register_name): Add.
4902 (m68k_stack_align): Add.
4903 (m68k_register_byte): Add.
4904 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
4905 tm-m68k.h.
4906
4907 2002-06-21 Grace Sainsbury <graces@redhat.com>
4908
4909 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
4910 m68k_find_saved_regs.
4911 (m68k_pop_frame): Removed saved_regs structure, and replaced
4912 references to it with frame->saved_regs.
4913 (m68k_gdbarch_init): Added function calls to initialize the
4914 gdbarch structure.
4915 (m68k_fix_call_dummy): Add.
4916 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
4917 (CALL_DUMMY): Remove.
4918 (CALL_DUMMY_LENGTH): Remove.
4919 (CALL_DUMMY_START_OFFSET): Remove.
4920 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
4921 (FIX_CALL_DUMMY): Remove.
4922 (PUSH_DUMMY_FRAME): Remove.
4923 (POP_FRAME): Remove.
4924
4925 2002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
4926
4927 * parse.c (parse_fprintf): New function used to avoid calls to
4928 fprintf in bison parser generated debug code.
4929 * parser-defs.h: Declaration of new parse_fprintf function.
4930 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
4931 Set YYDEBUG to 1 by default.
4932 Set YYFPRINTF as parse_fprintf.
4933
4934 2002-06-21 Michal Ludvig <mludvig@suse.cz>
4935
4936 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
4937 encoding anymore.
4938 (pointer_encoding, enum ptr_encoding): New.
4939 (execute_cfa_program): Take care about pointer encoding.
4940 (dwarf2_build_frame_info): Only call parse_frame_info for
4941 .debug_frame and .eh_frame.
4942 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
4943 fixed augmentation handling, added relative addressing,
4944 ignore duplicate FDEs. Added comments.
4945 * dwarf2cfi.c: Reindented.
4946
4947 2002-06-20 Elena Zannoni <ezannoni@redhat.com>
4948
4949 * event-top.c (command_handler): Don't use space_at_cmd_start
4950 unless there is sbrk() on the host. Assign time and space data
4951 to union fields of the appropriate length.
4952
4953 2002-06-20 Michal Ludvig <mludvig@suse.cz>
4954
4955 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
4956 x86_64_register_name. Return type changed to 'const char *'.
4957 (x86_64_register_name2nr): Rename to x86_64_register_number.
4958 (x86_64_gdbarch_init): Update to reflect the change.
4959 * x86-64-tdep.h: Ditto.
4960 * x86-64-linux-nat.c (x86_64_fxsave_offset)
4961 (supply_fpregset): Ditto.
4962
4963 2002-06-19 Andrew Cagney <cagney@redhat.com>
4964
4965 * regcache.h: Update copyright.
4966 (struct regcache, struct gdbarch): Add opaque declarations.
4967 (current_regcache): Declare global variable.
4968 (regcache_read, regcache_write): Add gdbarch parameter.
4969 (regcache_save, regcache_save_no_passthrough)
4970 (regcache_restore, regcache_restore_no_passthrough)
4971 (regcache_dup, regcache_dup_no_passthrough)
4972 (regcache_cpy, regcache_cpy_no_passthrough)
4973 (deprecated_grub_regcache_for_registers)
4974 (deprecated_grub_regcache_for_register_valid)
4975 (regcache_valid_p): Add function declarations.
4976
4977 * regcache.c: Update copyright.
4978 (regcache_descr_handle): New global variable.
4979 (struct regcache_descr): Define.
4980 (init_legacy_regcache_descr, init_regcache_descr): New functions.
4981 (regcache_descr, xfree_regcache_descr): New functions.
4982 (struct regcache): Define.
4983 (regcache_xmalloc, regcache_xfree): New functions.
4984 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
4985 (regcache_dup, regcache_dup_no_passthrough): New functions.
4986 (regcache_valid_p, regcache_read_as_address): New functions.
4987 (deprecated_grub_regcache_for_registers): New function.
4988 (deprecated_grub_regcache_for_register_valid): New function.
4989 (current_regcache): New global variable.
4990 (register_buffer): Add regcache parameter. Update calls.
4991 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
4992 (read_register_gen, write_register_gen): Update register_buffer
4993 call. Test for legacy_p instead of gdbarch_register_read_p or
4994 gdbarch_register_write_p.
4995 (regcache_collect): Update register_buffer call.
4996 (build_regcache): Rewrite. Use deprecated grub functions.
4997 (regcache_save, regcache_save_no_passthrough): New functions.
4998 (regcache_restore, regcache_restore_no_passthrough): New
4999 functions.
5000 (_initialize_regcache): Create the regcache_data_handle. Swap
5001 current_regcache global variable.
5002
5003 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
5004 parameter to regcache_read and regcache_write calls.
5005 (sh4_register_read): Ditto.
5006 (sh64_pseudo_register_read): Ditto.
5007 (sh64_register_read): Ditto.
5008 (sh_pseudo_register_write): Ditto.
5009 (sh4_register_write): Ditto.
5010 (sh64_pseudo_register_write): Ditto.
5011 (sh64_register_write): Ditto.
5012
5013 * defs.h (XCALLOC): Define.
5014
5015 2002-06-19 Grace Sainsbury <graces@redhat.com>
5016
5017 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
5018 * m68k-tdep.c (m68k_gdbarch_init): Added.
5019 (m68k_dump_tdep): Added.
5020
5021 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
5022
5023 * ada-lang.c (fill_in_ada_prototype): Update comment.
5024
5025 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
5026
5027 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
5028 MIPS_ABI_LAST.
5029 (mips_abi_string, mips_abi_strings): New.
5030 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
5031 (mips_gdbarch_init): Set tdep->found_abi. Don't set
5032 tdep->mips_abi_string. Honor mips_abi_string. Default to
5033 O32 if no ABI is found.
5034 (mips_dump_tdep): Use mips_abi_strings.
5035 (mips_abi_update): New function.
5036 (_initialize_mips_tdep): Initialize mips_abi_string. Add
5037 ``set mips abi'' and ``show mips abi''. Check the size of
5038 mips_abi_strings.
5039
5040 2002-06-19 Andrew Cagney <cagney@redhat.com>
5041
5042 * i386-linux-tdep.c (i386_linux_register_name): Make return type
5043 constant.
5044
5045 2002-06-18 Joel Brobecker <brobecker@gnat.com>
5046
5047 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
5048 current frame using only the first stack size adjustment. All
5049 subsequent size adjustments are not considered to be part of
5050 the "static" part of the current frame.
5051 Compute the address of the saved registers relative to the
5052 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
5053 in use in this frame.
5054
5055 2002-06-18 Don Howard <dhoward@redhat.com>
5056
5057 * valops.c (value_ind): Use value_at_lazy() when dereferencing
5058 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
5059 suggesting this solution.
5060
5061 2002-06-18 Andrew Cagney <ac131313@redhat.com>
5062
5063 * config/romp/xm-rtbsd.h: Delete file.
5064 * config/romp/rtbsd.mh: Delete file.
5065
5066 2002-06-18 Keith Seitz <keiths@redhat.com>
5067
5068 * breakpoint.c (condition_command): Post breakpoint_modify
5069 when a condition is added to an existing breakpoint.
5070 (commands_command): Likewise for commands.
5071 (set_ignore_count): Likewise for ignore counts.
5072 If no tty, do not simply return, still need to send event
5073 notification.
5074 (ignore_command): Only print a newline if the command came
5075 from a tty.
5076 Don't call breakpoints_changed, since this is now properly
5077 handled by set_ignore_count.
5078
5079 2002-06-18 Andrew Cagney <cagney@redhat.com>
5080
5081 * MAINTAINERS: Note that cris-elf target can be compiled with
5082 -Werror.
5083 * cris-tdep.c (cris_register_name): Make return type constant.
5084 (cris_breakpoint_from_pc): Ditto.
5085
5086 2002-06-18 Michal Ludvig <mludvig@suse.cz>
5087
5088 * frame.h (struct frame_info): Change type of context to
5089 'struct context'.
5090
5091 2002-06-17 Andrew Cagney <cagney@redhat.com>
5092
5093 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
5094 pointer.
5095 * gdbarch.h, gdbarch.c: Regenerate.
5096 * config/mips/tm-mips.h (mips_register_name): Update.
5097 * i386-tdep.h (i386_register_name): Update.
5098 * mips-tdep.c (mips_register_name): Update
5099 * alpha-tdep.c (alpha_register_name): Update.
5100 * arch-utils.c (legacy_register_name): Update.
5101 * arch-utils.h (legacy_register_name): Update.
5102 * avr-tdep.c (avr_register_name): Update.
5103 * ia64-tdep.c (ia64_register_name): Update.
5104 * i386-tdep.c (i386_register_name): Update.
5105 * sparc-tdep.c (sparc32_register_name): Update.
5106 (sparc64_register_name): Update.
5107 (sparclite_register_name): Update.
5108 (sparclet_register_name): Update.
5109 * sh-tdep.c (sh_generic_register_name): Update.
5110 (sh_sh_register_name): Update.
5111 (sh_sh3_register_name): Update.
5112 (sh_sh3e_register_name): Update.
5113 (sh_sh_dsp_register_name): Update.
5114 (sh_sh3_dsp_register_name): Update.
5115 (sh_sh4_register_name): Update.
5116 (sh_sh64_register_name): Update.
5117 * s390-tdep.c (s390_register_name): Update.
5118 * rs6000-tdep.c (rs6000_register_name): Update.
5119 * ns32k-tdep.c (ns32k_register_name_32082): Update.
5120 (ns32k_register_name_32382): Update.
5121 * d10v-tdep.c (d10v_ts2_register_name): Update.
5122 (d10v_ts3_register_name): Update.
5123 * xstormy16-tdep.c (xstormy16_register_name): Update.
5124 * vax-tdep.c (vax_register_name): Update.
5125 * v850-tdep.c (v850_register_name): Update.
5126 * m68hc11-tdep.c (m68hc11_register_name): Update.
5127 * mn10300-tdep.c (mn10300_generic_register_name): Update.
5128 (am33_register_name): Update.
5129
5130 2002-06-17 Grace Sainsbury <graces@redhat.com>
5131
5132 * m68k-tdep.c: Reindented.
5133
5134 2002-06-17 Andrew Cagney <ac131313@redhat.com>
5135
5136 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
5137 list of predefined types.
5138
5139 2002-06-16 Mark Kettenis <kettenis@gnu.org>
5140
5141 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
5142 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
5143 REGISTER_CONVERT_TO_RAW): Remove defines.
5144 (i386_register_virtual_type, i386_register_convertible,
5145 i386_register_convert_to_virtual, i386_register_convert_to_raw):
5146 Remove prototypes.
5147 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
5148 macros mentioned above.
5149
5150 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
5151 (i386lynx_saved_pc_after_call): Remove prototype.
5152 * i386ly-tdep.c: Include "i386-tdep.h".
5153 (i386lynx_saved_pc_after_call): Make static. Use
5154 read_memory_nobpt instead of read_memory. Use
5155 read_memory_unsigned_integer instead of read_memory_integer.
5156 (i386lynx_init_abi): New function.
5157 (i386lynx_coff_osabi_sniffer): New function.
5158 (_initialize_i386bsd_tdep): New function.
5159
5160 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
5161 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
5162 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
5163 (i386_fix_call_dummy): Remove prototype.
5164 * i386-tdep.c (i386_call_dummy_words): New variable.
5165 (i386_gdbarch_init): Adjust for removal of the
5166 macros mentioned above.
5167
5168 2002-06-15 Andrew Cagney <ac131313@redhat.com>
5169
5170 * command.h (add_setshow_auto_boolean_cmd): Replace
5171 add_set_auto_boolean_cmd.
5172 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
5173 add_set_auto_boolean_cmd.
5174 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
5175 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
5176 mask-address'' command.
5177 (show_mask_address): Add cmd parameter.
5178 * remote.c (add_packet_config_cmd): Update. Change type of
5179 set_func and show_func to cmd_sfunc_ftype.
5180 (_initialize_remote): Update `set remote Z-packet'
5181 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
5182 (show_remote_protocol_e_packet_cmd): Ditto.
5183 (show_remote_protocol_E_packet_cmd): Ditto.
5184 (show_remote_protocol_P_packet_cmd): Ditto.
5185 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
5186 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
5187 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
5188 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
5189 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
5190 (show_remote_protocol_Z_packet_cmd): Ditto.
5191 (show_remote_protocol_binary_download_cmd): Ditto.
5192 (show_remote_cmd): Pass NULL to all of above.
5193
5194 2002-06-15 Mark Kettenis <kettenis@gnu.org>
5195
5196 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
5197 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
5198 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
5199 POP_FRAME): Remove defines.
5200 (i386_push_arguments, i386_store_struct_return,
5201 i386_extract_return_value, i386_store_return_value,
5202 i386_extract_struct_value_address, i386_push_dummy_frame,
5203 i386_pop_frame): Renove prototypes.
5204 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
5205 macros mentioned above.
5206
5207 2002-06-15 Andrew Cagney <ac131313@redhat.com>
5208
5209 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
5210 add_set_boolean_cmd.
5211 (add_setshow_cmd): New function.
5212 * command.h (add_setshow_boolean_cmd): Replace
5213 add_set_boolean_cmd.
5214 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
5215 and ``set rdiromatzero''.
5216 * maint.c (_initialize_maint_cmds): Update commented out code.
5217 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
5218 * target.c (initialize_targets): Update `set
5219 trust-readonly-sections'.
5220 * remote.c (_initialize_remote): Update `set remotebreak'.
5221
5222 2002-06-15 Mark Kettenis <kettenis@gnu.org>
5223
5224 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
5225 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
5226 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
5227 fit into multi-arch framework.
5228 (i386_breakpoint_from_pc): New function.
5229 (i386_gdbarch_init): Adjust for removal of the macros mentioned
5230 above.
5231
5232 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
5233 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
5234 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
5235 (i386_frameless_function_invocation, i386_frame_num_args,
5236 i386_frame_init_saved_regs): Remove prototypes.
5237 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
5238 macros mentioned above.
5239
5240 2002-06-15 Andrew Cagney <ac131313@redhat.com>
5241
5242 * cli/cli-decode.c (set_cmd_cfunc): Update.
5243 (set_cmd_sfunc): Update.
5244 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
5245 (set_cmd_sfunc, set_cmd_cfunc): Update.
5246 * cli/cli-decode.h: Update.
5247
5248 2002-06-15 Mark Kettenis <kettenis@gnu.org>
5249
5250 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
5251 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
5252
5253 2002-06-15 Andrew Cagney <ac131313@redhat.com>
5254
5255 * defs.h (auto_boolean): Declare enum.
5256 * command.h (cmd_auto_boolean): Delete enum.
5257 * mips-tdep.c (mask_address_var): Update.
5258 (mips_mask_address_p): Update.
5259 (show_mask_address): Update.
5260 * remote.c (struct packet_config): Update.
5261 (update_packet_config): Update.
5262 (show_packet_config_cmd): Update.
5263 (packet_ok): Update.
5264 (add_packet_config_cmd): Update.
5265 (_initialize_remote):
5266 * command.h: Update.
5267 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
5268 (do_setshow_command): Update.
5269 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
5270 * cli/cli-decode.h: Update.
5271
5272 2002-06-15 Mark Kettenis <kettenis@gnu.org>
5273
5274 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
5275 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
5276 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
5277 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
5278 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
5279 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
5280
5281 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
5282 list of DJGPP COFF targets.
5283
5284 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
5285 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
5286 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
5287 (FP0_REGNUM): Remove define.
5288 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
5289 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
5290 (i386_register_virtual_size): Remove protoype.
5291 * i386-tdep.c (i386_register_virtual_size): Removed.
5292 (i386_extract_return_value, i386_store_return_value): Use
5293 FP0_REGNUM instead of NUM_FREGS to determine whether the
5294 floating-point registers are available.
5295 (i386_gdbarch_init): Tweak FIXME about FPU registers.
5296 Adjust for removal of macros mentioned above.
5297
5298 2002-06-15 Mark Kettenis <kettenis@gnu.org>
5299
5300 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
5301 comments.
5302 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
5303 Remove prototypes.
5304 (supply_gregset, fill_gregset): Remove use of register keyword and
5305 remove declaration for regmap. Use I386_NUM_GREGS instead of
5306 NUM_REGS and NUM_FREGS.
5307 (FPREGSET_FSAVE_OFFSET): Remove.
5308 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
5309 NUM_FREGS to determine whether the floating-point registers are
5310 available.
5311
5312 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
5313 gnu_store_registers): Replace usage of NUM_GREGS with
5314 I386_NUM_GREGS.
5315
5316 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
5317 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
5318 usage of NUM_GREGS with I386_NUM_GREGS.
5319
5320 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
5321
5322 * i386bsd-nat.c: Include "i386-tdep.h".
5323 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
5324 I386_NUM_GREGS.
5325
5326 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
5327 and associated comment. They no longer make any sense, since we
5328 don't use this file anymore on Linux.
5329
5330 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
5331 * i386-tdep.c (i386_register_offset, i386_register_size): Use
5332 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
5333 elements in these arrays.
5334 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
5335 MAX_NUM_REGS.
5336
5337 2002-06-15 Mark Kettenis <kettenis@gnu.org>
5338
5339 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
5340 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
5341
5342 2002-06-14 Andrew Cagney <cagney@redhat.com>
5343
5344 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
5345 EXTRACT_RETURN_VALUE.
5346 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
5347 EXTRACT_STRUCT_VALUE_ADDRESS.
5348 * gdbarch.h, gdbarch.c: Regenerate.
5349
5350 * values.c (value_being_returned): Handle
5351 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
5352 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
5353
5354 * arm-linux-tdep.c (arm_linux_init_abi): Update.
5355 * arm-tdep.c (arm_gdbarch_init): Update.
5356 * avr-tdep.c (avr_gdbarch_init): Update.
5357 * cris-tdep.c (cris_gdbarch_init): Update.
5358 * d10v-tdep.c (d10v_gdbarch_init): Update.
5359 * ia64-tdep.c (ia64_gdbarch_init): Update.
5360 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5361 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5362 * s390-tdep.c (s390_gdbarch_init): Update.
5363 * sh-tdep.c (sh_gdbarch_init): Update.
5364 * s390-tdep.c (s390_gdbarch_init): Update.
5365 * sparc-tdep.c (sparc_gdbarch_init): Update.
5366 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5367 * v850-tdep.c (v850_gdbarch_init): Update.
5368 * vax-tdep.c (vax_gdbarch_init): Update.
5369 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
5370 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5371
5372 * config/arc/tm-arc.h: Update.
5373 * config/d30v/tm-d30v.h: Update.
5374 * config/fr30/tm-fr30.h: Update.
5375 * config/h8300/tm-h8300.h: Update.
5376 * config/h8500/tm-h8500.h: Update.
5377 * config/i386/tm-i386.h: Update.
5378 * config/i386/tm-ptx.h: Update.
5379 * config/i386/tm-symmetry.h: Update.
5380 * config/i960/tm-i960.h: Update.
5381 * config/m32r/tm-m32r.h: Update.
5382 * config/m68k/tm-delta68.h: Update.
5383 * config/m68k/tm-linux.h: Update.
5384 * config/m68k/tm-m68k.h: Update.
5385 * config/m88k/tm-m88k.h: Update.
5386 * config/mcore/tm-mcore.h: Update.
5387 * config/mips/tm-mips.h: Update.
5388 * config/mn10200/tm-mn10200.h: Update.
5389 * config/pa/tm-hppa.h: Update.
5390 * config/pa/tm-hppa64.h: Update.
5391 * config/sparc/tm-sp64.h: Update.
5392 * config/sparc/tm-sparc.h: Update.
5393 * config/sparc/tm-sparclet.h: Update.
5394 * config/z8k/tm-z8k.h: Update.
5395
5396 2002-06-14 Andrew Cagney <cagney@redhat.com>
5397
5398 * Makefile.in (i386_linux_tdep_h): Define.
5399 (i386_tdep_h, i387_tdep_h): Define.
5400 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
5401 $(i386_tdep_h) and $(i387_tdep_h).
5402 * i386-linux-nat.c: Include "i386-linux-tdep.h".
5403
5404 2002-06-14 Mark Kettenis <kettenis@gnu.org>
5405
5406 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
5407 Already covered by the default.
5408
5409 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
5410 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
5411 (i386_gdbarch_init): Initialize long_double_format and long_double
5412 bit.
5413
5414 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
5415 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
5416 Move these to ...
5417 * config/i386/i386sol2.mh: ... here.
5418 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
5419 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
5420 (SIGCONTEXT_PC_OFFSET): Remove define.
5421 (IN_SIGTRAMP): Remove define.
5422 * i386-sol2-tdep.c: New file.
5423
5424 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
5425 * config/i386/tm-i386nw.h: Removed.
5426
5427 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
5428 USE_STRUCT_CONVENTION): Remove defines.
5429 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5430 (get_longjmp_target): Remove prototype.
5431 (IN_SIGTRAMP): Remove define.
5432 (i386bsd_in_sigtramp): Remove prototype.
5433 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
5434 function. Update comment accordingly
5435 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
5436 (FRAME_SAVED_PC): Remove define.
5437 (i386bsd_frame_saved_pc): Remove prototype.
5438 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
5439 GET_LONGJMP_TARGET): Remove defines.
5440 (get_longjmp_target): Remove prototype.
5441 (IN_SIGTRAMP): Remove define.
5442 (i386bsd_in_sigtramp): Remove prototype.
5443 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
5444 function. Update comment accordingly
5445 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
5446 (FRAME_SAVED_PC): Remove define.
5447 (i386bsd_frame_saved_pc): Remove prototype.
5448 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
5449 Remove prototype.
5450 (USE_STRUCT_CONVENTION): Remove prototype.
5451 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
5452 declaration.
5453 (_initialize_i386bsd_nat): Revise logic to determine some
5454 constants at compile time when compiling a native GDB. Warn if
5455 things don't match up with what we expect.
5456 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
5457 Remove variables.
5458 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
5459 to use date stored in `struct gdbarch_tdep'.
5460 (i386bsd_sigcontext_offset): Remove varaible.
5461 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
5462 stored in `struct gdbarch_tdep'.
5463 (i386bsd_frame_saved_pc): Make static.
5464 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
5465 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
5466 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
5467 i386fbsd4_sc_pc_offset): New variables.
5468 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
5469 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
5470 functions.
5471 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
5472 functions.
5473 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
5474 Modify the value of i386fbsd_sigtramp_start and
5475 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
5476 i386fbsd_sigtramp_end.
5477 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
5478 function.
5479
5480 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
5481 define to i386-linux-tdep.h.
5482 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
5483 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
5484 defines.
5485 (i386_linux_register_name, i386_linux_register_byte,
5486 i386_linux_register_raw_size): Remove prototypes.
5487 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
5488 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
5489 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
5490 TARGET_WRITE_PC): Remove defines.
5491 (i386_linux_in_sigtramp, i386_linux_frame_chain,
5492 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
5493 i386_linux_write_pc): Remove prototypes.
5494 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5495 (get_longjmp_target): Remove prototype.
5496 * i386-linux-tdep.h: New file.
5497 * i386-linux-nat.c: Include "i386-linux-tdep.h".
5498 * i386-linux-tdep.c: Include "i386-tdep.h" and
5499 "i386-linux-tdep.h".
5500 (i386_linux_register_name, i386_linux_register_byte,
5501 i386_linux_register_raw_size, i386_linux_in_sigtramp,
5502 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
5503 Make static.
5504 (i386_linux_init_abi): New function.
5505 (_initialize_i386_linux_tdep): New function.
5506
5507 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
5508 (i386_saved_pc_after_call): Remove prototype.
5509 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
5510 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
5511 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
5512 (i386_register_name, i386_stab_reg_to_regnum,
5513 i386_dwarf_reg_to_regnum): Remove prototypes.
5514 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
5515 SIZEOF_SSE_REGS): Remove defines.
5516 (REGISTER_BYTES): Remove define.
5517 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
5518 (i386_register_byte, i386_register_raw_size): Remove prototypes.
5519 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
5520 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
5521 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
5522 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
5523 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
5524 (get_longjmp_target): Remove prototype.
5525 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
5526 (sigtramp_saved_pc): Remove define.
5527 (i386v4_sigtramp_saved_pc): Remove prototype.
5528 * config/i386/tm-go32.h (FRAME_CHAIN,
5529 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
5530 (i386go32_frame_saved_pc): Remove prototype.
5531 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5532 (get_longjmp_target): Remove prototype.
5533 * i386-tdep.h: Include "osabi.h".
5534 (enum i386_abi): Removed.
5535 (enum struct_return): New enum.
5536 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
5537 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
5538 sc_pc_offset members.
5539 (i386_gdbarch_register_os_abi): Remove prototype.
5540 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
5541 I386_SSE_NUM_REGS): New defines.
5542 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
5543 I386_SSE_SIZEOF_REGS): New defines.
5544 (i386_register_name, i386_register_byte, i386_register_raw_size):
5545 New prototypes.
5546 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
5547 (i386bsd_sigtramp_saved_pc): New prototype.
5548 * i386-tdep.c: Don't include "elf-bfd.h".
5549 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
5550 i386_frame_chain, i386_saved_pc_after_call): Make static.
5551 (i386_frame_saved_pc): Rewrite to call architecture dependent
5552 function to deal with signal handlers. Make static.
5553 (i386go32_frame_saved_pc): Removed.
5554 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
5555 Removed.
5556 (i386_get_longjmp_target): New function.
5557 (default_struct_convention, pcc_struct_convention,
5558 reg_struct_convention, valid_conventions, struct_convention): New
5559 variables.
5560 (i386_use_struct_convention): New function.
5561 (i386v4_sigtramp_saved_pc): Renamed to
5562 i386_svr4_sigtramp_saved_pc. Made static. Moved.
5563 (i386_pc_in_sigtramp): New function.
5564 (i386_abi_names): Removed.
5565 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
5566 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
5567 Removed.
5568 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
5569 i386_gdbarch_register_os_abi): Removed.
5570 (struct i386_abi_handler): Removed.
5571 (i386_abi_handler_list): Removed.
5572 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
5573 functions.
5574 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
5575 i386_nw_init_abi): New functions.
5576 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
5577 Use set_gdbarch_xxx() calls instead of relying on macros for a
5578 number of calls.
5579 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
5580 (_initialize_i386_tdep): Add new 'struct-convcention' command.
5581 Register the various architecture variants defined in this file.
5582
5583 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
5584
5585 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
5586 (struct main_type): Remove arg_types member. Update comments for
5587 struct field.
5588 (TYPE_ARG_TYPES): Remove.
5589 (TYPE_FN_FIELD_ARGS): Update.
5590 (smash_to_method_type): Update prototype.
5591
5592 * c-typeprint.c (cp_type_print_method_args): Take method type
5593 instead of argument list. Use new argument layout. Simplify.
5594 (c_type_print_args): Use new argument layout. Simplify.
5595 (c_type_print_base): Update call to cp_type_print_method_args.
5596 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
5597 argument; use die->type instead. Update call to
5598 smash_to_method_type.
5599 (read_structure_scope): Update call to dwarf2_add_member_fn.
5600 * gdbtypes.c (allocate_stub_method): Update comment.
5601 (smash_to_method_type): Take new NARGS and VARARGS arguments.
5602 Use new argument layout.
5603 (check_stub_method): Use new argument layout. Don't count
5604 void as an argument.
5605 (print_arg_types): Update comments. Use new argument layout.
5606 (recursive_dump_type): Don't print arg_types member.
5607 * hpread.c (hpread_read_struct_type): Use new argument layout.
5608 (fixup_class_method_type): Likewise.
5609 (hpread_type_lookup): Likewise.
5610 * stabsread.c (read_type): Update calls to read_args and
5611 smash_to_method_type.
5612 (read_args): Use new argument layout. Simplify.
5613 * valops.c (typecmp): Use new argument layout. Update parameters
5614 and comments. Simplify.
5615 (hand_function_call): Use new argument layout.
5616 (search_struct_method): Update call to typecmp.
5617 (find_overload_match): Use new argument layout.
5618
5619 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
5620
5621 * NEWS: Mention multithreaded debug support for gdbserver.
5622
5623 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
5624
5625 * MAINTAINERS: Mention NEWS.
5626
5627 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
5628
5629 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
5630 (struct mips_objfile_private, compare_pdr_entries): New.
5631 (non_heuristic_proc_desc): Read the ".pdr" section if it
5632 is present.
5633
5634 2002-06-12 Andrew Cagney <ac131313@redhat.com>
5635
5636 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
5637 (arm_debug): New static variable.
5638 (_initialize_arm_tdep): Add ``set debug arm'' command.
5639
5640 2002-06-12 Andrew Cagney <ac131313@redhat.com>
5641
5642 * Makefile.in (sim_arm_h): Define.
5643 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
5644 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
5645 (arm_register_sim_regno): New function, map an internal REGNUM
5646 onto a simulator register number.
5647 (arm_gdbarch_init): Set register_sim_regno.
5648
5649 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
5650
5651 * MAINTAINERS: Add self.
5652
5653 2002-06-11 Jim Blandy <jimb@redhat.com>
5654
5655 * source.c (source_info): Mention whether the symtab has
5656 information about preprocessor macros.
5657
5658 Call the command `info macro', not `show macro'.
5659 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
5660 Fix error message.
5661 (_initialize_macrocmd): Register `info_macro_command' in
5662 `infolist', not `showlist'.
5663
5664 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
5665
5666 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
5667 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
5668 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
5669 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
5670 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
5671 unconditionally.
5672 (set_mipsfpu_single_command, set_mipsfpu_double_command)
5673 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
5674 (_initialize_mips_tdep): Remove dead code.
5675 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
5676 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
5677 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
5678 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
5679 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
5680 MIPS_LAST_FP_ARG_REGNUM): Remove.
5681
5682 2002-06-11 Michal Ludvig <mludvig@suse.cz>
5683
5684 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
5685 (unwind_tmp_obstack_free, parse_frame_info)
5686 (update_context, cfi_read_fp, cfi_write_fp)
5687 (cfi_frame_chain, cfi_init_extra_frame_info)
5688 (cfi_virtual_frame_pointer): Use the above function.
5689 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
5690
5691 2002-06-11 Corinna Vinschen <vinschen@redhat.com>
5692
5693 * v850-tdep.c (v850_type_is_scalar): New function.
5694 (v850_use_struct_convention): Match current gcc implementation
5695 as close as possible.
5696 (v850_push_arguments): Fix stack_offset handling. Don't write
5697 struct_addr into register. This is done by v850_store_struct_return.
5698 (v850_extract_return_value): Care for structs.
5699 (v850_store_return_value): Ditto.
5700 (v850_store_struct_return): Actually write address.
5701
5702 2002-06-11 Michal Ludvig <mludvig@suse.cz>
5703
5704 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
5705 without debug information too.
5706
5707 2002-06-10 Andrew Cagney <ac131313@redhat.com>
5708
5709 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
5710 Make multi-arch pure.
5711 * gdbarch.h, gdbarch.c: Re-generate.
5712 * arm-tdep.c (arm_print_float_info): Update.
5713 * arch-utils.h (default_print_float_info): Update.
5714 * arch-utils.c (default_print_float_info): Update.
5715 * infcmd.c (float_info): Update call.
5716
5717 2002-06-10 Andrew Cagney <ac131313@redhat.com>
5718
5719 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
5720 the front of the initialize list.
5721
5722 2002-06-10 Andrew Cagney <ac131313@redhat.com>
5723
5724 * infrun.c (struct inferior_status): Replace fields
5725 selected_frame_address and selected_level with field
5726 selected_frame_id.
5727 (save_inferior_status): Update. Use get_frame_id.
5728 (struct restore_selected_frame_args): Delete.
5729 (restore_selected_frame): Update. Use frame_find_by_id.
5730 (restore_inferior_status): Update.
5731
5732 * breakpoint.h (struct breakpoint): Change type of
5733 watchpoint_frame to frame_id.
5734 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
5735 call to get_current_frame.
5736 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
5737 get_current_frame.
5738 (watchpoint_check): Use frame_find_by_id.
5739
5740 * frame.h (record_selected_frame): Delete declaration.
5741 * stack.c (record_selected_frame): Delete function.
5742
5743 * frame.h (struct frame_id): Define.
5744 (get_frame_id): Declare.
5745 (frame_find_by_id): Declare.
5746 * frame.c (frame_find_by_id): New function.
5747 (get_frame_id): New function.
5748
5749 2002-06-10 Andrey Volkov <avolkov@transas.com>
5750
5751 * ser-e7kpc.c: Fix duplicated define and call of
5752 _initialize_ser_e7000pc
5753
5754 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
5755
5756 * signals/signals.c (target_signal_from_host): Fix #ifdef
5757 SIGRTMIN case.
5758 (do_target_signal_to_host): Likewise.
5759
5760 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
5761
5762 * mips-tdep.c (mips_find_abi_section): New function.
5763 (mips_gdbarch_init): Call it.
5764
5765 2002-06-09 Mark Kettenis <kettenis@gnu.org>
5766
5767 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
5768 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
5769 after Andrew's 2002-06-08 gdbarch change.
5770
5771 2002-06-09 Mark Kettenis <kettenis@gnu.org>
5772
5773 * i386-linux-nat.c (suppy_gregset): Don't supply
5774 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
5775 register cache.
5776 (fill_gregset): Don't fetch it under the same circumstances.
5777
5778 2002-06-09 Andrew Cagney <cagney@redhat.com>
5779
5780 * Makefile.in (callback_h): Define.
5781 (remote_sim_h): Update path to remote-sim.h.
5782 (remote-rdp.o): Add $(callback_h).
5783 (remote-sim.o): Use $(callback_h).
5784 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
5785 * remote-rdp.c: Include "gdb/callback.h".
5786
5787 2002-06-09 Mark Kettenis <kettenis@gnu.org>
5788
5789 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
5790 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
5791
5792 2002-06-08 Andrew Cagney <ac131313@redhat.com>
5793
5794 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
5795 * rdi-share/serpardr.c: Ditto.
5796 * rdi-share/unixcomm.c: Ditto.
5797 * rdi-share/serdrv.c: Ditto.
5798 * rdi-share/hostchan.h: Ditto.
5799 * rdi-share/hostchan.c: Ditto.
5800 * rdi-share/host.h: Ditto.
5801 * rdi-share/devsw.c: Ditto.
5802
5803 * objfiles.h: Change type of obj_private to void pointer.
5804 * pa64solib.c: Update copyright. Don't include "assert.h", use
5805 strcmp instead of STREQ, use LONGEST, do not use PTR
5806 * somsolib.c: Ditto.
5807
5808 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
5809 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
5810 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
5811
5812 2002-06-08 Andrew Cagney <ac131313@redhat.com>
5813
5814 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
5815 (default_get_saved_register): Delete function.
5816 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
5817 generic_unwind_get_saved_register.
5818 * gdbarch.h, gdbarch.c: Re-generate.
5819
5820 2002-06-08 Andrew Cagney <ac131313@redhat.com>
5821
5822 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
5823 generic_func_frame_chain_valid.
5824 * gdbarch.h, gdbarch.c: Re-generate.
5825 * blockframe.c (generic_func_frame_chain_valid): Only check
5826 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
5827 passing FP to PC_IN_CALL_DUMMY.
5828 Fix PR gdb/360.
5829
5830 2002-06-08 Andrew Cagney <ac131313@redhat.com>
5831
5832 * gdbarch.sh (struct gdbarch_data): Add field init_p.
5833 (register_gdbarch_data): Initialize init_p.
5834 (gdbarch_data): Initialize data pointer using the init function.
5835 (init_gdbarch_data): Delete function.
5836 (gdbarch_update_p): Update.
5837 (initialize_non_multiarch): Update.
5838 (struct gdbarch): Add field initialized_p.
5839 * gdbarch.h, gdbarch.c: Re-generate.
5840
5841 2002-06-07 Michal Ludvig <mludvig@suse.cz>
5842
5843 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
5844 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
5845 better do the things actually here.
5846 * x86-64-tdep.c (x86_64_register_name2nr): New.
5847 (x86_64_register_name): Renamed to x86_64_register_nr2name.
5848 (x86_64_gdbarch_init): Respect the above change.
5849 * x86-64-tdep.h (x86_64_register_name2nr)
5850 (x86_64_register_nr2name): Add prototypes.
5851 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
5852
5853 2002-06-06 Michael Snyder <msnyder@redhat.com>
5854
5855 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
5856 Delete extra braces and re-indent.
5857 (d10v_store_return_value): Char return values
5858 must be shifted over by one byte in R0.
5859 (d10v_extract_return_value): Delete extra braces, re-indent.
5860
5861 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
5862
5863 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
5864 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
5865 (d10v_integer_to_address): Rewrite.
5866 (d10v_frame_init_saved_regs): When reading fp and sp registers use
5867 the d10v specific functions which take care of converting to the
5868 correct space.
5869
5870 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
5871
5872 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
5873 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
5874
5875 2002-06-02 Andrew Cagney <ac131313@redhat.com>
5876
5877 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
5878 includes.
5879 * config/tm-linux.h: Ditto.
5880 * config/alpha/tm-alphalinux.h: Ditto.
5881 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
5882 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
5883 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
5884 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
5885 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
5886 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
5887 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
5888 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
5889 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
5890 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
5891 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
5892 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
5893 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
5894 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
5895 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
5896 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
5897 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
5898 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
5899 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
5900 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
5901 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
5902 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
5903 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
5904 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
5905 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
5906 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
5907 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
5908 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
5909 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
5910 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
5911 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
5912 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
5913 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
5914 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
5915 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
5916 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
5917 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
5918
5919 2002-05-04 Aidan Skinner <aidan@velvet.net>
5920
5921 * ada-exp.tab.c: New file
5922 * ada-exp.y: New file
5923 * ada-lang.c: New file
5924 * ada-lang.h: New file
5925 * ada-lex.c: New file
5926 * ada-lex.l: New file
5927 * ada-tasks.c: New file
5928 * ada-typeprint.c: New file
5929 * ada-valprint.c: New file
5930
5931 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
5932
5933 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
5934 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
5935
5936 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
5937
5938 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
5939 insetead of ppc-linux-tdep.o.
5940 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
5941 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
5942
5943 2002-06-02 Andrew Cagney <ac131313@redhat.com>
5944
5945 2002-05-07 Christian Groessler <chris@groessler.org>
5946 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
5947 bit register contents for little endian hosts.
5948
5949 2002-06-01 Andrew Cagney <ac131313@redhat.com>
5950
5951 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
5952 any maintainer.
5953
5954 2002-06-01 Andrew Cagney <ac131313@redhat.com>
5955
5956 * gdbarch.h: Regenerate.
5957
5958 2002-06-01 Andrew Cagney <ac131313@redhat.com>
5959
5960 * MAINTAINERS: Add everyone to write-after-approval list.
5961
5962 2002-06-01 Andrew Cagney <ac131313@redhat.com>
5963
5964 * stack.c (frame_info): Use frame_register_unwind instead of
5965 saved_regs. Mention when the SP is on the stack or in a register.
5966
5967 * frame.h (frame_register_unwind_ftype): Define. Document.
5968 (struct frame_info): Add field register_unwind and
5969 register_unwind_cache.
5970 (frame_register_unwind): Declare.
5971 (generic_unwind_get_saved_register): Declare.
5972
5973 * frame.c (frame_register_unwind): New function.
5974 (generic_unwind_get_saved_register): New function.
5975
5976 * blockframe.c (generic_call_dummy_register_unwind): New function.
5977 (frame_saved_regs_register_unwind): New function.
5978 (set_unwind_by_pc): New function.
5979 (create_new_frame): New function.
5980 (get_prev_frame): New function.
5981
5982 2002-05-30 Andrew Cagney <ac131313@redhat.com>
5983
5984 * a29k-share/: Delete directory.
5985 * remote-vx29k.c: Delete file.
5986
5987 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5988
5989 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
5990 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
5991
5992 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5993
5994 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
5995 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
5996 (sparc64nbsd-nat.o)
5997 (sparcnbsd-nat.o)
5998 (sparcnbsd-tdep.o): New dependency lists.
5999 * NEWS: Note new UltraSPARC NetBSD native configuration.
6000 * configure.host (sparc64-*-netbsd*): New host.
6001 * configure.tgt (sparc-*-netbsdelf*)
6002 (sparc-*-netbsd*): Set gdb_target to nbsd.
6003 (sparc64-*-netbsd*): New target.
6004 * sparc64nbsd-nat.c: New file.
6005 * sparcnbsd-nat.c: New file.
6006 * sparcnbsd-tdep.c: New file.
6007 * sparcnbsd-tdep.h: New file.
6008 * config/sparc/nbsd.mt: New file.
6009 * config/sparc/nbsd64.mh: New file.
6010 * config/sparc/nbsd64.mt: New file.
6011 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
6012 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
6013 (HOST_IPC): Remove.
6014 * config/sparc/nbsdaout.mt: Remove.
6015 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
6016 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
6017 (HOST_IPC): Remove.
6018 * config/sparc/nbsdelf.mt: Remove.
6019 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
6020 sparc-nat.c compatiblity defines.
6021 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
6022 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
6023 * config/sparc/tm-nbsd64.h: New file.
6024 * config/sparc/tm-nbsdaout.h: Remove.
6025 * config/sparc/xm-nbsd.h: Remove.
6026
6027 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
6028
6029 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
6030 * sparc-tdep.c: Include osabi.h.
6031 (gdbarch_tdep): Add osabi member.
6032 (_initialize_sparc_tdep): Use gdbarch_register.
6033 (sparc_gdbarch_init): Use generic OS ABI framework.
6034 (sparc_dump_tdep): New function.
6035
6036 2002-05-30 Kevin Buettner <kevinb@redhat.com>
6037
6038 * corefile.c (do_captured_read_memory_integer): Return non-zero
6039 result.
6040 (safe_read_memory_integer): Copy result of memory read when
6041 status is non-zero. Also, add comments.
6042
6043 2002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
6044
6045 * Makefile.in (ppc_tdep_h): Define.
6046 (ppc-linux-nat.o)
6047 (ppc-linux-tdep.o)
6048 (rs6000-tdep.o): Use $(ppc_tdep_h).
6049 (ppc-sysv-tdep.o)
6050 (ppcnbsd-nat.o)
6051 (ppcnbsd-tdep.o): New dependency lists.
6052 * ppc-tdep.h: Use generic OS ABI framework.
6053 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
6054 (ppc_linux_init_abi): New functions.
6055 (ppc_sysv_abi_broken_use_struct_convention)
6056 (ppc_sysv_abi_use_struct_convention)
6057 (ppc_sysv_abi_push_arguments): Move to...
6058 * ppc-sysv-tdep.c: ...here.
6059 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
6060 * rs6000-tdep.c (process_note_abi_tag_sections)
6061 (get_elfosabi): Remove.
6062 (rs6000_gdbarch_init): Use generic OS ABI framework.
6063 (rs6000_dump_tdep): New function.
6064 (_initialize_rs6000_tdep): Use gdbarch_register.
6065 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
6066 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
6067 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
6068 of ppc-linux-tdep.o.
6069 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
6070 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
6071 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
6072 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
6073 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
6074 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
6075
6076 2002-05-29 Jim Blandy <jimb@redhat.com>
6077
6078 * macroscope.c (default_macro_scope): Put `void' in empty argument
6079 list.
6080
6081 2002-05-29 Andrew Cagney <ac131313@redhat.com>
6082
6083 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
6084 * arch-utils.c: Include "sim-regno.h".
6085 * gdbarch.sh: Don't include "sim-regno.h".
6086 * gdbarch.h, gdbarch.c: Regenerate.
6087 * sim-regno.h (legacy_register_sim_regno): Move declaration from
6088 here.
6089 * arch-utils.h (legacy_register_sim_regno): To here.
6090 * remote-sim.c (legacy_register_sim_regno): Move function from
6091 here.
6092 * arch-utils.c (legacy_register_sim_regno): To here.
6093
6094 2002-05-28 Andrew Cagney <ac131313@redhat.com>
6095
6096 * sim-regno.h: New file.
6097 * Makefile.in (sim_regno_h): Define.
6098 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
6099 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
6100 (legacy_register_sim_regno): New function.
6101 (one2one_register_sim_regno): New function.
6102 (gdbsim_fetch_register): Rewrite.
6103 (gdbsim_store_register): Only store a register when
6104 REGISTER_SIM_REGNO is valid.
6105 * d10v-tdep.c: Include "sim-regno.h".
6106 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
6107 (d10v_ts3_register_sim_regno): Ditto.
6108 * gdbarch.sh: Include "sim-regno.h".
6109 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
6110 * gdbarch.h, gdbarch.c: Regenerate.
6111 * arch-utils.h (default_register_sim_regno): Delete declaration.
6112 * arch-utils.c (default_register_sim_regno): Delete function.
6113
6114 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
6115
6116 * ppcnbsd-nat.c: Rewrite.
6117 * ppcnbsd-tdep.c: New file.
6118 * ppcnbsd-tdep.h: New file.
6119 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
6120 solib.o, and solib-svr4.o.
6121 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
6122 nbsd-tdep.o, and corelow.o.
6123
6124 2002-05-28 Andrew Cagney <ac131313@redhat.com>
6125
6126 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
6127 `tr' and `sed'. Mention that `broken' targets are not expected to
6128 build.
6129
6130 2002-05-27 Michal Ludvig <mludvig@suse.cz>
6131
6132 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
6133 Let PC point right after the prologue before looking up symbols.
6134
6135 2002-05-27 Martin M. Hunt <hunt@redhat.com>
6136
6137 * i386-tdep.c (i386_register_virtual_type): Return
6138 builtin_type_vec128i for SSE registers.
6139
6140 * gdbtypes.h (builtin_type_vec128i): Declare.
6141
6142 * gdbtypes.c (build_builtin_type_vec128i): New function.
6143 (builtin_type_v2_double, builtin_type_v4_int64): New types.
6144 (builtin_type_vec128i): New type for SSE2 128-bit registers.
6145 (build_gdbtypes): Initialize new builtin vector types.
6146 (_initialize_gdbtypes): Register new vector types with gdbarch.
6147
6148 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6149
6150 * MAINTAINERS: ns32k is not longer an obsolete candidate,
6151 since it has been multi-arch'd.
6152 * NEWS: Note that ns32k-*-* is now partial multi-arch.
6153 Move Alpha and VAX multi-arch news entries to same section
6154 as other multi-arch news.
6155
6156 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6157
6158 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
6159 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
6160 static. Rename some register numbers to put them in ns32k-tdep
6161 private namespace.
6162 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
6163 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
6164 functions.
6165 (_initialize_ns32k_tdep): Use gdbarch_register.
6166 * ns32k-tdep.h: New file.
6167 * ns32knbsd-tdep.c: New file.
6168 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
6169 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
6170 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
6171 REGISTER_BYTES, REGISTER_BYTE): Remove.
6172 * config/ns32k/tm-ns32k.h: New file.
6173 * config/ns32k/tm-umax.h: Remove.
6174
6175 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6176
6177 * ns32k-tdep.c (ns32k_saved_pc_after_call,
6178 ns32k_store_struct_return, ns32k_extract_return_value,
6179 ns32k_store_return_value, ns32k_extract_struct_value_address): New
6180 functions.
6181 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
6182 ns32k_saved_pc_after_call.
6183 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
6184 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
6185 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
6186 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
6187 ns32k_extract_struct_value_address.
6188
6189 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6190
6191 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
6192 ns32k_fix_call_dummy): New.
6193 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
6194 ns32k_call_dummy_words.
6195 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
6196 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
6197 CALL_DUMMY_NARGS): Remove.
6198 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
6199
6200 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6201
6202 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
6203 ns32k_frame_saved_pc, ns32k_frame_args_address,
6204 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
6205 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
6206 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
6207 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
6208 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
6209 (BREAKPOINT): Remove..
6210 (FRAME_CHAIN): Define as ns32k_frame_chain.
6211 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
6212 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
6213 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
6214 (FRAME_FIND_SAVED_REGS): Remove.
6215 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
6216 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
6217 (POP_FRAME): Define as ns32k_pop_frame.
6218
6219 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6220
6221 * ns32k-tdep.c (ns32k_register_byte_32082,
6222 ns32k_register_byte_32382, ns32k_register_raw_size,
6223 ns32k_register_virtual_size, ns32k_register_virtual_type): New
6224 functions.
6225 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
6226 ns32k_register_byte_32382.
6227 * config/ns32k/tm-umax.h: Update copyright years.
6228 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
6229 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
6230 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
6231 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
6232 (ns32k_get_enter_addr): Fix prototype.
6233
6234 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6235
6236 * ns32k-tdep.c: Update copyright years.
6237 (ns32k_register_name_32082): New function.
6238 (ns32k_register_name_32382): Ditto.
6239 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
6240 (REGISTER_NAME): Define as ns32k_register_name_32382.
6241 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
6242 (REGISTER_NAME): Define as ns32k_register_name_32082.
6243
6244 2002-05-24 Jim Blandy <jimb@redhat.com>
6245
6246 * dwarf2read.c (free_line_header): Use xfree, not free.
6247
6248 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
6249
6250 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
6251 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
6252
6253 2002-05-23 Andrew Cagney <ac131313@redhat.com>
6254
6255 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
6256
6257 2002-05-23 Andrew Cagney <ac131313@redhat.com>
6258
6259 From Ross Alexander at NEC Europe:
6260 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
6261
6262 2002-05-23 Michael Snyder <msnyder@redhat.com>
6263
6264 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
6265 for input, rather than parse_and_eval_address.
6266
6267 2002-05-23 Andrew Cagney <ac131313@redhat.com>
6268
6269 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
6270 * Makefile.in (sim_d10v_h): Update definition.
6271
6272 2002-05-24 Andrew Cagney <cagney@redhat.com>
6273
6274 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
6275 change `2002-05-22 Michael Snyder' below.
6276 (d10v_push_arguments): Ditto.
6277 (d10v_extract_return_value): Ditto.
6278
6279 2002-05-23 Jim Blandy <jimb@redhat.com>
6280
6281 * macrotab.c (check_for_redefinition): Don't complain if the new
6282 definition is the same as the previous one. Take more arguments
6283 to allow the comparison.
6284 (macro_define_object, macro_define_function): Pass more arguments
6285 to check_for_redefinition.
6286
6287 2002-05-22 Michael Snyder <msnyder@redhat.com>
6288
6289 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
6290 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
6291 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
6292 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
6293 Don't bail if return_pc is PC_IN_CALL_DUMMY.
6294 Add a temp variable to save a call (and a memory read).
6295 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
6296 if possible (so that PC_IN_CALL_DUMMY will work).
6297
6298 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
6299
6300 * MAINTAINERS: Remove status `OBSOLETE' from v850.
6301
6302 2002-05-22 Michal Ludvig <mludvig@suse.cz>
6303
6304 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
6305 fde->cie_ptr.
6306 (dwarf2_build_frame_info): Corrected handling of eh_frame.
6307 (dwarf2_build_frame_info): Add offset to fde->initial_location
6308 so that frames of shared libraries are mapped correctly.
6309 (execute_stack_op): Change type of 'result' from ULONGEST to
6310 CORE_ADDR.
6311
6312 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
6313
6314 * config/alpha/tm-nbsd.h: Include solib.h.
6315
6316 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
6317
6318 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
6319 assumptions about the host's byte order.
6320
6321 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
6322
6323 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
6324 to dependency list.
6325 * alphanbsd-tdep.c: Include solib-svr4.h.
6326 * shnbsd-tdep.c: Ditto.
6327
6328 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
6329
6330 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
6331 nbsd-tdep.h to dependency list.
6332 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
6333 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
6334 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
6335 nbsdaout.mh and nbsdelf.mh consistently.
6336 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
6337 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
6338 nbsdaout.mt and nbsdelf.mh consistently.
6339 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
6340 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
6341 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
6342 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
6343 a.out shared library stuff from here...
6344 * config/nm-nbsdaout.h: ...to here.
6345 * config/tm-nbsd.h: Remove.
6346 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
6347 * config/arm/nbsd.mh: Remove.
6348 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
6349 nbsd-tdep.o.
6350 * config/arm/nbsdaout.mh: New file.
6351 * config/arm/nbsdelf.mh: New file.
6352 * config/arm/nm-nbsdaout.h: New file.
6353 * config/i386/nbsd.mh: Remove.
6354 * config/i386/nbsd.mt: Remove.
6355 * config/i386/nbsdaout.mh: New file.
6356 * config/i386/nbsdaout.mt: New file.
6357 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
6358 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
6359 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
6360 i386_register_u_addr): Remove.
6361 * config/i386/nm-nbsdaout.h: New file.
6362 * config/i386/nm-nbsdelf.h: Remove.
6363 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
6364 (USE_STRUCT_CONVENTION): Remove.
6365 * config/i386/tm-nbsdaout.h: New file.
6366 * config/i386/tm-nbsdelf.h: Remove.
6367 * config/m68k/nbsd.mh: Remove.
6368 * config/m68k/nbsd.mt: Remove.
6369 * config/m68k/nbsdaout.mh: New file.
6370 * config/m68k/nbsdaout.mt: New file.
6371 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
6372 * config/m68k/nm-nbsdaout.h: New file.
6373 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
6374 (IN_SOLIB_CALL_TRAMPOLINE): Define.
6375 * config/ns32k/nbsd.mh: Remove.
6376 * config/ns32k/nbsd.mt: Remove.
6377 * config/ns32k/nbsdaout.mh: New file.
6378 * config/ns32k/nbsdaout.mt: New file.
6379 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
6380 * config/ns32k/nm-nbsdaout.h: New file.
6381 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
6382 (IN_SOLIB_CALL_TRAMPOLINE): Define.
6383 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
6384 (SVR4_SHARED_LIBS): Remove.
6385 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
6386 * config/sparc/nbsd.mh: Remove.
6387 * config/sparc/nbsd.mt: Remove.
6388 * config/sparc/nbsdaout.mh: New file.
6389 * config/sparc/nbsdaout.mt: New file.
6390 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
6391 * config/sparc/nbsdelf.mt: New file.
6392 * config/sparc/nm-nbsdaout.h: New file.
6393 * config/sparc/nm-nbsdelf.h: Remove.
6394 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
6395 * config/sparc/tm-nbsdaout.h: New file.
6396
6397 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6398
6399 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
6400 mipsnbsd-tdep.c
6401 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
6402
6403 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6404
6405 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
6406 shnbsd-nat.c.
6407 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
6408
6409 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6410
6411 * NEWS: Note new MIPS NetBSD native configuration.
6412 * configure.host (mips*-*-netbsd*): New host.
6413 * configure.tgt (mips*-*-netbsd*): New target.
6414 * mipsnbsd-nat.c: New file.
6415 * mipsnbsd-tdep.c: New file.
6416 * mipsnbsd-tdep.h: New file.
6417 * config/mips/nbsd.mh: New file.
6418 * config/mips/nbsd.mt: New file.
6419 * config/mips/nm-nbsd.h: New file.
6420 * config/mips/tm-nbsd.h: New file.
6421
6422 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6423
6424 * Makefile.in (SFILES): Add osabi.c.
6425 (COMMON_OBS): Add osabi.o.
6426 (osabi.o): New dependency list.
6427 * osabi.c: New file.
6428 * osabi.h: New file.
6429 * doc/gdbint.texinfo: Document new generic OS ABI framework.
6430
6431 * Makefile.in (alpha_tdep_h): Define and use instead of
6432 alpha-tdep.h.
6433 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
6434 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
6435 Remove.
6436 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
6437 * alpha-tdep.h: Include osabi.h.
6438 (alpha_abi): Remove.
6439 (gdbarch_tdep): Use generic OS ABI framework.
6440 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
6441 gdbarch_register_osabi.
6442 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
6443 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
6444 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
6445
6446 * Makefile.in (sh_tdep_h): Add osabi.h.
6447 * sh-tdep.h (sh_osabi): Remove.
6448 (gdbarch_tdep): Use generic OS ABI framework.
6449 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
6450 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
6451 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
6452 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
6453
6454 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
6455 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
6456 gdbarch_register_osabi.
6457 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
6458 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
6459 (get_elfosabi): Rename to...
6460 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
6461 ABI framework support routines.
6462 (arm_gdbarch_init): Use generic OS ABI framework.
6463 (arm_dump_tdep): Likewise.
6464 (_initialize_arm_tdep): Likewise.
6465 * arm-tdep.h: Include osabi.h.
6466 (arm_abi): Remove.
6467 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
6468 osabi member.
6469 (arm_gdbarch_register_os_abi): Remove prototype.
6470 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
6471 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
6472
6473 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
6474 * mips-tdep.c: Include osabi.h.
6475 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
6476 OS ABI framework.
6477
6478 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
6479
6480 * h8300-tdep.c: Fix formatting.
6481
6482 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
6483
6484 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
6485 printing vector registers.
6486
6487 2002-05-19 Andrew Cagney <ac131313@redhat.com>
6488
6489 From Fernando Nasser:
6490 * remote.c (remote_async_open_1): Re-throw the exception when the
6491 connection fails.
6492 (remote_cisco_open): Ditto.
6493 (remote_open_1): Ditto.
6494
6495 2002-05-19 Andrew Cagney <ac131313@redhat.com>
6496
6497 * remote.c (remote_start_remote_dummy): Add uiout parameter.
6498 (remote_start_remote): Add uiout parameter. Pass through to
6499 remote_start_remote_dummy.
6500 (remote_open_1): Use catch_exception instead of catch_errors.
6501 (remote_async_open_1): Ditto.
6502 (remote_cisco_open): Ditto.
6503
6504 2002-05-19 Andrew Cagney <ac131313@redhat.com>
6505
6506 * remote.c (remote_start_remote): Replace PTR with void pointer.
6507 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
6508 static.
6509
6510 2002-05-18 Andrew Cagney <ac131313@redhat.com>
6511
6512 * gdb_indent.sh: Allow the script to be run in the sim directory.
6513
6514 2002-05-18 Mark Kettenis <kettenis@gnu.org>
6515
6516 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
6517 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
6518
6519 * corelow.c (core_open): Only call set_gdbarch_from_file if
6520 exec_bfd is NULL.
6521
6522 2002-05-17 Andrey Volkov <avolkov@transas.com>
6523
6524 * h8300-tdep.c: Add support of EXR register
6525 * config/h8300/tm-h8300.h: Ditto.
6526
6527 2002-05-17 Andrey Volkov <avolkov@transas.com>
6528
6529 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
6530
6531 2002-05-17 Andrey Volkov <avolkov@transas.com>
6532
6533 * h8300-tdep.c: Change literal regnums to REGNO.
6534
6535 2002-05-17 Jim Blandy <jimb@redhat.com>
6536
6537 * NEWS: Note addition of macro support.
6538
6539 Expand preprocessor macros in C expressions.
6540 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
6541 (scan_macro_expansion, scanning_macro_expansion,
6542 finished_macro_expansion): New function declarations.
6543 (expression_macro_lookup_func, expression_macro_lookup_baton): New
6544 variable declarations.
6545 * parser-defs.h (expression_context_pc): New declaration.
6546 * parse.c (expression_context_pc): New variable.
6547 (parse_exp_1): Set expression_context_pc, as well as
6548 expression_context_block.
6549 * c-exp.y (yylex): If we're not already reading the result of a
6550 macro expansion, try to macro-expand the next token. When we're
6551 done scanning a macro expansion, switch back to the mainline text.
6552 Commas and `if's in a macro's expansion don't terminate the input.
6553 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
6554 (macro_original_text, macro_expanded_text,
6555 expression_macro_lookup_func, expression_macro_lookup_baton): New
6556 variables.
6557 (scan_macro_expansion, scanning_macro_expansion,
6558 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
6559 c_preprocess_and_parse): New functions.
6560 (c_language_defn, cplus_language_defn, asm_language_defn): Call
6561 c_preprocess_and_parse, instead of c_parse.
6562 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
6563 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
6564
6565 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
6566
6567 * sh-tdep.c (gdb_print_insn_sh64): Delete.
6568 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
6569 (sh_gdbarch_init): Always use gdb_print_insn_sh.
6570
6571 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
6572
6573 * NEWS: Add section for multi-arched targets. Add v850 to that section.
6574
6575 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
6576
6577 * Makefile.in (sh_tdep_h): Define and use.
6578 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
6579 register enum): Move to...
6580 * * sh-tdep.h: ...here.
6581 * sh-tdep.c: Include sh-tdep.h.
6582 * sh3-rom.c: Likewise.
6583 * shnbsd-tdep.c: Likewise.
6584
6585 2002-05-16 Michael Snyder <msnyder@redhat.com>
6586
6587 * arm-tdep.c: Spelling fix in comment.
6588
6589 2002-05-16 Jim Blandy <jimb@redhat.com>
6590
6591 Add commands for manually expanding macros and showing their
6592 definitions.
6593 * macrocmd.c, macroscope.c, macroscope.h: New files.
6594 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
6595 (macroscope_h): New variable.
6596 (HFILES_NO_SRCDIR): Add macroscope.h.
6597 (COMMON_OBS): Add macrocmd.o, macroscope.o.
6598 (macroscope.o, macrocmd.o): New rules.
6599
6600 Teach the Dwarf 2 reader to read macro information.
6601 * dwarf2read.c: #include "macrotab.h".
6602 (dwarf_macinfo_buffer): New variable.
6603 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
6604 dwarf_macinfo_size.
6605 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
6606 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
6607 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
6608 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
6609 dwarf2_macro_spaces_in_definition): New complaints.
6610 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
6611 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
6612 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
6613 the partial symbol table.
6614 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
6615 from what's recorded in the partial symbol table.
6616 (read_file_scope): If the compilation unit has a
6617 `DW_AT_macro_info' attribute, read its macro information.
6618 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
6619
6620 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
6621
6622 Fix PR gdb/546
6623 * ser-tcp.c: Don't include <netinet/udp.h>.
6624
6625 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
6626
6627 * MAINTAINERS: Update my email address.
6628
6629 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
6630
6631 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
6632 include file of the same name.
6633
6634 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
6635
6636 * configure.tgt: Mark v850 as multi-arched.
6637 * config/v850/tm-v850.h: Remove file.
6638 * config/v850/v850.mt: Eliminate TM_FILE.
6639
6640 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
6641
6642 * v850-tdep.c: Full multi-arch.
6643 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
6644 Define GDB_MULTI_ARCH to 2.
6645
6646 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
6647
6648 * p-exp.y (current_type): New static variable.
6649 Carries the type of the expression at the position that is parsed.
6650 (push_current_type, pop_current_type): Two new functions. Used
6651 to store/restore current_type in expression on specific tokens.
6652 (search_field): New static variable. Set to one after parsing a point
6653 as at that point only a FIELDNAME token should be searched.
6654 (FIELDNAME): New token. After a point only a token belonging to
6655 current_type type definition is allowed.
6656 (all over token rules): reset and change current_type according
6657 to rules.
6658 (exp '[' rule): insert implicit array index field if
6659 exp is a pascal string type.
6660
6661 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
6662
6663 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
6664 frame info. Use frame_info's saved_regs instead of matching member
6665 in extra_frame_info throughout.
6666 (v850_frame_init_saved_regs): New function.
6667 (v850_init_extra_frame_info): Move most functionality into
6668 v850_frame_init_saved_regs().
6669 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
6670 (v850_frame_find_saved_regs): Remove declaration.
6671 (FRAME_FIND_SAVED_REGS): Remove definition.
6672 (v850_frame_init_saved_regs): Add declaration.
6673 (FRAME_INIT_SAVED_REGS): Add definition.
6674
6675 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
6676
6677 * v850-tdep.c: Begin multi-arch'ing v850.
6678 (v850_target_architecture_hook): Remove function.
6679 (v850_gdbarch_init): New function. Add code previously in
6680 v850_target_architecture_hook().
6681 (_initialize_v850_tdep): Don't set target_architecture_hook.
6682 Call register_gdbarch_init() instead.
6683
6684 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
6685
6686 * gdbtypes.h (struct cplus_struct_type): Remove args field.
6687 * hpread.c (hpread_read_struct_type): Remove assignments to args.
6688 (fixup_class_method_type): Likewise.
6689
6690 2002-05-15 Jim Blandy <jimb@redhat.com>
6691
6692 Add macro structures to GDB's symbol tables. Nobody puts anything
6693 in them yet.
6694 * symtab.h (struct symtab): New member: `macro_table'.
6695 * buildsym.h (pending_macros): New global variable.
6696 * buildsym.c: #include "macrotab.h".
6697 (buildsym_init): Initialize `pending_macros'.
6698 (end_symtab): If we found macro information while reading a CU's
6699 debugging info, do build a symtab structure for it. Make the
6700 symtab point to the macro information, and clear the
6701 `pending_macros' pointer which held it while we were reading the
6702 debug info.
6703 (really_free_pendings): Free any pending macro table.
6704 * objfiles.h (struct objfile): New member: `macro_cache'.
6705 * objfiles.c (allocate_objfile): Set allocate and free functions
6706 for the macro cache's objstack.
6707 (free_objfile): Empty the macro cache's obstack.
6708 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
6709 set new allocate and free functions for it.
6710 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
6711 free functions for the macro cache's objstack. (Why is this
6712 function building its own objfile?)
6713 * symmisc.c (print_objfile_statistics): Print statistics on the
6714 macro bcache.
6715 * Makefile.in: Note that buildsym.o depends on macrotab.h.
6716
6717 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
6718
6719 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
6720 (REGISTER_U_ADDR): Delete definition.
6721 (arm_register_u_addr): Delete declaration.
6722
6723 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
6724
6725 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
6726 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
6727
6728 2002-05-14 Andrew Cagney <ac131313@redhat.com>
6729
6730 * regcache.c (register_valid): Revise comments refering to "Not
6731 available" and "unavailable".
6732 * frame.c (frame_register_read): Ditto.
6733 * findvar.c (value_of_register): Ditto.
6734
6735 2002-05-15 Andrew Cagney <cagney@redhat.com>
6736
6737 * Makefile.in (remote_sim_h): Replace remote-sim_h.
6738 (remote-sim.o): Update dependencies.
6739 (d10v-tdep.o): Specify dependencies.
6740 (sim_d10v_h): Define.
6741
6742 2002-05-14 Jim Blandy <jimb@redhat.com>
6743
6744 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
6745 * macrotab.c (macro_lookup_inclusion, find_definition,
6746 new_macro_table): Same.
6747
6748 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
6749 not `! strcmp ()'. This is a dubious improvement.
6750 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
6751
6752 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
6753 although it's not necessary, to avoid a warning.
6754
6755 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
6756
6757 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
6758 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
6759 TYPE_INSTANCE_FLAGS.
6760 (struct main_type): New.
6761 (struct type): Move most members to struct main_type. Change
6762 cv_type and as_type to new type_chain member. Add instance_flags.
6763 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
6764 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
6765 (finish_cv_type): Remove prototype.
6766 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
6767 Set TYPE_CHAIN.
6768 (alloc_type_instance): New function.
6769 (smash_type): New function.
6770 (make_pointer_type, make_reference_type, make_function_type)
6771 (smash_to_member_type, smash_to_method_type): Call smash_type.
6772 (make_qualified_type): New function.
6773 (make_type_with_address_space): Call make_qualified_type.
6774 (make_cv_type): Likewise.
6775 (finish_cv_type): Remove unnecessary function.
6776 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
6777 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
6778 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
6779 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
6780 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
6781 * hpread.c (hpread_read_struct_type): Likewise.
6782 * stabsread.c (read_struct_type): Likewise.
6783
6784 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
6785
6786 * configure.tgt: Add a catch all sh* target, for cases like
6787 sh[2,3,4]-elf and sh-hms.
6788
6789 2002-05-14 Keith Seitz <keiths@redhat.com>
6790
6791 * event-loop.c (create_file_handler): Don't do anything but
6792 update data when we are given a fd which we are already
6793 monitoring.
6794
6795 2002-05-14 Michal Ludvig <mludvig@suse.cz>
6796
6797 * dwarf2cfi.c (context_cpy): Copy registers correctly.
6798 (update_context): Use __func__ in warnings.
6799
6800 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
6801
6802 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
6803 and tcp_close to net_open and net_close.
6804 (net_open): Accept "udp:" and "tcp:" specifications. Connect
6805 using UDP if requested. Don't try to disable Nagle on UDP
6806 sockets.
6807 * remote.c (remote_serial_open): New function. Warn about UDP.
6808 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
6809
6810 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
6811
6812 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
6813
6814 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
6815
6816 * configure.tgt: Remove sh-hms target.
6817 * MAINTAINERS: Don't list sh-hms as a separate target.
6818
6819 2002-05-13 Jim Blandy <jimb@redhat.com>
6820
6821 Add first preprocessor macro-expansion files.
6822 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
6823 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
6824 (splay_tree_h, macroexp_h, macrotab_h): New variable.
6825 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
6826 (COMMON_OBS): Add macrotab.o, macroexp.o.
6827 (macroexp.o, macrotab.o): New rules.
6828
6829 2002-05-13 Andrew Cagney <ac131313@redhat.com>
6830
6831 * config/m88k/tm-m88k.h: Update copyright.
6832 (m88k_target_write_pc): Declare
6833 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
6834 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
6835 (SHIFT_INST_REGS): Update definition.
6836 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
6837 using old definition of TARGET_WRITE_PC.
6838 * regcache.c (generic_target_write_pc): Delete code handling
6839 NNPC_REGNUM.
6840 * gdbarch.sh (NNPC_REGNUM): Delete.
6841 * gdbarch.h, gdbarch.c: Regenerate.
6842
6843 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
6844
6845 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
6846 builtin reg number.
6847
6848 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
6849
6850 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
6851 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
6852 (gen_address_of, gen_struct_ref, gen_repeat): Use type
6853 access macros.
6854 * c-typeprint.c (cp_type_print_method_args): Likewise.
6855 (c_type_print_args): Likewise.
6856 * d10v-tdep.c (d10v_push_arguments): Likewise.
6857 (d10v_extract_return_value): Likewise.
6858 * expprint.c (print_subexp): Likewise.
6859 * gdbtypes.c (lookup_primitive_typename): Likewise.
6860 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
6861 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
6862 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
6863 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
6864 (TYPE_VECTOR): Likewise.
6865 * hpread.c (hpread_read_struct_type)
6866 (fix_static_member_physnames, fixup_class_method_type)
6867 (hpread_type_lookup): Likewise.
6868 * mdebugread.c (parse_symbol, parse_type): Likewise.
6869 * p-lang.c (is_pascal_string_type): Likewise.
6870 * valops.c (hand_function_call): Likewise.
6871 * x86-64-tdep.c (classify_argument): Likewise.
6872
6873 * hpread.c (hpread_read_function_type)
6874 (hpread_read_doc_function_type): Call replace_type.
6875 * dstread.c (create_new_type): Delete.
6876 (decode_dst_structure, process_dst_function): Call alloc_type.
6877 Use type access macros.
6878
6879 2002-05-12 Mark Kettenis <kettenis@gnu.org>
6880
6881 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
6882 the're not supported by the current architecture.
6883 (i387_fill_fxsave): Likewise.
6884
6885 2002-05-12 Fred Fish <fnf@redhat.com>
6886
6887 * symfile.c (default_symfile_offsets): Arrange for uninitialized
6888 sect_index_xxx members to index the first slot in section_offsets
6889 if all of the section_offsets are zero.
6890
6891 2002-05-12 Mark Kettenis <kettenis@gnu.org>
6892
6893 * configure.tgt (sparc-*openbsd): Remove entry accidentially
6894 checked in with last change.
6895
6896 2002-05-12 Mark Kettenis <kettenis@gnu.org>
6897
6898 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
6899 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
6900 config.sub.
6901
6902 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
6903
6904 * Makefile.in: Update dependencies.
6905
6906 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6907
6908 * language.c (local_hex_string_custom): Simplify. Do not depend
6909 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
6910
6911 * memattr.c (mem_info_command): Replace calls to
6912 longest_local_hex_string and longest_local_hex_string_custom.
6913 * buildsym.c (make_blockvector): Ditto.
6914 * solib.c (info_sharedlibrary_command): Ditto.
6915 * tracepoint.c (tracepoints_info): Ditto.
6916 * symtab.c (print_msymbol_info): Ditto.
6917
6918 * language.c (local_hex_string): Delete.
6919 (local_hex_string_custom): Delete.
6920 (longest_local_hex_string): Rename to local_hex_string.
6921 (longest_local_hex_string_custom): Rename to
6922 local_hex_string_custom.
6923 * language.h (local_hex_string): Change parameter type to LONGEST.
6924 (local_hex_string_custom): Ditto.
6925 (longest_local_hex_string): Delete declaration.
6926 (longest_local_hex_string_custom): Ditto.
6927
6928 * solib.c: Update copyright.
6929 * memattr.c: Update copyright.
6930
6931 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6932
6933 * arch-utils.h (legacy_register_to_value): Declare.
6934 (legacy_value_to_register): Declare.
6935 (legacy_convert_register_p): Declare.
6936 * arch-utils.c (legacy_register_to_value): New function.
6937 (legacy_value_to_register): New function.
6938 (legacy_convert_register_p): New function.
6939
6940 * gdbarch.sh (REGISTER_TO_VALUE): Define.
6941 (VALUE_TO_REGISTER): Define.
6942 (CONVERT_REGISTER_P): Define.
6943 * gdbarch.h, gdbarch.c: Regenerate.
6944
6945 * valops.c (value_assign): Use CONVERT_REGISTER_P and
6946 VALUE_TO_REGISTER.
6947 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
6948 CONVERT_REGISTER_P.
6949
6950 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
6951 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
6952
6953 * Makefile.in: Update dependencies for valops.c.
6954 * valops.c: Include "gdb_assert.h".
6955 (typecmp): Skip THIS parameter to methods.
6956 (find_method_list): Remove static_memfuncp argument,
6957 update callers. Check for stub methods.
6958 (find_value_oload_method_list): Don't set *static_memfuncp.
6959 (find_overload_match): Don't check for stub methods. Assert
6960 that methods are not stubbed. Handle static methods.
6961 (value_find_oload_method_list): Remove static_memfuncp argument.
6962 * gdbtypes.c (check_stub_method): Do not add THIS pointer
6963 to the argument list for static stub methods.
6964 * value.h (value_find_oload_method_list): Update prototype.
6965
6966 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6967
6968 * arch-utils.h (generic_register_size): Declare.
6969 (generic_register_raw_size, generic_register_virtual_size): Delete
6970 declarations.
6971 * arch-utils.c (generic_register_raw_size): Delete.
6972 (generic_register_size): New function.
6973 (generic_register_virtual_size): Delete.
6974
6975 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
6976 default generic_register_size.
6977 * gdbarch.h, gdbarch.c: Re-generate.
6978
6979 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
6980 register_virtual_size.
6981 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
6982 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6983
6984 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6985
6986 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
6987 * gdbarch.h, gdbarch.c: Regenerate.
6988 * gnu-v3-abi.c: Update copyright.
6989 (vtable_address_point_offset): Update.
6990 (gnuv3_rtti_type): Update.
6991 (gnuv3_baseclass_offset): Update.
6992 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
6993 (init_fetch_link_map_offsets): Update.
6994 * remote.c (get_remote_state): Update.
6995
6996 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
6997
6998 * TODO: Remove value_headof/value_from_vtable_info comment.
6999 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
7000 * values.c (value_headof, value_from_vtable_info): Delete.
7001 * value.h (value_from_vtable_info): Delete prototype.
7002
7003 2002-05-11 Andrew Cagney <ac131313@redhat.com>
7004
7005 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
7006 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
7007 $(gdb_regex_h).
7008 (gdb_assert_h): Define.
7009 (gdb_wait_h): Define.
7010 (gdb_regex_h): Define.
7011
7012 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
7013
7014 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
7015 * linespec.c (find_methods): Handle GCC 3.x template constructors.
7016
7017 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7018
7019 * nbsd-tdep.c: Fix comment.
7020
7021 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7022
7023 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
7024 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
7025 (nbsd-tdep.o): New dependency list.
7026 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
7027 nbsd-tdep.h.
7028 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
7029 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
7030 * nbsd-tdep.c: New file.
7031 * nbsd-tdep.h: New file.
7032 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
7033 nbsd-tdep.h.
7034 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
7035 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
7036 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
7037 * config/sh/nbsd.mt (TDEPFILES): Ditto.
7038
7039 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7040
7041 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
7042 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
7043 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
7044 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
7045 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
7046 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
7047
7048 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7049
7050 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
7051 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
7052 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
7053 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
7054 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
7055 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
7056 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
7057
7058 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7059
7060 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
7061 fetch_elfcore_registers to...
7062 * i386nbsd-tdep.c: ...here.
7063 (i386nbsd_use_struct_convention): Rename to...
7064 (i386nbsd_aout_use_struct_convention): ...this.
7065 (i386nbsd_supply_reg): New function.
7066 (i386nbsd_fill_reg): New function.
7067 (fetch_core_registers): Use i386nbsd_supply_reg.
7068 (fetch_elfcore_registers): Likewise.
7069 (_initialize_i386nbsd_tdep): New function.
7070 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
7071 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
7072 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
7073 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
7074 (i386nbsd_aout_use_struct_convention): ...this.
7075
7076 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7077
7078 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
7079 (store_inferior_registers): Use shnbsd_fill_reg.
7080 * shnbsd-tdep.c (sh_nbsd_supply_registers,
7081 sh_nbsd_supply_register): Collapse into...
7082 (shnbsd_supply_reg): ...this.
7083 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
7084 (shnbsd_fill_reg): ...this.
7085 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
7086 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
7087 (fetch_core_registers): Use shnbsd_supply_reg.
7088 (fetch_elfcore_registers): Use shnbsd_supply_reg.
7089 (sh_nbsd_core_fns): Rename to...
7090 (shnbsd_core_fns): ...this.
7091 (sh_nbsd_elfcore_fns): Rename to...
7092 (shnbsd_elfcore_fns): ...this.
7093 (sh_nbsd_init_abi): Rename to...
7094 (shnbsd_init_abi): ...this.
7095 (_initialize_sh_nbsd_tdep): Rename to...
7096 (_initialize_shnbsd_tdep): ...this.
7097 * shnbsd-tdep.h (sh_nbsd_supply_registers,
7098 sh_nbsd_supply_register, sh_nbsd_fill_registers,
7099 sh_nbsd_fill_register): Remove prototypes.
7100 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
7101
7102 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7103
7104 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
7105 (i387-nat.o): Delete dependency list.
7106 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
7107 (x86-64-linux-nat.o): Likewise.
7108 * i387-nat.c: Delete file, moving contents to...
7109 * i387-tdep.c: ...here.
7110 * i387-nat.h: Rename...
7111 * i387-tdep.h: ...to this.
7112 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
7113 * i386-linux-nat.c: Likewise.
7114 * i386bsd-nat.c: Likewise.
7115 * i386gnu-nat.c: Likewise.
7116 * i386nbsd-nat.c: Likewise.
7117 * i386v4-nat.c: Likewise.
7118 * x86-64-linux-nat.c: Likewise.
7119 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
7120 * config/i386/go32.mh (NATDEPFILES): Likewise.
7121 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
7122 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
7123 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
7124 * config/i386/linux.mh (NATDEPFILES): Likewise.
7125 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
7126 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
7127 * config/i386/obsd.mh (NATDEPFILES): Likewise.
7128 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
7129
7130 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7131
7132 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
7133 (alphanbsd-nat.o): Remove dependency list.
7134 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
7135 * alphanbsd-nat.c: Delete. Contents moved to...
7136 * alphanbsd-tdep.c: ...here.
7137 (_initialize_alphanbsd_tdep): Register core functions.
7138 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
7139
7140 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7141
7142 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
7143 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
7144 (alphanbsd-nat.o): Likewise.
7145 (alphabsd-tdep.o): New dependency list.
7146 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
7147 (fill_gregset): Use alphabsd_fill_reg.
7148 (supply_fpregset): Use alphabsd_supply_fpreg.
7149 (fill_fpregset): Use alphabsd_fill_fpreg.
7150 (fetch_inferior_registers): Use struct reg and struct fpreg
7151 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
7152 and alphabsd_supply_fpreg.
7153 (store_inferior_registers): Use struct reg and struct fpreg
7154 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
7155 and alphabsd_fill_fpreg.
7156 * alphabsd-tdep.c: New file.
7157 * alphabsd-tdep.h: New file.
7158 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
7159 (fetch_elfcore_registers): Use alphabsd_supply_reg and
7160 alphabsd_supply_fpreg.
7161 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
7162 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
7163
7164 2002-05-11 Eric Christopher <echristo@redhat.com>
7165
7166 * mips-tdep.c (mips_double_register_type): Fix thinko.
7167 (mips_single_register_type): Ditto.
7168 * MAINTAINERS: Add self.
7169
7170 2002-05-11 Mark Kettenis <kettenis@gnu.org>
7171
7172 * i387-nat.c (i387_supply_register, i387_fill_fsave,
7173 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
7174 right thing on architectures with different endianness and/or
7175 integer sizes.
7176
7177 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
7178
7179 From Christian Limpach <chris@Pin.LU>
7180 * configure.in: Change sed expression which comments out
7181 NATDEPFILES to also comment out continuation lines.
7182 * configure: Regenerate.
7183
7184 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
7185
7186 * sh-tdep.c: Clean up code erroneously reintroduced by previous
7187 big patch.
7188
7189 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
7190
7191 * sh-tdep.c: Include correct file.
7192
7193 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
7194
7195 New support for sh64-elf (sh5) target.
7196
7197 * configure.tgt: For sh64-elf target, default to sh-elf.
7198
7199 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
7200 (struct gdbarch_tdep): Add new fields for new registers and ABI
7201 info.
7202
7203 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
7204 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
7205 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
7206 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
7207 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
7208 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
7209 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
7210 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
7211 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
7212 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
7213 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
7214 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
7215 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
7216 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
7217 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
7218 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
7219 sh64_get_gdb_regnum, sh64_media_reg_base_num,
7220 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
7221 sign_extend, sh64_nofp_frame_init_saved_regs,
7222 sh64_init_extra_frame_info, sh64_get_saved_register,
7223 sh64_extract_struct_value_address, sh64_pop_frame,
7224 sh64_push_arguments, sh64_extract_return_value,
7225 sh64_store_return_value, sh64_show_media_regs,
7226 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
7227 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
7228 sh_sh64_register_virtual_type,
7229 sh_sh64_register_convert_to_virtual,
7230 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
7231 sh64_register_read, sh64_pseudo_register_write,
7232 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
7233 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
7234 sh64_do_pseudo_register, sh_compact_do_registers_info,
7235 sh64_do_registers_info, sh_gdbarch_init): New functions.
7236
7237 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
7238
7239 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
7240
7241 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
7242
7243 * linespec.c (decode_line_1): Check for a double quote after
7244 a filename correctly.
7245
7246 2002-05-10 Jim Blandy <jimb@redhat.com>
7247
7248 Properly track the size of the current objfile's .debug_line section.
7249 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
7250 (DWARF_LINE_SIZE): New macro.
7251 (dwarf2_build_psymtabs_hard): Record the line section's size in
7252 the partial symbol table.
7253 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
7254 symbol table.
7255
7256 2002-05-10 Petr Sorfa <petrs@caldera.com>
7257
7258 * ia64-tdep.c: Handle breakpoints on L instruction type
7259 in MLX instruction bundle by moving the breakpoint to
7260 the third slot (X instruction type) as L holds only data.
7261
7262 2002-05-10 Kevin Buettner <kevinb@redhat.com>
7263
7264 * dbxread.c (discarding_local_symbols_complaint): New complaint.
7265 (process_one_symbol): Complain about discarding local symbols
7266 due to a misplaced N_LBRAC entry.
7267
7268 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
7269
7270 From Daniel Berlin <dan@cgsoftware.com>
7271 * linespec.c (find_toplevel_char): '<' and '>' also increase and
7272 decrease the depth we are at, in the case of templates.
7273
7274 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
7275
7276 * mips-tdep.c (mips_float_register_type): New function.
7277 (mips_double_register_type): New function.
7278 (mips_print_register): Use them.
7279 (do_fp_register_row): Likewise.
7280
7281 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
7282
7283 * signals/signals.c (signals): Remove conditional compilation around
7284 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
7285 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
7286
7287 2002-05-09 Michael Snyder <msnyder@redhat.com>
7288
7289 * remote-rdp.c (remote_rdp_can_run): Remove.
7290
7291 2002-05-09 Tom Tromey <tromey@redhat.com>
7292
7293 * jv-valprint.c (java_val_print): Handle `char' as a special case
7294 of TYPE_CODE_INT.
7295
7296 2002-05-09 Michael Snyder <msnyder@redhat.com>
7297
7298 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
7299 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
7300 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
7301 str r(0123),[sp,#nn].
7302 (arm_skip_prologue): Ditto. Also make disassembly
7303 order-independent by placing it in a loop.
7304
7305 2002-05-06 Michael Snyder <msnyder@redhat.com>
7306
7307 * stabsread.c (read_type): Add recognition for new attribute:
7308 "@V;" means that an array type is actually a vector.
7309 This is analogous to the vector flag that's been added to dwarf2.
7310
7311 2002-05-09 Mark Kettenis <kettenis@gnu.org>
7312
7313 * i386-tdep.h (i386_abi): New enum.
7314 (struct gdbarch_tdep): Replace os_ident member with abi.
7315 (i386_gdbarch_register_os_abi): New prototype.
7316 * i386-tdep.c (i386_abi_names): New array.
7317 (process_note_abi_tag_sections): Removed.
7318 (process_note_sections): New function.
7319 (i386_elf_abi_from_note, i386_elf_abi): New functions.
7320 (struct i386_abi_handler): New struct.
7321 (i386_abi_handler_list): New variable.
7322 (i386_gdbarch_register_os_abi): New function.
7323 (i386_gdbarch_init): Adapt for the changes given above.
7324
7325 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
7326
7327 * gregset.h: Say "GNU/Linux".
7328
7329 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
7330
7331 * gdbtypes.c : Add new builtin type for 64 bit vectors.
7332 (build_gdbtypes): Build builtin_type_v2_float.
7333 (_initialize_gdbtypes): Register new builtin type.
7334
7335 2002-05-08 Andrew Cagney <ac131313@redhat.com>
7336
7337 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
7338 (clear_gdbarch_swap): New function.
7339 (initialize_non_multiarch): Call.
7340 (gdbarch_update_p): Before calling init(), swap out and clear the
7341 existing architecture.
7342 * gdbarch.c: Regenerate.
7343
7344 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7345
7346 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
7347 alphanbsd-tdep.c.
7348
7349 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7350
7351 * sh-nbsd-nat.c: Rename to...
7352 * shnbsd-nat.c: ...this.
7353 * sh-nbsd-tdep.c: Rename to...
7354 * shnbsd-tdep.c: ...this.
7355 * sh-nbsd-tdep.h: Rename to...
7356 * shnbsd-tdep.h: ...this.
7357 * config/sh/nbsd.mh: Use shnbsd-nat.o.
7358 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
7359
7360 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
7361
7362 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
7363 concatenation for command help messages.
7364
7365 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7366
7367 * NEWS: Note new sh*-*-netbsdelf* configuration.
7368 * configure.host: Set gdb_host_cpu to sh for all sh*.
7369 (sh*-*-netbsdelf*): New host.
7370 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
7371 (sh*-*-netbsdelf*): New target.
7372 * sh-nbsd-nat.c: New file.
7373 * sh-nbsd-tdep.c: New file.
7374 * sh-nbsd-tdep.h: New file.
7375 * config/sh/nbsd.mh: New file.
7376 * config/sh/nbsd.mt: New file.
7377 * config/sh/nm-nbsd.h: New file.
7378 * config/sh/tm-nbsd.h: New file.
7379
7380 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7381
7382 * sh-tdep.c (sh_osabi_names): Declare.
7383 (process_note_abi_tag_sections): New function.
7384 (get_elfosabi): Ditto.
7385 (sh_gdbarch_register_os_abi): Ditto.
7386 (sh_dump_tdep): Ditto.
7387 _initialize_sh_tdep): Use gdbarch_register to register
7388 sh_gdbarch_init and sh_dump_tdep.
7389 * config/sh/tm-sh.h (sh_osabi): Declare.
7390 (gdbarch_tdep): Add sh_osabi and osabi_name members.
7391
7392 2002-05-07 Andrew Cagney <ac131313@redhat.com>
7393
7394 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
7395 (thumb_scan_prologue): Ditto.
7396 (arm_find_callers_reg): Ditto.
7397 (arm_frame_chain): Ditto.
7398 (arm_init_extra_frame_info): Ditto.
7399 (arm_frame_saved_pc): Ditto.
7400 (arm_pop_frame): Ditto.
7401 (arm_push_return_address): New function.
7402 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
7403 call_dummy_location, call_dummy_breakpoint_offset_p,
7404 call_dummy_breakpoint_offset, call_dummy_p,
7405 call_dummy_stack_adjust_p, call_dummy_words,
7406 sizeof_call_dummy_words, call_dummy_start_offset,
7407 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
7408 call_dummy_address, push_return_address and push_dummy_frame for
7409 generic dummy frames.
7410
7411 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
7412
7413 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
7414 size computation for alloca.
7415 (sh_fp_frame_init_saved_regs): Likewise.
7416
7417 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
7418
7419 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
7420 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
7421 * arm-tdep.c (arm_store_return_value): Use them.
7422 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
7423 * remote-rdp.c (remote_rdp_fetch_register): Use
7424 ARM_MAX_REGISTER_RAW_SIZE.
7425 (remote_rdp_store_register): Likewise.
7426
7427 2002-05-07 Michal Ludvig <mludvig@suse.cz>
7428
7429 * dwarf2cfi.c: Code cleanup, removed unused variables,
7430 added default labels to switch {} statements.
7431 * x86-64-tdep.c: Ditto.
7432 * x86-64-linux-nat.c: Ditto.
7433
7434 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
7435
7436 * solib.h: Protect against multiple inclusion.
7437
7438 2002-05-06 Jim Blandy <jimb@redhat.com>
7439
7440 Add first preprocessor macro-expansion files.
7441 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
7442 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
7443 (splay_tree_h, macroexp_h, macrotab_h): New variable.
7444 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
7445 (COMMON_OBS): Add macrotab.o, macroexp.o.
7446 (macroexp.o, macrotab.o): New rules.
7447
7448 Separate the job of reading the line number info statement program
7449 header (...expialidocious) out into its own function.
7450 * dwarf2read.c (struct line_head, struct filenames, struct
7451 directories): Replace with...
7452 (struct line_header): New structure, containing the full
7453 contents of the statement program header, including the
7454 include directory and file name tables.
7455 (read_file_scope): If we have line number info, instead of just
7456 calling dwarf_decode_lines to do all the work, call
7457 dwarf_decode_line_header first to get a `struct line_header'
7458 containing the data in the statement program header, and then
7459 pass that to dwarf_decode_lines, which will pick up where that
7460 left off. Be sure to clean up the `struct line_header' object.
7461 (dwarf_decode_line_header, free_line_header, add_include_dir,
7462 add_file_name): New functions.
7463 (dwarf_decode_lines): Move all the code to read the statement
7464 program header into dwarf_decode_line_header. Take the line
7465 header it built as the first argument, instead of the offset to
7466 the compilation unit's line number info. Use the new `struct
7467 line_header' type instead of the old structures. No need to do
7468 cleanups here now, since we don't allocate anything.
7469 (dwarf2_statement_list_fits_in_line_number_section,
7470 dwarf2_line_header_too_long): New complaints.
7471
7472 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
7473
7474 * gdbtypes.c (init_vector_type): New function.
7475 (build_builtin_type_vec128): Simplify the representation of SIMD
7476 registers.
7477 (build_gdbtypes): Initialize new builtin vector types.
7478 (_initialize_gdbtypes): Register new vector types with gdbarch.
7479 (builtin_type_v4_float, builtin_type_v4_int32,
7480 builtin_type_v8_int16, builtin_type_v16_int8,
7481 builtin_type_v2_int32, builtin_type_v4_int16,
7482 builtin_type_v8_int8): New (renamed) SIMD types.
7483
7484 2002-05-06 Mark Kettenis <kettenis@gnu.org>
7485
7486 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
7487 (i387_fill_fxsave): Likewise.
7488
7489 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
7490
7491 * alpha-tdep.c (alpha_extract_return_value): Don't use
7492 non-constant array size in prototype.
7493
7494 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7495
7496 From Brian Taylor <briant at model dot com>:
7497 * ui-out.c (ui_out_field_core_addr): Use the function
7498 longest_local_hex_string_custom'to format addresses > 32 bits
7499 wide.
7500
7501 * ui-out.c (ui_out_field_core_addr): Update comment.
7502
7503 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7504
7505 * stack.c (select_and_print_frame): Make static. Delete the
7506 parameter `level'.
7507 (func_command): Update call.
7508 (select_frame_command): Delete code computing the frame level.
7509 * frame.h (select_and_print_frame): Delete declaration.
7510
7511 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7512
7513 * sparc-tdep.c (sparc_get_saved_register): Comment why
7514 get_prev_frame call is safe.
7515
7516 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7517
7518 * frame.h (select_frame): Delete level parameter.
7519 * stack.c (select_frame): Update. Use frame_relative_level to
7520 obtain the frame's level.
7521 (select_and_print_frame): Update call.
7522 (select_frame_command): Ditto.
7523 (up_silently_base): Ditto.
7524 (down_silently_base): Ditto.
7525 * ocd.c (ocd_start_remote): Ditto.
7526 * remote-rdp.c (remote_rdp_open): Ditto.
7527 * remote-mips.c (mips_initialize): Ditto.
7528 (common_open): Ditto.
7529 * remote-e7000.c (e7000_start_remote): Ditto.
7530 * m3-nat.c (select_thread): Ditto.
7531 * hppa-tdep.c (child_get_current_exception_event): Ditto.
7532 (child_get_current_exception_event): Ditto.
7533 * varobj.c (varobj_create): Ditto.
7534 (varobj_update): Ditto.
7535 (c_value_of_root): Ditto.
7536 * tracepoint.c (finish_tfind_command): Ditto.
7537 * corelow.c (core_open): Ditto.
7538 * arch-utils.c (generic_prepare_to_proceed): Ditto.
7539 * thread.c (info_threads_command): Ditto.
7540 (switch_to_thread): Ditto.
7541 * infrun.c (normal_stop): Ditto.
7542 (restore_selected_frame): Ditto.
7543 (restore_inferior_status): Ditto.
7544 * breakpoint.c (insert_breakpoints): Ditto.
7545 (watchpoint_check): Ditto.
7546 (bpstat_stop_status): Ditto.
7547 (do_enable_breakpoint): Ditto.
7548 * blockframe.c (flush_cached_frames): Ditto.
7549 (reinit_frame_cache): Ditto.
7550
7551 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7552
7553 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
7554 maintainer.
7555
7556 2002-05-04 Jim Blandy <jimb@redhat.com>
7557
7558 * gdbtypes.c (replace_type): Doc fix.
7559
7560 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7561
7562 * valprint.c (strcat_longest): Delete commented out function.
7563 Update copyright.
7564
7565 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7566
7567 * MAINTAINERS: Mark a29k as deleted.
7568 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
7569 Move new configurations to the top.
7570 * configure.tgt: Remove a29k.
7571 * config/a29k/tm-vx29k.h: Delete.
7572 * config/a29k/vx29k.mt: Delete.
7573 * config/a29k/tm-a29k.h: Delete.
7574 * config/a29k/a29k-udi.mt: Delete.
7575 * config/a29k/a29k.mt: Delete.
7576 * a29k-tdep.c: Delete.
7577 * remote-udi.c: Delete.
7578 * remote-mm.c: Delete.
7579 * remote-eb.c: Delete.
7580 * remote-adapt.c: Delete.
7581 * Makefile.in: Remove obsolete code.
7582 * config/s390/s390x.mt: Ditto.
7583 * config/s390/s390.mt: Ditto.
7584 * config/sparc/sparclynx.mh: Ditto.
7585 * config/sparc/linux.mh: Ditto.
7586 * config/pa/hppaosf.mh: Ditto.
7587 * config/pa/hppabsd.mh: Ditto.
7588 * config/ns32k/nbsd.mt: Ditto.
7589 * config/mips/vr5000.mt: Ditto.
7590 * config/m68k/sun3os4.mh: Ditto.
7591 * config/m68k/nbsd.mt: Ditto.
7592 * config/m68k/m68klynx.mh: Ditto.
7593 * config/m32r/m32r.mt: Ditto.
7594 * config/i386/x86-64linux.mt: Ditto.
7595 * config/i386/nbsdelf.mt: Ditto.
7596 * config/i386/nbsd.mt: Ditto.
7597 * config/i386/i386lynx.mh: Ditto.
7598
7599 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7600
7601 * target.c (debug_print_register): New function. Handle oversize
7602 registers.
7603 (debug_to_fetch_registers): Call.
7604 (debug_to_store_registers): Call.
7605
7606 2002-05-03 Jim Blandy <jimb@redhat.com>
7607
7608 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
7609 (read_type): Doc fix.
7610 * gdbtypes.c (replace_type): Doc fix.
7611
7612 * stabsread.c (multiply_defined_struct): New complaint.
7613 (read_struct_type): If the type we were passed isn't empty, or
7614 incomplete, don't read the new struct type into it; complain,
7615 and return the original type unchanged. Take a new `type_code'
7616 argument, which is the type code for the new type.
7617 (read_type): Rather than storing the type's type code here, pass
7618 it as an argument to read_struct_type, and let that take care of
7619 storing it. That way, we don't overwrite the original type code,
7620 so read_struct_type can use it to decide whether we're overwriting
7621 something we shouldn't.
7622 (complain_about_struct_wipeout): New function.
7623
7624 2002-05-03 Andrew Cagney <ac131313@redhat.com>
7625
7626 * gdbarch.sh: Assert that gdbarch is non-NULL.
7627 * gdbarch.c: Regenerate.
7628
7629 2002-05-03 Jason Merrill <jason@redhat.com>
7630
7631 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
7632 and return NULL.
7633
7634 2002-05-03 Michal Ludvig <mludvig@suse.cz>
7635
7636 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
7637 (x86_64_dwarf2gdb_regno_map_length),
7638 (x86_64_dwarf2_reg_to_regnum): Added.
7639 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
7640 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
7641 (_initialize_x86_64_tdep): Synced with the change above.
7642 (x86_64_skip_prologue): Reformulated message.
7643
7644 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
7645
7646 * f-exp.y: Also use new prev_lexptr variable
7647 to improve error reporting. Based on Michael Snyder
7648 2002-04-24 dated patch to c-exp.y.
7649 * jv-exp.y: Likewise.
7650 * m2-exp.y: Likewise.
7651
7652 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
7653
7654 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
7655 we are dealing with vectors.
7656
7657 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7658
7659 * config/m68k/tm-nbsd.h: Obvious fix,
7660 correct machine name.
7661
7662 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7663
7664 * p-typeprint.c (pascal_type_print_base): Add support
7665 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
7666
7667 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7668
7669 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
7670 for fondamental pascal 'char' type.
7671
7672 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7673
7674 * p-lang.h (is_pascal_string_type): Declaration changed,
7675 new sixth argument of type char ** added.
7676 * p-lang.c (is_pascal_string_type): Implementation
7677 changed. Args length_pos, length_size, string_pos, char_size
7678 can now be NULL. New argument arrayname set to the field
7679 name of the char array. Return value set to char array
7680 field index plus one.
7681 * p-valprint.c (pascal_val_print): Adapt to new declaration of
7682 is_pascal_string_type function.
7683
7684 2002-05-02 Andrew Cagney <cagney@redhat.com>
7685
7686 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
7687 <cagney@redhat.com> change.
7688 * gdbarch.c: Regenerate.
7689
7690 2002-05-02 Andrew Cagney <cagney@redhat.com>
7691
7692 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
7693 before probing for a new one. Detect errorenous gdbarch_init
7694 functions.
7695 * gdbarch.c: Regenerate.
7696
7697 2002-05-01 Andrew Cagney <cagney@redhat.com>
7698
7699 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
7700 * config/mcore/tm-mcore.h: Ditto. Update copyright.
7701 * config/v850/tm-v850.h: Ditto. Update copyright.
7702
7703 2002-04-30 Andrew Cagney <ac131313@redhat.com>
7704
7705 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
7706 current_gdbarch.
7707
7708 2002-04-30 Michael Snyder <msnyder@redhat.com>
7709
7710 * arm-tdep.c: Whitespace clean-ups.
7711 (arm_skip_prologue): Fix thinko; two lines
7712 should have been removed as part of 4/24 change.
7713
7714 2002-04-30 Kevin Buettner <kevinb@redhat.com>
7715
7716 * rs6000-tdep.c: Added comment describing how fpscr register
7717 numbers were chosen.
7718
7719 2002-04-30 Michael Snyder <msnyder@redhat.com>
7720
7721 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
7722
7723 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
7724
7725 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
7726 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
7727 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
7728
7729 2002-04-29 Kevin Buettner <kevinb@redhat.com>
7730
7731 From Louis Hamilton <hamilton@redhat.com>:
7732 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
7733 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
7734 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
7735 not bfd-private xcoff data, to determine wordsize.
7736 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
7737
7738 2002-04-29 Andrew Cagney <ac131313@redhat.com>
7739
7740 GDB 5.2 released from 5.2 branch.
7741
7742 2002-04-29 Michal Ludvig <mludvig@suse.cz>
7743
7744 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
7745 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
7746 (x86_64_register_info_table): Added comments with register numbers.
7747
7748 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
7749
7750 * rs6000-tdep.c (rs6000_extract_return_value,
7751 rs6000_store_return_value): Handle returning vectors.
7752 (rs6000_gdbarch_init): Use
7753 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
7754 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
7755 New function.
7756 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
7757 vectors.
7758 (ppc_sysv_abi_push_arguments): Handle vector parameters.
7759 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
7760
7761 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
7762
7763 * hpread.c (hpread_psymtab_to_symtab_1,
7764 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
7765 with fprintf_unfiltered (gdb_stderr,...).
7766
7767 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
7768
7769 * remote-array.c (printf_monitor, write_monitor,
7770 array_insert_breakpoint, array_remove_breakpoint ):
7771 Replace fprintf (stderr,...
7772 with fprintf_unfiltered (gdb_stderr,....
7773 * remote-es.c: Likewise.
7774 * remote-os9k.c: Likewise.
7775 * remote-st.c: Likewise.
7776
7777 2002-04-28 Andreas Schwab <schwab@suse.de>
7778
7779 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
7780 linux-proc.o and gcore.o.
7781
7782 2002-04-26 Michal Ludvig <mludvig@suse.cz>
7783
7784 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
7785 code without frame pointers.
7786
7787 2002-04-26 Andrew Cagney <ac131313@redhat.com>
7788
7789 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
7790 ON_STACK is needed.
7791
7792 2002-04-26 Ben Elliston <bje@redhat.com>
7793
7794 * target.c (do_xfer_memory): Correct reference to the new option
7795 "trust-readonly-sections".
7796
7797 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
7798
7799 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
7800 * gdbtypes.c (recursive_dump_type): Output the vector flag.
7801 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
7802 vectors.
7803 (read_array_type): Record the fact that this array type is really a
7804 vector (i.e. are passed in by value).
7805
7806 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
7807
7808 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
7809 * alpha-tdep.c (alpha_sigcontext_addr): New function.
7810 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
7811 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
7812 * alpha-linux-tdep.c: Include frame.h.
7813 (alpha_linux_sigcontext_addr): New function.
7814 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
7815 alpha_linux_sigcontext_addr.
7816 * alpha-osf1-tdep.c: Include gdbcore.h.
7817 (alpha_osf1_sigcontext_addr): New function.
7818 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
7819 alpha_osf1_sigcontext_addr.
7820 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
7821 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
7822
7823 2002-04-26 Andrew Cagney <ac131313@redhat.com>
7824
7825 * stack.c (selected_frame_level):
7826 (select_frame): Do not set selected_frame_level.
7827 * frame.h (selected_frame_level): Delete declaration.
7828
7829 2002-04-26 Andrew Cagney <ac131313@redhat.com>
7830
7831 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
7832 convert_from_func_ptr-addr when AIX / PowerOpen.
7833
7834 2002-04-25 Andrew Cagney <ac131313@redhat.com>
7835
7836 * valops.c (hand_function_call): Call
7837 generic_save_call_dummy_addr.
7838 * frame.h (generic_save_call_dummy_addr): Declare.
7839 * blockframe.c (struct dummy_frame): Add fields call_lo and
7840 call_hi.
7841 (generic_find_dummy_frame): Check for PC in range call_lo to
7842 call_hi instead of entry_point_address.
7843 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
7844 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
7845 (generic_save_call_dummy_addr): New function.
7846
7847 2002-04-24 David S. Miller <davem@redhat.com>
7848
7849 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
7850 sparc_skip_prologue.
7851 (sparc_skip_prologue): Kill frameless_p arg, and use line number
7852 information to find prologue when possible.
7853 (sparc_prologue_frameless_p): Call examine_prologue directly.
7854 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
7855 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
7856 second argument.
7857 (SKIP_PROLOGUE): Likewise.
7858
7859 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7860
7861 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
7862 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
7863 indicate that the condition it was testing is always true.
7864 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
7865 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
7866 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
7867
7868 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7869
7870 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
7871 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
7872 tdep->jb_pc and tdep->jb_elt_size.
7873 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
7874 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
7875 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
7876 * alpha-nat.c (get_longjmp_target): Remove.
7877 (JB_ELEMENT_SIZE): Ditto.
7878 (JB_PC): Ditto.
7879 * alpha-tdep.c (alpha_get_longjmp_target): New function.
7880 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
7881 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
7882 to alpha_get_longjmp_target.
7883 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
7884 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
7885 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
7886
7887 2002-04-25 Andrew Cagney <ac131313@redhat.com>
7888
7889 * README: Update to GDB 5.2.
7890
7891 2002-04-25 Andrew Cagney <ac131313@redhat.com>
7892
7893 * gdbarch.sh (LC_ALL): Set to `c'.
7894
7895 2002-04-25 Theodore A. Roth <troth@verinet.com>
7896
7897 * avr-tdep.c: Ran through gdb_indent.sh.
7898
7899 2002-04-25 Theodore A. Roth <troth@verinet.com>
7900
7901 * MAINTAINERS: Add myself as AVR maintainer.
7902 * NEWS: Note new target avr.
7903
7904 2002-04-25 Theodore A. Roth <troth@verinet.com>
7905
7906 * Makefile.in: Add support for AVR target.
7907 * configure.tgt: Add support for AVR target.
7908 * avr-tdep.c: New file
7909 * config/avr/avr.mt: New file.
7910
7911 2002-04-25 Theodore A. Roth <troth@verinet.com>
7912
7913 * MAINTAINERS: Add myself to write-after-approval.
7914
7915 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
7916
7917 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
7918 with fprintf_unfiltered (gdb_stderr,....
7919
7920 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
7921
7922 Fix PR gdb/508.
7923 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
7924
7925 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
7926
7927 * p-exp.y: Also use new prev_lexptr variable
7928 to improve error reporting. Based on Michael Snyder
7929 2002-04-24 dated patch to c-exp.y.
7930
7931 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7932
7933 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
7934 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
7935 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
7936 to 0.
7937 * config/alpha/tm-alpha.h: Remove forward decls of struct type
7938 and struct value.
7939 (FUNCTION_START_OFFSET): Remove.
7940 (BREAKPOINT): Ditto.
7941
7942 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7943
7944 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
7945 * NEWS: Ditto.
7946
7947 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7948
7949 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
7950 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
7951 alpha_linux_pc_in_sigtramp.
7952 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
7953 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
7954 alpha_osf1_pc_in_sigtramp.
7955 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
7956 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
7957 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
7958 alphafbsd_pc_in_sigtramp.
7959 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
7960 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
7961 alphanbsd_pc_in_sigtramp.
7962 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
7963 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
7964
7965 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7966
7967 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
7968
7969 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7970
7971 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
7972 alphanbsd-tdep.c.
7973 (alphanbsd-nat.o): New dependency list.
7974 (alphanbsd-tdep.o): Ditto.
7975 * NEWS: Note new native NetBSD/alpha configuration.
7976 * alphanbsd-nat.c: New file.
7977 * alphanbsd-tdep.c: Ditto.
7978 * configure.host (alpha*-*-netbsd*): New host.
7979 * configure.tgt (alpha*-*-netbsd*): New target.
7980 * config/alpha/nbsd.mh: New file.
7981 * config/alpha/nbsd.mt: Ditto.
7982 * config/alpha/nm-nbsd.h: Ditto.
7983 * config/alpha/tm-nbsd.h: Ditto.
7984
7985 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7986
7987 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
7988 (alpha-osf1-tdep.o): New dependency list.
7989 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
7990 and skip_sigtramp_frame members.
7991 * alpha-linux-tdep.c: Include gdbcore.h.
7992 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
7993 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
7994 * alpha-osf1-tdep.c: New file.
7995 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
7996 alpha-osf1-dep.c.
7997 (alpha_frame_past_sigtramp_frame): New function.
7998 (alpha_dynamic_sigtramp_offset): Ditto.
7999 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
8000 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
8001 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
8002 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
8003 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
8004 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
8005 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
8006 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
8007 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
8008 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
8009 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
8010 to find_solib_trampoline_target.
8011 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
8012 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
8013 (SKIP_TRAMPOLINE_CODE): Remove.
8014 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
8015 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
8016 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
8017 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
8018 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
8019 (PROC_SIGTRAMP_MAGIC): Ditto.
8020 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
8021 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
8022 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
8023 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
8024 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
8025
8026 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
8027
8028 * NEWS: Note that Alpha targets are now multi-arch.
8029
8030 2002-04-24 Michael Snyder <msnyder@redhat.com>
8031
8032 * parser-defs.h (prev_lexptr): New external variable.
8033 * parse.c (parse_exp_1): Set prev_lexptr to null before
8034 calling the language-specific parser.
8035 * c-exp.y (yylex): Set prev_lexptr to start of current token.
8036 (yyerror): Use prev_lexptr in error reporting.
8037
8038 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
8039
8040 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
8041 * gregset.h: If FILL_FPXREGSET is defined, provide
8042 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
8043 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
8044 is defined, call fill_fpxregset.
8045
8046 2002-04-24 Roland McGrath <roland@frob.com>
8047
8048 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
8049 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
8050 (supply_gregset, supply_fpregset): New functions.
8051
8052 * gnu-nat.c (gnu_find_memory_regions): New function.
8053 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
8054 (gnu_xfer_memory): Add a cast.
8055
8056 2002-04-24 Michael Snyder <msnyder@redhat.com>
8057
8058 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
8059 loop. Add handling for "str lr, [sp, #-4]!" and for saves
8060 of argument regs ("str r(0123), [r11, #-nn"]).
8061 (arm_skip_prologue): Better handling for frameless functions.
8062 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
8063 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
8064
8065 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
8066
8067 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
8068 NUM_PSEUDO_REGS can be used.
8069
8070 2002-04-24 Andrew Cagney <ac131313@redhat.com>
8071
8072 * arch-utils.h: Update copyright.
8073
8074 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
8075 * gdbarch.h, gdbarch.c: Re-generate.
8076
8077 * inferior.h (IN_SIGTRAMP): Delete definition.
8078 * arch-utils.c (legacy_pc_in_sigtramp): New function.
8079 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
8080
8081 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
8082 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
8083 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
8084 (find_proc_framesize): Ditto.
8085 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
8086 (alpha_init_extra_frame_info): Ditto.
8087 * infrun.c (handle_inferior_event): Ditto.
8088 (handle_inferior_event): Ditto.
8089 (check_sigtramp2): Ditto.
8090 * blockframe.c (create_new_frame): Ditto.
8091 (get_prev_frame): Ditto.
8092 * ppc-linux-tdep.c: Update comments.
8093 * i386-linux-tdep.c: Update comments.
8094 * breakpoint.c (bpstat_what): Update comment.
8095
8096 2002-04-24 David S. Miller <davem@redhat.com>
8097
8098 * i960-tdep.c (register_in_window_p): New function.
8099 (i960_find_saved_register): Use it instead of
8100 REGISTER_IN_WINDOW_P.
8101 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
8102
8103 * symtab.h (find_stab_function_addr): Kill extern.
8104 * minsyms.c (find_stab_function_addr): Remove from here...
8105 * dbxread.c: ... to here, and mark it static.
8106
8107 2002-04-20 David S. Miller <davem@redhat.com>
8108
8109 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
8110 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
8111
8112 2002-04-21 David S. Miller <davem@redhat.com>
8113
8114 * remote-vxsparc.c (vx_read_register): Fix typo, we want
8115 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
8116 (vx_write_register): Likewise.
8117
8118 2002-04-23 J. Brobecker <brobecker@gnat.com>
8119
8120 * source.c (is_regular_file): New function.
8121 (openp): Check wether file to open is a regular file
8122 to avoid opening directories.
8123
8124 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8125
8126 * findvar.c (extract_signed_integer): Cast printf argument
8127 to suppress format warning.
8128 (extract_unsigned_integer): Likewise.
8129 * infcmd.c (registers_info): Likewise.
8130 * top.c (get_prompt_1): Likewise.
8131 * valops.c (value_assign): Likewise.
8132 * valprint.c (print_decimal): Likewise.
8133
8134 2002-04-22 H.J. Lu (hjl@gnu.org)
8135
8136 * c-exp.y (typebase): Support
8137
8138 [long|long long|short] [signed|unsigned] [int|]
8139
8140 and
8141
8142 signed [long|long long|short] int
8143
8144 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8145
8146 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
8147 and vax-tdep.h.
8148 * vax-tdep.h: New file.
8149 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
8150 Make several routines static.
8151 (vax_get_saved_register): New function.
8152 (vax_gdbarch_init): New function.
8153 (_initialize_vax_tdep): Register vax_gdbarch_init.
8154 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
8155 Remove macros now under the control of gdbarch.
8156
8157 2002-04-22 Michael Snyder <msnyder@redhat.com>
8158
8159 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
8160 Some whitespace and coding standards tweaks.
8161
8162 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8163
8164 * vax-tdep.c: Include regcache.h.
8165 (vax_call_dummy_words): New.
8166 (sizeof_vax_call_dummy_words): New.
8167 (vax_fix_call_dummy): New function.
8168 (vax_saved_pc_after_call): Ditto.
8169 * config/vax/tm-vax.h: Don't include regcache.h.
8170 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
8171 (CALL_DUMMY): Remove.
8172 (CALL_DUMMY_WORDS): Define.
8173 (SIZEOF_CALL_DUMMY_WORDS): Define.
8174 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
8175
8176 2002-04-18 Michael Snyder <msnyder@redhat.com>
8177
8178 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
8179
8180 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8181
8182 * vax-tdep.c (vax_frame_chain): New function.
8183 (vax_push_dummy_frame): Ditto.
8184 (vax_pop_frame): Ditto.
8185 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
8186 (FRAMELESS_FUNCTION_INVOCATION): Use
8187 generic_frameless_function_invocation_not.
8188 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
8189 (POP_FRAME): Use vax_pop_frame.
8190
8191 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8192
8193 * vax-tdep.c (vax_store_struct_return): New function.
8194 (vax_extract_return_value): Ditto.
8195 (vax_store_return_value): Ditto.
8196 (vax_extract_struct_value_address): Ditto.
8197 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
8198 vax_store_struct_return.
8199 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
8200 (STORE_RETURN_VALUE): Use vax_store_return_value.
8201 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
8202
8203 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8204
8205 * vax-tdep.c (vax_frame_saved_pc): New function.
8206 (vax_frame_args_address_correct): Ditto.
8207 (vax_frame_args_address): Ditto.
8208 (vax_frame_locals_address): Ditto.
8209 (vax_frame_num_args): Move code to be in proximity to
8210 other frame-related functions.
8211 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
8212 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
8213 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
8214 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
8215 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
8216
8217 2002-04-22 H.J. Lu (hjl@gnu.org)
8218
8219 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
8220 includedir.
8221
8222 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8223
8224 * vax-tdep.c (vax_frame_init_saved_regs): New function.
8225 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
8226 (FRAME_INIT_SAVED_REGS): New macro.
8227
8228 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8229
8230 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
8231
8232 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8233
8234 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
8235 where needed.
8236 (fetch_osf_core_registers): Likewise.
8237 (supply_gregset): Likewise.
8238
8239 2002-04-22 J. Brobecker <brobecker@gnat.com>
8240
8241 * symfile.h (get_section_index): Define.
8242 * symfile.c (get_section_index): New function.
8243 * mdebugread.c (SC_IS_SBSS): New macro.
8244 (SC_IS_BSS): Return true for the scBss storage class only, as
8245 the scSBss storage class refers to the .sbss section.
8246 (parse_partial_symbols): Discard the symbols which associated
8247 section does not exist.
8248 Make sure to use the .sbss section index for symbols which
8249 storage class is scBss, rather than using the .bss section index.
8250
8251 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8252
8253 * vax-tdep.c: Update copyright years.
8254 (vax_register_name): New function.
8255 (vax_register_byte): Ditto.
8256 (vax_register_raw_size): Ditto.
8257 (vax_register_virtual_size): Ditto.
8258 (vax_register_virtual_type): Ditto.
8259 * config/vax/tm-vax.h: Update copyright years.
8260 (REGISTER_NAMES): Remove.
8261 (REGISTER_NAME): Define.
8262 (REGISTER_BYTE): Use vax_register_byte.
8263 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
8264 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
8265 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
8266
8267 2002-04-21 Andrew Cagney <ac131313@redhat.com>
8268
8269 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
8270 declaration
8271 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
8272
8273 2002-04-21 David S. Miller <davem@redhat.com>
8274
8275 * arch-utils.c (generic_prologue_frameless_p): Kill
8276 SKIP_PROLOGUE_FRAMELESS_P code.
8277 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
8278 references.
8279 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
8280 * arc-tdep.c (arc_prologue_frameless_p): Implement.
8281 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
8282 references.
8283 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
8284 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
8285 (sparc_gdbarch_init): Pass it to
8286 set_gdbarch_prologue_frameless_p.
8287
8288 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8289
8290 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
8291 (alphabsd-nat.o): New dependency list.
8292
8293 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8294
8295 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
8296 alphafbsd-tdep.c.
8297 (alpha-linux-tdep.o): New dependency list.
8298 (alphafbsd-tdep.o): Likewise.
8299
8300 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8301
8302 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
8303 to here...
8304 * alpha-tdep.c: ...from here.
8305 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
8306
8307 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8308
8309 * config/alpha/tm-alpha.h: Move alpha_software_single_step
8310 prototype from here...
8311 * alpha-tdep.h: ...to here.
8312
8313 2002-04-21 Andrew Cagney <ac131313@redhat.com>
8314
8315 * frame.h (selected_frame_level): Document as deprecated.
8316 (frame_relative_level): Declare.
8317 * stack.c (frame_relative_level): New function.
8318 (selected_frame_level): Document as deprecated.
8319 (select_frame): Do not set the selected_frame_level.
8320
8321 * stack.c (frame_info, record_selected_frame): Update.
8322 (frame_command, current_frame_command): Update.
8323 (up_silently_base, up_command, down_silently_base): Update.
8324 (down_command): Update.
8325 * inflow.c (kill_command): Update.
8326 * tracepoint.c (finish_tfind_command): Update.
8327 * corelow.c (core_open): Update.
8328 * thread.c (info_threads_command): Update.
8329 (do_captured_thread_select): Update.
8330 * infcmd.c (finish_command): Update.
8331 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
8332
8333 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8334
8335 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
8336
8337 2002-04-21 Andrew Cagney <ac131313@redhat.com>
8338
8339 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
8340 type const.
8341
8342 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8343
8344 * alphafbsd-tdep.c: Update copyright years. Include
8345 alpha-tdep.h.
8346 (alphafbsd_use_struct_convention): Make static.
8347 (alphafbsd_init_abi): New function.
8348 (_initialize_alphafbsd_tdep): New function.
8349 * config/alpha/tm-fbsd.h: Update copyright years.
8350 (USE_STRUCT_CONVENTION): Remove.
8351
8352 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8353
8354 * alpha-tdep.c (alpha_abi_handler): New structure to describe
8355 an Alpha ABI variant.
8356 (alpha_abi_handler_list): Declare.
8357 (alpha_gdbarch_register_os_abi): New function.
8358 (alpha_gdbarch_init): Give registered ABI variant handlers a
8359 chance to tweak the gdbarch once we have set up defaults.
8360 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
8361
8362 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8363
8364 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
8365 to standard_coerce_float_to_double.
8366 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
8367
8368 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8369
8370 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
8371 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
8372 from gdbarch_tdep rather than a constant.
8373 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
8374 the default text address for all Alpha Unix ABIs.
8375 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
8376 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
8377
8378 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8379
8380 * alpha-tdep.h: New file. Includes several Alpha target constants
8381 taken from...
8382 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
8383 let gdbarch deal with.
8384 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
8385 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
8386 to dependency list.
8387 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
8388 Alpha target register names.
8389 * alphabsd-nat.c: Likewise.
8390 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
8391 Alpha target register names. Make serveral routines static.
8392 (alpha_get_saved_register): New function.
8393 (alpha_abi_names): New.
8394 (process_note_abi_tag_sections): New function.
8395 (get_elfosabi): New function.
8396 (alpha_gdbarch_init): New function.
8397 (alpha_dump_tdep): New function.
8398 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
8399
8400 2002-04-21 Andrew Cagney <ac131313@redhat.com>
8401
8402 * frame.c (find_saved_register): Delete #ifdef
8403 HAVE_REGISTER_WINDOWS code.
8404 * config/sparc/tm-sparc.h: Update comments.
8405 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
8406
8407 2002-04-21 Andrew Cagney <ac131313@redhat.com>
8408
8409 * i960-tdep.c (i960_find_saved_register): New function.
8410 (i960_get_saved_register): New function.
8411 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
8412 (i960_get_saved_register): Declare.
8413 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
8414
8415 2002-04-20 David S. Miller <davem@redhat.com>
8416
8417 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
8418
8419 2002-04-20 Andrew Cagney <ac131313@redhat.com>
8420
8421 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
8422 instead of NUM_PSEUDO_REGS.
8423
8424 2002-04-20 David S. Miller <davem@redhat.com>
8425
8426 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
8427 GDB_MULTI_ARCH_PARTIAL
8428 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
8429 define, let tm-sp64.h do it.
8430
8431 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
8432
8433 * frame.c (find_saved_register): Avoid a NULL pointer
8434 dereference and actually walk the frame list.
8435
8436 2002-04-20 Andrew Cagney <ac131313@redhat.com>
8437
8438 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
8439 sorted in most most-recent-used order. Document.
8440 * gdbarch.h, gdbarch.c: Regenerate.
8441
8442 2002-04-19 Andrew Cagney <ac131313@redhat.com>
8443
8444 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
8445 instead of ->prev.
8446 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
8447 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
8448 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
8449 instead of ->prev.
8450
8451 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
8452
8453 Fix PR gdb/471.
8454 * gdbtypes.c (init_simd_type): Rewrite using new functions.
8455 (build_builtin_type_vec128): Ditto.
8456 (append_composite_type_field): Fix calculation of type length in
8457 union case.
8458
8459 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
8460
8461 * config/djgpp/README: Update.
8462
8463 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
8464 compiler warnings.
8465
8466 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
8467
8468 * alpha-tdep.c (setup_arbitrary_frame): Rename...
8469 (alpha_setup_arbitrary_frame): ...to this.
8470 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
8471 for alpha_setup_arbitrary_frame.
8472
8473 2002-04-18 Andrew Cagney <cagney@redhat.com>
8474
8475 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
8476 * gdbarch.h, gdbarch.c: Regenerate.
8477
8478 * defs.h (breakpoint_from_pc_fn): Delete type definition.
8479 * target.h (memory_breakpoint_from_pc): Update declaration.
8480 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
8481
8482 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
8483 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
8484 * mem-break.c (memory_breakpoint_from_pc): Ditto.
8485 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
8486 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
8487 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
8488 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
8489 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
8490 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
8491 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
8492 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
8493 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
8494
8495 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
8496 const pointer.
8497 * monitor.c (monitor_insert_breakpoint): Ditto.
8498 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
8499
8500 * config/mcore/tm-mcore.h: Update copyright.
8501 * mem-break.c: Ditto.
8502 * xstormy16-tdep.c: Ditto.
8503
8504 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
8505
8506 * p-exp.y: Add precedence rule for '^' token.
8507 This removes the shift/reduce conflicts.
8508 Remove the comment concerning these shift/reduce conflicts.
8509
8510 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
8511
8512 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
8513 (registers_powerpc_nofp): New register set for processors
8514 without floating point unit.
8515
8516 2002-04-18 David S. Miller <davem@redhat.com>
8517
8518 * MAINTAINERS: Add myself to write-after-approval.
8519
8520 2002-04-17 Michael Snyder <msnyder@redhat.com>
8521
8522 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
8523
8524 2002-04-17 Andrew Cagney <ac131313@redhat.com>
8525
8526 * rs6000-tdep.c (frame_initial_stack_address): Use
8527 frame_register_read to read the alloca_reg.
8528
8529 2002-04-17 Andrew Cagney <ac131313@redhat.com>
8530
8531 * frame.c (find_saved_register): Find saved registers in the next
8532 not prev frame.
8533 Fix PR gdb/365.
8534
8535 2002-04-17 Andrew Cagney <ac131313@redhat.com>
8536
8537 * gdbarch.sh (LANG): Set to ``c''.
8538
8539 2002-04-15 Andrew Cagney <ac131313@redhat.com>
8540
8541 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
8542
8543 2002-04-15 Andrew Cagney <ac131313@redhat.com>
8544
8545 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
8546 Update copyright.
8547
8548 * hpread.c (hpread_get_lntt): Add declaration.
8549 Also fix PR gdb/391.
8550
8551 2002-04-14 Andrew Cagney <ac131313@redhat.com>
8552
8553 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
8554 * aclocal.m4, configure: Re-generate.
8555 Fix PR gdb/391.
8556
8557 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
8558
8559 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
8560 instead of tm_print_insn.
8561
8562 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
8563
8564 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
8565
8566 2002-04-14 Andrew Cagney <ac131313@redhat.com>
8567
8568 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
8569 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
8570 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
8571
8572 2002-04-12 Don Howard <dhoward@redhat.com>
8573
8574 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
8575 max_user_call_depth.
8576 (init_cmd_lists): Initialize the new value;
8577 * cli/cli-script.c (execute_user_command): Limit the call depth of
8578 user defined commands. This avoids a core-dump when user commands
8579 are infinitly recursive.
8580
8581 2002-04-12 Kevin Buettner <kevinb@redhat.com>
8582
8583 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
8584 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
8585 from tdep struct instead of DEFAULT_LR_SAVE.
8586 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
8587 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
8588 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
8589
8590 2002-04-12 Michael Snyder <msnyder@redhat.com>
8591
8592 * Remote.c: Spelling fix.
8593 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
8594 If no symbol found for "sbrk", try "_sbrk".
8595 (make_output_phdrs): Use bfd_section_name.
8596 (gcore_copy_callback): Use bfd_section_name.
8597 * eval.c: Indentation fix-ups.
8598 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
8599 in case it gets applied to an address that is already
8600 in the instruction space.
8601 * cli/cli-decode.c (help_list): Allow long lines to wrap.
8602 * symfile.c: Fix indentation, long lines.
8603 * source.c: White space fix-up.
8604
8605 2002-04-12 Andrew Cagney <cagney@redhat.com>
8606
8607 * defs.h (read_relative_register_raw_bytes): Delete declaration.
8608 * frame.c (frame_register_read): New function. Return non-zero on
8609 success.
8610 (read_relative_register_raw_bytes_for_frame): Delete.
8611 (read_relative_register_raw_bytes): Delete.
8612 * frame.h (frame_register_read): Declare.
8613 * d30v-tdep.c: Update Copyright. Use frame_register_read.
8614 * sh-tdep.c: Ditto.
8615 * infcmd.c (do_registers_info): Ditto.
8616 * hppa-tdep.c: Ditto.
8617 * rs6000-tdep.c: Ditto.
8618 * h8500-tdep.c: Ditto.
8619 * mips-tdep.c: Ditto.
8620 * h8300-tdep.c: Ditto.
8621 * z8k-tdep.c: Ditto.
8622
8623 2002-04-12 Kevin Buettner <kevinb@redhat.com>
8624
8625 From Jimi X <jimix@watson.ibm.com>:
8626 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
8627 64-bit SysV ABI.
8628
8629 2002-04-12 Kevin Buettner <kevinb@redhat.com>
8630
8631 From Jimi X <jimix@watson.ibm.com>:
8632 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
8633 bfd info.
8634
8635 2002-04-12 Kevin Buettner <kevinb@redhat.com>
8636
8637 From Jimi X <jimix@watson.ibm.com>:
8638 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
8639 register sets for these processor variants.
8640
8641 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
8642
8643 * regformats/reg-ppc.dat: Support FPSCR.
8644
8645 2002-04-11 Kevin Buettner <kevinb@redhat.com>
8646
8647 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
8648 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
8649 Add fpscr as an invalid/unfetchable register.
8650 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
8651 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
8652 (fill_fpregset): Add support for register fpscr.
8653 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
8654 (fill_gregset): Account for the fact that register ``mq'' might
8655 not exist.
8656 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
8657 (registers_power): Add fpscr to register set at slot 71.
8658 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
8659 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
8660
8661 2002-04-11 Michael Snyder <msnyder@redhat.com>
8662
8663 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
8664 * configure: Regenerate.
8665 * config.in: Regenerate.
8666 * acconfig.h: Add define for _SYSCALL32.
8667 * core-sol2.c: Remove #define _SYSCALL32.
8668 * solib-legacy.c: Remove #define _SYSCALL32.
8669
8670 2002-04-10 Andrew Cagney <ac131313@redhat.com>
8671
8672 * stack.c (select_frame): Cleanup internal error message, do not
8673 use %p.
8674
8675 2002-04-10 Andrew Cagney <ac131313@redhat.com>
8676
8677 * stack.c (select_frame): Check that selected_frame and the
8678 specified level are as expected.
8679 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
8680 Update copyright.
8681 * frame.h (struct frame_info): Add field `level'. Update
8682 copyright.
8683 Work-in-progress PR gdb/464.
8684
8685 2002-04-10 Andrew Cagney <ac131313@redhat.com>
8686
8687 * maint.c (maint_print_section_info): Rename print_section_info.
8688 (print_bfd_section_info, print_objfile_section_info): Update.
8689 * inferior.h (struct gdbarch): Add opaque declaration.
8690 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
8691 * gdbarch.h: Regenerate.
8692
8693 2002-04-10 Michal Ludvig <mludvig@suse.cz>
8694
8695 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
8696 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
8697 (kernel_u_size): Added.
8698 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
8699 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
8700
8701 2002-04-04 Jim Ingham <jingham@apple.com>
8702
8703 * valarith.c (find_size_for_pointer_math): New function, either returns
8704 the size for a pointer's target, returns 1 for void *, or errors for
8705 incomplete types.
8706 (value_add, value_sub): use find_size_for_pointer_math.
8707
8708 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
8709
8710 * linux-low.c (linux_look_up_symbols): New hook.
8711 (linux_target_ops): Add linux_look_up_symbols.
8712 * remote-utils.c (decode_address): New function.
8713 (look_up_one_symbol): New function.
8714 * server.c (handle_query): Call target look_up_symbols hook.
8715 * server.h (look_up_one_symbol): Add prototype.
8716 * target.h (struct target_ops): Add look_up_symbols hook.
8717
8718 2002-04-09 Andrew Cagney <ac131313@redhat.com>
8719
8720 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
8721 override FP_REGNUM with frame->fp. Update copyright.
8722 * parse.c (num_std_regs, std_regs): Delete.
8723 (target_map_name_to_register): Do not search std_regs. Update
8724 function description.
8725 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
8726 declarations. Update copyright.
8727 Fix PR gdb/251.
8728
8729 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
8730
8731 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
8732 after the last symbol in a block.
8733
8734 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
8735
8736 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
8737 is non zero as a found symbol.
8738
8739 2002-04-08 Andrew Cagney <ac131313@redhat.com>
8740
8741 * findvar.c: Include "builtin-regs.h".
8742 (value_of_register): Call value_of_builtin_reg when applicable.
8743 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
8744 (target_map_name_to_register): Call
8745 builtin_reg_map_name_to_regnum.
8746 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
8747 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
8748 (builtin_regs_h): Define.
8749 (builtin-regs.o): New target.
8750 (findvar.o): Add $(builtin_regs_h).
8751 * builtin-regs.c, builtin-regs.h: New files.
8752 * std-regs.c: New file.
8753 Partial fix for PR gdb/251.
8754
8755 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8756
8757 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
8758 it's no longer required.
8759
8760 2002-04-08 Andrew Cagney <ac131313@redhat.com>
8761
8762 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
8763
8764 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8765
8766 From Jimi X <jimix@watson.ibm.com>:
8767 * rs6000-tdep.c (rs6000_software_single_step): Use
8768 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
8769 and size. Use target_insert_breakpoint() and
8770 target_remove_breakpoint() to insert and remove breakpoints
8771 instead of explicit memory reads and writes.
8772
8773 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8774
8775 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
8776 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
8777 ELF_OBJECT_FORMAT ifdef.
8778
8779 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8780
8781 From Jimi X <jimix@watson.ibm.com>:
8782 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
8783
8784 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8785
8786 From Jimi X <jimix@watson.ibm.com>:
8787 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
8788 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
8789
8790 2002-04-07 Mark Kettenis <kettenis@gnu.org>
8791
8792 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
8793 s/asprintf/xasprintf/.
8794 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
8795
8796 2002-04-07 Andrew Cagney <ac131313@redhat.com>
8797
8798 I believe Jeff Law denies responsability for this one:
8799 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
8800 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
8801 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
8802 Work-around for PR gdb/366.
8803
8804 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
8805
8806 * remote-e7000.c (write_small, e7000_read_inferior_memory,
8807 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
8808 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
8809
8810 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
8811
8812 * sh-tdep.c (sh_fp_frame_init_saved_regs,
8813 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
8814 information.
8815
8816 2002-04-07 Andrew Cagney <ac131313@redhat.com>
8817
8818 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
8819 maintainer.
8820
8821 2002-04-07 Andrew Cagney <ac131313@redhat.com>
8822
8823 * README (Reporting Bugs in GDB): Document the bug web page as the
8824 prefered way of submitting bugs.
8825 Fix PR gdb/402.
8826
8827 2002-04-06 Andrew Cagney <ac131313@redhat.com>
8828
8829 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
8830 -1. Update comment.
8831 * gdbarch.h, gdbarch.c: Re-generate.
8832
8833 2002-04-07 Andreas Schwab <schwab@suse.de>
8834
8835 * m68klinux-nat.c (fill_fpregset): Properly pass address of
8836 buffer to regcache_collect.
8837
8838 2002-04-06 Andrew Cagney <ac131313@redhat.com>
8839
8840 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
8841 * gdbarch.c, gdbarch.h: Re-generate.
8842
8843 2002-04-06 Andrew Cagney <ac131313@redhat.com>
8844
8845 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
8846 declaration. Fix -Werror.
8847
8848 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
8849
8850 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
8851 * gdbarch.c: Regenerate.
8852
8853 2002-04-05 Michael Snyder <msnyder@redhat.com>
8854
8855 * breakpoint.c (clear_command): Rewrite middle section to
8856 combine two loops with identical control conditions.
8857 Add a cleanup to eliminate a memory leak.
8858 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
8859
8860 2002-04-05 H.J. Lu (hjl@gnu.org)
8861
8862 * solib-svr4.c (bkpt_names): Add "__start".
8863
8864 2002-04-04 Andrew Cagney <ac131313@redhat.com>
8865
8866 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
8867 as test for 64 bit target.
8868
8869 2002-04-05 Andrew Cagney <ac131313@redhat.com>
8870
8871 * h8500-tdep.c (h8500_write_fp): Delete function.
8872 * dwarf2cfi.c (cfi_write_fp): Document as not used.
8873 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
8874 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
8875 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
8876 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
8877 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
8878 (s390_write_fp):
8879 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
8880 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
8881 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
8882 (d10v_write_fp): Delete function.
8883 * inferior.h (write_fp, generic_target_write_fp): Delete
8884 declarations.
8885 * regcache.c (generic_target_write_fp): Delete function.
8886 (write_fp): Delete function.
8887 * gdbarch.sh (TARGET_WRITE_FP): Delete.
8888 * gdbarch.h, gdbarch.c: Regenerate.
8889 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
8890 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
8891 (sparc64_write_fp): Delete declaration.
8892 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
8893 (h8500_write_fp): Delete declaration.
8894
8895 2002-04-04 Andrew Cagney <ac131313@redhat.com>
8896
8897 * sparc-tdep.c (sparc64_write_fp): Delete.
8898 (sparc_push_dummy_frame): Replace write_fp call with code to store
8899 the FP directly.
8900 (sparc_gdbarch_init): Do not initialize write_fp.
8901
8902 2002-04-05 Kevin Buettner <kevinb@redhat.com>
8903
8904 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
8905 clause.
8906
8907 2002-03-29 Jim Blandy <jimb@redhat.com>
8908
8909 * stack.c (get_selected_block): Add new argument `addr_in_block',
8910 used to return the exact code address we used to select the block,
8911 not just the block.
8912 * blockframe.c (get_frame_block, get_current_block): Same.
8913 * frame.h (get_frame_block, get_current_block,
8914 get_selected_block): Update declarations.
8915 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
8916 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
8917
8918 2002-04-05 Michael Snyder <msnyder@redhat.com>
8919
8920 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
8921 warning message.
8922
8923 2002-04-05 J. Brobecker <brobecker@gnat.com>
8924
8925 * utils.c (xfullpath): New function.
8926 * defs.h (xfullpath): Add declaration.
8927 * source.c (openp): Use xfullpath in place of gdb_realpath to
8928 avoid resolving the basename part of filenames when the
8929 associated file is a symbolic link. This fixes a potential
8930 inconsistency between the filenames known to GDB and the
8931 filenames it prints in the annotations.
8932 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
8933 to be able to match a filename with either the real filename, or
8934 the name of any symbolic link to this file.
8935 (lookup_partial_symtab): Ditto.
8936
8937 2002-04-04 Michael Snyder <msnyder@redhat.com>
8938
8939 * breakpoint.c: Add support for hardware breakpoints in overlays.
8940 (overlay_events_enabled): New state variable.
8941 (insert_breakpoints): Use overlay_events_enabled to decide
8942 whether to attempt to set a breakpoint at the overlay load addr.
8943 Handle bp_hardware_breakpoint as well as bp_breakpoint.
8944 (remove_breakpoint): Use overlay_events_enabled to decide
8945 whether breakpoints need to be removed from overlay load addr.
8946 Handle bp_hardware_breakpoint as well as bp_breakpoint.
8947 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
8948 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
8949 disable_overlay_breakpoints): Update overlay_events_enabled.
8950
8951 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
8952
8953 * dwarf2read.c (struct function_range): New.
8954 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
8955 (check_cu_functions): New.
8956 (read_file_scope): Initialize global function lists.
8957 Call dwarf_decode_line after processing children.
8958 (read_func_scope): Add to global function list.
8959 (dwarf_decode_lines): Call check_cu_functions everywhere
8960 record_line is called. Call record_line with a linenumber
8961 of 0 to mark sequence ends.
8962
8963 2002-04-04 Michal Ludvig <mludvig@suse.cz>
8964
8965 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
8966 change sync with glibc.
8967
8968 2002-04-03 Jim Blandy <jimb@redhat.com>
8969
8970 * configure.in: Call AC_C_INLINE.
8971 * configure: Regenerated.
8972
8973 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
8974
8975 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
8976 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
8977
8978 2002-03-31 Mark Kettenis <kettenis@gnu.org>
8979
8980 * NEWS: Mention gcore support on FreeBSD/i386.
8981
8982 * fbsd-proc.c: New file.
8983 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
8984 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
8985
8986 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
8987 while statement.
8988
8989 2002-03-29 Jim Blandy <jimb@redhat.com>
8990
8991 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
8992 unescaped newlines in string literals, but newer ones don't. So
8993 escape them.
8994
8995 2002-03-26 Michael Snyder <msnyder@redhat.com>
8996 Andrew Cagney <cagney@redhat.com>
8997
8998 * cli/cli-dump.c: New file. Dump memory to file,
8999 restore file to memory.
9000 * cli/cli-dump.h: New file.
9001 * Makefile.in: Add rules, dependencies for cli-dump.o.
9002 * NEWS: Mention new commands.
9003
9004 2002-03-28 Michael Snyder <msnyder@redhat.com>
9005
9006 * symfile.c (symbol_file_add): Move test for null symbols to later.
9007
9008 2002-03-27 Andrew Cagney <ac131313@redhat.com>
9009
9010 From veksler at il.ibm.com:
9011 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
9012 the xstrduped original path.
9013 Fix PR gdb/417.
9014
9015 2002-03-27 Michael Snyder <msnyder@redhat.com>
9016
9017 * breakpoint.c (_initialize_breakpoint): Clean up help string.
9018 * infcmd.c (_initialize_infcmd): Ditto.
9019 * language.c (_initialize_language): Ditto.
9020 * symfile.c (_initialize_symfile): Ditto.
9021 * top.c (_init_main): Ditto.
9022 * cli/cli-cmds.c (init_cli_cmds): Ditto.
9023
9024 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
9025
9026 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
9027 vector registers handling.
9028 (skip_prologue): Handle new AltiVec instructions. Fill in new
9029 fields of frame data.
9030 (frame_get_saved_regs): Fill in information for AltiVec registers.
9031
9032 2002-03-27 Jim Blandy <jimb@redhat.com>
9033
9034 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
9035 a function; leave this macro here to invoke that function.
9036 (symbol_init_mangled_name): Declaration for that function.
9037 * symtab.c (symbol_init_mangled_name): New function.
9038
9039 2002-03-27 Andrew Cagney <ac131313@redhat.com>
9040
9041 * valarith.c: Replace strerror with safe_strerror.
9042 * tracepoint.c: Ditto.
9043 * lin-lwp.c: Ditto.
9044 * go32-nat.c: Ditto.
9045 * inflow.c: Ditto.
9046 * gnu-nat.c: Ditto.
9047
9048 2002-03-27 Andreas Schwab <schwab@suse.de>
9049
9050 * event-top.c (command_line_handler): Remove useless if.
9051
9052 2002-03-27 Andreas Jaeger <aj@suse.de>
9053
9054 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
9055 comment.
9056
9057 2002-03-27 Michal Ludvig <mludvig@suse.cz>
9058
9059 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
9060 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
9061 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
9062 (x86_64_linux_dr_get_status, supply_gregset),
9063 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
9064 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
9065 (x86_64_register_info_table): Add.
9066 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
9067 (x86_64_register_raw_size, x86_64_register_virtual_type),
9068 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
9069 general x86_64_register_info_table.
9070 (i386_gdbarch_init): gdbarch_register_bytes is now set
9071 dynamicaly during initialization.
9072 * regformats/reg-x86-64.dat: Synced with changes to registers above.
9073 * gdbserver/linux-x86-64-low.c: Ditto.
9074
9075 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
9076
9077 * gdbserver/server.c (main): Call target_signal_to_host_p
9078 and target_signal_to_host on signals received from the remote.
9079 * gdbserver/remote-utils.c (prepare_resume_reply): Call
9080 target_signal_from_host on signals sent to the remote.
9081 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
9082 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
9083
9084 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
9085
9086 * signals/signals.c: Include "server.h" in gdbserver build.
9087 (target_signal_from_name): Don't use STREQ.
9088 (_initialize_signals): Likewise. Don't include function in
9089 gdbserver build.
9090
9091 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
9092
9093 * signals.c: Moved to...
9094 * signals/signals.c: Here.
9095 * Makefile (signals.o): Update.
9096
9097 2002-03-26 Jeff Law (law@redhat.com)
9098
9099 * somread.c (som_symtab_read): Remove some commented out code and
9100 updated related comments. Do not set the minimal symbol table to
9101 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
9102 in a dynamic executable.
9103 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
9104 where we are unable to find the minimal symbol for the given
9105 PC value.
9106
9107 2002-03-25 Jeff Law (law@redhat.com)
9108
9109 * linux-proc.c (read_mapping): Scan up to end of line for filename.
9110
9111 2002-03-25 Michal Ludvig <mludvig@suse.cz>
9112
9113 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
9114
9115 2002-03-23 Andrew Cagney <ac131313@redhat.com>
9116
9117 * command.h: Update copyright.
9118 (struct cmd_list_element): Replace definition with opaque
9119 declaration.
9120 (enum cmd_types): Document that it will eventually be moved to
9121 cli/cli-decode.h
9122 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
9123 (MALLOCED_REPLACEMENT): Delete macro.
9124 * Makefile.in (cli_decode_h): Add $(command_h).
9125 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
9126 * top.c: Include "cli/cli-decode.h".
9127 * completer.c: Include "cli/cli-decode.h".
9128 * maint.c: Include "cli/cli-decode.h".
9129 * cli/cli-decode.h: Include "command.h".
9130 (enum command_class): Delete.
9131 (enum cmd_types): Comment out.
9132 (enum cmd_auto_boolean): Delete.
9133 (enum var_types): Delete.
9134
9135 2002-03-23 Andrew Cagney <ac131313@redhat.com>
9136
9137 * cli/cli-decode.c: Include "gdb_assert.h".
9138 (add_set_or_show_cmd): New static function.
9139 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
9140 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
9141 all fields, such as func, from the set command.
9142
9143 2002-03-23 Andrew Cagney <ac131313@redhat.com>
9144
9145 * MAINTAINERS (sh-elf): Change warning flag to -w.
9146
9147 2002-03-23 Andrew Cagney <cagney@redhat.com>
9148
9149 * defs.h (error): Add printf format attribute.
9150 * thread-db.c (thread_from_lwp): Fix error format string.
9151 * stack.c (parse_frame_specification): Ditto.
9152 * cli/cli-decode.c (undef_cmd_error): Ditto.
9153 * scm-lang.c (scm_lookup_name): Ditto.
9154 * tracepoint.c (trace_error): Ditto.
9155 * remote-utils.c (usage): Ditto.
9156 * remote.c (compare_sections_command): Ditto.
9157 Fix PR gdb/328.
9158
9159 2002-03-22 Andrew Cagney <ac131313@redhat.com>
9160
9161 * gdbtypes.c (append_composite_type_field): New function.
9162 (init_composite_type): New function.
9163 * gdbtypes.h (append_composite_type_field): Declare.
9164 (init_composite_type): Ditto.
9165
9166 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
9167
9168 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
9169 function.
9170 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
9171 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
9172 structure returning convention for SYSV ABI case, but not
9173 for GNU/Linux, FreeBSD, or NetBSD.
9174
9175 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
9176
9177 * symtab.h (lookup_block_symbol): Add mangled_name argument
9178 to prototype.
9179
9180 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
9181 with new mangled_name argument.
9182 * linespec.c (decode_line_1): Likewise.
9183 * valops (value_of_this): Likewise.
9184 * symtab.c (lookup_transparent_type): Likewise.
9185 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
9186 (lookup_symbol): If we are given a mangled name, pass it down
9187 to lookup_symbol_aux.
9188 (lookup_block_symbol): If we are given a mangled name to check
9189 against, only return symbols which match it.
9190
9191 2002-03-22 Christopher Faylor <cgf@redhat.com>
9192
9193 * win32-nat.c (child_create_inferior): Check for proper shell to use
9194 here, in case the user changes it on the fly.
9195 (_initialize_inftarg): Remove shell path considerations.
9196
9197 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
9198
9199 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
9200 for gdbarch_max_register_raw_size and max_register_virtual_size.
9201 Adjust copyright year.
9202
9203 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
9204
9205 * dbxread.c (process_one_symbol): Extend the first N_SLINE
9206 in a function to cover the entire beginning of the function
9207 as well if it does not already.
9208
9209 2002-03-21 Tom Rix <trix@redhat.com>
9210
9211 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
9212 (rs6000_ptrace64): Renamed from ptrace64.
9213
9214 2002-03-20 Martin M. Hunt <hunt@redhat.com>
9215
9216 * gdbserver/remote-utils.c (remote_open): Don't call
9217 getprotobyname, we're all using TCP here so just use
9218 IPPROTO_TCP.
9219 * gdbserver/gdbreplay.c (remote_open): Ditto.
9220
9221 2002-03-20 Martin M. Hunt <hunt@redhat.com>
9222
9223 * regcache.c (_initialize_regcache): No need to call
9224 build_regcache() at this time; it gets called whenever
9225 the gdbarch changes.
9226
9227 2002-03-20 David O'Brien <obrien@FreeBSD.org>
9228
9229 * sparc-nat.c: Include sys/param.h where possible.
9230
9231 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
9232
9233 Fix PR gdb/422.
9234 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
9235 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
9236 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
9237 complex types.
9238 * stabsread.c (rs6000_builtin_type): Likewise.
9239 (read_sun_floating_type): Likewise.
9240
9241 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9242
9243 * stabsread.c (read_member_functions): Remove skip code for duplicate
9244 constructor/destructor methods. Use standard parsing for these
9245 methods and just do not chain them to the list of methods after
9246 parsing.
9247
9248 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
9249
9250 * coffread.c: Remove redundant static declarations. Replace
9251 occurrences of `PTR' with `void *'.
9252 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
9253 * top.h (quit_cover): Likewise.
9254 * defs.h (catch_errors): Likewise.
9255
9256 2002-03-18 Andrew Cagney <ac131313@redhat.com>
9257
9258 * defs.h (XMALLOC): Define.
9259 * gdb-events.sh (XMALLOC): Delete macro.
9260 * gdb-events.c, gdb-events.h: Regenerate.
9261 * gdbarch.sh (XMALLOC): Delete macro.
9262 * gdbarch.c: Regenerate.
9263 * serial.c (XMALLOC): Delete macro.
9264 * ui-file.c (XMALLOC): Ditto.
9265 * ser-unix.h (XMALLOC): Ditto.
9266 * sh-tdep.c (XMALLOC): Ditto.
9267 * ui-out.c (XMALLOC): Ditto.
9268 * utils.c (XMALLOC): Ditto.
9269 * i386-tdep.c (XMALLOC): Ditto.
9270 * gdb-events.c (XMALLOC): Ditto.
9271 * d10v-tdep.c (XMALLOC): Ditto.
9272 * cli-out.c (XMALLOC): Ditto.
9273
9274 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
9275 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
9276 * ui-file.c, ui-out.c: Ditto.
9277
9278 2002-03-18 Andrew Cagney <ac131313@redhat.com>
9279
9280 * command.h (struct cmd_list_element): Add field context.
9281 (set_cmd_context, get_cmd_context): Declare.
9282 * cli/cli-decode.h: Ditto.
9283 * cli/cli-decode.c (get_cmd_context): New function.
9284 (set_cmd_context): New function.
9285 (add_cmd): Initialize context.
9286 Part of fixing PR gdb/145 and PR gdb/146.
9287
9288 2002-03-17 Andrew Cagney <ac131313@redhat.com>
9289
9290 * cli/cli-decode.c (cmd_type): New function.
9291 * command.h (cmd_type): Declare.
9292 * infrun.c (set_schedlock_func): Call function cmd_type.
9293 * kod.c (kod_set_os): Call cmd_type.
9294 * cris-tdep.c (cris_version_update): Use function cmd_type.
9295 (cris_mode_update, cris_abi_update): Ditto.
9296
9297 * command.h: (execute_cmd_post_hook): Declare.
9298 (execute_cmd_pre_hook): Declare.
9299 * cli/cli-script.c (clear_hook_in_cleanup): New function.
9300 (execute_cmd_post_hook, execute_cmd_pre_hook): New
9301 functions. Execute pre/post hook while ensuring that afterwords
9302 hook_in is cleared.
9303 * top.c (execute_command): Use execute_cmd_post_hook, and
9304 execute_cmd_pre_hook to execute pre/post commands.
9305 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
9306 hook_stop_stub.
9307 (hook_stop_stub): Call execute_cmd_pre_hook.
9308
9309 2002-03-17 Andrew Cagney <ac131313@redhat.com>
9310
9311 * kod.c (kod_set_os): Revert previous change. Is called by ``info
9312 set'' and this leads to a core dump. Move xstrdup of
9313 operating_system to after check that it is not NULL.
9314
9315 2002-03-17 Andrew Cagney <ac131313@redhat.com>
9316
9317 * kod.c (kod_set_os): Remove unnecessary check that
9318 ``command->type'' is set_cmd.
9319
9320 * valprint.c (set_input_radix): Use input_radix.
9321 (set_output_radix): Use output_radix.
9322 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
9323 isn't reverted.
9324
9325 2002-03-16 Andrew Cagney <ac131313@redhat.com>
9326
9327 * value.h (struct value): Delete field ``substring_addr''. Change
9328 aligner fields to force_doublest_align, force_longest_align,
9329 force_core_addr_align and force_pointer_aligh.
9330
9331 * value.h (struct value): Fix typo in above change.
9332
9333 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9334
9335 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
9336 to fix internal_error from ``maintenance print architecture''.
9337
9338 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9339
9340 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
9341 for gcc versions after gcc-2.8.1.
9342
9343 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9344
9345 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
9346 for method resolution. Restore adjustment of ``this'' pointer after
9347 calling value_struct_elt, which was accidentally removed during the
9348 HP merge.
9349
9350 2002-03-15 Andrew Cagney <ac131313@redhat.com>
9351
9352 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
9353 value_of_register.
9354 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
9355 get_saved_register.
9356 * value.h (value_of_register): Update.
9357
9358 2002-03-14 Richard Henderson <rth@redhat.com>
9359
9360 * configure.in: Detect declaration for canonicalize_file_name.
9361 * utils.c (canonicalize_file_name): Declare, if needed.
9362 (gdb_realpath): Prefer realpath if available and usable.
9363 * config.in, configure: Rebuild.
9364
9365 2002-03-14 Richard Henderson <rth@redhat.com>
9366
9367 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
9368 a constant array bound.
9369
9370 * MAINTAINERS: Add myself to write-after-approval.
9371
9372 2002-03-14 Michael Snyder <msnyder@redhat.com>
9373
9374 * symfile.c (syms_from_objfile): Return immediately if no syms.
9375 (symbol_file_add): Return immediately if no syms.
9376 (find_sym_fns): Return immediately if no syms.
9377
9378 2002-03-13 Michal Ludvig <mludvig@suse.cz>
9379
9380 * gdbserver/remote-util.c (remote_open): Print remote-side's
9381 IP address when remote debugging over the network.
9382
9383 2002-03-12 David O'Brien <obrien@FreeBSD.org>
9384
9385 * config/sparc/fbsd.mh: Fix copyright.
9386 * config/sparc/fbsd.mt: Likewise.
9387
9388 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
9389
9390 * MAINTAINERS: Fix typo in name of gdb warnings option.
9391 (x86-64): Fix formating so that this can be parsed by awk.
9392
9393 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
9394
9395 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
9396 * defs.h: Include "gdb/signals.h".
9397 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
9398
9399 2002-03-10 Michal Ludvig <mludvig@suse.cz>
9400
9401 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
9402 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
9403 from x86-64-tdep.h
9404
9405 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
9406 Don Howard <dhoward@redhat.com>
9407
9408 * mips-tdep.c (ST0_FR): Define.
9409 (mips2_fp_compat): New function, temporarily disabled.
9410 (mips_read_fp_register_single): New function.
9411 (mips_read_fp_register_double): New function.
9412 (mips_print_register): Use them.
9413 (do_fp_register_row): Likewise.
9414
9415 2002-03-09 Andrew Cagney <ac131313@redhat.com>
9416
9417 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
9418 approval''.
9419
9420 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9421
9422 * stabsread.c (read_member_functions): Fix is_stub test for
9423 static member functions, improve comment.
9424
9425 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
9426
9427 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
9428 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
9429 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
9430 commands that set boolean values.
9431 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
9432 (arm_rdi_resume): Always initialize PC.
9433 (arm_rdi_open): Don't use rslt as a boolean.
9434 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
9435 (arm_rdi_fetch_registers, arm_rdi_store_registers)
9436 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
9437 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
9438
9439 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
9440
9441 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
9442 * configure: Rebuilt.
9443
9444 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9445
9446 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
9447 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
9448
9449 2002-03-06 Andrew Cagney <ac131313@redhat.com>
9450
9451 * cli/cli-decode.c (set_cmd_completer): New function.
9452 * command.h (set_cmd_completer): Declare.
9453 * cli/cli-decode.h (set_cmd_completer): Ditto.
9454
9455 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
9456 * cli/cli-cmds.c (init_cli_cmds): Ditto.
9457 * win32-nat.c (_initialize_inftarg): Ditto.
9458 * remote-rdi.c (_initialize_remote_rdi): Ditto.
9459 * proc-api.c (_initialize_proc_api): Ditto.
9460 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
9461 * source.c (_initialize_source): Ditto.
9462 * exec.c (_initialize_exec): Ditto.
9463 * solib.c (_initialize_solib): Ditto.
9464 * top.c (init_main): Ditto.
9465 * tracepoint.c (_initialize_tracepoint): Ditto.
9466 * symfile.c (_initialize_symfile): Ditto.
9467 * printcmd.c (_initialize_printcmd): Ditto.
9468 * infcmd.c (_initialize_infcmd): Ditto.
9469 * corefile.c (_initialize_core): Ditto.
9470
9471 2002-03-05 Andrew Cagney <ac131313@redhat.com>
9472
9473 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
9474
9475 2002-03-05 Andrew Cagney <ac131313@redhat.com>
9476
9477 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
9478
9479 2002-03-05 Andrew Cagney <ac131313@redhat.com>
9480
9481 * NEWS: Update headings, 5.2 has branched.
9482
9483 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
9484
9485 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
9486 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
9487 (register_addr, REGISTER_RAW_SIZE): Likewise.
9488 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
9489 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
9490
9491 2002-03-03 Michal Ludvig <mludvig@suse.cz>
9492
9493 * MAINTAINERS (x86-64): Add myself.
9494 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
9495 changed value_ptr -> struct value *
9496
9497 2002-03-01 David O'Brien <obrien@FreeBSD.org>
9498
9499 * configure.host (sparc64-*-freebsd): Add.
9500 * configure.tgt: Likewise.
9501 * config/sparc/fbsd.mh: New file.
9502 * config/sparc/fbsd.mt: Likewise.
9503 * config/sparc/nm-fbsd.h: Likewise.
9504 * config/sparc/tm-fbsd.h: Likewise.
9505
9506 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
9507
9508 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
9509 regformats/reg-s390x.dat.
9510
9511 2002-03-01 Andrew Cagney <ac131313@redhat.com>
9512
9513 * utils.c: Add FIXME explaining true/false problem.
9514
9515 2002-02-28 Andrew Cagney <ac131313@redhat.com>
9516
9517 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
9518
9519 2002-02-28 Michael Chastain <mec@shout.net>
9520
9521 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
9522
9523 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
9524
9525 * gdbserver/linux-s390-low.c: New file.
9526 * regformats/reg-s390.dat: New file.
9527 * regformats/reg-s390x.dat: New file.
9528 * gdbserver/configure.srv: Add S/390.
9529 * gdbserver/Makefile.in: Add S/390.
9530 * configure.tgt: Enable gdbserver for S/390.
9531
9532 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
9533
9534 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
9535 first line of the doc string for "info dos", except at the end of
9536 the sentence, since the short help stops at the first period.
9537
9538 2002-02-28 Jason Merrill <jason@redhat.com>
9539
9540 * dwarf2read.c (dwarf_cfi_name): Add new codes.
9541
9542 2002-02-27 Fred Fish <fnf@redhat.com>
9543
9544 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
9545 comment (dumy -> dummy).
9546
9547 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9548
9549 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
9550
9551 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
9552
9553 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
9554
9555 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
9556
9557 * gdbserver/acconfig.h: New file.
9558 * gdbserver/i387-fp.c: New file.
9559 * gdbserver/i387-fp.h: New file.
9560 * gdbserver/linux-x86-64.c: New file.
9561 * regformats/reg-x86-64.dat: New file.
9562 * configure.tgt: Add x86_64-*-linux* gdbserver support.
9563 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
9564 * gdbserver/configure.in: Add support for regsets.
9565 * gdbserver/config.in: Regenerate.
9566 * gdbserver/configure: Regenerate.
9567 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
9568 * gdbserver/linux-low.h: New file.
9569 * gdbserver/linux-low.c: Include "linux-low.h". Add support
9570 for regsets.
9571 * gdbserver/linux-arm-low.c: Include "linux-low.h".
9572 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
9573 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
9574 * gdbserver/linux-mips-low.c: Include "linux-low.h".
9575 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
9576 * gdbserver/linux-sh-low.c: Include "linux-low.h".
9577 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
9578 "i387-fp.h". Add PTRACE_GETREGS and friends.
9579 * gdbserver/regcache.c (supply_register): New function.
9580 (supply_register_by_name): New function.
9581 (collect_register): New function.
9582 (collect_register_by_name): New function.
9583
9584 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
9585
9586 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
9587 (config.status): Add configure.srv dependency.
9588 (server_h): Add config.h dependency.
9589
9590 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
9591
9592 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
9593 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
9594 * gdbserver/configure.srv: Change i386-*-linux* to use
9595 reg-i386-linux.o.
9596
9597 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9598
9599 * x86-64-tdep.c: Re-indent. Update copyright date.
9600
9601 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9602
9603 From Michal Ludvig <mludvig@suse.cz>:
9604 * x86-64-tdep.c (value.h): Delete.
9605 (gdb_assert.h): Include.
9606 (x86_64_register_convert_to_virtual,
9607 x86_64_register_convert_to_raw ): Add check which lets only
9608 floating-point values to be converted.
9609 (value_push): Delete.
9610 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
9611 (i386_gdbarch_init): Number of register_bytes fixed.
9612
9613 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9614
9615 * MAINTAINERS: Add x86-64 target.
9616
9617 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9618
9619 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
9620 * osfsolib.c (solib_map_sections): Ditto.
9621 * irix5-nat.c (solib_map_sections): Ditto.
9622 * corelow.c (gdb_check_format): Ditto.
9623 * symfile.c (symfile_bfd_open): Ditto.
9624 * solib.c (solib_map_sections): Ditto.
9625 Fix PR gdb/354.
9626
9627 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9628
9629 * remote.c (_initialize_remote): By default, disable ``e'' and
9630 ``E'' step out-of-range packets.
9631
9632 2002-02-26 Andreas Schwab <schwab@suse.de>
9633
9634 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
9635 m68k_linux_frame_saved_pc.
9636 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
9637 in_sigtramp.
9638 (SIGCONTEXT_PC_OFFSET): Remove.
9639 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
9640 m68k_linux_sigtramp_saved_pc): New functions.
9641 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
9642 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
9643 (UCONTEXT_PC_OFFSET): Define.
9644 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
9645 non-RT and RT signal trampolines.
9646
9647 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
9648
9649 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
9650 (TARGET_NBPG, STACK_END_ADDR): Delete
9651 (VARIABLES_INSIDE_BLOCK): Delete.
9652
9653 2002-02-25 Andrew Cagney <ac131313@redhat.com>
9654
9655 * utils.c (perror_with_name): Make string parameter constant.
9656 (print_sys_errmsg): Ditto.
9657 (query): Ditto.
9658 * defs.h (perror_with_name): Update.
9659 (print_sys_errmsg): Update.
9660 (query): Update.
9661
9662 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
9663
9664 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
9665 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
9666
9667 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9668
9669 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
9670 if it already matches the current architecture from the exec file.
9671 Include arch-utils.h for gdbarch_info_init prototype.
9672 * Makefile.in (rs6000-nat.o): Update dependencies.
9673
9674 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
9675
9676 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
9677 list of exported variables.
9678
9679 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
9680
9681 * gdbserver/configure.srv: New file.
9682 * gdbserver/configure.in: Use configure.srv instead
9683 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
9684 from it.
9685 * gdbserver/configure: Regenerated.
9686 * gdbserver/terminal.h: New file.
9687 * gdbserver/Makefile.in: Update for configure changes. Remove
9688 more unneeded include paths.
9689
9690 2002-02-24 Andrew Cagney <ac131313@redhat.com>
9691
9692 From wiz at danbala:
9693 * config/sparc/tm-sp64.h: Fix grammar and typos.
9694 Fix PR gdb/287.
9695
9696 2002-02-24 Andrew Cagney <ac131313@redhat.com>
9697
9698 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
9699 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
9700 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
9701 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
9702 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
9703 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
9704 * s390-tdep.c: Ditto.
9705 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
9706 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
9707 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
9708 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
9709 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
9710 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
9711 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
9712 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
9713 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
9714 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
9715 Fix PR gdb/378.
9716
9717 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9718
9719 * lin-thread.c: Delete file.
9720 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
9721 to gdb_proc_service.h.
9722 * configure: Re-generate.
9723
9724 * ocd.c (ocd_open): Do not try to open the "ocd" device.
9725 * serial.c (serial_open): Delete check for "ocd".
9726 Fix PR gdb/349.
9727
9728 * Makefile.in (linux-thread.o): Delete target.
9729 * linux-thread.c: Delete file.
9730
9731 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
9732 renamed SH files to be consistent.
9733
9734 * symtab.c (sort_search_symbols): Use xfree.
9735
9736 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
9737
9738 * arm-linux-tdep.c (arm_linux_init_abi): Register
9739 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
9740 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
9741 definition with undef, since we don't want the sysvr4 definition.
9742 (SKIP_TRAMPOLINE_CODE): Likewise.
9743
9744 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9745
9746 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
9747
9748 * configure.in: (AC_CHECK_FUNCS) Added test for
9749 canonicalize_file_name Regenerated.
9750 * config.in, configure: Regenerated.
9751 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
9752 defined use canonicalize_file_name.
9753
9754 2002-02-23 Michael Chastain <mec@shout.net>
9755
9756 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
9757
9758 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9759
9760 * README: Remove references to cygnus.com.
9761 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
9762 dot com'' form. Remove references to cygnus.com and sourceware.
9763
9764 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9765
9766 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
9767 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
9768 1003.1-2001 no longer allows "head -1".
9769 * gdb/Makefile.in (version.c): Likewise.
9770 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
9771 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
9772 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
9773
9774 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9775
9776 * cli/cli-decode.c (cmd_cfunc_eq): New function.
9777 * command.h (cmd_cfunc_eq): Declare.
9778 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
9779
9780 * cli/cli-cmds.h (is_complete_command): Change parameter to a
9781 ``struct cmd_list_element *''.
9782 * cli/cli-cmds.c (is_complete_command): Update. Use
9783 cmd_cfunc_eq.
9784 * top.c (execute_command): Pass the command to
9785 is_complete_command.
9786 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
9787
9788 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9789
9790 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
9791 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
9792 architecture defines.
9793 * s390-tdep.c (s390_gdbarch_init): Likewise.
9794
9795 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
9796
9797 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
9798 (arm_linux_push_arguments): Likewise.
9799 (arm_linux_init_abi): Register them. Also register linux-specific
9800 call_dummy_words.
9801 (find_minsym_and_objfile): Use strcmp, not STREQ.
9802 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
9803 (arm_linux_call_dummy_words): Delete declaration.
9804 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
9805 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
9806 declarations.
9807 (LOWEST_PC): Delete.
9808
9809 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9810
9811 * maint.c (print_section_info): Do not prepend `0x' to filepos
9812 output, it will be handled by local_hex_string_custom.
9813
9814 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
9815
9816 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
9817 (store_newfpe_double, store_newfpe_extended, store_fpregister)
9818 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
9819
9820 2002-02-22 Jim Blandy <jimb@redhat.com>
9821
9822 Indicate that the bcache functions don't change the strings
9823 they're passed.
9824 * bcache.h (bcache, hash): Add `const' keywords to declarations.
9825 * bcache.c (bcache, hash): Add `const' keywords to definitions.
9826
9827 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
9828
9829 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
9830
9831 2002-02-21 Christopher Faylor <cgf@redhat.com>
9832
9833 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
9834 find the complete path to a loaded DLL.
9835
9836 2002-02-21 Fred Fish <fnf@redhat.com>
9837
9838 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
9839 that marks the end of the range of a function, enter a line number
9840 entry that has a line number of zero and a PC offset that matches
9841 the end of the function. This starts a range of PC's for which no
9842 line number information is known.
9843 * symtab.c (find_pc_sect_line): If our best fit is in a range of
9844 PC's for which no line number info is found (line number is zero)
9845 then we didn't find any valid line information.
9846 * symtab.h: Document use of zero line number entry.
9847
9848 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
9849
9850 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
9851 (have_ptrace_getvrregs): Define for run time checks.
9852 (gdb_vrregset_t): New type for Altivec register handling.
9853 (fetch_register, store_register): Fetch/store altivec register
9854 when needed.
9855 (fetch_altivec_register, store_altivec_register): New functions.
9856 (supply_vrregset, fill_vrregset): New functions.
9857 (fetch_altivec_registers, store_altivec_registers): New functions.
9858 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
9859 registers as well.
9860
9861 2002-02-21 Jiri Smid <smid@suse.cz>
9862
9863 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
9864
9865 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
9866
9867 * Makefile.in (armnbsd-nat.o): Update dependencies.
9868 * armnbsd-nat.c (supply_gregset): New function. Common code to
9869 supply the integer register set.
9870 (supply_fparegset): New function. Similar for FPA registers.
9871 (fetch_regs, fetch_fp_regs): Use them.
9872 (fetch_core_registers): Likewise.
9873 (fetch_elfcore_registers): New function.
9874 (arm_netbsd_elfcore_fns): New core-file type specification.
9875 (_initialize_arm_netbsd_nat): Register it.
9876
9877 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
9878
9879 * armnbsd-nat.c: Include gdbcore.h.
9880 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
9881 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
9882 'void' to declaration, to shut up ARI.
9883 (fetch_core_registers): Make static. Rewrite using supply_register.
9884 (arm_netbsd_core_fns): New core-file type specification.
9885 (_initialize_arm_netbsd_nat): New function.
9886
9887 2002-02-21 Christopher Faylor <cgf@redhat.com>
9888
9889 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
9890 value.
9891
9892 2002-02-20 Christopher Faylor <cgf@redhat.com>
9893
9894 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
9895 fails.
9896
9897 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9898
9899 * jv-exp.y (parse_number): Change type of implicit longs
9900 to builtin_type_uint64.
9901
9902 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9903
9904 * gdbserver/linux-low.c (mywait): Change argument to waitpid
9905 to be an integer instead of a `union wait'.
9906
9907 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9908
9909 * mips-linux-nat.c: Call the operating system GNU/Linux.
9910 * mips-linux-tdep.c: Likewise.
9911 * mips-tdep.c: Likewise.
9912
9913 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9914
9915 Fix PR gdb/265.
9916 * jv-exp.y (parse_number): Handle 64-bit integers.
9917
9918 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9919
9920 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
9921 AC_STDC_HEADERS to AC_HEADER_STDC.
9922 * gdbserver/configure: Regenerated.
9923
9924 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
9925
9926 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
9927 is defined.
9928 * sparc-tdep.c (get_longjmp_target): Likewise.
9929
9930 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
9931
9932 * News: Add news about ARM and Multi-arch. Mention the new target
9933 arm*-*-netbsd*.
9934
9935 2002-02-19 Jim Blandy <jimb@redhat.com>
9936
9937 * stabsread.c (error_type_complaint): Improve error message.
9938
9939 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
9940
9941 * gdbserver/README: Update documentation.
9942 * gdbserver/configure.in: Update configury to match documentation.
9943 * gdbserver/Makefile.in: Likewise.
9944 * gdbserver/configure: Regenerated.
9945 * gdbserver/aclocal.m4: New file, generated by aclocal.
9946 * gdbserver/config.in: New file, generated by autoheader.
9947
9948 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9949
9950 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
9951 armnbsd-nat.c.
9952
9953 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9954
9955 * arm-tdep.h (enum arm_float_model): New enum.
9956 (struct gdbarch_tdep): Add fp_model.
9957 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
9958 up floating-point conversions until we know the floating-point model
9959 in use by the inferior. Don't complain about being unable to
9960 determine the ABI of the inferior when we don't have one.
9961 (arm_extract_return_value): Support different floating-point models.
9962 (arm_store_return_value): Likewise.
9963 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
9964 ARM_FLOAT_SOFT.
9965 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
9966
9967 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9968
9969 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
9970 of ``current_gdbarch''.
9971
9972 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9973
9974 * armnbsd-nat.c : ANSIfy all function declarations.
9975 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
9976 (fetch_inferior_registers): Re-implement in terms of above.
9977 (store_register, store_regs, store_fp_register, store_fp_regs): New.
9978 (store_inferior_registers): Re-implement in terms of above.
9979
9980 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9981
9982 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
9983 kernel.
9984 * arm-linux-tdep.c: Likewise.
9985 * config/arm/tm-linux.h: Likewise.
9986
9987 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9988
9989 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
9990 * config/arm/nbsd.mt (TM_FILE): Delete.
9991 * config/arm/tm-nbsd.h: Delete.
9992
9993 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9994
9995 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
9996 Initialize CALL_DUMMY_LENGTH.
9997
9998 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9999
10000 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
10001 function.
10002 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
10003 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
10004 defines one thing and that is incorrect for this port.
10005 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
10006
10007 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
10008
10009 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
10010
10011 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
10012
10013 * win32-nat.c (display_selector): New function. Displays information
10014 about the information returned by GetThreadSelectorEntry API function.
10015 (display_selectors): New function. Displays the infomation of
10016 the selector given as argument, or of CS, DS ans FS selectors
10017 if no argument is given.
10018 ( _initialize_inftarg): Add "w32" as info prefix command.
10019 Add "info w32 selector" as command calling display_selectors.
10020
10021 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
10022
10023 * i386-tdep.c (get_longjmp_target): Fix compilation failure
10024 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
10025 if not defined.
10026
10027 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
10028
10029 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
10030
10031 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
10032
10033 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
10034 (arm_fix_call_dummy): Call it.
10035 (arm_call_dummy_breakpoint_offset): Delete.
10036 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
10037 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
10038
10039 2002-02-18 Andrew Cagney <ac131313@redhat.com>
10040
10041 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
10042 Default to func_frame_chain_valid.
10043 * gdbarch.h, gdbarch.c: Re-generate.
10044 * frame.h (FRAME_CHAIN_VALID): Delete definition.
10045
10046 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
10047
10048 * ppc-linux-nat.c: Update copyright.
10049 (fetch_register, store_register): Add tid parameter, don't compute
10050 tid here.
10051 (fetch_ppc_registers, store_ppc_registers): Add tid
10052 parameter. Pass it along to callees.
10053 (fetch_inferior_registers, store_inferior_registers): Compute tid
10054 here, and pass it to calleed functions.
10055 (fill_gregset, supply_fpregset): Clean up formatting.
10056
10057 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
10058
10059 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
10060 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
10061
10062 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
10063
10064 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
10065 * gdbarch.c gdbarch.h: Regenerate.
10066 * breakpoint.c (create_longjmp_breakpoint): Always compile this
10067 function.
10068 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
10069 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
10070 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
10071
10072 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
10073 * arm-tdep.c (arm_get_longjmp_target): New function.
10074 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
10075 this to a positive value register arm_get_longjmp_target as the
10076 longjmp handler.
10077 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
10078 (arm_linux_init_abi): Set up longjmp description in tdep.
10079 * armnbsd-nat.c (get_longjmp_target): Delete.
10080 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
10081 description in tdep.
10082 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
10083 (get_longjmp_target): Delete declaration.
10084 (GET_LONGJMP_TARGET): Delete.
10085 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
10086 (GET_LONGJMP_TARGET): Delete.
10087
10088 2002-02-17 Kevin Buettner <kevinb@redhat.com>
10089
10090 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
10091 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
10092 of ``current_gdbarch''.
10093
10094 2002-02-17 Tom Tromey <tromey@redhat.com>
10095
10096 * cli/cli-cmds.c (compare_strings): New function.
10097 (complete_command): Only print each unique item once.
10098 * completer.h (complete_line): Declare.
10099 * completer.c (complete_line): New function.
10100 (line_completion_function): Use it.
10101
10102 2002-02-16 Andrew Cagney <ac131313@redhat.com>
10103
10104 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
10105 * gdbarch.h, gdbarch.c: Re-generate.
10106
10107 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
10108
10109 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
10110
10111 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
10112
10113 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
10114 * valops.c (value_arg_coerce): Don't take the address of a reference
10115 to convert an argument to a reference.
10116
10117 2002-02-15 Christopher Faylor <cgf@redhat.com>
10118
10119 * win32-nat.c (get_image_name): New function.
10120 (handle_load_dll): Use get_image_name function.
10121 (get_child_debug_event): Avoid registering debug events until possibly
10122 execed process is started.
10123 (child_create_inferior): Allow invocation via shell so that command
10124 line redirection, etc. works ok.
10125 (_initialize_inftarg): Add new command: "set shell" to control whether
10126 a shell is used to start a process.
10127
10128 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
10129
10130 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
10131 instead of find_register_by_number.
10132 (cannot_store_register): Likewise.
10133
10134 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
10135
10136 * dwarf2read.c: Replace fprintf (stderr, ...) by
10137 fprintf_unfiltered (gdb_stderr, ...).
10138
10139 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
10140
10141 * gdbserver/gdbserver.1: Document --attach.
10142
10143 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
10144
10145 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
10146 descriptions.
10147 * arm-tdep.c (arm_default_arm_le_breakpoint)
10148 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
10149 (arm_default_thumb_be_breakpoint): New. Initialize them from
10150 traditional breakpoint defines.
10151 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
10152 (arm_gdbarch_init): Initialize new breakpoint variables.
10153 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
10154 (arm_linux_init_abi): Initialize linux-specific breakpoint.
10155 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
10156 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
10157 code out to ...
10158 (arm_netbsd_init_abi_common): ... here; new function.
10159 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
10160 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
10161 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
10162 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
10163
10164 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
10165
10166 * arm-tdep.h (enum arm_abi): New enum.
10167 (struct gdbarch_tdep): New structure.
10168 (LOWEST_PC): Provide a default.
10169 (arm_gdbarch_register_os_abi): Declare new function.
10170 * arm-tdep.c (arm_abi_names): New array.
10171 (process_note_abi_tag_sections): New function.
10172 (get_elfosabi): New function.
10173 (arm_gdbarch_register_os_abi): New function.
10174 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
10175 support for that ABI has been built in, then call the appropriate
10176 configuration routine. Use gdbarch_num_regs() to get the number
10177 of registers.
10178 (arm_dump_tdep): New function.
10179 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
10180 place-holder functions.
10181 (_initialize_arm_tdep): Register them.
10182 * config/arm/tm-arm.h (LOWEST_PC): Delete.
10183
10184 * armnbsd-tdep.c: New file.
10185 * Makefile.in (armnbsd-tdep.o): Add dependencies.
10186 * config/arm/nbsd.mt (TDEPFILES): Add it.
10187 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
10188
10189 * armnbsd-nat.c: Include regcache.h.
10190 * Makefile.in (armnbsd-nat.o): Update dependency list.
10191
10192 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
10193
10194 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
10195
10196 * gdbserver/Makefile.in: Fix typos in target rules.
10197
10198 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
10199
10200 Fix part of PR gdb/267.
10201 * linespec.c (find_methods): Handle constructors specially for now.
10202
10203 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
10204
10205 * arm-tdep.c (arm_push_arguments): Eliminate special float type
10206 handling.
10207 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
10208 standard_coerce_float_to_double().
10209
10210 2002-02-14 Christopher Faylor <cgf@redhat.com>
10211
10212 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
10213 GDBINIT_FILENAME.
10214
10215 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
10216
10217 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
10218 find_variant_by_name, because it confuses the multiarch
10219 framework. Return NULL if there isn't an architecture with the
10220 user supplied name, instead of forcing a different one without
10221 recording the change with the multiarch machinery.
10222 (find_variant_by_name): Delete.
10223
10224 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10225
10226 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
10227 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
10228
10229 2002-02-13 Martin M. Hunt <hunt@redhat.com>
10230
10231 * stack.c (print_frame_info_base): When calling
10232 print_frame_info_listing_hook, set current_source_symtab.
10233
10234 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
10235
10236 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
10237 and remove unused $(INCLUDE_DIR).
10238 Add regcache.c to OBS.
10239 Add generated register protocol files to clean target.
10240 Update dependencies for new objects, obsolete old target code.
10241
10242 * gdbserver/linux-low.c: Remove all platform-specific code to
10243 new files. Remove various dead code. Update to use regcache
10244 functionality.
10245 * gdbserver/remote-utils.c (fromhex): Add return statement
10246 to quiet warning.
10247 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
10248 constant.
10249 (input_interrupt): Add integer parameter to match prototype
10250 of a signal handler.
10251 (outreg): Use register_data ().
10252 (prepare_resume_reply): Use gdbserver_expedite_regs.
10253 * gdbserver/server.c (main): Dynamically allocate own_buf because
10254 PBUFSIZ is no longer constant. Use registers_to_string () and
10255 registers_from_string ().
10256 * gdbserver/server.h: No longer include "defs.h". Add prototypes
10257 for error (), fatal (), and warning (). Update definition of
10258 PBUFSIZ to use regcache functionality. Add include guard.
10259 * gdbserver/utils.c (fatal): Add missing ``const''.
10260 (warning): New function.
10261
10262 * regformats/regdat.sh: Include "regcache.h" in generated files.
10263 Provide init_registers () function.
10264 * regformats/regdef.h: Add prototype for set_register_cache ().
10265 Add include guard.
10266
10267 * gdbserver/linux-arm-low.c: New file.
10268 * gdbserver/linux-i386-low.c: New file.
10269 * gdbserver/linux-ia64-low.c: New file.
10270 * gdbserver/linux-m68k-low.c: New file.
10271 * gdbserver/linux-mips-low.c: New file.
10272 * gdbserver/linux-ppc-low.c: New file.
10273 * gdbserver/linux-sh-low.c: New file.
10274
10275 * gdbserver/regcache.c: New file.
10276 * gdbserver/regcache.h: New file.
10277
10278 * gdbserver/low-linux.c: Removed obsolete file.
10279
10280 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
10281
10282 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
10283 * config/i386/linux.mt: Likewise.
10284 * config/ia64/linux.mt: Likewise.
10285 * config/m68k/linux.mh: Likewise.
10286 * config/powerpc/linux.mh: Likewise.
10287 * config/mips/linux.mt: Likewise.
10288
10289 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
10290
10291 * config/i386/i386lynx.mh: Mark gdbserver variables
10292 as (currently) obsolete for this target.
10293 * config/i386/nbsd.mt: Likewise.
10294 * config/i386/nbsdelf.mt: Likewise.
10295 * config/m32r/m32r.mt: Likewise.
10296 * config/m68k/m68klynx.mh: Likewise.
10297 * config/m68k/nbsd.mt: Likewise.
10298 * config/m68k/sun3os4.mh: Likewise.
10299 * config/mips/vr5000.mt: Likewise.
10300 * config/ns32k/nbsd.mt: Likewise.
10301 * config/pa/hppabsd.mh: Likewise.
10302 * config/pa/hppaosf.mh: Likewise.
10303 * config/powerpc/nbsd.mt: Likewise.
10304 * config/rs6000/rs6000lynx.mh: Likewise.
10305 * config/s390/s390.mt: Likewise.
10306 * config/s390/s390x.mt: Likewise.
10307 * config/sparc/sparclynx.mh: Likewise.
10308 * config/sparc/sun4os4.mh: Likewise.
10309 * config/i386/x86-64linux.mt: Likewise.
10310 * config/sparc/linux.mh: Likewise.
10311
10312 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
10313
10314 * configure.tgt: Configure gdbserver only for known working
10315 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
10316 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
10317 SUBDIRS if it is configured. Update comment for ${nativefile}.
10318 * configure: Regenerated.
10319
10320 2002-02-13 Michael Snyder <msnyder@redhat.com>
10321
10322 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
10323
10324 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
10325 (default_gcore_mach): Just return 0, work around a problem in bfd.
10326 (default_gcore_target): OK to return NULL if exec_bfd is null.
10327 (make_mem_sec): Use a cast, avoid a warning.
10328
10329 * procfs.c (find_memory_regions_callback): Use a cast instead of
10330 calling host_pointer_to_address (which complains if
10331 sizeof (host pointer) != sizeof (target pointer)).
10332 (procfs_make_note_section): Avoid overflow in psargs string.
10333
10334 * procfs.c (procfs_make_note_section): Make the default
10335 implementation return an error.
10336
10337 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
10338
10339 * procfs.c (procfs_make_note_section): Provide a default definition
10340 (for alpha-dec-osf4.0f). Fix typos.
10341
10342 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
10343
10344 * linux-proc.c: Add include of regcache.h.
10345 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
10346
10347 2002-02-13 Andrew Cagney <ac131313@redhat.com>
10348
10349 From 2002-01-18 Greg McGary <greg@mcgary.org>:
10350 * memattr.c (create_mem_region): Disallow useless empty region.
10351 Regions are half-open intervals, so allow [A..B) [B..C) as
10352 non-overlapping.
10353
10354 2002-02-13 Michael Chastain <mec@shout.net>
10355
10356 * defs.h: Kill CONST_PTR.
10357 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
10358 * c-lang.c (c_builtin_types): Likewise.
10359 * ch-lang.c (ch_builtin_types): Likewise.
10360 * f-lang.c (f_builtin_types): Likewise.
10361 * language.c (unknown_builtin_types): Likewise.
10362 * m2-lang.c (m2_builtin_types): Likewise.
10363 * p-lang.c (pascal_builtin_types): Likewise.
10364 * scm-lang.c (c_builtin_types): Likewise.
10365
10366 2002-02-13 Keith Seitz <keiths@redhat.com>
10367
10368 * arm-tdep.h (arm_get_next_pc): Add declaration.
10369
10370 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
10371
10372 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
10373 with other related struct-returning functions.
10374 (arm_extract_struct_value_address): New function.
10375 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
10376 initialize float_format, double_format and long_double_format as
10377 appropriate to the endianness of the target.
10378 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
10379 (arm_use_struct_convention): Delete declaration.
10380 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
10381
10382 2002-02-13 Keith Seitz <keiths@redhat.com>
10383
10384 * defs.h (core_addr_to_string_nz): New function.
10385
10386 2002-02-13 Mark Kettenis <kettenis@gnu.org>
10387
10388 Apply missing bits of 2002-01-15 patch.
10389 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
10390 (fill_fpregset): Use i387_fill_fsave.
10391
10392 2002-02-12 Keith Seitz <keiths@redhat.com>
10393
10394 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
10395 (core_addr_to_string_nz): New function.
10396
10397 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
10398
10399 * arm-linux-nat.c: Really include arm-tdep.h.
10400 * config/arm/tm-linux.h (struct type, struct value): Declare.
10401
10402 2002-02-11 Michael Snyder <msnyder@redhat.com>
10403
10404 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
10405 (gcore section): Ifdef for Solaris and Unixware only.
10406 (procfs_do_thread_registers): Unixware needs one lwpstatus
10407 per thread (not one prstatus or pstatus).
10408 (procfs_make_note_section): Iterate only over kernel threads (lwps),
10409 not over all gdb threads. For unixware, call elfcore_write_pstatus
10410 once before iterating over threads.
10411
10412 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
10413
10414 * arm-tdep.h: New file.
10415 * arm-tdep.c: Include arm-tdep.h.
10416 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
10417 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
10418 (arm_print_float_info, arm_register_type, convert_to_extended)
10419 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
10420 (arm_extract_return_value, arm_register_name): Make static.
10421 (arm_software_single_step): Similarly. Fix types in declaration.
10422 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
10423 (arm_store_return_value, arm_store_struct_return): New functions.
10424 (arm_gdbarch_init): Register the above functions. Also register
10425 call_dummy_start_offset, sizeof_call_dummy_words,
10426 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
10427 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
10428 max_register_virtual_size, register_size. Set up
10429 prologue_cache.saved_regs here, rather than ...
10430 (_initialize_arm_tdep): ... here.
10431 * config/arm/tm-arm.h (struct type, struct value): Delete forward
10432 declarations.
10433 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
10434 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
10435 (arm_print_float_info, arm_register_type, convert_to_extended)
10436 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
10437 (arm_extract_return_value, arm_register_name): Delete declarations.
10438 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
10439 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
10440 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
10441 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
10442 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
10443 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
10444 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
10445 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
10446 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
10447 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
10448 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
10449 (arm_get_next_pc): No-longer static -- these are needed by the RDI
10450 interface.
10451 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
10452 * remote-rdi.c remote-rdp.c: Likewise.
10453 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
10454 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
10455 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
10456 definition.
10457
10458 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
10459 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
10460 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
10461 from non-ARM_ prefixed definitions.
10462 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
10463 all uses of above.
10464 * remote-rdi.c remote-rdp.c: Likewise.
10465 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
10466
10467 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
10468
10469 * arm-tdep.c (arm_frameless_function_invocation)
10470 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
10471 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
10472 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
10473 (arm_pop_frame, arm_get_next_pc): Make static.
10474 (arm_gdbarch_init): Register above in gdbarch structure.
10475 (arm_read_fp): Renamed from arm_target_read_fp.
10476 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
10477 * config/arm/tm-arm.h (arm_frameless_function_invocation)
10478 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
10479 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
10480 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
10481 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
10482 (arm_pc_is_thumb_dummy): Delete declarations.
10483 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
10484 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
10485 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
10486 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
10487
10488 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
10489
10490 * symtab.c (compare_search_syms): New function.
10491 (sort_search_symbols): New function.
10492 (search_symbols): Sort symbols after searching rather than
10493 before.
10494
10495 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10496
10497 * NEWS: Linux -> GNU/Linux.
10498
10499 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10500
10501 * gdbarch.sh: For for level one methods, disallow a definition
10502 when partially multi-arched. Add comments explaining rationale.
10503 * gdbarch.h: Re-generate.
10504
10505 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10506
10507 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
10508 multi-arch partial.
10509
10510 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10511
10512 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
10513 field. Use diff -u.
10514 * gdbarch.c: Re-generate.
10515
10516 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10517
10518 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
10519 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
10520 partial.
10521
10522 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10523
10524 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
10525 multi-arch partial.
10526 (PUSH_ARGUMENTS): Switch to using predefault.
10527 * gdbarch.c: Regenerate.
10528
10529 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10530
10531 * valops.c (PUSH_ARGUMENTS): Delete definition.
10532 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
10533 partial. Default to default_push_arguments.
10534 * gdbarch.h, gdbarch.c: Regenerate.
10535
10536 2002-02-09 Andrew Cagney <ac131313@redhat.com>
10537
10538 * defs.h (throw_exception): Rename return_to_top_level. Update
10539 comments.
10540 * utils.c (error_stream, internal_verror, quit): Ditto.
10541 * top.c (throw_exception, catcher): Ditto.
10542 * sparclet-rom.c (sparclet_load): Ditto.
10543 * remote.c (interrupt_query, minitelnet): Ditto.
10544 * remote-sds.c (interrupt_query): Ditto.
10545 * remote-mips.c (mips_error, mips_kill): Ditto.
10546 * ocd.c (interrupt_query): Ditto.
10547 * monitor.c (monitor_interrupt_query): Ditto.
10548 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
10549 * target.h: Update comment.
10550
10551 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
10552
10553 2002-02-09 Andrew Cagney <ac131313@redhat.com>
10554
10555 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
10556 default_double_format.
10557 * gdbarch.h, gdbarch.c: Re-generate.
10558 * findvar.c (floatformat_unknown): Delete variable definition.
10559 * doublest.h (floatformat_unknown): Delete variable declaration.
10560
10561 2002-02-09 Jim Blandy <jimb@redhat.com>
10562
10563 * stabsread.c (read_type): Add code to parse Sun's syntax for
10564 prototyped function types.
10565
10566 2002-02-09 Andrew Cagney <ac131313@redhat.com>
10567
10568 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
10569 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
10570
10571 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10572
10573 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
10574 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
10575 now _initialize_xcoffsolib gets called again and overrides the
10576 commands from solib.c in a native configuration.
10577
10578 2002-02-09 Mark Kettenis <kettenis@gnu.org>
10579
10580 * doublest.c (store_typed_floating): Don't try to return a value.
10581 Fixes PR gdb/290.
10582
10583 2002-02-08 Jim Blandy <jimb@redhat.com>
10584
10585 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
10586 is prototyped and has no arguments, print its argument list as
10587 `(void)'.
10588
10589 2002-02-08 Chris Demetriou <cgd@broadcom.com>
10590
10591 * MAINTAINERS (write-after-approval): Add myself.
10592 (paper-trail): I've escaped!
10593
10594 2002-02-08 Christopher Faylor <cgf@redhat.com>
10595
10596 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
10597 changes.
10598 (_initialize_check_for_gdb_ini): Ditto.
10599
10600 2002-02-08 Martin M. Hunt <hunt@redhat.com>
10601
10602 * win32-nat.c (cygwin_pid_to_str): Fix typo.
10603 xaprintf -> xasprintf.
10604
10605 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
10606
10607 * win32-nat.c: Remove use of printf and sprintf functions.
10608
10609 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
10610
10611 * arm-tdep.c (arm_frame_chain_valid): Make static.
10612 (arm_push_arguments): Likewise.
10613 (arm_gdbarch_init): New function.
10614 (_initialize_arm_tdep): Call it.
10615 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
10616 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
10617 (FRAME_CHAIN_VALID): Delete.
10618 (arm_frame_chain_valid): Delete declaration.
10619 (PUSH_ARGUMENTS): Delete.
10620 (arm_push_arguments): Delete declaration.
10621 (CALL_DUMMY_P): Delete.
10622
10623 2002-02-08 Andrew Cagney <ac131313@redhat.com>
10624 Corinna Vinschen <vinschen@redhat.com>
10625
10626 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
10627 on builtin float types.
10628
10629 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
10630
10631 * utils.c: Include <curses.h> before "bfd.h".
10632 * tui/tui-hooks.c: Likewise.
10633 * tui/tui.c: Likewise.
10634 * tui/tuiCommand.c: Likewise.
10635 * tui/tuiData.c: Likewise.
10636 * tui/tuiDataWin.c: Likewise.
10637 * tui/tuiDisassem.c: Likewise.
10638 * tui/tuiGeneralWin.c: Likewise.
10639 * tui/tuiIO.c: Likewise.
10640 * tui/tuiLayout.c: Likewise.
10641 * tui/tuiRegs.c: Likewise.
10642 * tui/tuiSource.c: Likewise.
10643 * tui/tuiSourceWin.c: Likewise.
10644 * tui/tuiStack.c: Likewise.
10645 * tui/tuiWin.c: Likewise.
10646
10647 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
10648
10649 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
10650 to include space for pseudoregs as well. Update loops accordingly.
10651 (sh_fp_frame_init_saved_regs): Ditto.
10652 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
10653
10654 2002-02-07 Andrew Cagney <ac131313@redhat.com>
10655
10656 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
10657 Add Richard Earnshaw to Arm maintainers.
10658
10659 2002-02-07 Andrew Cagney <ac131313@redhat.com>
10660
10661 * defs.h (warning_begin): Delete declaration.
10662
10663 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
10664 Delete macro.
10665
10666 2002-02-07 Michael Snyder <msnyder@redhat.com>
10667
10668 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
10669 Logic bug, remove misplaced else.
10670
10671 2002-02-07 Klee Dienes <klee@apple.com>
10672
10673 * fork-inferior.c (fork_inferior): Add '!' to the list of
10674 characters that need to be quoted when building a string for the
10675 shell. Quote '!' specifically with a backslash, since CSH chokes
10676 when trying to evaluate "str!str".
10677
10678 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
10679
10680 * rdi-share/host.h: Only provide a typedef for bool if it is not
10681 defined.
10682
10683 2002-02-04 Michael Snyder <msnyder@redhat.com>
10684
10685 * breakpoint.h (enum bptype): Add new overlay event bp type.
10686 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
10687
10688 * breakpoint.c (create_internal_breakpoint): New function.
10689 (internal_breakpoint_number): Moved into create_internal_breakpoint.
10690 (create_longjmp_breakpoint): Use create_internal_breakpoint.
10691 (create_thread_event_breakpoint): Ditto.
10692 (create_solib_event_breakpoint): Ditto.
10693 (create_overlay_event_breakpoint): New function.
10694 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
10695 (update_breakpoints_after_exec): Delete and re-initialize
10696 overlay event breakpoints after an exec. Add FIXME comment
10697 about longjmp breakpoint.
10698 (print_it_typical): Ignore overlay event breakpoints.
10699 (print_one_breakpoint): Ditto.
10700 (mention): Ditto.
10701 (bpstat_what): Do not stop for overlay event breakpoints.
10702 (delete_breakpoint): Don't delete overlay event breakpoints.
10703 (breakpoint_re_set_one): Delete the overlay event breakpoint.
10704 (breakpoint_re_set): Re-create overlay event breakpoint.
10705
10706 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
10707 (overlay_manual_command): Disable overlay breakpoints.
10708 (overlay_off_command): Disable overlay breakpoints.
10709
10710 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
10711
10712 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
10713 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
10714 to here from config/tm-arm.h.
10715 (coff_sym_is_thumb): Make static.
10716 (arm_elf_make_msymbol_special): New function.
10717 (arm_coff_make_msymbol_special): New function.
10718 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
10719 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
10720 (coff_sym_is_thumb): Delete declaration.
10721 (arm_elf_make_msymbol_special): Declare.
10722 (arm_coff_make_msymbol_special): Declare.
10723 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
10724 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
10725
10726 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
10727
10728 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
10729
10730 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
10731
10732 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
10733 * gdbarch.c gdbarch.h: Regenerate.
10734 * arch-utils.c (default_print_float_info): New function.
10735 * arch-utils.h (default_print_float_info): Prototype it.
10736 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
10737 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
10738 (PRINT_FLOAT_INFO): Document it.
10739
10740 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
10741 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
10742 (PRINT_FLOAT_INFO): Define.
10743
10744 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
10745
10746 * win32-nat.c (_initialize_check_for_gdb_ini):
10747 Add typecast to sprintf argument to suppress a warning.
10748
10749 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
10750
10751 * win32-nat.c (last_sig): Changed type of variable to target_signal,
10752 to allow easier handling of pass state.
10753 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
10754 that gives exception name and address.
10755 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
10756 and set last_sig value to ourstatus->value.sig. Some missing
10757 exceptions added.
10758 (child_continue): Correctly report continue_status.
10759 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
10760 TARGET_SIGNAL_0 (new default value).
10761 (child_resume): consider sig argument passed to decide if
10762 the exception should be passed to debuggee or not.
10763
10764 2002-02-05 Michael Snyder <msnyder@redhat.com>
10765
10766 * regcache.c (fetch_register): Call target_fetch_register
10767 only if we don't call FETCH_PSEUDO_REGISTER.
10768 (store_register): Call target_store_register only if we
10769 don't call STORE_PSEUDO_REGISTER.
10770
10771 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
10772
10773 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
10774 ELF_MAKE_MSYMBOL_SPECIAL.
10775 * gdbarch.c, gdbarch.h: Regenerate.
10776 * arch-utils.c (default_make_msymbol_special): New function.
10777 * arch-utils.h (default_make_msymbol_special): Export.
10778 * elfread.c (elf_symtab_read): Compile use of
10779 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
10780 multiarched.
10781 * coffread.c (coff_symtab_read): Ditto, for
10782 COFF_MAKE_MSYMBOL_SPECIAL.
10783
10784 2002-02-05 Jim Blandy <jimb@redhat.com>
10785
10786 * solib-svr4.c (svr4_truncate_ptr): New function.
10787 (svr4_relocate_section_addresses): Do the address arithmetic with
10788 the appropriate truncation for target addresses, even when
10789 CORE_ADDR is larger than a target address.
10790
10791 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10792
10793 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
10794 to (int *).
10795
10796 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10797
10798 * gdbserver/linux-low.c (kill_inferior): Remove commented out
10799 code.
10800
10801 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10802
10803 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
10804
10805 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10806
10807 * gdbserver/linux-low.c: Remove unused include files.
10808
10809 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10810
10811 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
10812 (read_inferior_memory): Use it.
10813 (write_inferior_memory): Likewise.
10814
10815 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10816
10817 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
10818 grubbing through sys_errlist.
10819
10820 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10821
10822 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
10823
10824 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
10825 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
10826
10827 2002-02-04 Andrew Cagney <ac131313@redhat.com>
10828
10829 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
10830 (do_sfunc, set_cmd_sfunc): New functions.
10831
10832 * command.h (struct cmd_list_element): Add field func.
10833 * cli/cli-decode.h (struct cmd_list_element): Ditto.
10834 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
10835 * cli/cli-decode.h: Ditto.
10836
10837 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
10838 (help_all, help_cmd_list): Ditto.
10839 (find_cmd, complete_on_cmdlist): Ditto.
10840 * top.c (execute_command): Ditto.
10841
10842 * cli/cli-setshow.c (do_setshow_command): Call func instead of
10843 function.sfunc.
10844
10845 * infcmd.c (notice_args_read): Fix function signature.
10846
10847 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
10848 * cli/cli-decode.c (add_set_cmd): Ditto.
10849 * utils.c (initialize_utils): Ditto.
10850 * maint.c (_initialize_maint_cmds): Ditto.
10851 * infrun.c (_initialize_infrun): Ditto.
10852 * demangle.c (_initialize_demangler): Ditto.
10853 * remote.c (add_packet_config_cmd): Ditto.
10854 * mips-tdep.c (_initialize_mips_tdep): Ditto.
10855 * cris-tdep.c (_initialize_cris_tdep): Ditto.
10856 * proc-api.c (_initialize_proc_api): Ditto.
10857 * kod.c (_initialize_kod): Ditto.
10858 * valprint.c (_initialize_valprint): Ditto.
10859 * top.c (init_main): Ditto.
10860 * infcmd.c (_initialize_infcmd): Ditto.
10861 * corefile.c (_initialize_core): Ditto.
10862 * arm-tdep.c (_initialize_arm_tdep): Ditto.
10863 * arch-utils.c (initialize_current_architecture): Ditto.
10864 (_initialize_gdbarch_utils): Ditto.
10865 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
10866
10867 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
10868 * wince.c (_initialize_inftarg): Ditto.
10869 * symfile.c (_initialize_symfile): Ditto.
10870 * mips-tdep.c (_initialize_mips_tdep): Ditto.
10871 * language.c (_initialize_language): Ditto.
10872 * arc-tdep.c (_initialize_arc_tdep): Ditto.
10873
10874 2002-02-04 Michael Snyder <msnyder@redhat.com>
10875
10876 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
10877
10878 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
10879
10880 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
10881 Add rules for building the register data files.
10882
10883 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
10884
10885 * regformats/regdat.sh: Add braces to the definition of
10886 expedite_regs_${arch}.
10887
10888 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
10889
10890 * regformats/regdef.h (struct reg): Add comment describing the
10891 requirements for offset and size fields.
10892
10893 2002-02-04 Andreas Schwab <schwab@suse.de>
10894
10895 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
10896 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
10897
10898 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
10899
10900 * gdbarch.sh (copyright): Update years in generated header.
10901 (SMASH_TEXT_ADDRESS): Add rule.
10902 * gdbarch.h, gdbarch.c: Re-generate.
10903 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
10904 * dbxread.c: Likewise.
10905 * dwarfread.c: Likewise.
10906 * elfread.c: Likewise.
10907 * somread.c: Likewise.
10908
10909 * arm-tdep.c (arm_smash_text_address): New function.
10910 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
10911
10912 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
10913
10914 Add support for hardware watchpoints on win32 native.
10915 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
10916 CONTEXT_DEBUG_REGISTERS.
10917 (dr variable): New variable. Static array containing a local copy
10918 of debug registers.
10919 (debug_registers_changed): New variable. Reflects when debug registers
10920 are changed and need to be written to inferior.
10921 (debug_registers_used): New variable. Reflects when any debug register
10922 was set, used when new threads are created.
10923 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
10924 i386-nat code.
10925 (thread_rec): Set dr array if id is the thread of current_event .
10926 (child_continue, child_resume): Change the debug registers for all
10927 threads if debug_registers_changed.
10928 (child_add_thread): Change the debug registers if debug_registers_used.
10929 * config/i386/cygwin.mh: Add use of i386-nat.o file.
10930 Link nm.h to new nm-cygwin.h file.
10931 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
10932 of hardware registers.
10933
10934 2002-02-03 Andrew Cagney <ac131313@redhat.com>
10935
10936 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
10937 Restore behavour broken by 2002-01-20 Andrew Cagney
10938 <ac131313@redhat.com> IEEE_FLOAT removal.
10939
10940 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
10941
10942 * c-valprint.c (c_val_print): Pass a proper valaddr to
10943 cp_print_class_method.
10944 * valops.c (search_struct_method): If there is only one method
10945 and args is NULL, return that method.
10946
10947 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
10948
10949 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
10950 accessing tag_name directly.
10951
10952 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
10953
10954 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
10955 of accessing tag_name directly.
10956
10957 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
10958
10959 PR gdb/280
10960 * gdbtypes.c (replace_type): New function.
10961 * gdbtypes.h (replace_type): Add prototype.
10962 * stabsread.c (read_type): Use replace_type.
10963
10964 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
10965
10966 * Makefile.in (memattr.o): Add missing dependencies rule.
10967
10968 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10969
10970 * breakpoint.c (break_at_finish_command): Really export.
10971 (break_at_finish_at_depth_command): Ditto.
10972 (tbreak_at_finish_command): Ditto.
10973 * hppa-tdep.c: Include completer.h.
10974 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
10975 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
10976
10977 2002-02-01 Andrew Cagney <ac131313@redhat.com>
10978
10979 * utils.c (do_write): New function.
10980 (error_stream): Rewrite combining the code from error_begin and
10981 verror.
10982 (verror): Rewrite using error_stream.
10983 (error_begin): Delete function.
10984
10985 2002-02-01 Andrew Cagney <ac131313@redhat.com>
10986
10987 * utils.c (error_begin): Make static.
10988 * defs.h (error_begin): Delete declaration.
10989
10990 * linespec.c (cplusplus_error): Replace cplusplus_hint.
10991 (decode_line_1): Use cplusplus_error instead of error_begin,
10992 cplusplus_hint and return_to_top_level.
10993 * coffread.c (coff_symfile_read): Use error instead of error_begin
10994 and return_to_top_level.
10995 * infrun.c (default_skip_permanent_breakpoint): Ditto.
10996
10997 2002-02-01 Andrew Cagney <ac131313@redhat.com>
10998
10999 * language.h (type_error, range_error): Make string parameter
11000 constant.
11001 * language.c (warning_pre_print): Delete extern declaration.
11002 * dwarfread.c (warning_pre_print): Ditto.
11003 * language.c (type_error, range_error): Rewrite to use verror and
11004 vwarning instead of warning_begin.
11005
11006 2002-02-01 Michael Snyder <msnyder@redhat.com>
11007
11008 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
11009 (set_ignore_count): Move misplaced comment back where it belongs.
11010
11011 2002-02-01 Andrew Cagney <ac131313@redhat.com>
11012
11013 * command.h (NO_FUNCTION): Delete macro.
11014 * cli/cli-decode.h (NO_FUNCTION): Ditto.
11015 * top.c (execute_command): Replace NO_FUNCTION with NULL.
11016 * tracepoint.c (_initialize_tracepoint): Ditto.
11017 * cli/cli-decode.c (add_set_cmd): Ditto.
11018 * cli/cli-cmds.c (init_cli_cmds): Ditto.
11019
11020 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
11021
11022 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
11023 Update ``this'' pointer when calling virtual functions.
11024
11025 2002-02-01 Michael Snyder <msnyder@redhat.com>
11026
11027 * breakpoint.c (create_temp_exception_breakpoint): Delete.
11028 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
11029
11030 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
11031
11032 * regformats/reg-arm.dat: New file.
11033 * regformats/reg-i386.dat: New file.
11034 * regformats/reg-ia64.dat: New file.
11035 * regformats/reg-m68k.dat: New file.
11036 * regformats/reg-mips.dat: New file.
11037 * regformats/reg-ppc.dat: New file.
11038 * regformats/reg-sh.dat: New file.
11039 * regformats/regdef.h: New file.
11040 * regformats/regdat.sh: New file.
11041
11042 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
11043
11044 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
11045 (arm_frame_args_address, arm_frame_locals_address): New functions.
11046 (arm_frame_num_args): New function.
11047 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
11048 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
11049 (FRMA_NUM_ARGS): Call arm_frame_num_args.
11050
11051 2002-01-31 Michael Snyder <msnyder@redhat.com>
11052
11053 * breakpoint.c (break_at_finish_command): Export.
11054 (break_at_finish_at_depth_command): Export.
11055 (tbreak_at_finish_command): Export.
11056 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
11057 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
11058 "txbreak" commands, which are HPPA specific.
11059
11060 * printcmd.c (disassemble_command): Remove an ancient
11061 artifact of an old merge.
11062
11063 * symfile.h (enum overlay_debugging_state):
11064 Define enum constant values for overlay mode.
11065 * symfile.c (overlay_debugging): Use enums instead of literals.
11066 (overlay_is_mapped, overlay_auto_command,
11067 overlay_manual_command): Ditto.
11068
11069 * breakpoint.c (insert_breakpoints, remove_breakpoint,
11070 breakpoint_here_p, breakpoint_inserted_here_p,
11071 breakpoint_thread_match, bpstat_stop_status,
11072 describe_other_breakpoints, check_duplicates, clear_command):
11073 Coding standard fixes.
11074
11075 * target.c (target_xfer_memory): Add spaces, coding standard.
11076 (do_xfer_memory): Add missing line to trust-readonly
11077 code: check bfd SEC_READONLY flag for section.
11078
11079 2002-01-31 Andrew Cagney <ac131313@redhat.com>
11080
11081 * PROBLEMS: Fix typo, 5.1->5.1.1.
11082
11083 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
11084
11085 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
11086 data symbols, since we search based on textlow and texthigh.
11087 (find_pc_sect_symtab): Likewise.
11088
11089 2002-01-30 Andrew Cagney <ac131313@redhat.com>
11090
11091 * defs.h (vwarning): Declare.
11092 * utils.c (vwarning): New function.
11093 (warning): Call vwarning.
11094 (warning_begin): Delete function.
11095
11096 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
11097 the warning message.
11098 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
11099 warning_begin.
11100
11101 2002-01-30 Michael Snyder <msnyder@redhat.com>
11102
11103 * NEWS: Mention "set trust-readonly-sections" command.
11104 Mention generate-core-file command.
11105
11106 2002-01-15 Michael Snyder <msnyder@redhat.com>
11107
11108 * target.c: New command, "set trust-readonly-sections on".
11109 (do_xfer_memory): Honor the suggestion to trust readonly sections
11110 by reading them from the object file instead of from the target.
11111 (initialize_targets): Register command "set trust-readonly-sections".
11112
11113 2002-01-29 Andrew Cagney <ac131313@redhat.com>
11114
11115 * parse.c (target_map_name_to_register): Simplify, search regs and
11116 pseudo-regs using a single loop.
11117
11118 2002-01-30 Andrew Cagney <ac131313@redhat.com>
11119
11120 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
11121
11122 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
11123
11124 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
11125 * config/i386/i386v42mp.mh: Add i387-nat.o .
11126 * i386v4-nat.c: Include i387-nat.h.
11127 (supply_fpregset): Use i387_supply_fsave.
11128 (fill_fpregset): Use i387_fill_fsave.
11129
11130 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
11131
11132 * arm-tdep.c (arm_call_dummy_words): Define.
11133 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
11134 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
11135 (CALL_DUMMY_WORDS): Define.
11136 (arm_call_dummy_words): Declare.
11137 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
11138 (arm_linux_call_dummy_words): Declare.
11139
11140 2002-01-30 Andreas Schwab <schwab@suse.de>
11141
11142 * m68klinux-nat.c: Fix last change to use regcache_collect
11143 instead of referencing registers[] directly.
11144
11145 2002-01-29 Andrew Cagney <ac131313@redhat.com>
11146
11147 * parse.c (target_map_name_to_register): Delete code wrapped in
11148 #ifdef REGISTER_NAME_ALIAS_HOOK.
11149
11150 2002-01-28 Michael Snyder <msnyder@redhat.com>
11151
11152 * regcache.c (legacy_read_register_gen): Need to be able to
11153 read pseudo-register as well as real register.
11154 (legacy_write_register_gen): Ditto.
11155
11156 2002-01-28 Andrew Cagney <ac131313@redhat.com>
11157
11158 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
11159 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
11160 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
11161 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
11162 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
11163 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
11164 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
11165 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
11166 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
11167 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
11168 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
11169 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
11170 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
11171 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
11172 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
11173 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
11174 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
11175 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
11176 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
11177 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
11178
11179 2002-01-28 Andrew Cagney <ac131313@redhat.com>
11180
11181 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
11182 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
11183 (initialize_current_architecture): Update target_byte_order using
11184 information from BFD.
11185 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
11186 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
11187
11188 2002-01-28 Andrew Cagney <ac131313@redhat.com>
11189
11190 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
11191 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
11192
11193 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
11194 #ifdef INVALID_FLOAT.
11195 * infcmd.c (do_registers_info): Ditto.
11196 * values.c (unpack_double): Ditto. Add comment.
11197
11198 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
11199 already commented out.
11200
11201 2002-01-26 Andreas Schwab <schwab@suse.de>
11202
11203 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
11204 * m68klinux-nat.c: Update ptrace interface for fetching/storing
11205 registers and add support for PTRACE_GETREGS.
11206
11207 2002-01-24 Andrew Cagney <ac131313@redhat.com>
11208
11209 GDB 5.1.1 released from 5.1 branch.
11210 * NEWS: Add 5.1.1 news.
11211 * README: Sync with 5.1 branch.
11212
11213 2002-01-23 Fred Fish <fnf@redhat.com>
11214
11215 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
11216 stabstring on initial malloc. Reallocing will copy it for us,
11217 if necessary.
11218
11219 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
11220
11221 * Makefile.in (hpread_h): Delete.
11222 (HFILES_NO_SRCDIR): Remove hpread.h.
11223 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
11224 (hpread.o): Update dependencies.
11225 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
11226
11227 * hp-psymtab-read.c: Remove file.
11228 * hp-symtab-read.c: Remove file.
11229 * hpread.h: Remove file.
11230
11231 * hpread.c: Merge all contents of hp-psymtab-read.c,
11232 hp-symtab-read.c and hpread.h into this file, as it was prior to
11233 January 1999.
11234
11235 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
11236 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
11237 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
11238 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
11239
11240 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
11241
11242 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
11243 fill_gregset): Call gdbarch_tdep() just once, assign result to
11244 variable and use that, instead of calling the function several
11245 times.
11246
11247 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
11248
11249 * configure.host: Accept sparcv9 as alias for sparc64.
11250 * configure.tgt: Likewise.
11251
11252 2002-01-22 Kevin Buettner <kevinb@redhat.com>
11253
11254 * solib-aix5.c (build_so_list_from_mapfile)
11255 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
11256 arguments is not reversed.
11257 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
11258 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
11259
11260 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
11261
11262 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
11263 modified version of obsolete sh_fetch_pseudo_register.
11264 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
11265 (sh4_register_read): New function.
11266 (sh_pseudo_register_write): New function. Renamed and modified
11267 version of obsolete sh_store_pseudo_register.
11268 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
11269 (sh4_register_write): New function.
11270 (sh_gdbarch_init): Remove setting of gdbarch function
11271 fetch_pseudo_register and store_pseudo_register. Remove setting of
11272 register_convert_to_raw, register_convert_to_virtual,
11273 register_convertible.
11274 (sh_sh4_register_convertible): Delete. No longer needed. All is
11275 taken care by architecture specific functions
11276 register_read/register_write.
11277 (sh_sh4_register_convert_to_virtual): Make static.
11278 (sh_sh4_register_convert_to_raw): Ditto.
11279
11280 2002-01-22 Andrew Cagney <ac131313@redhat.com>
11281
11282 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
11283 (floatformat_is_nan, floatformat_mantissa): Ditto.
11284
11285 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
11286 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
11287 builtin_type_ieee_double_little,
11288 builtin_type_ieee_double_littlebyte_bigword,
11289 builtin_type_m68881_ext, builtin_type_i960_ext,
11290 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
11291 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
11292 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
11293 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
11294
11295 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
11296
11297 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
11298 parameter. Set frameless flag if it exists and depended of
11299 whether the scanned function is frameless or not.
11300 (xstormy16_skip_prologue): If function is frameless, return
11301 result of xstormy16_scan_prologue().
11302 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
11303 call.
11304
11305 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
11306
11307 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
11308 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
11309 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
11310 sh_sh4_register_byte, sh_sh4_register_raw_size,
11311 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
11312 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
11313 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
11314 sh_store_pseudo_register, sh_do_pseudo_register): Call
11315 gdbarch_tdep() just once, assign result to variable and use that,
11316 instead of calling the function several times.
11317
11318 2002-01-20 Mark Kettenis <kettenis@gnu.org>
11319
11320 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
11321 macros instead of LAST_FPU_CTRL_REGNUM.
11322 (store_register): Likewise.
11323
11324 2002-01-21 Jim Blandy <jimb@redhat.com>
11325
11326 * infcmd.c (run_command): Check that the `exec' target layer's BFD
11327 is up-to-date before running the program, not just when a program
11328 exits.
11329
11330 2002-01-21 Fred Fish <fnf@redhat.com>
11331
11332 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
11333 when we have found all instructions we are looking for.
11334
11335 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
11336
11337 * arm-tdep.c (arm_register_name): New function.
11338 (arm_registers_names): Make static.
11339 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
11340 (arm_register_name): Declare.
11341 (REGISTER_NAME): Use it.
11342
11343 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
11344 Kevin Buettner <kevinb@redhat.com>
11345
11346 Convert arm targets to new FRAME interface.
11347 * arm-tdep.c (struct frame_extra_info): Remove fsr.
11348 (arm_frame_find_save_regs): Delete.
11349 (arm_frame_init_saved_regs): New.
11350 (arm_init_extra_frame_info): Alloacte saved_regs as required.
11351 Allocate extra_info as required. Convert all uses of fsr.regs
11352 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
11353 to use extra_info.
11354 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
11355 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
11356 (check_prologue_cache, save_prologue_cache): Likewise.
11357 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
11358 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
11359 (FRAME_FIND_SAVED_REGS): Delete.
11360 (arm_frame_find_saved_regs): Delete prototype.
11361 (arm_frame_init_saved_regs): New prototype.
11362 (FRAME_INIT_SAVED_REGS): Define.
11363
11364 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11365
11366 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
11367
11368 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11369
11370 From Jeff Law <law@redhat.com>:
11371 * infttrace.c: Include <sys/pstat.h>.
11372 (child_pid_to_exec_file): Revamp. Use pstat call to get the
11373 exec file if the ttrace equivalent fails.
11374
11375 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11376
11377 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
11378 (closeLogFile): Ditto.
11379
11380 2002-01-20 Michael Chastain <mec@shout.net>
11381
11382 * top.c (print_gdb_version): Bump copyright year to 2002.
11383
11384 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11385
11386 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
11387 Zannoni and Eli Zaretskii.
11388
11389 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
11390
11391 * buildsym.c: Update copyright years.
11392 * c-typeprint.c: Likewise.
11393 * dwarf2read.c: Likewise.
11394 * f-typeprint.c: Likewise.
11395 * gdbtypes.c: Likewise.
11396 * gdbtypes.h: Likewise.
11397 * hp-symtab-read.c: Likewise.
11398 * hpread.c: Likewise.
11399 * mdebugread.c: Likewise.
11400 * p-typeprint.c: Likewise.
11401
11402 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11403
11404 * remote-sim.c (gdbsim_open): Simplify code testing the macro
11405 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
11406 byte-order selectable.
11407 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
11408 * arch-utils.c: Ditto.
11409 (set_endian): Ditto.
11410 (set_endian_from_file): Ditto.
11411 * gdbserver/low-sim.c (create_inferior): Ditto.
11412 * gdbarch.sh: Ditto.
11413 * gdbarch.h: Re-generate.
11414 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11415 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
11416 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
11417 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11418 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11419 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11420 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
11421 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
11422 macro definition.
11423 * config/mips/tm-wince.h: Remove #undef of macro
11424 TARGET_BYTE_ORDER_SELECTABLE.
11425 * config/sh/tm-wince.h: Ditto.
11426
11427 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
11428
11429 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
11430 member function fields. Add accessor macro
11431 TYPE_FN_FIELD_ARTIFICIAL.
11432 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
11433 * c-typeprint.c (c_type_print_base): Skip artificial member
11434 functions.
11435
11436 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
11437
11438 * f-typeprint.c: Delete unused function f_type_print_args.
11439 * p-typeprint.c: Delete unused function pascal_type_print_args.
11440
11441 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
11442
11443 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
11444 comment. Add ``artificial'' to ``union field_location''.
11445
11446 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
11447
11448 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
11449 * mdebugread.c (parse_symbol): Likewise.
11450 * stabsread.c (define_symbol): Likewise.
11451 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
11452 initializing TYPE_FIELD_BITPOS to n (obsolete).
11453 (hpread_doc_function_type): Likewise.
11454 * hpread.c (hpread_function_type): Likewise.
11455
11456 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11457
11458 * configure.in (host_makefile_frag): Only require a host makefile
11459 fragment when a native build.
11460 * configure: Re-generate.
11461
11462 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11463
11464 * doublest.h (floatformat_from_type): Declare.
11465 * doublest.c (floatformat_from_type): New function.
11466 (convert_typed_floating): Use.
11467
11468 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
11469 call to function floatformat_from_type.
11470
11471 * gdbarch.sh (IEEE_FLOAT): Delete.
11472 * gdbarch.h, gdbarch.c: Re-generate.
11473 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
11474 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
11475 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
11476 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
11477 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
11478 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
11479 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
11480 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
11481 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
11482 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
11483 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
11484 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
11485
11486 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
11487 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
11488 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
11489 * sh-tdep.c (sh_gdbarch_init): Ditto.
11490 * mips-tdep.c (mips_gdbarch_init): Ditto.
11491 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11492 * cris-tdep.c (cris_gdbarch_init): Ditto.
11493
11494 2002-01-20 Jiri Smid <smid@suse.cz>
11495
11496 * configure.host, configure.tgt: Support x86-64.
11497 * NEWS: Note new target x86-64.
11498
11499 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
11500 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
11501 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
11502 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
11503 x86-64-linux-nat.o): Fix dependencies.
11504
11505 2002-01-19 Andrew Cagney <ac131313@redhat.com>
11506
11507 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
11508 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
11509 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
11510 * config/sparc/xm-sun4os4.h: Delete file.
11511 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
11512
11513 2002-01-19 Andrew Cagney <ac131313@redhat.com>
11514
11515 * config/sparc/sparclynx.mh (XM_FILE): Delete.
11516 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
11517 * config/m68k/m68klynx.mh (XM_FILE): Delete.
11518 * config/i386/i386lynx.mh (XM_FILE): Delete.
11519 * config/rs6000/xm-rs6000ly.h: Delete file.
11520 * config/sparc/xm-sparclynx.h: Delete file.
11521 * config/m68k/xm-m68klynx.h: Delete file.
11522 * config/i386/xm-i386lynx.h: Delete file.
11523 * config/xm-lynx.h: Delete file.
11524 * config/djgpp/fnchange.lst: Update.
11525
11526 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11527
11528 * alpha-tdep.c (alpha_register_byte): New function.
11529 (alpha_register_raw_size): Ditto.
11530 (alpha_register_virtual_size): Ditto.
11531 (alpha_skip_prologue_internal): Renamed from
11532 alpha_skip_prologue.
11533 (alpha_skip_prologue): New version that calls
11534 alpha_skip_prologue_internal.
11535 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
11536 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
11537 second argument from alpha_skip_prologue.
11538 (REGISTER_BYTE): Use alpha_register_byte.
11539 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
11540 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
11541 (FRAMELESS_FUNCTION_INVOCATION): Use
11542 generic_frameless_function_invocation_not.
11543 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
11544 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
11545
11546 2002-01-19 Andrew Cagney <ac131313@redhat.com>
11547
11548 * config/mips/xm-news-mips.h: Delete file.
11549 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
11550
11551 * config/m88k/xm-m88k.h: Delete file.
11552 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
11553 * config/m88k/xm-delta88v4.h: Ditto.
11554 * config/m88k/xm-delta88.h: Ditto.
11555
11556 * config/alpha/xm-fbsd.h: Delete file.
11557 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
11558
11559 * config/sparc/xm-sparc.h: Delete file.
11560 * Makefile.in (xm-sun4os4.h): Delete dependency.
11561 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
11562 * config/sparc/xm-sun4os4.h: Ditto.
11563 * config/sparc/xm-linux.h: Ditto.
11564
11565 * config/i386/xm-windows.h: Delete file.
11566
11567 2002-01-19 Andrew Cagney <ac131313@redhat.com>
11568
11569 * utils.c: Include <sys/param.h> for MAXPATHLEN.
11570 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
11571
11572 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11573
11574 * alpha-tdep.c (alpha_call_dummy_words): New.
11575 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
11576 (CALL_DUMMY_P): Define.
11577 (CALL_DUMMY_WORDS): Define.
11578 (SIZEOF_CALL_DUMMY_WORDS): Define.
11579
11580 2002-01-19 Per Bothner <per@bothner.com>
11581
11582 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
11583 isn't NULL, which can happen with some gcj-3.x-produced code.
11584
11585 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11586
11587 * alpha-tdep.c (alpha_register_virtual_type): New function.
11588 (alpha_init_frame_pc_first): Ditto.
11589 (alpha_fix_call_dummy): Ditto.
11590 (alpha_store_struct_return): Ditto.
11591 (alpha_extract_struct_value_address): Ditto.
11592 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
11593 alpha_register_virtual_type.
11594 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
11595 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
11596 alpha_extract_struct_value_address.
11597 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
11598 (INIT_FRAME_PC): Use init_frame_pc_noop.
11599 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
11600
11601 2002-01-19 Mark Kettenis <kettenis@gnu.org>
11602
11603 * i386gnu-nat.c: Include "i386-tdep.h".
11604 (fetch_fpregs): Simplify code dealing with uninitialized floating
11605 point states such that it doesn't require FP7_REGNUM.
11606
11607 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11608
11609 * alpha-tdep.c (frame_extra_info): New.
11610 (alpha_find_saved_regs): Make static. Use
11611 frame->extra_info.
11612 (alpha_frame_init_saved_regs): New function.
11613 (alpha_frame_saved_pc): Use frame->extra_info.
11614 (temp_saved_regs): Don't declare as struct frame_saved_regs.
11615 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
11616 (init_extra_frame_info): Rename to...
11617 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
11618 (alpha_print_extra_frame_info): New function.
11619 (alpha_frame_locals_address): Ditto.
11620 (alpha_frame_args_address): Ditto.
11621 (alpha_pop_frame): Use frame->extra_info.
11622 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
11623 alpha_frame_args_address.
11624 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
11625 (alpha_find_saved_regs): Remove prototype.
11626 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
11627 (EXTRA_FRAME_INFO): Remove.
11628 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
11629 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
11630
11631 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11632
11633 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
11634 (alpha_cannot_fetch_register): Ditto.
11635 (alpha_cannot_store_register): Ditto.
11636 (alpha_register_convertible): Ditto.
11637 (alpha_use_struct_convention): Ditto.
11638 * config/alpha/tm-alpha.h: Update copyright years.
11639 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
11640 (INNER_THAN): Use core_addr_lessthan.
11641 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
11642 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
11643 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
11644 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
11645 (FRAME_CHAIN): Remove unnecessary cast.
11646
11647 2002-01-18 Andrew Cagney <ac131313@redhat.com>
11648
11649 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
11650 obsolete.
11651
11652 2002-01-18 Andrew Cagney <ac131313@redhat.com>
11653
11654 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
11655 * monitor.c, remote-array.c, remote-bug.c: Ditto.
11656 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
11657 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
11658 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
11659 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
11660 * x86-64-linux-nat.c: Ditto.
11661
11662 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11663
11664 * alpha-tdep.c (alpha_register_name): New function.
11665 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
11666 (REGISTER_NAME): Define.
11667
11668 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11669
11670 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
11671
11672 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11673
11674 * alpha-tdep.c: Update copyright years.
11675 (alpha_next_pc): New function.
11676 (alpha_software_single_step): Ditto.
11677 * config/alpha/tm-alpha.h: Add prototype for
11678 alpha_software_single_step.
11679
11680 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11681
11682 * alphabsd-nat.c: Update copyright years.
11683 (fill_gregset): Use regcache_collect.
11684 (fill_fpregset): Likewise.
11685 (fetch_inferior_registers): Only fetch integer registers
11686 if requested to do so.
11687 (store_inferior_registers): Only store integer registers
11688 if requested to do so.
11689
11690 2002-01-17 Andrew Cagney <ac131313@redhat.com>
11691
11692 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
11693 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
11694 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
11695 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
11696 * config/alpha/fbsd.mh (XDEPFILES): Delete.
11697 * config/arm/linux.mh (XDEPFILES): Delete.
11698 * config/arm/nbsd.mh (XDEPFILES): Delete.
11699 * config/i386/i386dgux.mh (XDEPFILES): Delete.
11700 * config/i386/i386sol2.mh (XDEPFILES): Delete.
11701 * config/i386/i386m3.mh (XDEPFILES): Delete.
11702 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
11703 * config/i386/i386gnu.mh (XDEPFILES): Delete.
11704 * config/i386/fbsd.mh (XDEPFILES): Delete.
11705 * config/i386/i386bsd.mh (XDEPFILES): Delete.
11706 * config/i386/i386sco5.mh (XDEPFILES): Delete.
11707 * config/i386/i386v4.mh (XDEPFILES): Delete.
11708 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
11709 * config/i386/i386sco4.mh (XDEPFILES): Delete.
11710 * config/i386/i386aix.mh (XDEPFILES): Delete.
11711 * config/i386/go32.mh (XDEPFILES): Delete.
11712 * config/i386/cygwin.mh (XDEPFILES): Delete.
11713 * config/i386/i386lynx.mh (XDEPFILES): Delete.
11714 * config/i386/i386mach.mh (XDEPFILES): Delete.
11715 * config/i386/i386v32.mh (XDEPFILES): Delete.
11716 * config/i386/linux.mh (XDEPFILES): Delete.
11717 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
11718 * config/i386/ncr3000.mh (XDEPFILES): Delete.
11719 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
11720 * config/i386/i386sco.mh (XDEPFILES): Delete.
11721 * config/i386/i386v.mh (XDEPFILES): Delete.
11722 * config/i386/nbsd.mh (XDEPFILES): Delete.
11723 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
11724 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
11725 * config/i386/symmetry.mh (XDEPFILES): Delete.
11726 * config/i386/obsd.mh (XDEPFILES): Delete.
11727 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
11728 * config/ia64/linux.mh (XDEPFILES): Delete.
11729 * config/ia64/aix.mh (XDEPFILES): Delete.
11730 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
11731 * config/m68k/dpx2.mh (XDEPFILES): Delete.
11732 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
11733 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
11734 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
11735 * config/m68k/linux.mh (XDEPFILES): Delete.
11736 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
11737 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
11738 * config/m68k/nbsd.mh (XDEPFILES): Delete.
11739 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
11740 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
11741 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
11742 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
11743 * config/m88k/delta88.mh (XDEPFILES): Delete.
11744 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
11745 * config/m88k/m88k.mh (XDEPFILES): Delete.
11746 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
11747 * config/mips/linux.mh (XDEPFILES): Delete.
11748 * config/mips/irix6.mh (XDEPFILES): Delete.
11749 * config/mips/irix5.mh (XDEPFILES): Delete.
11750 * config/mips/irix4.mh (XDEPFILES): Delete.
11751 * config/mips/irix3.mh (XDEPFILES): Delete.
11752 * config/mips/decstation.mh (XDEPFILES): Delete.
11753 * config/mips/mipsm3.mh (XDEPFILES): Delete.
11754 (NATDEPFILES): Move core-aout.o to here.
11755 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
11756 * config/pa/hpux1020.mh (XDEPFILES): Delete.
11757 * config/pa/hppabsd.mh (XDEPFILES): Delete.
11758 * config/pa/hppahpux.mh (XDEPFILES): Delete.
11759 * config/pa/hpux11w.mh (XDEPFILES): Delete.
11760 * config/pa/hppaosf.mh (XDEPFILES): Delete.
11761 * config/pa/hpux11.mh (XDEPFILES): Delete.
11762 * config/powerpc/aix.mh (XDEPFILES): Delete.
11763 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
11764 * config/powerpc/linux.mh (XDEPFILES): Delete.
11765 * config/romp/rtbsd.mh: Rename XDEPFILES.
11766 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
11767 * config/rs6000/aix4.mh (XDEPFILES): Delete.
11768 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
11769 * config/s390/s390.mh (XDEPFILES): Delete.
11770 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
11771 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
11772 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
11773 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
11774 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
11775 * config/sparc/nbsd.mh (XDEPFILES): Delete.
11776 * config/sparc/linux.mh (XDEPFILES): Delete.
11777 * config/vax/vaxult.mh (XDEPFILES): Delete.
11778 * config/vax/vaxult2.mh (XDEPFILES): Delete.
11779 * Makefile.in (DEPFILES): Remove XDEPFILES.
11780
11781 2002-01-17 Andrew Cagney <ac131313@redhat.com>
11782
11783 * utils.c (internal_verror): Fix comments, default is yes not no.
11784 Update queries to match. Default to quit and dump core.
11785
11786 2002-01-17 Andrew Cagney <ac131313@redhat.com>
11787
11788 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
11789 copyright.
11790 * defs.h, event-top.c, gdbcmd.h: Ditto.
11791 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
11792 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
11793 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
11794 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
11795 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
11796 * mi/mi-main.c:Ditto.
11797
11798 * stack.c, symfile.c: Update copyright.
11799
11800 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
11801
11802 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
11803 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
11804 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
11805 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
11806
11807 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
11808
11809 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
11810 * gdbserver/low-lynx.c (myattach): Likewise.
11811 * gdbserver/low-nbsd.c (myattach): Likewise.
11812 * gdbserver/low-sim.c (myattach): Likewise.
11813 * gdbserver/low-sparc.c (myattach): Likewise.
11814 * gdbserver/low-sun3.c (myattach): Likewise.
11815
11816 * gdbserver/low-linux.c (myattach): New function.
11817
11818 * gdbserver/server.c (attach_inferior): New function.
11819 (main): Handle "--attach".
11820
11821 2002-01-16 Andrew Cagney <ac131313@redhat.com>
11822
11823 * MAINTAINERS (language support): Daniel Jacobwitz is C++
11824 maintainer.
11825
11826 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
11827
11828 * c-typeprint.c (is_type_conversion_operator): Add additional
11829 check for non-conversion operators.
11830
11831 2002-01-15 Michael Snyder <msnyder@redhat.com>
11832
11833 * linux-proc.c: Add "info proc" command, a la procfs.c.
11834 (read_mapping): New function, abstract and re-use code.
11835 (linux_find_memory_regions): Use new func read_mapping.
11836 (linux_info_proc_cmd): New function, implement "info proc".
11837 (_initialize_linux_proc): Add new command "info proc".
11838
11839 2002-01-15 Michael Snyder <msnyder@redhat.com>
11840
11841 * symfile.c (generic_load): Use bfd_map_over_sections method
11842 instead of manipulating bfd structure members directly.
11843 (add_section_size_callback): New function, bfd sections callback
11844 used by generic_load.
11845 (load_sections_callback): New function, bfd sections callback
11846 used by generic_load.
11847
11848 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
11849
11850 [Based on work by Jim Blandy]
11851 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
11852 (builtin_type_vec128): Export.
11853 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
11854 types.
11855 (builtin_type_vec128): New builtin type for 128 bit vector
11856 registers.
11857 (build_gdbtypes): Initialize builtin_type_v16qi and
11858 builtin_type_v8hi. Create the vec128 register builtin type
11859 structure.
11860 (build_builtin_type_vec128): New function.
11861 (_initialize_gdbtypes): Register builtin_type_v16qi and
11862 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
11863 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
11864 AltiVec register to new builtin type.
11865
11866 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
11867
11868 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
11869 to make_cv_type.
11870
11871 2002-01-14 Andrew Cagney <ac131313@redhat.com>
11872
11873 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
11874 CLEAN_UP_REGISTER_VALUE.
11875 * regcache.c (supply_register): Update only call.
11876
11877 2002-01-14 Andrew Cagney <ac131313@redhat.com>
11878
11879 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
11880 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
11881 a29k-*-vxworks* targets as obsolete.
11882
11883 2002-01-14 Michael Snyder <msnyder@redhat.com>
11884
11885 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
11886 until we can resolve portability issues.
11887 * gregset.h: Remove references to fpxregs.
11888 * gcore.c (gcore_command): Initialize note_sec to NULL.
11889
11890 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11891
11892 * signals.c (target_signal_to_name): Rewrite. Only use
11893 signals[].name when in bounds and non-NULL.
11894
11895 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11896
11897 From Petr Ledvina <ledvinap@kae.zcu.cz>:
11898 * signals.c (target_signal_to_name): Verify that SIG is within the
11899 bounds of the signals array.
11900
11901 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11902
11903 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
11904
11905 2002-01-13 Keith Seitz <keiths@redhat.com>
11906
11907 * stack.c (print_frame_info_base): Print the frame's pc
11908 only if when print_frame_info_listing_hook is not defined.
11909
11910 2002-01-13 Keith Seitz <keiths@redhat.com>
11911
11912 * varobj.c (varobj_set_value): Make sure that there were no
11913 errors evaluating the object before attempting to set its
11914 value.
11915 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
11916 so this offset adjustment is no longer necessary.
11917 (create_child): Don't set the error flag if the child is
11918 a CPLUS_FAKE_CHILD.
11919 (value_of_child): If value_fetch_lazy fails, return NULL
11920 so that callers will be notified that an error occurred.
11921 (c_value_of_variable): Delay check of variable's validity
11922 until later. We actually want all structs and unions to have
11923 the value "{...}".
11924 Do not return "???" for variables which could not be evaluated.
11925 This error condition must be returned to the caller so that it
11926 can get the error condition from gdb.
11927 (cplus_name_of_child): Adjust index for vptr before figuring
11928 out the name of the child.
11929 (cplus_value_of_child): If a child's (real) parent is not valid,
11930 don't even bother trying to give a value for it. Just return
11931 an error. Change all instances in this function.
11932 (cplus_type_of_child): If our parent is one of the "fake"
11933 parents, we need to get at the type of the real parent, and
11934 derive the child's true type using this information.
11935
11936 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11937
11938 From 2002-01-09 John Marshall <johnm@falch.net>:
11939 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
11940 sources.redhat.com, and tweak some related URLs which had
11941 suffered from linkrot.
11942
11943 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11944
11945 From Jeff law:
11946 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
11947 structures passed in registers.
11948
11949 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
11950
11951 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
11952 white space which prevented compilation. Reported by DSK
11953 <dsk@student.unsw.edu.au>.
11954
11955 2002-01-11 Michael Snyder <msnyder@redhat.com>
11956
11957 * symfile.c (build_section_addr_info_from_section_tab):
11958 Use bfd access method instead of manipulating bfd directly.
11959 (syms_from_objfile): Ditto.
11960 (simple_overlay_update_1): Ditto.
11961 (simple_overlay_update): Ditto.
11962 (generic_load): Ditto.
11963 (overlay_unmapped_address): FIXME comment, bfd access methods.
11964 (sections_overlap): FIXME comment, bfd access methods.
11965 (pc_in_mapped_range): FIXME comment, bfd access methods.
11966 (pc_in_unmapped_range): FIXME comment, bfd access methods.
11967 (section_is_mapped): FIXME comment, bfd access methods.
11968 (section_is_overlay): FIXME comment, bfd access methods.
11969
11970 * symfile.c (generic_load): Whitespace and long line cleanups.
11971 Remove duplicate variable, change several local variables to
11972 more appropriate data types.
11973 (print_transfer_performance): Use %lu instead of %ld for ulongs.
11974
11975 2002-01-12 Andrew Cagney <ac131313@redhat.com>
11976
11977 From Peter Schauer:
11978 * language.c (longest_local_hex_string_custom): Use phex_nz to
11979 convert NUM to a hex string.
11980
11981 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
11982
11983 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
11984 the function.
11985 Update Copyright year.
11986
11987 2002-01-12 Andrew Cagney <ac131313@redhat.com>
11988
11989 * language.c (longest_raw_hex_string): Delete unused function.
11990
11991 2002-01-11 Petr Sorfa <petrs@caldera.com>
11992
11993 * MAINTAINERS (write-after-approval): Add myself.
11994 * dwarf2read.c (read_tag_string_type): Handling of
11995 DW_AT_byte_size.
11996 (read_tag_string_type): FORTRAN fix to prevent propagation of
11997 first string size.
11998 (set_cu_language): Handling of DW_LANG_Fortran95
11999
12000 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
12001
12002 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
12003 GETPID(inferior_ptid).
12004 (store_inferior_registers): Likewise.
12005
12006 2002-01-10 Jason Merrill <jason@redhat.com>
12007
12008 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
12009 Fix DW_OP_minus.
12010
12011 2002-01-10 Andrew Cagney <ac131313@redhat.com>
12012
12013 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
12014 and bfd/elf32-sh-nbsd.c.
12015
12016 2002-01-10 Michael Snyder <msnyder@redhat.com>
12017
12018 * NEWS: Mention --pid and corefile/proc-id behavior change.
12019
12020 * Makefile.in: Add rules for gcore.o and linux-proc.o.
12021 * gcore.c: Include cli/cli-decode.h instead of command.h.
12022
12023 * main.c (captured_main): Add new command line option "--pid".
12024 If the second command line argument (following the symbol-file)
12025 begins with a digit, try to attach to it before trying to open
12026 it as a corefile.
12027 (print_gdb_help): Document the "--pid" argument.
12028
12029 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
12030
12031 * completer.c (command_completer): New function.
12032
12033 * completer.h <command_completer>: Add prototype.
12034
12035 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
12036 completer for the "help" command.
12037
12038 2002-01-09 Jason Merrill <jason@redhat.com>
12039
12040 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
12041
12042 2002-01-09 Michael Snyder <msnyder@redhat.com>
12043
12044 * i386-linux-nat.c (fill_fpxregset): Make global.
12045 (store_fpxregset): Ditto.
12046
12047 * gregset.h (gdb_fpxregset_t): Define.
12048 (supply_fpxregset): Prototype.
12049 (fill_fpxregset): Prototype.
12050
12051 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
12052
12053 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
12054
12055 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
12056 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
12057 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
12058
12059 2002-01-09 Andrew Cagney <ac131313@redhat.com>
12060
12061 * MAINTAINERS: Update target maintainer rules so that any
12062 Maintainer can approve a tested patch for a maintenance-only
12063 target.
12064
12065 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
12066
12067 * MAINTAINERS (write-after-approval): Add myself.
12068
12069 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
12070 IN_SIGTRAMP.
12071
12072 2002-01-08 Michael Snyder <msnyder@redhat.com>
12073
12074 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
12075 real name of the executable, rather than the /proc name.
12076
12077 2002-01-03 Michael Snyder <msnyder@redhat.com>
12078
12079 Implement a "generate-core-file" command in gdb, save target state.
12080 * gcore.c: New file. Implement new command 'generate-core-file'.
12081 Save a corefile image of the current state of the inferior.
12082 * linux-proc.c: Add linux-specific code for saving corefiles.
12083 * target.h (struct target_ops): Add new target vectors for saving
12084 corefiles; to_find_memory_regions and to_make_corefile_notes.
12085 (target_find_memory_regions): New macro.
12086 (target_make_corefile_notes): New macro.
12087 * target.c (update_current_target): Inherit new target methods.
12088 (dummy_find_memory_regions): New place-holder method.
12089 (dummy_make_corefile_notes): New place-holder method.
12090 (init_dummy_target): Initialize new dummy target vectors.
12091 * exec.c (exec_set_find_memory_regions): New function.
12092 Allow the exec_ops vector for memory regions to be taken over.
12093 (exec_make_note_section): New function, target vector method.
12094 * defs.h (exec_set_find_memory_regions): Export prototype.
12095 * procfs.c (proc_find_memory_regions): New function, corefile method.
12096 (procfs_make_note_section): New function, corefile method.
12097 (init_procfs_ops): Set new target vector pointers.
12098 (find_memory_regions_callback): New function.
12099 (procfs_do_thread_registers): New function.
12100 (procfs_corefile_thread_callback): New function.
12101 * sol-thread.c (sol_find_memory_regions): New function.
12102 (sol_make_note_section): New function.
12103 (init_sol_thread_ops): Initialize new target vectors.
12104 * inftarg.c (inftarg_set_find_memory_regions): New function.
12105 Allow to_find_memory_regions vector to be taken over.
12106 (inftarg_set_make_corefile_notes): New function.
12107 Allow to_make_corefile_notes vector to be taken over.
12108 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
12109 interface layer if not target_has_execution (may be a corefile).
12110 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
12111 * config/sparc/sun4sol2.mh: Ditto.
12112 * config/alpha/alpha-linux.mh: Ditto.
12113 * config/arm/linux.mh: Ditto.
12114 * config/i386/x86-64linux.mh: Ditto.
12115 * config/ia64/linux.mh: Ditto.
12116 * config/m68k/linux.mh: Ditto.
12117 * config/mips/linux.mh: Ditto.
12118 * config/powerpc/linux.mh: Ditto.
12119 * config/sparc/linux.mh: Ditto.
12120
12121 2002-01-07 Michael Snyder <msnyder@redhat.com>
12122
12123 * arm-linux-nat.c: Remove references to regcache.c internal data
12124 (registers[] and register_valid[]).
12125
12126 2002-01-07 Michael Snyder <msnyder@redhat.com>
12127
12128 * linux-proc.c: New file. Implement child_pid_to_exec_file,
12129 so that attaching to a pid will automatically read the process's
12130 symbol file and shlibs.
12131 * Makefile.in: Add rule for linux-proc.o.
12132 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
12133 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
12134 * config/arm/linux.mh: Ditto.
12135 * config/i386/linux.mh: Ditto.
12136 * config/i386/x86-64linux.mh: Ditto.
12137 * config/ia64/linux.mh: Ditto.
12138 * config/m68k/linux.mh: Ditto.
12139 * config/mips/linux.mh: Ditto.
12140 * config/powerpc/linux.mh: Ditto.
12141 * config/sparc/linux.mh: Ditto.
12142
12143 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
12144
12145 * win32-nat.c: Add i386-tdep.h dependency.
12146
12147 2002-01-07 Michael Snyder <msnyder@redhat.com>
12148
12149 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
12150 instead of bfd_get_arch_size. Don't bail out just because
12151 there's no exec_bfd.
12152
12153 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
12154 * p-valprint.c (pascal_object_print_value): Ditto.
12155 * somread.c (som_symtab_read): Ditto.
12156 * symfile.c (simple_free_overlay_region_table): Ditto.
12157 * valops.c (value_assign): Ditto.
12158
12159 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
12160 use tilde_expand and strerror for opening save-tracepoints file.
12161
12162 * thread-db.c (thread_db_new_objfile): Indendation fix.
12163
12164 * infptrace.c (GDB_MAX_ALLOCA): New define.
12165 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
12166 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
12167 can be overridden with whatever value is appropriate to the host).
12168 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
12169 alloca to allocate potentially large buffer.
12170 * rs6000-nat.c (child_xfer_memory): Ditto.
12171 * symm-nat.c (child_xfer_memory): Ditto.
12172 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
12173
12174 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
12175
12176 From Nick Clifton <nickc@redhat.com>
12177 * d10v-tdep.c: Set STACK_START to 0x200bffe.
12178
12179 2002-01-07 Michael Snyder <msnyder@redhat.com>
12180
12181 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
12182 Don't use exec_bfd if it's NULL.
12183
12184 2002-01-06 Mark Kettenis <kettenis@gnu.org>
12185
12186 * valops.c (value_arg_coerce): Fix formatting.
12187
12188 2002-01-06 Andrew Cagney <ac131313@redhat.com>
12189
12190 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
12191 * gnu-nat.c: Ditto.
12192
12193 2002-01-06 Andrew Cagney <ac131313@redhat.com>
12194
12195 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
12196 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
12197 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
12198 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
12199 z8k-coff have not been multi-arched. Update z8k-coff build
12200 status.
12201
12202 2002-01-06 Andrew Cagney <ac131313@redhat.com>
12203
12204 * MAINTAINERS: Mark a29k target as obsolete.
12205 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
12206 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
12207 comments.
12208 * NEWS: Note that a29k targets are obsolete.
12209 * a29k-tdep.c: Mark as obsolete.
12210 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
12211 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
12212 a29k-*-vxworks* targets as obsolete.
12213 * remote-adapt.c: Obsolete.
12214 * remote-eb.c: Obsolete.
12215 * remote-mm.c: Obsolete.
12216 * remote-udi.c: Obsolete.
12217 * config/a29k/a29k-udi.mt: Obsolete.
12218 * config/a29k/a29k.mt: Obsolete.
12219 * config/a29k/tm-a29k.h: Obsolete.
12220 * config/a29k/tm-vx29k.h: Obsolete.
12221 * config/a29k/vx29k.mt: Obsolete.
12222
12223 2002-01-05 Andrew Cagney <ac131313@redhat.com>
12224
12225 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
12226 with BFD_ENDIAN_BIG.
12227
12228 2002-01-05 Andrew Cagney <ac131313@redhat.com>
12229
12230 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
12231 * configure, config.in: Re-generate.
12232 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
12233 * defs.h: Do not include <endian.h>.
12234
12235 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
12236
12237 * acconfig.h (HAVE_PT_GETXMMREGS): New.
12238 * config.in: Regenerate.
12239 * configure.in: Update copyright years.
12240 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
12241 * configure: Regenerate.
12242 * i386bsd-nat.c: Update copyright years.
12243 (fill_gregset): Use regcache_collect.
12244 (fetch_inferior_registers): Only fetch integer registers
12245 if requested to do so. Add support for XMM registers
12246 using PT_GETXMMREGS.
12247 (store_inferior_registers): Only store integer registers
12248 if requested to do so. Add support for XMM registers
12249 using PT_SETXMMREGS.
12250 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
12251 (store_inferior_registers): Remove.
12252 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
12253 (fetch_elfcore_registers): New function.
12254 (i386nbsd_elfcore_fns): New.
12255 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
12256 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
12257 i386bsd-nat.o.
12258 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
12259 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
12260 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
12261 * config/i386/tm-nbsd.h: Update copyright years.
12262 (HAVE_SSE_REGS): Define.
12263 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
12264 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
12265 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
12266 (SIGCONTEXT_PC_OFFSET): Remove.
12267 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
12268
12269 2002-01-05 Andrew Cagney <ac131313@redhat.com>
12270
12271 * configure.tgt: Remove powerpc-*-macos* target.
12272 * config/m68k/xm-mpw.h: Delete file.
12273 * config/xm-mpw.h: Delete file.
12274 * ser-mac.c: Delete file.
12275 * mpw-make.sed: Delete file.
12276 * mpw-config.in: Delete file.
12277 * mac-xdep.c: Delete file.
12278 * mac-gdb.r: Delete file.
12279 * mac-defs.h: Delete file.
12280 * mac-nat.c: Delete file.
12281 * config/powerpc/macos.mh: Delete file.
12282 * config/powerpc/macos.mt: Delete file.
12283 * config/powerpc/nm-macos.h: Delete file.
12284 * config/powerpc/tm-macos.h: Delete file.
12285 * source.c (openp, open_source_file): Remove obsolete code.
12286 * top.c (gdb_readline): Ditto.
12287 * utils.c (query): Ditto.
12288 * event-top.c (display_gdb_prompt): Ditto.
12289 * Makefile.in (ser-mac.o): Delete obsolete target.
12290 * NEWS: Update.
12291
12292 2002-01-04 Andrew Cagney <ac131313@redhat.com>
12293
12294 * defs.h (BIG_ENDIAN): Delete macro definition.
12295 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
12296 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
12297 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
12298 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
12299 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
12300 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
12301 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
12302 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
12303 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
12304 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
12305 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
12306 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
12307 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
12308 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
12309 * gdbarch.c: Re-generate.
12310
12311 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
12312
12313 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
12314 for core files.
12315
12316 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
12317
12318 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
12319
12320 2002-01-04 Andrew Cagney <ac131313@redhat.com>
12321
12322 * value.h (value_ptr): Delete typedef.
12323
12324 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
12325
12326 * i386nbsd-nat.c: Update copyright years.
12327 Include i386-tdep.h.
12328
12329 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
12330
12331 * stabsread.c: Update copyright years.
12332
12333 From Debashis Mahata <debashis.mahata@wipro.com>:
12334 (read_struct_fields): Deal with Sun C compiler erroneous stab
12335 output for structs and unions.
12336 Fix PR gdb/269.
12337
12338 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
12339
12340 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
12341 prototype.
12342
12343 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
12344
12345 * cp-abi.c: Fix whitespace.
12346 (baseclass_offset): New wrapper function.
12347 * cp-abi.h (baseclass_offset): Add prototype.
12348 (struct cp_abi_ops): Add baseclass_offset pointer.
12349
12350 * valops.c (vb_match): Move to...
12351 * gnu-v2-abi.c (vb_match): here.
12352 * valops.c (baseclass_offset): Move to...
12353 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
12354
12355 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
12356
12357 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
12358 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
12359 * hpacc-abi.c (init_hpacc_ops): Likewise.
12360
12361 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
12362
12363 * valops.c (find_overload_match): Accept obj as a
12364 reference parameter. Update it before returning.
12365 * value.h (find_overload_match): Update prototype.
12366 * eval.c (evaluate_subexp_standard): Pass object to
12367 find_overload_match by reference.
12368
12369 2002-01-03 Andrew Cagney <ac131313@redhat.com>
12370
12371 * valarith.c: Replace value_ptr with struct value pointer. Remove
12372 register attribute from value declarations.
12373 * valops.c: Ditto.
12374 * value.h: Ditto.
12375 * scm-lang.c (scm_lookup_name): Ditto.
12376
12377 2002-01-03 Michael Snyder <msnyder@redhat.com>
12378
12379 Abstract the functionality of iterating over mapped memory
12380 regions into a general purpose iterator function.
12381 * procfs.c (iterate_over_mappings): New function, general purpose
12382 iterator for memory sections.
12383 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
12384 (solib_mappings_callback): New function, callback for above.
12385 (info_proc_mappings): Reimpliment using iterate_over_mappings.
12386 (info_mappings_callback): New function, callback for above.
12387
12388 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
12389
12390 2002-01-01 Mark Kettenis <kettenis@gnu.org>
12391
12392 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
12393 * i386-tdep.c: Include "elf-bfd.h".
12394 (process_note_abi_tag_sections): New function.
12395 (i386_gdbarch_init): Add code to recognize various OS/ABI
12396 combinations.
12397
12398 * maint.c (_initialize_maint_cmds): Add missing \ in
12399 string-literal.
12400
12401 For older changes see ChangeLog-2001
12402 \f
12403 Local Variables:
12404 mode: change-log
12405 left-margin: 8
12406 fill-column: 74
12407 version-control: never
12408 End: