2002-11-02 Andrew Cagney <ac131313@redhat.com>
[binutils-gdb.git] / gdb / ChangeLog
1 2002-11-02 Andrew Cagney <ac131313@redhat.com>
2
3 * regcache.h: Add coment indicating replacements for deprecated
4 functions.
5
6 2002-11-02 Andrew Cagney <cagney@redhat.com>
7
8 * reggroups.h, reggroups.c: New files.
9 * regcache.c: Include "reggroups.h".
10 (enum regcache_dump_what): Add `regcache_dump_groups'.
11 (regcache_dump): Contract size of the "Type" column. When
12 specified, dump the register's groups.
13 (maintenance_print_register_groups): New function.
14 (_initialize_regcache): Add command `maint print register-groups'.
15 * Makefile.in (COMMON_OBS): Add reggroups.o
16 (SFILES): Add reggroups.c.
17 (reggroups_h): Define.
18 (regcache.o, gdbarch.o): Update dependencies.
19 (reggroups.o): Specify dependencies.
20 * gdbarch.sh (register_reggroup_p): Add pure multi-arch method.
21 Add opaque declaration for `struct reggroup' in generated .h file.
22 Include "reggroups.h" in generated .c file.
23 gdbarch.h, gdbarch.c: Re-generate.
24
25 2002-11-02 Andrew Cagney <cagney@redhat.com>
26
27 * regcache.h (deprecated_read_register_gen): Rename
28 read_register_gen.
29 (deprecated_write_register_gen): Rename write_register_gen.
30 * i387-tdep.c: Update.
31 * x86-64-linux-nat.c: Update
32 * wince.c: Update.
33 * thread-db.c: Update.
34 * win32-nat.c: Update.
35 * mips-tdep.c: Update.
36 * d10v-tdep.c: Update.
37 * cris-tdep.c: Update.
38 * remote-sim.c: Update.
39 * remote-rdi.c: Update.
40 * remote-rdp.c: Update.
41 * frame.c: Update.
42 * target.c: Update.
43 * blockframe.c: Update.
44 * x86-64-tdep.c: Update.
45 * xstormy16-tdep.c: Update.
46 * sh-tdep.c: Update.
47 * s390-tdep.c: Update.
48 * rs6000-tdep.c: Update.
49 * sparc-tdep.c: Update.
50 * i386-tdep.c: Update.
51 * dwarf2cfi.c: Update.
52 * regcache.c: Update.
53
54 2002-11-01 Joel Brobecker <brobecker@gnat.com>
55
56 New interix-specific files:
57 * config/i386/nm-interix.h: New file.
58 * config/i386/interix.mh: New file.
59 * config/i386/interix.mt: New file.
60 * i386-interix-nat.c: New file.
61 * i386-interix-tdep.c: New file.
62
63 2002-11-01 Andrew Cagney <cagney@redhat.com>
64
65 * frame.h (deprecated_generic_get_saved_register): Rename
66 generic_get_saved_register.
67 * blockframe.c (deprecated_generic_get_saved_register): Update.
68 * xstormy16-tdep.c (xstormy16_get_saved_register): Update.
69 (xstormy16_frame_saved_register): Update.
70 * sh-tdep.c (sh_gdbarch_init): Update.
71 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
72 * ia64-tdep.c (ia64_get_saved_register): Update.
73 * cris-tdep.c (cris_gdbarch_init): Update.
74 * config/m32r/tm-m32r.h (GET_SAVED_REGISTER): Update.
75 * arm-tdep.c (arm_gdbarch_init): Update.
76
77 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
78
79 * lin-lwp.c (lin_lwp_resume): Remove resume_all test for !step.
80
81 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
82
83 * i386-linux-tdep.c (i386_linux_pc_in_sigtramp): Check for
84 trampolines in sigaction.
85
86 2002-10-31 Andrew Cagney <cagney@redhat.com>
87
88 * h8300-tdep.c: Include "gdb_assert.h".
89 (h8300_print_register): Add gdbarch, file and frame parameters.
90 Use frame_read_unsigned_register to read the register's value.
91 Use fprintf_filtered to display output.
92 (h8300_print_registers_info): Replace h8300_do_registers_info.
93 (h8300_gdbarch_init): Set print_registers_info.
94
95 2002-10-31 Andrew Cagney <cagney@redhat.com>
96
97 * frame.c (frame_read_unsigned_register): New function.
98 (frame_read_signed_register): New function.
99 * frame.h (frame_read_unsigned_register): Declare.
100 (frame_read_signed_register): Declare.
101
102 2002-10-31 Andrew Cagney <cagney@redhat.com>
103
104 * h8500-tdep.c (h8500_print_registers_info): New static function,
105 clone of infcmd.c's default_print_registers_info.
106 (h8500_do_registers_info): New funtion.
107 (h8500_print_register_hook): Rename print_register_hook, make
108 static.
109
110 * config/h8500/tm-h8500.h: Update copyright.
111 (DEPRECATED_DO_REGISTERS_INFO): Define.
112 (h8500_do_registers_info: Declare.
113 (PRINT_REGISTER_HOOK): Delete macro.
114 (print_register_hook): Delete function.
115
116 2002-10-31 Andrew Cagney <cagney@redhat.com>
117
118 * z8k-tdep.c (z8k_print_register_hook): Make static.
119 (z8k_print_registers_info): New static function, clone of
120 infcmd.c's default_print_registers_info.
121 (z8k_do_registers_info): New function. Wrap
122 z8k_print_registers_info.
123 * config/z8k/tm-z8k.h: Update copyright.
124 (PRINT_REGISTER_HOOK): Delete macro.
125 (z8k_print_register_hook): Delete declaration.
126 (DEPRECATED_DO_REGISTERS_INFO): Define.
127 (z8k_do_registers_info): Declare.
128
129 2002-10-30 Joel Brobecker <brobecker@gnat.com>
130
131 * hppa-tdep.c (find_function_in_inferior): Remove this extern,
132 as this is already provided by value.h, and was actually causing
133 a compilation error because of a conflict in parameter type
134 declaration due to a missing const keyword.
135 (low_text_segment_addres): Fix a compilation warning.
136
137 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
138
139 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
140 registers without a name.
141 (mips_linux_cannot_store_register): Don't store registers without
142 a name.
143
144 2002-10-28 David Carlton <carlton@math.stanford.edu>
145
146 * symtab.c (find_addr_symbol): Delete. (It was already commented
147 out.)
148 * symtab.h: Delete prototype for find_addr_symbol.
149
150 2002-10-26 Andrew Cagney <cagney@redhat.com>
151
152 * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
153 DO_REGISTERS_INFO.
154 gdbarch.h, gdbarch.c: Re-generate.
155 * infcmd.c (default_print_registers_info): Update reference.
156 * mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info.
157 (mips_dump_tdep): Do not print DO_REGISTERS_INFO.
158 * sh-tdep.c (sh_gdbarch_init): Ditto.
159 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
160 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
161
162 2002-10-26 Mark Kettenis <kettenis@gnu.org>
163
164 * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
165 cfi_init_extra_frame_info.
166 * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
167 * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
168
169 * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
170 target where necessary. Add more comments and remove the ones
171 that don't provide any useful information.
172
173 * i386-tdep.c (i386_frame_saved_pc): Replace call to
174 deprecated_read_register_dummy with
175 frame_unwind_unsigned_register.
176
177 * i386-tdep.c (i386_extract_struct_value_address): Use
178 regcache_raw_read_unsigned instead of
179 regcache_cooked_read_unsigned since we know that the register
180 we're reading isn't a pseudo register. Rename variable 'val' into
181 the more descriptive 'addr'.
182
183 * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
184 (x86_64_push_return_address): Add comment.
185 (x86_64_pop_frame): Make static.
186 (examine_argument): Clarify comment.
187 (x86_64_skip_prologue): Make prolog_expact variable static.
188
189 * dwarf2cfi.c: Fix some formatting problems.
190 (context_cpy, read_encoded_pointer): Clarify comments.
191
192 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
193 (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
194 i386 target back into x86_64_gdbarch_init. Add some comments and
195 remove meaningless ones.
196
197 2002-10-25 Andrew Cagney <cagney@redhat.com>
198
199 * complaints.h (struct deprecated_complaint): Rename `struct
200 complaint'.
201 * complaints.c (complain): Update.
202 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
203 incorrect comment indicating that "symfile.h" was being included
204 for the `struct complaint' definition.
205 * remote-vx.c: Update.
206 * objc-lang.c: Update.
207 * xcoffread.c: Update.
208 * hpread.c: Update.
209 * mdebugread.c: Update.
210 * stabsread.c: Update.
211 * dwarf2read.c: Update.
212 * dwarfread.c: Update.
213 * elfread.c: Update.
214 * coffread.c: Update.
215 * stabsread.h: Update.
216 * dbxread.c: Update.
217 * buildsym.c: Update.
218 * gdbtypes.c: Update.
219 * macrotab.c: Update.
220
221 2002-10-25 Mark Kettenis <kettenis@gnu.org>
222
223 * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
224 the version in i386-tdep.c. Move set_gdbarch_* calls out into...
225 (x86_64_init_abi): ...new function.
226
227 * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
228 * i386v-nat.c: Include "i386-tdep.h".
229
230 2002-10-25 Andrew Cagney <cagney@redhat.com>
231
232 * gdbtypes.c (address_space_name_to_int): Update.
233 (address_space_int_to_name): Update.
234 * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
235 multi-arch predicate.
236 (address_class_name_to_type_flags): Ditto.
237 * gdbarch.h, gdbarch.c: Re-generate.
238
239 * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
240
241 2002-10-24 Martin M. Hunt <hunt@redhat.com>
242
243 * utils.c (string_to_core_addr): Revert patch from 11 Oct.
244
245 2002-10-24 Elena Zannoni <ezannoni@redhat.com>
246
247 * symtab.h (INIT_SAL): Delete macro.
248 (init_sal): Export.
249 * symtab.c (init_sal): New function.
250
251 * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
252 to init_sal function call.
253 (find_sal_from_funcs_and_line): Ditto.
254 (all_sals_for_line): Ditto.
255 * breakpoint.c (create_internal_breakpoint): Ditto.
256 (create_fork_vfork_event_catchpoint): Ditto.
257 (create_exec_event_catchpoint): Ditto.
258 (parse_breakpoint_sals): Ditto.
259 (watch_command_1): Ditto.
260 (handle_gnu_4_16_catch_command): Ditto.
261 (clear_command): Ditto.
262 * hppa-tdep.c (child_enable_exception_callback): Ditto.
263 * infcmd.c (run_stack_dummy): Ditto.
264 * infrun.c (process_event_stop_test): Ditto.
265 (check_sigtramp2): Ditto.
266 (step_over_function): Ditto.
267 * linespec.c (decode_line_2): Ditto.
268 (decode_line_1): Ditto.
269 * source.c (line_info): Ditto.
270 * symtab.c (find_pc_sect_line): Ditto.
271
272 2002-10-24 Michal Ludvig <mludvig@suse.cz>
273
274 * dwarf2cfi.c (struct context)
275 (struct context_reg): Moved to dwarf2cfi.h
276 (context_alloc, frame_state_alloc, context_cpy):
277 Made extern instead of static, removed prototypes.
278 * dwarf2cfi.h (struct context)
279 (struct context_reg): New, moved from dwarf2cfi.c
280 (context_alloc, frame_state_alloc, context_cpy):
281 New prototypes.
282 * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
283 Changed from static to extern.
284 (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
285 (LINUX_SIGCONTEXT_FP_OFFSET)
286 (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
287 (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
288 (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
289 * x86-64-tdep.c (x86_64_gdbarch_init): Several
290 set_gdbarch_*() calls now use x86-64 specific functions
291 instead of DWARF2 CFI ones.
292 * x86-64-tdep.h (x86_64_linux_in_sigtramp)
293 (x86_64_linux_frame_chain, x86_64_init_frame_pc)
294 (x86_64_init_extra_frame_info): New prototypes.
295
296 2002-10-23 David Carlton <carlton@math.stanford.edu>
297
298 * linespec.c: #include "parser-defs.h".
299 Delete prototype for find_template_name_end.
300 * Makefile.in (linespec.o): Depend on $(parser_defs_h).
301
302 2002-10-23 Jeff Johnston <jjohnstn@redhat.com>
303
304 * NEWS: add recent mi fixes.
305 * varobj.c (struct varobj): Add new "updated" flag.
306 (new_variable): Default "updated" flag to 0.
307 (varobj_set_value): Set "updated" flag to 1 if value
308 changes.
309 (varobj_update): Check varobj "updated" flag before
310 comparing old and refreshed values. Fix for
311 PR gdb/702.
312
313 2002-10-23 David Carlton <carlton@math.stanford.edu>
314
315 * parse.c (parse_exp_1): Use BLOCK_START.
316 * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
317 SYMBOL_BLOCK_VALUE.
318 * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
319
320 2002-10-23 David Carlton <carlton@math.stanford.edu>
321
322 * symtab.c: Delete cplusplus_hint.
323 Delete prototype for find_template_name_end.
324
325 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
326
327 * symtab.h: Update comment.
328
329 2002-10-23 Michael Snyder <msnyder@redhat.com>
330
331 * printcmd.c (address_info): Restore quotes in output.
332 * valops.c (value_of_local): Restore quotes in error message.
333
334 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
335
336 * symtab.c (symbol_demangled_name): New function.
337 * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
338 turning most of it into a function.
339 (symbol_demangled_name): Export.
340
341 2002-10-23 Michael Snyder <msnyder@redhat.com>
342
343 * valops.c (value_of_local): Restore quotes in error message.
344
345 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
346
347 * symtab.c (symbol_init_language_specific): New function.
348 * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
349 turning most of it into a function.
350 (symbol_init_language_specific): Export.
351
352 2002-10-23 David Carlton <carlton@math.stanford.edu>
353
354 * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
355 (dwarf_attr_name): Ditto.
356 (dwarf_type_encoding_name): Ditto.
357 (scan_partial_symbols): Descend into DW_TAG_namespace entries.
358 (process_die): Handle DW_TAG_namespace,
359 DW_TAG_imported_declaration, DW_TAG_imported_module.
360 (read_namespace): New function.
361
362 2002-10-22 Joel Brobecker <brobecker@gnat.com>
363
364 * configure.in: Define NEW_PROC_API on Interix too.
365 * configure: Regenerate.
366
367 2002-10-21 Joel Brobecker <brobecker@gnat.com>
368
369 * configure: Regenerate using the proper version of autoconf.
370
371 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
372
373 * findvar.c (read_var_value): Temporarily disable TLS code, until
374 complete TLS support is added.
375
376 2002-10-21 Jim Blandy <jimb@redhat.com>
377 Elena Zannoni <ezannoni@redhat.com>
378
379 * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
380 for thread local storage locations.
381 (struct symbol): Add objfile field.
382 (SYMBOL_OBJFILE): Define.
383 * dwarf2read.c (is_thread_local): New static variable.
384 (new_symbol): If variable is in thread local fill in address class
385 and objfile appropriately.
386 (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
387 stack operation.
388 * printcmd.c (address_info): Print the information for thread
389 local storage variable.
390 * findvar.c (read_var_value): In case of thread local variable,
391 defer to the target vector code to compute address.
392
393 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
394
395 * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
396 * solib-svr4.h (svr4_fetch_objfile_link_map): Export.
397
398 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
399
400 * symtab.h (address_class): Rename
401 LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
402 * hpread.c (hpread_process_one_debug_symbol): Ditto.
403 * printcmd.c (address_info): Ditto.
404 * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
405
406 2002-10-20 Mark Kettenis <kettenis@gnu.org>
407
408 * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
409 DBREG_DRX macro to acces debug registers.
410
411 * Makefile.in (i386obsd-tdep.o): New target.
412
413 * solib-sunos.c: Include "bcache.h" and "regcache.h".
414 * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
415
416 * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
417 * config/i386/obsd.mt: New file.
418 * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
419 i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
420 * i386obsd-nat.c (_initialize_i386obsd_nat): Set
421 i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
422 i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
423 * i386obsd-tdep.c: New file.
424
425 2002-10-19 Adam Fedor <fedor@gnu.org>
426
427 * objc-exp.y (name_not_typename): Fix invalid comment.
428
429 2002-10-20 Mark Kettenis <kettenis@gnu.org>
430
431 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
432 to allocate partial syms and macro byte caches.
433
434 2002-10-18 David Carlton <carlton@math.stanford.edu>
435
436 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
437
438 2002-10-18 Adam Fedor <fedor@gnu.org>
439
440 * stabsread.c (find_name_end): New function.
441 (define_symbol): Use it.
442
443 2002-10-18 Daniel Jacobowitz <drow@mvista.com>
444
445 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
446 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
447 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
448 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
449
450 2002-10-17 David Carlton <carlton@math.stanford.edu>
451
452 * symfile.h: Add opaque declaration for struct obstack.
453 Declare obsavestring to take a const char *.
454 * symfile.c (obsavestring): Make first argument a const char *.
455
456 2002-10-16 Adam Fedor <fedor@gnu.org>
457
458 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
459 names when matching breakpoints in current file.
460
461 2002-10-16 Kevin Buettner <kevinb@redhat.com>
462
463 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
464 (read_tag_pointer_type): Add address class support.
465 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
466 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
467 New methods.
468 * gdbarch.h, gdbarch.c: Regenerate.
469 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
470 (make_type_with_address_space, recursive_type_dump): Add address
471 class support.
472 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
473 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
474 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
475
476 2002-10-16 Klee Dienes <kdienes@apple.com>
477
478 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
479 to get the last character of a char[] buffer, not
480 name[sizeof(vptr_name)-1].
481
482 2002-10-14 Adam Fedor <fedor@gnu.org>
483
484 * symtab.h: New objc_specific struct.
485 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
486 (SYMBOL_DEMANGLED_NAME): Likewise.
487
488 2002-10-14 Adam Fedor <fedor@gnu.org>
489
490 * symfile.c (init_filename_language_table): Add ObjC file extension.
491
492 2002-10-14 Adam Fedor <fedor@gnu.org>
493
494 * utils.c (puts_filtered_tabular): New function.
495 (fprintf_symbol_filtered): Get ObjC demangled name.
496 * defs.h (puts_filtered_tabular): Declared.
497
498 2002-10-14 Kevin Buettner <kevinb@redhat.com>
499
500 * c-lang.h (c_type_print_varspec_prefix): Delete.
501 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
502 ``need_post_space'' parameter. Adjust all callers.
503
504 2002-10-14 Daniel Jacobowitz <drow@mvista.com>
505
506 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
507 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
508 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
509 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
510
511 2002-10-13 Adam Fedor <fedor@gnu.org>
512
513 * source.c (print_source_lines): Update comments.
514
515 2002-10-13 Adam Fedor <fedor@gnu.org>
516
517 * valops.c (value_of_local): New function.
518 (value_of_this): Use it.
519 * value.h (value_of_local): Declared.
520
521 2002-10-13 Adam Fedor <fedor@gnu.org>
522
523 * parse.c: (length_of_subexp, prefixify_subexp): Handle
524 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
525
526 2002-10-12 Adam Fedor <fedor@gnu.org>
527
528 * language.c (binop_result_type): Add language_objc to case.
529 (integral_type): Likewise.
530 (character_type): Likewise.
531 (string_type): Likewise.
532 (boolean_type): Likewise.
533 (structured_type): Likewise.
534 (binop_type_check): Likewise.
535
536 2002-10-11 Adam Fedor <fedor@gnu.org>
537
538 * printcmd.c (address_info): Print 'self' for ObjC.
539
540 2002-10-11 Adam Fedor <fedor@gnu.org>
541
542 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
543 OP_SELF.
544
545 2002-10-11 Adam Fedor <fedor@gnu.org>
546
547 * language.h (CAST_IS_CONVERSION): Add language_objc.
548
549 2002-10-11 Adam Fedor <fedor@gnu.org>
550
551 * defs.h (enum language): Add language_objc.
552
553 2002-10-11 Klee Dienes <kdienes@apple.com>
554
555 * findvar.c (read_memory_typed_address): New function.
556 * gdbcore.h (read_memory_typed_address): Add prototype.
557 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
558 to read a value destined for a CORE_ADDR, not read_memory_integer.
559 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
560 (f77_get_dynamic_lowerbound): Ditto.
561
562 2002-10-11 Martin M. Hunt <hunt@redhat.com>
563
564 * utils.c (string_to_core_addr): After turning string into
565 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
566 which will do necessary sign-extension, etc.
567
568 2002-10-11 Daniel Jacobowitz <drow@mvista.com>
569
570 * c-exp.y (THIS): Delete token and grammar rule.
571 (yylex): Don't return THIS.
572 * cp-valprint.c (vtbl_ptr_name_old): Delete.
573 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
574 * demangle.c (cplus_markers): Update comment. Put '$'
575 first. Remove CPLUS_MARKER.
576 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
577 * jv-exp.y (THIS): Delete token and grammar rule.
578 (yylex): Don't return THIS.
579 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
580 * objc-exp.y (THIS): Delete token and grammar rule.
581 (yylex): Don't return THIS.
582 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
583 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
584 (read_member_functions): Likewise for opname.
585 (read_tilde_fields): Use is_cplus_marker.
586
587 * defs.h (CPLUS_MARKER): Don't define.
588 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
589 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
590 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
591 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
592 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
593
594 * config/i386/tm-i386v4.h: Delete file.
595 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
596 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
597 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
598 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
599 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
600 * config/i386/i386sco5.mt (TM_FILE): Likewise.
601 * config/i386/i386v4.mt (TM_FILE): Likewise.
602 * config/i386/ncr3000.mt (TM_FILE): Likewise.
603
604 2002-10-10 Marko Mlinar <markom@opencores.org>
605
606 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
607 accidentially not commited 2002-10-09
608 * gdbarch.h, gdbarch.c: Re-generate.
609
610 2002-10-09 Marko Mlinar <markom@opencores.org>
611
612 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
613 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
614 * gdbarch.h, gdbarch.c: Re-generate.
615
616 2002-10-08 Petr Sorfa <petrs@caldera.com>
617
618 Revised and re-submitted by John Wolfe <jlw@caldera.com>
619
620 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
621 so we can work on more than one compilation unit at a time. This
622 helps prepare GDB to handle inter-CU die references.
623 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
624 the code to be defined before struct comp_unit_head.
625 (comp_unit_head): Added new members - offset, cu_head,
626 begin_die, next and dwarf2_abbrevs.
627 (dwarf2_abbrevs): Removed single static var; now member of
628 struct comp_unit_head.
629 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
630 members.
631 (psymtab_to_symtab_1): Changed to work with the new
632 struct comp_unit_head.
633 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
634 constructs the dwarf2_abbrevs[] inside the cu_header.
635 (dwarf2_empty_abbrev_table): Now expects a ptr to a
636 dwarf2_abbrev table to clean up.
637 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
638 handling of dwarf2_abbrevs inside the cu_header.
639 (read_partial_die): Now supports the call to the new
640 dwarf2_lookup_abbrev.
641 (read_full_die): Now supports the call to the new
642 dwarf2_lookup_abbrev.
643
644 2002-10-06 Christopher Faylor <cgf@redhat.com>
645
646 * Makefile.in (install-gdbtk): Add missing continuation backslash to
647 insure that shell variables, such as "transformed_name" are propagated
648 to later shell statements in rule.
649
650 2002-10-06 Mark Kettenis <kettenis@gnu.org>
651
652 * config/i386/nm-i386sco.h: Add protection against
653 multiple-inclusion. Include "i386/nm-i386v.h".
654 (REGISTER_U_ADDR): Remove define.
655 (i386_register_u_addr): Remove prototype.
656
657 2002-10-04 Michael Snyder <msnyder@redhat.com>
658
659 * m32r-stub.c (handle_exception): Make sure exception is "trap"
660 before treating it as a single-step event.
661
662 2002-10-03 Adam Fedor <fedor@gnu.org>
663
664 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
665 (objc_demangle): Remove assignment in if statements, Replace
666 free with xfree.
667 (add_msglist): Likewise.
668 (end_msglist): Likewise.
669 (complare_selectors): Likewise.
670 (selectors_info): Likewise.
671 (compare_classes): Likewise.
672 (classes_info): Likewise.
673 (print_object_command): Likewise.
674 (find_objc_msgcall_submethod): Replace PTR with void *.
675 * objc-lang.h: Remove check for __STDC__.
676
677 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
678
679 * ui-out.h (ui_out_field_fmt_int): New prototype.
680 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
681 of field width and alignment.
682 * stack.c (print_frame_info_base): When printing frame level, use
683 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
684 PR gdb/192
685
686 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
687
688 * MAINTAINERS: Add self to Write After Approval list.
689
690 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
691
692 * infcmd.c (interrupt_target_command_wrapper): Delete.
693 (interrupt_target_command): Make non static.
694 (nofp_registers_info): Make static.
695 * stack.c (return_command_wrapper): Delete.
696 (return_command): Make non static.
697
698 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
699
700 * event-top.c (gdb_setup_readline): New function. Code moved from
701 _initialize_event_loop().
702 (_initialize_event_loop): Call gdb_setup_readline().
703
704 2002-10-02 Andrew Cagney <ac131313@redhat.com>
705
706 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
707 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
708 * gdbarch.h, gdbarch.c: Re-generate.
709
710 2002-10-02 Daniel Jacobowitz <drow@mvista.com>
711
712 Fix PR gdb/778
713 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
714 before recursing.
715 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
716 of fill_in_vptr_fieldno.
717
718 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
719
720 * inferior.h (registers_info, stepi_command, nexti_command,
721 continue_command, interrupt_target_command): Export from infcmd.c.
722 * frame.h (args_info, selected_frame_level_changed_hook,
723 return_command): Export from stack.c.
724 * v850ice.c (stepi_command, nexti_command, continue_command): use
725 prototypes from inferior.h.
726 * tracepoint.c (registers_info, args_info, locals_info): Use
727 prototypes from frame.h and inferior.h.
728 * Makefile.in (mi-main.o): Add dependency on frame.h.
729
730 2002-10-02 Andrew Cagney <ac131313@redhat.com>
731
732 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
733 value in register 3 adjusted by ppc_gp0_regnum.
734
735 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
736
737 2002-10-02 Marko Mlinar <markom@opencores.org>
738
739 * MAINTAINERS: Add myself to the Write After Approval list.
740
741 2002-10-01 Alexandre Oliva <aoliva@redhat.com>
742
743 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
744 of the section for the N64 ABI, fixed.
745
746 * config/mips/tm-irix6.h: Include solib.h.
747
748 2002-10-01 Elena Zannoni <ezannoni@redhat.com>
749
750 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
751 GNU operators.
752
753 2002-10-01 Andrew Cagney <ac131313@redhat.com>
754
755 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
756 and that "mi0" syntax has been removed.
757
758 2002-09-30 David Carlton <carlton@math.stanford.edu>
759
760 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
761 * ppc-sysv-tdep.c: #include "gdb_string.h".
762 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
763 pacify GCC.
764
765 2002-10-01 Andrew Cagney <ac131313@redhat.com>
766
767 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
768 "vrsave"'s register number.
769
770 2002-09-30 Andrew Cagney <ac131313@redhat.com>
771
772 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
773 use frame_unwind_signed_register to obtain the PC.
774 (mips_frame_chain): Handle a generic dummy frame.
775 (mips_init_extra_frame_info): When a generic dummy frame, don't
776 re-compute the frame base.
777 (mips_pop_frame): Handle generic dummy frames.
778 (mips_gdbarch_init): When generic dummy frames, set
779 use_generic_dummy_frames, push_dummy_frame to
780 generic_push_dummy_frame, pc_in_call_dummy to
781 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
782 generic_save_dummy_frame_tos.
783
784 2002-09-30 Andrew Cagney <ac131313@redhat.com>
785
786 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
787 against TOP when TOP was explictly set.
788 (generic_push_dummy_frame): Set TOP to zero.
789
790 2002-09-30 Elena Zannoni <ezannoni@redhat.com>
791
792 * event-loop.c (start_event_loop): Rename variable 'result' to
793 'gdb_result', to avoid conflicts with upcoming intepreters changes.
794
795 2002-09-30 Keith Seitz <keiths@redhat.com>
796
797 * gdb-events.sh (selected_thread_changed): New event.
798 * gdb-events.c: Regenerated.
799 * gdb-events.h: Regenerated.
800
801 2002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
802
803 * MAINTAINERS: Add self to Write After Approval list.
804
805 2002-09-30 Fernando Nasser <fnasser@redhat.com>
806
807 * disasm.c: New file.
808 * disasm.h: New file.
809 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
810 (compare_lines): Ditto.
811 (dump_insns): Ditto.
812 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
813 argument.
814 (do_assembly_only): Ditto.
815 (do_disassembly): Renamed to gdb_disassembly and moved to
816 disasm.c. Sdded uiout argument.
817 * Makefile.in: Add new files. Reorder SFILES list. Update
818 dependencies. Include libgdb.a later in the insight executable.
819
820 2002-09-29 Andrew Cagney <ac131313@redhat.com>
821
822 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
823 bfd/elf64-alpha-fbsd.c.
824
825 2002-09-29 Andrew Cagney <ac131313@redhat.com>
826
827 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
828 i386gnu-tdep.c.
829
830 2002-09-29 Andrew Cagney <ac131313@redhat.com>
831
832 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
833 __FUNCTION__.
834 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
835 function name.
836 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
837 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
838 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
839 (S_msg_sig_post_reply): Ditto.
840
841 2002-09-28 Corinna Vinschen <vinschen@redhat.com>
842
843 * sh-tdep.c (sh_use_struct_convention): Use definition according
844 to ABI.
845 (sh_push_arguments): Store in register with correct endianess.
846 (sh_default_store_return_value): Ditto.
847 (sh_gdbarch_init): Set sizeof long double to 8.
848
849 2002-09-27 Mark Kettenis <kettenis@gnu.org>
850
851 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
852 Fix some whitespace problems.
853
854 2002-09-27 David Carlton <carlton@math.stanford.edu>
855
856 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
857 (mcore-tdep.o): Ditto.
858 (ns32k-tdep.o): Ditto.
859 (ns32knbsd-tdep.o): Ditto.
860 (sh3-rom.o): Ditto.
861 (vax-tdep.o): Ditto.
862 * cris-tdep.c: #include "gdb_string.h"
863 * mcore-tdep.c: Ditto.
864 * ns32k-tdep.c: Ditto.
865 * ns32knbsd-tdep.c: Ditto.
866 * sh3-rom.c: Ditto.
867 * vax-tdep.c: Ditto.
868
869 2002-09-27 David Carlton <carlton@math.stanford.edu>
870
871 * config/djgpp/fnchange.lst: Add entries for
872 gdb/testsuite/gdb.c++/m-static files.
873
874 2002-09-27 Jim Wilson <wilson@redhat.com>
875
876 * MAINTAINERS: Add myself to the Write After Approval list.
877
878 2002-09-26 Martin M. Hunt <hunt@redhat.com>
879
880 * mips-tdep.c (find_proc_desc): Initialize startaddr.
881
882
883 2002-09-26 Andrew Cagney <ac131313@redhat.com>
884
885 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
886 frame.
887
888 2002-09-26 Andrew Cagney <ac131313@redhat.com>
889
890 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
891 (rs6000_struct_return_address): Delete variable.
892 (rs6000_store_struct_return): Update.
893 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
894 deprecated_extract_struct_value_address.
895 (rs6000_frame_align): New function.
896 (rs6000_gdbarch_init): Set frame_align.
897
898 2002-09-26 Andrew Cagney <ac131313@redhat.com>
899
900 From Grace Sainsbury <graces@redhat.com>:
901 * Makefile.in (gdbtk-main.o): New target.
902 (gdb.o): New target.
903 (main_h): Define.
904 (main.o): Update dependencies.
905 (gdb$(EXEEXT)): Add gdb.o.
906 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
907 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
908 (SUBDIR_GDBTK_CLEAN): Set.
909 (install-gdbtk): Install the insight binary.
910 (uninstall-gdbtk): New target.
911 (all-gdbtk, clean-gdbtk): New rule.
912 * top.c (use_windows): Default to zero.
913 * main.c: Include "main.h".
914 (main): Delete.
915 (struct captured_main_args): Delete.
916 (gdb_main): New function.
917 * main.h: New file.
918 * gdb.c: New File.
919
920 2002-09-25 Andrew Cagney <cagney@redhat.com>
921
922 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
923 (frame_map_regnum_to_name): New function.
924 (frame_map_name_to_regnum): New function.
925 * frame.h (frame_map_name_to_regnum): Declare.
926 (frame_map_regnum_to_name): Declare.
927 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
928 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
929 * parse.c: Do not include "builtin-regs.h".
930 (target_map_name_to_register): Delete function.
931 (write_dollar_variable): Use frame_map_name_to_regnum.
932 * parser-defs.h (target_map_name_to_register): Delete declaration.
933 * expprint.c: Include "frame.h".
934 (print_subexp): Use frame_map_regnum_to_name.
935 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
936 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
937
938 2002-09-25 Andrew Cagney <ac131313@redhat.com>
939
940 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
941 wasn't saved, and the next innermost frame is a dummy, return the
942 dummy frame's link register.
943
944 2002-09-24 Jim Blandy <jimb@redhat.com>
945
946 Fix from Paul Breed:
947 * main.c (captured_main): Add a `break' after the case for 'b'.
948
949 2002-09-24 Keith Seitz <keiths@redhat.com>
950
951 * varobj.c (c_type_of_child): Use get_target_type instead
952 of TYPE_TARGET_TYPE.
953
954 2002-09-22 Fernando Nasser <fnasser@redhat.com>
955
956 * source.c (get_current_or_default_source_symtab_and_line): Remove
957 function.
958 (set_default_source_symtab_and_line): New function. Attempts to
959 determine a source file to list lines from if one is not currently
960 defined.
961 (get_current_source_symtab_and_line): Initialize sal.pc and
962 sal.end fields.
963 (set_current_source_symtab_and_line): Mark argument as const.
964 * source.h: Update declarations and comments.
965 * linespec.c (decode_line_1): Replace call to removed routine above.
966 * stack.c (print_frame_info_base): Ditto.
967 * cli/cli-cmds.c (edit_command): Ditto.
968 (list_command): Ditto.
969
970 2002-09-22 Fernando Nasser <fnasser@redhat.com>
971
972 * source.c (get_current_or_default_source_symtab_and_line): Initialize
973 sal.pc and sal.end fields.
974 (get_current_or_default_source_symtab_and_line): Ditto.
975 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
976 so we do not cause a new source symtab to be searched for (reverting an
977 unintentional change from the 2002-09-20 patch).
978 * scm-lang.c (scm_unpac): Ditto.
979
980 2002-09-21 Andrew Cagney <cagney@redhat.com>
981
982 * complaints.c (symfile_explanations): Remove new-line from
983 ``isolated_message''.
984 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
985 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
986
987 2002-09-20 Nick Clifton <nickc@redhat.com>
988
989 * NEWS: Announce that V850EA ISA is no longer supported.
990 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
991
992 2002-09-20 David Carlton <carlton@math.stanford.edu>
993
994 * Makefile.in (c-lang.o): Correct dependencies.
995 (utils.o): Gather dependencies.
996 (charset.o): Move.
997 * c-lang.c: #include "gdb_string.h"
998
999 2002-09-20 Fernando Nasser <fnasser@redhat.com>
1000
1001 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
1002 * cli/cli-cmds.c (list_command): New function. Implements the new
1003 cli edit command.
1004 (_init_cli_cmds): Add new command definition.
1005 * gdb.1: Document edit command.
1006 * doc/gdb.texinfo: Document edit command.
1007
1008 2002-09-20 Fernando Nasser <fnasser@redhat.com>
1009
1010 * source.c: Make global variables current_source_symtab and
1011 current_source_line static.
1012 (list_command): Moved to cli/cli-cmds.c.
1013 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
1014 (get_first_line_listed): New accessor function.
1015 (get_lines_to_list): New accessor function.
1016 (get_current_source_symtab_and_line): New function. Retrieves the
1017 position in the source code that we consider current.
1018 (get_current_or_default_source_symtab_and_line): New function.
1019 Like the above but attempts to determine a default position if one
1020 is not currently defined.
1021 (set_current_source_symtab_and_line): New function. Sets the source
1022 code position considered current and returns the previously set one.
1023 (clear_current_source_symtab_and_line): Reset stored information about
1024 a current source line.
1025 (_initialize_source): Remove registration for the "list" command and
1026 its alias.
1027 * source.h: Add declarations for the new functions above.
1028 * symtab.h: Remove declarations for the global variables mentioned
1029 above.
1030 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
1031 obtain current source line.
1032 * linespec.c (decode_line_1): Ditto.
1033 * macroscope.c (default_macro_scope): Ditto.
1034 * scm-lang.c (scm_unpac): Ditto.
1035 * stack.c (print_frame_info_base): Ditto.
1036 * symfile.c (clear_symtab_users): Ditto.
1037 * symtab.c (decode_line_spec): Ditto.
1038 * cli/cli-cmds.c (list_command): Moved here from source.c.
1039 (ambiguous_line_spec): Moved here from source.c.
1040 (_init_cli_cmds): Add definition for "list" and its alias.
1041 * Makefile.in: Update dependencies.
1042
1043 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
1044
1045 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
1046 with what gcc thinks is correct.
1047
1048 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
1049
1050 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
1051 multiple register push instruction.
1052
1053 2002-09-19 Jim Blandy <jimb@redhat.com>
1054
1055 Add support for distinct host and target character sets.
1056 * charset.c, charset.h: New files.
1057 * c-exp.y: #include "charset.h".
1058 (yylex): Convert character and string literals to the target
1059 character set, before returning them as the semantic value of the
1060 token.
1061 * c-lang.c: #include "charset.h".
1062 (c_emit_char): Use charset-specific methods to recognize
1063 characters with backslash escape forms, to decide which characters
1064 to print literally and which to print using numeric escape
1065 sequences, and to convert target characters to host characters
1066 before printing.
1067 * utils.c: #include "charset.h".
1068 (no_control_char_error): New function.
1069 (parse_escape): Use charset-specific methods to recognize
1070 backslash escapes, parse `control character' notation, and convert
1071 characters from the host character set to the target character set.
1072 * configure.in: Set the default host character set.
1073 Check where to find iconv, and what its argument types might be.
1074 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
1075 * Makefile.in (SFILES): List charset.c.
1076 (COMMON_OBS): List charset.o.
1077 (charset.o): New rule.
1078 (charset_h): New header dependency variable.
1079 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
1080 (LIBICONV): New variable, set by configure.
1081 (CLIBS): Include $(LIBICONV) here.
1082 * aclocal.m4, config.in, configure: Regenerated.
1083
1084 2002-09-19 Joel Brobecker <brobecker@gnat.com>
1085
1086 * ada-exp.y: Add missing semicolons to end rules. Fixes a
1087 bison 1.35 warning.
1088
1089 2002-09-19 Richard Earnshaw <rearnsha@arm.com>
1090
1091 * gdb_mbuild.sh: New file.
1092
1093 2002-09-19 Andrew Cagney <ac131313@redhat.com>
1094
1095 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
1096
1097 2002-09-18 Andrew Cagney <ac131313@redhat.com>
1098
1099 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
1100 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
1101 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
1102 valops.c, value.h: Revert previous change.
1103
1104 2002-09-18 Michael Snyder <msnyder@redhat.com>
1105
1106 Preliminary support for Objective-C:
1107 * defs.h (language_objc): New enum value.
1108 (puts_filtered_tabular): Declaration only, exported from utils.c.
1109 (skip_quoted): Delete, declared in completer.h.
1110 * c-exp.y: Include completer.h.
1111 * p-exp.y: Ditto.
1112 * jv-exp.y: Ditto.
1113 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
1114 New operator enum values.
1115 * language.h (CAST_IS_CONVERSION): Test for language_objc.
1116 * language.c (binop_result_type): Handle language_objc case.
1117 (integral_type, character_type, string_type, boolean_type,
1118 structured_type, binop_type_check): Ditto.
1119 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
1120 (struct objc_specific): Add to general_symbol_info.
1121 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
1122 (SYMBOL_DEMANGLED_NAME): Handle objc case.
1123 * parser-defs.h (struct objc_class_str): New struct type.
1124 (start_msglist, end_msglist, add_msglist): Declaration only,
1125 exported from objc-lang.c.
1126 * value.h (value_of_local, value_nsstring,
1127 call_function_by_hand_expecting_type): Exported from valops.c.
1128 * valops.c (find_function_addr): Export.
1129 (call_function_by_hand_expecting_type): New function.
1130 (value_of_local): New function.
1131 * symfile.c (init_filename_language_table): Add ".m" extension
1132 for Objective-C.
1133 * utils.c (puts_filtered_tabular): New function.
1134 (fprintf_symbol_filtered): Add objc demangling support (disabled).
1135 (set/show demangle): Extend help-string to refer to ObjC.
1136 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
1137 * stabsread.c (symbol_reference_defined): Objective-C symbols
1138 may contain colons: make allowances when scanning stabs strings
1139 for colons.
1140 (objc_find_colon): New function.
1141 * printcmd.c (address_info): If language == objc then print
1142 "self" instead of "this".
1143 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
1144 OP_NSSTRING, and OP_SELF.
1145 (prefixify_subexp): Ditto.
1146 * source.c (print_source_lines): Mention objc in comment.
1147 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
1148 method names.
1149
1150 2002-09-18 Andrew Cagney <ac131313@redhat.com>
1151
1152 * complaints.h: Update copyright.
1153 (struct complaints): Declare.
1154 (struct complaint): Make `message' constant.
1155 (internal_complaint): Declare.
1156 (complaint): Declare.
1157 (complaint_root): Delete declaration.
1158 (symfile_complaints): Delete declaration.
1159 (struct complaints): Add opaque declaration.
1160 (clear_complaints): Add a complaints parameter.
1161 * complaints.c: Update copyright.
1162 (enum complaint_series): Define.
1163 (complaint_root): Delete.
1164 (struct complaints): Define.
1165 (complaint_sentinel, symfile_complaint_book): New variables.
1166 (symfile_explanations, symfile_complaints): New variables.
1167 New variables.
1168 (get_complaints): New function.
1169 (vcomplaint): New function.
1170 (complaint): New function.
1171 (internal_complaint): New function.
1172 (complain): Call vcomplain with symfile_complaint.
1173 (clear_complaints): Rewrite.
1174 (_initialize_complaints): Use add_setshow_command.
1175 * Makefile.in (complaints.o): Update dependencies.
1176 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
1177 to call to clear_complaints.
1178 (new_symfile_objfile, reread_symbols): Ditto.
1179 (oldsyms_complaint): Delete.
1180 (empty_symtab_complaint, unknown_option_complaint): Delete.
1181 (free_named_symtabs): Use complaint instead of complain.
1182
1183 2002-09-18 Michael Snyder <msnyder@redhat.com>
1184
1185 Contributed by Apple Computer, Inc. Merged with current sources
1186 by Adam Fedor <fedor@doc.com> [cagney].
1187
1188 * objc-lang.c: First clean-up round: comments, indentation.
1189 * objc-lang.h: Ditto.
1190 * objc-lang.y: Ditto.
1191
1192 2002-09-18 Andrew Cagney <ac131313@redhat.com>
1193
1194 * maint.c (maintenance_internal_error): Print the parameter as the
1195 error message.
1196 (maintenance_internal_warning): New function.
1197 (_initialize_maint_cmds): Add command `maint internal-warning'.
1198
1199 * defs.h (internal_warning, internal_vwarning): Declare.
1200 * utils.c (struct internal_problem): Define.
1201 (internal_vproblem): New function.
1202 (internal_warning): New function.
1203 (internal_vwarning): New function.
1204 (internal_warning_problem, internal_error_problem): New variables.
1205 (internal_verror): Just call internal_vproblem.
1206
1207 2002-09-18 Michael Snyder <msnyder@redhat.com>
1208
1209 * objc-lang.c: New file, support for Objective-C.
1210 Preliminary check-in, not yet integrated into gdb.
1211 * objc-lang.h: New file.
1212 * objc-exp.y: New file.
1213
1214 2002-09-18 Andrew Cagney <ac131313@redhat.com>
1215
1216 * infrun.c (signal_stop_update): Convert definition to ISO C.
1217 (signal_print_update): Ditto.
1218 (signal_pass_update): Ditto.
1219 * inflow.c (terminal_save_ours): Ditto.
1220
1221 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
1222 comments.
1223
1224 * config/djgpp/fnchange.lst: Handle name clashes between
1225 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
1226 bfd/coff-tic80.c.
1227
1228 * i386-linux-tdep.h: Fix tipo.
1229
1230 2002-09-18 Adam Fedor <fedor@gnu.org>
1231
1232 * MAINTAINERS: Add myself to the Write After Approval list.
1233
1234 2002-09-18 Jim Blandy <jimb@redhat.com>
1235
1236 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
1237 texthigh and textlow to reader-specific structs caused
1238 objfile_relocate to miss them. This is fixable, but the work that
1239 the change was supposed to prepare GDB for never got done anyway.
1240
1241 2002-09-18 David Carlton <carlton@math.stanford.edu>
1242
1243 * MAINTAINERS: Alphabetize Write After Approval list.
1244
1245 2002-09-18 Daniel Jacobowitz <drow@mvista.com>
1246
1247 Fix PR gdb/709
1248 * values.c (value_static_field): Call read_var_value.
1249
1250 2002-09-18 Andrew Cagney <ac131313@redhat.com>
1251
1252 * valops.c (hand_function_call): Align the initial stack pointer
1253 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
1254 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
1255 return value.
1256 * mips-tdep.c (mips_frame_align): New function.
1257 (mips_gdbarch_init): Set frame_align.
1258 * gdbarch.sh (FRAME_ALIGN): New method.
1259 * gdbarch.h, gdbarch.c: Re-generate.
1260
1261 2002-09-18 Michal Ludvig <mludvig@suse.cz>
1262
1263 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
1264 registers.
1265
1266 2002-09-17 Andrew Cagney <ac131313@redhat.com>
1267
1268 * NEWS: Mention that MIPS $fp behavior changed.
1269 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
1270 reference to FP_REGNUM.
1271 (mipsnbsd_cannot_store_register): Ditto.
1272 * mips-linux-nat.c: Update copyright.
1273 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
1274 (mips_linux_cannot_store_register): Ditto.
1275 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
1276 * config/mips/tm-mips.h: Update copyright.
1277 (FP_REGNUM): Delete macro.
1278 (MIPS_REGISTER_NAMES): Replace "fp" with "".
1279 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
1280 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
1281 (mips_r3041_reg_names, mips_r3051_reg_names)
1282 (mips_r3081_reg_names): Replace "fp" with "".
1283 Fix PR gdb/480.
1284
1285 2002-09-17 Theodore A. Roth <troth@verinet.com>
1286
1287 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
1288 generic_read_register_dummy() (PR gdb/703).
1289 (avr_push_return_address): #if 0 out unused vars.
1290 (avr_gdbarch_init): Enable use of avr_push_return_address().
1291
1292 2002-09-17 Michael Snyder <msnyder@redhat.com>
1293
1294 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
1295 RTE will take care of it.
1296
1297 2002-09-17 Andrew Cagney <ac131313@redhat.com>
1298
1299 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
1300 invalid, return SP_REGNUM.
1301
1302 2002-09-17 Michael Snyder <msnyder@redhat.com>
1303
1304 * mips-tdep.c (mips_pop_frame): Read saved values of floating
1305 point registers without sign extension.
1306
1307 2002-09-17 Andrew Cagney <cagney@redhat.com>
1308
1309 * blockframe.c (deprecated_read_register_dummy): Rename
1310 generic_read_register_dummy.
1311 * frame.c (frame_unwind_signed_register): New function.
1312 (frame_unwind_unsigned_register): New function.
1313 * frame.h (frame_unwind_signed_register): Declare.
1314 (frame_unwind_unsigned_register): Declare.
1315 (deprecated_read_register_dummy): Rename
1316 generic_read_register_dummy.
1317
1318 * h8300-tdep.c (h8300_frame_chain): Update.
1319 (h8300_frame_saved_pc): Update.
1320 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
1321 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
1322 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
1323 (s390_frame_chain): Update.
1324 * v850-tdep.c (v850_find_callers_reg): Update.
1325 (v850_frame_saved_pc): Update.
1326 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
1327 (m32r_find_callers_reg): Update.
1328 (m32r_frame_saved_pc): Update.
1329 * sh-tdep.c (sh_find_callers_reg): Update.
1330 (sh64_get_saved_pr): Update.
1331 (sh_init_extra_frame_info): Update.
1332 (sh_init_extra_frame_info): Update.
1333 (sh64_init_extra_frame_info): Update.
1334 (sh64_init_extra_frame_info): Update.
1335 * mcore-tdep.c (mcore_find_callers_reg): Update.
1336 (mcore_frame_saved_pc): Update.
1337 (mcore_init_extra_frame_info): Update.
1338 * i386-tdep.c (i386_frame_saved_pc): Update.
1339 * ia64-tdep.c (ia64_frame_saved_pc): Update.
1340 (ia64_init_extra_frame_info): Update.
1341 (ia64_init_extra_frame_info): Update.
1342 * d10v-tdep.c (d10v_frame_saved_pc): Update.
1343 * cris-tdep.c (cris_init_extra_frame_info): Update.
1344 * avr-tdep.c (avr_frame_chain): Update.
1345 (avr_init_extra_frame_info): Update.
1346 (avr_frame_saved_pc): Update.
1347 * arm-tdep.c (arm_find_callers_reg): Update.
1348 (arm_init_extra_frame_info): Update.
1349 (arm_frame_saved_pc): Update.
1350
1351 2002-09-17 Tom Tromey <tromey@redhat.com>
1352
1353 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
1354 is "'".
1355
1356 2002-09-17 Corinna Vinschen <vinschen@redhat.com>
1357
1358 * MAINTAINERS: Remove "non multi-arched" text from h8300.
1359 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
1360 NEXT_PROLOGUE_INSN.
1361 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
1362 NEXT_PROLOGUE_INSN.
1363
1364 2002-09-16 Joel Brobecker <brobecker@gnat.com>
1365
1366 * osfsolib.c: Remove file, replaced by solib-osf.c.
1367 * Makefile.in: Remove compilation rules for osfsolib.c.
1368
1369 2002-09-16 David Carlton <carlton@math.stanford.edu>
1370
1371 * cp-valprint.c (cp_print_class_method): Correct args to
1372 check_stub_method_group.
1373
1374 2002-09-16 Corinna Vinschen <vinschen@redhat.com>
1375
1376 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
1377 `set architecture'. Unify naming convention of functions.
1378 (h8300_skip_prologue): Improve prologue analysis.
1379 (h8300_push_arguments): Rewritten to more closely match GCC's
1380 bizarre argument-passing behavior, along with the comment describing
1381 said behavior.
1382 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
1383 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
1384 sim, remote-e7000.c, remote-hms.c and remote.c
1385
1386 2002-09-15 Mark Kettenis <kettenis@gnu.org>
1387
1388 * i386-tdep.c (gdb_print_insn_i386): Removed.
1389 (i386_print_insn): New function.
1390 (i386_gdbarch_init): Set print_insn to i386_print_insns.
1391 (_initialize_i386_tdep): Don't initialize tm_print_insn and
1392 tm_print_insn_info.
1393
1394 2002-09-14 Mark Kettenis <kettenis@gnu.org>
1395
1396 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
1397 zero.
1398
1399 2002-09-14 Corinna Vinschen <vinschen@redhat.com>
1400
1401 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
1402 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
1403 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
1404
1405 2002-09-13 Christopher Faylor <cgf@redhat.com>
1406
1407 * win32-nat.c (child_create_inferior): Honor 'tty' command.
1408
1409 2002-09-13 Daniel Jacobowitz <drow@mvista.com>
1410
1411 * gdbtypes.c (check_stub_method): Make static.
1412 (check_stub_method_group): New function.
1413 * gdbtypes.h: Update prototypes.
1414 * cp-support.c: New file.
1415 * cp-support.h: New file.
1416
1417 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
1418 (update_method_name_from_physname): New function.
1419 (read_member_functions): Correct method names for operators
1420 and v3 constructors/destructors. Separate v2 constructors and
1421 destructors.
1422 * Makefile.in (stabsread.o): Update dependencies.
1423 (SFILES): Add cp-support.c.
1424 (COMMON_OBS): Add cp-support.o.
1425 (cp_support_h, cp-support.o): Add.
1426
1427 * cp-valprint.c (cp_print_class_method): Call
1428 check_stub_method_group instead of check_stub_method. Remove
1429 extraneous QUITs.
1430 * p-valprint.c (pascal_object_print_class_method): Likewise.
1431 * valops.c (search_struct_method): Likewise.
1432 (find_method_list, value_struct_elt_for_reference): Likewise.
1433
1434 2002-09-13 Andrew Cagney <cagney@redhat.com>
1435
1436 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
1437 * gdbarch.h, gdbarch.c: Regenerate.
1438
1439 2002-09-13 Andrew Cagney <ac131313@redhat.com>
1440
1441 * frame.c (find_saved_register): Delete function.
1442 * frame.h (find_saved_register): Delete declaration.
1443 Fix PR gdb/631.
1444
1445 Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
1446
1447 * mips-tdep.c (read_next_frame_reg): Re-hack using
1448 frame_register_unwind.
1449
1450 Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
1451
1452 * mips-tdep.c (mips_get_saved_register): Re-hack using
1453 frame_register_unwind.
1454
1455 2002-09-12 Joel Brobecker <brobecker@gnat.com>
1456
1457 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
1458 vector. Will be useful for Interix.
1459 * gdbarch.h, gdbarch.c: Regenerate.
1460
1461 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
1462 name of the malloc function by NAME_OF_MALLOC.
1463
1464 2002-09-12 Joel Brobecker <brobecker@gnat.com>
1465
1466 * value.h (find_function_in_inferior): Add const keyword to
1467 one of the parameters. Allows us to invoke this function with
1468 a const char *.
1469 * valops.c (find_function_in_inferior): Likewise.
1470
1471 2002-09-12 Joel Brobecker <brobecker@gnat.com>
1472
1473 * exec.c (xfer_memory): Fix compilation warning with old versions
1474 of GCC.
1475 * tracepoint.c (trace_find_tracepoint_command): Likewise.
1476
1477 2002-09-12 David Carlton <carlton@math.stanford.edu>
1478
1479 * symtab.h: Run through gdb_indent.h.
1480 Add 2002 to Copyright year list.
1481
1482 2002-09-12 Alan Modra <amodra@bigpond.net.au>
1483
1484 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
1485 mach constants.
1486 * MAINTAINERS: Add myself to write after approval list.
1487
1488 2002-09-11 J. Brobecker <brobecker@gnat.com>
1489
1490 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
1491
1492 2002-09-11 J. Brobecker <brobecker@gnat.com>
1493
1494 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
1495 Interix.
1496
1497 2002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
1498
1499 * procfs.c (do_detach): Clear current signal, not just fault.
1500 Corrects problem with breakpoint trap signal leaking to detached
1501 process on Tru64.
1502
1503 2002-09-10 Michael Snyder <msnyder@redhat.com>
1504
1505 * buildsym.c (finish_block): Protect against null pointer.
1506
1507 2002-09-10 Andrew Cagney <cagney@redhat.com>
1508
1509 * infcmd.c (default_print_registers_info): Send all output to
1510 ``file'' instead of ``gdb_stdout''.
1511
1512 2002-09-10 Michael Snyder <msnyder@redhat.com>
1513
1514 * mips-tdep.c (mips_extract_struct_value_address): Make val a
1515 LONGEST, and use signed register read (addresses are sign-
1516 extended for mips).
1517
1518 2002-09-10 Stephane Carrez <stcarrez@nerim.fr>
1519
1520 * event-loop.c (gdb_do_one_event): Make public.
1521 * event-loop.h (gdb_do_one_event): Declare.
1522
1523 2002-09-10 Jeff Law <law@redhat.com>
1524
1525 * infttrace.c (child_resume): Simplify and rework to avoid
1526 TT_PROC_CONTINUE.
1527
1528 2002-09-09 Fred Fish <fnf@intrinsity.com>
1529
1530 * printcmd.c (print_scalar_formatted): "len" is the number of
1531 target bytes, NOT the number of target bits.
1532
1533 2002-09-09 Elena Zannoni <ezannoni@redhat.com>
1534
1535 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
1536 * top.c (init_main): Set rl_terminal_name.
1537
1538 2002-09-08 Aidan Skinner <aidan@velvet.net>
1539
1540 * ada-lang.c (ada_array_bound, ada_type_match,
1541 _initialize_ada_language): Fix K&R definitions.
1542 * ada-tasks.c (get_current_task): Fix K&R definitions.
1543 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
1544
1545 2002-09-07 Christopher Faylor <cgf@redhat.com>
1546
1547 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
1548 Add XP.
1549
1550 2002-09-06 Mark Kettenis <kettenis@gnu.org>
1551
1552 * i386-tdep.c (i386_register_virtual_type,
1553 i386_register_convertible, i386_register_convert_to_virtual,
1554 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
1555 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
1556 (i386_gdbarch_init): Fix comment. Add comments on calls that set
1557 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
1558 Don't set push_arguments twice.
1559
1560 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
1561 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
1562 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
1563 sigtramp_end to NULL.
1564 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
1565 defines.
1566 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
1567
1568 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
1569 whitespace.
1570
1571 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
1572 * gdbarch.h, gdbarch.c: Re-generate.
1573 * blockframe.c (find_pc_sect_partial_function): Convert to use
1574 SIGTRAMP_START_P predicate.
1575
1576 2002-09-05 Michael Snyder <msnyder@redhat.com>
1577
1578 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
1579 generic_dummy_frame method and old method. Also distinguish
1580 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
1581 (arm_extract_return_value): Use new regcache method.
1582
1583 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
1584 adjustment that doesn't conform to the ABI.
1585 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
1586 saved regcache, not from current regcache.
1587
1588 2002-09-05 Andrew Cagney <ac131313@redhat.com>
1589
1590 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
1591 * README: Update.
1592
1593 2002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
1594
1595 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
1596 if arm_apcs_32 is false.
1597
1598 2002-09-04 Andrew Cagney <ac131313@redhat.com>
1599
1600 GDB 5.3 branch created.
1601
1602 2002-09-03 Theodore A. Roth <troth@verinet.com>
1603
1604 * gdb/avr-tdep.c (avr_gdbarch_init): Use
1605 generic_unwind_get_saved_register.
1606
1607 2002-09-03 David Carlton <carlton@math.stanford.edu>
1608
1609 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
1610 argument (PR gdb/653). Update call to smash_to_method_type.
1611 (read_structure_scope): Update call to dwarf2_add_member_fn.
1612
1613 2002-09-03 Michal Ludvig <mludvig@suse.cz>
1614
1615 * x86-64-linux-tdep.c: Include gdb_string.h
1616 * x86-64-linux-nat.c: Ditto.
1617
1618 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1619
1620 * ada-exp.y (yyname, yyrule): Remap global variables that appear
1621 when YYDEBUG is set to 1.
1622 * c-exp.y: Likewise.
1623 * f-exp.y: Likewise.
1624 * jv-exp.y: Likewise.
1625 * m2-exp.y: Likewise.
1626 * p-exp.y: Likewise.
1627
1628 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1629
1630 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
1631 dependency list.
1632 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
1633 solib_svr4_fetch_link_map_offsets to
1634 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
1635 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
1636 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
1637 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
1638 solib-svr4.o, and solib-legacy.o.
1639 * config/i386/tm-nbsd.h: Include solib.h.
1640
1641 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1642
1643 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
1644 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
1645 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
1646 comment noting that this needs its own target configuration.
1647 * config/i386/nbsd.mt: New file.
1648 * config/i386/nbsdaout.mt: Remove.
1649 * config/i386/nbsdelf.mt: Ditto.
1650 * config/i386/tm-nbsdaout.h: Ditto.
1651
1652 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1653
1654 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
1655 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
1656 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
1657 tdep->sigtramp_end.
1658 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
1659 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
1660 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
1661
1662 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1663
1664 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
1665 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
1666 * i386-tdep.h (i386bsd_init_abi): New prototype.
1667 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
1668 function declaration.
1669 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
1670 for NetBSD-a.out or NetBSD-ELF.
1671 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
1672 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
1673 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
1674 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
1675 and nbsd-tdep.h.
1676 (i386nbsd_pc_in_sigtramp): New function.
1677 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1678 i386nbsd_pc_in_sigtramp.
1679 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
1680 and i386nbsdelf_init_abi OS ABI handlers.
1681 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
1682 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
1683
1684 2002-09-02 Mark Kettenis <kettenis@gnu.org>
1685
1686 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
1687 registers if the target really has them.
1688
1689 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1690
1691 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
1692 than nbsd-tdep.h.
1693
1694 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1695
1696 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
1697 list.
1698 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
1699 (alphanbsd_skip_sigtramp_frame): New functions.
1700 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
1701 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
1702 to alphanbsd_sigcontext_addr.
1703
1704 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1705
1706 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
1707 list.
1708 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
1709 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
1710 nbsd_pc_in_sigtramp.
1711 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
1712 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
1713 * nbsd-tdep.c: Include gdb_string.h.
1714 (nbsd_pc_in_sigtramp): New function.
1715 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
1716 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
1717 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1718 ppcnbsd_pc_in_sigtramp.
1719 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
1720 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1721 shnbsd_pc_in_sigtramp.
1722 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
1723 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
1724 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
1725
1726 2002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
1727
1728 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
1729 watchpoints to NULL.
1730 (insert_breakpoints): set val field of watchpoints if NULL.
1731
1732
1733 2002-08-29 Jim Blandy <jimb@redhat.com>
1734
1735 * symtab.c (lookup_symbol_aux): In the cases where we find a
1736 minimal symbol of an appropriate name and use its address to
1737 select a symtab to read and search, use `name' (as passed to us)
1738 as the demangled name when searching the symtab's global and
1739 static blocks, not the minsym's name.
1740
1741 2002-08-29 Keith Seitz <keiths@redhat.com>
1742
1743 * stack.c (print_frame_info_base): Always set current_source_symtab
1744 and current_source_line.
1745
1746 2002-08-29 Donn Terry <donnte@microsoft.com>
1747
1748 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
1749
1750 2002-08-28 Keith Seitz <keiths@redhat.com>
1751
1752 * stack.c (select_frame): Add FIXME concerning selected-frame
1753 events.
1754 (select_frame_command): Send selected-frame-level-changed
1755 event notification, but only if the level actually changed.
1756 (up_silently_base): Add selected-frame-level-changed event
1757 notification.
1758 (down_silently_base): Likewise.
1759
1760 2002-08-28 Andrew Cagney <ac131313@redhat.com>
1761
1762 * Makefile.in: Update dependencies for all gdb/*.c files.
1763
1764 2002-08-27 Tom Tromey <tromey@redhat.com>
1765
1766 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
1767 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
1768 Update dependencies.
1769 * i387-tdep.c: Include gdb_string.h.
1770 * osabi.c: Likewise.
1771 * i386-linux-nat.c: Likewise.
1772 * lin-lwp.c: Likewise.
1773 * ax-gdb.c: Likewise.
1774 * signals/signals.c: Likewise.
1775 * jv-valprint.c: Likewise.
1776 * p-lang.c: Likewise.
1777 * c-valprint.c: Likewise.
1778 * cp-abi.c: Likewise.
1779
1780 2002-08-27 Elena Zannoni <ezannoni@redhat.com>
1781
1782 * cli/cli-script.h (copy_command_lines): Export.
1783 * breakpoint.c: Include cli/cli-script.h.
1784 * Makefile.in (breakpoint.o): Update dependencies.
1785
1786 2002-08-26 Michael Snyder <msnyder@redhat.com>
1787
1788 * breakpoint.c (insert_breakpoints): Protect all references
1789 to 'process_warning'. Shorten long lines.
1790
1791 2002-08-26 Joel Brobecker <brobecker@gnat.com>
1792
1793 * cli/cli-script.c (copy_command_lines): New function.
1794 * defs.h (copy_command_lines): Export.
1795 * testsuite/gdb.base/commands.exp: New tests for commands
1796 attached to a temporary breakpoint, and for commands that
1797 delete the breakpoint they are attached to.
1798
1799 2002-08-26 Michael Snyder <msnyder@redhat.com>
1800
1801 * breakpoint.c (bpstat_stop_status): Instead of copying the
1802 pointer to the breakpoint commands struct, make a new copy
1803 of the struct and point to that.
1804 (bpstat_clear): Free the commands struct.
1805 (bpstat_clear_actions): Free the commands struct.
1806 (bpstat_do_actions): Free the command actions. Also execute
1807 the local cleanups, instead of deleting them.
1808 (delete_breakpoint): Leave the commands field of the bpstat
1809 chain alone -- it will be freed later.
1810
1811 2002-08-26 Kevin Buettner <kevinb@redhat.com>
1812
1813 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
1814 deleted in 2002-08-20 commit. This function is still used by
1815 ppc-linux-nat.c.
1816
1817 2002-08-26 Keith Seitz <keiths@redhat.com>
1818
1819 * gdb-events.sh: Add selected-frame-level-changed event.
1820 * gdb-events.c: Regenerated.
1821 * gdb-events.h: Regenerated.
1822
1823 2002-08-26 Stephane Carrez <stcarrez@nerim.fr>
1824
1825 Fix PR gdb/393:
1826 * inflow.c (terminal_save_ours): New function to save terminal
1827 settings.
1828 * inferior.h (terminal_save_ours): Declare.
1829 * target.c (debug_to_terminal_save_ours): New function.
1830 (cleanup_target): Defaults to_terminal_save_ours.
1831 (update_current_target): Inherit to_terminal_save_ours.
1832 (setup_target_debug): Set to_terminal_save_ours.
1833 * target.h (target_terminal_save_ours): New to save terminal settings.
1834 (target_ops): New member to_terminal_save_ours.
1835 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
1836 * hpux-thread.c (init_hpux_thread_ops): Likewise.
1837 * inftarg.c (init_child_ops): Likewise.
1838 * m3-nat.c (init_m3_ops): Likewise.
1839 * procfs.c (init_procfs_ops): Likewise.
1840 * wince.c (init_child_ops): Likewise.
1841 * win32-nat.c (init_child_ops): Likewise.
1842 * sol-thread.c (init_sol_thread_ops): Likewise.
1843
1844 2002-08-26 Mark Kettenis <kettenis@gnu.org>
1845
1846 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
1847 use regcache_* functions.
1848 (i386_gdbarch_init): Set store_return_value instead of
1849 deprecated_store_return_value.
1850
1851 * regcache.c (regcache_raw_write_signed,
1852 regcache_raw_write_unsigned): New functions.
1853 * regcache.h (regcache_raw_write_signed,
1854 regcache_raw_write_unsigned): New prototypes.
1855
1856 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1857
1858 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
1859 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
1860 source file dependencies. Cleanup corresponding generator rules.
1861
1862 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1863
1864 * regcache.h (register_offset_hack): Declare.
1865 (regcache_cooked_read_using_offset_hack): Declare.
1866 (regcache_cooked_write_using_offset_hack): Declare.
1867
1868 * regcache.c (register_offset_hack): New function.
1869 (regcache_cooked_read_using_offset_hack): New function.
1870 (regcache_cooked_write_using_offset_hack): New function.
1871 (regcache_dump): Check that the registers, according to their
1872 offset, are packed hard against each other.
1873 (cooked_xfer_using_offset_hack): New function.
1874
1875 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1876
1877 * regcache.c (struct regcache_descr): Add field register_type.
1878 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
1879 in as a parameter
1880 (init_regcache_descr): Initialize register_type. Pass the descr
1881 to init_legacy_regcache_descr. Use register_type instead of
1882 REGISTER_VIRTUAL_TYPE.
1883 (register_type): New function.
1884 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
1885 * regcache.h (register_type): Declare.
1886
1887 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1888
1889 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
1890 instead of deprecated_store_return_value. Fix fallout from
1891 2002-08-23 Andrew Cagney <cagney@redhat.com>.
1892
1893 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1894
1895 * regcache.c (max_register_size): New function.
1896 (init_legacy_regcache_descr): Ensure that max_register_size is
1897 large enough for REGISTER_VIRTUAL_SIZE.
1898 * regcache.h (max_register_size): Declare.
1899
1900 2002-08-24 Andrew Cagney <ac131313@redhat.com>
1901
1902 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
1903 store_return_value.
1904 (e500_extract_return_value): Change type of valbuf pointer to
1905 void.
1906
1907 2002-08-24 Mark Kettenis <kettenis@gnu.org>
1908
1909 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
1910 workaround.
1911
1912 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
1913 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
1914 long long) to prevent compiler warning on 64-bit systems.
1915
1916 2002-08-23 Andrew Cagney <cagney@redhat.com>
1917
1918 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
1919 (DEPRECATED_STORE_RETURN_VALUE): New method.
1920 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
1921 * gdbarch.h, gdbarch.c: Re-generate.
1922
1923 * values.c (set_return_value): Pass current_regcache to
1924 STORE_RETURN_VALUE.
1925 * arch-utils.h (legacy_store_return_value): Declare.
1926 * arch-utils.c (legacy_store_return_value): New function.
1927 (legacy_extract_return_value): Update parameters.
1928
1929 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
1930 STORE_RETURN_VALUE.
1931 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1932 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1933 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1934 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1935 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1936 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1937 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1938 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1939 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1940 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1941
1942 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1943 * i386-tdep.c (i386_extract_return_value): Update.
1944 * arch-utils.c (legacy_extract_return_value): Update.
1945 * frv-tdep.c (frv_gdbarch_init): Update.
1946 * cris-tdep.c (cris_gdbarch_init): Update.
1947 * d10v-tdep.c (d10v_gdbarch_init): Update.
1948 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1949 * m68k-tdep.c (m68k_gdbarch_init): Update.
1950 * mcore-tdep.c (mcore_gdbarch_init): Update.
1951 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1952 * s390-tdep.c (s390_gdbarch_init): Update.
1953 * sparc-tdep.c (sparc_gdbarch_init): Update.
1954 * sh-tdep.c (sh_gdbarch_init): Update.
1955 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1956 * v850-tdep.c (v850_gdbarch_init): Update.
1957 * avr-tdep.c (avr_gdbarch_init): Update.
1958 * ia64-tdep.c (ia64_gdbarch_init): Update.
1959 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1960 * vax-tdep.c (vax_gdbarch_init): Update.
1961 * alpha-tdep.c (alpha_gdbarch_init): Update.
1962 * arm-tdep.c (arm_gdbarch_init): Update.
1963 * mips-tdep.c (mips_gdbarch_init): Update.
1964 * i386-tdep.c (i386_gdbarch_init): Update.
1965
1966 2002-08-23 Andrew Cagney <ac131313@redhat.com>
1967
1968 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
1969 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
1970
1971 2002-08-24 Mark Kettenis <kettenis@gnu.org>
1972
1973 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
1974 problems.
1975
1976 2002-08-23 Joel Brobecker <brobecker@gnat.com>
1977
1978 * infrun.c (handle_inferior_event): Move a comment outside of a
1979 function call, in order to avoid indent reformatting this part
1980 of the code in an unreadable way.
1981
1982 2002-08-23 Grace Sainsbury <graces@redhat.com>
1983
1984 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
1985 when breakpoints fail. Move general breakpoint error messages to
1986 insert_breakpoints.
1987 * breakpoint.c (insert_breakpoints): Change warnings when
1988 breakpoints are nto inserted to specify the type. Remove call to
1989 memory_error when hardware breakpoints can't be inserted. Remove
1990 multiple calls to warning so all messages are sent to the user at
1991 once.
1992 (delete_breakpoints): Make insert error messsages more explicit.
1993
1994 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
1995
1996 * ChangeLog: Move gdbserver entries after GDB 5.2 to
1997 gdbserver/ChangeLog.
1998
1999 2002-08-23 Mark Kettenis <kettenis@gnu.org>
2000
2001 * i386-tdep.c: Include "objfiles.h".
2002 (i386_svr4_init_abi): Set in_solib_call_trampoline and
2003 skip_trampoline_code.
2004 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
2005 (CPLUS_MARKER): Define to '.'.
2006
2007 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
2008 member.
2009 (linux_corefile_thread_callback): Increase args->num_notes.
2010 (linux_make_note_section): Initialize thread_args.num_notes, and
2011 use it to determine whether notes for any threads were created.
2012
2013 2002-08-23 Donn Terry <donnte@microsoft.com>
2014
2015 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
2016 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
2017 and PCUNKILL.
2018 (write_with_trace): Conditionalize out the switch branch handling
2019 PCSHOLD if the corresponding macro is not defined. Likewise for
2020 PRSABORT and PRSTOP.
2021 This change will be needed by the Interix port.
2022
2023 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
2024
2025 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
2026 write_register wherever possible instead of manipulating the
2027 register bytes directly.
2028 Assign VALUE_CONTENTS to a variable and use that.
2029 The GPR numbers are now dependent on the architecture.
2030
2031 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
2032
2033 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
2034 ev_offset fields.
2035 (skip_prologue): Add support for BookE/e500 instructions.
2036 (e500_extract_return_value): New function.
2037 (frame_get_saved_regs): Add support for saving ev registers and
2038 pseudo gpr's.
2039 (e500_store_return_value): New function.
2040 (rs6000_gdbarch_init): Move up default intializations of
2041 deprecated_extract_return_value and store_return_value. Overwrite
2042 init of store_return_value with e500 specific version.
2043 Set extract_return_value for e500.
2044
2045 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
2046
2047 * blockframe.c (generic_call_dummy_register_unwind): Use
2048 regcache_cooked_read to catch cases in which the variable is
2049 stored in a pseudo register.
2050
2051 2002-08-22 Andrew Cagney <cagney@redhat.com>
2052
2053 * NEWS: Mention that the i960 has been made obsolete.
2054 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
2055 i960-tdep.c
2056 (remote-nrom.o): Obsolete target.
2057 (remote-nindy.o, i960-tdep.o): Ditto.
2058 * remote-nrom.c: Make file obsolete.
2059 * remote-nindy.c, remote-vx960.c: Ditto.
2060 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
2061 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
2062 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
2063 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
2064 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
2065 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
2066 i960-*-vxworks* obsolete.
2067 * MAINTAINERS: Note that the i960 is obsolete.
2068
2069 2002-08-21 Corinna Vinschen <vinschen@redhat.com
2070
2071 * aix-thread.c (aix_thread_detach): Disable thread debugging on
2072 detach to allow reinitialization.
2073
2074 2002-08-22 Andrew Cagney <ac131313@redhat.com>
2075
2076 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
2077 attempt).
2078
2079 2002-08-22 Jim Blandy <jimb@redhat.com>
2080
2081 * coffread.c (coff_symfile_read): Don't try to read the line
2082 number table from disk if the image file doesn't have a symbol
2083 table; we'll never actually look at the info anyway, and Windows
2084 ships DLL's with bogus file offsets for the line number data.
2085
2086 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
2087
2088 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
2089 an e500 executable.
2090
2091 2002-08-21 Michael Snyder <msnyder@redhat.com>
2092
2093 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
2094 (MSYMBOL_SIZE): Replace macro with function.
2095 (DEFAULT_MIPS_TYPE): Delete unused macro.
2096 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
2097 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
2098
2099 2002-08-21 Jim Blandy <jimb@redhat.com>
2100
2101 * valops.c (value_cast): Simplify and correct logic for doing a
2102 static cast from a pointer to a base class to a pointer to a
2103 derived class.
2104
2105 2002-08-21 Andrew Cagney <ac131313@redhat.com>
2106
2107 * infcmd.c (default_print_registers_info): Replace
2108 do_registers_info.
2109 (registers_info): Use gdbarch_print_registers_info instead of
2110 DO_REGISTERS_INFO.
2111 * inferior.h (default_print_registers_info): Replace
2112 do_registers_info.
2113 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
2114 (DO_REGISTERS_INFO): Change to a predicate function.
2115 * gdbarch.h, gdbarch.c: Regenerate.
2116
2117 2002-08-21 Keith Seitz <keiths@redhat.com>
2118
2119 * gdb-events.sh: Add target-changed event.
2120 * gdb-events.c: Regenerated.
2121 * gdb-events.c: Regenerated.
2122 * valops.c (value_assign): Add target-changed event notification
2123 to inlval_register, lval_memory, and lval_reg_frame_relative.
2124
2125 2002-08-21 Joel Brobecker <brobecker@gnat.com>
2126
2127 * NEWS: Add an entry regarding the improvement of the next/step
2128 operation on Alpha Tru64 multi-processor machines.
2129
2130 2002-08-21 Andrew Cagney <ac131313@redhat.com>
2131
2132 * Makefile.in: Update dependencies for mi/ cli/ and tui/
2133 directores.
2134 * Makefile.in: Update all _h macro definitions.
2135 * Makefile.in (install-gdbtk): Move to install section.
2136 (rdi-share/libangsd.a): Move to end of file.
2137
2138 2002-08-19 Andrew Cagney <ac131313@redhat.com>
2139
2140 * frame.c (frame_register_unwind): When a register, set addrp to
2141 the register's byte.
2142
2143 2002-08-20 Michael Snyder <msnyder@redhat.com>
2144
2145 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
2146 used locally, so move them from the target machine header to here.
2147 (mips_set_processor_type, mips_register_name, mips32_next_pc,
2148 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
2149 Make static.
2150 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
2151
2152 2002-08-20 Andrew Cagney <cagney@redhat.com>
2153
2154 * NEWS: Mention that the Apollo line was made obsolete.
2155 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
2156 m68*-hp-hpux* obsolete.
2157 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
2158 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
2159 * buildsym.c (make_blockvector): Make static.
2160 * buildsym.h (make_blockvector): Make extern declaration obsolete.
2161 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
2162 (ALLDEPFILES): Remove dstread.c.
2163 (dstread.o): Obsolete make rule.
2164 * dstread.c: Makefile obsolete.
2165 * dst.h: Ditto.
2166 * config/m68k/hp300hpux.mt: Ditto.
2167 * config/m68k/hp300hpux.mh: Ditto.
2168 * config/m68k/hp300bsd.mt: Ditto.
2169 * config/m68k/hp300bsd.mh: Ditto.
2170 * config/m68k/apollo68b.mt: Ditto.
2171 * config/m68k/apollo68v.mh: Ditto.
2172 * config/m68k/apollo68b.mh: Ditto.
2173
2174 2002-08-20 Michael Snyder <msnyder@redhat.com>
2175
2176 * mips-tdep.c (mips_in_return_stub): Make static.
2177 (mips_gdbarch_init): Set in_solib_return_trampoline.
2178 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
2179
2180 2002-08-20 Michael Snyder <msnyder@redhat.com>
2181
2182 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
2183 * gdbarch.c, gdbarch.h: Regenerate.
2184 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
2185 Add.
2186 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
2187
2188 2002-08-20 Michael Snyder <msnyder@redhat.com>
2189
2190 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
2191 (mips_gdbarch_init): Set skip_trampoline_code,
2192 in_solib_call_trampoline.
2193 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
2194 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
2195
2196 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
2197
2198 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
2199
2200 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
2201 vector type for ev registers.
2202 (e500_pseudo_register_read): New function.
2203 (e500_pseudo_register_write): New function.
2204 (e500_dwarf2_reg_to_regnum): New function.
2205 (PPC_UISA_NOFP_SPRS): New macro.
2206 (PPC_EV_REGS): New macro.
2207 (PPC_GPRS_PSEUDO_REGS): New macro.
2208 (registers_e500): New register set for e500.
2209 (variants): Add e500 variant.
2210 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
2211 before setting architectural dependent variations. Initialize ev
2212 registers numbers. Add case for e500 architecture. Set the
2213 number of pseudo registers.
2214
2215 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
2216
2217 * rs6000-tdep.c: Clean up comments.
2218
2219 2002-08-20 Andrew Cagney <cagney@redhat.com>
2220
2221 * h8300-tdep.c: Re-indent file.
2222
2223 2002-08-20 Jim Blandy <jimb@redhat.com>
2224
2225 * Makefile.in (LDFLAGS): Allow the configure script to establish a
2226 default for this.
2227
2228 2002-08-20 Keith Seitz <keiths@redhat.com>
2229
2230 * breakpoints.c (watch_command_1): Use internal breakpoint
2231 when setting a watchpoint_scope breakpoint.
2232
2233 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
2234
2235 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
2236 (build_builtin_type_vec64i): Ditto.
2237 (build_builtin_type_vec128): Ditto.
2238 (build_builtin_type_vec128i): Ditto.
2239
2240 2002-08-19 Michael Snyder <msnyder@redhat.com>
2241
2242 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
2243 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
2244 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
2245 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
2246 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
2247 CALL_DUMMY_ADDRESS): Delete.
2248 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
2249 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
2250 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
2251 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
2252 push_return_address.
2253 (mips_register_raw_size, mips_eabi_use_struct_convention,
2254 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
2255 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
2256 mips_init_extra_frame_info, mips_eabi_push_arguments,
2257 mips_n32n64_push_arguments, mips_push_return_address,
2258 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
2259 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
2260
2261 2002-08-19 Michael Snyder <msnyder@redhat.com>
2262
2263 * mips-tdep.c (mips_frame_num_args): New function.
2264 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
2265 frame_saved_pc, frame_args_address, frame_locals_address,
2266 frame_num_args, and frame_args_skip.
2267 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
2268 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
2269 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
2270 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
2271
2272 2002-08-20 Michael Snyder <msnyder@redhat.com>
2273
2274 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
2275 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
2276 * mips-tdep.c (mips_store_struct_return): New function.
2277 (mips_extract_struct_value_address): New function.
2278 (mips_gdbarch_init): Set store_struct_return and
2279 extract_struct_value_address.
2280
2281 2002-08-20 David Carlton <carlton@math.stanford.edu>
2282
2283 * dwarf2read.c (dwarf2_build_psymtabs): Check that
2284 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
2285 (read_file_scope): Check that line_header is nonzero before
2286 decoding macro information.
2287
2288 2002-08-20 Mark Kettenis <kettenis@gnu.org>
2289
2290 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
2291 flag the general-purpose registers as floating-point on targets
2292 that don't support the floating-point registers.
2293
2294 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
2295
2296 * rs6000-tdep.c (altivec_register_p): Delete.
2297 (rs6000_do_altivec_registers): Delete.
2298 (rs6000_altivec_registers_info): Delete.
2299 (rs6000_do_registers_info): Delete.
2300 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
2301 (rs6000_gdbarch_init): Remove setting of do_registers_info.
2302
2303 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
2304
2305 * infcmd.c (do_registers_info): Print vector registers in hex
2306 format only.
2307 (print_vector_info): Check that printing registers
2308 makes sense.
2309 (print_float_info): Ditto.
2310
2311 2002-08-20 Andrew Cagney <ac131313@redhat.com>
2312
2313 * mips-tdep.c (mips_gdbarch_init): Update.
2314 (mips_o32_extract_return_value): Rewrite.
2315 (mips_o32_store_return_value): Rewrite.
2316 (mips_o32_xfer_return_value): New function.
2317 (mips_xfer_register): Tweak debug print message. Allow for
2318 buf_offset when dumping the value transfered.
2319
2320 2002-08-20 Andrew Cagney <ac131313@redhat.com>
2321
2322 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
2323 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
2324 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
2325 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
2326 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
2327
2328 2002-08-14 Michael Snyder <msnyder@redhat.com>
2329
2330 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
2331
2332 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
2333
2334 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
2335 register.
2336 (P): New macro to define a register as a pseudo register.
2337 (R, R4, R8, R16, FR32, R64, R0): Updated.
2338 (struct variant): Add new fields for number of pseudo registers
2339 and number of total registers.
2340 (tot_num_registers): New macro replacing....
2341 (num_registers): ...deleted macro.
2342 (num_registers): New function.
2343 (num_pseudo_registers): New function.
2344 (variants): Update all variants to intialize new fields correctly.
2345 Postpone initialization of number of pseudo regs and real regs.
2346 (init_variants): New function.
2347 (rs6000_gdbarch_init): Initialize variants. Update calculation of
2348 registers offsets.
2349
2350 2002-08-19 David Carlton <carlton@math.stanford.edu>
2351
2352 * valops.c (search_struct_field): Change error message to treat
2353 return value of 0 from value_static_field as meaning that field is
2354 optimized out.
2355 (value_struct_elt_for_reference): Ditto.
2356 * values.c (value_static_field): Treat an unresolved location the
2357 same as a nonexistent symbol. Fix PR gdb/635.
2358 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
2359 enclosed. Fix PR gdb/574.
2360 * MAINTAINERS: Add self to Write After Approval list.
2361
2362 2002-08-19 Andrew Cagney <ac131313@redhat.com>
2363
2364 * mips-tdep.c (mips_xfer_register): New function.
2365 (mips_n32n64_extract_return_value): Rewrite.
2366 (mips_gdbarch_init): For N32 and N64, set extract_return_value
2367 instead of deprecated_extract_return_value.
2368
2369 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
2370
2371 * rs6000-tdep.c (TDEP): Delete macro.
2372 (branch_dest): Replace use of TDEP macro with its body.
2373 (rs6000_pop_frame): Ditto.
2374 (rs6000_push_arguments): Ditto.
2375 (rs6000_skip_trampoline_code): Ditto.
2376 (rs6000_frame_saved_pc): Ditto.
2377 (rs6000_frame_chain): Ditto.
2378 (rs6000_register_name): Ditto.
2379 (rs6000_register_byte): Ditto.
2380 (rs6000_register_raw_size): Ditto.
2381 (rs6000_register_virtual_type): Ditto.
2382 (rs6000_register_convertible): Ditto.
2383 (rs6000_convert_from_func_ptr_addr): Ditto.
2384
2385 2002-08-19 Daniel Jacobowitz <drow@mvista.com>
2386
2387 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
2388 conditionally.
2389 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
2390 MIPS_LINUX_JB_ELEMENT_SIZE.
2391 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
2392 for MAX_REGISTER_RAW_SIZE arrays.
2393 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
2394 MIPS_LINUX_JB_ELEMENT_SIZE.
2395
2396 2002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
2397
2398 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
2399
2400 2002-08-19 Aidan Skinner <aidan@velvet.net>
2401
2402 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
2403 ada-valprint.c ada-tasks.c.
2404 (YYFILES): Add ada-exp.y.
2405 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
2406 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
2407 (ada-exp.tab.o): New target.
2408
2409 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2410
2411 * regcache.c (regcache_xfer_part): New function.
2412 (regcache_raw_read_part): New function.
2413 (regcache_raw_write_part): New function.
2414 (regcache_cooked_read_part): New function.
2415 (regcache_cooked_write_part): New function.
2416 * regcache.h (regcache_raw_read_part): Declare.
2417 (regcache_raw_write_part): Declare.
2418 (regcache_cooked_read_part): Declare.
2419 (regcache_cooked_write_part): Declare.
2420
2421 2002-08-18 Daniel Jacobowitz <drow@mvista.com>
2422
2423 * remote.c (remote_open_1): Add async_p.
2424 (remote_async_open_1): Delete.
2425 (open_remote_target): Delete.
2426 (remote_open, extended_remote_open): Update calls to remote_open_1.
2427 (remote_async_open, extended_remote_async_open): Call
2428 remote_open_1 instead of remote_async_open_1.
2429
2430 2002-08-19 Mark Kettenis <kettenis@gnu.org>
2431
2432 * blockframe.c: Fix a few coding standard violations.
2433
2434 2002-08-19 Mark Kettenis <kettenis@gnu.org>
2435
2436 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
2437 here from ...
2438 * config/i386/tm-i386sco5.h: ... here. File removed.
2439 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
2440
2441 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
2442 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
2443 (TM_FILE): Set to tm-i386.h.
2444 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
2445 * config/i386/tm-i386v.h: Remove file.
2446 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
2447 instead of "i386/tm-i386v.h".
2448 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
2449 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
2450 "i386/tm-i386v.h".
2451 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
2452 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
2453 "i386/tm-i386.h".
2454
2455 2002-08-18 Mark Kettenis <kettenis@gnu.org>
2456
2457 * config/i386/nm-i386v.h: Add protection against
2458 multiple-inclusion.
2459 (i386_register_u_addr): Remove prototype.
2460 (register_u_addr): New prototype.
2461 (REGISTER_U_ADDR): Redefine accordingly.
2462 * i386v-nat.c: Improve several comments.
2463 (i386_register_u_addr): Change signature and rename to
2464 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
2465 ubase variable.
2466
2467 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2468
2469 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
2470 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
2471 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
2472 deprecated_extract_return_value.
2473 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
2474 rename mips_o32o64_push_arguments.
2475 (mips_gdbarch_init): Update.
2476 (mips_extract_return_value): Delete.
2477 (mips_o32_extract_return_value): Clone mips_extract_return_value.
2478 (mips_o64_extract_return_value): Clone mips_extract_return_value.
2479 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
2480 (mips_n32n64_extract_return_value): Clone
2481 mips_extract_return_value.
2482 (mips_store_return_value): Delete.
2483 (mips_o32_store_return_value): Clone mips_store_return_value.
2484 (mips_o64_store_return_value): Clone mips_store_return_value.
2485 (mips_eabi_store_return_value): Clone mips_store_return_value.
2486 (mips_n32n64_store_return_value): Clone mips_store_return_value.
2487
2488 2002-08-18 Aidan Skinner <aidan@velvet.net>
2489
2490 * ada-lang.c: Use gdb_string.h instead of <string.h>.
2491 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
2492
2493 2002-08-18 Aidan Skinner <aidan@velvet.net>
2494
2495 * ada-lang.c: Run through gdb_indent.sh.
2496 * ada-lang.h: Run through gdb_indent.sh.
2497 * ada-tasks.c: Run through gdb_indent.sh.
2498 * ada-typeprint.c: Run through gdb_indent.sh.
2499 * ada-valprint.c: Run through gdb_indent.sh.
2500
2501 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2502
2503 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
2504 ABI.
2505
2506 2002-08-18 Mark Kettenis <kettenis@gnu.org>
2507
2508 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
2509
2510 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
2511 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
2512
2513 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
2514 write_register_gen instead of write_register_bytes.
2515
2516 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
2517 i[3456]-*-osf1mk* configurations have been made obsolete.
2518 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
2519 i[3456]86-*-osf1mk* hosts obsolete.
2520 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
2521 targets obsolete.
2522 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
2523 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
2524 config/i386/i386m3.mt, config/i386/nm-m3.h,
2525 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
2526 config/i386/i386mk.mh, config/i386/i386mk.mt,
2527 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
2528 obsolete.
2529 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
2530 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
2531 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
2532
2533 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2534
2535 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
2536 (hppa_value_returned_from_stack): Declare.
2537 (hppa_extract_return_value): Declare.
2538 * config/pa/hppa.mt: New file.
2539 * configure.tgt: Recognize hppa*-*-*.
2540 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
2541
2542 2002-08-18 Mark Kettenis <kettenis@gnu.org>
2543
2544 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
2545 comment.
2546
2547 2002-08-17 Mark Kettenis <kettenis@gnu.org>
2548
2549 * top.c (gdb_rl_operate_and_get_next): Make sure
2550 operate-and-get-next functions correctly even when the history
2551 list is completely filled.
2552
2553 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2554
2555 * MAINTAINERS (Target Instruction Set Architectures): Rename
2556 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
2557 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
2558 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
2559 already listed under Host/Native.
2560
2561 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
2562 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
2563 mips*-*-*.
2564
2565 2002-08-17 Andrew Cagney <ac131313@redhat.com>
2566
2567 * config/ia64/ia64.mt: New file.
2568 * config/alpha/alpha.mt: New file.
2569 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
2570 ia64-linux-gnu. Mention that ia64-elf is broken.
2571 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
2572
2573 2002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
2574
2575 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
2576 generic_func_frame_valid instead of func_frame_valid.
2577
2578 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2579
2580 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
2581 procfs appears to be broken when debugging on multi-processor
2582 machines. So enable software single stepping in order to avoid
2583 using the procfs interface to do next/step operations, using
2584 internal breakpoints instead.
2585
2586 * infrun.c (handle_inferior_event): Readjust the stop_pc by
2587 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
2588 make this pc address equal to the value it would have if the
2589 system stepping capability was used. Also set a new flag used
2590 to ensure that we don't readjust the PC one more time later.
2591
2592 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
2593 address by DECR_PC_AFTER_BREAK when software single step is
2594 in use for this architecture, as this has already been taken
2595 care of in handle_inferior_event().
2596
2597 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2598
2599 * infrun.c (handle_inferior_event): Minor reformatting, to make
2600 a rather long condition expression easier to read.
2601
2602 2002-08-16 Andrew Cagney <ac131313@redhat.com>
2603
2604 * Makefile.in (gdbtk.o): Move to end of file.
2605 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
2606 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
2607 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
2608 (gdbtk-wrapper.o, gdbres.o): Ditto.
2609
2610 2002-08-16 Andrew Cagney <ac131313@redhat.com>
2611
2612 * Makefile.in (copying.o): Separate out compile rule.
2613 (hpux-thread.o, procfs.o, signals.o): Ditto.
2614 (v850ice.o, z8k-tdep.o): Ditto.
2615 (tui-file.o): Move to TUI section.
2616 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
2617 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
2618
2619 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2620
2621 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
2622 skip_trampoline_code, for better namespace-proofing.
2623
2624 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
2625
2626 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2627
2628 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
2629
2630 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2631
2632 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
2633 signal, check whether we hit a breakpoint before checking for a
2634 single step breakpoint. Otherwise, GDB fails to notice that a
2635 breakpoint has been hit when stepping onto a breakpoint.
2636
2637 2002-08-16 Keith Seitz <keiths@redhat.com>
2638
2639 * gdb-events.sh (clear_gdb_event_hooks): New function.
2640 * gdb-events.c: Regenerate.
2641 * gdb-events.h: Regenerate.
2642
2643 2002-08-16 Andrew Cagney <ac131313@redhat.com>
2644
2645 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
2646 not_a_sw_breakpoint.
2647 * breakpoint.h (bpstat_stop_status): Add parameter names.
2648
2649 2002-08-16 Grace Sainsbury <graces@redhat.com>
2650
2651 * remote.c (remote_insert_hw_breakpoint)
2652 (remote_remove_hw_breakpoint): Fix calculation of length field
2653 for Z-packet.
2654
2655 2002-08-15 Michael Snyder <msnyder@redhat.com>
2656
2657 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
2658 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
2659 (supply_fpregset): Ditto.
2660
2661 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
2662 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
2663 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
2664 (TARGET_READ_SP): Delete.
2665 (DO_REGISTERS_INFO): Delete.
2666 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
2667 Delete.
2668 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
2669 from macros to functions.
2670
2671 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
2672 (mips_register_convertible, mips_register_convert_to_virtual,
2673 mips_register_convert_to_raw): Make static.
2674 (mips_read_sp): New function.
2675 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
2676 (mips_do_registers_info): Make static.
2677 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
2678 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
2679 (mips_register_convert_from_type, mips_register_convert_to_type):
2680 New functions.
2681 (mips_gdbarch_init): Set up function_start_offset,
2682 register_virtual_size, pc_in_sigtramp.
2683
2684 2002-08-15 Andrew Cagney <ac131313@redhat.com>
2685
2686 * infcmd.c (vector_info): New function.
2687 (_initialize_infcmd): Add command "info vector".
2688 (print_vector_info): New function.
2689
2690 * gdbarch.sh (PRINT_VECTOR_INFO): New method
2691 * gdbarch.h, gdbarch.c: Regenerate.
2692
2693 2002-08-15 Andrew Cagney <ac131313@redhat.com>
2694
2695 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
2696 ``print_all''. Only print vector registers when ``print_all''.
2697
2698 2002-08-15 Andrew Cagney <ac131313@redhat.com>
2699
2700 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
2701 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
2702
2703 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
2704 Add `args' parameter.
2705 * gdbarch.h, gdbarch.c: Regenerate.
2706
2707 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
2708
2709 * infcmd.c (float_info): Call print_float_info.
2710 (print_float_info): New function. By default, print the
2711 floating-point registers.
2712
2713 * arch-utils.h (default_print_float_info): Delete declaration.
2714 * arch-utils.c (default_print_float_info): Delete function.
2715
2716 2002-08-16 Mark Kettenis <kettenis@gnu.org>
2717
2718 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
2719 out define.
2720
2721 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
2722 FRAME.
2723
2724 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
2725 * configure.host: Make i[3456]86-*-aix host obsolete.
2726 * configure.tgt: Make i[3456]86-*-aix target obsolete.
2727 * config/i386/i386aix.mh, config/i386/i386aix.mt,
2728 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
2729 config/i386/xm-i386aix.h: Make files obsolete.
2730 * i386aix-nat.c: Make file obsolete.
2731 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
2732 (i386aix-nat.o): Make target obsolete.
2733
2734 * config/i386/nm-gnu.h: Removed.
2735 * config/i386/nm-i386gnu.h: New file.
2736 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
2737 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
2738 Moved here from ...
2739 * config/i386/tm-i386gnu.h: ... here. Removed.
2740 * config/i386/xm-i386gnu.h: Removed.
2741 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
2742 (NAT_FILE): Set to nm-i386gnu.h.
2743 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
2744 * i386-tdep.c: New file.
2745 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
2746 (i386gnu-tdep.o): Specify dependencies.
2747
2748 2002-08-15 Mark Kettenis <kettenis@gnu.org>
2749
2750 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
2751 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
2752 Adjust a few comments to reflect reality a bit closer.
2753 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
2754 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
2755 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
2756 target_insert_watchpoint, target_remove_watchpoint):
2757 Move defines to ...
2758 * config/i386/nm-i386sco5.h: ... here.
2759 (kernel_u_size): Add prototype. Improve a few comments and add
2760 protection against multiple inclusion.
2761
2762 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
2763 out define.
2764
2765 * uw-thread.c (SP_ARG0): Define if not already defined.
2766 * config/i386/tm-i386.h (SO_ARG0): Remove define.
2767
2768 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
2769
2770 * config/i386/tm-i386.h: Don't include "regcache.h".
2771
2772 * i387-tdep.h (i387_print_float_info): New prototype.
2773 * i387-tdep.c (print_i387_value, print_i387_ext,
2774 print_i387_status_word, print_i387_control_word): Add `struct
2775 ui_file *' argument and use it for output.
2776 (i387_print_float_info): Renamed from i387_float_info. Add
2777 `struct gdbarch *' and `struct ui_file *' arguments and use the
2778 latter for output.
2779 * i386-tdep.c: Include "i387-tdep.h".
2780 (i386_gdbarch_init): Set print_float_info.
2781 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
2782 (FLOAT_INFO): Remove define.
2783
2784 2002-08-13 Michael Snyder <msnyder@redhat.com>
2785
2786 * mips-tdep.c (mips_push_arguments): Rename to
2787 mips_eabi_push_arguments, and tune for EABI.
2788 (MIPS_REGS_HAVE_HOME_P): Delete.
2789 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
2790 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
2791 Delete references to mips_regs_have_home_p.
2792
2793 2002-08-14 Keith Seitz <keiths@redhat.com>
2794
2795 * Makefile.in (install-gdbtk): Create insight plugin directory.
2796 Install plugins.tcl file.
2797
2798 2002-08-14 Keith Seitz <keiths@redhat.com>
2799
2800 * configure.in: Move SUBDIRS to near top of the file so that
2801 --enable options may add things to it.
2802 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
2803 * configure: Regenerate.
2804
2805 2002-08-13 Michael Snyder <msnyder@redhat.com>
2806
2807 * mips-tdep.c (mips_o32o64_push_arguments): New function,
2808 cloned from mips_push_arguments, tuned for o32/o64 ABI.
2809 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
2810
2811 2002-08-13 Andrew Cagney <ac131313@redhat.com>
2812
2813 * vax-tdep.c (vax_get_saved_register): Delete function.
2814 (vax_gdbarch_init): Update.
2815 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
2816 (ns32k_gdbarch_init): Update.
2817 * alpha-tdep.c (alpha_get_saved_register): Delete function.
2818 (alpha_gdbarch_init): Update.
2819
2820 2002-08-13 Andrew Cagney <cagney@redhat.com>
2821
2822 * regcache.c (init_regcache_descr): Overallocate the
2823 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
2824 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
2825 nr_raw_registers.
2826 (set_register_cached): Add range checking assertions. Use
2827 current_regcache.
2828
2829 2002-08-13 Mark Kettenis <kettenis@gnu.org>
2830
2831 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
2832 numbers for MMX registers.
2833
2834 2002-08-13 Andrew Cagney <cagney@redhat.com>
2835
2836 * i386-tdep.c (i386_gdbarch_init): Use
2837 generic_unwind_get_saved_register.
2838
2839 2002-08-13 Kevin Buettner <kevinb@redhat.com>
2840
2841 * procfs.c (procfs_can_use_hw_breakpoint): New function.
2842 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
2843 target vector.
2844 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
2845 Delete. Add comment regarding this now-deleted target method.
2846
2847 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2848
2849 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
2850 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
2851 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
2852 real PC and the page number (if it's within the memory bank window).
2853 (m68hc11_pseudo_register_write): Likewise when saving.
2854 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
2855 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
2856 (m68hc11_register_raw_size): And use 32-bit for it.
2857 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
2858 16K memory bank is used by the prog; also use the virtual pc.
2859
2860 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2861
2862 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
2863 (m68hc11_gdbarch_init): Install it in gdbarch.
2864 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
2865 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
2866 (MSYMBOL_SIZE): New for documentation.
2867 (insn_return_kind): Enum to specify how a function returns.
2868 (frame_extra_info): Cleanup and record the return mode.
2869 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
2870 register in address computation.
2871 (m68hc11_get_return_insn): New to obtain the return instruction used
2872 by the function.
2873 (m68hc11_frame_init_saved_regs): Take into account the return
2874 instruction used by the function for far and interrupt functions.
2875 (m68hc11_init_extra_frame_info): Take into account page register.
2876 (m68hc11_frame_args_address): Adjust according to the return mode.
2877 (show_regs): Print page register only when it's used.
2878
2879 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2880
2881 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
2882 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
2883 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
2884 registers.
2885 (m68hc11_register_raw_size): Likewise.
2886
2887 2002-08-13 Andrew Cagney <cagney@redhat.com>
2888
2889 * i386-tdep.c (i386_register_name): Handle mmx registers.
2890 (mmx_regnum_p): New function.
2891 (i386_mmx_names): New array.
2892 (mmx_num_regs): New variable.
2893 (i386_pseudo_register_read): New function.
2894 (i386_pseudo_register_write): New function.
2895 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
2896
2897 * regcache.c (regcache_raw_read_unsigned): New function.
2898 (regcache_raw_read_signed): New function.
2899 * regcache.h (regcache_raw_read_unsigned): Declare.
2900 (regcache_raw_read_signed): Declare.
2901
2902 2002-08-13 Andrew Cagney <cagney@redhat.com>
2903
2904 * regcache.c (regcache_raw_read_as_address): Delete function.
2905 (regcache_cooked_read_signed): New function.
2906 (regcache_cooked_read_unsigned): New function.
2907 * regcache.h (regcache_cooked_read_signed): Declare.
2908 (regcache_cooked_read_unsigned): Declare.
2909 (regcache_raw_read_as_address): Delete declaration.
2910
2911 * blockframe.c (generic_read_register_dummy): Use
2912 regcache_cooked_read_unsigned.
2913 * i386-tdep.c (i386_extract_struct_value_address): Use
2914 regcache_cooked_read_unsigned.
2915
2916 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2917
2918 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
2919 double sizes according to ELF ABI flags.
2920 (gdbarch_tdep): Record elf_flags.
2921
2922 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2923
2924 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
2925 (m6812_prolog): They can appear in 68HC12 function prologue.
2926 (m68hc11_frame_chain): Cleanup.
2927
2928 2002-08-12 Andrew Cagney <cagney@redhat.com>
2929
2930 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
2931 declarations.
2932 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
2933 (i386_linux_register_raw_size): Delete function.
2934 (i386_linux_init_abi): Update.
2935 * i386-tdep.c (i386_register_raw_size): Delete function.
2936 (i386_register_byte): Delete function.
2937 (i386_gdbarch_init): Update.
2938 (i386_register_size): Delete array.
2939 (i386_register_offset): Delete array.
2940
2941 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
2942 (REGISTER_RAW_SIZE): Delete macro.
2943 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
2944 (REGISTER_BYTE): Delete macro.
2945
2946 2002-08-11 Aidan Skinner <aidan@velvet.net>
2947
2948 * ada-lang.c (ada_lookup_partial_symbol)
2949 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
2950 prototype names so that grep ^func works properly.
2951
2952 * ada-lang.c (ada_array_element_type)
2953 (ada_lookup_partial_symbol): Fix typos in parameter list.
2954
2955 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
2956 Fix prototype names so that grep ^func works properly.
2957
2958 2002-08-10 Andrew Cagney <cagney@redhat.com>
2959 Elena Zannoni <ezannoni@redhat.com>
2960 Martin M. Hunt <hunt@redhat.com>
2961
2962 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
2963 (build_builtin_type_vec128i): Set the vector bit.
2964 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
2965 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
2966 (build_builtin_type_vec64): New function.
2967 (build_builtin_type_vec64i): New function.
2968 (build_gdbtypes): Initialize builtin_type_vec64 and
2969 builtin_type_vec64i.
2970
2971 2002-08-09 Andrew Cagney <cagney@redhat.com>
2972
2973 * regcache.c (regcache_dump): Compare the register offset
2974 with REGISTER_BYTE.
2975 * arch-utils.c (generic_register_byte): New function.
2976 * arch-utils.h (generic_register_byte): Declare.
2977 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
2978 * gdbarch.h, gdbarch.c: Regenerate.
2979
2980 2002-08-09 Andrew Cagney <cagney@redhat.com>
2981
2982 * regcache.c: Include "gdbcmd.h"
2983 (_initialize_regcache): Add commands "maintenance print
2984 registers", "maintenance print raw-registers" and "maintenance
2985 print cooked-registers".
2986 (enum regcache_dump_what): Define.
2987 (dump_endian_bytes): New function.
2988 (regcache_dump): New function.
2989 (regcache_print): New function.
2990 (maintenance_print_registers): New function.
2991 (maintenance_print_raw_registers): New function.
2992 (maintenance_print_cooked_registers): New function.
2993 * Makefile.in (regcache.o): Update dependencies.
2994
2995 2002-08-09 Michael Snyder <msnyder@redhat.com>
2996
2997 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
2998 (mips_push_arguments): Correct some comments. Use paddr_nz
2999 for printing addresses in debug output. Replace static
3000 allocation using MAX_REGISTER_RAW_SIZE with alloca.
3001 (mips_n32n64_push_arguments): New function, cloned from
3002 mips_push_arguments and tuned for the n32/n64 ABI.
3003 (mips_push_register): Buffer needs dynamic allocation.
3004 (mips_print_register): Ditto.
3005 (do_gp_register_row): Ditto.
3006 (mips_store_return_value): Ditto.
3007 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
3008
3009 2002-08-09 Don Howard <dhoward@redhat.com>
3010
3011 * memattr.c (mem_info_command): Print special case of upper bound
3012 as max CORE_ADDR + 1.
3013
3014 2002-08-08 Michael Snyder <msnyder@redhat.com>
3015
3016 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
3017 returns structs by ref if they're too big to fit in two registers.
3018
3019 2002-08-09 Kevin Buettner <kevinb@redhat.com>
3020
3021 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
3022 saved regs value.
3023 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
3024 mips_find_saved_regs().
3025 (mips_pop_frame): Likewise.
3026
3027 2002-08-09 Kevin Buettner <kevinb@redhat.com>
3028
3029 * blockframe.c (frame_saved_regs_register_unwind): Revise
3030 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
3031 frames are in use.
3032
3033 2002-08-09 Grace Sainsbury <graces@redhat.com>
3034
3035 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
3036 T-packets; the 'a' is not taken as a register number.
3037 (remote_check_watch_resources, remote_stopped_by_watchpoint)
3038 (remote_stopped_data_address): New functions; add to target
3039 vector.
3040 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
3041 prototypes to match other implementations of this
3042 function. replace integer argument with pointer -- the length
3043 field in the Z-packet is the length of what is pointed to or 1 if
3044 pointer is null. Add to target vector.
3045 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
3046 target vector.
3047
3048 From Mark Salter:
3049 * remote.c (remote_wait): Add support to extract optional
3050 watchpoint information from T-packet. Ignore unrecognized
3051 optional info in T-packet.
3052 (remote_async_wait): Ditto.
3053
3054 2002-08-09 Corinna Vinschen <vinschen@redhat.com>
3055
3056 * cli/cli-dump.c: Change fopen modes to use binary open modes
3057 as defined in include/fopen-bin.h throughout.
3058
3059 2002-08-08 Michael Snyder <msnyder@redhat.com>
3060
3061 * mips-tdep.c: Minor whitespace and indentation clean-ups.
3062
3063 2002-08-08 Kevin Buettner <kevinb@redhat.com>
3064
3065 * doublest.c (store_floating): Avoid floatformat_from_doublest()
3066 assertion failure by returning early after a warning.
3067
3068 2002-08-08 Kevin Buettner <kevinb@redhat.com>
3069
3070 * mips-tdep.c (mips_find_saved_regs): Make static.
3071 (mips_frame_init_saved_regs): New function.
3072 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
3073 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
3074 (mips_find_saved_regs): Delete declaration.
3075
3076 2002-08-08 Grace Sainsbury <graces@redhat.com>
3077
3078 * remote.c (remote_wait, remote_async_wait): Change
3079 thread_num from int to ULONGEST.
3080 (unpack_varlen_hex): Change result parameter from
3081 int * to ULONGEST *.
3082
3083 2002-08-08 Andrew Cagney <ac131313@redhat.com>
3084
3085 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
3086 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
3087 powerpc*-*-*.
3088 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
3089
3090 2002-08-08 Andrew Cagney <cagney@redhat.com>
3091
3092 * gcore.c (override_derive_stack_segment): Delete variable.
3093 (preempt_derive_stack_segment): Delete function.
3094 (derive_stack_segment): Delete function.
3095 (default_derive_stack_segment): Renamed to derive_stack_segment.
3096 (override_derive_heap_segment): Delete variable.
3097 (preempt_derive_heap_segment): Delete function.
3098 (derive_heap_segment): Delete function.
3099 (default_derive_heap_segment): Rename to derive_heap_segment.
3100
3101 2002-08-06 Michael Snyder <msnyder@redhat.com>
3102
3103 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
3104 * mips-tdep.c (mips_EABI_use_struct_convention,
3105 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
3106 New functions. (mips_use_struct_convention): Delete.
3107 (mips_gdbarch_init): set use_gdbarch_convention.
3108
3109 2002-08-06 Michael Snyder <msnyder@redhat.com>
3110
3111 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
3112 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
3113 mips_o32_reg_struct_has_addr): New functions.
3114 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
3115
3116 2002-08-07 Andrew Cagney <ac131313@redhat.com>
3117
3118 * regcache.c (pseudo_register): Delete function.
3119 (fetch_register): Delete function.
3120 (store_register): Delete function.
3121 (regcache_raw_read, legacy_read_register_gen): Use
3122 target_fetch_registers instead of fetch_register.
3123 (legacy_write_register_gen, regcache_raw_write): Use
3124 target_store_register instead of store_register.
3125 (write_register_bytes): Ditto.
3126
3127 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
3128 (STORE_PSEUDO_REGISTER): Delete.
3129 * gdbarch.h, gdbarch.c: Regenerate.
3130
3131 2002-08-06 Corinna Vinschen <vinschen@redhat.com>
3132
3133 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
3134 write dump file binary.
3135
3136 2002-08-05 Michael Snyder <msnyder@redhat.com>
3137
3138 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
3139 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
3140 (mips_gdbarch_init): Set N32 target to be mips64.
3141
3142 2002-08-06 Kevin Buettner <kevinb@redhat.com>
3143
3144 * frame.c (find_saved_register): Break out of loop once saved
3145 register address is found. Don't mention sparc in loop comment
3146 anymore.
3147
3148 2002-08-06 Kevin Buettner <kevinb@redhat.com>
3149
3150 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
3151 mips_default_saved_regsize to 8.
3152
3153 2002-08-06 Andrew Cagney <ac131313@redhat.com>
3154
3155 * gcore.c: Do not include <sys/procfs.h>.
3156 * Makefile.in (gcore.o): Update dependencies.
3157
3158 2002-08-06 Andrew Cagney <cagney@redhat.com>
3159
3160 * configure.tgt: Make arc-*-* obsolete.
3161 * NEWS: Mention that arc-*-* has been identifed as obsolete.
3162 * MAINTAINERS: Make arc-elf obsolete.
3163 * arc-tdep.c: Make file obsolete.
3164 * config/arc/arc.mt: Ditto.
3165 * config/arc/tm-arc.h: Ditto.
3166
3167 2002-08-05 Theodore A. Roth <troth@verinet.com>
3168
3169 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
3170
3171 2002-08-05 Andrew Cagney <ac131313@redhat.com>
3172
3173 * mcore-tdep.c (mcore_gdbarch_init): Use
3174 generic_unwind_get_saved_register instead of
3175 generic_get_saved_register.
3176 * v850-tdep.c (v850_gdbarch_init): Ditto.
3177 * frv-tdep.c (frv_gdbarch_init): Ditto.
3178 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3179 * s390-tdep.c (s390_gdbarch_init): Ditto.
3180 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
3181 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
3182 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
3183
3184 2002-08-05 Joel Brobecker <brobecker@gnat.com>
3185
3186 * objfiles.h: Add missing #include "symfile.h"
3187
3188 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
3189
3190 2002-08-04 Andrew Cagney <ac131313@redhat.com>
3191
3192 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
3193 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
3194 of FIELD_BITSIZE.
3195
3196 2002-08-04 Daniel Jacobowitz <drow@mvista.com>
3197
3198 * NEWS: Cleanup and nitpick.
3199
3200 2002-08-03 Andrew Cagney <ac131313@redhat.com>
3201
3202 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
3203
3204 2002-08-03 Andrew Cagney <ac131313@redhat.com>
3205
3206 * Makefile.in (gdbtk-bp.o): Update dependencies.
3207 (gdbtk-register.o): Ditto.
3208 (gdbtk-varobj.o): Ditto.
3209
3210 2002-08-03 Andrew Cagney <cagney@redhat.com>
3211
3212 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
3213 m68hc11_fetch_pseudo_register.
3214 (m68hc11_pseudo_register_write): Replace
3215 m68hc11_store_pseudo_register.
3216 (m68hc11_gdbarch_init): Update.
3217
3218 Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
3219
3220 * gdbarch.sh: Include "gdb_string.h".
3221 * gdbarch.c: Regenerate.
3222
3223 * regcache.c: Include "gdb_string.h".
3224 * ax-general.c: Ditto.
3225 * varobj.c: Ditto.
3226 * std-regs.c: Ditto.
3227 * fbsd-proc.c: Ditto.
3228 * thread.c: Ditto.
3229
3230 * Makefile.in (regcache.o): Update dependencies.
3231 (thread.o, gdbarch.o): Ditto.
3232 (ax-general.o, gdbarch.o): Ditto.
3233 (varobj.o, std-regs.o): Ditto.
3234 (fbsd-proc.o): Specify dependencies.
3235
3236 2002-08-02 Andrew Cagney <cagney@redhat.com>
3237
3238 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
3239 regnum.
3240 (regcache_cooked_write): Ditto.
3241
3242 2002-08-02 Andrew Cagney <ac131313@redhat.com>
3243
3244 * regcache.c (regcache_cooked_read): New function.
3245 (regcache_cooked_write): New function.
3246 (read_register_gen): Rewrite using regcache_cooked_read.
3247 (write_register_gen): Rewrite using regcache_cooked_write.
3248
3249 * regcache.h (regcache_cooked_read, regcache_cooked_write):
3250 Declare.
3251
3252 2002-08-02 Andrew Cagney <cagney@redhat.com>
3253
3254 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
3255 Replace the architecture methods register_read and register_write.
3256 * gdbarch.h, gdbarch.c: Regenerate.
3257 * regcache.c (init_regcache_descr): Update.
3258 (read_register_gen): Update.
3259 (write_register_gen): Update.
3260 (supply_register): Update comment.
3261
3262 * sh-tdep.c (sh_gdbarch_init): Update.
3263 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
3264 `regcache' and `gdbarch' parameters. Make `buffer' a void
3265 pointer. Update code.
3266 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
3267 `regcache' and `gdbarch' parameters. Make `buffer' a constant
3268 void pointer. Update code.
3269 (sh64_register_write): Delete.
3270 (sh4_register_read): Delete.
3271 (sh64_register_read): Delete.
3272 (sh4_register_write): Delete.
3273 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
3274 void pointer, `to' parameter a void pointer.
3275 (sh_sh64_register_convert_to_raw): Ditto.
3276
3277 2002-08-01 Kevin Buettner <kevinb@redhat.com>
3278
3279 * mips-tdep.c (mips_register_virtual_type): Use architecture
3280 invariant return values.
3281
3282 2002-08-01 Andrew Cagney <cagney@redhat.com>
3283
3284 * linux-proc.c: Include "gdb_string.h".
3285 * Makefile.in (linux-proc.o): Update dependency list.
3286
3287 2002-08-01 Kevin Buettner <kevinb@redhat.com>
3288
3289 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
3290 comment.
3291
3292 2002-08-01 Grace Sainsbury <graces@redhat.com>
3293
3294 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
3295 to_insert_watchpoint, to_remove_watchpoint,
3296 to_stopped_by_watchpoint, to_stopped_data_address,
3297 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
3298 target vecctor. Define their corresponding macros so they call
3299 them.
3300
3301 * target.c: Add default and debug versions of for
3302 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
3303 to_insert_watchpoint, to_remove_watchpoint,
3304 to_stopped_by_watchpoint, to_stopped_data_address,
3305 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
3306
3307 2002-08-01 Kevin Buettner <kevinb@redhat.com>
3308
3309 * mips-tdep.c (mips_register_virtual_type): New function.
3310 (mips_gdbarch_init): Register mips_register_virtual_type()
3311 with gdbarch machinery.
3312 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
3313 this file instead of tm-bigmips.h.
3314 (MIPS_REGSIZE): Delete this macro.
3315 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
3316 multiarch version in mips-tdep.c will be found.
3317
3318 2002-08-01 Andrew Cagney <cagney@redhat.com>
3319
3320 * NEWS: Menion that CHILL has been made obsolete.
3321
3322 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
3323 * stabsread.c (read_range_type): Ditto.
3324 * gdbtypes.h: Ditto.
3325 * language.c (binop_type_check): Ditto.
3326 (binop_result_type): Ditto.
3327 (integral_type): Ditto.
3328 (character_type): Ditto.
3329 (string_type): Ditto.
3330 (boolean_type): Ditto.
3331 (structured_type): Ditto.
3332 (lang_bool_type): Ditto.
3333 (binop_type_check): Ditto.
3334 * language.h (_LANG_chill): Ditto.
3335 * dwarfread.c (set_cu_language): Ditto.
3336 * dwarfread.c (CHILL_PRODUCER): Ditto.
3337 * dwarfread.c (handle_producer): Ditto.
3338 * expression.h (enum exp_opcode): Ditto.
3339 * eval.c: Ditto for comments.
3340 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
3341 * expprint.c (print_subexp): Ditto.
3342 (print_subexp): Ditto.
3343 * valops.c (value_cast): Ditto.
3344 (search_struct_field): Ditto.
3345 * value.h (COERCE_VARYING_ARRAY): Ditto.
3346 * symfile.c (init_filename_language_table): Ditto.
3347 (add_psymbol_with_dem_name_to_list): Ditto.
3348 * valarith.c (value_binop): Ditto.
3349 (value_neg): Ditto.
3350 * valops.c (value_slice): Ditto.
3351 * symtab.h (union language_specific): Ditto.
3352 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
3353 (SYMBOL_DEMANGLED_NAME): Ditto.
3354 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
3355 * defs.h (enum language): Ditto.
3356 * symtab.c (got_symtab): Ditto.
3357 * utils.c (fprintf_symbol_filtered): Ditto.
3358
3359 * ch-typeprint.c: Make file obsolete.
3360 * ch-valprint.c: Make file obsolete.
3361 * ch-lang.h: Make file obsolete.
3362 * ch-exp.c: Make file obsolete.
3363 * ch-lang.c: Make file obsolete.
3364
3365 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
3366 CHILL_LIB.
3367 (TARGET_FLAGS_TO_PASS): Ditto.
3368 (CHILLFLAGS): Obsolete.
3369 (CHILL): Obsolete.
3370 (CHILL_FOR_TARGET): Obsolete.
3371 (CHILL_LIB): Obsolete.
3372 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
3373 ch-valprint.c.
3374 (HFILES_NO_SRCDIR): Remove ch-lang.h.
3375 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
3376 ch-lang.o.
3377 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
3378 targets.
3379
3380 2002-07-31 Joel Brobecker <brobecker@gnat.com>
3381
3382 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
3383 This does not change anything at the moment, but will be helpful
3384 later when full Ada support is integrated.
3385
3386 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3387
3388 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
3389 help message.
3390
3391 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3392
3393 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
3394 and save it in a local variable. Use variable in later test.
3395
3396 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3397
3398 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
3399 test. (Thanks to Daniel Jacobowitz.)
3400
3401 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3402
3403 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
3404 (mips_abi_strings): Add "n64".
3405 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
3406
3407 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3408
3409 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
3410 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
3411
3412 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3413
3414 * utils.c (host_pointer_to_address, address_to_host_pointer):
3415 Use gdb_assert() instead of explicit call to internal_error().
3416
3417 2002-07-30 Kevin Buettner <kevinb@redhat.com>
3418
3419 * Makefile.in (rs6000-nat.o): Update dependencies.
3420
3421 From Nicholas Duffek:
3422 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
3423 (aix-thread.o): New rule.
3424 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
3425 * config/powerpc/aix432.mh: New file.
3426
3427 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
3428
3429 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
3430 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
3431 (fetch_core_registers, ppc_linux_supply_gregset)
3432 (ppc_linux_supply_fpregset): New functions.
3433 (ppc_linux_regset_core_fns): New.
3434 (_initialize_ppc_linux_tdep): Call add_core_fns.
3435 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
3436 and ppc_linux_supply_gregset.
3437 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
3438 (supply_fpregset): Call ppc_linux_supply_fpregset.
3439 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
3440 corelow.o.
3441 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
3442
3443 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
3444
3445 * symtab.c (lookup_symbol): Demangle before lowercasing.
3446
3447 2002-07-30 Andrew Cagney <ac131313@redhat.com>
3448
3449 * symtab.h: Replace #include "gdb_obstack.h" with opaque
3450 declaration.
3451 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
3452 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
3453 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
3454 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
3455 "gdb_string.h".
3456 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
3457 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
3458 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
3459 (avr-tdep.o, mon960-rom.o): Ditto.
3460 (aout_stabs_gnu_h): Define.
3461 (symtab_h): Remove $(gdb_obstack_h).
3462
3463 2002-07-30 Jim Blandy <jimb@redhat.com>
3464
3465 Patch from David Carlton <carlton@math.stanford.edu>:
3466 * gdbinit.in: Move the `dir' commands that add GDB's own source
3467 directory to the search path to the end, so that the `gdb' source
3468 directory will be searched first.
3469
3470 2002-07-29 Andrew Cagney <ac131313@redhat.com>
3471
3472 * gdb_obstack.h: New file.
3473 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
3474 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
3475 * objfiles.h: Include "gdb_obstack.h".
3476 * Makefile.in (gdb_obstack_h): Define.
3477 (symtab_h): Add $(gdb_obstack_h).
3478 (objfiles_h): Add $(gdb_obstack_h).
3479
3480 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
3481 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
3482 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
3483 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
3484 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
3485 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
3486 * symfile.c, coffread.c, c-typeprint.c: Ditto.
3487 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
3488
3489 * Makefile.in (bcache.o): Update dependencies.
3490 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
3491 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
3492 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
3493 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
3494 (stabsread.o, symfile.o, symmisc.o): Ditto.
3495 (symtab.o, typeprint.o, macroexp.o): Ditto.
3496 (macrotab.o, mdebugread.o): Ditto.
3497 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
3498 (coff_ecoff_h, aout_aout64_h): Define.
3499 (aout_stabs_gnu_h, libaout_h): Define.
3500
3501 2002-07-29 Andrew Cagney <cagney@redhat.com>
3502
3503 * regcache.c (struct regcache_descr): Rename nr_registers to
3504 nr_cooked_registers. Revise comments describing the structure
3505 member fields.
3506 (init_regcache_descr): Update.
3507 (init_legacy_regcache_descr): Update.
3508 (read_register_gen, write_register_gen): When a cooked register in
3509 the raw register range, directly access the value from the raw
3510 register cache.
3511
3512 2002-07-29 Andrew Cagney <ac131313@redhat.com>
3513
3514 * z8k-tdep.c: Do not include "obstack.h".
3515 * h8300-tdep.c, h8500-tdep.c: Ditto.
3516 * m68hc11-tdep.c, sh-tdep.c: Ditto.
3517 * valprint.c, v850-tdep.c: Ditto.
3518 * d10v-tdep.c, mn10300-tdep.c: Ditto.
3519 * mn10200-tdep.c: Ditto.
3520
3521 * Makefile.in (z8k-tdep.o): Update dependencies.
3522 (m68hc11-tdep.o, valprint.o): Ditto.
3523 (v850-tdep.o, d10v-tdep.o): Ditto.
3524 (mn10300-tdep.o, sparc-tdep.o): Ditto.
3525 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
3526 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
3527 (sh_opc_h, gdb_sim_sh_h): Define.
3528 (elf_sh_h, elf_bfd_h): Define.
3529 (opcode_m68hc11_h): Define.
3530 (OPCODES_SRC, OPCODES_DIR): define.
3531 (OPCODES): Use $(OPCODES_DIR).
3532 (gdb_sim_d10v_h): Rename sim_d10v_h.
3533 (gdb_sim_arm_h): Rename sim_arm_h.
3534
3535 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3536
3537 * utils.c (host_pointer_to_address, address_to_host_pointer):
3538 Change internal_error() message to indicate function responsible
3539 for the error.
3540
3541 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3542
3543 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
3544 calls to local_hex_string_custom().
3545
3546 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3547
3548 * irix5-nat.c: Move IRIX shared library support from here...
3549 * solib-irix.c: ...to here. Revised substantially to work with
3550 generic solib framework.
3551
3552 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
3553 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
3554 * mips-irix-tdep.c: New file.
3555
3556 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
3557 (mips-irix-tdep.o, solib-irix.o): New rules.
3558 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
3559 solib-irix.o.
3560 * config/mips/irix6.mt (TDEPFILES): Likewise.
3561 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
3562
3563 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3564
3565 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
3566 disabled (via ``#if 0'') includes.
3567
3568 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3569
3570 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
3571 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
3572 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
3573 Add support for the fpscr register.
3574 * rs6000-nat.c (regmap, fetch_inferior_registers)
3575 (store_inferior_registers, fetch_core_registers): Likewise.
3576
3577 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3578
3579 * rs6000-nat.c (language.h): Include.
3580 (special_regs): Delete this array.
3581 (regmap): New function.
3582 (fetch_register, store_register): Use regmap() to map gdb
3583 register numbers to ptrace register numbers. Also, use
3584 outputs from regmap() to make decisions regarding type of
3585 ptrace() call to make. In particular, don't compare against
3586 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
3587 (fetch_inferior_registers, store_inferior_registers): Where
3588 possible, obtain register numbers from tdep struct. Don't
3589 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
3590 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
3591 (LAST_UISA_SP_REGNUM): Delete.
3592
3593 2002-07-25 Kevin Buettner <kevinb@redhat.com>
3594
3595 * rs6000-nat.c (ppc-tdep.h): Include.
3596 (fetch_registers, store_register, fetch_core_registers): Don't
3597 access registers[] directly. Instead, use supply_register() or
3598 regcache_collect() as appropriate.
3599 (find_toc_address): Format hex address with local_hex_string().
3600
3601 2002-07-25 Andrew Cagney <ac131313@redhat.com>
3602
3603 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
3604 bfd/elf32-frv.c.
3605
3606 2002-07-24 Tom Tromey <tromey@redhat.com>
3607
3608 * jv-exp.y: Marked all strings with _().
3609 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
3610 internal_error.
3611 (MethodInvocation, CastExpression, parse_number, yyerror,
3612 java_type_from_name, push_expression_name, yylex): Typo fixes.
3613
3614 2002-07-24 Daniel Jacobowitz <drow@mvista.com>
3615
3616 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
3617 (tee_file_flush, tee_file_write, tee_file_fputs)
3618 (tee_file_isatty): New.
3619 * ui-file.h (tee_file_new): Add prototype.
3620
3621 2002-07-24 Aidan Skinner <aidan@velvet.net>
3622
3623 * ada-lang.c: Change k&r style function definitions to prototyped
3624 form.
3625 * ada-typeprint.c: Change k&r style function definitions to prototyped
3626 form.
3627 * ada-valprint.c: Change k&r style function definitions to prototyped
3628 form.
3629
3630 2002-07-24 Andrew Cagney <cagney@redhat.com>
3631
3632 * README: Remove reference to remote-bug.
3633 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
3634 remote-bug.c.
3635 (m88k-nat.o): Delete rule.
3636 (m88k-tdep.o): Delete rule.
3637 (remote-bug.o): Delete rule.
3638 * MAINTAINERS: Mark as obsolete.
3639 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
3640 * m88k-tdep.c: Make file obsolete.
3641 * config/m88k/m88k.mh: Ditto.
3642 * config/m88k/delta88v4.mh: Ditto.
3643 * config/m88k/delta88v4.mt: Ditto.
3644 * config/m88k/delta88.mt: Ditto.
3645 * config/m88k/delta88.mh: Ditto.
3646 * remote-bug.c: Ditto.
3647 * config/m88k/tm-delta88.h: Ditto.
3648 * config/m88k/nm-delta88v4.h: Ditto.
3649 * config/m88k/xm-delta88.h: Ditto.
3650 * config/m88k/xm-dgux.h: Ditto.
3651 * config/m88k/tm-m88k.h: Ditto.
3652 * config/m88k/nm-m88k.h: Ditto.
3653 * config/m88k/tm-delta88v4.h: Ditto.
3654 * m88k-nat.c: Ditto.
3655 * cxux-nat.c: Ditto.
3656 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
3657 and m88*-*-* obsolete.
3658 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
3659 m88*-*-* obsolete.
3660
3661 2002-07-24 Andrew Cagney <cagney@redhat.com>
3662
3663 * findvar.c (extract_unsigned_integer): Make `addr' parameter
3664 constant. Same for local pointer variables.
3665 (extract_signed_integer): Ditto.
3666 * defs.h (extract_unsigned_integer): Update.
3667 (extract_signed_integer): Update.
3668
3669 2002-07-24 Andrew Cagney <cagney@redhat.com>
3670
3671 * regcache.c (regcache_raw_write): Change buf parameter to a
3672 constant void pointer.
3673 (regcache_raw_read): Change buf parameter to a void pointer.
3674 (legacy_write_register_gen): Change myaddr parameter a constant
3675 void pointer.
3676 (supply_register): Change val parameter to a const void pointer.
3677 * regcache.h (regcache_raw_write): Update declaration.
3678 (regcache_raw_read): Update declaration.
3679 (supply_register): Update declaration.
3680
3681 2002-07-24 Tom Tromey <tromey@redhat.com>
3682
3683 * defs.h (gdb_readline_wrapper): Declare.
3684 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
3685 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
3686 * top.c (gdb_readline_wrapper): New function.
3687 (command_line_input): Use it.
3688
3689 2002-07-24 Andrew Cagney <cagney@redhat.com>
3690
3691 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
3692 regcache_read and regcache_write.
3693 (regcache_raw_read_as_address): Replace regcache_read_as_address.
3694 * regcache.c: Update.
3695 * sh-tdep.c (sh64_push_arguments): Update comment.
3696 (sh_pseudo_register_read): Update.
3697 (sh_pseudo_register_write): Update.
3698 (sh4_register_read): Update.
3699 (sh4_register_write): Update.
3700 (sh64_pseudo_register_read): Update.
3701 (sh64_pseudo_register_write): Update.
3702 (sh64_register_read): Update.
3703 (sh64_register_write): Update.
3704 * i386-tdep.c (i386_extract_return_value): Update.
3705 (i386_extract_struct_value_address): Update.
3706 (i386_extract_return_value): Update.
3707 * blockframe.c (generic_read_register_dummy): Update.
3708 (generic_call_dummy_register_unwind): Update
3709 * infrun.c (write_inferior_status_register): Update.
3710
3711 2002-07-23 Jim Blandy <jimb@redhat.com>
3712
3713 * parser-defs.h (expression_context_pc): Make this extern.
3714 (Thanks to Michael Snyder.)
3715
3716 2002-07-23 Andrew Cagney <ac131313@redhat.com>
3717
3718 GDB 5.2.1 released from 5.2 branch.
3719 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
3720 * README: Update to mention 5.2.1.
3721
3722 2002-07-23 Mark Salter <msalter@redhat.com>
3723
3724 * remote.c (remote_read_bytes): Fix check for error.
3725
3726 2002-07-22 Kevin Buettner <kevinb@redhat.com>
3727
3728 * aix-thread.c (language.h): Include.
3729 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
3730 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
3731 Print newlines at end of debug messages.
3732 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
3733 (pdc_write_data): Use local_hex_string() instead of %llx formats.
3734
3735 2002-07-22 Kevin Buettner <kevinb@redhat.com>
3736
3737 * aix-thread.c (ppc-tdep.h): Include.
3738 (special_register_p): New function.
3739 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
3740 (store_regs_user_thread): Use register number information from
3741 gdbarch_tdep struct instead of hardcoded offsets relative to
3742 FIRST_UISA_SP_REGNUM.
3743 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
3744 special_register_p() instead of using FPLAST_REGNUM and
3745 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
3746 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
3747 will be MQ's register number.
3748
3749 2002-07-22 Michael Snyder <msnyder@redhat.com>
3750
3751 * aix-thread.c (ops): Rename to aix_thread_ops.
3752 (base_ops): Rename to base_target.
3753 (ops_attach): Rename to aix_thread_attach.
3754 (ops_detach): Rename to aix_thread_detach.
3755 (ops_resume): Rename to aix_thread_detach.
3756 (ops_wait): Rename to aix_thread_wait.
3757 (ops_kill): Rename to aix_thread_kill.
3758 (init_ops): Rename to init_aix_thread_ops.
3759 (ops_fetch_register): Rename to aix_thread_fetch_register.
3760 (ops_store_register): Rename to aix_thread_store_register.
3761 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
3762 (ops_thread_alive): Rename to aix_thread_thread_alive.
3763 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
3764 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
3765 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
3766 (fetch_regs_lib): Rename to fetch_regs_user_thread.
3767 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
3768 (store_regs_lib): Rename to store_regs_user_thread.
3769 (store_regs_kern): Rename to store_regs_kernel_thread.
3770
3771 2002-07-22 Michael Snyder <msnyder@redhat.com>
3772
3773 * aix-thread.c (ops_prepare_to_store): Eliminate.
3774 (init_ops): Don't initialize ops.prepare_to_store.
3775 (store_regs_kern): Pre-fetch register buffers from child,
3776 because some registers may not be in the cache. Copy
3777 regs from register cache only if they are cached.
3778 (store_regs_lib): Copy regs from register cache only
3779 if they are cached.
3780 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
3781 fill_gprs64): Ditto.
3782
3783 2002-07-22 Kevin Buettner <kevinb@redhat.com>
3784
3785 * aix-thread.c (gdb_assert.h): Include.
3786 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
3787 register sizes (from register cache) match size of buffer holding
3788 register data.
3789 (fill_sprs32): Change parameter types to match those in the ptrace()
3790 buffer.
3791 (store_regs_lib): Likewise, but for 32-bit temporary variables.
3792 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
3793
3794 2002-07-22 Michael Snyder <msnyder@redhat.com>
3795
3796 * aix-thread.c (supply_sprs64): Cosmetic change.
3797 (supply_sprs32): Cosmetic change.
3798 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
3799 (fill_sprs64): Use regcache_collect instead of read_register.
3800 (store_regs_lib): Use regcache_collect instead of
3801 read_register. Use fill_sprs32 instead of fill_sprs64,
3802 if debugging a 32-bit architecture.
3803 (store_regs_kern): Use fill_gprs64 etc. to pull the values
3804 out of the register cache, instead of passing a pointer into
3805 the register cache directly to ptrace. Use regcache_collect
3806 insteaad of read_register.
3807 (ops_prepare_to_store): Use target_read_registers instead
3808 of read_register_bytes.
3809
3810 2002-07-20 Aidan Skinner <aidan@velvet.net>
3811
3812 * MAINTAINERS: Add self under write after approval.
3813
3814 2002-07-20 Aidan Skinner <aidan@velvet.net>
3815
3816 * ada-tasks.c: Change k&r style function definitions to prototyped
3817 form.
3818
3819 2002-07-19 Andrew Cagney <ac131313@redhat.com>
3820
3821 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
3822 * x86-64-tdep.c: Include "objfiles.h".
3823 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
3824 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
3825
3826 2002-07-17 Michal Ludvig <michal@suse.cz>
3827
3828 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
3829 (update_context): Initialise cfa variable.
3830
3831 2002-07-17 Michael Snyder <msnyder@redhat.com>
3832
3833 * aix-thread.c: Shorten some long lines.
3834 Bring comments into line with code spec.
3835
3836 2002-07-18 Joel Brobecker <brobecker@gnat.com>
3837
3838 * infrun.c: Re-indent using gdb_indent.sh.
3839
3840 2002-07-18 Joel Brobecker <brobecker@gnat.com>
3841
3842 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
3843 Leave the indentation temporarily untouched, to minimize the diffs.
3844
3845 2002-07-18 Elena Zannoni <ezannoni@redhat.com>
3846
3847 * stabsread.c: Make os9k sections of the code obsolete,
3848 for real this time.
3849 * stabsread.h: Make os9k sections of the code obsolete.
3850
3851 2002-07-18 Michal Ludvig <mludvig@suse.cz>
3852
3853 * linux-low.c (regsets_store_inferior_registers): Add free()
3854 at the end of a loop to prevent memory leak.
3855 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
3856 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
3857 * config/sparc/tm-sp64linux.h: Make the rest of #endif
3858 line a comment.
3859 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
3860
3861 2002-07-17 Jim Blandy <jimb@redhat.com>
3862
3863 * macrocmd.c (info_macro_command): Remove newline from error
3864 message.
3865
3866 2002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
3867
3868 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
3869 (sh_gdbarch_init): Use it for sh-dsp.
3870
3871 2002-07-16 Kevin Buettner <kevinb@redhat.com>
3872
3873 * dwarf2read.c (read_initial_length): Handle older, non-standard,
3874 64-bit DWARF2 format.
3875
3876 2002-07-16 Joel Brobecker <brobecker@gnat.com>
3877
3878 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
3879 <sys/proc.h> when not available.
3880
3881 2002-07-16 Andrew Cagney <ac131313@redhat.com>
3882
3883 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
3884 * stabsread.c: Make os9k sections of the code obsolete.
3885 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
3886 * config/i386/i386os9k.mt: Make file obsolete.
3887 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
3888 (COMMON_OBS): Remove os9kread.o
3889 (SFILES): Remove os9kread.c.
3890 (os9kread.o, remote-os9k.o): Make target obsolete.
3891 * remote-os9k.c: Make file obsolete.
3892 * os9kread.c: Make file obsolete.
3893 * Makefile.in
3894
3895 2002-07-16 Andrew Cagney <ac131313@redhat.com>
3896
3897 * NEWS: Mention that the FR30 has been made obsolete.
3898 * fr30-tdep.c: Make file obsolete.
3899 * config/fr30/tm-fr30.h: Ditto.
3900 * config/fr30/fr30.mt: Ditto.
3901 * configure.tgt: Make fr30-*-elf obsolete.
3902 * MAINTAINERS: Make fr30-elf obsolete.
3903
3904 2002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
3905
3906 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
3907 found is not inside a section.
3908
3909 2002-07-15 Kevin Buettner <kevinb@redhat.com>
3910
3911 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
3912 strerror().
3913 (pdc_realloc): Use xrealloc() instead of realloc().
3914
3915 2002-07-15 Kevin Buettner <kevinb@redhat.com>
3916
3917 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
3918 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
3919 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
3920 macros.
3921
3922 2002-07-15 Kevin Buettner <kevinb@redhat.com>
3923
3924 * aix-thread.c (ptrace_check): Eliminate goto.
3925 (sync_threadlists): Eliminate gotos. Also, fix array overrun
3926 problem.
3927
3928 2002-07-15 Kevin Buettner <kevinb@redhat.com>
3929
3930 * aix-thread.c (gdbcmd.h): Include.
3931 (DEBUG, DBG, DBG2, dbg): Eliminate.
3932 (debug_aix_thread): New static global.
3933 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
3934 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
3935 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
3936 invocations to DBG and DBG2 macros to test against
3937 ``debug_aix_thread'' and call fprintf_unfiltered().
3938 (_initialize_aix_thread): Add new command "set debug aix-thread".
3939
3940 2002-07-15 Andrew Cagney <ac131313@redhat.com>
3941
3942 From Gerhard Tonn <TON@de.ibm.com>:
3943 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
3944 instead of supply_register.
3945
3946 2002-07-15 Andrew Cagney <ac131313@redhat.com>
3947
3948 * dwarf2cfi.c: Include "gdb_assert.h".
3949 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
3950 non-NULL.
3951 (update_context): Do not use __func__. Add missing ``break''.
3952 (update_context): Do not use __func__.
3953
3954 2002-07-15 Elena Zannoni <ezannoni@redhat.com>
3955
3956 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
3957 and its setting. Set gdbarch instruction printing functions
3958 directly. For non-rs6000 case use new function
3959 gdb_print_insn_powerpc.
3960 (gdb_print_insn_powerpc): New function.
3961
3962 2002-07-13 Andrew Cagney <ac131313@redhat.com>
3963
3964 * NEWS: Mention that the d30v has been marked obsolete.
3965 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
3966 * configure.tgt: Mark d30v-*-* as obsolete.
3967 * d30v-tdep.c: Mark file as obsolete.
3968 * config/d30v/d30v.mt: Ditto.
3969 * config/d30v/tm-d30v.h: Ditto.
3970
3971 2002-07-13 Aidan Skinner <aidan@velvet.net>
3972
3973 * ada-tasks.c (add_task_entry): replace calls to
3974 malloc() with xmalloc
3975 * ada-tasks.c (init_task_list): replace calls to free with xfree()
3976
3977 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
3978 ada_finish_decode_line_1, all_sals_for_line
3979 ada_breakpoint_rewrite): replace calls to free() with xfree()
3980
3981 2002-07-12 Kevin Buettner <kevinb@redhat.com>
3982
3983 From Nicholas Duffek (with minor changes by Martin Hunt,
3984 Louis Hamilton, and Kevin Buettner):
3985 * aix-thread.c: New file.
3986
3987 2002-07-12 Petr Sorfa <petrs@caldera.com>
3988
3989 * dwarf2read.c (dwarf2_invalid_attrib_class): New
3990 complaint for invalid attribute class or form.
3991 (read_func_scope): DW_AT_frame_base
3992 better handling of DW_AT_block*.
3993 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
3994 better handling of DW_AT_block*.
3995 (read_common_block): DW_AT_location
3996 better handling of DW_AT_block*.
3997 (read_partial_die): DW_AT_location better handling
3998 of DW_AT_block*.
3999 (new_symbol): DW_AT_external better handling of
4000 DW_AT_block*. Proper initialization of variable
4001 "addr".
4002 (attr_form_is_block): New function that returns true
4003 if the attribute's form is of DW_FORM_block*.
4004
4005 2002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
4006
4007 * valops.c (find_method_list): Remove comment about
4008 removed STATIC_MEMFUNCP argument.
4009 (value_find_oload_method_list): Likewise.
4010
4011 2002-07-12 Kevin Buettner <kevinb@redhat.com>
4012
4013 From Nicholas Duffek:
4014 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
4015 target_new_objfile_hook.
4016
4017 2002-07-12 Kevin Buettner <kevinb@redhat.com>
4018
4019 From Nicholas Duffek:
4020 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
4021 csect.
4022
4023 2002-07-12 Andrew Cagney <cagney@redhat.com>
4024
4025 * MAINTAINERS: Mention --enable-sim-build-warnings.
4026 (m68hc11-elf): Disable sim build warnings.
4027 (m32r-elf): Mark as broken obsolete candidate.
4028 (x86_64-linux-gnu): Mark as buildable with -Werror.
4029 (arm-elf): Change -w to ``,'' which enables warnings but not
4030 -Werror.
4031
4032 2002-07-12 Andrew Cagney <ac131313@redhat.com>
4033
4034 * bcache.h: Update copyright.
4035 (struct bstring, struct bcache): Move definition to "bcache.c".
4036 Replaced by opaque declaration.
4037 (bcache_xfree): Replace free_bcache.
4038 (bcache_xmalloc, bcache_memory_used): Declare.
4039
4040 * bcache.c: Update copyright.
4041 (struct bstring, struct bcache): Moved to here from "bcache.h".
4042 Update comments.
4043 (bcache_xmalloc, bcache_memory_used): New functions.
4044 (bcache_xfree): Replace function free_bcache.
4045
4046 * Makefile.in (objfiles.o): Add $(bcache_h).
4047 (objfiles_h): Remove $(bcache_h).
4048 (symfile.o): Add $(bcache_h).
4049
4050 * symmisc.c: Update copyright.
4051 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
4052 (print_objfile_statistics): Use bcache_memory_used.
4053
4054 * symfile.c: Include "bcache.h".
4055 (reread_symbols): Use bcache_xfree.
4056 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
4057 (add_psymbol_to_list): Pass psymbol_cache by value.
4058 (add_psymbol_with_dem_name_to_list): Ditto.
4059
4060 * objfiles.h: Update copyright.
4061 (struct bcache): Declare opaque. Do not include "bcache.h".
4062 (struct objfile): Change psymbol_cache and macro_cache to ``struct
4063 bcache'' pointers.
4064 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
4065
4066 * objfiles.c: Include "bcache.h". Update copyright.
4067 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
4068 macro_cache.
4069 (free_objfile): Use bcache_xfree.
4070
4071 2002-07-11 Grace Sainsbury <graces@redhat.com>
4072
4073 * monitor.c (monitor_fetch_register): Make name a constant.
4074 (monitor_store_register): Same.
4075
4076 2002-07-11 Daniel Jacobowitz <drow@mvista.com>
4077
4078 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
4079 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
4080 (finish_block) For non-function blocks, hash the symbol table. For
4081 function blocks, mark the symbol table as unhashed.
4082 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
4083 (msymbol_hash_iw): Likewise.
4084 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
4085 value.
4086 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
4087 (lookup_minimal_symbol): Likewise for both.
4088 * symtab.h (struct block): Add `hashtable' flag. Comment the
4089 hashtable.
4090 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
4091 (ALL_BLOCK_SYMBOLS): Update.
4092 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
4093 (struct symbol): Add `hash_next' pointer.
4094 * symtab.c (lookup_block_symbol): Search using the hash table when
4095 possible.
4096 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
4097 (search_symbols, find_addr_symbol): Likewise.
4098
4099 * dstread.c (process_dst_block): Clear hashtable bit for new block.
4100 (read_dst_symtab): Likewise.
4101 * jv-lang.c (get_java_class_symtab): Likewise.
4102 * mdebugread.c: Include "gdb_assert.h".
4103 (shrink_block): Assert that the block being modified is not hashed.
4104 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
4105 * symmisc.c (free_symtab_block): Walk the hash table when freeing
4106 symbols.
4107 (dump_symtab): Recognize hashed blocks.
4108 * printcmd.c (print_frame_args): Assert that function blocks do not
4109 have hashed symbol tables.
4110 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
4111 (fill_in_ada_prototype, debug_print_block): Likewise.
4112 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
4113
4114 2002-07-11 Corinna Vinschen <vinschen@redhat.com>
4115
4116 * stack.c (print_frame): Use result of frame_address_in_block()
4117 instead of fi->pc when evaluating symbols.
4118 (backtrace_command_1): Ditto.
4119
4120 2002-07-11 Andrew Cagney <cagney@redhat.com>
4121
4122 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
4123 Make static.
4124
4125 * arm-tdep.c (arm_register_name): Make return type constant.
4126
4127 2002-07-10 Andrew Cagney <ac131313@redhat.com>
4128
4129 * win32-nat.c (has_detach_ability): Convert to strict ISO C
4130 prototype.
4131 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
4132 * s390-tdep.c (s390_fp_regnum): Ditto.
4133 (s390_read_fp): Ditto.
4134 (s390_pop_frame): Ditto.
4135 (_initialize_s390_tdep): Ditto.
4136 * remote.c (get_remote_state): Ditto.
4137 * procfs.c (mappingflags): Ditto.
4138 * memattr.c (_initialize_mem): Ditto.
4139 * mcore-tdep.c (mcore_pop_frame): Ditto.
4140 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
4141 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
4142 * language.c (set_case_str): Ditto.
4143 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
4144 * frv-tdep.c (new_variant): Ditto.
4145 (frv_stopped_data_address): Ditto.
4146 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
4147 (context_alloc): Ditto.
4148 (frame_state_alloc): Ditto.
4149 (unwind_tmp_obstack_init): Ditto.
4150 (unwind_tmp_obstack_free): Ditto.
4151 (cfi_read_fp): Ditto.
4152 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
4153 (cris_pop_frame): Ditto.
4154 * c-lang.c (scanning_macro_expansion): Ditto.
4155 (finished_macro_expansion): Ditto.
4156 (c_preprocess_and_parse): Ditto.
4157 * gdbarch.sh: Ditto.
4158 * gdbarch.h, gdbarch.c: Regenerate.
4159 * config/mn10200/tm-mn10200.h: Adjust indentation.
4160 * target.c: Adjust indentation.
4161 * symtab.h: Adjust indentation.
4162 * stabsread.h: Adjust indentation.
4163 * remote-es.c: Adjust indentation.
4164 * os9kread.c: Adjust indentation.
4165
4166 2002-07-10 Andrew Cagney <ac131313@redhat.com>
4167
4168 * wince.c (_initialize_wince): Rename _initialize_inftarg.
4169 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
4170
4171 2002-07-10 Grace Sainsbury <graces@redhat.com>
4172
4173 * NEWS: Mention m68k, mcore multi-arching.
4174 * MAINTAINERS: Change status of m68k, mcore to reflect
4175 multi-arching.
4176
4177 2002-07-10 Daniel Jacobowitz <drow@mvista.com>
4178
4179 * valops.c (find_overload_match): Free oload_syms.
4180
4181 2002-07-09 Joel Brobecker <brobecker@gnat.com>
4182
4183 Define HAVE_SYS_PROC_H if sys/proc.h exists
4184 * configure.in: Add check for sys/proc.h
4185 * config.in: Regenerate.
4186 * configure: Regenerate.
4187
4188 2002-07-09 Grace Sainsbury <graces@redhat.com>
4189
4190 * config/m68k/tm-m68k.h: Remove macros wrapped in
4191 #if !GDB_MULTI_ARCH.
4192
4193 2002-07-08 Andrew Cagney <ac131313@redhat.com>
4194
4195 * config.in, configure: Regenerate.
4196
4197 2002-07-08 Mark Kettenis <kettenis@gnu.org>
4198
4199 * dwarf2cfi.c: Include "gcore.h".
4200 (execute_stack_op): Fix implementation of the
4201 DW_OP_deref and DW_OP_deref_size operators by letting do their
4202 lookup in the target.
4203
4204 2002-07-07 Mark Kettenis <kettenis@gnu.org>
4205
4206 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
4207 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
4208 tdep->sc_sp_offset.
4209
4210 2002-07-05 Daniel Jacobowitz <drow@mvista.com>
4211
4212 Fix PR gdb/595, gdb/602
4213 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
4214 Don't call value_cast, just read the vtable pointer; update comments
4215 to match.
4216
4217 2002-07-05 Grace Sainsbury <graces@redhat.com>
4218
4219 * config/mcore/tm-mcore.h: Remove file.
4220 * config/mcore/mcore.mt: Remove definition of TM_FILE
4221 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
4222
4223 2002-07-05 Mark Kettenis <kettenis@gnu.org>
4224
4225 * i386bsd-tdep.c: Include "gdb_string.h".
4226
4227 2002-07-04 Grace Sainsbury <graces@redhat.com>
4228
4229 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
4230 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
4231 mcore-tdep.
4232 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
4233 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
4234 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
4235 (RETVAL_REGNUM): Move macros from tm-mcore.h
4236 (mcore_reg_struct_has_addr): New function.
4237 (mcore_gdbarch_init): Added initializations for the macros removed
4238 from tm-mcore.h.
4239
4240 2002-07-04 Mark Kettenis <kettenis@gnu.org>
4241
4242 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
4243 traditonal string branding within the ELF header.
4244
4245 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
4246
4247 * symtab.c (remove_params): New function.
4248 (make_symbol_overload_list): Use it instead of cplus_demangle.
4249 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
4250
4251 2002-07-04 Mark Kettenis <kettenis@gnu.org>
4252
4253 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
4254
4255 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
4256 New variables.
4257 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
4258 and tdep->sigtramp_end.
4259 * i386obsd-nat.c: New file.
4260 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
4261
4262 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
4263 Don't call get_current_frame().
4264
4265 2002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
4266
4267 * i386-nat.c (child_post_startup_inferior): New function
4268 calling i386_cleanup_dregs if
4269 I386_USE_GENERIC_WATCHPOINTS is defined.
4270 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
4271 conditional to acknowledge that i386-nat.c has its
4272 own child_post_startup_inferior function.
4273
4274 2002-07-04 Mark Kettenis <kettenis@gnu.org>
4275
4276 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
4277 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
4278 instead of MAX_REGISTER_RAW_SIZE.
4279 (i386_extract_return_value, i386_extract_struct_value_address):
4280 Convert to use regcache.
4281 (i386_gdbarch_init): Set max_register_raw_size and
4282 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
4283 Set extract_return_value and extract_struct_value_address instead
4284 of their deprecated variants.
4285
4286 Convert i386 target to generic dummy frames.
4287 * i386-tdep.c: Include "symfile.h".
4288 (i386_frameless_signal_p): Consider a function to be frameless if
4289 the pc points at the first instruction of the function.
4290 (i386_frame_chain): Handle (generic) call dummies.
4291 (i386_frame_saved_pc): Likewise.
4292 (i386_frame_init_saved_regs): Remove code dealing with call
4293 dummies on the stack.
4294 (i386_push_dummy_frame): Removed.
4295 (i386_call_dummy_words): Removed.
4296 (i386_fix_call_dummy): Removed.
4297 (i386_push_return_address): New function.
4298 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
4299 parameter, and don't call get_current_frame.
4300 (i386_pop_frame): New function.
4301 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
4302 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
4303 entry_point_address, set call_dummy_breakpoint_offset to 0, set
4304 call_dummy_length to 0, set call_dummy_words to NULL, set
4305 sizeof_call_dummy_words to 0, set fix_call_dummy to
4306 generic_fix_call_dummy, set pc_in_call_dummy to
4307 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
4308 generic_push_dummy_frame, set push_return_address to
4309 i386_push_return_address and set frame_chain_valid to
4310 generic_file_frame_chain_valid.
4311
4312 2002-07-03 Andrew Cagney <ac131313@redhat.com>
4313
4314 * gdbarch.sh (struct regcache): Add opaque declaration.
4315 (EXTRACT_RETURN_VALUE): New architecture method.
4316 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
4317 * gdbarch.h, gdbarch.c: Regenerate.
4318 * arch-utils.c (legacy_extract_return_value): New function.
4319 * arch-utils.h (legacy_extract_return_value): Declare.
4320 * values.c (value_being_returned): Re-enable code handling
4321 EXTRACT_STRUCT_VALUE_ADDRESS. Move
4322 deprecated_grub_regcache_for_registers call to block handling
4323 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
4324 (EXTRACT_RETURN_VALUE): Do not define.
4325
4326 2002-07-03 Grace Sainsbury <graces@redhat.com>
4327
4328 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
4329 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
4330 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
4331 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
4332 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
4333 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
4334 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
4335 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
4336 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
4337 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
4338 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
4339 argument so the function fits the prototype in the architecture
4340 vector.
4341 (mcore_pop_frame): Remove argument so the function fits the
4342 prototype. Use get_current_frame instead of the argument.
4343 (mcore_push_arguments): Change type of struct_return so the
4344 function can be used in the architecture vector.
4345 (mcore_store_struct_return): Add.
4346 (mcore_frame_init_saved_regs): Add.
4347 (mcore_gdbarch_init): Add function calls to replace the macros
4348 removed from tm-mcore.h
4349
4350 2002-07-03 Andrew Cagney <ac131313@redhat.com>
4351
4352 * infcmd.c (print_return_value): Remove compatibility code calling
4353 deprecated_grub_regcache_for_registers.
4354
4355 * values.c: Include "regcache.h".
4356 (value_being_returned): Update. Use
4357 deprecated_grub_regcache_for_registers to extract the register
4358 buffer address.
4359 * value.h (value_being_returned): Change ``retbuf'' parameter to a
4360 ``struct regcache''.
4361 * Makefile.in (values.o): Add dependency on $(regcache_h).
4362
4363 * inferior.h (run_stack_dummy): Change type of second parameter to
4364 a ``struct regcache''.
4365 * valops.c (hand_function_call): Change type of retbuf to ``struct
4366 regcache''. Allocate using regcache_xmalloc, clean using
4367 make_cleanup_regcache_xfree.
4368 * infcmd.c (run_stack_dummy): Update. Use
4369 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
4370
4371 * regcache.c (do_regcache_xfree): New function.
4372 (make_cleanup_regcache_xfree): New function.
4373 * regcache.h (make_cleanup_regcache_xfree): Declare.
4374
4375 2002-07-03 Martin M. Hunt <hunt@redhat.com>
4376
4377 * event-top.c (command_line_handler): Don't read past
4378 beginning of buffer.
4379
4380 2002-07-03 Martin M. Hunt <hunt@redhat.com>
4381
4382 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
4383 struct frame_id.
4384 (varobj_create): Store frame_id for root.
4385 (varobj_gen_name): Use xasprintf.
4386 (varobj_update): Save and restore frame using get_frame_id() and
4387 frame_find_by_id().
4388 (create_child): Use xasprintf.
4389 (new_root_variable): Initialize frame_id.
4390 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
4391 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
4392 to prevent memory leak.
4393
4394 2002-07-03 Andrew Cagney <ac131313@redhat.com>
4395
4396 * valops.c (hand_function_call): Move declaration of retbuf to
4397 start of function, allocate using malloc, add a cleanup but before
4398 the inf_status cleanup, cleanup the buffer. Rename local variable
4399 old_chain to inf_status_cleanup.
4400
4401 2002-07-03 Martin M. Hunt <hunt@redhat.com>
4402
4403 * top.c (execute_command): Use cmd_func() and cmd_func_p().
4404
4405 * cli/cli-decode.c (cmd_func_p): New function.
4406 (cmd_func): New function.
4407
4408 * command.h: Add cmd_func() and cmd_func_p().
4409
4410 2002-07-03 Grace Sainsbury <graces@redhat.com>
4411
4412 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
4413 (REGISTER_SIZE): Remove.
4414 (MAX_REGISTER_RAW_SIZE): Remove.
4415 (REGISTER_VIRTUAL_TYPE): Remove.
4416 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
4417 (REGISTER_NAME): Remove.
4418 (USE_GENERIC_DUMMY_FRAMES): Remove.
4419 (CALL_DUMMY): Remove.
4420 (CALL_DUMMY_START_OFFSET): Remove.
4421 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
4422 (CALL_DUMMY_LOCATION): Remove.
4423 (FIX_CALL_DUMMY): Remove.
4424 (CALL_DUMMY_ADDRESS): Remove.
4425 (SIZEOF_CALL_DUMMY_WORDS): Remove.
4426 (SAVE_DUMMY_FRAME_TOS): Remove.
4427 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
4428 (mcore_register_virtual_type): New function.
4429 (mcore_register_byte): New function.
4430 (mcore_register_size): New function.
4431 (mcore_register_name): New function.
4432 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
4433 macros removed from tm-mcore.h.
4434 (mcore_dump_tdep): Add.
4435 (_initialize_mcore_tdep): Add gdbarch_register call.
4436
4437 2002-07-03 Mark Kettenis <kettenis@gnu.org>
4438
4439 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
4440 frameless_look_for_prologue, such that we actually call this
4441 function.
4442
4443 2002-07-02 Joel Brobecker <brobecker@gnat.com>
4444
4445 * frame.h (frame_address_in_block): New function.
4446
4447 * blockframe.c (frame_address_in_block): New function extracted
4448 from get_frame_block().
4449 (get_frame_block): Use frame_address_in_block().
4450 (block_innermost_frame): Use frame_address_in_block() to match
4451 the frame pc address against the block boundaries rather than
4452 the frame pc directly. This prevents a failure when a frame pc
4453 is actually a return-address pointing immediately after the end
4454 of the given block.
4455
4456 2002-07-02 Grace Sainsbury <graces@redhat.com>
4457
4458 * MAINTAINERS: Add self under write after approval.
4459
4460 2002-07-02 Grace Sainsbury <graces@redhat.com>
4461
4462 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
4463 used in architecture vector. The default is
4464 m68k_local_breakpoint_from_pc.
4465 (m68k_local_breakpoint_from_pc): Add.
4466 (enum): Add register numbers from tm-m68k.h.
4467 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
4468 vector.
4469 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
4470 GDB_MULTI_ARCH_PARTIAL.
4471 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
4472 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
4473 m68k-tdep.c.
4474 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
4475 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
4476 to enum in m68k-tdep.c
4477
4478 2002-07-02 Joel Brobecker <brobecker@gnat.com>
4479
4480 * solib-osf.c (open_map): Compute the list of shared libraries
4481 loaded by the inferior, rather than the list of libraries loaded
4482 by GDB itself. Otherwise, GDB ends up reading the symbols from
4483 the wrong shared libraries...
4484
4485 2002-07-02 Mark Kettenis <kettenis@gnu.org>
4486
4487 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
4488 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
4489 macros.
4490 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
4491 Remove functions.
4492 (FRAMELESS_SIGNAL): Remove function.
4493 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
4494 i386_linux_saved_pc_after_call): Removed.
4495 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
4496 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
4497 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
4498
4499 * i386-tdep.c (i386_frameless_signal_p): New function.
4500 (i386_frame_chain): Deal with frameless signals.
4501 (i386_sigtramp_saved_sp): New function.
4502 (i386_frame_saved_pc): Deal with frameless signals.
4503 (i386_saved_pc_after_call): Make sure the correct value is
4504 returned just after entry into a sigtramp.
4505 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
4506 i386fbsd4_sc_sp_offset): New variables.
4507 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
4508 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
4509 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
4510 similiar to what we already did for sc_pc_offset.
4511 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
4512 tdep->sc_sp_offset.
4513
4514 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
4515
4516 2002-07-02 Michal Ludvig <mludvig@suse.cz>
4517
4518 * config/i386/tm-x86-64linux.h: New.
4519 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
4520 definitions.
4521 * config/i386/nm-x86-64.h: Rename to ...
4522 * config/i386/nm-x86-64linux.h: ... this one.
4523 * config/i386/x86-64linux.mh: Reflect the above change.
4524
4525 2002-07-01 Mark Kettenis <kettenis@gnu.org>
4526
4527 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
4528 with sigcontext_addr. Add sc_sp_offset.
4529 (i386bsd_sigtramp_saved_pc): Remove prototype.
4530 (i386bsd_sicontext_addr): Add prototype.
4531 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
4532 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
4533 (i386_svr4_sigtramp_saved_pc): Removed.
4534 (i386_svr4_sigcontext_addr): New function.
4535 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
4536 Initialize tdep->sigcontext_addr instead. Initialize
4537 tdep->sc_pc_offset and tdep->sc_sp_offset.
4538 (i386_gdbarch_init): Likewise.
4539 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
4540 any more.
4541 (i386bsd_sigtramp_saved_pc): Remove function.
4542 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
4543 Initialize tdep->sigcontext_addr instead. Initialize
4544 tdep->sc_pc_offset.
4545 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
4546 of tdep->sigtramp_saved_pc.
4547 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
4548 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
4549 instead.
4550
4551 * i386-tdep.c (i386_frameless_function_invocation,
4552 i386_frame_num_args, i386_frame_init_saved_regs,
4553 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
4554 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
4555 i386_extract_return_value, i386_store_return_value,
4556 i386_extract_struct_value_address, i386_register_virtual_type,
4557 i386_register_convertible, i386_register_convert_to_virtual,
4558 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
4559 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
4560 static.
4561
4562 2002-07-01 Mark Kettenis <kettenis@gnu.org>
4563
4564 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
4565
4566 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
4567 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
4568 this macro. Include "value.h".
4569
4570 2002-06-30 Aidan Skinner <aidan@velvet.net>
4571
4572 * ada-exp.tab.c: remove as it's a generated file
4573 * ada-lex.c: remove as it's a generated file
4574
4575 2002-06-30 Mark Kettenis <kettenis@gnu.org>
4576
4577 * config/i386/tm-i386.h (struct frame_info, struct
4578 frame_saved_regs, struct value, struct type): Remove forward
4579 declarations.
4580
4581 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
4582 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
4583 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
4584 (FILL_FPXREGSET): Define.
4585
4586 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
4587
4588 * configure.tgt (i[3456]86-*-openbsd*): Fold into
4589 i[3456]86-*-netbsd* case.
4590 * config/i386/tm-obsd.h: Removed.
4591 * config/i386/obsd.mt: Removed.
4592 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
4593 core-aout.o.
4594 (MH_CFLAGS): Add -DYYDEBUG=0.
4595
4596 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
4597 i386nbsd_sc_pc_offset on OpenBSD too.
4598
4599 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
4600 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
4601 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
4602 define.
4603 * i386bsd-tdep.c: Include "arch-utils.h".
4604 (i386bsd_aout_in_solib_call_trampoline): New function.
4605 (i386bsd_init_abi): Set in_solib_call_trampoline to
4606 i386bsd_aout_in_solib_call_trampoline.
4607 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
4608 in_solib_call_trampoline to generic_in_solib_call_trampoline.
4609
4610 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4611
4612 * macrotab.h: Do not include "obstack.h" or "bcache.h".
4613 (struct obstack, struct bcache): Add opaque declarations.
4614 * Makefile.in (macrotab_h): Update
4615
4616 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4617
4618 * blockframe.c (generic_find_dummy_frame): Change return type to
4619 ``struct regcache''.
4620 (struct dummy_frame): Replace field ``registers'' with regcache, a
4621 struct regcache object.
4622 (generic_find_dummy_frame): Update.
4623 (generic_push_dummy_frame): Update. Use regcache_xfree,
4624 regcache_xmalloc and regcache_cpy.
4625 (generic_pop_dummy_frame): Update. Use regcache_cpy and
4626 regcache_xfree.
4627 (deprecated_generic_find_dummy_frame): Update.
4628 (generic_read_register_dummy): Update. Use
4629 regcache_read_as_address.
4630 (generic_call_dummy_register_unwind): Update. Use regcache_read.
4631 (generic_get_saved_register): Update. Use regcache_read.
4632
4633 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4634
4635 * Makefile.in (objfiles_h): Add $(bcache_h).
4636 * objfiles.h: Include "bcache.h".
4637
4638 * Makefile.in (symtab_h): Remove $(bcache_h).
4639 * symtab.h: Do not include "bcache.h".
4640
4641 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4642
4643 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
4644 generic_func_frame_chain_valid.
4645
4646 2002-06-28 David O'Brien <obrien@FreeBSD.org>
4647
4648 * config/i386/nm-fbsd.h: Include <sys/param.h>.
4649 * config/i386/tm-fbsd.h: Likewise.
4650
4651 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4652
4653 * rs6000-tdep.c (rs6000_gdbarch_init): Use
4654 generic_unwind_get_saved_register.
4655
4656 2002-06-27 Andrew Cagney <ac131313@redhat.com>
4657
4658 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
4659 * regcache.c (supply_register): Add missing argument to
4660 register_buffer call.
4661
4662 2002-06-27 Andrew Cagney <ac131313@redhat.com>
4663
4664 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
4665 Solaris /bin/grep does not not like it. From Peter Schauer.
4666
4667 2002-06-26 Tom Tromey <tromey@redhat.com>
4668
4669 * command.h (add_setshow_cmd): Declare.
4670 (add_setshow_cmd_full): Declare.
4671 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
4672 returns void. Use add_setshow_cmd_full.
4673 (add_setshow_cmd_full): New function.
4674 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
4675 (add_setshow_boolean_cmd): Likewise.
4676
4677 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4678
4679 * config/vax/tm-vax.h: Protect from multiple inclusion.
4680 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
4681 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
4682 * config/vax/tm-vaxbsd.h: ...here. New file.
4683 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
4684
4685 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4686
4687 * config/vax/tm-vax.h (BREAKPOINT): Remove.
4688 (BELIEVE_PCC_PROMOTION): Remove.
4689 (AP_REGNUM): Move to...
4690 * config/vax/nm-vax.h: ...here.
4691 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
4692 (vax_breakpoint_from_pc): New function.
4693 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
4694 and gdbarch_believe_pcc_promotion.
4695
4696 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4697
4698 * Makefile.in (vax_tdep_h): Define.
4699 (vax-tdep.o): Use $(vax_tdep_h).
4700 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
4701 (vax_dump_tdep): New function.
4702 (_initialize_vax_tdep): Register vax_dump_tdep.
4703 * vax-tdep.h: Include osabi.h.
4704 (struct gdbarch_tdep): New.
4705
4706 2002-06-26 Andrew Cagney <cagney@redhat.com>
4707
4708 * frame.h (deprecated_generic_find_dummy_frame): Rename
4709 generic_find_dummy_frame.
4710 * blockframe.c (generic_find_dummy_frame): Make static.
4711 (deprecated_generic_find_dummy_frame): New function.
4712 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
4713 generic_find_dummy_frame with deprecated_find_dummy_frame.
4714 (sh64_nofp_frame_init_saved_regs): Ditto.
4715 (sh_fp_frame_init_saved_regs): Ditto.
4716 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
4717 (s390_frame_chain): Ditto.
4718 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
4719
4720 2002-06-26 Grace Sainsbury <graces@redhat.com>
4721
4722 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
4723 gdbarch vector are at the top.
4724 (NUM_REGS): Remove.
4725 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
4726 (FRAME_ARGS_ADDRESS): Remove.
4727 (FRAME_LOCALS_ADDRESS): Remove.
4728 (FRAME_NUM_ARGS): Remove.
4729 (FRAME_ARGS_SKIP): Remove.
4730 * m68k-tdep.c (enum): Add eumeration of special register numbers.
4731 (m68k_gdbarch_init): Add gdbarch initializations for macros
4732 undefined in tm-m68k.h
4733
4734 2002-06-26 Grace Sainsbury <graces@redhat.com>
4735
4736 * monitor.h: Add the function regname to monitor_ops
4737 structure. This way NUM_REGS does not have to be a constant.
4738 * monitor.c (monitor_fetch_register): Added support for regname
4739 function. The function is called if the array regnames is NULL.
4740 (monitor_store_register): Same.
4741 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
4742 regnames array.
4743 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
4744 cpu32bug_cmds.regname to point to new function.
4745 * abug-rom.c (abug_regname): Same as above.
4746 (init_abug_cmds): Same.
4747 * dbug-rom.c (dbug_regname): Same as above.
4748 (init_dbug_cmds): Same.
4749 * remote-est.c (est_regname): Same.
4750 (init_est_cmds): Same.
4751 * rom68k-rom.c (rom68k_regname): Same.
4752 (init_rom68k_cmds): Same.
4753
4754 2002-06-25 Tom Tromey <tromey@redhat.com>
4755
4756 * breakpoint.c (delete_command): Don't repeat `delete' commands.
4757
4758 2002-06-25 Andrew Cagney <cagney@redhat.com>
4759
4760 * infrun.c (stop_registers): Change variable's type to ``struct
4761 regcache'''.
4762 (xmalloc_inferior_status): Delete function.
4763 (free_inferior_status): Delete function.
4764 (normal_stop): Use regcache_cpy.
4765 (struct inferior_status): Change type of fields ``stop_registers''
4766 and ``registers'' to ``struct regcache''.
4767 (write_inferior_status_register): Use regcache_write.
4768 (save_inferior_status): Instead of calling
4769 xmalloc_inferior_status, allocate the inf_status buffer directly.
4770 Use regcache_dup_no_passthrough and regcache_dup to save the
4771 buffers.
4772 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
4773 Replace the stop_registers regcache instead of overriding it. Use
4774 regcache_xfree. Instead of calling free_inferior_status, xfree
4775 the buffer directly.
4776 (discard_inferior_status): Use regcache_xfree. Instead of calling
4777 free_inferior_status, xfree the buffer directly.
4778 (build_infrun): Use regcache_xmalloc.
4779 (_initialize_infrun): Delete redundant call to build_infrun.
4780
4781 * Makefile.in (infcmd.o): Add $(regcache_h).
4782
4783 * infcmd.c: Include "regcache.h".
4784 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
4785 obtain the address of `stop_registers' register buffer.
4786 (print_return_value): Ditto.
4787
4788 * inferior.h (struct regcache): Add opaque declaration.
4789 (stop_registers): Change variable's declared type to ``struct
4790 regcache''.
4791
4792 2002-06-24 Tom Tromey <tromey@redhat.com>
4793
4794 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
4795 * target.c (initialize_targets): Fixed typo in
4796 trust-readonly-sections `show' documentation.
4797
4798 * main.c: Marked all strings with _().
4799
4800 2002-06-24 Don Howard <dhoward@redhat.com>
4801
4802 * memattr.c (create_mem_region): Treat hi == 0 as a special case
4803 that means max CORE_ADDR+1.
4804 (lookup_mem_region): Ditto.
4805 (mem_info_command): Ditto.
4806
4807 2002-06-24 Grace Sainsbury <graces@redhat.com>
4808
4809 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
4810 (REGISTER_BYTES_OK): Remove.
4811 (REGISTER_BYTES): Remove.
4812 (STORE_STRUCT_RETURN): Remove.
4813 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
4814 (STORE_RETURN_VALUE): Remove.
4815 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
4816 (FRAME_CHAIN): Remove.
4817 (FRAMELESS_FUNCTION_INVOCATION): Remove.
4818 (FRAME_SAVED_PC): Remove.
4819 * m68k-tdep.c (m68k_register_bytes_ok):Add.
4820 (m68k_store_struct_return): Add.
4821 (m68k_deprecated_extract_return_value): Add.
4822 (m68k_deprecated_extract_struct_value_address): Add.
4823 (m68k_store_return_value): Add.
4824 (m68k_frame_chain): Add.
4825 (m68k_frameless_function_invocation): Add.
4826 (m68k_frame_saved_pc): Add.
4827 (m68k_gdbarch_init): added set_gdbarch calls for new
4828 functions and deleted macros.
4829
4830 2002-06-23 Tom Tromey <tromey@redhat.com>
4831
4832 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
4833 (ALLDEPFILES): Likewise.
4834 (udiheaders): Removed.
4835 (udip2soc.o): Likewise.
4836 (udi2go32.o): Likewise.
4837 (udr.o): Likewise.
4838 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
4839
4840 2002-06-22 Andrew Cagney <ac131313@redhat.com>
4841
4842 * infrun.c (_initialize_infrun): Delete unnecessary call to
4843 build_infrun.
4844
4845 * regcache.h: Update comments describing the regcache_cpy family
4846 of functions.
4847 (regcache_save, regcache_restore): Delete declaration.
4848 (regcache_save_no_passthrough): Delete declaration.
4849 (regcache_restore_no_passthrough): Delete declaration.
4850 * regcache.c (regcache_save): Delete function.
4851 (regcache_save_no_passthrough): Delete function.
4852 (regcache_restore): Delete function.
4853 (regcache_restore_no_passthrough): Delete function.
4854
4855 2002-06-21 Andrew Cagney <ac131313@redhat.com>
4856
4857 * config/m68k/tm-m68k.h: Fix typo.
4858 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
4859 (m68k_frame_init_saved_regs): Declare.
4860
4861 2002-06-21 Jim Blandy <jimb@redhat.com>
4862
4863 Remove some vestiges of Harris 88k support.
4864 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
4865 register numbering quirk.
4866 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
4867 odd symbols occurring in Harris 88k ELF targets.
4868
4869 2002-06-21 Tom Tromey <tromey@redhat.com>
4870
4871 * gdb_locale.h: New file.
4872 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
4873 (defs_h): Added gdb_locale.h.
4874 * configure, config.in: Rebuilt.
4875 * configure.in (PACKAGE): Define.
4876 * defs.h: Include gdb_locale.h.
4877 * main.c (captured_main): Call setlocale, bindtextdomain,
4878 textdomain.
4879
4880 2002-06-21 Dave Brolley <brolley@redhat.com>
4881
4882 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
4883 * config/frv/frv.mt: New file.
4884 * config/frv/tm-frv.h: New file.
4885 * configure.tgt: Support frv-*-*.
4886 * Makefile.in (frv-tdep.o): New target.
4887 * frv-tdep.c: New file.
4888 * NEWS: Mention frv.
4889
4890 2002-06-21 Dave Brolley <brolley@redhat.com>
4891
4892 * MAINTAINERS: Add self to "Write After Approval" list.
4893
4894 2002-06-21 Grace Sainsbury <graces@redhat.com>
4895
4896 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
4897 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
4898 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
4899 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
4900 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
4901
4902 * m68k-tdep.c: Include arch-utils.h
4903 (m68k_register_raw_size): Add.
4904 (m68k_register_virtual_size): Add.
4905 (m68k_register_virtual_type): Add.
4906 (m68k_register_name): Add.
4907 (m68k_stack_align): Add.
4908 (m68k_register_byte): Add.
4909 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
4910 tm-m68k.h.
4911
4912 2002-06-21 Grace Sainsbury <graces@redhat.com>
4913
4914 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
4915 m68k_find_saved_regs.
4916 (m68k_pop_frame): Removed saved_regs structure, and replaced
4917 references to it with frame->saved_regs.
4918 (m68k_gdbarch_init): Added function calls to initialize the
4919 gdbarch structure.
4920 (m68k_fix_call_dummy): Add.
4921 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
4922 (CALL_DUMMY): Remove.
4923 (CALL_DUMMY_LENGTH): Remove.
4924 (CALL_DUMMY_START_OFFSET): Remove.
4925 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
4926 (FIX_CALL_DUMMY): Remove.
4927 (PUSH_DUMMY_FRAME): Remove.
4928 (POP_FRAME): Remove.
4929
4930 2002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
4931
4932 * parse.c (parse_fprintf): New function used to avoid calls to
4933 fprintf in bison parser generated debug code.
4934 * parser-defs.h: Declaration of new parse_fprintf function.
4935 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
4936 Set YYDEBUG to 1 by default.
4937 Set YYFPRINTF as parse_fprintf.
4938
4939 2002-06-21 Michal Ludvig <mludvig@suse.cz>
4940
4941 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
4942 encoding anymore.
4943 (pointer_encoding, enum ptr_encoding): New.
4944 (execute_cfa_program): Take care about pointer encoding.
4945 (dwarf2_build_frame_info): Only call parse_frame_info for
4946 .debug_frame and .eh_frame.
4947 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
4948 fixed augmentation handling, added relative addressing,
4949 ignore duplicate FDEs. Added comments.
4950 * dwarf2cfi.c: Reindented.
4951
4952 2002-06-20 Elena Zannoni <ezannoni@redhat.com>
4953
4954 * event-top.c (command_handler): Don't use space_at_cmd_start
4955 unless there is sbrk() on the host. Assign time and space data
4956 to union fields of the appropriate length.
4957
4958 2002-06-20 Michal Ludvig <mludvig@suse.cz>
4959
4960 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
4961 x86_64_register_name. Return type changed to 'const char *'.
4962 (x86_64_register_name2nr): Rename to x86_64_register_number.
4963 (x86_64_gdbarch_init): Update to reflect the change.
4964 * x86-64-tdep.h: Ditto.
4965 * x86-64-linux-nat.c (x86_64_fxsave_offset)
4966 (supply_fpregset): Ditto.
4967
4968 2002-06-19 Andrew Cagney <cagney@redhat.com>
4969
4970 * regcache.h: Update copyright.
4971 (struct regcache, struct gdbarch): Add opaque declarations.
4972 (current_regcache): Declare global variable.
4973 (regcache_read, regcache_write): Add gdbarch parameter.
4974 (regcache_save, regcache_save_no_passthrough)
4975 (regcache_restore, regcache_restore_no_passthrough)
4976 (regcache_dup, regcache_dup_no_passthrough)
4977 (regcache_cpy, regcache_cpy_no_passthrough)
4978 (deprecated_grub_regcache_for_registers)
4979 (deprecated_grub_regcache_for_register_valid)
4980 (regcache_valid_p): Add function declarations.
4981
4982 * regcache.c: Update copyright.
4983 (regcache_descr_handle): New global variable.
4984 (struct regcache_descr): Define.
4985 (init_legacy_regcache_descr, init_regcache_descr): New functions.
4986 (regcache_descr, xfree_regcache_descr): New functions.
4987 (struct regcache): Define.
4988 (regcache_xmalloc, regcache_xfree): New functions.
4989 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
4990 (regcache_dup, regcache_dup_no_passthrough): New functions.
4991 (regcache_valid_p, regcache_read_as_address): New functions.
4992 (deprecated_grub_regcache_for_registers): New function.
4993 (deprecated_grub_regcache_for_register_valid): New function.
4994 (current_regcache): New global variable.
4995 (register_buffer): Add regcache parameter. Update calls.
4996 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
4997 (read_register_gen, write_register_gen): Update register_buffer
4998 call. Test for legacy_p instead of gdbarch_register_read_p or
4999 gdbarch_register_write_p.
5000 (regcache_collect): Update register_buffer call.
5001 (build_regcache): Rewrite. Use deprecated grub functions.
5002 (regcache_save, regcache_save_no_passthrough): New functions.
5003 (regcache_restore, regcache_restore_no_passthrough): New
5004 functions.
5005 (_initialize_regcache): Create the regcache_data_handle. Swap
5006 current_regcache global variable.
5007
5008 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
5009 parameter to regcache_read and regcache_write calls.
5010 (sh4_register_read): Ditto.
5011 (sh64_pseudo_register_read): Ditto.
5012 (sh64_register_read): Ditto.
5013 (sh_pseudo_register_write): Ditto.
5014 (sh4_register_write): Ditto.
5015 (sh64_pseudo_register_write): Ditto.
5016 (sh64_register_write): Ditto.
5017
5018 * defs.h (XCALLOC): Define.
5019
5020 2002-06-19 Grace Sainsbury <graces@redhat.com>
5021
5022 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
5023 * m68k-tdep.c (m68k_gdbarch_init): Added.
5024 (m68k_dump_tdep): Added.
5025
5026 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
5027
5028 * ada-lang.c (fill_in_ada_prototype): Update comment.
5029
5030 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
5031
5032 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
5033 MIPS_ABI_LAST.
5034 (mips_abi_string, mips_abi_strings): New.
5035 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
5036 (mips_gdbarch_init): Set tdep->found_abi. Don't set
5037 tdep->mips_abi_string. Honor mips_abi_string. Default to
5038 O32 if no ABI is found.
5039 (mips_dump_tdep): Use mips_abi_strings.
5040 (mips_abi_update): New function.
5041 (_initialize_mips_tdep): Initialize mips_abi_string. Add
5042 ``set mips abi'' and ``show mips abi''. Check the size of
5043 mips_abi_strings.
5044
5045 2002-06-19 Andrew Cagney <cagney@redhat.com>
5046
5047 * i386-linux-tdep.c (i386_linux_register_name): Make return type
5048 constant.
5049
5050 2002-06-18 Joel Brobecker <brobecker@gnat.com>
5051
5052 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
5053 current frame using only the first stack size adjustment. All
5054 subsequent size adjustments are not considered to be part of
5055 the "static" part of the current frame.
5056 Compute the address of the saved registers relative to the
5057 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
5058 in use in this frame.
5059
5060 2002-06-18 Don Howard <dhoward@redhat.com>
5061
5062 * valops.c (value_ind): Use value_at_lazy() when dereferencing
5063 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
5064 suggesting this solution.
5065
5066 2002-06-18 Andrew Cagney <ac131313@redhat.com>
5067
5068 * config/romp/xm-rtbsd.h: Delete file.
5069 * config/romp/rtbsd.mh: Delete file.
5070
5071 2002-06-18 Keith Seitz <keiths@redhat.com>
5072
5073 * breakpoint.c (condition_command): Post breakpoint_modify
5074 when a condition is added to an existing breakpoint.
5075 (commands_command): Likewise for commands.
5076 (set_ignore_count): Likewise for ignore counts.
5077 If no tty, do not simply return, still need to send event
5078 notification.
5079 (ignore_command): Only print a newline if the command came
5080 from a tty.
5081 Don't call breakpoints_changed, since this is now properly
5082 handled by set_ignore_count.
5083
5084 2002-06-18 Andrew Cagney <cagney@redhat.com>
5085
5086 * MAINTAINERS: Note that cris-elf target can be compiled with
5087 -Werror.
5088 * cris-tdep.c (cris_register_name): Make return type constant.
5089 (cris_breakpoint_from_pc): Ditto.
5090
5091 2002-06-18 Michal Ludvig <mludvig@suse.cz>
5092
5093 * frame.h (struct frame_info): Change type of context to
5094 'struct context'.
5095
5096 2002-06-17 Andrew Cagney <cagney@redhat.com>
5097
5098 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
5099 pointer.
5100 * gdbarch.h, gdbarch.c: Regenerate.
5101 * config/mips/tm-mips.h (mips_register_name): Update.
5102 * i386-tdep.h (i386_register_name): Update.
5103 * mips-tdep.c (mips_register_name): Update
5104 * alpha-tdep.c (alpha_register_name): Update.
5105 * arch-utils.c (legacy_register_name): Update.
5106 * arch-utils.h (legacy_register_name): Update.
5107 * avr-tdep.c (avr_register_name): Update.
5108 * ia64-tdep.c (ia64_register_name): Update.
5109 * i386-tdep.c (i386_register_name): Update.
5110 * sparc-tdep.c (sparc32_register_name): Update.
5111 (sparc64_register_name): Update.
5112 (sparclite_register_name): Update.
5113 (sparclet_register_name): Update.
5114 * sh-tdep.c (sh_generic_register_name): Update.
5115 (sh_sh_register_name): Update.
5116 (sh_sh3_register_name): Update.
5117 (sh_sh3e_register_name): Update.
5118 (sh_sh_dsp_register_name): Update.
5119 (sh_sh3_dsp_register_name): Update.
5120 (sh_sh4_register_name): Update.
5121 (sh_sh64_register_name): Update.
5122 * s390-tdep.c (s390_register_name): Update.
5123 * rs6000-tdep.c (rs6000_register_name): Update.
5124 * ns32k-tdep.c (ns32k_register_name_32082): Update.
5125 (ns32k_register_name_32382): Update.
5126 * d10v-tdep.c (d10v_ts2_register_name): Update.
5127 (d10v_ts3_register_name): Update.
5128 * xstormy16-tdep.c (xstormy16_register_name): Update.
5129 * vax-tdep.c (vax_register_name): Update.
5130 * v850-tdep.c (v850_register_name): Update.
5131 * m68hc11-tdep.c (m68hc11_register_name): Update.
5132 * mn10300-tdep.c (mn10300_generic_register_name): Update.
5133 (am33_register_name): Update.
5134
5135 2002-06-17 Grace Sainsbury <graces@redhat.com>
5136
5137 * m68k-tdep.c: Reindented.
5138
5139 2002-06-17 Andrew Cagney <ac131313@redhat.com>
5140
5141 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
5142 list of predefined types.
5143
5144 2002-06-16 Mark Kettenis <kettenis@gnu.org>
5145
5146 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
5147 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
5148 REGISTER_CONVERT_TO_RAW): Remove defines.
5149 (i386_register_virtual_type, i386_register_convertible,
5150 i386_register_convert_to_virtual, i386_register_convert_to_raw):
5151 Remove prototypes.
5152 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
5153 macros mentioned above.
5154
5155 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
5156 (i386lynx_saved_pc_after_call): Remove prototype.
5157 * i386ly-tdep.c: Include "i386-tdep.h".
5158 (i386lynx_saved_pc_after_call): Make static. Use
5159 read_memory_nobpt instead of read_memory. Use
5160 read_memory_unsigned_integer instead of read_memory_integer.
5161 (i386lynx_init_abi): New function.
5162 (i386lynx_coff_osabi_sniffer): New function.
5163 (_initialize_i386bsd_tdep): New function.
5164
5165 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
5166 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
5167 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
5168 (i386_fix_call_dummy): Remove prototype.
5169 * i386-tdep.c (i386_call_dummy_words): New variable.
5170 (i386_gdbarch_init): Adjust for removal of the
5171 macros mentioned above.
5172
5173 2002-06-15 Andrew Cagney <ac131313@redhat.com>
5174
5175 * command.h (add_setshow_auto_boolean_cmd): Replace
5176 add_set_auto_boolean_cmd.
5177 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
5178 add_set_auto_boolean_cmd.
5179 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
5180 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
5181 mask-address'' command.
5182 (show_mask_address): Add cmd parameter.
5183 * remote.c (add_packet_config_cmd): Update. Change type of
5184 set_func and show_func to cmd_sfunc_ftype.
5185 (_initialize_remote): Update `set remote Z-packet'
5186 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
5187 (show_remote_protocol_e_packet_cmd): Ditto.
5188 (show_remote_protocol_E_packet_cmd): Ditto.
5189 (show_remote_protocol_P_packet_cmd): Ditto.
5190 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
5191 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
5192 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
5193 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
5194 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
5195 (show_remote_protocol_Z_packet_cmd): Ditto.
5196 (show_remote_protocol_binary_download_cmd): Ditto.
5197 (show_remote_cmd): Pass NULL to all of above.
5198
5199 2002-06-15 Mark Kettenis <kettenis@gnu.org>
5200
5201 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
5202 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
5203 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
5204 POP_FRAME): Remove defines.
5205 (i386_push_arguments, i386_store_struct_return,
5206 i386_extract_return_value, i386_store_return_value,
5207 i386_extract_struct_value_address, i386_push_dummy_frame,
5208 i386_pop_frame): Renove prototypes.
5209 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
5210 macros mentioned above.
5211
5212 2002-06-15 Andrew Cagney <ac131313@redhat.com>
5213
5214 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
5215 add_set_boolean_cmd.
5216 (add_setshow_cmd): New function.
5217 * command.h (add_setshow_boolean_cmd): Replace
5218 add_set_boolean_cmd.
5219 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
5220 and ``set rdiromatzero''.
5221 * maint.c (_initialize_maint_cmds): Update commented out code.
5222 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
5223 * target.c (initialize_targets): Update `set
5224 trust-readonly-sections'.
5225 * remote.c (_initialize_remote): Update `set remotebreak'.
5226
5227 2002-06-15 Mark Kettenis <kettenis@gnu.org>
5228
5229 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
5230 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
5231 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
5232 fit into multi-arch framework.
5233 (i386_breakpoint_from_pc): New function.
5234 (i386_gdbarch_init): Adjust for removal of the macros mentioned
5235 above.
5236
5237 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
5238 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
5239 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
5240 (i386_frameless_function_invocation, i386_frame_num_args,
5241 i386_frame_init_saved_regs): Remove prototypes.
5242 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
5243 macros mentioned above.
5244
5245 2002-06-15 Andrew Cagney <ac131313@redhat.com>
5246
5247 * cli/cli-decode.c (set_cmd_cfunc): Update.
5248 (set_cmd_sfunc): Update.
5249 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
5250 (set_cmd_sfunc, set_cmd_cfunc): Update.
5251 * cli/cli-decode.h: Update.
5252
5253 2002-06-15 Mark Kettenis <kettenis@gnu.org>
5254
5255 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
5256 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
5257
5258 2002-06-15 Andrew Cagney <ac131313@redhat.com>
5259
5260 * defs.h (auto_boolean): Declare enum.
5261 * command.h (cmd_auto_boolean): Delete enum.
5262 * mips-tdep.c (mask_address_var): Update.
5263 (mips_mask_address_p): Update.
5264 (show_mask_address): Update.
5265 * remote.c (struct packet_config): Update.
5266 (update_packet_config): Update.
5267 (show_packet_config_cmd): Update.
5268 (packet_ok): Update.
5269 (add_packet_config_cmd): Update.
5270 (_initialize_remote):
5271 * command.h: Update.
5272 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
5273 (do_setshow_command): Update.
5274 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
5275 * cli/cli-decode.h: Update.
5276
5277 2002-06-15 Mark Kettenis <kettenis@gnu.org>
5278
5279 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
5280 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
5281 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
5282 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
5283 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
5284 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
5285
5286 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
5287 list of DJGPP COFF targets.
5288
5289 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
5290 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
5291 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
5292 (FP0_REGNUM): Remove define.
5293 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
5294 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
5295 (i386_register_virtual_size): Remove protoype.
5296 * i386-tdep.c (i386_register_virtual_size): Removed.
5297 (i386_extract_return_value, i386_store_return_value): Use
5298 FP0_REGNUM instead of NUM_FREGS to determine whether the
5299 floating-point registers are available.
5300 (i386_gdbarch_init): Tweak FIXME about FPU registers.
5301 Adjust for removal of macros mentioned above.
5302
5303 2002-06-15 Mark Kettenis <kettenis@gnu.org>
5304
5305 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
5306 comments.
5307 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
5308 Remove prototypes.
5309 (supply_gregset, fill_gregset): Remove use of register keyword and
5310 remove declaration for regmap. Use I386_NUM_GREGS instead of
5311 NUM_REGS and NUM_FREGS.
5312 (FPREGSET_FSAVE_OFFSET): Remove.
5313 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
5314 NUM_FREGS to determine whether the floating-point registers are
5315 available.
5316
5317 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
5318 gnu_store_registers): Replace usage of NUM_GREGS with
5319 I386_NUM_GREGS.
5320
5321 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
5322 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
5323 usage of NUM_GREGS with I386_NUM_GREGS.
5324
5325 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
5326
5327 * i386bsd-nat.c: Include "i386-tdep.h".
5328 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
5329 I386_NUM_GREGS.
5330
5331 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
5332 and associated comment. They no longer make any sense, since we
5333 don't use this file anymore on Linux.
5334
5335 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
5336 * i386-tdep.c (i386_register_offset, i386_register_size): Use
5337 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
5338 elements in these arrays.
5339 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
5340 MAX_NUM_REGS.
5341
5342 2002-06-15 Mark Kettenis <kettenis@gnu.org>
5343
5344 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
5345 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
5346
5347 2002-06-14 Andrew Cagney <cagney@redhat.com>
5348
5349 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
5350 EXTRACT_RETURN_VALUE.
5351 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
5352 EXTRACT_STRUCT_VALUE_ADDRESS.
5353 * gdbarch.h, gdbarch.c: Regenerate.
5354
5355 * values.c (value_being_returned): Handle
5356 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
5357 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
5358
5359 * arm-linux-tdep.c (arm_linux_init_abi): Update.
5360 * arm-tdep.c (arm_gdbarch_init): Update.
5361 * avr-tdep.c (avr_gdbarch_init): Update.
5362 * cris-tdep.c (cris_gdbarch_init): Update.
5363 * d10v-tdep.c (d10v_gdbarch_init): Update.
5364 * ia64-tdep.c (ia64_gdbarch_init): Update.
5365 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5366 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5367 * s390-tdep.c (s390_gdbarch_init): Update.
5368 * sh-tdep.c (sh_gdbarch_init): Update.
5369 * s390-tdep.c (s390_gdbarch_init): Update.
5370 * sparc-tdep.c (sparc_gdbarch_init): Update.
5371 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5372 * v850-tdep.c (v850_gdbarch_init): Update.
5373 * vax-tdep.c (vax_gdbarch_init): Update.
5374 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
5375 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5376
5377 * config/arc/tm-arc.h: Update.
5378 * config/d30v/tm-d30v.h: Update.
5379 * config/fr30/tm-fr30.h: Update.
5380 * config/h8300/tm-h8300.h: Update.
5381 * config/h8500/tm-h8500.h: Update.
5382 * config/i386/tm-i386.h: Update.
5383 * config/i386/tm-ptx.h: Update.
5384 * config/i386/tm-symmetry.h: Update.
5385 * config/i960/tm-i960.h: Update.
5386 * config/m32r/tm-m32r.h: Update.
5387 * config/m68k/tm-delta68.h: Update.
5388 * config/m68k/tm-linux.h: Update.
5389 * config/m68k/tm-m68k.h: Update.
5390 * config/m88k/tm-m88k.h: Update.
5391 * config/mcore/tm-mcore.h: Update.
5392 * config/mips/tm-mips.h: Update.
5393 * config/mn10200/tm-mn10200.h: Update.
5394 * config/pa/tm-hppa.h: Update.
5395 * config/pa/tm-hppa64.h: Update.
5396 * config/sparc/tm-sp64.h: Update.
5397 * config/sparc/tm-sparc.h: Update.
5398 * config/sparc/tm-sparclet.h: Update.
5399 * config/z8k/tm-z8k.h: Update.
5400
5401 2002-06-14 Andrew Cagney <cagney@redhat.com>
5402
5403 * Makefile.in (i386_linux_tdep_h): Define.
5404 (i386_tdep_h, i387_tdep_h): Define.
5405 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
5406 $(i386_tdep_h) and $(i387_tdep_h).
5407 * i386-linux-nat.c: Include "i386-linux-tdep.h".
5408
5409 2002-06-14 Mark Kettenis <kettenis@gnu.org>
5410
5411 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
5412 Already covered by the default.
5413
5414 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
5415 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
5416 (i386_gdbarch_init): Initialize long_double_format and long_double
5417 bit.
5418
5419 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
5420 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
5421 Move these to ...
5422 * config/i386/i386sol2.mh: ... here.
5423 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
5424 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
5425 (SIGCONTEXT_PC_OFFSET): Remove define.
5426 (IN_SIGTRAMP): Remove define.
5427 * i386-sol2-tdep.c: New file.
5428
5429 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
5430 * config/i386/tm-i386nw.h: Removed.
5431
5432 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
5433 USE_STRUCT_CONVENTION): Remove defines.
5434 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5435 (get_longjmp_target): Remove prototype.
5436 (IN_SIGTRAMP): Remove define.
5437 (i386bsd_in_sigtramp): Remove prototype.
5438 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
5439 function. Update comment accordingly
5440 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
5441 (FRAME_SAVED_PC): Remove define.
5442 (i386bsd_frame_saved_pc): Remove prototype.
5443 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
5444 GET_LONGJMP_TARGET): Remove defines.
5445 (get_longjmp_target): Remove prototype.
5446 (IN_SIGTRAMP): Remove define.
5447 (i386bsd_in_sigtramp): Remove prototype.
5448 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
5449 function. Update comment accordingly
5450 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
5451 (FRAME_SAVED_PC): Remove define.
5452 (i386bsd_frame_saved_pc): Remove prototype.
5453 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
5454 Remove prototype.
5455 (USE_STRUCT_CONVENTION): Remove prototype.
5456 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
5457 declaration.
5458 (_initialize_i386bsd_nat): Revise logic to determine some
5459 constants at compile time when compiling a native GDB. Warn if
5460 things don't match up with what we expect.
5461 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
5462 Remove variables.
5463 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
5464 to use date stored in `struct gdbarch_tdep'.
5465 (i386bsd_sigcontext_offset): Remove varaible.
5466 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
5467 stored in `struct gdbarch_tdep'.
5468 (i386bsd_frame_saved_pc): Make static.
5469 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
5470 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
5471 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
5472 i386fbsd4_sc_pc_offset): New variables.
5473 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
5474 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
5475 functions.
5476 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
5477 functions.
5478 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
5479 Modify the value of i386fbsd_sigtramp_start and
5480 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
5481 i386fbsd_sigtramp_end.
5482 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
5483 function.
5484
5485 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
5486 define to i386-linux-tdep.h.
5487 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
5488 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
5489 defines.
5490 (i386_linux_register_name, i386_linux_register_byte,
5491 i386_linux_register_raw_size): Remove prototypes.
5492 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
5493 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
5494 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
5495 TARGET_WRITE_PC): Remove defines.
5496 (i386_linux_in_sigtramp, i386_linux_frame_chain,
5497 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
5498 i386_linux_write_pc): Remove prototypes.
5499 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5500 (get_longjmp_target): Remove prototype.
5501 * i386-linux-tdep.h: New file.
5502 * i386-linux-nat.c: Include "i386-linux-tdep.h".
5503 * i386-linux-tdep.c: Include "i386-tdep.h" and
5504 "i386-linux-tdep.h".
5505 (i386_linux_register_name, i386_linux_register_byte,
5506 i386_linux_register_raw_size, i386_linux_in_sigtramp,
5507 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
5508 Make static.
5509 (i386_linux_init_abi): New function.
5510 (_initialize_i386_linux_tdep): New function.
5511
5512 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
5513 (i386_saved_pc_after_call): Remove prototype.
5514 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
5515 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
5516 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
5517 (i386_register_name, i386_stab_reg_to_regnum,
5518 i386_dwarf_reg_to_regnum): Remove prototypes.
5519 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
5520 SIZEOF_SSE_REGS): Remove defines.
5521 (REGISTER_BYTES): Remove define.
5522 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
5523 (i386_register_byte, i386_register_raw_size): Remove prototypes.
5524 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
5525 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
5526 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
5527 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
5528 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
5529 (get_longjmp_target): Remove prototype.
5530 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
5531 (sigtramp_saved_pc): Remove define.
5532 (i386v4_sigtramp_saved_pc): Remove prototype.
5533 * config/i386/tm-go32.h (FRAME_CHAIN,
5534 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
5535 (i386go32_frame_saved_pc): Remove prototype.
5536 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5537 (get_longjmp_target): Remove prototype.
5538 * i386-tdep.h: Include "osabi.h".
5539 (enum i386_abi): Removed.
5540 (enum struct_return): New enum.
5541 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
5542 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
5543 sc_pc_offset members.
5544 (i386_gdbarch_register_os_abi): Remove prototype.
5545 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
5546 I386_SSE_NUM_REGS): New defines.
5547 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
5548 I386_SSE_SIZEOF_REGS): New defines.
5549 (i386_register_name, i386_register_byte, i386_register_raw_size):
5550 New prototypes.
5551 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
5552 (i386bsd_sigtramp_saved_pc): New prototype.
5553 * i386-tdep.c: Don't include "elf-bfd.h".
5554 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
5555 i386_frame_chain, i386_saved_pc_after_call): Make static.
5556 (i386_frame_saved_pc): Rewrite to call architecture dependent
5557 function to deal with signal handlers. Make static.
5558 (i386go32_frame_saved_pc): Removed.
5559 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
5560 Removed.
5561 (i386_get_longjmp_target): New function.
5562 (default_struct_convention, pcc_struct_convention,
5563 reg_struct_convention, valid_conventions, struct_convention): New
5564 variables.
5565 (i386_use_struct_convention): New function.
5566 (i386v4_sigtramp_saved_pc): Renamed to
5567 i386_svr4_sigtramp_saved_pc. Made static. Moved.
5568 (i386_pc_in_sigtramp): New function.
5569 (i386_abi_names): Removed.
5570 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
5571 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
5572 Removed.
5573 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
5574 i386_gdbarch_register_os_abi): Removed.
5575 (struct i386_abi_handler): Removed.
5576 (i386_abi_handler_list): Removed.
5577 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
5578 functions.
5579 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
5580 i386_nw_init_abi): New functions.
5581 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
5582 Use set_gdbarch_xxx() calls instead of relying on macros for a
5583 number of calls.
5584 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
5585 (_initialize_i386_tdep): Add new 'struct-convcention' command.
5586 Register the various architecture variants defined in this file.
5587
5588 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
5589
5590 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
5591 (struct main_type): Remove arg_types member. Update comments for
5592 struct field.
5593 (TYPE_ARG_TYPES): Remove.
5594 (TYPE_FN_FIELD_ARGS): Update.
5595 (smash_to_method_type): Update prototype.
5596
5597 * c-typeprint.c (cp_type_print_method_args): Take method type
5598 instead of argument list. Use new argument layout. Simplify.
5599 (c_type_print_args): Use new argument layout. Simplify.
5600 (c_type_print_base): Update call to cp_type_print_method_args.
5601 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
5602 argument; use die->type instead. Update call to
5603 smash_to_method_type.
5604 (read_structure_scope): Update call to dwarf2_add_member_fn.
5605 * gdbtypes.c (allocate_stub_method): Update comment.
5606 (smash_to_method_type): Take new NARGS and VARARGS arguments.
5607 Use new argument layout.
5608 (check_stub_method): Use new argument layout. Don't count
5609 void as an argument.
5610 (print_arg_types): Update comments. Use new argument layout.
5611 (recursive_dump_type): Don't print arg_types member.
5612 * hpread.c (hpread_read_struct_type): Use new argument layout.
5613 (fixup_class_method_type): Likewise.
5614 (hpread_type_lookup): Likewise.
5615 * stabsread.c (read_type): Update calls to read_args and
5616 smash_to_method_type.
5617 (read_args): Use new argument layout. Simplify.
5618 * valops.c (typecmp): Use new argument layout. Update parameters
5619 and comments. Simplify.
5620 (hand_function_call): Use new argument layout.
5621 (search_struct_method): Update call to typecmp.
5622 (find_overload_match): Use new argument layout.
5623
5624 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
5625
5626 * NEWS: Mention multithreaded debug support for gdbserver.
5627
5628 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
5629
5630 * MAINTAINERS: Mention NEWS.
5631
5632 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
5633
5634 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
5635 (struct mips_objfile_private, compare_pdr_entries): New.
5636 (non_heuristic_proc_desc): Read the ".pdr" section if it
5637 is present.
5638
5639 2002-06-12 Andrew Cagney <ac131313@redhat.com>
5640
5641 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
5642 (arm_debug): New static variable.
5643 (_initialize_arm_tdep): Add ``set debug arm'' command.
5644
5645 2002-06-12 Andrew Cagney <ac131313@redhat.com>
5646
5647 * Makefile.in (sim_arm_h): Define.
5648 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
5649 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
5650 (arm_register_sim_regno): New function, map an internal REGNUM
5651 onto a simulator register number.
5652 (arm_gdbarch_init): Set register_sim_regno.
5653
5654 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
5655
5656 * MAINTAINERS: Add self.
5657
5658 2002-06-11 Jim Blandy <jimb@redhat.com>
5659
5660 * source.c (source_info): Mention whether the symtab has
5661 information about preprocessor macros.
5662
5663 Call the command `info macro', not `show macro'.
5664 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
5665 Fix error message.
5666 (_initialize_macrocmd): Register `info_macro_command' in
5667 `infolist', not `showlist'.
5668
5669 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
5670
5671 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
5672 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
5673 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
5674 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
5675 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
5676 unconditionally.
5677 (set_mipsfpu_single_command, set_mipsfpu_double_command)
5678 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
5679 (_initialize_mips_tdep): Remove dead code.
5680 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
5681 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
5682 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
5683 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
5684 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
5685 MIPS_LAST_FP_ARG_REGNUM): Remove.
5686
5687 2002-06-11 Michal Ludvig <mludvig@suse.cz>
5688
5689 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
5690 (unwind_tmp_obstack_free, parse_frame_info)
5691 (update_context, cfi_read_fp, cfi_write_fp)
5692 (cfi_frame_chain, cfi_init_extra_frame_info)
5693 (cfi_virtual_frame_pointer): Use the above function.
5694 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
5695
5696 2002-06-11 Corinna Vinschen <vinschen@redhat.com>
5697
5698 * v850-tdep.c (v850_type_is_scalar): New function.
5699 (v850_use_struct_convention): Match current gcc implementation
5700 as close as possible.
5701 (v850_push_arguments): Fix stack_offset handling. Don't write
5702 struct_addr into register. This is done by v850_store_struct_return.
5703 (v850_extract_return_value): Care for structs.
5704 (v850_store_return_value): Ditto.
5705 (v850_store_struct_return): Actually write address.
5706
5707 2002-06-11 Michal Ludvig <mludvig@suse.cz>
5708
5709 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
5710 without debug information too.
5711
5712 2002-06-10 Andrew Cagney <ac131313@redhat.com>
5713
5714 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
5715 Make multi-arch pure.
5716 * gdbarch.h, gdbarch.c: Re-generate.
5717 * arm-tdep.c (arm_print_float_info): Update.
5718 * arch-utils.h (default_print_float_info): Update.
5719 * arch-utils.c (default_print_float_info): Update.
5720 * infcmd.c (float_info): Update call.
5721
5722 2002-06-10 Andrew Cagney <ac131313@redhat.com>
5723
5724 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
5725 the front of the initialize list.
5726
5727 2002-06-10 Andrew Cagney <ac131313@redhat.com>
5728
5729 * infrun.c (struct inferior_status): Replace fields
5730 selected_frame_address and selected_level with field
5731 selected_frame_id.
5732 (save_inferior_status): Update. Use get_frame_id.
5733 (struct restore_selected_frame_args): Delete.
5734 (restore_selected_frame): Update. Use frame_find_by_id.
5735 (restore_inferior_status): Update.
5736
5737 * breakpoint.h (struct breakpoint): Change type of
5738 watchpoint_frame to frame_id.
5739 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
5740 call to get_current_frame.
5741 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
5742 get_current_frame.
5743 (watchpoint_check): Use frame_find_by_id.
5744
5745 * frame.h (record_selected_frame): Delete declaration.
5746 * stack.c (record_selected_frame): Delete function.
5747
5748 * frame.h (struct frame_id): Define.
5749 (get_frame_id): Declare.
5750 (frame_find_by_id): Declare.
5751 * frame.c (frame_find_by_id): New function.
5752 (get_frame_id): New function.
5753
5754 2002-06-10 Andrey Volkov <avolkov@transas.com>
5755
5756 * ser-e7kpc.c: Fix duplicated define and call of
5757 _initialize_ser_e7000pc
5758
5759 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
5760
5761 * signals/signals.c (target_signal_from_host): Fix #ifdef
5762 SIGRTMIN case.
5763 (do_target_signal_to_host): Likewise.
5764
5765 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
5766
5767 * mips-tdep.c (mips_find_abi_section): New function.
5768 (mips_gdbarch_init): Call it.
5769
5770 2002-06-09 Mark Kettenis <kettenis@gnu.org>
5771
5772 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
5773 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
5774 after Andrew's 2002-06-08 gdbarch change.
5775
5776 2002-06-09 Mark Kettenis <kettenis@gnu.org>
5777
5778 * i386-linux-nat.c (suppy_gregset): Don't supply
5779 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
5780 register cache.
5781 (fill_gregset): Don't fetch it under the same circumstances.
5782
5783 2002-06-09 Andrew Cagney <cagney@redhat.com>
5784
5785 * Makefile.in (callback_h): Define.
5786 (remote_sim_h): Update path to remote-sim.h.
5787 (remote-rdp.o): Add $(callback_h).
5788 (remote-sim.o): Use $(callback_h).
5789 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
5790 * remote-rdp.c: Include "gdb/callback.h".
5791
5792 2002-06-09 Mark Kettenis <kettenis@gnu.org>
5793
5794 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
5795 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
5796
5797 2002-06-08 Andrew Cagney <ac131313@redhat.com>
5798
5799 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
5800 * rdi-share/serpardr.c: Ditto.
5801 * rdi-share/unixcomm.c: Ditto.
5802 * rdi-share/serdrv.c: Ditto.
5803 * rdi-share/hostchan.h: Ditto.
5804 * rdi-share/hostchan.c: Ditto.
5805 * rdi-share/host.h: Ditto.
5806 * rdi-share/devsw.c: Ditto.
5807
5808 * objfiles.h: Change type of obj_private to void pointer.
5809 * pa64solib.c: Update copyright. Don't include "assert.h", use
5810 strcmp instead of STREQ, use LONGEST, do not use PTR
5811 * somsolib.c: Ditto.
5812
5813 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
5814 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
5815 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
5816
5817 2002-06-08 Andrew Cagney <ac131313@redhat.com>
5818
5819 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
5820 (default_get_saved_register): Delete function.
5821 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
5822 generic_unwind_get_saved_register.
5823 * gdbarch.h, gdbarch.c: Re-generate.
5824
5825 2002-06-08 Andrew Cagney <ac131313@redhat.com>
5826
5827 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
5828 generic_func_frame_chain_valid.
5829 * gdbarch.h, gdbarch.c: Re-generate.
5830 * blockframe.c (generic_func_frame_chain_valid): Only check
5831 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
5832 passing FP to PC_IN_CALL_DUMMY.
5833 Fix PR gdb/360.
5834
5835 2002-06-08 Andrew Cagney <ac131313@redhat.com>
5836
5837 * gdbarch.sh (struct gdbarch_data): Add field init_p.
5838 (register_gdbarch_data): Initialize init_p.
5839 (gdbarch_data): Initialize data pointer using the init function.
5840 (init_gdbarch_data): Delete function.
5841 (gdbarch_update_p): Update.
5842 (initialize_non_multiarch): Update.
5843 (struct gdbarch): Add field initialized_p.
5844 * gdbarch.h, gdbarch.c: Re-generate.
5845
5846 2002-06-07 Michal Ludvig <mludvig@suse.cz>
5847
5848 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
5849 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
5850 better do the things actually here.
5851 * x86-64-tdep.c (x86_64_register_name2nr): New.
5852 (x86_64_register_name): Renamed to x86_64_register_nr2name.
5853 (x86_64_gdbarch_init): Respect the above change.
5854 * x86-64-tdep.h (x86_64_register_name2nr)
5855 (x86_64_register_nr2name): Add prototypes.
5856 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
5857
5858 2002-06-06 Michael Snyder <msnyder@redhat.com>
5859
5860 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
5861 Delete extra braces and re-indent.
5862 (d10v_store_return_value): Char return values
5863 must be shifted over by one byte in R0.
5864 (d10v_extract_return_value): Delete extra braces, re-indent.
5865
5866 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
5867
5868 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
5869 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
5870 (d10v_integer_to_address): Rewrite.
5871 (d10v_frame_init_saved_regs): When reading fp and sp registers use
5872 the d10v specific functions which take care of converting to the
5873 correct space.
5874
5875 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
5876
5877 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
5878 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
5879
5880 2002-06-02 Andrew Cagney <ac131313@redhat.com>
5881
5882 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
5883 includes.
5884 * config/tm-linux.h: Ditto.
5885 * config/alpha/tm-alphalinux.h: Ditto.
5886 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
5887 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
5888 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
5889 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
5890 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
5891 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
5892 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
5893 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
5894 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
5895 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
5896 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
5897 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
5898 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
5899 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
5900 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
5901 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
5902 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
5903 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
5904 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
5905 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
5906 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
5907 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
5908 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
5909 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
5910 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
5911 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
5912 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
5913 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
5914 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
5915 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
5916 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
5917 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
5918 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
5919 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
5920 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
5921 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
5922 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
5923
5924 2002-05-04 Aidan Skinner <aidan@velvet.net>
5925
5926 * ada-exp.tab.c: New file
5927 * ada-exp.y: New file
5928 * ada-lang.c: New file
5929 * ada-lang.h: New file
5930 * ada-lex.c: New file
5931 * ada-lex.l: New file
5932 * ada-tasks.c: New file
5933 * ada-typeprint.c: New file
5934 * ada-valprint.c: New file
5935
5936 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
5937
5938 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
5939 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
5940
5941 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
5942
5943 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
5944 insetead of ppc-linux-tdep.o.
5945 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
5946 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
5947
5948 2002-06-02 Andrew Cagney <ac131313@redhat.com>
5949
5950 2002-05-07 Christian Groessler <chris@groessler.org>
5951 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
5952 bit register contents for little endian hosts.
5953
5954 2002-06-01 Andrew Cagney <ac131313@redhat.com>
5955
5956 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
5957 any maintainer.
5958
5959 2002-06-01 Andrew Cagney <ac131313@redhat.com>
5960
5961 * gdbarch.h: Regenerate.
5962
5963 2002-06-01 Andrew Cagney <ac131313@redhat.com>
5964
5965 * MAINTAINERS: Add everyone to write-after-approval list.
5966
5967 2002-06-01 Andrew Cagney <ac131313@redhat.com>
5968
5969 * stack.c (frame_info): Use frame_register_unwind instead of
5970 saved_regs. Mention when the SP is on the stack or in a register.
5971
5972 * frame.h (frame_register_unwind_ftype): Define. Document.
5973 (struct frame_info): Add field register_unwind and
5974 register_unwind_cache.
5975 (frame_register_unwind): Declare.
5976 (generic_unwind_get_saved_register): Declare.
5977
5978 * frame.c (frame_register_unwind): New function.
5979 (generic_unwind_get_saved_register): New function.
5980
5981 * blockframe.c (generic_call_dummy_register_unwind): New function.
5982 (frame_saved_regs_register_unwind): New function.
5983 (set_unwind_by_pc): New function.
5984 (create_new_frame): New function.
5985 (get_prev_frame): New function.
5986
5987 2002-05-30 Andrew Cagney <ac131313@redhat.com>
5988
5989 * a29k-share/: Delete directory.
5990 * remote-vx29k.c: Delete file.
5991
5992 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5993
5994 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
5995 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
5996
5997 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5998
5999 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
6000 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
6001 (sparc64nbsd-nat.o)
6002 (sparcnbsd-nat.o)
6003 (sparcnbsd-tdep.o): New dependency lists.
6004 * NEWS: Note new UltraSPARC NetBSD native configuration.
6005 * configure.host (sparc64-*-netbsd*): New host.
6006 * configure.tgt (sparc-*-netbsdelf*)
6007 (sparc-*-netbsd*): Set gdb_target to nbsd.
6008 (sparc64-*-netbsd*): New target.
6009 * sparc64nbsd-nat.c: New file.
6010 * sparcnbsd-nat.c: New file.
6011 * sparcnbsd-tdep.c: New file.
6012 * sparcnbsd-tdep.h: New file.
6013 * config/sparc/nbsd.mt: New file.
6014 * config/sparc/nbsd64.mh: New file.
6015 * config/sparc/nbsd64.mt: New file.
6016 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
6017 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
6018 (HOST_IPC): Remove.
6019 * config/sparc/nbsdaout.mt: Remove.
6020 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
6021 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
6022 (HOST_IPC): Remove.
6023 * config/sparc/nbsdelf.mt: Remove.
6024 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
6025 sparc-nat.c compatiblity defines.
6026 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
6027 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
6028 * config/sparc/tm-nbsd64.h: New file.
6029 * config/sparc/tm-nbsdaout.h: Remove.
6030 * config/sparc/xm-nbsd.h: Remove.
6031
6032 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
6033
6034 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
6035 * sparc-tdep.c: Include osabi.h.
6036 (gdbarch_tdep): Add osabi member.
6037 (_initialize_sparc_tdep): Use gdbarch_register.
6038 (sparc_gdbarch_init): Use generic OS ABI framework.
6039 (sparc_dump_tdep): New function.
6040
6041 2002-05-30 Kevin Buettner <kevinb@redhat.com>
6042
6043 * corefile.c (do_captured_read_memory_integer): Return non-zero
6044 result.
6045 (safe_read_memory_integer): Copy result of memory read when
6046 status is non-zero. Also, add comments.
6047
6048 2002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
6049
6050 * Makefile.in (ppc_tdep_h): Define.
6051 (ppc-linux-nat.o)
6052 (ppc-linux-tdep.o)
6053 (rs6000-tdep.o): Use $(ppc_tdep_h).
6054 (ppc-sysv-tdep.o)
6055 (ppcnbsd-nat.o)
6056 (ppcnbsd-tdep.o): New dependency lists.
6057 * ppc-tdep.h: Use generic OS ABI framework.
6058 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
6059 (ppc_linux_init_abi): New functions.
6060 (ppc_sysv_abi_broken_use_struct_convention)
6061 (ppc_sysv_abi_use_struct_convention)
6062 (ppc_sysv_abi_push_arguments): Move to...
6063 * ppc-sysv-tdep.c: ...here.
6064 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
6065 * rs6000-tdep.c (process_note_abi_tag_sections)
6066 (get_elfosabi): Remove.
6067 (rs6000_gdbarch_init): Use generic OS ABI framework.
6068 (rs6000_dump_tdep): New function.
6069 (_initialize_rs6000_tdep): Use gdbarch_register.
6070 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
6071 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
6072 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
6073 of ppc-linux-tdep.o.
6074 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
6075 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
6076 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
6077 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
6078 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
6079 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
6080
6081 2002-05-29 Jim Blandy <jimb@redhat.com>
6082
6083 * macroscope.c (default_macro_scope): Put `void' in empty argument
6084 list.
6085
6086 2002-05-29 Andrew Cagney <ac131313@redhat.com>
6087
6088 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
6089 * arch-utils.c: Include "sim-regno.h".
6090 * gdbarch.sh: Don't include "sim-regno.h".
6091 * gdbarch.h, gdbarch.c: Regenerate.
6092 * sim-regno.h (legacy_register_sim_regno): Move declaration from
6093 here.
6094 * arch-utils.h (legacy_register_sim_regno): To here.
6095 * remote-sim.c (legacy_register_sim_regno): Move function from
6096 here.
6097 * arch-utils.c (legacy_register_sim_regno): To here.
6098
6099 2002-05-28 Andrew Cagney <ac131313@redhat.com>
6100
6101 * sim-regno.h: New file.
6102 * Makefile.in (sim_regno_h): Define.
6103 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
6104 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
6105 (legacy_register_sim_regno): New function.
6106 (one2one_register_sim_regno): New function.
6107 (gdbsim_fetch_register): Rewrite.
6108 (gdbsim_store_register): Only store a register when
6109 REGISTER_SIM_REGNO is valid.
6110 * d10v-tdep.c: Include "sim-regno.h".
6111 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
6112 (d10v_ts3_register_sim_regno): Ditto.
6113 * gdbarch.sh: Include "sim-regno.h".
6114 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
6115 * gdbarch.h, gdbarch.c: Regenerate.
6116 * arch-utils.h (default_register_sim_regno): Delete declaration.
6117 * arch-utils.c (default_register_sim_regno): Delete function.
6118
6119 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
6120
6121 * ppcnbsd-nat.c: Rewrite.
6122 * ppcnbsd-tdep.c: New file.
6123 * ppcnbsd-tdep.h: New file.
6124 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
6125 solib.o, and solib-svr4.o.
6126 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
6127 nbsd-tdep.o, and corelow.o.
6128
6129 2002-05-28 Andrew Cagney <ac131313@redhat.com>
6130
6131 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
6132 `tr' and `sed'. Mention that `broken' targets are not expected to
6133 build.
6134
6135 2002-05-27 Michal Ludvig <mludvig@suse.cz>
6136
6137 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
6138 Let PC point right after the prologue before looking up symbols.
6139
6140 2002-05-27 Martin M. Hunt <hunt@redhat.com>
6141
6142 * i386-tdep.c (i386_register_virtual_type): Return
6143 builtin_type_vec128i for SSE registers.
6144
6145 * gdbtypes.h (builtin_type_vec128i): Declare.
6146
6147 * gdbtypes.c (build_builtin_type_vec128i): New function.
6148 (builtin_type_v2_double, builtin_type_v4_int64): New types.
6149 (builtin_type_vec128i): New type for SSE2 128-bit registers.
6150 (build_gdbtypes): Initialize new builtin vector types.
6151 (_initialize_gdbtypes): Register new vector types with gdbarch.
6152
6153 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6154
6155 * MAINTAINERS: ns32k is not longer an obsolete candidate,
6156 since it has been multi-arch'd.
6157 * NEWS: Note that ns32k-*-* is now partial multi-arch.
6158 Move Alpha and VAX multi-arch news entries to same section
6159 as other multi-arch news.
6160
6161 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6162
6163 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
6164 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
6165 static. Rename some register numbers to put them in ns32k-tdep
6166 private namespace.
6167 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
6168 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
6169 functions.
6170 (_initialize_ns32k_tdep): Use gdbarch_register.
6171 * ns32k-tdep.h: New file.
6172 * ns32knbsd-tdep.c: New file.
6173 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
6174 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
6175 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
6176 REGISTER_BYTES, REGISTER_BYTE): Remove.
6177 * config/ns32k/tm-ns32k.h: New file.
6178 * config/ns32k/tm-umax.h: Remove.
6179
6180 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6181
6182 * ns32k-tdep.c (ns32k_saved_pc_after_call,
6183 ns32k_store_struct_return, ns32k_extract_return_value,
6184 ns32k_store_return_value, ns32k_extract_struct_value_address): New
6185 functions.
6186 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
6187 ns32k_saved_pc_after_call.
6188 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
6189 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
6190 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
6191 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
6192 ns32k_extract_struct_value_address.
6193
6194 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6195
6196 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
6197 ns32k_fix_call_dummy): New.
6198 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
6199 ns32k_call_dummy_words.
6200 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
6201 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
6202 CALL_DUMMY_NARGS): Remove.
6203 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
6204
6205 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6206
6207 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
6208 ns32k_frame_saved_pc, ns32k_frame_args_address,
6209 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
6210 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
6211 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
6212 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
6213 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
6214 (BREAKPOINT): Remove..
6215 (FRAME_CHAIN): Define as ns32k_frame_chain.
6216 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
6217 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
6218 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
6219 (FRAME_FIND_SAVED_REGS): Remove.
6220 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
6221 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
6222 (POP_FRAME): Define as ns32k_pop_frame.
6223
6224 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6225
6226 * ns32k-tdep.c (ns32k_register_byte_32082,
6227 ns32k_register_byte_32382, ns32k_register_raw_size,
6228 ns32k_register_virtual_size, ns32k_register_virtual_type): New
6229 functions.
6230 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
6231 ns32k_register_byte_32382.
6232 * config/ns32k/tm-umax.h: Update copyright years.
6233 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
6234 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
6235 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
6236 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
6237 (ns32k_get_enter_addr): Fix prototype.
6238
6239 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6240
6241 * ns32k-tdep.c: Update copyright years.
6242 (ns32k_register_name_32082): New function.
6243 (ns32k_register_name_32382): Ditto.
6244 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
6245 (REGISTER_NAME): Define as ns32k_register_name_32382.
6246 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
6247 (REGISTER_NAME): Define as ns32k_register_name_32082.
6248
6249 2002-05-24 Jim Blandy <jimb@redhat.com>
6250
6251 * dwarf2read.c (free_line_header): Use xfree, not free.
6252
6253 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
6254
6255 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
6256 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
6257
6258 2002-05-23 Andrew Cagney <ac131313@redhat.com>
6259
6260 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
6261
6262 2002-05-23 Andrew Cagney <ac131313@redhat.com>
6263
6264 From Ross Alexander at NEC Europe:
6265 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
6266
6267 2002-05-23 Michael Snyder <msnyder@redhat.com>
6268
6269 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
6270 for input, rather than parse_and_eval_address.
6271
6272 2002-05-23 Andrew Cagney <ac131313@redhat.com>
6273
6274 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
6275 * Makefile.in (sim_d10v_h): Update definition.
6276
6277 2002-05-24 Andrew Cagney <cagney@redhat.com>
6278
6279 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
6280 change `2002-05-22 Michael Snyder' below.
6281 (d10v_push_arguments): Ditto.
6282 (d10v_extract_return_value): Ditto.
6283
6284 2002-05-23 Jim Blandy <jimb@redhat.com>
6285
6286 * macrotab.c (check_for_redefinition): Don't complain if the new
6287 definition is the same as the previous one. Take more arguments
6288 to allow the comparison.
6289 (macro_define_object, macro_define_function): Pass more arguments
6290 to check_for_redefinition.
6291
6292 2002-05-22 Michael Snyder <msnyder@redhat.com>
6293
6294 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
6295 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
6296 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
6297 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
6298 Don't bail if return_pc is PC_IN_CALL_DUMMY.
6299 Add a temp variable to save a call (and a memory read).
6300 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
6301 if possible (so that PC_IN_CALL_DUMMY will work).
6302
6303 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
6304
6305 * MAINTAINERS: Remove status `OBSOLETE' from v850.
6306
6307 2002-05-22 Michal Ludvig <mludvig@suse.cz>
6308
6309 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
6310 fde->cie_ptr.
6311 (dwarf2_build_frame_info): Corrected handling of eh_frame.
6312 (dwarf2_build_frame_info): Add offset to fde->initial_location
6313 so that frames of shared libraries are mapped correctly.
6314 (execute_stack_op): Change type of 'result' from ULONGEST to
6315 CORE_ADDR.
6316
6317 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
6318
6319 * config/alpha/tm-nbsd.h: Include solib.h.
6320
6321 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
6322
6323 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
6324 assumptions about the host's byte order.
6325
6326 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
6327
6328 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
6329 to dependency list.
6330 * alphanbsd-tdep.c: Include solib-svr4.h.
6331 * shnbsd-tdep.c: Ditto.
6332
6333 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
6334
6335 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
6336 nbsd-tdep.h to dependency list.
6337 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
6338 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
6339 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
6340 nbsdaout.mh and nbsdelf.mh consistently.
6341 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
6342 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
6343 nbsdaout.mt and nbsdelf.mh consistently.
6344 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
6345 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
6346 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
6347 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
6348 a.out shared library stuff from here...
6349 * config/nm-nbsdaout.h: ...to here.
6350 * config/tm-nbsd.h: Remove.
6351 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
6352 * config/arm/nbsd.mh: Remove.
6353 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
6354 nbsd-tdep.o.
6355 * config/arm/nbsdaout.mh: New file.
6356 * config/arm/nbsdelf.mh: New file.
6357 * config/arm/nm-nbsdaout.h: New file.
6358 * config/i386/nbsd.mh: Remove.
6359 * config/i386/nbsd.mt: Remove.
6360 * config/i386/nbsdaout.mh: New file.
6361 * config/i386/nbsdaout.mt: New file.
6362 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
6363 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
6364 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
6365 i386_register_u_addr): Remove.
6366 * config/i386/nm-nbsdaout.h: New file.
6367 * config/i386/nm-nbsdelf.h: Remove.
6368 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
6369 (USE_STRUCT_CONVENTION): Remove.
6370 * config/i386/tm-nbsdaout.h: New file.
6371 * config/i386/tm-nbsdelf.h: Remove.
6372 * config/m68k/nbsd.mh: Remove.
6373 * config/m68k/nbsd.mt: Remove.
6374 * config/m68k/nbsdaout.mh: New file.
6375 * config/m68k/nbsdaout.mt: New file.
6376 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
6377 * config/m68k/nm-nbsdaout.h: New file.
6378 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
6379 (IN_SOLIB_CALL_TRAMPOLINE): Define.
6380 * config/ns32k/nbsd.mh: Remove.
6381 * config/ns32k/nbsd.mt: Remove.
6382 * config/ns32k/nbsdaout.mh: New file.
6383 * config/ns32k/nbsdaout.mt: New file.
6384 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
6385 * config/ns32k/nm-nbsdaout.h: New file.
6386 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
6387 (IN_SOLIB_CALL_TRAMPOLINE): Define.
6388 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
6389 (SVR4_SHARED_LIBS): Remove.
6390 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
6391 * config/sparc/nbsd.mh: Remove.
6392 * config/sparc/nbsd.mt: Remove.
6393 * config/sparc/nbsdaout.mh: New file.
6394 * config/sparc/nbsdaout.mt: New file.
6395 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
6396 * config/sparc/nbsdelf.mt: New file.
6397 * config/sparc/nm-nbsdaout.h: New file.
6398 * config/sparc/nm-nbsdelf.h: Remove.
6399 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
6400 * config/sparc/tm-nbsdaout.h: New file.
6401
6402 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6403
6404 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
6405 mipsnbsd-tdep.c
6406 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
6407
6408 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6409
6410 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
6411 shnbsd-nat.c.
6412 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
6413
6414 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6415
6416 * NEWS: Note new MIPS NetBSD native configuration.
6417 * configure.host (mips*-*-netbsd*): New host.
6418 * configure.tgt (mips*-*-netbsd*): New target.
6419 * mipsnbsd-nat.c: New file.
6420 * mipsnbsd-tdep.c: New file.
6421 * mipsnbsd-tdep.h: New file.
6422 * config/mips/nbsd.mh: New file.
6423 * config/mips/nbsd.mt: New file.
6424 * config/mips/nm-nbsd.h: New file.
6425 * config/mips/tm-nbsd.h: New file.
6426
6427 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6428
6429 * Makefile.in (SFILES): Add osabi.c.
6430 (COMMON_OBS): Add osabi.o.
6431 (osabi.o): New dependency list.
6432 * osabi.c: New file.
6433 * osabi.h: New file.
6434 * doc/gdbint.texinfo: Document new generic OS ABI framework.
6435
6436 * Makefile.in (alpha_tdep_h): Define and use instead of
6437 alpha-tdep.h.
6438 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
6439 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
6440 Remove.
6441 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
6442 * alpha-tdep.h: Include osabi.h.
6443 (alpha_abi): Remove.
6444 (gdbarch_tdep): Use generic OS ABI framework.
6445 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
6446 gdbarch_register_osabi.
6447 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
6448 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
6449 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
6450
6451 * Makefile.in (sh_tdep_h): Add osabi.h.
6452 * sh-tdep.h (sh_osabi): Remove.
6453 (gdbarch_tdep): Use generic OS ABI framework.
6454 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
6455 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
6456 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
6457 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
6458
6459 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
6460 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
6461 gdbarch_register_osabi.
6462 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
6463 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
6464 (get_elfosabi): Rename to...
6465 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
6466 ABI framework support routines.
6467 (arm_gdbarch_init): Use generic OS ABI framework.
6468 (arm_dump_tdep): Likewise.
6469 (_initialize_arm_tdep): Likewise.
6470 * arm-tdep.h: Include osabi.h.
6471 (arm_abi): Remove.
6472 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
6473 osabi member.
6474 (arm_gdbarch_register_os_abi): Remove prototype.
6475 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
6476 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
6477
6478 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
6479 * mips-tdep.c: Include osabi.h.
6480 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
6481 OS ABI framework.
6482
6483 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
6484
6485 * h8300-tdep.c: Fix formatting.
6486
6487 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
6488
6489 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
6490 printing vector registers.
6491
6492 2002-05-19 Andrew Cagney <ac131313@redhat.com>
6493
6494 From Fernando Nasser:
6495 * remote.c (remote_async_open_1): Re-throw the exception when the
6496 connection fails.
6497 (remote_cisco_open): Ditto.
6498 (remote_open_1): Ditto.
6499
6500 2002-05-19 Andrew Cagney <ac131313@redhat.com>
6501
6502 * remote.c (remote_start_remote_dummy): Add uiout parameter.
6503 (remote_start_remote): Add uiout parameter. Pass through to
6504 remote_start_remote_dummy.
6505 (remote_open_1): Use catch_exception instead of catch_errors.
6506 (remote_async_open_1): Ditto.
6507 (remote_cisco_open): Ditto.
6508
6509 2002-05-19 Andrew Cagney <ac131313@redhat.com>
6510
6511 * remote.c (remote_start_remote): Replace PTR with void pointer.
6512 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
6513 static.
6514
6515 2002-05-18 Andrew Cagney <ac131313@redhat.com>
6516
6517 * gdb_indent.sh: Allow the script to be run in the sim directory.
6518
6519 2002-05-18 Mark Kettenis <kettenis@gnu.org>
6520
6521 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
6522 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
6523
6524 * corelow.c (core_open): Only call set_gdbarch_from_file if
6525 exec_bfd is NULL.
6526
6527 2002-05-17 Andrey Volkov <avolkov@transas.com>
6528
6529 * h8300-tdep.c: Add support of EXR register
6530 * config/h8300/tm-h8300.h: Ditto.
6531
6532 2002-05-17 Andrey Volkov <avolkov@transas.com>
6533
6534 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
6535
6536 2002-05-17 Andrey Volkov <avolkov@transas.com>
6537
6538 * h8300-tdep.c: Change literal regnums to REGNO.
6539
6540 2002-05-17 Jim Blandy <jimb@redhat.com>
6541
6542 * NEWS: Note addition of macro support.
6543
6544 Expand preprocessor macros in C expressions.
6545 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
6546 (scan_macro_expansion, scanning_macro_expansion,
6547 finished_macro_expansion): New function declarations.
6548 (expression_macro_lookup_func, expression_macro_lookup_baton): New
6549 variable declarations.
6550 * parser-defs.h (expression_context_pc): New declaration.
6551 * parse.c (expression_context_pc): New variable.
6552 (parse_exp_1): Set expression_context_pc, as well as
6553 expression_context_block.
6554 * c-exp.y (yylex): If we're not already reading the result of a
6555 macro expansion, try to macro-expand the next token. When we're
6556 done scanning a macro expansion, switch back to the mainline text.
6557 Commas and `if's in a macro's expansion don't terminate the input.
6558 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
6559 (macro_original_text, macro_expanded_text,
6560 expression_macro_lookup_func, expression_macro_lookup_baton): New
6561 variables.
6562 (scan_macro_expansion, scanning_macro_expansion,
6563 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
6564 c_preprocess_and_parse): New functions.
6565 (c_language_defn, cplus_language_defn, asm_language_defn): Call
6566 c_preprocess_and_parse, instead of c_parse.
6567 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
6568 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
6569
6570 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
6571
6572 * sh-tdep.c (gdb_print_insn_sh64): Delete.
6573 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
6574 (sh_gdbarch_init): Always use gdb_print_insn_sh.
6575
6576 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
6577
6578 * NEWS: Add section for multi-arched targets. Add v850 to that section.
6579
6580 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
6581
6582 * Makefile.in (sh_tdep_h): Define and use.
6583 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
6584 register enum): Move to...
6585 * * sh-tdep.h: ...here.
6586 * sh-tdep.c: Include sh-tdep.h.
6587 * sh3-rom.c: Likewise.
6588 * shnbsd-tdep.c: Likewise.
6589
6590 2002-05-16 Michael Snyder <msnyder@redhat.com>
6591
6592 * arm-tdep.c: Spelling fix in comment.
6593
6594 2002-05-16 Jim Blandy <jimb@redhat.com>
6595
6596 Add commands for manually expanding macros and showing their
6597 definitions.
6598 * macrocmd.c, macroscope.c, macroscope.h: New files.
6599 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
6600 (macroscope_h): New variable.
6601 (HFILES_NO_SRCDIR): Add macroscope.h.
6602 (COMMON_OBS): Add macrocmd.o, macroscope.o.
6603 (macroscope.o, macrocmd.o): New rules.
6604
6605 Teach the Dwarf 2 reader to read macro information.
6606 * dwarf2read.c: #include "macrotab.h".
6607 (dwarf_macinfo_buffer): New variable.
6608 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
6609 dwarf_macinfo_size.
6610 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
6611 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
6612 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
6613 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
6614 dwarf2_macro_spaces_in_definition): New complaints.
6615 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
6616 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
6617 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
6618 the partial symbol table.
6619 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
6620 from what's recorded in the partial symbol table.
6621 (read_file_scope): If the compilation unit has a
6622 `DW_AT_macro_info' attribute, read its macro information.
6623 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
6624
6625 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
6626
6627 Fix PR gdb/546
6628 * ser-tcp.c: Don't include <netinet/udp.h>.
6629
6630 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
6631
6632 * MAINTAINERS: Update my email address.
6633
6634 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
6635
6636 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
6637 include file of the same name.
6638
6639 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
6640
6641 * configure.tgt: Mark v850 as multi-arched.
6642 * config/v850/tm-v850.h: Remove file.
6643 * config/v850/v850.mt: Eliminate TM_FILE.
6644
6645 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
6646
6647 * v850-tdep.c: Full multi-arch.
6648 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
6649 Define GDB_MULTI_ARCH to 2.
6650
6651 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
6652
6653 * p-exp.y (current_type): New static variable.
6654 Carries the type of the expression at the position that is parsed.
6655 (push_current_type, pop_current_type): Two new functions. Used
6656 to store/restore current_type in expression on specific tokens.
6657 (search_field): New static variable. Set to one after parsing a point
6658 as at that point only a FIELDNAME token should be searched.
6659 (FIELDNAME): New token. After a point only a token belonging to
6660 current_type type definition is allowed.
6661 (all over token rules): reset and change current_type according
6662 to rules.
6663 (exp '[' rule): insert implicit array index field if
6664 exp is a pascal string type.
6665
6666 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
6667
6668 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
6669 frame info. Use frame_info's saved_regs instead of matching member
6670 in extra_frame_info throughout.
6671 (v850_frame_init_saved_regs): New function.
6672 (v850_init_extra_frame_info): Move most functionality into
6673 v850_frame_init_saved_regs().
6674 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
6675 (v850_frame_find_saved_regs): Remove declaration.
6676 (FRAME_FIND_SAVED_REGS): Remove definition.
6677 (v850_frame_init_saved_regs): Add declaration.
6678 (FRAME_INIT_SAVED_REGS): Add definition.
6679
6680 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
6681
6682 * v850-tdep.c: Begin multi-arch'ing v850.
6683 (v850_target_architecture_hook): Remove function.
6684 (v850_gdbarch_init): New function. Add code previously in
6685 v850_target_architecture_hook().
6686 (_initialize_v850_tdep): Don't set target_architecture_hook.
6687 Call register_gdbarch_init() instead.
6688
6689 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
6690
6691 * gdbtypes.h (struct cplus_struct_type): Remove args field.
6692 * hpread.c (hpread_read_struct_type): Remove assignments to args.
6693 (fixup_class_method_type): Likewise.
6694
6695 2002-05-15 Jim Blandy <jimb@redhat.com>
6696
6697 Add macro structures to GDB's symbol tables. Nobody puts anything
6698 in them yet.
6699 * symtab.h (struct symtab): New member: `macro_table'.
6700 * buildsym.h (pending_macros): New global variable.
6701 * buildsym.c: #include "macrotab.h".
6702 (buildsym_init): Initialize `pending_macros'.
6703 (end_symtab): If we found macro information while reading a CU's
6704 debugging info, do build a symtab structure for it. Make the
6705 symtab point to the macro information, and clear the
6706 `pending_macros' pointer which held it while we were reading the
6707 debug info.
6708 (really_free_pendings): Free any pending macro table.
6709 * objfiles.h (struct objfile): New member: `macro_cache'.
6710 * objfiles.c (allocate_objfile): Set allocate and free functions
6711 for the macro cache's objstack.
6712 (free_objfile): Empty the macro cache's obstack.
6713 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
6714 set new allocate and free functions for it.
6715 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
6716 free functions for the macro cache's objstack. (Why is this
6717 function building its own objfile?)
6718 * symmisc.c (print_objfile_statistics): Print statistics on the
6719 macro bcache.
6720 * Makefile.in: Note that buildsym.o depends on macrotab.h.
6721
6722 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
6723
6724 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
6725 (REGISTER_U_ADDR): Delete definition.
6726 (arm_register_u_addr): Delete declaration.
6727
6728 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
6729
6730 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
6731 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
6732
6733 2002-05-14 Andrew Cagney <ac131313@redhat.com>
6734
6735 * regcache.c (register_valid): Revise comments refering to "Not
6736 available" and "unavailable".
6737 * frame.c (frame_register_read): Ditto.
6738 * findvar.c (value_of_register): Ditto.
6739
6740 2002-05-15 Andrew Cagney <cagney@redhat.com>
6741
6742 * Makefile.in (remote_sim_h): Replace remote-sim_h.
6743 (remote-sim.o): Update dependencies.
6744 (d10v-tdep.o): Specify dependencies.
6745 (sim_d10v_h): Define.
6746
6747 2002-05-14 Jim Blandy <jimb@redhat.com>
6748
6749 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
6750 * macrotab.c (macro_lookup_inclusion, find_definition,
6751 new_macro_table): Same.
6752
6753 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
6754 not `! strcmp ()'. This is a dubious improvement.
6755 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
6756
6757 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
6758 although it's not necessary, to avoid a warning.
6759
6760 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
6761
6762 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
6763 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
6764 TYPE_INSTANCE_FLAGS.
6765 (struct main_type): New.
6766 (struct type): Move most members to struct main_type. Change
6767 cv_type and as_type to new type_chain member. Add instance_flags.
6768 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
6769 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
6770 (finish_cv_type): Remove prototype.
6771 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
6772 Set TYPE_CHAIN.
6773 (alloc_type_instance): New function.
6774 (smash_type): New function.
6775 (make_pointer_type, make_reference_type, make_function_type)
6776 (smash_to_member_type, smash_to_method_type): Call smash_type.
6777 (make_qualified_type): New function.
6778 (make_type_with_address_space): Call make_qualified_type.
6779 (make_cv_type): Likewise.
6780 (finish_cv_type): Remove unnecessary function.
6781 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
6782 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
6783 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
6784 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
6785 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
6786 * hpread.c (hpread_read_struct_type): Likewise.
6787 * stabsread.c (read_struct_type): Likewise.
6788
6789 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
6790
6791 * configure.tgt: Add a catch all sh* target, for cases like
6792 sh[2,3,4]-elf and sh-hms.
6793
6794 2002-05-14 Keith Seitz <keiths@redhat.com>
6795
6796 * event-loop.c (create_file_handler): Don't do anything but
6797 update data when we are given a fd which we are already
6798 monitoring.
6799
6800 2002-05-14 Michal Ludvig <mludvig@suse.cz>
6801
6802 * dwarf2cfi.c (context_cpy): Copy registers correctly.
6803 (update_context): Use __func__ in warnings.
6804
6805 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
6806
6807 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
6808 and tcp_close to net_open and net_close.
6809 (net_open): Accept "udp:" and "tcp:" specifications. Connect
6810 using UDP if requested. Don't try to disable Nagle on UDP
6811 sockets.
6812 * remote.c (remote_serial_open): New function. Warn about UDP.
6813 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
6814
6815 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
6816
6817 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
6818
6819 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
6820
6821 * configure.tgt: Remove sh-hms target.
6822 * MAINTAINERS: Don't list sh-hms as a separate target.
6823
6824 2002-05-13 Jim Blandy <jimb@redhat.com>
6825
6826 Add first preprocessor macro-expansion files.
6827 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
6828 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
6829 (splay_tree_h, macroexp_h, macrotab_h): New variable.
6830 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
6831 (COMMON_OBS): Add macrotab.o, macroexp.o.
6832 (macroexp.o, macrotab.o): New rules.
6833
6834 2002-05-13 Andrew Cagney <ac131313@redhat.com>
6835
6836 * config/m88k/tm-m88k.h: Update copyright.
6837 (m88k_target_write_pc): Declare
6838 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
6839 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
6840 (SHIFT_INST_REGS): Update definition.
6841 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
6842 using old definition of TARGET_WRITE_PC.
6843 * regcache.c (generic_target_write_pc): Delete code handling
6844 NNPC_REGNUM.
6845 * gdbarch.sh (NNPC_REGNUM): Delete.
6846 * gdbarch.h, gdbarch.c: Regenerate.
6847
6848 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
6849
6850 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
6851 builtin reg number.
6852
6853 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
6854
6855 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
6856 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
6857 (gen_address_of, gen_struct_ref, gen_repeat): Use type
6858 access macros.
6859 * c-typeprint.c (cp_type_print_method_args): Likewise.
6860 (c_type_print_args): Likewise.
6861 * d10v-tdep.c (d10v_push_arguments): Likewise.
6862 (d10v_extract_return_value): Likewise.
6863 * expprint.c (print_subexp): Likewise.
6864 * gdbtypes.c (lookup_primitive_typename): Likewise.
6865 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
6866 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
6867 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
6868 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
6869 (TYPE_VECTOR): Likewise.
6870 * hpread.c (hpread_read_struct_type)
6871 (fix_static_member_physnames, fixup_class_method_type)
6872 (hpread_type_lookup): Likewise.
6873 * mdebugread.c (parse_symbol, parse_type): Likewise.
6874 * p-lang.c (is_pascal_string_type): Likewise.
6875 * valops.c (hand_function_call): Likewise.
6876 * x86-64-tdep.c (classify_argument): Likewise.
6877
6878 * hpread.c (hpread_read_function_type)
6879 (hpread_read_doc_function_type): Call replace_type.
6880 * dstread.c (create_new_type): Delete.
6881 (decode_dst_structure, process_dst_function): Call alloc_type.
6882 Use type access macros.
6883
6884 2002-05-12 Mark Kettenis <kettenis@gnu.org>
6885
6886 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
6887 the're not supported by the current architecture.
6888 (i387_fill_fxsave): Likewise.
6889
6890 2002-05-12 Fred Fish <fnf@redhat.com>
6891
6892 * symfile.c (default_symfile_offsets): Arrange for uninitialized
6893 sect_index_xxx members to index the first slot in section_offsets
6894 if all of the section_offsets are zero.
6895
6896 2002-05-12 Mark Kettenis <kettenis@gnu.org>
6897
6898 * configure.tgt (sparc-*openbsd): Remove entry accidentially
6899 checked in with last change.
6900
6901 2002-05-12 Mark Kettenis <kettenis@gnu.org>
6902
6903 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
6904 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
6905 config.sub.
6906
6907 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
6908
6909 * Makefile.in: Update dependencies.
6910
6911 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6912
6913 * language.c (local_hex_string_custom): Simplify. Do not depend
6914 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
6915
6916 * memattr.c (mem_info_command): Replace calls to
6917 longest_local_hex_string and longest_local_hex_string_custom.
6918 * buildsym.c (make_blockvector): Ditto.
6919 * solib.c (info_sharedlibrary_command): Ditto.
6920 * tracepoint.c (tracepoints_info): Ditto.
6921 * symtab.c (print_msymbol_info): Ditto.
6922
6923 * language.c (local_hex_string): Delete.
6924 (local_hex_string_custom): Delete.
6925 (longest_local_hex_string): Rename to local_hex_string.
6926 (longest_local_hex_string_custom): Rename to
6927 local_hex_string_custom.
6928 * language.h (local_hex_string): Change parameter type to LONGEST.
6929 (local_hex_string_custom): Ditto.
6930 (longest_local_hex_string): Delete declaration.
6931 (longest_local_hex_string_custom): Ditto.
6932
6933 * solib.c: Update copyright.
6934 * memattr.c: Update copyright.
6935
6936 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6937
6938 * arch-utils.h (legacy_register_to_value): Declare.
6939 (legacy_value_to_register): Declare.
6940 (legacy_convert_register_p): Declare.
6941 * arch-utils.c (legacy_register_to_value): New function.
6942 (legacy_value_to_register): New function.
6943 (legacy_convert_register_p): New function.
6944
6945 * gdbarch.sh (REGISTER_TO_VALUE): Define.
6946 (VALUE_TO_REGISTER): Define.
6947 (CONVERT_REGISTER_P): Define.
6948 * gdbarch.h, gdbarch.c: Regenerate.
6949
6950 * valops.c (value_assign): Use CONVERT_REGISTER_P and
6951 VALUE_TO_REGISTER.
6952 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
6953 CONVERT_REGISTER_P.
6954
6955 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
6956 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
6957
6958 * Makefile.in: Update dependencies for valops.c.
6959 * valops.c: Include "gdb_assert.h".
6960 (typecmp): Skip THIS parameter to methods.
6961 (find_method_list): Remove static_memfuncp argument,
6962 update callers. Check for stub methods.
6963 (find_value_oload_method_list): Don't set *static_memfuncp.
6964 (find_overload_match): Don't check for stub methods. Assert
6965 that methods are not stubbed. Handle static methods.
6966 (value_find_oload_method_list): Remove static_memfuncp argument.
6967 * gdbtypes.c (check_stub_method): Do not add THIS pointer
6968 to the argument list for static stub methods.
6969 * value.h (value_find_oload_method_list): Update prototype.
6970
6971 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6972
6973 * arch-utils.h (generic_register_size): Declare.
6974 (generic_register_raw_size, generic_register_virtual_size): Delete
6975 declarations.
6976 * arch-utils.c (generic_register_raw_size): Delete.
6977 (generic_register_size): New function.
6978 (generic_register_virtual_size): Delete.
6979
6980 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
6981 default generic_register_size.
6982 * gdbarch.h, gdbarch.c: Re-generate.
6983
6984 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
6985 register_virtual_size.
6986 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
6987 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6988
6989 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6990
6991 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
6992 * gdbarch.h, gdbarch.c: Regenerate.
6993 * gnu-v3-abi.c: Update copyright.
6994 (vtable_address_point_offset): Update.
6995 (gnuv3_rtti_type): Update.
6996 (gnuv3_baseclass_offset): Update.
6997 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
6998 (init_fetch_link_map_offsets): Update.
6999 * remote.c (get_remote_state): Update.
7000
7001 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
7002
7003 * TODO: Remove value_headof/value_from_vtable_info comment.
7004 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
7005 * values.c (value_headof, value_from_vtable_info): Delete.
7006 * value.h (value_from_vtable_info): Delete prototype.
7007
7008 2002-05-11 Andrew Cagney <ac131313@redhat.com>
7009
7010 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
7011 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
7012 $(gdb_regex_h).
7013 (gdb_assert_h): Define.
7014 (gdb_wait_h): Define.
7015 (gdb_regex_h): Define.
7016
7017 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
7018
7019 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
7020 * linespec.c (find_methods): Handle GCC 3.x template constructors.
7021
7022 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7023
7024 * nbsd-tdep.c: Fix comment.
7025
7026 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7027
7028 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
7029 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
7030 (nbsd-tdep.o): New dependency list.
7031 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
7032 nbsd-tdep.h.
7033 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
7034 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
7035 * nbsd-tdep.c: New file.
7036 * nbsd-tdep.h: New file.
7037 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
7038 nbsd-tdep.h.
7039 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
7040 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
7041 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
7042 * config/sh/nbsd.mt (TDEPFILES): Ditto.
7043
7044 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7045
7046 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
7047 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
7048 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
7049 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
7050 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
7051 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
7052
7053 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7054
7055 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
7056 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
7057 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
7058 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
7059 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
7060 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
7061 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
7062
7063 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7064
7065 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
7066 fetch_elfcore_registers to...
7067 * i386nbsd-tdep.c: ...here.
7068 (i386nbsd_use_struct_convention): Rename to...
7069 (i386nbsd_aout_use_struct_convention): ...this.
7070 (i386nbsd_supply_reg): New function.
7071 (i386nbsd_fill_reg): New function.
7072 (fetch_core_registers): Use i386nbsd_supply_reg.
7073 (fetch_elfcore_registers): Likewise.
7074 (_initialize_i386nbsd_tdep): New function.
7075 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
7076 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
7077 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
7078 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
7079 (i386nbsd_aout_use_struct_convention): ...this.
7080
7081 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7082
7083 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
7084 (store_inferior_registers): Use shnbsd_fill_reg.
7085 * shnbsd-tdep.c (sh_nbsd_supply_registers,
7086 sh_nbsd_supply_register): Collapse into...
7087 (shnbsd_supply_reg): ...this.
7088 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
7089 (shnbsd_fill_reg): ...this.
7090 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
7091 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
7092 (fetch_core_registers): Use shnbsd_supply_reg.
7093 (fetch_elfcore_registers): Use shnbsd_supply_reg.
7094 (sh_nbsd_core_fns): Rename to...
7095 (shnbsd_core_fns): ...this.
7096 (sh_nbsd_elfcore_fns): Rename to...
7097 (shnbsd_elfcore_fns): ...this.
7098 (sh_nbsd_init_abi): Rename to...
7099 (shnbsd_init_abi): ...this.
7100 (_initialize_sh_nbsd_tdep): Rename to...
7101 (_initialize_shnbsd_tdep): ...this.
7102 * shnbsd-tdep.h (sh_nbsd_supply_registers,
7103 sh_nbsd_supply_register, sh_nbsd_fill_registers,
7104 sh_nbsd_fill_register): Remove prototypes.
7105 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
7106
7107 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7108
7109 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
7110 (i387-nat.o): Delete dependency list.
7111 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
7112 (x86-64-linux-nat.o): Likewise.
7113 * i387-nat.c: Delete file, moving contents to...
7114 * i387-tdep.c: ...here.
7115 * i387-nat.h: Rename...
7116 * i387-tdep.h: ...to this.
7117 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
7118 * i386-linux-nat.c: Likewise.
7119 * i386bsd-nat.c: Likewise.
7120 * i386gnu-nat.c: Likewise.
7121 * i386nbsd-nat.c: Likewise.
7122 * i386v4-nat.c: Likewise.
7123 * x86-64-linux-nat.c: Likewise.
7124 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
7125 * config/i386/go32.mh (NATDEPFILES): Likewise.
7126 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
7127 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
7128 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
7129 * config/i386/linux.mh (NATDEPFILES): Likewise.
7130 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
7131 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
7132 * config/i386/obsd.mh (NATDEPFILES): Likewise.
7133 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
7134
7135 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7136
7137 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
7138 (alphanbsd-nat.o): Remove dependency list.
7139 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
7140 * alphanbsd-nat.c: Delete. Contents moved to...
7141 * alphanbsd-tdep.c: ...here.
7142 (_initialize_alphanbsd_tdep): Register core functions.
7143 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
7144
7145 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7146
7147 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
7148 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
7149 (alphanbsd-nat.o): Likewise.
7150 (alphabsd-tdep.o): New dependency list.
7151 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
7152 (fill_gregset): Use alphabsd_fill_reg.
7153 (supply_fpregset): Use alphabsd_supply_fpreg.
7154 (fill_fpregset): Use alphabsd_fill_fpreg.
7155 (fetch_inferior_registers): Use struct reg and struct fpreg
7156 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
7157 and alphabsd_supply_fpreg.
7158 (store_inferior_registers): Use struct reg and struct fpreg
7159 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
7160 and alphabsd_fill_fpreg.
7161 * alphabsd-tdep.c: New file.
7162 * alphabsd-tdep.h: New file.
7163 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
7164 (fetch_elfcore_registers): Use alphabsd_supply_reg and
7165 alphabsd_supply_fpreg.
7166 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
7167 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
7168
7169 2002-05-11 Eric Christopher <echristo@redhat.com>
7170
7171 * mips-tdep.c (mips_double_register_type): Fix thinko.
7172 (mips_single_register_type): Ditto.
7173 * MAINTAINERS: Add self.
7174
7175 2002-05-11 Mark Kettenis <kettenis@gnu.org>
7176
7177 * i387-nat.c (i387_supply_register, i387_fill_fsave,
7178 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
7179 right thing on architectures with different endianness and/or
7180 integer sizes.
7181
7182 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
7183
7184 From Christian Limpach <chris@Pin.LU>
7185 * configure.in: Change sed expression which comments out
7186 NATDEPFILES to also comment out continuation lines.
7187 * configure: Regenerate.
7188
7189 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
7190
7191 * sh-tdep.c: Clean up code erroneously reintroduced by previous
7192 big patch.
7193
7194 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
7195
7196 * sh-tdep.c: Include correct file.
7197
7198 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
7199
7200 New support for sh64-elf (sh5) target.
7201
7202 * configure.tgt: For sh64-elf target, default to sh-elf.
7203
7204 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
7205 (struct gdbarch_tdep): Add new fields for new registers and ABI
7206 info.
7207
7208 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
7209 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
7210 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
7211 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
7212 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
7213 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
7214 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
7215 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
7216 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
7217 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
7218 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
7219 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
7220 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
7221 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
7222 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
7223 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
7224 sh64_get_gdb_regnum, sh64_media_reg_base_num,
7225 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
7226 sign_extend, sh64_nofp_frame_init_saved_regs,
7227 sh64_init_extra_frame_info, sh64_get_saved_register,
7228 sh64_extract_struct_value_address, sh64_pop_frame,
7229 sh64_push_arguments, sh64_extract_return_value,
7230 sh64_store_return_value, sh64_show_media_regs,
7231 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
7232 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
7233 sh_sh64_register_virtual_type,
7234 sh_sh64_register_convert_to_virtual,
7235 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
7236 sh64_register_read, sh64_pseudo_register_write,
7237 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
7238 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
7239 sh64_do_pseudo_register, sh_compact_do_registers_info,
7240 sh64_do_registers_info, sh_gdbarch_init): New functions.
7241
7242 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
7243
7244 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
7245
7246 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
7247
7248 * linespec.c (decode_line_1): Check for a double quote after
7249 a filename correctly.
7250
7251 2002-05-10 Jim Blandy <jimb@redhat.com>
7252
7253 Properly track the size of the current objfile's .debug_line section.
7254 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
7255 (DWARF_LINE_SIZE): New macro.
7256 (dwarf2_build_psymtabs_hard): Record the line section's size in
7257 the partial symbol table.
7258 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
7259 symbol table.
7260
7261 2002-05-10 Petr Sorfa <petrs@caldera.com>
7262
7263 * ia64-tdep.c: Handle breakpoints on L instruction type
7264 in MLX instruction bundle by moving the breakpoint to
7265 the third slot (X instruction type) as L holds only data.
7266
7267 2002-05-10 Kevin Buettner <kevinb@redhat.com>
7268
7269 * dbxread.c (discarding_local_symbols_complaint): New complaint.
7270 (process_one_symbol): Complain about discarding local symbols
7271 due to a misplaced N_LBRAC entry.
7272
7273 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
7274
7275 From Daniel Berlin <dan@cgsoftware.com>
7276 * linespec.c (find_toplevel_char): '<' and '>' also increase and
7277 decrease the depth we are at, in the case of templates.
7278
7279 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
7280
7281 * mips-tdep.c (mips_float_register_type): New function.
7282 (mips_double_register_type): New function.
7283 (mips_print_register): Use them.
7284 (do_fp_register_row): Likewise.
7285
7286 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
7287
7288 * signals/signals.c (signals): Remove conditional compilation around
7289 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
7290 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
7291
7292 2002-05-09 Michael Snyder <msnyder@redhat.com>
7293
7294 * remote-rdp.c (remote_rdp_can_run): Remove.
7295
7296 2002-05-09 Tom Tromey <tromey@redhat.com>
7297
7298 * jv-valprint.c (java_val_print): Handle `char' as a special case
7299 of TYPE_CODE_INT.
7300
7301 2002-05-09 Michael Snyder <msnyder@redhat.com>
7302
7303 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
7304 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
7305 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
7306 str r(0123),[sp,#nn].
7307 (arm_skip_prologue): Ditto. Also make disassembly
7308 order-independent by placing it in a loop.
7309
7310 2002-05-06 Michael Snyder <msnyder@redhat.com>
7311
7312 * stabsread.c (read_type): Add recognition for new attribute:
7313 "@V;" means that an array type is actually a vector.
7314 This is analogous to the vector flag that's been added to dwarf2.
7315
7316 2002-05-09 Mark Kettenis <kettenis@gnu.org>
7317
7318 * i386-tdep.h (i386_abi): New enum.
7319 (struct gdbarch_tdep): Replace os_ident member with abi.
7320 (i386_gdbarch_register_os_abi): New prototype.
7321 * i386-tdep.c (i386_abi_names): New array.
7322 (process_note_abi_tag_sections): Removed.
7323 (process_note_sections): New function.
7324 (i386_elf_abi_from_note, i386_elf_abi): New functions.
7325 (struct i386_abi_handler): New struct.
7326 (i386_abi_handler_list): New variable.
7327 (i386_gdbarch_register_os_abi): New function.
7328 (i386_gdbarch_init): Adapt for the changes given above.
7329
7330 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
7331
7332 * gregset.h: Say "GNU/Linux".
7333
7334 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
7335
7336 * gdbtypes.c : Add new builtin type for 64 bit vectors.
7337 (build_gdbtypes): Build builtin_type_v2_float.
7338 (_initialize_gdbtypes): Register new builtin type.
7339
7340 2002-05-08 Andrew Cagney <ac131313@redhat.com>
7341
7342 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
7343 (clear_gdbarch_swap): New function.
7344 (initialize_non_multiarch): Call.
7345 (gdbarch_update_p): Before calling init(), swap out and clear the
7346 existing architecture.
7347 * gdbarch.c: Regenerate.
7348
7349 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7350
7351 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
7352 alphanbsd-tdep.c.
7353
7354 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7355
7356 * sh-nbsd-nat.c: Rename to...
7357 * shnbsd-nat.c: ...this.
7358 * sh-nbsd-tdep.c: Rename to...
7359 * shnbsd-tdep.c: ...this.
7360 * sh-nbsd-tdep.h: Rename to...
7361 * shnbsd-tdep.h: ...this.
7362 * config/sh/nbsd.mh: Use shnbsd-nat.o.
7363 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
7364
7365 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
7366
7367 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
7368 concatenation for command help messages.
7369
7370 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7371
7372 * NEWS: Note new sh*-*-netbsdelf* configuration.
7373 * configure.host: Set gdb_host_cpu to sh for all sh*.
7374 (sh*-*-netbsdelf*): New host.
7375 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
7376 (sh*-*-netbsdelf*): New target.
7377 * sh-nbsd-nat.c: New file.
7378 * sh-nbsd-tdep.c: New file.
7379 * sh-nbsd-tdep.h: New file.
7380 * config/sh/nbsd.mh: New file.
7381 * config/sh/nbsd.mt: New file.
7382 * config/sh/nm-nbsd.h: New file.
7383 * config/sh/tm-nbsd.h: New file.
7384
7385 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7386
7387 * sh-tdep.c (sh_osabi_names): Declare.
7388 (process_note_abi_tag_sections): New function.
7389 (get_elfosabi): Ditto.
7390 (sh_gdbarch_register_os_abi): Ditto.
7391 (sh_dump_tdep): Ditto.
7392 _initialize_sh_tdep): Use gdbarch_register to register
7393 sh_gdbarch_init and sh_dump_tdep.
7394 * config/sh/tm-sh.h (sh_osabi): Declare.
7395 (gdbarch_tdep): Add sh_osabi and osabi_name members.
7396
7397 2002-05-07 Andrew Cagney <ac131313@redhat.com>
7398
7399 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
7400 (thumb_scan_prologue): Ditto.
7401 (arm_find_callers_reg): Ditto.
7402 (arm_frame_chain): Ditto.
7403 (arm_init_extra_frame_info): Ditto.
7404 (arm_frame_saved_pc): Ditto.
7405 (arm_pop_frame): Ditto.
7406 (arm_push_return_address): New function.
7407 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
7408 call_dummy_location, call_dummy_breakpoint_offset_p,
7409 call_dummy_breakpoint_offset, call_dummy_p,
7410 call_dummy_stack_adjust_p, call_dummy_words,
7411 sizeof_call_dummy_words, call_dummy_start_offset,
7412 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
7413 call_dummy_address, push_return_address and push_dummy_frame for
7414 generic dummy frames.
7415
7416 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
7417
7418 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
7419 size computation for alloca.
7420 (sh_fp_frame_init_saved_regs): Likewise.
7421
7422 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
7423
7424 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
7425 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
7426 * arm-tdep.c (arm_store_return_value): Use them.
7427 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
7428 * remote-rdp.c (remote_rdp_fetch_register): Use
7429 ARM_MAX_REGISTER_RAW_SIZE.
7430 (remote_rdp_store_register): Likewise.
7431
7432 2002-05-07 Michal Ludvig <mludvig@suse.cz>
7433
7434 * dwarf2cfi.c: Code cleanup, removed unused variables,
7435 added default labels to switch {} statements.
7436 * x86-64-tdep.c: Ditto.
7437 * x86-64-linux-nat.c: Ditto.
7438
7439 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
7440
7441 * solib.h: Protect against multiple inclusion.
7442
7443 2002-05-06 Jim Blandy <jimb@redhat.com>
7444
7445 Add first preprocessor macro-expansion files.
7446 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
7447 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
7448 (splay_tree_h, macroexp_h, macrotab_h): New variable.
7449 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
7450 (COMMON_OBS): Add macrotab.o, macroexp.o.
7451 (macroexp.o, macrotab.o): New rules.
7452
7453 Separate the job of reading the line number info statement program
7454 header (...expialidocious) out into its own function.
7455 * dwarf2read.c (struct line_head, struct filenames, struct
7456 directories): Replace with...
7457 (struct line_header): New structure, containing the full
7458 contents of the statement program header, including the
7459 include directory and file name tables.
7460 (read_file_scope): If we have line number info, instead of just
7461 calling dwarf_decode_lines to do all the work, call
7462 dwarf_decode_line_header first to get a `struct line_header'
7463 containing the data in the statement program header, and then
7464 pass that to dwarf_decode_lines, which will pick up where that
7465 left off. Be sure to clean up the `struct line_header' object.
7466 (dwarf_decode_line_header, free_line_header, add_include_dir,
7467 add_file_name): New functions.
7468 (dwarf_decode_lines): Move all the code to read the statement
7469 program header into dwarf_decode_line_header. Take the line
7470 header it built as the first argument, instead of the offset to
7471 the compilation unit's line number info. Use the new `struct
7472 line_header' type instead of the old structures. No need to do
7473 cleanups here now, since we don't allocate anything.
7474 (dwarf2_statement_list_fits_in_line_number_section,
7475 dwarf2_line_header_too_long): New complaints.
7476
7477 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
7478
7479 * gdbtypes.c (init_vector_type): New function.
7480 (build_builtin_type_vec128): Simplify the representation of SIMD
7481 registers.
7482 (build_gdbtypes): Initialize new builtin vector types.
7483 (_initialize_gdbtypes): Register new vector types with gdbarch.
7484 (builtin_type_v4_float, builtin_type_v4_int32,
7485 builtin_type_v8_int16, builtin_type_v16_int8,
7486 builtin_type_v2_int32, builtin_type_v4_int16,
7487 builtin_type_v8_int8): New (renamed) SIMD types.
7488
7489 2002-05-06 Mark Kettenis <kettenis@gnu.org>
7490
7491 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
7492 (i387_fill_fxsave): Likewise.
7493
7494 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
7495
7496 * alpha-tdep.c (alpha_extract_return_value): Don't use
7497 non-constant array size in prototype.
7498
7499 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7500
7501 From Brian Taylor <briant at model dot com>:
7502 * ui-out.c (ui_out_field_core_addr): Use the function
7503 longest_local_hex_string_custom'to format addresses > 32 bits
7504 wide.
7505
7506 * ui-out.c (ui_out_field_core_addr): Update comment.
7507
7508 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7509
7510 * stack.c (select_and_print_frame): Make static. Delete the
7511 parameter `level'.
7512 (func_command): Update call.
7513 (select_frame_command): Delete code computing the frame level.
7514 * frame.h (select_and_print_frame): Delete declaration.
7515
7516 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7517
7518 * sparc-tdep.c (sparc_get_saved_register): Comment why
7519 get_prev_frame call is safe.
7520
7521 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7522
7523 * frame.h (select_frame): Delete level parameter.
7524 * stack.c (select_frame): Update. Use frame_relative_level to
7525 obtain the frame's level.
7526 (select_and_print_frame): Update call.
7527 (select_frame_command): Ditto.
7528 (up_silently_base): Ditto.
7529 (down_silently_base): Ditto.
7530 * ocd.c (ocd_start_remote): Ditto.
7531 * remote-rdp.c (remote_rdp_open): Ditto.
7532 * remote-mips.c (mips_initialize): Ditto.
7533 (common_open): Ditto.
7534 * remote-e7000.c (e7000_start_remote): Ditto.
7535 * m3-nat.c (select_thread): Ditto.
7536 * hppa-tdep.c (child_get_current_exception_event): Ditto.
7537 (child_get_current_exception_event): Ditto.
7538 * varobj.c (varobj_create): Ditto.
7539 (varobj_update): Ditto.
7540 (c_value_of_root): Ditto.
7541 * tracepoint.c (finish_tfind_command): Ditto.
7542 * corelow.c (core_open): Ditto.
7543 * arch-utils.c (generic_prepare_to_proceed): Ditto.
7544 * thread.c (info_threads_command): Ditto.
7545 (switch_to_thread): Ditto.
7546 * infrun.c (normal_stop): Ditto.
7547 (restore_selected_frame): Ditto.
7548 (restore_inferior_status): Ditto.
7549 * breakpoint.c (insert_breakpoints): Ditto.
7550 (watchpoint_check): Ditto.
7551 (bpstat_stop_status): Ditto.
7552 (do_enable_breakpoint): Ditto.
7553 * blockframe.c (flush_cached_frames): Ditto.
7554 (reinit_frame_cache): Ditto.
7555
7556 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7557
7558 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
7559 maintainer.
7560
7561 2002-05-04 Jim Blandy <jimb@redhat.com>
7562
7563 * gdbtypes.c (replace_type): Doc fix.
7564
7565 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7566
7567 * valprint.c (strcat_longest): Delete commented out function.
7568 Update copyright.
7569
7570 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7571
7572 * MAINTAINERS: Mark a29k as deleted.
7573 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
7574 Move new configurations to the top.
7575 * configure.tgt: Remove a29k.
7576 * config/a29k/tm-vx29k.h: Delete.
7577 * config/a29k/vx29k.mt: Delete.
7578 * config/a29k/tm-a29k.h: Delete.
7579 * config/a29k/a29k-udi.mt: Delete.
7580 * config/a29k/a29k.mt: Delete.
7581 * a29k-tdep.c: Delete.
7582 * remote-udi.c: Delete.
7583 * remote-mm.c: Delete.
7584 * remote-eb.c: Delete.
7585 * remote-adapt.c: Delete.
7586 * Makefile.in: Remove obsolete code.
7587 * config/s390/s390x.mt: Ditto.
7588 * config/s390/s390.mt: Ditto.
7589 * config/sparc/sparclynx.mh: Ditto.
7590 * config/sparc/linux.mh: Ditto.
7591 * config/pa/hppaosf.mh: Ditto.
7592 * config/pa/hppabsd.mh: Ditto.
7593 * config/ns32k/nbsd.mt: Ditto.
7594 * config/mips/vr5000.mt: Ditto.
7595 * config/m68k/sun3os4.mh: Ditto.
7596 * config/m68k/nbsd.mt: Ditto.
7597 * config/m68k/m68klynx.mh: Ditto.
7598 * config/m32r/m32r.mt: Ditto.
7599 * config/i386/x86-64linux.mt: Ditto.
7600 * config/i386/nbsdelf.mt: Ditto.
7601 * config/i386/nbsd.mt: Ditto.
7602 * config/i386/i386lynx.mh: Ditto.
7603
7604 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7605
7606 * target.c (debug_print_register): New function. Handle oversize
7607 registers.
7608 (debug_to_fetch_registers): Call.
7609 (debug_to_store_registers): Call.
7610
7611 2002-05-03 Jim Blandy <jimb@redhat.com>
7612
7613 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
7614 (read_type): Doc fix.
7615 * gdbtypes.c (replace_type): Doc fix.
7616
7617 * stabsread.c (multiply_defined_struct): New complaint.
7618 (read_struct_type): If the type we were passed isn't empty, or
7619 incomplete, don't read the new struct type into it; complain,
7620 and return the original type unchanged. Take a new `type_code'
7621 argument, which is the type code for the new type.
7622 (read_type): Rather than storing the type's type code here, pass
7623 it as an argument to read_struct_type, and let that take care of
7624 storing it. That way, we don't overwrite the original type code,
7625 so read_struct_type can use it to decide whether we're overwriting
7626 something we shouldn't.
7627 (complain_about_struct_wipeout): New function.
7628
7629 2002-05-03 Andrew Cagney <ac131313@redhat.com>
7630
7631 * gdbarch.sh: Assert that gdbarch is non-NULL.
7632 * gdbarch.c: Regenerate.
7633
7634 2002-05-03 Jason Merrill <jason@redhat.com>
7635
7636 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
7637 and return NULL.
7638
7639 2002-05-03 Michal Ludvig <mludvig@suse.cz>
7640
7641 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
7642 (x86_64_dwarf2gdb_regno_map_length),
7643 (x86_64_dwarf2_reg_to_regnum): Added.
7644 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
7645 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
7646 (_initialize_x86_64_tdep): Synced with the change above.
7647 (x86_64_skip_prologue): Reformulated message.
7648
7649 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
7650
7651 * f-exp.y: Also use new prev_lexptr variable
7652 to improve error reporting. Based on Michael Snyder
7653 2002-04-24 dated patch to c-exp.y.
7654 * jv-exp.y: Likewise.
7655 * m2-exp.y: Likewise.
7656
7657 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
7658
7659 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
7660 we are dealing with vectors.
7661
7662 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7663
7664 * config/m68k/tm-nbsd.h: Obvious fix,
7665 correct machine name.
7666
7667 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7668
7669 * p-typeprint.c (pascal_type_print_base): Add support
7670 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
7671
7672 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7673
7674 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
7675 for fondamental pascal 'char' type.
7676
7677 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7678
7679 * p-lang.h (is_pascal_string_type): Declaration changed,
7680 new sixth argument of type char ** added.
7681 * p-lang.c (is_pascal_string_type): Implementation
7682 changed. Args length_pos, length_size, string_pos, char_size
7683 can now be NULL. New argument arrayname set to the field
7684 name of the char array. Return value set to char array
7685 field index plus one.
7686 * p-valprint.c (pascal_val_print): Adapt to new declaration of
7687 is_pascal_string_type function.
7688
7689 2002-05-02 Andrew Cagney <cagney@redhat.com>
7690
7691 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
7692 <cagney@redhat.com> change.
7693 * gdbarch.c: Regenerate.
7694
7695 2002-05-02 Andrew Cagney <cagney@redhat.com>
7696
7697 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
7698 before probing for a new one. Detect errorenous gdbarch_init
7699 functions.
7700 * gdbarch.c: Regenerate.
7701
7702 2002-05-01 Andrew Cagney <cagney@redhat.com>
7703
7704 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
7705 * config/mcore/tm-mcore.h: Ditto. Update copyright.
7706 * config/v850/tm-v850.h: Ditto. Update copyright.
7707
7708 2002-04-30 Andrew Cagney <ac131313@redhat.com>
7709
7710 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
7711 current_gdbarch.
7712
7713 2002-04-30 Michael Snyder <msnyder@redhat.com>
7714
7715 * arm-tdep.c: Whitespace clean-ups.
7716 (arm_skip_prologue): Fix thinko; two lines
7717 should have been removed as part of 4/24 change.
7718
7719 2002-04-30 Kevin Buettner <kevinb@redhat.com>
7720
7721 * rs6000-tdep.c: Added comment describing how fpscr register
7722 numbers were chosen.
7723
7724 2002-04-30 Michael Snyder <msnyder@redhat.com>
7725
7726 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
7727
7728 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
7729
7730 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
7731 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
7732 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
7733
7734 2002-04-29 Kevin Buettner <kevinb@redhat.com>
7735
7736 From Louis Hamilton <hamilton@redhat.com>:
7737 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
7738 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
7739 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
7740 not bfd-private xcoff data, to determine wordsize.
7741 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
7742
7743 2002-04-29 Andrew Cagney <ac131313@redhat.com>
7744
7745 GDB 5.2 released from 5.2 branch.
7746
7747 2002-04-29 Michal Ludvig <mludvig@suse.cz>
7748
7749 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
7750 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
7751 (x86_64_register_info_table): Added comments with register numbers.
7752
7753 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
7754
7755 * rs6000-tdep.c (rs6000_extract_return_value,
7756 rs6000_store_return_value): Handle returning vectors.
7757 (rs6000_gdbarch_init): Use
7758 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
7759 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
7760 New function.
7761 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
7762 vectors.
7763 (ppc_sysv_abi_push_arguments): Handle vector parameters.
7764 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
7765
7766 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
7767
7768 * hpread.c (hpread_psymtab_to_symtab_1,
7769 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
7770 with fprintf_unfiltered (gdb_stderr,...).
7771
7772 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
7773
7774 * remote-array.c (printf_monitor, write_monitor,
7775 array_insert_breakpoint, array_remove_breakpoint ):
7776 Replace fprintf (stderr,...
7777 with fprintf_unfiltered (gdb_stderr,....
7778 * remote-es.c: Likewise.
7779 * remote-os9k.c: Likewise.
7780 * remote-st.c: Likewise.
7781
7782 2002-04-28 Andreas Schwab <schwab@suse.de>
7783
7784 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
7785 linux-proc.o and gcore.o.
7786
7787 2002-04-26 Michal Ludvig <mludvig@suse.cz>
7788
7789 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
7790 code without frame pointers.
7791
7792 2002-04-26 Andrew Cagney <ac131313@redhat.com>
7793
7794 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
7795 ON_STACK is needed.
7796
7797 2002-04-26 Ben Elliston <bje@redhat.com>
7798
7799 * target.c (do_xfer_memory): Correct reference to the new option
7800 "trust-readonly-sections".
7801
7802 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
7803
7804 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
7805 * gdbtypes.c (recursive_dump_type): Output the vector flag.
7806 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
7807 vectors.
7808 (read_array_type): Record the fact that this array type is really a
7809 vector (i.e. are passed in by value).
7810
7811 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
7812
7813 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
7814 * alpha-tdep.c (alpha_sigcontext_addr): New function.
7815 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
7816 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
7817 * alpha-linux-tdep.c: Include frame.h.
7818 (alpha_linux_sigcontext_addr): New function.
7819 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
7820 alpha_linux_sigcontext_addr.
7821 * alpha-osf1-tdep.c: Include gdbcore.h.
7822 (alpha_osf1_sigcontext_addr): New function.
7823 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
7824 alpha_osf1_sigcontext_addr.
7825 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
7826 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
7827
7828 2002-04-26 Andrew Cagney <ac131313@redhat.com>
7829
7830 * stack.c (selected_frame_level):
7831 (select_frame): Do not set selected_frame_level.
7832 * frame.h (selected_frame_level): Delete declaration.
7833
7834 2002-04-26 Andrew Cagney <ac131313@redhat.com>
7835
7836 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
7837 convert_from_func_ptr-addr when AIX / PowerOpen.
7838
7839 2002-04-25 Andrew Cagney <ac131313@redhat.com>
7840
7841 * valops.c (hand_function_call): Call
7842 generic_save_call_dummy_addr.
7843 * frame.h (generic_save_call_dummy_addr): Declare.
7844 * blockframe.c (struct dummy_frame): Add fields call_lo and
7845 call_hi.
7846 (generic_find_dummy_frame): Check for PC in range call_lo to
7847 call_hi instead of entry_point_address.
7848 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
7849 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
7850 (generic_save_call_dummy_addr): New function.
7851
7852 2002-04-24 David S. Miller <davem@redhat.com>
7853
7854 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
7855 sparc_skip_prologue.
7856 (sparc_skip_prologue): Kill frameless_p arg, and use line number
7857 information to find prologue when possible.
7858 (sparc_prologue_frameless_p): Call examine_prologue directly.
7859 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
7860 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
7861 second argument.
7862 (SKIP_PROLOGUE): Likewise.
7863
7864 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7865
7866 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
7867 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
7868 indicate that the condition it was testing is always true.
7869 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
7870 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
7871 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
7872
7873 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7874
7875 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
7876 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
7877 tdep->jb_pc and tdep->jb_elt_size.
7878 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
7879 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
7880 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
7881 * alpha-nat.c (get_longjmp_target): Remove.
7882 (JB_ELEMENT_SIZE): Ditto.
7883 (JB_PC): Ditto.
7884 * alpha-tdep.c (alpha_get_longjmp_target): New function.
7885 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
7886 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
7887 to alpha_get_longjmp_target.
7888 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
7889 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
7890 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
7891
7892 2002-04-25 Andrew Cagney <ac131313@redhat.com>
7893
7894 * README: Update to GDB 5.2.
7895
7896 2002-04-25 Andrew Cagney <ac131313@redhat.com>
7897
7898 * gdbarch.sh (LC_ALL): Set to `c'.
7899
7900 2002-04-25 Theodore A. Roth <troth@verinet.com>
7901
7902 * avr-tdep.c: Ran through gdb_indent.sh.
7903
7904 2002-04-25 Theodore A. Roth <troth@verinet.com>
7905
7906 * MAINTAINERS: Add myself as AVR maintainer.
7907 * NEWS: Note new target avr.
7908
7909 2002-04-25 Theodore A. Roth <troth@verinet.com>
7910
7911 * Makefile.in: Add support for AVR target.
7912 * configure.tgt: Add support for AVR target.
7913 * avr-tdep.c: New file
7914 * config/avr/avr.mt: New file.
7915
7916 2002-04-25 Theodore A. Roth <troth@verinet.com>
7917
7918 * MAINTAINERS: Add myself to write-after-approval.
7919
7920 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
7921
7922 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
7923 with fprintf_unfiltered (gdb_stderr,....
7924
7925 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
7926
7927 Fix PR gdb/508.
7928 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
7929
7930 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
7931
7932 * p-exp.y: Also use new prev_lexptr variable
7933 to improve error reporting. Based on Michael Snyder
7934 2002-04-24 dated patch to c-exp.y.
7935
7936 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7937
7938 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
7939 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
7940 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
7941 to 0.
7942 * config/alpha/tm-alpha.h: Remove forward decls of struct type
7943 and struct value.
7944 (FUNCTION_START_OFFSET): Remove.
7945 (BREAKPOINT): Ditto.
7946
7947 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7948
7949 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
7950 * NEWS: Ditto.
7951
7952 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7953
7954 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
7955 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
7956 alpha_linux_pc_in_sigtramp.
7957 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
7958 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
7959 alpha_osf1_pc_in_sigtramp.
7960 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
7961 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
7962 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
7963 alphafbsd_pc_in_sigtramp.
7964 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
7965 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
7966 alphanbsd_pc_in_sigtramp.
7967 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
7968 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
7969
7970 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7971
7972 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
7973
7974 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7975
7976 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
7977 alphanbsd-tdep.c.
7978 (alphanbsd-nat.o): New dependency list.
7979 (alphanbsd-tdep.o): Ditto.
7980 * NEWS: Note new native NetBSD/alpha configuration.
7981 * alphanbsd-nat.c: New file.
7982 * alphanbsd-tdep.c: Ditto.
7983 * configure.host (alpha*-*-netbsd*): New host.
7984 * configure.tgt (alpha*-*-netbsd*): New target.
7985 * config/alpha/nbsd.mh: New file.
7986 * config/alpha/nbsd.mt: Ditto.
7987 * config/alpha/nm-nbsd.h: Ditto.
7988 * config/alpha/tm-nbsd.h: Ditto.
7989
7990 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7991
7992 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
7993 (alpha-osf1-tdep.o): New dependency list.
7994 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
7995 and skip_sigtramp_frame members.
7996 * alpha-linux-tdep.c: Include gdbcore.h.
7997 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
7998 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
7999 * alpha-osf1-tdep.c: New file.
8000 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
8001 alpha-osf1-dep.c.
8002 (alpha_frame_past_sigtramp_frame): New function.
8003 (alpha_dynamic_sigtramp_offset): Ditto.
8004 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
8005 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
8006 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
8007 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
8008 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
8009 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
8010 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
8011 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
8012 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
8013 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
8014 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
8015 to find_solib_trampoline_target.
8016 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
8017 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
8018 (SKIP_TRAMPOLINE_CODE): Remove.
8019 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
8020 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
8021 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
8022 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
8023 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
8024 (PROC_SIGTRAMP_MAGIC): Ditto.
8025 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
8026 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
8027 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
8028 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
8029 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
8030
8031 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
8032
8033 * NEWS: Note that Alpha targets are now multi-arch.
8034
8035 2002-04-24 Michael Snyder <msnyder@redhat.com>
8036
8037 * parser-defs.h (prev_lexptr): New external variable.
8038 * parse.c (parse_exp_1): Set prev_lexptr to null before
8039 calling the language-specific parser.
8040 * c-exp.y (yylex): Set prev_lexptr to start of current token.
8041 (yyerror): Use prev_lexptr in error reporting.
8042
8043 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
8044
8045 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
8046 * gregset.h: If FILL_FPXREGSET is defined, provide
8047 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
8048 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
8049 is defined, call fill_fpxregset.
8050
8051 2002-04-24 Roland McGrath <roland@frob.com>
8052
8053 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
8054 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
8055 (supply_gregset, supply_fpregset): New functions.
8056
8057 * gnu-nat.c (gnu_find_memory_regions): New function.
8058 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
8059 (gnu_xfer_memory): Add a cast.
8060
8061 2002-04-24 Michael Snyder <msnyder@redhat.com>
8062
8063 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
8064 loop. Add handling for "str lr, [sp, #-4]!" and for saves
8065 of argument regs ("str r(0123), [r11, #-nn"]).
8066 (arm_skip_prologue): Better handling for frameless functions.
8067 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
8068 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
8069
8070 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
8071
8072 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
8073 NUM_PSEUDO_REGS can be used.
8074
8075 2002-04-24 Andrew Cagney <ac131313@redhat.com>
8076
8077 * arch-utils.h: Update copyright.
8078
8079 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
8080 * gdbarch.h, gdbarch.c: Re-generate.
8081
8082 * inferior.h (IN_SIGTRAMP): Delete definition.
8083 * arch-utils.c (legacy_pc_in_sigtramp): New function.
8084 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
8085
8086 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
8087 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
8088 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
8089 (find_proc_framesize): Ditto.
8090 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
8091 (alpha_init_extra_frame_info): Ditto.
8092 * infrun.c (handle_inferior_event): Ditto.
8093 (handle_inferior_event): Ditto.
8094 (check_sigtramp2): Ditto.
8095 * blockframe.c (create_new_frame): Ditto.
8096 (get_prev_frame): Ditto.
8097 * ppc-linux-tdep.c: Update comments.
8098 * i386-linux-tdep.c: Update comments.
8099 * breakpoint.c (bpstat_what): Update comment.
8100
8101 2002-04-24 David S. Miller <davem@redhat.com>
8102
8103 * i960-tdep.c (register_in_window_p): New function.
8104 (i960_find_saved_register): Use it instead of
8105 REGISTER_IN_WINDOW_P.
8106 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
8107
8108 * symtab.h (find_stab_function_addr): Kill extern.
8109 * minsyms.c (find_stab_function_addr): Remove from here...
8110 * dbxread.c: ... to here, and mark it static.
8111
8112 2002-04-20 David S. Miller <davem@redhat.com>
8113
8114 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
8115 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
8116
8117 2002-04-21 David S. Miller <davem@redhat.com>
8118
8119 * remote-vxsparc.c (vx_read_register): Fix typo, we want
8120 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
8121 (vx_write_register): Likewise.
8122
8123 2002-04-23 J. Brobecker <brobecker@gnat.com>
8124
8125 * source.c (is_regular_file): New function.
8126 (openp): Check wether file to open is a regular file
8127 to avoid opening directories.
8128
8129 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8130
8131 * findvar.c (extract_signed_integer): Cast printf argument
8132 to suppress format warning.
8133 (extract_unsigned_integer): Likewise.
8134 * infcmd.c (registers_info): Likewise.
8135 * top.c (get_prompt_1): Likewise.
8136 * valops.c (value_assign): Likewise.
8137 * valprint.c (print_decimal): Likewise.
8138
8139 2002-04-22 H.J. Lu (hjl@gnu.org)
8140
8141 * c-exp.y (typebase): Support
8142
8143 [long|long long|short] [signed|unsigned] [int|]
8144
8145 and
8146
8147 signed [long|long long|short] int
8148
8149 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8150
8151 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
8152 and vax-tdep.h.
8153 * vax-tdep.h: New file.
8154 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
8155 Make several routines static.
8156 (vax_get_saved_register): New function.
8157 (vax_gdbarch_init): New function.
8158 (_initialize_vax_tdep): Register vax_gdbarch_init.
8159 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
8160 Remove macros now under the control of gdbarch.
8161
8162 2002-04-22 Michael Snyder <msnyder@redhat.com>
8163
8164 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
8165 Some whitespace and coding standards tweaks.
8166
8167 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8168
8169 * vax-tdep.c: Include regcache.h.
8170 (vax_call_dummy_words): New.
8171 (sizeof_vax_call_dummy_words): New.
8172 (vax_fix_call_dummy): New function.
8173 (vax_saved_pc_after_call): Ditto.
8174 * config/vax/tm-vax.h: Don't include regcache.h.
8175 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
8176 (CALL_DUMMY): Remove.
8177 (CALL_DUMMY_WORDS): Define.
8178 (SIZEOF_CALL_DUMMY_WORDS): Define.
8179 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
8180
8181 2002-04-18 Michael Snyder <msnyder@redhat.com>
8182
8183 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
8184
8185 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8186
8187 * vax-tdep.c (vax_frame_chain): New function.
8188 (vax_push_dummy_frame): Ditto.
8189 (vax_pop_frame): Ditto.
8190 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
8191 (FRAMELESS_FUNCTION_INVOCATION): Use
8192 generic_frameless_function_invocation_not.
8193 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
8194 (POP_FRAME): Use vax_pop_frame.
8195
8196 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8197
8198 * vax-tdep.c (vax_store_struct_return): New function.
8199 (vax_extract_return_value): Ditto.
8200 (vax_store_return_value): Ditto.
8201 (vax_extract_struct_value_address): Ditto.
8202 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
8203 vax_store_struct_return.
8204 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
8205 (STORE_RETURN_VALUE): Use vax_store_return_value.
8206 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
8207
8208 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8209
8210 * vax-tdep.c (vax_frame_saved_pc): New function.
8211 (vax_frame_args_address_correct): Ditto.
8212 (vax_frame_args_address): Ditto.
8213 (vax_frame_locals_address): Ditto.
8214 (vax_frame_num_args): Move code to be in proximity to
8215 other frame-related functions.
8216 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
8217 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
8218 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
8219 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
8220 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
8221
8222 2002-04-22 H.J. Lu (hjl@gnu.org)
8223
8224 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
8225 includedir.
8226
8227 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8228
8229 * vax-tdep.c (vax_frame_init_saved_regs): New function.
8230 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
8231 (FRAME_INIT_SAVED_REGS): New macro.
8232
8233 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8234
8235 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
8236
8237 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8238
8239 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
8240 where needed.
8241 (fetch_osf_core_registers): Likewise.
8242 (supply_gregset): Likewise.
8243
8244 2002-04-22 J. Brobecker <brobecker@gnat.com>
8245
8246 * symfile.h (get_section_index): Define.
8247 * symfile.c (get_section_index): New function.
8248 * mdebugread.c (SC_IS_SBSS): New macro.
8249 (SC_IS_BSS): Return true for the scBss storage class only, as
8250 the scSBss storage class refers to the .sbss section.
8251 (parse_partial_symbols): Discard the symbols which associated
8252 section does not exist.
8253 Make sure to use the .sbss section index for symbols which
8254 storage class is scBss, rather than using the .bss section index.
8255
8256 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8257
8258 * vax-tdep.c: Update copyright years.
8259 (vax_register_name): New function.
8260 (vax_register_byte): Ditto.
8261 (vax_register_raw_size): Ditto.
8262 (vax_register_virtual_size): Ditto.
8263 (vax_register_virtual_type): Ditto.
8264 * config/vax/tm-vax.h: Update copyright years.
8265 (REGISTER_NAMES): Remove.
8266 (REGISTER_NAME): Define.
8267 (REGISTER_BYTE): Use vax_register_byte.
8268 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
8269 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
8270 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
8271
8272 2002-04-21 Andrew Cagney <ac131313@redhat.com>
8273
8274 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
8275 declaration
8276 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
8277
8278 2002-04-21 David S. Miller <davem@redhat.com>
8279
8280 * arch-utils.c (generic_prologue_frameless_p): Kill
8281 SKIP_PROLOGUE_FRAMELESS_P code.
8282 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
8283 references.
8284 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
8285 * arc-tdep.c (arc_prologue_frameless_p): Implement.
8286 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
8287 references.
8288 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
8289 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
8290 (sparc_gdbarch_init): Pass it to
8291 set_gdbarch_prologue_frameless_p.
8292
8293 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8294
8295 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
8296 (alphabsd-nat.o): New dependency list.
8297
8298 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8299
8300 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
8301 alphafbsd-tdep.c.
8302 (alpha-linux-tdep.o): New dependency list.
8303 (alphafbsd-tdep.o): Likewise.
8304
8305 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8306
8307 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
8308 to here...
8309 * alpha-tdep.c: ...from here.
8310 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
8311
8312 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8313
8314 * config/alpha/tm-alpha.h: Move alpha_software_single_step
8315 prototype from here...
8316 * alpha-tdep.h: ...to here.
8317
8318 2002-04-21 Andrew Cagney <ac131313@redhat.com>
8319
8320 * frame.h (selected_frame_level): Document as deprecated.
8321 (frame_relative_level): Declare.
8322 * stack.c (frame_relative_level): New function.
8323 (selected_frame_level): Document as deprecated.
8324 (select_frame): Do not set the selected_frame_level.
8325
8326 * stack.c (frame_info, record_selected_frame): Update.
8327 (frame_command, current_frame_command): Update.
8328 (up_silently_base, up_command, down_silently_base): Update.
8329 (down_command): Update.
8330 * inflow.c (kill_command): Update.
8331 * tracepoint.c (finish_tfind_command): Update.
8332 * corelow.c (core_open): Update.
8333 * thread.c (info_threads_command): Update.
8334 (do_captured_thread_select): Update.
8335 * infcmd.c (finish_command): Update.
8336 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
8337
8338 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8339
8340 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
8341
8342 2002-04-21 Andrew Cagney <ac131313@redhat.com>
8343
8344 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
8345 type const.
8346
8347 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8348
8349 * alphafbsd-tdep.c: Update copyright years. Include
8350 alpha-tdep.h.
8351 (alphafbsd_use_struct_convention): Make static.
8352 (alphafbsd_init_abi): New function.
8353 (_initialize_alphafbsd_tdep): New function.
8354 * config/alpha/tm-fbsd.h: Update copyright years.
8355 (USE_STRUCT_CONVENTION): Remove.
8356
8357 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8358
8359 * alpha-tdep.c (alpha_abi_handler): New structure to describe
8360 an Alpha ABI variant.
8361 (alpha_abi_handler_list): Declare.
8362 (alpha_gdbarch_register_os_abi): New function.
8363 (alpha_gdbarch_init): Give registered ABI variant handlers a
8364 chance to tweak the gdbarch once we have set up defaults.
8365 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
8366
8367 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8368
8369 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
8370 to standard_coerce_float_to_double.
8371 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
8372
8373 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8374
8375 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
8376 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
8377 from gdbarch_tdep rather than a constant.
8378 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
8379 the default text address for all Alpha Unix ABIs.
8380 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
8381 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
8382
8383 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8384
8385 * alpha-tdep.h: New file. Includes several Alpha target constants
8386 taken from...
8387 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
8388 let gdbarch deal with.
8389 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
8390 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
8391 to dependency list.
8392 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
8393 Alpha target register names.
8394 * alphabsd-nat.c: Likewise.
8395 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
8396 Alpha target register names. Make serveral routines static.
8397 (alpha_get_saved_register): New function.
8398 (alpha_abi_names): New.
8399 (process_note_abi_tag_sections): New function.
8400 (get_elfosabi): New function.
8401 (alpha_gdbarch_init): New function.
8402 (alpha_dump_tdep): New function.
8403 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
8404
8405 2002-04-21 Andrew Cagney <ac131313@redhat.com>
8406
8407 * frame.c (find_saved_register): Delete #ifdef
8408 HAVE_REGISTER_WINDOWS code.
8409 * config/sparc/tm-sparc.h: Update comments.
8410 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
8411
8412 2002-04-21 Andrew Cagney <ac131313@redhat.com>
8413
8414 * i960-tdep.c (i960_find_saved_register): New function.
8415 (i960_get_saved_register): New function.
8416 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
8417 (i960_get_saved_register): Declare.
8418 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
8419
8420 2002-04-20 David S. Miller <davem@redhat.com>
8421
8422 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
8423
8424 2002-04-20 Andrew Cagney <ac131313@redhat.com>
8425
8426 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
8427 instead of NUM_PSEUDO_REGS.
8428
8429 2002-04-20 David S. Miller <davem@redhat.com>
8430
8431 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
8432 GDB_MULTI_ARCH_PARTIAL
8433 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
8434 define, let tm-sp64.h do it.
8435
8436 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
8437
8438 * frame.c (find_saved_register): Avoid a NULL pointer
8439 dereference and actually walk the frame list.
8440
8441 2002-04-20 Andrew Cagney <ac131313@redhat.com>
8442
8443 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
8444 sorted in most most-recent-used order. Document.
8445 * gdbarch.h, gdbarch.c: Regenerate.
8446
8447 2002-04-19 Andrew Cagney <ac131313@redhat.com>
8448
8449 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
8450 instead of ->prev.
8451 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
8452 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
8453 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
8454 instead of ->prev.
8455
8456 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
8457
8458 Fix PR gdb/471.
8459 * gdbtypes.c (init_simd_type): Rewrite using new functions.
8460 (build_builtin_type_vec128): Ditto.
8461 (append_composite_type_field): Fix calculation of type length in
8462 union case.
8463
8464 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
8465
8466 * config/djgpp/README: Update.
8467
8468 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
8469 compiler warnings.
8470
8471 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
8472
8473 * alpha-tdep.c (setup_arbitrary_frame): Rename...
8474 (alpha_setup_arbitrary_frame): ...to this.
8475 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
8476 for alpha_setup_arbitrary_frame.
8477
8478 2002-04-18 Andrew Cagney <cagney@redhat.com>
8479
8480 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
8481 * gdbarch.h, gdbarch.c: Regenerate.
8482
8483 * defs.h (breakpoint_from_pc_fn): Delete type definition.
8484 * target.h (memory_breakpoint_from_pc): Update declaration.
8485 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
8486
8487 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
8488 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
8489 * mem-break.c (memory_breakpoint_from_pc): Ditto.
8490 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
8491 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
8492 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
8493 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
8494 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
8495 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
8496 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
8497 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
8498 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
8499
8500 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
8501 const pointer.
8502 * monitor.c (monitor_insert_breakpoint): Ditto.
8503 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
8504
8505 * config/mcore/tm-mcore.h: Update copyright.
8506 * mem-break.c: Ditto.
8507 * xstormy16-tdep.c: Ditto.
8508
8509 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
8510
8511 * p-exp.y: Add precedence rule for '^' token.
8512 This removes the shift/reduce conflicts.
8513 Remove the comment concerning these shift/reduce conflicts.
8514
8515 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
8516
8517 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
8518 (registers_powerpc_nofp): New register set for processors
8519 without floating point unit.
8520
8521 2002-04-18 David S. Miller <davem@redhat.com>
8522
8523 * MAINTAINERS: Add myself to write-after-approval.
8524
8525 2002-04-17 Michael Snyder <msnyder@redhat.com>
8526
8527 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
8528
8529 2002-04-17 Andrew Cagney <ac131313@redhat.com>
8530
8531 * rs6000-tdep.c (frame_initial_stack_address): Use
8532 frame_register_read to read the alloca_reg.
8533
8534 2002-04-17 Andrew Cagney <ac131313@redhat.com>
8535
8536 * frame.c (find_saved_register): Find saved registers in the next
8537 not prev frame.
8538 Fix PR gdb/365.
8539
8540 2002-04-17 Andrew Cagney <ac131313@redhat.com>
8541
8542 * gdbarch.sh (LANG): Set to ``c''.
8543
8544 2002-04-15 Andrew Cagney <ac131313@redhat.com>
8545
8546 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
8547
8548 2002-04-15 Andrew Cagney <ac131313@redhat.com>
8549
8550 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
8551 Update copyright.
8552
8553 * hpread.c (hpread_get_lntt): Add declaration.
8554 Also fix PR gdb/391.
8555
8556 2002-04-14 Andrew Cagney <ac131313@redhat.com>
8557
8558 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
8559 * aclocal.m4, configure: Re-generate.
8560 Fix PR gdb/391.
8561
8562 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
8563
8564 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
8565 instead of tm_print_insn.
8566
8567 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
8568
8569 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
8570
8571 2002-04-14 Andrew Cagney <ac131313@redhat.com>
8572
8573 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
8574 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
8575 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
8576
8577 2002-04-12 Don Howard <dhoward@redhat.com>
8578
8579 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
8580 max_user_call_depth.
8581 (init_cmd_lists): Initialize the new value;
8582 * cli/cli-script.c (execute_user_command): Limit the call depth of
8583 user defined commands. This avoids a core-dump when user commands
8584 are infinitly recursive.
8585
8586 2002-04-12 Kevin Buettner <kevinb@redhat.com>
8587
8588 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
8589 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
8590 from tdep struct instead of DEFAULT_LR_SAVE.
8591 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
8592 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
8593 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
8594
8595 2002-04-12 Michael Snyder <msnyder@redhat.com>
8596
8597 * Remote.c: Spelling fix.
8598 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
8599 If no symbol found for "sbrk", try "_sbrk".
8600 (make_output_phdrs): Use bfd_section_name.
8601 (gcore_copy_callback): Use bfd_section_name.
8602 * eval.c: Indentation fix-ups.
8603 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
8604 in case it gets applied to an address that is already
8605 in the instruction space.
8606 * cli/cli-decode.c (help_list): Allow long lines to wrap.
8607 * symfile.c: Fix indentation, long lines.
8608 * source.c: White space fix-up.
8609
8610 2002-04-12 Andrew Cagney <cagney@redhat.com>
8611
8612 * defs.h (read_relative_register_raw_bytes): Delete declaration.
8613 * frame.c (frame_register_read): New function. Return non-zero on
8614 success.
8615 (read_relative_register_raw_bytes_for_frame): Delete.
8616 (read_relative_register_raw_bytes): Delete.
8617 * frame.h (frame_register_read): Declare.
8618 * d30v-tdep.c: Update Copyright. Use frame_register_read.
8619 * sh-tdep.c: Ditto.
8620 * infcmd.c (do_registers_info): Ditto.
8621 * hppa-tdep.c: Ditto.
8622 * rs6000-tdep.c: Ditto.
8623 * h8500-tdep.c: Ditto.
8624 * mips-tdep.c: Ditto.
8625 * h8300-tdep.c: Ditto.
8626 * z8k-tdep.c: Ditto.
8627
8628 2002-04-12 Kevin Buettner <kevinb@redhat.com>
8629
8630 From Jimi X <jimix@watson.ibm.com>:
8631 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
8632 64-bit SysV ABI.
8633
8634 2002-04-12 Kevin Buettner <kevinb@redhat.com>
8635
8636 From Jimi X <jimix@watson.ibm.com>:
8637 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
8638 bfd info.
8639
8640 2002-04-12 Kevin Buettner <kevinb@redhat.com>
8641
8642 From Jimi X <jimix@watson.ibm.com>:
8643 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
8644 register sets for these processor variants.
8645
8646 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
8647
8648 * regformats/reg-ppc.dat: Support FPSCR.
8649
8650 2002-04-11 Kevin Buettner <kevinb@redhat.com>
8651
8652 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
8653 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
8654 Add fpscr as an invalid/unfetchable register.
8655 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
8656 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
8657 (fill_fpregset): Add support for register fpscr.
8658 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
8659 (fill_gregset): Account for the fact that register ``mq'' might
8660 not exist.
8661 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
8662 (registers_power): Add fpscr to register set at slot 71.
8663 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
8664 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
8665
8666 2002-04-11 Michael Snyder <msnyder@redhat.com>
8667
8668 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
8669 * configure: Regenerate.
8670 * config.in: Regenerate.
8671 * acconfig.h: Add define for _SYSCALL32.
8672 * core-sol2.c: Remove #define _SYSCALL32.
8673 * solib-legacy.c: Remove #define _SYSCALL32.
8674
8675 2002-04-10 Andrew Cagney <ac131313@redhat.com>
8676
8677 * stack.c (select_frame): Cleanup internal error message, do not
8678 use %p.
8679
8680 2002-04-10 Andrew Cagney <ac131313@redhat.com>
8681
8682 * stack.c (select_frame): Check that selected_frame and the
8683 specified level are as expected.
8684 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
8685 Update copyright.
8686 * frame.h (struct frame_info): Add field `level'. Update
8687 copyright.
8688 Work-in-progress PR gdb/464.
8689
8690 2002-04-10 Andrew Cagney <ac131313@redhat.com>
8691
8692 * maint.c (maint_print_section_info): Rename print_section_info.
8693 (print_bfd_section_info, print_objfile_section_info): Update.
8694 * inferior.h (struct gdbarch): Add opaque declaration.
8695 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
8696 * gdbarch.h: Regenerate.
8697
8698 2002-04-10 Michal Ludvig <mludvig@suse.cz>
8699
8700 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
8701 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
8702 (kernel_u_size): Added.
8703 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
8704 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
8705
8706 2002-04-04 Jim Ingham <jingham@apple.com>
8707
8708 * valarith.c (find_size_for_pointer_math): New function, either returns
8709 the size for a pointer's target, returns 1 for void *, or errors for
8710 incomplete types.
8711 (value_add, value_sub): use find_size_for_pointer_math.
8712
8713 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
8714
8715 * linux-low.c (linux_look_up_symbols): New hook.
8716 (linux_target_ops): Add linux_look_up_symbols.
8717 * remote-utils.c (decode_address): New function.
8718 (look_up_one_symbol): New function.
8719 * server.c (handle_query): Call target look_up_symbols hook.
8720 * server.h (look_up_one_symbol): Add prototype.
8721 * target.h (struct target_ops): Add look_up_symbols hook.
8722
8723 2002-04-09 Andrew Cagney <ac131313@redhat.com>
8724
8725 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
8726 override FP_REGNUM with frame->fp. Update copyright.
8727 * parse.c (num_std_regs, std_regs): Delete.
8728 (target_map_name_to_register): Do not search std_regs. Update
8729 function description.
8730 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
8731 declarations. Update copyright.
8732 Fix PR gdb/251.
8733
8734 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
8735
8736 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
8737 after the last symbol in a block.
8738
8739 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
8740
8741 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
8742 is non zero as a found symbol.
8743
8744 2002-04-08 Andrew Cagney <ac131313@redhat.com>
8745
8746 * findvar.c: Include "builtin-regs.h".
8747 (value_of_register): Call value_of_builtin_reg when applicable.
8748 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
8749 (target_map_name_to_register): Call
8750 builtin_reg_map_name_to_regnum.
8751 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
8752 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
8753 (builtin_regs_h): Define.
8754 (builtin-regs.o): New target.
8755 (findvar.o): Add $(builtin_regs_h).
8756 * builtin-regs.c, builtin-regs.h: New files.
8757 * std-regs.c: New file.
8758 Partial fix for PR gdb/251.
8759
8760 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8761
8762 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
8763 it's no longer required.
8764
8765 2002-04-08 Andrew Cagney <ac131313@redhat.com>
8766
8767 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
8768
8769 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8770
8771 From Jimi X <jimix@watson.ibm.com>:
8772 * rs6000-tdep.c (rs6000_software_single_step): Use
8773 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
8774 and size. Use target_insert_breakpoint() and
8775 target_remove_breakpoint() to insert and remove breakpoints
8776 instead of explicit memory reads and writes.
8777
8778 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8779
8780 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
8781 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
8782 ELF_OBJECT_FORMAT ifdef.
8783
8784 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8785
8786 From Jimi X <jimix@watson.ibm.com>:
8787 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
8788
8789 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8790
8791 From Jimi X <jimix@watson.ibm.com>:
8792 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
8793 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
8794
8795 2002-04-07 Mark Kettenis <kettenis@gnu.org>
8796
8797 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
8798 s/asprintf/xasprintf/.
8799 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
8800
8801 2002-04-07 Andrew Cagney <ac131313@redhat.com>
8802
8803 I believe Jeff Law denies responsability for this one:
8804 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
8805 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
8806 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
8807 Work-around for PR gdb/366.
8808
8809 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
8810
8811 * remote-e7000.c (write_small, e7000_read_inferior_memory,
8812 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
8813 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
8814
8815 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
8816
8817 * sh-tdep.c (sh_fp_frame_init_saved_regs,
8818 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
8819 information.
8820
8821 2002-04-07 Andrew Cagney <ac131313@redhat.com>
8822
8823 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
8824 maintainer.
8825
8826 2002-04-07 Andrew Cagney <ac131313@redhat.com>
8827
8828 * README (Reporting Bugs in GDB): Document the bug web page as the
8829 prefered way of submitting bugs.
8830 Fix PR gdb/402.
8831
8832 2002-04-06 Andrew Cagney <ac131313@redhat.com>
8833
8834 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
8835 -1. Update comment.
8836 * gdbarch.h, gdbarch.c: Re-generate.
8837
8838 2002-04-07 Andreas Schwab <schwab@suse.de>
8839
8840 * m68klinux-nat.c (fill_fpregset): Properly pass address of
8841 buffer to regcache_collect.
8842
8843 2002-04-06 Andrew Cagney <ac131313@redhat.com>
8844
8845 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
8846 * gdbarch.c, gdbarch.h: Re-generate.
8847
8848 2002-04-06 Andrew Cagney <ac131313@redhat.com>
8849
8850 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
8851 declaration. Fix -Werror.
8852
8853 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
8854
8855 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
8856 * gdbarch.c: Regenerate.
8857
8858 2002-04-05 Michael Snyder <msnyder@redhat.com>
8859
8860 * breakpoint.c (clear_command): Rewrite middle section to
8861 combine two loops with identical control conditions.
8862 Add a cleanup to eliminate a memory leak.
8863 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
8864
8865 2002-04-05 H.J. Lu (hjl@gnu.org)
8866
8867 * solib-svr4.c (bkpt_names): Add "__start".
8868
8869 2002-04-04 Andrew Cagney <ac131313@redhat.com>
8870
8871 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
8872 as test for 64 bit target.
8873
8874 2002-04-05 Andrew Cagney <ac131313@redhat.com>
8875
8876 * h8500-tdep.c (h8500_write_fp): Delete function.
8877 * dwarf2cfi.c (cfi_write_fp): Document as not used.
8878 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
8879 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
8880 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
8881 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
8882 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
8883 (s390_write_fp):
8884 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
8885 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
8886 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
8887 (d10v_write_fp): Delete function.
8888 * inferior.h (write_fp, generic_target_write_fp): Delete
8889 declarations.
8890 * regcache.c (generic_target_write_fp): Delete function.
8891 (write_fp): Delete function.
8892 * gdbarch.sh (TARGET_WRITE_FP): Delete.
8893 * gdbarch.h, gdbarch.c: Regenerate.
8894 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
8895 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
8896 (sparc64_write_fp): Delete declaration.
8897 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
8898 (h8500_write_fp): Delete declaration.
8899
8900 2002-04-04 Andrew Cagney <ac131313@redhat.com>
8901
8902 * sparc-tdep.c (sparc64_write_fp): Delete.
8903 (sparc_push_dummy_frame): Replace write_fp call with code to store
8904 the FP directly.
8905 (sparc_gdbarch_init): Do not initialize write_fp.
8906
8907 2002-04-05 Kevin Buettner <kevinb@redhat.com>
8908
8909 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
8910 clause.
8911
8912 2002-03-29 Jim Blandy <jimb@redhat.com>
8913
8914 * stack.c (get_selected_block): Add new argument `addr_in_block',
8915 used to return the exact code address we used to select the block,
8916 not just the block.
8917 * blockframe.c (get_frame_block, get_current_block): Same.
8918 * frame.h (get_frame_block, get_current_block,
8919 get_selected_block): Update declarations.
8920 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
8921 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
8922
8923 2002-04-05 Michael Snyder <msnyder@redhat.com>
8924
8925 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
8926 warning message.
8927
8928 2002-04-05 J. Brobecker <brobecker@gnat.com>
8929
8930 * utils.c (xfullpath): New function.
8931 * defs.h (xfullpath): Add declaration.
8932 * source.c (openp): Use xfullpath in place of gdb_realpath to
8933 avoid resolving the basename part of filenames when the
8934 associated file is a symbolic link. This fixes a potential
8935 inconsistency between the filenames known to GDB and the
8936 filenames it prints in the annotations.
8937 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
8938 to be able to match a filename with either the real filename, or
8939 the name of any symbolic link to this file.
8940 (lookup_partial_symtab): Ditto.
8941
8942 2002-04-04 Michael Snyder <msnyder@redhat.com>
8943
8944 * breakpoint.c: Add support for hardware breakpoints in overlays.
8945 (overlay_events_enabled): New state variable.
8946 (insert_breakpoints): Use overlay_events_enabled to decide
8947 whether to attempt to set a breakpoint at the overlay load addr.
8948 Handle bp_hardware_breakpoint as well as bp_breakpoint.
8949 (remove_breakpoint): Use overlay_events_enabled to decide
8950 whether breakpoints need to be removed from overlay load addr.
8951 Handle bp_hardware_breakpoint as well as bp_breakpoint.
8952 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
8953 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
8954 disable_overlay_breakpoints): Update overlay_events_enabled.
8955
8956 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
8957
8958 * dwarf2read.c (struct function_range): New.
8959 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
8960 (check_cu_functions): New.
8961 (read_file_scope): Initialize global function lists.
8962 Call dwarf_decode_line after processing children.
8963 (read_func_scope): Add to global function list.
8964 (dwarf_decode_lines): Call check_cu_functions everywhere
8965 record_line is called. Call record_line with a linenumber
8966 of 0 to mark sequence ends.
8967
8968 2002-04-04 Michal Ludvig <mludvig@suse.cz>
8969
8970 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
8971 change sync with glibc.
8972
8973 2002-04-03 Jim Blandy <jimb@redhat.com>
8974
8975 * configure.in: Call AC_C_INLINE.
8976 * configure: Regenerated.
8977
8978 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
8979
8980 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
8981 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
8982
8983 2002-03-31 Mark Kettenis <kettenis@gnu.org>
8984
8985 * NEWS: Mention gcore support on FreeBSD/i386.
8986
8987 * fbsd-proc.c: New file.
8988 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
8989 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
8990
8991 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
8992 while statement.
8993
8994 2002-03-29 Jim Blandy <jimb@redhat.com>
8995
8996 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
8997 unescaped newlines in string literals, but newer ones don't. So
8998 escape them.
8999
9000 2002-03-26 Michael Snyder <msnyder@redhat.com>
9001 Andrew Cagney <cagney@redhat.com>
9002
9003 * cli/cli-dump.c: New file. Dump memory to file,
9004 restore file to memory.
9005 * cli/cli-dump.h: New file.
9006 * Makefile.in: Add rules, dependencies for cli-dump.o.
9007 * NEWS: Mention new commands.
9008
9009 2002-03-28 Michael Snyder <msnyder@redhat.com>
9010
9011 * symfile.c (symbol_file_add): Move test for null symbols to later.
9012
9013 2002-03-27 Andrew Cagney <ac131313@redhat.com>
9014
9015 From veksler at il.ibm.com:
9016 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
9017 the xstrduped original path.
9018 Fix PR gdb/417.
9019
9020 2002-03-27 Michael Snyder <msnyder@redhat.com>
9021
9022 * breakpoint.c (_initialize_breakpoint): Clean up help string.
9023 * infcmd.c (_initialize_infcmd): Ditto.
9024 * language.c (_initialize_language): Ditto.
9025 * symfile.c (_initialize_symfile): Ditto.
9026 * top.c (_init_main): Ditto.
9027 * cli/cli-cmds.c (init_cli_cmds): Ditto.
9028
9029 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
9030
9031 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
9032 vector registers handling.
9033 (skip_prologue): Handle new AltiVec instructions. Fill in new
9034 fields of frame data.
9035 (frame_get_saved_regs): Fill in information for AltiVec registers.
9036
9037 2002-03-27 Jim Blandy <jimb@redhat.com>
9038
9039 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
9040 a function; leave this macro here to invoke that function.
9041 (symbol_init_mangled_name): Declaration for that function.
9042 * symtab.c (symbol_init_mangled_name): New function.
9043
9044 2002-03-27 Andrew Cagney <ac131313@redhat.com>
9045
9046 * valarith.c: Replace strerror with safe_strerror.
9047 * tracepoint.c: Ditto.
9048 * lin-lwp.c: Ditto.
9049 * go32-nat.c: Ditto.
9050 * inflow.c: Ditto.
9051 * gnu-nat.c: Ditto.
9052
9053 2002-03-27 Andreas Schwab <schwab@suse.de>
9054
9055 * event-top.c (command_line_handler): Remove useless if.
9056
9057 2002-03-27 Andreas Jaeger <aj@suse.de>
9058
9059 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
9060 comment.
9061
9062 2002-03-27 Michal Ludvig <mludvig@suse.cz>
9063
9064 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
9065 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
9066 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
9067 (x86_64_linux_dr_get_status, supply_gregset),
9068 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
9069 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
9070 (x86_64_register_info_table): Add.
9071 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
9072 (x86_64_register_raw_size, x86_64_register_virtual_type),
9073 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
9074 general x86_64_register_info_table.
9075 (i386_gdbarch_init): gdbarch_register_bytes is now set
9076 dynamicaly during initialization.
9077 * regformats/reg-x86-64.dat: Synced with changes to registers above.
9078 * gdbserver/linux-x86-64-low.c: Ditto.
9079
9080 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
9081
9082 * gdbserver/server.c (main): Call target_signal_to_host_p
9083 and target_signal_to_host on signals received from the remote.
9084 * gdbserver/remote-utils.c (prepare_resume_reply): Call
9085 target_signal_from_host on signals sent to the remote.
9086 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
9087 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
9088
9089 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
9090
9091 * signals/signals.c: Include "server.h" in gdbserver build.
9092 (target_signal_from_name): Don't use STREQ.
9093 (_initialize_signals): Likewise. Don't include function in
9094 gdbserver build.
9095
9096 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
9097
9098 * signals.c: Moved to...
9099 * signals/signals.c: Here.
9100 * Makefile (signals.o): Update.
9101
9102 2002-03-26 Jeff Law (law@redhat.com)
9103
9104 * somread.c (som_symtab_read): Remove some commented out code and
9105 updated related comments. Do not set the minimal symbol table to
9106 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
9107 in a dynamic executable.
9108 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
9109 where we are unable to find the minimal symbol for the given
9110 PC value.
9111
9112 2002-03-25 Jeff Law (law@redhat.com)
9113
9114 * linux-proc.c (read_mapping): Scan up to end of line for filename.
9115
9116 2002-03-25 Michal Ludvig <mludvig@suse.cz>
9117
9118 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
9119
9120 2002-03-23 Andrew Cagney <ac131313@redhat.com>
9121
9122 * command.h: Update copyright.
9123 (struct cmd_list_element): Replace definition with opaque
9124 declaration.
9125 (enum cmd_types): Document that it will eventually be moved to
9126 cli/cli-decode.h
9127 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
9128 (MALLOCED_REPLACEMENT): Delete macro.
9129 * Makefile.in (cli_decode_h): Add $(command_h).
9130 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
9131 * top.c: Include "cli/cli-decode.h".
9132 * completer.c: Include "cli/cli-decode.h".
9133 * maint.c: Include "cli/cli-decode.h".
9134 * cli/cli-decode.h: Include "command.h".
9135 (enum command_class): Delete.
9136 (enum cmd_types): Comment out.
9137 (enum cmd_auto_boolean): Delete.
9138 (enum var_types): Delete.
9139
9140 2002-03-23 Andrew Cagney <ac131313@redhat.com>
9141
9142 * cli/cli-decode.c: Include "gdb_assert.h".
9143 (add_set_or_show_cmd): New static function.
9144 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
9145 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
9146 all fields, such as func, from the set command.
9147
9148 2002-03-23 Andrew Cagney <ac131313@redhat.com>
9149
9150 * MAINTAINERS (sh-elf): Change warning flag to -w.
9151
9152 2002-03-23 Andrew Cagney <cagney@redhat.com>
9153
9154 * defs.h (error): Add printf format attribute.
9155 * thread-db.c (thread_from_lwp): Fix error format string.
9156 * stack.c (parse_frame_specification): Ditto.
9157 * cli/cli-decode.c (undef_cmd_error): Ditto.
9158 * scm-lang.c (scm_lookup_name): Ditto.
9159 * tracepoint.c (trace_error): Ditto.
9160 * remote-utils.c (usage): Ditto.
9161 * remote.c (compare_sections_command): Ditto.
9162 Fix PR gdb/328.
9163
9164 2002-03-22 Andrew Cagney <ac131313@redhat.com>
9165
9166 * gdbtypes.c (append_composite_type_field): New function.
9167 (init_composite_type): New function.
9168 * gdbtypes.h (append_composite_type_field): Declare.
9169 (init_composite_type): Ditto.
9170
9171 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
9172
9173 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
9174 function.
9175 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
9176 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
9177 structure returning convention for SYSV ABI case, but not
9178 for GNU/Linux, FreeBSD, or NetBSD.
9179
9180 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
9181
9182 * symtab.h (lookup_block_symbol): Add mangled_name argument
9183 to prototype.
9184
9185 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
9186 with new mangled_name argument.
9187 * linespec.c (decode_line_1): Likewise.
9188 * valops (value_of_this): Likewise.
9189 * symtab.c (lookup_transparent_type): Likewise.
9190 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
9191 (lookup_symbol): If we are given a mangled name, pass it down
9192 to lookup_symbol_aux.
9193 (lookup_block_symbol): If we are given a mangled name to check
9194 against, only return symbols which match it.
9195
9196 2002-03-22 Christopher Faylor <cgf@redhat.com>
9197
9198 * win32-nat.c (child_create_inferior): Check for proper shell to use
9199 here, in case the user changes it on the fly.
9200 (_initialize_inftarg): Remove shell path considerations.
9201
9202 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
9203
9204 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
9205 for gdbarch_max_register_raw_size and max_register_virtual_size.
9206 Adjust copyright year.
9207
9208 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
9209
9210 * dbxread.c (process_one_symbol): Extend the first N_SLINE
9211 in a function to cover the entire beginning of the function
9212 as well if it does not already.
9213
9214 2002-03-21 Tom Rix <trix@redhat.com>
9215
9216 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
9217 (rs6000_ptrace64): Renamed from ptrace64.
9218
9219 2002-03-20 Martin M. Hunt <hunt@redhat.com>
9220
9221 * gdbserver/remote-utils.c (remote_open): Don't call
9222 getprotobyname, we're all using TCP here so just use
9223 IPPROTO_TCP.
9224 * gdbserver/gdbreplay.c (remote_open): Ditto.
9225
9226 2002-03-20 Martin M. Hunt <hunt@redhat.com>
9227
9228 * regcache.c (_initialize_regcache): No need to call
9229 build_regcache() at this time; it gets called whenever
9230 the gdbarch changes.
9231
9232 2002-03-20 David O'Brien <obrien@FreeBSD.org>
9233
9234 * sparc-nat.c: Include sys/param.h where possible.
9235
9236 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
9237
9238 Fix PR gdb/422.
9239 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
9240 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
9241 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
9242 complex types.
9243 * stabsread.c (rs6000_builtin_type): Likewise.
9244 (read_sun_floating_type): Likewise.
9245
9246 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9247
9248 * stabsread.c (read_member_functions): Remove skip code for duplicate
9249 constructor/destructor methods. Use standard parsing for these
9250 methods and just do not chain them to the list of methods after
9251 parsing.
9252
9253 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
9254
9255 * coffread.c: Remove redundant static declarations. Replace
9256 occurrences of `PTR' with `void *'.
9257 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
9258 * top.h (quit_cover): Likewise.
9259 * defs.h (catch_errors): Likewise.
9260
9261 2002-03-18 Andrew Cagney <ac131313@redhat.com>
9262
9263 * defs.h (XMALLOC): Define.
9264 * gdb-events.sh (XMALLOC): Delete macro.
9265 * gdb-events.c, gdb-events.h: Regenerate.
9266 * gdbarch.sh (XMALLOC): Delete macro.
9267 * gdbarch.c: Regenerate.
9268 * serial.c (XMALLOC): Delete macro.
9269 * ui-file.c (XMALLOC): Ditto.
9270 * ser-unix.h (XMALLOC): Ditto.
9271 * sh-tdep.c (XMALLOC): Ditto.
9272 * ui-out.c (XMALLOC): Ditto.
9273 * utils.c (XMALLOC): Ditto.
9274 * i386-tdep.c (XMALLOC): Ditto.
9275 * gdb-events.c (XMALLOC): Ditto.
9276 * d10v-tdep.c (XMALLOC): Ditto.
9277 * cli-out.c (XMALLOC): Ditto.
9278
9279 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
9280 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
9281 * ui-file.c, ui-out.c: Ditto.
9282
9283 2002-03-18 Andrew Cagney <ac131313@redhat.com>
9284
9285 * command.h (struct cmd_list_element): Add field context.
9286 (set_cmd_context, get_cmd_context): Declare.
9287 * cli/cli-decode.h: Ditto.
9288 * cli/cli-decode.c (get_cmd_context): New function.
9289 (set_cmd_context): New function.
9290 (add_cmd): Initialize context.
9291 Part of fixing PR gdb/145 and PR gdb/146.
9292
9293 2002-03-17 Andrew Cagney <ac131313@redhat.com>
9294
9295 * cli/cli-decode.c (cmd_type): New function.
9296 * command.h (cmd_type): Declare.
9297 * infrun.c (set_schedlock_func): Call function cmd_type.
9298 * kod.c (kod_set_os): Call cmd_type.
9299 * cris-tdep.c (cris_version_update): Use function cmd_type.
9300 (cris_mode_update, cris_abi_update): Ditto.
9301
9302 * command.h: (execute_cmd_post_hook): Declare.
9303 (execute_cmd_pre_hook): Declare.
9304 * cli/cli-script.c (clear_hook_in_cleanup): New function.
9305 (execute_cmd_post_hook, execute_cmd_pre_hook): New
9306 functions. Execute pre/post hook while ensuring that afterwords
9307 hook_in is cleared.
9308 * top.c (execute_command): Use execute_cmd_post_hook, and
9309 execute_cmd_pre_hook to execute pre/post commands.
9310 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
9311 hook_stop_stub.
9312 (hook_stop_stub): Call execute_cmd_pre_hook.
9313
9314 2002-03-17 Andrew Cagney <ac131313@redhat.com>
9315
9316 * kod.c (kod_set_os): Revert previous change. Is called by ``info
9317 set'' and this leads to a core dump. Move xstrdup of
9318 operating_system to after check that it is not NULL.
9319
9320 2002-03-17 Andrew Cagney <ac131313@redhat.com>
9321
9322 * kod.c (kod_set_os): Remove unnecessary check that
9323 ``command->type'' is set_cmd.
9324
9325 * valprint.c (set_input_radix): Use input_radix.
9326 (set_output_radix): Use output_radix.
9327 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
9328 isn't reverted.
9329
9330 2002-03-16 Andrew Cagney <ac131313@redhat.com>
9331
9332 * value.h (struct value): Delete field ``substring_addr''. Change
9333 aligner fields to force_doublest_align, force_longest_align,
9334 force_core_addr_align and force_pointer_aligh.
9335
9336 * value.h (struct value): Fix typo in above change.
9337
9338 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9339
9340 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
9341 to fix internal_error from ``maintenance print architecture''.
9342
9343 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9344
9345 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
9346 for gcc versions after gcc-2.8.1.
9347
9348 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9349
9350 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
9351 for method resolution. Restore adjustment of ``this'' pointer after
9352 calling value_struct_elt, which was accidentally removed during the
9353 HP merge.
9354
9355 2002-03-15 Andrew Cagney <ac131313@redhat.com>
9356
9357 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
9358 value_of_register.
9359 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
9360 get_saved_register.
9361 * value.h (value_of_register): Update.
9362
9363 2002-03-14 Richard Henderson <rth@redhat.com>
9364
9365 * configure.in: Detect declaration for canonicalize_file_name.
9366 * utils.c (canonicalize_file_name): Declare, if needed.
9367 (gdb_realpath): Prefer realpath if available and usable.
9368 * config.in, configure: Rebuild.
9369
9370 2002-03-14 Richard Henderson <rth@redhat.com>
9371
9372 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
9373 a constant array bound.
9374
9375 * MAINTAINERS: Add myself to write-after-approval.
9376
9377 2002-03-14 Michael Snyder <msnyder@redhat.com>
9378
9379 * symfile.c (syms_from_objfile): Return immediately if no syms.
9380 (symbol_file_add): Return immediately if no syms.
9381 (find_sym_fns): Return immediately if no syms.
9382
9383 2002-03-13 Michal Ludvig <mludvig@suse.cz>
9384
9385 * gdbserver/remote-util.c (remote_open): Print remote-side's
9386 IP address when remote debugging over the network.
9387
9388 2002-03-12 David O'Brien <obrien@FreeBSD.org>
9389
9390 * config/sparc/fbsd.mh: Fix copyright.
9391 * config/sparc/fbsd.mt: Likewise.
9392
9393 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
9394
9395 * MAINTAINERS: Fix typo in name of gdb warnings option.
9396 (x86-64): Fix formating so that this can be parsed by awk.
9397
9398 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
9399
9400 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
9401 * defs.h: Include "gdb/signals.h".
9402 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
9403
9404 2002-03-10 Michal Ludvig <mludvig@suse.cz>
9405
9406 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
9407 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
9408 from x86-64-tdep.h
9409
9410 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
9411 Don Howard <dhoward@redhat.com>
9412
9413 * mips-tdep.c (ST0_FR): Define.
9414 (mips2_fp_compat): New function, temporarily disabled.
9415 (mips_read_fp_register_single): New function.
9416 (mips_read_fp_register_double): New function.
9417 (mips_print_register): Use them.
9418 (do_fp_register_row): Likewise.
9419
9420 2002-03-09 Andrew Cagney <ac131313@redhat.com>
9421
9422 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
9423 approval''.
9424
9425 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9426
9427 * stabsread.c (read_member_functions): Fix is_stub test for
9428 static member functions, improve comment.
9429
9430 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
9431
9432 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
9433 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
9434 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
9435 commands that set boolean values.
9436 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
9437 (arm_rdi_resume): Always initialize PC.
9438 (arm_rdi_open): Don't use rslt as a boolean.
9439 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
9440 (arm_rdi_fetch_registers, arm_rdi_store_registers)
9441 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
9442 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
9443
9444 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
9445
9446 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
9447 * configure: Rebuilt.
9448
9449 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9450
9451 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
9452 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
9453
9454 2002-03-06 Andrew Cagney <ac131313@redhat.com>
9455
9456 * cli/cli-decode.c (set_cmd_completer): New function.
9457 * command.h (set_cmd_completer): Declare.
9458 * cli/cli-decode.h (set_cmd_completer): Ditto.
9459
9460 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
9461 * cli/cli-cmds.c (init_cli_cmds): Ditto.
9462 * win32-nat.c (_initialize_inftarg): Ditto.
9463 * remote-rdi.c (_initialize_remote_rdi): Ditto.
9464 * proc-api.c (_initialize_proc_api): Ditto.
9465 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
9466 * source.c (_initialize_source): Ditto.
9467 * exec.c (_initialize_exec): Ditto.
9468 * solib.c (_initialize_solib): Ditto.
9469 * top.c (init_main): Ditto.
9470 * tracepoint.c (_initialize_tracepoint): Ditto.
9471 * symfile.c (_initialize_symfile): Ditto.
9472 * printcmd.c (_initialize_printcmd): Ditto.
9473 * infcmd.c (_initialize_infcmd): Ditto.
9474 * corefile.c (_initialize_core): Ditto.
9475
9476 2002-03-05 Andrew Cagney <ac131313@redhat.com>
9477
9478 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
9479
9480 2002-03-05 Andrew Cagney <ac131313@redhat.com>
9481
9482 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
9483
9484 2002-03-05 Andrew Cagney <ac131313@redhat.com>
9485
9486 * NEWS: Update headings, 5.2 has branched.
9487
9488 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
9489
9490 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
9491 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
9492 (register_addr, REGISTER_RAW_SIZE): Likewise.
9493 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
9494 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
9495
9496 2002-03-03 Michal Ludvig <mludvig@suse.cz>
9497
9498 * MAINTAINERS (x86-64): Add myself.
9499 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
9500 changed value_ptr -> struct value *
9501
9502 2002-03-01 David O'Brien <obrien@FreeBSD.org>
9503
9504 * configure.host (sparc64-*-freebsd): Add.
9505 * configure.tgt: Likewise.
9506 * config/sparc/fbsd.mh: New file.
9507 * config/sparc/fbsd.mt: Likewise.
9508 * config/sparc/nm-fbsd.h: Likewise.
9509 * config/sparc/tm-fbsd.h: Likewise.
9510
9511 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
9512
9513 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
9514 regformats/reg-s390x.dat.
9515
9516 2002-03-01 Andrew Cagney <ac131313@redhat.com>
9517
9518 * utils.c: Add FIXME explaining true/false problem.
9519
9520 2002-02-28 Andrew Cagney <ac131313@redhat.com>
9521
9522 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
9523
9524 2002-02-28 Michael Chastain <mec@shout.net>
9525
9526 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
9527
9528 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
9529
9530 * gdbserver/linux-s390-low.c: New file.
9531 * regformats/reg-s390.dat: New file.
9532 * regformats/reg-s390x.dat: New file.
9533 * gdbserver/configure.srv: Add S/390.
9534 * gdbserver/Makefile.in: Add S/390.
9535 * configure.tgt: Enable gdbserver for S/390.
9536
9537 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
9538
9539 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
9540 first line of the doc string for "info dos", except at the end of
9541 the sentence, since the short help stops at the first period.
9542
9543 2002-02-28 Jason Merrill <jason@redhat.com>
9544
9545 * dwarf2read.c (dwarf_cfi_name): Add new codes.
9546
9547 2002-02-27 Fred Fish <fnf@redhat.com>
9548
9549 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
9550 comment (dumy -> dummy).
9551
9552 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9553
9554 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
9555
9556 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
9557
9558 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
9559
9560 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
9561
9562 * gdbserver/acconfig.h: New file.
9563 * gdbserver/i387-fp.c: New file.
9564 * gdbserver/i387-fp.h: New file.
9565 * gdbserver/linux-x86-64.c: New file.
9566 * regformats/reg-x86-64.dat: New file.
9567 * configure.tgt: Add x86_64-*-linux* gdbserver support.
9568 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
9569 * gdbserver/configure.in: Add support for regsets.
9570 * gdbserver/config.in: Regenerate.
9571 * gdbserver/configure: Regenerate.
9572 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
9573 * gdbserver/linux-low.h: New file.
9574 * gdbserver/linux-low.c: Include "linux-low.h". Add support
9575 for regsets.
9576 * gdbserver/linux-arm-low.c: Include "linux-low.h".
9577 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
9578 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
9579 * gdbserver/linux-mips-low.c: Include "linux-low.h".
9580 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
9581 * gdbserver/linux-sh-low.c: Include "linux-low.h".
9582 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
9583 "i387-fp.h". Add PTRACE_GETREGS and friends.
9584 * gdbserver/regcache.c (supply_register): New function.
9585 (supply_register_by_name): New function.
9586 (collect_register): New function.
9587 (collect_register_by_name): New function.
9588
9589 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
9590
9591 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
9592 (config.status): Add configure.srv dependency.
9593 (server_h): Add config.h dependency.
9594
9595 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
9596
9597 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
9598 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
9599 * gdbserver/configure.srv: Change i386-*-linux* to use
9600 reg-i386-linux.o.
9601
9602 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9603
9604 * x86-64-tdep.c: Re-indent. Update copyright date.
9605
9606 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9607
9608 From Michal Ludvig <mludvig@suse.cz>:
9609 * x86-64-tdep.c (value.h): Delete.
9610 (gdb_assert.h): Include.
9611 (x86_64_register_convert_to_virtual,
9612 x86_64_register_convert_to_raw ): Add check which lets only
9613 floating-point values to be converted.
9614 (value_push): Delete.
9615 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
9616 (i386_gdbarch_init): Number of register_bytes fixed.
9617
9618 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9619
9620 * MAINTAINERS: Add x86-64 target.
9621
9622 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9623
9624 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
9625 * osfsolib.c (solib_map_sections): Ditto.
9626 * irix5-nat.c (solib_map_sections): Ditto.
9627 * corelow.c (gdb_check_format): Ditto.
9628 * symfile.c (symfile_bfd_open): Ditto.
9629 * solib.c (solib_map_sections): Ditto.
9630 Fix PR gdb/354.
9631
9632 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9633
9634 * remote.c (_initialize_remote): By default, disable ``e'' and
9635 ``E'' step out-of-range packets.
9636
9637 2002-02-26 Andreas Schwab <schwab@suse.de>
9638
9639 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
9640 m68k_linux_frame_saved_pc.
9641 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
9642 in_sigtramp.
9643 (SIGCONTEXT_PC_OFFSET): Remove.
9644 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
9645 m68k_linux_sigtramp_saved_pc): New functions.
9646 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
9647 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
9648 (UCONTEXT_PC_OFFSET): Define.
9649 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
9650 non-RT and RT signal trampolines.
9651
9652 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
9653
9654 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
9655 (TARGET_NBPG, STACK_END_ADDR): Delete
9656 (VARIABLES_INSIDE_BLOCK): Delete.
9657
9658 2002-02-25 Andrew Cagney <ac131313@redhat.com>
9659
9660 * utils.c (perror_with_name): Make string parameter constant.
9661 (print_sys_errmsg): Ditto.
9662 (query): Ditto.
9663 * defs.h (perror_with_name): Update.
9664 (print_sys_errmsg): Update.
9665 (query): Update.
9666
9667 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
9668
9669 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
9670 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
9671
9672 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9673
9674 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
9675 if it already matches the current architecture from the exec file.
9676 Include arch-utils.h for gdbarch_info_init prototype.
9677 * Makefile.in (rs6000-nat.o): Update dependencies.
9678
9679 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
9680
9681 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
9682 list of exported variables.
9683
9684 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
9685
9686 * gdbserver/configure.srv: New file.
9687 * gdbserver/configure.in: Use configure.srv instead
9688 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
9689 from it.
9690 * gdbserver/configure: Regenerated.
9691 * gdbserver/terminal.h: New file.
9692 * gdbserver/Makefile.in: Update for configure changes. Remove
9693 more unneeded include paths.
9694
9695 2002-02-24 Andrew Cagney <ac131313@redhat.com>
9696
9697 From wiz at danbala:
9698 * config/sparc/tm-sp64.h: Fix grammar and typos.
9699 Fix PR gdb/287.
9700
9701 2002-02-24 Andrew Cagney <ac131313@redhat.com>
9702
9703 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
9704 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
9705 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
9706 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
9707 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
9708 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
9709 * s390-tdep.c: Ditto.
9710 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
9711 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
9712 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
9713 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
9714 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
9715 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
9716 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
9717 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
9718 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
9719 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
9720 Fix PR gdb/378.
9721
9722 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9723
9724 * lin-thread.c: Delete file.
9725 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
9726 to gdb_proc_service.h.
9727 * configure: Re-generate.
9728
9729 * ocd.c (ocd_open): Do not try to open the "ocd" device.
9730 * serial.c (serial_open): Delete check for "ocd".
9731 Fix PR gdb/349.
9732
9733 * Makefile.in (linux-thread.o): Delete target.
9734 * linux-thread.c: Delete file.
9735
9736 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
9737 renamed SH files to be consistent.
9738
9739 * symtab.c (sort_search_symbols): Use xfree.
9740
9741 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
9742
9743 * arm-linux-tdep.c (arm_linux_init_abi): Register
9744 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
9745 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
9746 definition with undef, since we don't want the sysvr4 definition.
9747 (SKIP_TRAMPOLINE_CODE): Likewise.
9748
9749 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9750
9751 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
9752
9753 * configure.in: (AC_CHECK_FUNCS) Added test for
9754 canonicalize_file_name Regenerated.
9755 * config.in, configure: Regenerated.
9756 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
9757 defined use canonicalize_file_name.
9758
9759 2002-02-23 Michael Chastain <mec@shout.net>
9760
9761 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
9762
9763 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9764
9765 * README: Remove references to cygnus.com.
9766 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
9767 dot com'' form. Remove references to cygnus.com and sourceware.
9768
9769 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9770
9771 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
9772 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
9773 1003.1-2001 no longer allows "head -1".
9774 * gdb/Makefile.in (version.c): Likewise.
9775 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
9776 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
9777 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
9778
9779 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9780
9781 * cli/cli-decode.c (cmd_cfunc_eq): New function.
9782 * command.h (cmd_cfunc_eq): Declare.
9783 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
9784
9785 * cli/cli-cmds.h (is_complete_command): Change parameter to a
9786 ``struct cmd_list_element *''.
9787 * cli/cli-cmds.c (is_complete_command): Update. Use
9788 cmd_cfunc_eq.
9789 * top.c (execute_command): Pass the command to
9790 is_complete_command.
9791 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
9792
9793 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9794
9795 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
9796 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
9797 architecture defines.
9798 * s390-tdep.c (s390_gdbarch_init): Likewise.
9799
9800 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
9801
9802 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
9803 (arm_linux_push_arguments): Likewise.
9804 (arm_linux_init_abi): Register them. Also register linux-specific
9805 call_dummy_words.
9806 (find_minsym_and_objfile): Use strcmp, not STREQ.
9807 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
9808 (arm_linux_call_dummy_words): Delete declaration.
9809 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
9810 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
9811 declarations.
9812 (LOWEST_PC): Delete.
9813
9814 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9815
9816 * maint.c (print_section_info): Do not prepend `0x' to filepos
9817 output, it will be handled by local_hex_string_custom.
9818
9819 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
9820
9821 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
9822 (store_newfpe_double, store_newfpe_extended, store_fpregister)
9823 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
9824
9825 2002-02-22 Jim Blandy <jimb@redhat.com>
9826
9827 Indicate that the bcache functions don't change the strings
9828 they're passed.
9829 * bcache.h (bcache, hash): Add `const' keywords to declarations.
9830 * bcache.c (bcache, hash): Add `const' keywords to definitions.
9831
9832 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
9833
9834 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
9835
9836 2002-02-21 Christopher Faylor <cgf@redhat.com>
9837
9838 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
9839 find the complete path to a loaded DLL.
9840
9841 2002-02-21 Fred Fish <fnf@redhat.com>
9842
9843 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
9844 that marks the end of the range of a function, enter a line number
9845 entry that has a line number of zero and a PC offset that matches
9846 the end of the function. This starts a range of PC's for which no
9847 line number information is known.
9848 * symtab.c (find_pc_sect_line): If our best fit is in a range of
9849 PC's for which no line number info is found (line number is zero)
9850 then we didn't find any valid line information.
9851 * symtab.h: Document use of zero line number entry.
9852
9853 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
9854
9855 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
9856 (have_ptrace_getvrregs): Define for run time checks.
9857 (gdb_vrregset_t): New type for Altivec register handling.
9858 (fetch_register, store_register): Fetch/store altivec register
9859 when needed.
9860 (fetch_altivec_register, store_altivec_register): New functions.
9861 (supply_vrregset, fill_vrregset): New functions.
9862 (fetch_altivec_registers, store_altivec_registers): New functions.
9863 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
9864 registers as well.
9865
9866 2002-02-21 Jiri Smid <smid@suse.cz>
9867
9868 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
9869
9870 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
9871
9872 * Makefile.in (armnbsd-nat.o): Update dependencies.
9873 * armnbsd-nat.c (supply_gregset): New function. Common code to
9874 supply the integer register set.
9875 (supply_fparegset): New function. Similar for FPA registers.
9876 (fetch_regs, fetch_fp_regs): Use them.
9877 (fetch_core_registers): Likewise.
9878 (fetch_elfcore_registers): New function.
9879 (arm_netbsd_elfcore_fns): New core-file type specification.
9880 (_initialize_arm_netbsd_nat): Register it.
9881
9882 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
9883
9884 * armnbsd-nat.c: Include gdbcore.h.
9885 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
9886 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
9887 'void' to declaration, to shut up ARI.
9888 (fetch_core_registers): Make static. Rewrite using supply_register.
9889 (arm_netbsd_core_fns): New core-file type specification.
9890 (_initialize_arm_netbsd_nat): New function.
9891
9892 2002-02-21 Christopher Faylor <cgf@redhat.com>
9893
9894 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
9895 value.
9896
9897 2002-02-20 Christopher Faylor <cgf@redhat.com>
9898
9899 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
9900 fails.
9901
9902 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9903
9904 * jv-exp.y (parse_number): Change type of implicit longs
9905 to builtin_type_uint64.
9906
9907 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9908
9909 * gdbserver/linux-low.c (mywait): Change argument to waitpid
9910 to be an integer instead of a `union wait'.
9911
9912 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9913
9914 * mips-linux-nat.c: Call the operating system GNU/Linux.
9915 * mips-linux-tdep.c: Likewise.
9916 * mips-tdep.c: Likewise.
9917
9918 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9919
9920 Fix PR gdb/265.
9921 * jv-exp.y (parse_number): Handle 64-bit integers.
9922
9923 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9924
9925 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
9926 AC_STDC_HEADERS to AC_HEADER_STDC.
9927 * gdbserver/configure: Regenerated.
9928
9929 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
9930
9931 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
9932 is defined.
9933 * sparc-tdep.c (get_longjmp_target): Likewise.
9934
9935 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
9936
9937 * News: Add news about ARM and Multi-arch. Mention the new target
9938 arm*-*-netbsd*.
9939
9940 2002-02-19 Jim Blandy <jimb@redhat.com>
9941
9942 * stabsread.c (error_type_complaint): Improve error message.
9943
9944 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
9945
9946 * gdbserver/README: Update documentation.
9947 * gdbserver/configure.in: Update configury to match documentation.
9948 * gdbserver/Makefile.in: Likewise.
9949 * gdbserver/configure: Regenerated.
9950 * gdbserver/aclocal.m4: New file, generated by aclocal.
9951 * gdbserver/config.in: New file, generated by autoheader.
9952
9953 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9954
9955 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
9956 armnbsd-nat.c.
9957
9958 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9959
9960 * arm-tdep.h (enum arm_float_model): New enum.
9961 (struct gdbarch_tdep): Add fp_model.
9962 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
9963 up floating-point conversions until we know the floating-point model
9964 in use by the inferior. Don't complain about being unable to
9965 determine the ABI of the inferior when we don't have one.
9966 (arm_extract_return_value): Support different floating-point models.
9967 (arm_store_return_value): Likewise.
9968 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
9969 ARM_FLOAT_SOFT.
9970 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
9971
9972 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9973
9974 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
9975 of ``current_gdbarch''.
9976
9977 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9978
9979 * armnbsd-nat.c : ANSIfy all function declarations.
9980 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
9981 (fetch_inferior_registers): Re-implement in terms of above.
9982 (store_register, store_regs, store_fp_register, store_fp_regs): New.
9983 (store_inferior_registers): Re-implement in terms of above.
9984
9985 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9986
9987 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
9988 kernel.
9989 * arm-linux-tdep.c: Likewise.
9990 * config/arm/tm-linux.h: Likewise.
9991
9992 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9993
9994 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
9995 * config/arm/nbsd.mt (TM_FILE): Delete.
9996 * config/arm/tm-nbsd.h: Delete.
9997
9998 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9999
10000 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
10001 Initialize CALL_DUMMY_LENGTH.
10002
10003 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
10004
10005 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
10006 function.
10007 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
10008 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
10009 defines one thing and that is incorrect for this port.
10010 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
10011
10012 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
10013
10014 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
10015
10016 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
10017
10018 * win32-nat.c (display_selector): New function. Displays information
10019 about the information returned by GetThreadSelectorEntry API function.
10020 (display_selectors): New function. Displays the infomation of
10021 the selector given as argument, or of CS, DS ans FS selectors
10022 if no argument is given.
10023 ( _initialize_inftarg): Add "w32" as info prefix command.
10024 Add "info w32 selector" as command calling display_selectors.
10025
10026 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
10027
10028 * i386-tdep.c (get_longjmp_target): Fix compilation failure
10029 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
10030 if not defined.
10031
10032 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
10033
10034 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
10035
10036 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
10037
10038 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
10039 (arm_fix_call_dummy): Call it.
10040 (arm_call_dummy_breakpoint_offset): Delete.
10041 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
10042 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
10043
10044 2002-02-18 Andrew Cagney <ac131313@redhat.com>
10045
10046 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
10047 Default to func_frame_chain_valid.
10048 * gdbarch.h, gdbarch.c: Re-generate.
10049 * frame.h (FRAME_CHAIN_VALID): Delete definition.
10050
10051 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
10052
10053 * ppc-linux-nat.c: Update copyright.
10054 (fetch_register, store_register): Add tid parameter, don't compute
10055 tid here.
10056 (fetch_ppc_registers, store_ppc_registers): Add tid
10057 parameter. Pass it along to callees.
10058 (fetch_inferior_registers, store_inferior_registers): Compute tid
10059 here, and pass it to calleed functions.
10060 (fill_gregset, supply_fpregset): Clean up formatting.
10061
10062 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
10063
10064 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
10065 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
10066
10067 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
10068
10069 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
10070 * gdbarch.c gdbarch.h: Regenerate.
10071 * breakpoint.c (create_longjmp_breakpoint): Always compile this
10072 function.
10073 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
10074 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
10075 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
10076
10077 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
10078 * arm-tdep.c (arm_get_longjmp_target): New function.
10079 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
10080 this to a positive value register arm_get_longjmp_target as the
10081 longjmp handler.
10082 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
10083 (arm_linux_init_abi): Set up longjmp description in tdep.
10084 * armnbsd-nat.c (get_longjmp_target): Delete.
10085 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
10086 description in tdep.
10087 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
10088 (get_longjmp_target): Delete declaration.
10089 (GET_LONGJMP_TARGET): Delete.
10090 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
10091 (GET_LONGJMP_TARGET): Delete.
10092
10093 2002-02-17 Kevin Buettner <kevinb@redhat.com>
10094
10095 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
10096 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
10097 of ``current_gdbarch''.
10098
10099 2002-02-17 Tom Tromey <tromey@redhat.com>
10100
10101 * cli/cli-cmds.c (compare_strings): New function.
10102 (complete_command): Only print each unique item once.
10103 * completer.h (complete_line): Declare.
10104 * completer.c (complete_line): New function.
10105 (line_completion_function): Use it.
10106
10107 2002-02-16 Andrew Cagney <ac131313@redhat.com>
10108
10109 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
10110 * gdbarch.h, gdbarch.c: Re-generate.
10111
10112 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
10113
10114 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
10115
10116 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
10117
10118 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
10119 * valops.c (value_arg_coerce): Don't take the address of a reference
10120 to convert an argument to a reference.
10121
10122 2002-02-15 Christopher Faylor <cgf@redhat.com>
10123
10124 * win32-nat.c (get_image_name): New function.
10125 (handle_load_dll): Use get_image_name function.
10126 (get_child_debug_event): Avoid registering debug events until possibly
10127 execed process is started.
10128 (child_create_inferior): Allow invocation via shell so that command
10129 line redirection, etc. works ok.
10130 (_initialize_inftarg): Add new command: "set shell" to control whether
10131 a shell is used to start a process.
10132
10133 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
10134
10135 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
10136 instead of find_register_by_number.
10137 (cannot_store_register): Likewise.
10138
10139 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
10140
10141 * dwarf2read.c: Replace fprintf (stderr, ...) by
10142 fprintf_unfiltered (gdb_stderr, ...).
10143
10144 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
10145
10146 * gdbserver/gdbserver.1: Document --attach.
10147
10148 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
10149
10150 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
10151 descriptions.
10152 * arm-tdep.c (arm_default_arm_le_breakpoint)
10153 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
10154 (arm_default_thumb_be_breakpoint): New. Initialize them from
10155 traditional breakpoint defines.
10156 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
10157 (arm_gdbarch_init): Initialize new breakpoint variables.
10158 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
10159 (arm_linux_init_abi): Initialize linux-specific breakpoint.
10160 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
10161 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
10162 code out to ...
10163 (arm_netbsd_init_abi_common): ... here; new function.
10164 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
10165 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
10166 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
10167 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
10168
10169 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
10170
10171 * arm-tdep.h (enum arm_abi): New enum.
10172 (struct gdbarch_tdep): New structure.
10173 (LOWEST_PC): Provide a default.
10174 (arm_gdbarch_register_os_abi): Declare new function.
10175 * arm-tdep.c (arm_abi_names): New array.
10176 (process_note_abi_tag_sections): New function.
10177 (get_elfosabi): New function.
10178 (arm_gdbarch_register_os_abi): New function.
10179 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
10180 support for that ABI has been built in, then call the appropriate
10181 configuration routine. Use gdbarch_num_regs() to get the number
10182 of registers.
10183 (arm_dump_tdep): New function.
10184 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
10185 place-holder functions.
10186 (_initialize_arm_tdep): Register them.
10187 * config/arm/tm-arm.h (LOWEST_PC): Delete.
10188
10189 * armnbsd-tdep.c: New file.
10190 * Makefile.in (armnbsd-tdep.o): Add dependencies.
10191 * config/arm/nbsd.mt (TDEPFILES): Add it.
10192 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
10193
10194 * armnbsd-nat.c: Include regcache.h.
10195 * Makefile.in (armnbsd-nat.o): Update dependency list.
10196
10197 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
10198
10199 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
10200
10201 * gdbserver/Makefile.in: Fix typos in target rules.
10202
10203 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
10204
10205 Fix part of PR gdb/267.
10206 * linespec.c (find_methods): Handle constructors specially for now.
10207
10208 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
10209
10210 * arm-tdep.c (arm_push_arguments): Eliminate special float type
10211 handling.
10212 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
10213 standard_coerce_float_to_double().
10214
10215 2002-02-14 Christopher Faylor <cgf@redhat.com>
10216
10217 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
10218 GDBINIT_FILENAME.
10219
10220 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
10221
10222 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
10223 find_variant_by_name, because it confuses the multiarch
10224 framework. Return NULL if there isn't an architecture with the
10225 user supplied name, instead of forcing a different one without
10226 recording the change with the multiarch machinery.
10227 (find_variant_by_name): Delete.
10228
10229 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10230
10231 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
10232 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
10233
10234 2002-02-13 Martin M. Hunt <hunt@redhat.com>
10235
10236 * stack.c (print_frame_info_base): When calling
10237 print_frame_info_listing_hook, set current_source_symtab.
10238
10239 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
10240
10241 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
10242 and remove unused $(INCLUDE_DIR).
10243 Add regcache.c to OBS.
10244 Add generated register protocol files to clean target.
10245 Update dependencies for new objects, obsolete old target code.
10246
10247 * gdbserver/linux-low.c: Remove all platform-specific code to
10248 new files. Remove various dead code. Update to use regcache
10249 functionality.
10250 * gdbserver/remote-utils.c (fromhex): Add return statement
10251 to quiet warning.
10252 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
10253 constant.
10254 (input_interrupt): Add integer parameter to match prototype
10255 of a signal handler.
10256 (outreg): Use register_data ().
10257 (prepare_resume_reply): Use gdbserver_expedite_regs.
10258 * gdbserver/server.c (main): Dynamically allocate own_buf because
10259 PBUFSIZ is no longer constant. Use registers_to_string () and
10260 registers_from_string ().
10261 * gdbserver/server.h: No longer include "defs.h". Add prototypes
10262 for error (), fatal (), and warning (). Update definition of
10263 PBUFSIZ to use regcache functionality. Add include guard.
10264 * gdbserver/utils.c (fatal): Add missing ``const''.
10265 (warning): New function.
10266
10267 * regformats/regdat.sh: Include "regcache.h" in generated files.
10268 Provide init_registers () function.
10269 * regformats/regdef.h: Add prototype for set_register_cache ().
10270 Add include guard.
10271
10272 * gdbserver/linux-arm-low.c: New file.
10273 * gdbserver/linux-i386-low.c: New file.
10274 * gdbserver/linux-ia64-low.c: New file.
10275 * gdbserver/linux-m68k-low.c: New file.
10276 * gdbserver/linux-mips-low.c: New file.
10277 * gdbserver/linux-ppc-low.c: New file.
10278 * gdbserver/linux-sh-low.c: New file.
10279
10280 * gdbserver/regcache.c: New file.
10281 * gdbserver/regcache.h: New file.
10282
10283 * gdbserver/low-linux.c: Removed obsolete file.
10284
10285 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
10286
10287 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
10288 * config/i386/linux.mt: Likewise.
10289 * config/ia64/linux.mt: Likewise.
10290 * config/m68k/linux.mh: Likewise.
10291 * config/powerpc/linux.mh: Likewise.
10292 * config/mips/linux.mt: Likewise.
10293
10294 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
10295
10296 * config/i386/i386lynx.mh: Mark gdbserver variables
10297 as (currently) obsolete for this target.
10298 * config/i386/nbsd.mt: Likewise.
10299 * config/i386/nbsdelf.mt: Likewise.
10300 * config/m32r/m32r.mt: Likewise.
10301 * config/m68k/m68klynx.mh: Likewise.
10302 * config/m68k/nbsd.mt: Likewise.
10303 * config/m68k/sun3os4.mh: Likewise.
10304 * config/mips/vr5000.mt: Likewise.
10305 * config/ns32k/nbsd.mt: Likewise.
10306 * config/pa/hppabsd.mh: Likewise.
10307 * config/pa/hppaosf.mh: Likewise.
10308 * config/powerpc/nbsd.mt: Likewise.
10309 * config/rs6000/rs6000lynx.mh: Likewise.
10310 * config/s390/s390.mt: Likewise.
10311 * config/s390/s390x.mt: Likewise.
10312 * config/sparc/sparclynx.mh: Likewise.
10313 * config/sparc/sun4os4.mh: Likewise.
10314 * config/i386/x86-64linux.mt: Likewise.
10315 * config/sparc/linux.mh: Likewise.
10316
10317 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
10318
10319 * configure.tgt: Configure gdbserver only for known working
10320 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
10321 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
10322 SUBDIRS if it is configured. Update comment for ${nativefile}.
10323 * configure: Regenerated.
10324
10325 2002-02-13 Michael Snyder <msnyder@redhat.com>
10326
10327 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
10328
10329 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
10330 (default_gcore_mach): Just return 0, work around a problem in bfd.
10331 (default_gcore_target): OK to return NULL if exec_bfd is null.
10332 (make_mem_sec): Use a cast, avoid a warning.
10333
10334 * procfs.c (find_memory_regions_callback): Use a cast instead of
10335 calling host_pointer_to_address (which complains if
10336 sizeof (host pointer) != sizeof (target pointer)).
10337 (procfs_make_note_section): Avoid overflow in psargs string.
10338
10339 * procfs.c (procfs_make_note_section): Make the default
10340 implementation return an error.
10341
10342 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
10343
10344 * procfs.c (procfs_make_note_section): Provide a default definition
10345 (for alpha-dec-osf4.0f). Fix typos.
10346
10347 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
10348
10349 * linux-proc.c: Add include of regcache.h.
10350 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
10351
10352 2002-02-13 Andrew Cagney <ac131313@redhat.com>
10353
10354 From 2002-01-18 Greg McGary <greg@mcgary.org>:
10355 * memattr.c (create_mem_region): Disallow useless empty region.
10356 Regions are half-open intervals, so allow [A..B) [B..C) as
10357 non-overlapping.
10358
10359 2002-02-13 Michael Chastain <mec@shout.net>
10360
10361 * defs.h: Kill CONST_PTR.
10362 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
10363 * c-lang.c (c_builtin_types): Likewise.
10364 * ch-lang.c (ch_builtin_types): Likewise.
10365 * f-lang.c (f_builtin_types): Likewise.
10366 * language.c (unknown_builtin_types): Likewise.
10367 * m2-lang.c (m2_builtin_types): Likewise.
10368 * p-lang.c (pascal_builtin_types): Likewise.
10369 * scm-lang.c (c_builtin_types): Likewise.
10370
10371 2002-02-13 Keith Seitz <keiths@redhat.com>
10372
10373 * arm-tdep.h (arm_get_next_pc): Add declaration.
10374
10375 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
10376
10377 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
10378 with other related struct-returning functions.
10379 (arm_extract_struct_value_address): New function.
10380 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
10381 initialize float_format, double_format and long_double_format as
10382 appropriate to the endianness of the target.
10383 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
10384 (arm_use_struct_convention): Delete declaration.
10385 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
10386
10387 2002-02-13 Keith Seitz <keiths@redhat.com>
10388
10389 * defs.h (core_addr_to_string_nz): New function.
10390
10391 2002-02-13 Mark Kettenis <kettenis@gnu.org>
10392
10393 Apply missing bits of 2002-01-15 patch.
10394 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
10395 (fill_fpregset): Use i387_fill_fsave.
10396
10397 2002-02-12 Keith Seitz <keiths@redhat.com>
10398
10399 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
10400 (core_addr_to_string_nz): New function.
10401
10402 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
10403
10404 * arm-linux-nat.c: Really include arm-tdep.h.
10405 * config/arm/tm-linux.h (struct type, struct value): Declare.
10406
10407 2002-02-11 Michael Snyder <msnyder@redhat.com>
10408
10409 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
10410 (gcore section): Ifdef for Solaris and Unixware only.
10411 (procfs_do_thread_registers): Unixware needs one lwpstatus
10412 per thread (not one prstatus or pstatus).
10413 (procfs_make_note_section): Iterate only over kernel threads (lwps),
10414 not over all gdb threads. For unixware, call elfcore_write_pstatus
10415 once before iterating over threads.
10416
10417 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
10418
10419 * arm-tdep.h: New file.
10420 * arm-tdep.c: Include arm-tdep.h.
10421 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
10422 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
10423 (arm_print_float_info, arm_register_type, convert_to_extended)
10424 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
10425 (arm_extract_return_value, arm_register_name): Make static.
10426 (arm_software_single_step): Similarly. Fix types in declaration.
10427 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
10428 (arm_store_return_value, arm_store_struct_return): New functions.
10429 (arm_gdbarch_init): Register the above functions. Also register
10430 call_dummy_start_offset, sizeof_call_dummy_words,
10431 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
10432 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
10433 max_register_virtual_size, register_size. Set up
10434 prologue_cache.saved_regs here, rather than ...
10435 (_initialize_arm_tdep): ... here.
10436 * config/arm/tm-arm.h (struct type, struct value): Delete forward
10437 declarations.
10438 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
10439 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
10440 (arm_print_float_info, arm_register_type, convert_to_extended)
10441 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
10442 (arm_extract_return_value, arm_register_name): Delete declarations.
10443 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
10444 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
10445 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
10446 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
10447 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
10448 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
10449 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
10450 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
10451 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
10452 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
10453 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
10454 (arm_get_next_pc): No-longer static -- these are needed by the RDI
10455 interface.
10456 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
10457 * remote-rdi.c remote-rdp.c: Likewise.
10458 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
10459 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
10460 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
10461 definition.
10462
10463 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
10464 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
10465 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
10466 from non-ARM_ prefixed definitions.
10467 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
10468 all uses of above.
10469 * remote-rdi.c remote-rdp.c: Likewise.
10470 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
10471
10472 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
10473
10474 * arm-tdep.c (arm_frameless_function_invocation)
10475 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
10476 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
10477 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
10478 (arm_pop_frame, arm_get_next_pc): Make static.
10479 (arm_gdbarch_init): Register above in gdbarch structure.
10480 (arm_read_fp): Renamed from arm_target_read_fp.
10481 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
10482 * config/arm/tm-arm.h (arm_frameless_function_invocation)
10483 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
10484 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
10485 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
10486 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
10487 (arm_pc_is_thumb_dummy): Delete declarations.
10488 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
10489 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
10490 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
10491 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
10492
10493 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
10494
10495 * symtab.c (compare_search_syms): New function.
10496 (sort_search_symbols): New function.
10497 (search_symbols): Sort symbols after searching rather than
10498 before.
10499
10500 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10501
10502 * NEWS: Linux -> GNU/Linux.
10503
10504 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10505
10506 * gdbarch.sh: For for level one methods, disallow a definition
10507 when partially multi-arched. Add comments explaining rationale.
10508 * gdbarch.h: Re-generate.
10509
10510 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10511
10512 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
10513 multi-arch partial.
10514
10515 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10516
10517 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
10518 field. Use diff -u.
10519 * gdbarch.c: Re-generate.
10520
10521 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10522
10523 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
10524 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
10525 partial.
10526
10527 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10528
10529 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
10530 multi-arch partial.
10531 (PUSH_ARGUMENTS): Switch to using predefault.
10532 * gdbarch.c: Regenerate.
10533
10534 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10535
10536 * valops.c (PUSH_ARGUMENTS): Delete definition.
10537 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
10538 partial. Default to default_push_arguments.
10539 * gdbarch.h, gdbarch.c: Regenerate.
10540
10541 2002-02-09 Andrew Cagney <ac131313@redhat.com>
10542
10543 * defs.h (throw_exception): Rename return_to_top_level. Update
10544 comments.
10545 * utils.c (error_stream, internal_verror, quit): Ditto.
10546 * top.c (throw_exception, catcher): Ditto.
10547 * sparclet-rom.c (sparclet_load): Ditto.
10548 * remote.c (interrupt_query, minitelnet): Ditto.
10549 * remote-sds.c (interrupt_query): Ditto.
10550 * remote-mips.c (mips_error, mips_kill): Ditto.
10551 * ocd.c (interrupt_query): Ditto.
10552 * monitor.c (monitor_interrupt_query): Ditto.
10553 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
10554 * target.h: Update comment.
10555
10556 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
10557
10558 2002-02-09 Andrew Cagney <ac131313@redhat.com>
10559
10560 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
10561 default_double_format.
10562 * gdbarch.h, gdbarch.c: Re-generate.
10563 * findvar.c (floatformat_unknown): Delete variable definition.
10564 * doublest.h (floatformat_unknown): Delete variable declaration.
10565
10566 2002-02-09 Jim Blandy <jimb@redhat.com>
10567
10568 * stabsread.c (read_type): Add code to parse Sun's syntax for
10569 prototyped function types.
10570
10571 2002-02-09 Andrew Cagney <ac131313@redhat.com>
10572
10573 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
10574 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
10575
10576 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10577
10578 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
10579 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
10580 now _initialize_xcoffsolib gets called again and overrides the
10581 commands from solib.c in a native configuration.
10582
10583 2002-02-09 Mark Kettenis <kettenis@gnu.org>
10584
10585 * doublest.c (store_typed_floating): Don't try to return a value.
10586 Fixes PR gdb/290.
10587
10588 2002-02-08 Jim Blandy <jimb@redhat.com>
10589
10590 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
10591 is prototyped and has no arguments, print its argument list as
10592 `(void)'.
10593
10594 2002-02-08 Chris Demetriou <cgd@broadcom.com>
10595
10596 * MAINTAINERS (write-after-approval): Add myself.
10597 (paper-trail): I've escaped!
10598
10599 2002-02-08 Christopher Faylor <cgf@redhat.com>
10600
10601 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
10602 changes.
10603 (_initialize_check_for_gdb_ini): Ditto.
10604
10605 2002-02-08 Martin M. Hunt <hunt@redhat.com>
10606
10607 * win32-nat.c (cygwin_pid_to_str): Fix typo.
10608 xaprintf -> xasprintf.
10609
10610 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
10611
10612 * win32-nat.c: Remove use of printf and sprintf functions.
10613
10614 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
10615
10616 * arm-tdep.c (arm_frame_chain_valid): Make static.
10617 (arm_push_arguments): Likewise.
10618 (arm_gdbarch_init): New function.
10619 (_initialize_arm_tdep): Call it.
10620 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
10621 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
10622 (FRAME_CHAIN_VALID): Delete.
10623 (arm_frame_chain_valid): Delete declaration.
10624 (PUSH_ARGUMENTS): Delete.
10625 (arm_push_arguments): Delete declaration.
10626 (CALL_DUMMY_P): Delete.
10627
10628 2002-02-08 Andrew Cagney <ac131313@redhat.com>
10629 Corinna Vinschen <vinschen@redhat.com>
10630
10631 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
10632 on builtin float types.
10633
10634 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
10635
10636 * utils.c: Include <curses.h> before "bfd.h".
10637 * tui/tui-hooks.c: Likewise.
10638 * tui/tui.c: Likewise.
10639 * tui/tuiCommand.c: Likewise.
10640 * tui/tuiData.c: Likewise.
10641 * tui/tuiDataWin.c: Likewise.
10642 * tui/tuiDisassem.c: Likewise.
10643 * tui/tuiGeneralWin.c: Likewise.
10644 * tui/tuiIO.c: Likewise.
10645 * tui/tuiLayout.c: Likewise.
10646 * tui/tuiRegs.c: Likewise.
10647 * tui/tuiSource.c: Likewise.
10648 * tui/tuiSourceWin.c: Likewise.
10649 * tui/tuiStack.c: Likewise.
10650 * tui/tuiWin.c: Likewise.
10651
10652 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
10653
10654 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
10655 to include space for pseudoregs as well. Update loops accordingly.
10656 (sh_fp_frame_init_saved_regs): Ditto.
10657 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
10658
10659 2002-02-07 Andrew Cagney <ac131313@redhat.com>
10660
10661 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
10662 Add Richard Earnshaw to Arm maintainers.
10663
10664 2002-02-07 Andrew Cagney <ac131313@redhat.com>
10665
10666 * defs.h (warning_begin): Delete declaration.
10667
10668 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
10669 Delete macro.
10670
10671 2002-02-07 Michael Snyder <msnyder@redhat.com>
10672
10673 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
10674 Logic bug, remove misplaced else.
10675
10676 2002-02-07 Klee Dienes <klee@apple.com>
10677
10678 * fork-inferior.c (fork_inferior): Add '!' to the list of
10679 characters that need to be quoted when building a string for the
10680 shell. Quote '!' specifically with a backslash, since CSH chokes
10681 when trying to evaluate "str!str".
10682
10683 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
10684
10685 * rdi-share/host.h: Only provide a typedef for bool if it is not
10686 defined.
10687
10688 2002-02-04 Michael Snyder <msnyder@redhat.com>
10689
10690 * breakpoint.h (enum bptype): Add new overlay event bp type.
10691 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
10692
10693 * breakpoint.c (create_internal_breakpoint): New function.
10694 (internal_breakpoint_number): Moved into create_internal_breakpoint.
10695 (create_longjmp_breakpoint): Use create_internal_breakpoint.
10696 (create_thread_event_breakpoint): Ditto.
10697 (create_solib_event_breakpoint): Ditto.
10698 (create_overlay_event_breakpoint): New function.
10699 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
10700 (update_breakpoints_after_exec): Delete and re-initialize
10701 overlay event breakpoints after an exec. Add FIXME comment
10702 about longjmp breakpoint.
10703 (print_it_typical): Ignore overlay event breakpoints.
10704 (print_one_breakpoint): Ditto.
10705 (mention): Ditto.
10706 (bpstat_what): Do not stop for overlay event breakpoints.
10707 (delete_breakpoint): Don't delete overlay event breakpoints.
10708 (breakpoint_re_set_one): Delete the overlay event breakpoint.
10709 (breakpoint_re_set): Re-create overlay event breakpoint.
10710
10711 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
10712 (overlay_manual_command): Disable overlay breakpoints.
10713 (overlay_off_command): Disable overlay breakpoints.
10714
10715 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
10716
10717 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
10718 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
10719 to here from config/tm-arm.h.
10720 (coff_sym_is_thumb): Make static.
10721 (arm_elf_make_msymbol_special): New function.
10722 (arm_coff_make_msymbol_special): New function.
10723 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
10724 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
10725 (coff_sym_is_thumb): Delete declaration.
10726 (arm_elf_make_msymbol_special): Declare.
10727 (arm_coff_make_msymbol_special): Declare.
10728 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
10729 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
10730
10731 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
10732
10733 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
10734
10735 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
10736
10737 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
10738 * gdbarch.c gdbarch.h: Regenerate.
10739 * arch-utils.c (default_print_float_info): New function.
10740 * arch-utils.h (default_print_float_info): Prototype it.
10741 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
10742 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
10743 (PRINT_FLOAT_INFO): Document it.
10744
10745 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
10746 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
10747 (PRINT_FLOAT_INFO): Define.
10748
10749 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
10750
10751 * win32-nat.c (_initialize_check_for_gdb_ini):
10752 Add typecast to sprintf argument to suppress a warning.
10753
10754 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
10755
10756 * win32-nat.c (last_sig): Changed type of variable to target_signal,
10757 to allow easier handling of pass state.
10758 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
10759 that gives exception name and address.
10760 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
10761 and set last_sig value to ourstatus->value.sig. Some missing
10762 exceptions added.
10763 (child_continue): Correctly report continue_status.
10764 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
10765 TARGET_SIGNAL_0 (new default value).
10766 (child_resume): consider sig argument passed to decide if
10767 the exception should be passed to debuggee or not.
10768
10769 2002-02-05 Michael Snyder <msnyder@redhat.com>
10770
10771 * regcache.c (fetch_register): Call target_fetch_register
10772 only if we don't call FETCH_PSEUDO_REGISTER.
10773 (store_register): Call target_store_register only if we
10774 don't call STORE_PSEUDO_REGISTER.
10775
10776 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
10777
10778 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
10779 ELF_MAKE_MSYMBOL_SPECIAL.
10780 * gdbarch.c, gdbarch.h: Regenerate.
10781 * arch-utils.c (default_make_msymbol_special): New function.
10782 * arch-utils.h (default_make_msymbol_special): Export.
10783 * elfread.c (elf_symtab_read): Compile use of
10784 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
10785 multiarched.
10786 * coffread.c (coff_symtab_read): Ditto, for
10787 COFF_MAKE_MSYMBOL_SPECIAL.
10788
10789 2002-02-05 Jim Blandy <jimb@redhat.com>
10790
10791 * solib-svr4.c (svr4_truncate_ptr): New function.
10792 (svr4_relocate_section_addresses): Do the address arithmetic with
10793 the appropriate truncation for target addresses, even when
10794 CORE_ADDR is larger than a target address.
10795
10796 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10797
10798 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
10799 to (int *).
10800
10801 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10802
10803 * gdbserver/linux-low.c (kill_inferior): Remove commented out
10804 code.
10805
10806 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10807
10808 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
10809
10810 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10811
10812 * gdbserver/linux-low.c: Remove unused include files.
10813
10814 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10815
10816 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
10817 (read_inferior_memory): Use it.
10818 (write_inferior_memory): Likewise.
10819
10820 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10821
10822 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
10823 grubbing through sys_errlist.
10824
10825 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10826
10827 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
10828
10829 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
10830 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
10831
10832 2002-02-04 Andrew Cagney <ac131313@redhat.com>
10833
10834 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
10835 (do_sfunc, set_cmd_sfunc): New functions.
10836
10837 * command.h (struct cmd_list_element): Add field func.
10838 * cli/cli-decode.h (struct cmd_list_element): Ditto.
10839 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
10840 * cli/cli-decode.h: Ditto.
10841
10842 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
10843 (help_all, help_cmd_list): Ditto.
10844 (find_cmd, complete_on_cmdlist): Ditto.
10845 * top.c (execute_command): Ditto.
10846
10847 * cli/cli-setshow.c (do_setshow_command): Call func instead of
10848 function.sfunc.
10849
10850 * infcmd.c (notice_args_read): Fix function signature.
10851
10852 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
10853 * cli/cli-decode.c (add_set_cmd): Ditto.
10854 * utils.c (initialize_utils): Ditto.
10855 * maint.c (_initialize_maint_cmds): Ditto.
10856 * infrun.c (_initialize_infrun): Ditto.
10857 * demangle.c (_initialize_demangler): Ditto.
10858 * remote.c (add_packet_config_cmd): Ditto.
10859 * mips-tdep.c (_initialize_mips_tdep): Ditto.
10860 * cris-tdep.c (_initialize_cris_tdep): Ditto.
10861 * proc-api.c (_initialize_proc_api): Ditto.
10862 * kod.c (_initialize_kod): Ditto.
10863 * valprint.c (_initialize_valprint): Ditto.
10864 * top.c (init_main): Ditto.
10865 * infcmd.c (_initialize_infcmd): Ditto.
10866 * corefile.c (_initialize_core): Ditto.
10867 * arm-tdep.c (_initialize_arm_tdep): Ditto.
10868 * arch-utils.c (initialize_current_architecture): Ditto.
10869 (_initialize_gdbarch_utils): Ditto.
10870 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
10871
10872 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
10873 * wince.c (_initialize_inftarg): Ditto.
10874 * symfile.c (_initialize_symfile): Ditto.
10875 * mips-tdep.c (_initialize_mips_tdep): Ditto.
10876 * language.c (_initialize_language): Ditto.
10877 * arc-tdep.c (_initialize_arc_tdep): Ditto.
10878
10879 2002-02-04 Michael Snyder <msnyder@redhat.com>
10880
10881 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
10882
10883 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
10884
10885 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
10886 Add rules for building the register data files.
10887
10888 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
10889
10890 * regformats/regdat.sh: Add braces to the definition of
10891 expedite_regs_${arch}.
10892
10893 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
10894
10895 * regformats/regdef.h (struct reg): Add comment describing the
10896 requirements for offset and size fields.
10897
10898 2002-02-04 Andreas Schwab <schwab@suse.de>
10899
10900 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
10901 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
10902
10903 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
10904
10905 * gdbarch.sh (copyright): Update years in generated header.
10906 (SMASH_TEXT_ADDRESS): Add rule.
10907 * gdbarch.h, gdbarch.c: Re-generate.
10908 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
10909 * dbxread.c: Likewise.
10910 * dwarfread.c: Likewise.
10911 * elfread.c: Likewise.
10912 * somread.c: Likewise.
10913
10914 * arm-tdep.c (arm_smash_text_address): New function.
10915 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
10916
10917 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
10918
10919 Add support for hardware watchpoints on win32 native.
10920 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
10921 CONTEXT_DEBUG_REGISTERS.
10922 (dr variable): New variable. Static array containing a local copy
10923 of debug registers.
10924 (debug_registers_changed): New variable. Reflects when debug registers
10925 are changed and need to be written to inferior.
10926 (debug_registers_used): New variable. Reflects when any debug register
10927 was set, used when new threads are created.
10928 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
10929 i386-nat code.
10930 (thread_rec): Set dr array if id is the thread of current_event .
10931 (child_continue, child_resume): Change the debug registers for all
10932 threads if debug_registers_changed.
10933 (child_add_thread): Change the debug registers if debug_registers_used.
10934 * config/i386/cygwin.mh: Add use of i386-nat.o file.
10935 Link nm.h to new nm-cygwin.h file.
10936 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
10937 of hardware registers.
10938
10939 2002-02-03 Andrew Cagney <ac131313@redhat.com>
10940
10941 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
10942 Restore behavour broken by 2002-01-20 Andrew Cagney
10943 <ac131313@redhat.com> IEEE_FLOAT removal.
10944
10945 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
10946
10947 * c-valprint.c (c_val_print): Pass a proper valaddr to
10948 cp_print_class_method.
10949 * valops.c (search_struct_method): If there is only one method
10950 and args is NULL, return that method.
10951
10952 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
10953
10954 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
10955 accessing tag_name directly.
10956
10957 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
10958
10959 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
10960 of accessing tag_name directly.
10961
10962 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
10963
10964 PR gdb/280
10965 * gdbtypes.c (replace_type): New function.
10966 * gdbtypes.h (replace_type): Add prototype.
10967 * stabsread.c (read_type): Use replace_type.
10968
10969 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
10970
10971 * Makefile.in (memattr.o): Add missing dependencies rule.
10972
10973 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10974
10975 * breakpoint.c (break_at_finish_command): Really export.
10976 (break_at_finish_at_depth_command): Ditto.
10977 (tbreak_at_finish_command): Ditto.
10978 * hppa-tdep.c: Include completer.h.
10979 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
10980 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
10981
10982 2002-02-01 Andrew Cagney <ac131313@redhat.com>
10983
10984 * utils.c (do_write): New function.
10985 (error_stream): Rewrite combining the code from error_begin and
10986 verror.
10987 (verror): Rewrite using error_stream.
10988 (error_begin): Delete function.
10989
10990 2002-02-01 Andrew Cagney <ac131313@redhat.com>
10991
10992 * utils.c (error_begin): Make static.
10993 * defs.h (error_begin): Delete declaration.
10994
10995 * linespec.c (cplusplus_error): Replace cplusplus_hint.
10996 (decode_line_1): Use cplusplus_error instead of error_begin,
10997 cplusplus_hint and return_to_top_level.
10998 * coffread.c (coff_symfile_read): Use error instead of error_begin
10999 and return_to_top_level.
11000 * infrun.c (default_skip_permanent_breakpoint): Ditto.
11001
11002 2002-02-01 Andrew Cagney <ac131313@redhat.com>
11003
11004 * language.h (type_error, range_error): Make string parameter
11005 constant.
11006 * language.c (warning_pre_print): Delete extern declaration.
11007 * dwarfread.c (warning_pre_print): Ditto.
11008 * language.c (type_error, range_error): Rewrite to use verror and
11009 vwarning instead of warning_begin.
11010
11011 2002-02-01 Michael Snyder <msnyder@redhat.com>
11012
11013 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
11014 (set_ignore_count): Move misplaced comment back where it belongs.
11015
11016 2002-02-01 Andrew Cagney <ac131313@redhat.com>
11017
11018 * command.h (NO_FUNCTION): Delete macro.
11019 * cli/cli-decode.h (NO_FUNCTION): Ditto.
11020 * top.c (execute_command): Replace NO_FUNCTION with NULL.
11021 * tracepoint.c (_initialize_tracepoint): Ditto.
11022 * cli/cli-decode.c (add_set_cmd): Ditto.
11023 * cli/cli-cmds.c (init_cli_cmds): Ditto.
11024
11025 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
11026
11027 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
11028 Update ``this'' pointer when calling virtual functions.
11029
11030 2002-02-01 Michael Snyder <msnyder@redhat.com>
11031
11032 * breakpoint.c (create_temp_exception_breakpoint): Delete.
11033 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
11034
11035 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
11036
11037 * regformats/reg-arm.dat: New file.
11038 * regformats/reg-i386.dat: New file.
11039 * regformats/reg-ia64.dat: New file.
11040 * regformats/reg-m68k.dat: New file.
11041 * regformats/reg-mips.dat: New file.
11042 * regformats/reg-ppc.dat: New file.
11043 * regformats/reg-sh.dat: New file.
11044 * regformats/regdef.h: New file.
11045 * regformats/regdat.sh: New file.
11046
11047 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
11048
11049 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
11050 (arm_frame_args_address, arm_frame_locals_address): New functions.
11051 (arm_frame_num_args): New function.
11052 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
11053 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
11054 (FRMA_NUM_ARGS): Call arm_frame_num_args.
11055
11056 2002-01-31 Michael Snyder <msnyder@redhat.com>
11057
11058 * breakpoint.c (break_at_finish_command): Export.
11059 (break_at_finish_at_depth_command): Export.
11060 (tbreak_at_finish_command): Export.
11061 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
11062 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
11063 "txbreak" commands, which are HPPA specific.
11064
11065 * printcmd.c (disassemble_command): Remove an ancient
11066 artifact of an old merge.
11067
11068 * symfile.h (enum overlay_debugging_state):
11069 Define enum constant values for overlay mode.
11070 * symfile.c (overlay_debugging): Use enums instead of literals.
11071 (overlay_is_mapped, overlay_auto_command,
11072 overlay_manual_command): Ditto.
11073
11074 * breakpoint.c (insert_breakpoints, remove_breakpoint,
11075 breakpoint_here_p, breakpoint_inserted_here_p,
11076 breakpoint_thread_match, bpstat_stop_status,
11077 describe_other_breakpoints, check_duplicates, clear_command):
11078 Coding standard fixes.
11079
11080 * target.c (target_xfer_memory): Add spaces, coding standard.
11081 (do_xfer_memory): Add missing line to trust-readonly
11082 code: check bfd SEC_READONLY flag for section.
11083
11084 2002-01-31 Andrew Cagney <ac131313@redhat.com>
11085
11086 * PROBLEMS: Fix typo, 5.1->5.1.1.
11087
11088 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
11089
11090 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
11091 data symbols, since we search based on textlow and texthigh.
11092 (find_pc_sect_symtab): Likewise.
11093
11094 2002-01-30 Andrew Cagney <ac131313@redhat.com>
11095
11096 * defs.h (vwarning): Declare.
11097 * utils.c (vwarning): New function.
11098 (warning): Call vwarning.
11099 (warning_begin): Delete function.
11100
11101 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
11102 the warning message.
11103 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
11104 warning_begin.
11105
11106 2002-01-30 Michael Snyder <msnyder@redhat.com>
11107
11108 * NEWS: Mention "set trust-readonly-sections" command.
11109 Mention generate-core-file command.
11110
11111 2002-01-15 Michael Snyder <msnyder@redhat.com>
11112
11113 * target.c: New command, "set trust-readonly-sections on".
11114 (do_xfer_memory): Honor the suggestion to trust readonly sections
11115 by reading them from the object file instead of from the target.
11116 (initialize_targets): Register command "set trust-readonly-sections".
11117
11118 2002-01-29 Andrew Cagney <ac131313@redhat.com>
11119
11120 * parse.c (target_map_name_to_register): Simplify, search regs and
11121 pseudo-regs using a single loop.
11122
11123 2002-01-30 Andrew Cagney <ac131313@redhat.com>
11124
11125 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
11126
11127 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
11128
11129 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
11130 * config/i386/i386v42mp.mh: Add i387-nat.o .
11131 * i386v4-nat.c: Include i387-nat.h.
11132 (supply_fpregset): Use i387_supply_fsave.
11133 (fill_fpregset): Use i387_fill_fsave.
11134
11135 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
11136
11137 * arm-tdep.c (arm_call_dummy_words): Define.
11138 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
11139 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
11140 (CALL_DUMMY_WORDS): Define.
11141 (arm_call_dummy_words): Declare.
11142 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
11143 (arm_linux_call_dummy_words): Declare.
11144
11145 2002-01-30 Andreas Schwab <schwab@suse.de>
11146
11147 * m68klinux-nat.c: Fix last change to use regcache_collect
11148 instead of referencing registers[] directly.
11149
11150 2002-01-29 Andrew Cagney <ac131313@redhat.com>
11151
11152 * parse.c (target_map_name_to_register): Delete code wrapped in
11153 #ifdef REGISTER_NAME_ALIAS_HOOK.
11154
11155 2002-01-28 Michael Snyder <msnyder@redhat.com>
11156
11157 * regcache.c (legacy_read_register_gen): Need to be able to
11158 read pseudo-register as well as real register.
11159 (legacy_write_register_gen): Ditto.
11160
11161 2002-01-28 Andrew Cagney <ac131313@redhat.com>
11162
11163 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
11164 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
11165 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
11166 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
11167 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
11168 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
11169 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
11170 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
11171 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
11172 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
11173 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
11174 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
11175 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
11176 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
11177 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
11178 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
11179 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
11180 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
11181 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
11182 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
11183
11184 2002-01-28 Andrew Cagney <ac131313@redhat.com>
11185
11186 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
11187 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
11188 (initialize_current_architecture): Update target_byte_order using
11189 information from BFD.
11190 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
11191 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
11192
11193 2002-01-28 Andrew Cagney <ac131313@redhat.com>
11194
11195 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
11196 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
11197
11198 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
11199 #ifdef INVALID_FLOAT.
11200 * infcmd.c (do_registers_info): Ditto.
11201 * values.c (unpack_double): Ditto. Add comment.
11202
11203 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
11204 already commented out.
11205
11206 2002-01-26 Andreas Schwab <schwab@suse.de>
11207
11208 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
11209 * m68klinux-nat.c: Update ptrace interface for fetching/storing
11210 registers and add support for PTRACE_GETREGS.
11211
11212 2002-01-24 Andrew Cagney <ac131313@redhat.com>
11213
11214 GDB 5.1.1 released from 5.1 branch.
11215 * NEWS: Add 5.1.1 news.
11216 * README: Sync with 5.1 branch.
11217
11218 2002-01-23 Fred Fish <fnf@redhat.com>
11219
11220 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
11221 stabstring on initial malloc. Reallocing will copy it for us,
11222 if necessary.
11223
11224 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
11225
11226 * Makefile.in (hpread_h): Delete.
11227 (HFILES_NO_SRCDIR): Remove hpread.h.
11228 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
11229 (hpread.o): Update dependencies.
11230 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
11231
11232 * hp-psymtab-read.c: Remove file.
11233 * hp-symtab-read.c: Remove file.
11234 * hpread.h: Remove file.
11235
11236 * hpread.c: Merge all contents of hp-psymtab-read.c,
11237 hp-symtab-read.c and hpread.h into this file, as it was prior to
11238 January 1999.
11239
11240 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
11241 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
11242 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
11243 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
11244
11245 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
11246
11247 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
11248 fill_gregset): Call gdbarch_tdep() just once, assign result to
11249 variable and use that, instead of calling the function several
11250 times.
11251
11252 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
11253
11254 * configure.host: Accept sparcv9 as alias for sparc64.
11255 * configure.tgt: Likewise.
11256
11257 2002-01-22 Kevin Buettner <kevinb@redhat.com>
11258
11259 * solib-aix5.c (build_so_list_from_mapfile)
11260 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
11261 arguments is not reversed.
11262 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
11263 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
11264
11265 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
11266
11267 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
11268 modified version of obsolete sh_fetch_pseudo_register.
11269 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
11270 (sh4_register_read): New function.
11271 (sh_pseudo_register_write): New function. Renamed and modified
11272 version of obsolete sh_store_pseudo_register.
11273 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
11274 (sh4_register_write): New function.
11275 (sh_gdbarch_init): Remove setting of gdbarch function
11276 fetch_pseudo_register and store_pseudo_register. Remove setting of
11277 register_convert_to_raw, register_convert_to_virtual,
11278 register_convertible.
11279 (sh_sh4_register_convertible): Delete. No longer needed. All is
11280 taken care by architecture specific functions
11281 register_read/register_write.
11282 (sh_sh4_register_convert_to_virtual): Make static.
11283 (sh_sh4_register_convert_to_raw): Ditto.
11284
11285 2002-01-22 Andrew Cagney <ac131313@redhat.com>
11286
11287 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
11288 (floatformat_is_nan, floatformat_mantissa): Ditto.
11289
11290 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
11291 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
11292 builtin_type_ieee_double_little,
11293 builtin_type_ieee_double_littlebyte_bigword,
11294 builtin_type_m68881_ext, builtin_type_i960_ext,
11295 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
11296 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
11297 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
11298 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
11299
11300 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
11301
11302 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
11303 parameter. Set frameless flag if it exists and depended of
11304 whether the scanned function is frameless or not.
11305 (xstormy16_skip_prologue): If function is frameless, return
11306 result of xstormy16_scan_prologue().
11307 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
11308 call.
11309
11310 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
11311
11312 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
11313 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
11314 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
11315 sh_sh4_register_byte, sh_sh4_register_raw_size,
11316 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
11317 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
11318 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
11319 sh_store_pseudo_register, sh_do_pseudo_register): Call
11320 gdbarch_tdep() just once, assign result to variable and use that,
11321 instead of calling the function several times.
11322
11323 2002-01-20 Mark Kettenis <kettenis@gnu.org>
11324
11325 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
11326 macros instead of LAST_FPU_CTRL_REGNUM.
11327 (store_register): Likewise.
11328
11329 2002-01-21 Jim Blandy <jimb@redhat.com>
11330
11331 * infcmd.c (run_command): Check that the `exec' target layer's BFD
11332 is up-to-date before running the program, not just when a program
11333 exits.
11334
11335 2002-01-21 Fred Fish <fnf@redhat.com>
11336
11337 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
11338 when we have found all instructions we are looking for.
11339
11340 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
11341
11342 * arm-tdep.c (arm_register_name): New function.
11343 (arm_registers_names): Make static.
11344 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
11345 (arm_register_name): Declare.
11346 (REGISTER_NAME): Use it.
11347
11348 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
11349 Kevin Buettner <kevinb@redhat.com>
11350
11351 Convert arm targets to new FRAME interface.
11352 * arm-tdep.c (struct frame_extra_info): Remove fsr.
11353 (arm_frame_find_save_regs): Delete.
11354 (arm_frame_init_saved_regs): New.
11355 (arm_init_extra_frame_info): Alloacte saved_regs as required.
11356 Allocate extra_info as required. Convert all uses of fsr.regs
11357 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
11358 to use extra_info.
11359 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
11360 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
11361 (check_prologue_cache, save_prologue_cache): Likewise.
11362 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
11363 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
11364 (FRAME_FIND_SAVED_REGS): Delete.
11365 (arm_frame_find_saved_regs): Delete prototype.
11366 (arm_frame_init_saved_regs): New prototype.
11367 (FRAME_INIT_SAVED_REGS): Define.
11368
11369 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11370
11371 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
11372
11373 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11374
11375 From Jeff Law <law@redhat.com>:
11376 * infttrace.c: Include <sys/pstat.h>.
11377 (child_pid_to_exec_file): Revamp. Use pstat call to get the
11378 exec file if the ttrace equivalent fails.
11379
11380 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11381
11382 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
11383 (closeLogFile): Ditto.
11384
11385 2002-01-20 Michael Chastain <mec@shout.net>
11386
11387 * top.c (print_gdb_version): Bump copyright year to 2002.
11388
11389 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11390
11391 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
11392 Zannoni and Eli Zaretskii.
11393
11394 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
11395
11396 * buildsym.c: Update copyright years.
11397 * c-typeprint.c: Likewise.
11398 * dwarf2read.c: Likewise.
11399 * f-typeprint.c: Likewise.
11400 * gdbtypes.c: Likewise.
11401 * gdbtypes.h: Likewise.
11402 * hp-symtab-read.c: Likewise.
11403 * hpread.c: Likewise.
11404 * mdebugread.c: Likewise.
11405 * p-typeprint.c: Likewise.
11406
11407 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11408
11409 * remote-sim.c (gdbsim_open): Simplify code testing the macro
11410 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
11411 byte-order selectable.
11412 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
11413 * arch-utils.c: Ditto.
11414 (set_endian): Ditto.
11415 (set_endian_from_file): Ditto.
11416 * gdbserver/low-sim.c (create_inferior): Ditto.
11417 * gdbarch.sh: Ditto.
11418 * gdbarch.h: Re-generate.
11419 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11420 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
11421 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
11422 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11423 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11424 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11425 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
11426 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
11427 macro definition.
11428 * config/mips/tm-wince.h: Remove #undef of macro
11429 TARGET_BYTE_ORDER_SELECTABLE.
11430 * config/sh/tm-wince.h: Ditto.
11431
11432 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
11433
11434 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
11435 member function fields. Add accessor macro
11436 TYPE_FN_FIELD_ARTIFICIAL.
11437 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
11438 * c-typeprint.c (c_type_print_base): Skip artificial member
11439 functions.
11440
11441 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
11442
11443 * f-typeprint.c: Delete unused function f_type_print_args.
11444 * p-typeprint.c: Delete unused function pascal_type_print_args.
11445
11446 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
11447
11448 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
11449 comment. Add ``artificial'' to ``union field_location''.
11450
11451 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
11452
11453 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
11454 * mdebugread.c (parse_symbol): Likewise.
11455 * stabsread.c (define_symbol): Likewise.
11456 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
11457 initializing TYPE_FIELD_BITPOS to n (obsolete).
11458 (hpread_doc_function_type): Likewise.
11459 * hpread.c (hpread_function_type): Likewise.
11460
11461 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11462
11463 * configure.in (host_makefile_frag): Only require a host makefile
11464 fragment when a native build.
11465 * configure: Re-generate.
11466
11467 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11468
11469 * doublest.h (floatformat_from_type): Declare.
11470 * doublest.c (floatformat_from_type): New function.
11471 (convert_typed_floating): Use.
11472
11473 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
11474 call to function floatformat_from_type.
11475
11476 * gdbarch.sh (IEEE_FLOAT): Delete.
11477 * gdbarch.h, gdbarch.c: Re-generate.
11478 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
11479 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
11480 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
11481 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
11482 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
11483 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
11484 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
11485 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
11486 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
11487 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
11488 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
11489 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
11490
11491 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
11492 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
11493 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
11494 * sh-tdep.c (sh_gdbarch_init): Ditto.
11495 * mips-tdep.c (mips_gdbarch_init): Ditto.
11496 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11497 * cris-tdep.c (cris_gdbarch_init): Ditto.
11498
11499 2002-01-20 Jiri Smid <smid@suse.cz>
11500
11501 * configure.host, configure.tgt: Support x86-64.
11502 * NEWS: Note new target x86-64.
11503
11504 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
11505 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
11506 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
11507 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
11508 x86-64-linux-nat.o): Fix dependencies.
11509
11510 2002-01-19 Andrew Cagney <ac131313@redhat.com>
11511
11512 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
11513 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
11514 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
11515 * config/sparc/xm-sun4os4.h: Delete file.
11516 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
11517
11518 2002-01-19 Andrew Cagney <ac131313@redhat.com>
11519
11520 * config/sparc/sparclynx.mh (XM_FILE): Delete.
11521 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
11522 * config/m68k/m68klynx.mh (XM_FILE): Delete.
11523 * config/i386/i386lynx.mh (XM_FILE): Delete.
11524 * config/rs6000/xm-rs6000ly.h: Delete file.
11525 * config/sparc/xm-sparclynx.h: Delete file.
11526 * config/m68k/xm-m68klynx.h: Delete file.
11527 * config/i386/xm-i386lynx.h: Delete file.
11528 * config/xm-lynx.h: Delete file.
11529 * config/djgpp/fnchange.lst: Update.
11530
11531 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11532
11533 * alpha-tdep.c (alpha_register_byte): New function.
11534 (alpha_register_raw_size): Ditto.
11535 (alpha_register_virtual_size): Ditto.
11536 (alpha_skip_prologue_internal): Renamed from
11537 alpha_skip_prologue.
11538 (alpha_skip_prologue): New version that calls
11539 alpha_skip_prologue_internal.
11540 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
11541 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
11542 second argument from alpha_skip_prologue.
11543 (REGISTER_BYTE): Use alpha_register_byte.
11544 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
11545 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
11546 (FRAMELESS_FUNCTION_INVOCATION): Use
11547 generic_frameless_function_invocation_not.
11548 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
11549 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
11550
11551 2002-01-19 Andrew Cagney <ac131313@redhat.com>
11552
11553 * config/mips/xm-news-mips.h: Delete file.
11554 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
11555
11556 * config/m88k/xm-m88k.h: Delete file.
11557 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
11558 * config/m88k/xm-delta88v4.h: Ditto.
11559 * config/m88k/xm-delta88.h: Ditto.
11560
11561 * config/alpha/xm-fbsd.h: Delete file.
11562 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
11563
11564 * config/sparc/xm-sparc.h: Delete file.
11565 * Makefile.in (xm-sun4os4.h): Delete dependency.
11566 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
11567 * config/sparc/xm-sun4os4.h: Ditto.
11568 * config/sparc/xm-linux.h: Ditto.
11569
11570 * config/i386/xm-windows.h: Delete file.
11571
11572 2002-01-19 Andrew Cagney <ac131313@redhat.com>
11573
11574 * utils.c: Include <sys/param.h> for MAXPATHLEN.
11575 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
11576
11577 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11578
11579 * alpha-tdep.c (alpha_call_dummy_words): New.
11580 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
11581 (CALL_DUMMY_P): Define.
11582 (CALL_DUMMY_WORDS): Define.
11583 (SIZEOF_CALL_DUMMY_WORDS): Define.
11584
11585 2002-01-19 Per Bothner <per@bothner.com>
11586
11587 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
11588 isn't NULL, which can happen with some gcj-3.x-produced code.
11589
11590 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11591
11592 * alpha-tdep.c (alpha_register_virtual_type): New function.
11593 (alpha_init_frame_pc_first): Ditto.
11594 (alpha_fix_call_dummy): Ditto.
11595 (alpha_store_struct_return): Ditto.
11596 (alpha_extract_struct_value_address): Ditto.
11597 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
11598 alpha_register_virtual_type.
11599 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
11600 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
11601 alpha_extract_struct_value_address.
11602 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
11603 (INIT_FRAME_PC): Use init_frame_pc_noop.
11604 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
11605
11606 2002-01-19 Mark Kettenis <kettenis@gnu.org>
11607
11608 * i386gnu-nat.c: Include "i386-tdep.h".
11609 (fetch_fpregs): Simplify code dealing with uninitialized floating
11610 point states such that it doesn't require FP7_REGNUM.
11611
11612 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11613
11614 * alpha-tdep.c (frame_extra_info): New.
11615 (alpha_find_saved_regs): Make static. Use
11616 frame->extra_info.
11617 (alpha_frame_init_saved_regs): New function.
11618 (alpha_frame_saved_pc): Use frame->extra_info.
11619 (temp_saved_regs): Don't declare as struct frame_saved_regs.
11620 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
11621 (init_extra_frame_info): Rename to...
11622 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
11623 (alpha_print_extra_frame_info): New function.
11624 (alpha_frame_locals_address): Ditto.
11625 (alpha_frame_args_address): Ditto.
11626 (alpha_pop_frame): Use frame->extra_info.
11627 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
11628 alpha_frame_args_address.
11629 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
11630 (alpha_find_saved_regs): Remove prototype.
11631 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
11632 (EXTRA_FRAME_INFO): Remove.
11633 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
11634 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
11635
11636 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11637
11638 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
11639 (alpha_cannot_fetch_register): Ditto.
11640 (alpha_cannot_store_register): Ditto.
11641 (alpha_register_convertible): Ditto.
11642 (alpha_use_struct_convention): Ditto.
11643 * config/alpha/tm-alpha.h: Update copyright years.
11644 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
11645 (INNER_THAN): Use core_addr_lessthan.
11646 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
11647 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
11648 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
11649 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
11650 (FRAME_CHAIN): Remove unnecessary cast.
11651
11652 2002-01-18 Andrew Cagney <ac131313@redhat.com>
11653
11654 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
11655 obsolete.
11656
11657 2002-01-18 Andrew Cagney <ac131313@redhat.com>
11658
11659 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
11660 * monitor.c, remote-array.c, remote-bug.c: Ditto.
11661 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
11662 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
11663 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
11664 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
11665 * x86-64-linux-nat.c: Ditto.
11666
11667 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11668
11669 * alpha-tdep.c (alpha_register_name): New function.
11670 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
11671 (REGISTER_NAME): Define.
11672
11673 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11674
11675 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
11676
11677 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11678
11679 * alpha-tdep.c: Update copyright years.
11680 (alpha_next_pc): New function.
11681 (alpha_software_single_step): Ditto.
11682 * config/alpha/tm-alpha.h: Add prototype for
11683 alpha_software_single_step.
11684
11685 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11686
11687 * alphabsd-nat.c: Update copyright years.
11688 (fill_gregset): Use regcache_collect.
11689 (fill_fpregset): Likewise.
11690 (fetch_inferior_registers): Only fetch integer registers
11691 if requested to do so.
11692 (store_inferior_registers): Only store integer registers
11693 if requested to do so.
11694
11695 2002-01-17 Andrew Cagney <ac131313@redhat.com>
11696
11697 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
11698 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
11699 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
11700 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
11701 * config/alpha/fbsd.mh (XDEPFILES): Delete.
11702 * config/arm/linux.mh (XDEPFILES): Delete.
11703 * config/arm/nbsd.mh (XDEPFILES): Delete.
11704 * config/i386/i386dgux.mh (XDEPFILES): Delete.
11705 * config/i386/i386sol2.mh (XDEPFILES): Delete.
11706 * config/i386/i386m3.mh (XDEPFILES): Delete.
11707 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
11708 * config/i386/i386gnu.mh (XDEPFILES): Delete.
11709 * config/i386/fbsd.mh (XDEPFILES): Delete.
11710 * config/i386/i386bsd.mh (XDEPFILES): Delete.
11711 * config/i386/i386sco5.mh (XDEPFILES): Delete.
11712 * config/i386/i386v4.mh (XDEPFILES): Delete.
11713 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
11714 * config/i386/i386sco4.mh (XDEPFILES): Delete.
11715 * config/i386/i386aix.mh (XDEPFILES): Delete.
11716 * config/i386/go32.mh (XDEPFILES): Delete.
11717 * config/i386/cygwin.mh (XDEPFILES): Delete.
11718 * config/i386/i386lynx.mh (XDEPFILES): Delete.
11719 * config/i386/i386mach.mh (XDEPFILES): Delete.
11720 * config/i386/i386v32.mh (XDEPFILES): Delete.
11721 * config/i386/linux.mh (XDEPFILES): Delete.
11722 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
11723 * config/i386/ncr3000.mh (XDEPFILES): Delete.
11724 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
11725 * config/i386/i386sco.mh (XDEPFILES): Delete.
11726 * config/i386/i386v.mh (XDEPFILES): Delete.
11727 * config/i386/nbsd.mh (XDEPFILES): Delete.
11728 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
11729 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
11730 * config/i386/symmetry.mh (XDEPFILES): Delete.
11731 * config/i386/obsd.mh (XDEPFILES): Delete.
11732 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
11733 * config/ia64/linux.mh (XDEPFILES): Delete.
11734 * config/ia64/aix.mh (XDEPFILES): Delete.
11735 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
11736 * config/m68k/dpx2.mh (XDEPFILES): Delete.
11737 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
11738 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
11739 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
11740 * config/m68k/linux.mh (XDEPFILES): Delete.
11741 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
11742 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
11743 * config/m68k/nbsd.mh (XDEPFILES): Delete.
11744 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
11745 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
11746 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
11747 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
11748 * config/m88k/delta88.mh (XDEPFILES): Delete.
11749 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
11750 * config/m88k/m88k.mh (XDEPFILES): Delete.
11751 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
11752 * config/mips/linux.mh (XDEPFILES): Delete.
11753 * config/mips/irix6.mh (XDEPFILES): Delete.
11754 * config/mips/irix5.mh (XDEPFILES): Delete.
11755 * config/mips/irix4.mh (XDEPFILES): Delete.
11756 * config/mips/irix3.mh (XDEPFILES): Delete.
11757 * config/mips/decstation.mh (XDEPFILES): Delete.
11758 * config/mips/mipsm3.mh (XDEPFILES): Delete.
11759 (NATDEPFILES): Move core-aout.o to here.
11760 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
11761 * config/pa/hpux1020.mh (XDEPFILES): Delete.
11762 * config/pa/hppabsd.mh (XDEPFILES): Delete.
11763 * config/pa/hppahpux.mh (XDEPFILES): Delete.
11764 * config/pa/hpux11w.mh (XDEPFILES): Delete.
11765 * config/pa/hppaosf.mh (XDEPFILES): Delete.
11766 * config/pa/hpux11.mh (XDEPFILES): Delete.
11767 * config/powerpc/aix.mh (XDEPFILES): Delete.
11768 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
11769 * config/powerpc/linux.mh (XDEPFILES): Delete.
11770 * config/romp/rtbsd.mh: Rename XDEPFILES.
11771 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
11772 * config/rs6000/aix4.mh (XDEPFILES): Delete.
11773 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
11774 * config/s390/s390.mh (XDEPFILES): Delete.
11775 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
11776 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
11777 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
11778 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
11779 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
11780 * config/sparc/nbsd.mh (XDEPFILES): Delete.
11781 * config/sparc/linux.mh (XDEPFILES): Delete.
11782 * config/vax/vaxult.mh (XDEPFILES): Delete.
11783 * config/vax/vaxult2.mh (XDEPFILES): Delete.
11784 * Makefile.in (DEPFILES): Remove XDEPFILES.
11785
11786 2002-01-17 Andrew Cagney <ac131313@redhat.com>
11787
11788 * utils.c (internal_verror): Fix comments, default is yes not no.
11789 Update queries to match. Default to quit and dump core.
11790
11791 2002-01-17 Andrew Cagney <ac131313@redhat.com>
11792
11793 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
11794 copyright.
11795 * defs.h, event-top.c, gdbcmd.h: Ditto.
11796 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
11797 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
11798 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
11799 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
11800 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
11801 * mi/mi-main.c:Ditto.
11802
11803 * stack.c, symfile.c: Update copyright.
11804
11805 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
11806
11807 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
11808 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
11809 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
11810 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
11811
11812 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
11813
11814 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
11815 * gdbserver/low-lynx.c (myattach): Likewise.
11816 * gdbserver/low-nbsd.c (myattach): Likewise.
11817 * gdbserver/low-sim.c (myattach): Likewise.
11818 * gdbserver/low-sparc.c (myattach): Likewise.
11819 * gdbserver/low-sun3.c (myattach): Likewise.
11820
11821 * gdbserver/low-linux.c (myattach): New function.
11822
11823 * gdbserver/server.c (attach_inferior): New function.
11824 (main): Handle "--attach".
11825
11826 2002-01-16 Andrew Cagney <ac131313@redhat.com>
11827
11828 * MAINTAINERS (language support): Daniel Jacobwitz is C++
11829 maintainer.
11830
11831 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
11832
11833 * c-typeprint.c (is_type_conversion_operator): Add additional
11834 check for non-conversion operators.
11835
11836 2002-01-15 Michael Snyder <msnyder@redhat.com>
11837
11838 * linux-proc.c: Add "info proc" command, a la procfs.c.
11839 (read_mapping): New function, abstract and re-use code.
11840 (linux_find_memory_regions): Use new func read_mapping.
11841 (linux_info_proc_cmd): New function, implement "info proc".
11842 (_initialize_linux_proc): Add new command "info proc".
11843
11844 2002-01-15 Michael Snyder <msnyder@redhat.com>
11845
11846 * symfile.c (generic_load): Use bfd_map_over_sections method
11847 instead of manipulating bfd structure members directly.
11848 (add_section_size_callback): New function, bfd sections callback
11849 used by generic_load.
11850 (load_sections_callback): New function, bfd sections callback
11851 used by generic_load.
11852
11853 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
11854
11855 [Based on work by Jim Blandy]
11856 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
11857 (builtin_type_vec128): Export.
11858 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
11859 types.
11860 (builtin_type_vec128): New builtin type for 128 bit vector
11861 registers.
11862 (build_gdbtypes): Initialize builtin_type_v16qi and
11863 builtin_type_v8hi. Create the vec128 register builtin type
11864 structure.
11865 (build_builtin_type_vec128): New function.
11866 (_initialize_gdbtypes): Register builtin_type_v16qi and
11867 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
11868 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
11869 AltiVec register to new builtin type.
11870
11871 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
11872
11873 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
11874 to make_cv_type.
11875
11876 2002-01-14 Andrew Cagney <ac131313@redhat.com>
11877
11878 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
11879 CLEAN_UP_REGISTER_VALUE.
11880 * regcache.c (supply_register): Update only call.
11881
11882 2002-01-14 Andrew Cagney <ac131313@redhat.com>
11883
11884 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
11885 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
11886 a29k-*-vxworks* targets as obsolete.
11887
11888 2002-01-14 Michael Snyder <msnyder@redhat.com>
11889
11890 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
11891 until we can resolve portability issues.
11892 * gregset.h: Remove references to fpxregs.
11893 * gcore.c (gcore_command): Initialize note_sec to NULL.
11894
11895 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11896
11897 * signals.c (target_signal_to_name): Rewrite. Only use
11898 signals[].name when in bounds and non-NULL.
11899
11900 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11901
11902 From Petr Ledvina <ledvinap@kae.zcu.cz>:
11903 * signals.c (target_signal_to_name): Verify that SIG is within the
11904 bounds of the signals array.
11905
11906 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11907
11908 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
11909
11910 2002-01-13 Keith Seitz <keiths@redhat.com>
11911
11912 * stack.c (print_frame_info_base): Print the frame's pc
11913 only if when print_frame_info_listing_hook is not defined.
11914
11915 2002-01-13 Keith Seitz <keiths@redhat.com>
11916
11917 * varobj.c (varobj_set_value): Make sure that there were no
11918 errors evaluating the object before attempting to set its
11919 value.
11920 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
11921 so this offset adjustment is no longer necessary.
11922 (create_child): Don't set the error flag if the child is
11923 a CPLUS_FAKE_CHILD.
11924 (value_of_child): If value_fetch_lazy fails, return NULL
11925 so that callers will be notified that an error occurred.
11926 (c_value_of_variable): Delay check of variable's validity
11927 until later. We actually want all structs and unions to have
11928 the value "{...}".
11929 Do not return "???" for variables which could not be evaluated.
11930 This error condition must be returned to the caller so that it
11931 can get the error condition from gdb.
11932 (cplus_name_of_child): Adjust index for vptr before figuring
11933 out the name of the child.
11934 (cplus_value_of_child): If a child's (real) parent is not valid,
11935 don't even bother trying to give a value for it. Just return
11936 an error. Change all instances in this function.
11937 (cplus_type_of_child): If our parent is one of the "fake"
11938 parents, we need to get at the type of the real parent, and
11939 derive the child's true type using this information.
11940
11941 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11942
11943 From 2002-01-09 John Marshall <johnm@falch.net>:
11944 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
11945 sources.redhat.com, and tweak some related URLs which had
11946 suffered from linkrot.
11947
11948 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11949
11950 From Jeff law:
11951 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
11952 structures passed in registers.
11953
11954 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
11955
11956 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
11957 white space which prevented compilation. Reported by DSK
11958 <dsk@student.unsw.edu.au>.
11959
11960 2002-01-11 Michael Snyder <msnyder@redhat.com>
11961
11962 * symfile.c (build_section_addr_info_from_section_tab):
11963 Use bfd access method instead of manipulating bfd directly.
11964 (syms_from_objfile): Ditto.
11965 (simple_overlay_update_1): Ditto.
11966 (simple_overlay_update): Ditto.
11967 (generic_load): Ditto.
11968 (overlay_unmapped_address): FIXME comment, bfd access methods.
11969 (sections_overlap): FIXME comment, bfd access methods.
11970 (pc_in_mapped_range): FIXME comment, bfd access methods.
11971 (pc_in_unmapped_range): FIXME comment, bfd access methods.
11972 (section_is_mapped): FIXME comment, bfd access methods.
11973 (section_is_overlay): FIXME comment, bfd access methods.
11974
11975 * symfile.c (generic_load): Whitespace and long line cleanups.
11976 Remove duplicate variable, change several local variables to
11977 more appropriate data types.
11978 (print_transfer_performance): Use %lu instead of %ld for ulongs.
11979
11980 2002-01-12 Andrew Cagney <ac131313@redhat.com>
11981
11982 From Peter Schauer:
11983 * language.c (longest_local_hex_string_custom): Use phex_nz to
11984 convert NUM to a hex string.
11985
11986 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
11987
11988 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
11989 the function.
11990 Update Copyright year.
11991
11992 2002-01-12 Andrew Cagney <ac131313@redhat.com>
11993
11994 * language.c (longest_raw_hex_string): Delete unused function.
11995
11996 2002-01-11 Petr Sorfa <petrs@caldera.com>
11997
11998 * MAINTAINERS (write-after-approval): Add myself.
11999 * dwarf2read.c (read_tag_string_type): Handling of
12000 DW_AT_byte_size.
12001 (read_tag_string_type): FORTRAN fix to prevent propagation of
12002 first string size.
12003 (set_cu_language): Handling of DW_LANG_Fortran95
12004
12005 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
12006
12007 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
12008 GETPID(inferior_ptid).
12009 (store_inferior_registers): Likewise.
12010
12011 2002-01-10 Jason Merrill <jason@redhat.com>
12012
12013 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
12014 Fix DW_OP_minus.
12015
12016 2002-01-10 Andrew Cagney <ac131313@redhat.com>
12017
12018 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
12019 and bfd/elf32-sh-nbsd.c.
12020
12021 2002-01-10 Michael Snyder <msnyder@redhat.com>
12022
12023 * NEWS: Mention --pid and corefile/proc-id behavior change.
12024
12025 * Makefile.in: Add rules for gcore.o and linux-proc.o.
12026 * gcore.c: Include cli/cli-decode.h instead of command.h.
12027
12028 * main.c (captured_main): Add new command line option "--pid".
12029 If the second command line argument (following the symbol-file)
12030 begins with a digit, try to attach to it before trying to open
12031 it as a corefile.
12032 (print_gdb_help): Document the "--pid" argument.
12033
12034 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
12035
12036 * completer.c (command_completer): New function.
12037
12038 * completer.h <command_completer>: Add prototype.
12039
12040 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
12041 completer for the "help" command.
12042
12043 2002-01-09 Jason Merrill <jason@redhat.com>
12044
12045 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
12046
12047 2002-01-09 Michael Snyder <msnyder@redhat.com>
12048
12049 * i386-linux-nat.c (fill_fpxregset): Make global.
12050 (store_fpxregset): Ditto.
12051
12052 * gregset.h (gdb_fpxregset_t): Define.
12053 (supply_fpxregset): Prototype.
12054 (fill_fpxregset): Prototype.
12055
12056 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
12057
12058 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
12059
12060 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
12061 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
12062 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
12063
12064 2002-01-09 Andrew Cagney <ac131313@redhat.com>
12065
12066 * MAINTAINERS: Update target maintainer rules so that any
12067 Maintainer can approve a tested patch for a maintenance-only
12068 target.
12069
12070 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
12071
12072 * MAINTAINERS (write-after-approval): Add myself.
12073
12074 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
12075 IN_SIGTRAMP.
12076
12077 2002-01-08 Michael Snyder <msnyder@redhat.com>
12078
12079 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
12080 real name of the executable, rather than the /proc name.
12081
12082 2002-01-03 Michael Snyder <msnyder@redhat.com>
12083
12084 Implement a "generate-core-file" command in gdb, save target state.
12085 * gcore.c: New file. Implement new command 'generate-core-file'.
12086 Save a corefile image of the current state of the inferior.
12087 * linux-proc.c: Add linux-specific code for saving corefiles.
12088 * target.h (struct target_ops): Add new target vectors for saving
12089 corefiles; to_find_memory_regions and to_make_corefile_notes.
12090 (target_find_memory_regions): New macro.
12091 (target_make_corefile_notes): New macro.
12092 * target.c (update_current_target): Inherit new target methods.
12093 (dummy_find_memory_regions): New place-holder method.
12094 (dummy_make_corefile_notes): New place-holder method.
12095 (init_dummy_target): Initialize new dummy target vectors.
12096 * exec.c (exec_set_find_memory_regions): New function.
12097 Allow the exec_ops vector for memory regions to be taken over.
12098 (exec_make_note_section): New function, target vector method.
12099 * defs.h (exec_set_find_memory_regions): Export prototype.
12100 * procfs.c (proc_find_memory_regions): New function, corefile method.
12101 (procfs_make_note_section): New function, corefile method.
12102 (init_procfs_ops): Set new target vector pointers.
12103 (find_memory_regions_callback): New function.
12104 (procfs_do_thread_registers): New function.
12105 (procfs_corefile_thread_callback): New function.
12106 * sol-thread.c (sol_find_memory_regions): New function.
12107 (sol_make_note_section): New function.
12108 (init_sol_thread_ops): Initialize new target vectors.
12109 * inftarg.c (inftarg_set_find_memory_regions): New function.
12110 Allow to_find_memory_regions vector to be taken over.
12111 (inftarg_set_make_corefile_notes): New function.
12112 Allow to_make_corefile_notes vector to be taken over.
12113 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
12114 interface layer if not target_has_execution (may be a corefile).
12115 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
12116 * config/sparc/sun4sol2.mh: Ditto.
12117 * config/alpha/alpha-linux.mh: Ditto.
12118 * config/arm/linux.mh: Ditto.
12119 * config/i386/x86-64linux.mh: Ditto.
12120 * config/ia64/linux.mh: Ditto.
12121 * config/m68k/linux.mh: Ditto.
12122 * config/mips/linux.mh: Ditto.
12123 * config/powerpc/linux.mh: Ditto.
12124 * config/sparc/linux.mh: Ditto.
12125
12126 2002-01-07 Michael Snyder <msnyder@redhat.com>
12127
12128 * arm-linux-nat.c: Remove references to regcache.c internal data
12129 (registers[] and register_valid[]).
12130
12131 2002-01-07 Michael Snyder <msnyder@redhat.com>
12132
12133 * linux-proc.c: New file. Implement child_pid_to_exec_file,
12134 so that attaching to a pid will automatically read the process's
12135 symbol file and shlibs.
12136 * Makefile.in: Add rule for linux-proc.o.
12137 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
12138 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
12139 * config/arm/linux.mh: Ditto.
12140 * config/i386/linux.mh: Ditto.
12141 * config/i386/x86-64linux.mh: Ditto.
12142 * config/ia64/linux.mh: Ditto.
12143 * config/m68k/linux.mh: Ditto.
12144 * config/mips/linux.mh: Ditto.
12145 * config/powerpc/linux.mh: Ditto.
12146 * config/sparc/linux.mh: Ditto.
12147
12148 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
12149
12150 * win32-nat.c: Add i386-tdep.h dependency.
12151
12152 2002-01-07 Michael Snyder <msnyder@redhat.com>
12153
12154 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
12155 instead of bfd_get_arch_size. Don't bail out just because
12156 there's no exec_bfd.
12157
12158 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
12159 * p-valprint.c (pascal_object_print_value): Ditto.
12160 * somread.c (som_symtab_read): Ditto.
12161 * symfile.c (simple_free_overlay_region_table): Ditto.
12162 * valops.c (value_assign): Ditto.
12163
12164 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
12165 use tilde_expand and strerror for opening save-tracepoints file.
12166
12167 * thread-db.c (thread_db_new_objfile): Indendation fix.
12168
12169 * infptrace.c (GDB_MAX_ALLOCA): New define.
12170 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
12171 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
12172 can be overridden with whatever value is appropriate to the host).
12173 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
12174 alloca to allocate potentially large buffer.
12175 * rs6000-nat.c (child_xfer_memory): Ditto.
12176 * symm-nat.c (child_xfer_memory): Ditto.
12177 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
12178
12179 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
12180
12181 From Nick Clifton <nickc@redhat.com>
12182 * d10v-tdep.c: Set STACK_START to 0x200bffe.
12183
12184 2002-01-07 Michael Snyder <msnyder@redhat.com>
12185
12186 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
12187 Don't use exec_bfd if it's NULL.
12188
12189 2002-01-06 Mark Kettenis <kettenis@gnu.org>
12190
12191 * valops.c (value_arg_coerce): Fix formatting.
12192
12193 2002-01-06 Andrew Cagney <ac131313@redhat.com>
12194
12195 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
12196 * gnu-nat.c: Ditto.
12197
12198 2002-01-06 Andrew Cagney <ac131313@redhat.com>
12199
12200 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
12201 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
12202 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
12203 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
12204 z8k-coff have not been multi-arched. Update z8k-coff build
12205 status.
12206
12207 2002-01-06 Andrew Cagney <ac131313@redhat.com>
12208
12209 * MAINTAINERS: Mark a29k target as obsolete.
12210 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
12211 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
12212 comments.
12213 * NEWS: Note that a29k targets are obsolete.
12214 * a29k-tdep.c: Mark as obsolete.
12215 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
12216 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
12217 a29k-*-vxworks* targets as obsolete.
12218 * remote-adapt.c: Obsolete.
12219 * remote-eb.c: Obsolete.
12220 * remote-mm.c: Obsolete.
12221 * remote-udi.c: Obsolete.
12222 * config/a29k/a29k-udi.mt: Obsolete.
12223 * config/a29k/a29k.mt: Obsolete.
12224 * config/a29k/tm-a29k.h: Obsolete.
12225 * config/a29k/tm-vx29k.h: Obsolete.
12226 * config/a29k/vx29k.mt: Obsolete.
12227
12228 2002-01-05 Andrew Cagney <ac131313@redhat.com>
12229
12230 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
12231 with BFD_ENDIAN_BIG.
12232
12233 2002-01-05 Andrew Cagney <ac131313@redhat.com>
12234
12235 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
12236 * configure, config.in: Re-generate.
12237 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
12238 * defs.h: Do not include <endian.h>.
12239
12240 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
12241
12242 * acconfig.h (HAVE_PT_GETXMMREGS): New.
12243 * config.in: Regenerate.
12244 * configure.in: Update copyright years.
12245 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
12246 * configure: Regenerate.
12247 * i386bsd-nat.c: Update copyright years.
12248 (fill_gregset): Use regcache_collect.
12249 (fetch_inferior_registers): Only fetch integer registers
12250 if requested to do so. Add support for XMM registers
12251 using PT_GETXMMREGS.
12252 (store_inferior_registers): Only store integer registers
12253 if requested to do so. Add support for XMM registers
12254 using PT_SETXMMREGS.
12255 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
12256 (store_inferior_registers): Remove.
12257 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
12258 (fetch_elfcore_registers): New function.
12259 (i386nbsd_elfcore_fns): New.
12260 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
12261 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
12262 i386bsd-nat.o.
12263 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
12264 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
12265 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
12266 * config/i386/tm-nbsd.h: Update copyright years.
12267 (HAVE_SSE_REGS): Define.
12268 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
12269 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
12270 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
12271 (SIGCONTEXT_PC_OFFSET): Remove.
12272 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
12273
12274 2002-01-05 Andrew Cagney <ac131313@redhat.com>
12275
12276 * configure.tgt: Remove powerpc-*-macos* target.
12277 * config/m68k/xm-mpw.h: Delete file.
12278 * config/xm-mpw.h: Delete file.
12279 * ser-mac.c: Delete file.
12280 * mpw-make.sed: Delete file.
12281 * mpw-config.in: Delete file.
12282 * mac-xdep.c: Delete file.
12283 * mac-gdb.r: Delete file.
12284 * mac-defs.h: Delete file.
12285 * mac-nat.c: Delete file.
12286 * config/powerpc/macos.mh: Delete file.
12287 * config/powerpc/macos.mt: Delete file.
12288 * config/powerpc/nm-macos.h: Delete file.
12289 * config/powerpc/tm-macos.h: Delete file.
12290 * source.c (openp, open_source_file): Remove obsolete code.
12291 * top.c (gdb_readline): Ditto.
12292 * utils.c (query): Ditto.
12293 * event-top.c (display_gdb_prompt): Ditto.
12294 * Makefile.in (ser-mac.o): Delete obsolete target.
12295 * NEWS: Update.
12296
12297 2002-01-04 Andrew Cagney <ac131313@redhat.com>
12298
12299 * defs.h (BIG_ENDIAN): Delete macro definition.
12300 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
12301 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
12302 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
12303 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
12304 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
12305 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
12306 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
12307 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
12308 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
12309 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
12310 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
12311 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
12312 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
12313 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
12314 * gdbarch.c: Re-generate.
12315
12316 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
12317
12318 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
12319 for core files.
12320
12321 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
12322
12323 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
12324
12325 2002-01-04 Andrew Cagney <ac131313@redhat.com>
12326
12327 * value.h (value_ptr): Delete typedef.
12328
12329 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
12330
12331 * i386nbsd-nat.c: Update copyright years.
12332 Include i386-tdep.h.
12333
12334 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
12335
12336 * stabsread.c: Update copyright years.
12337
12338 From Debashis Mahata <debashis.mahata@wipro.com>:
12339 (read_struct_fields): Deal with Sun C compiler erroneous stab
12340 output for structs and unions.
12341 Fix PR gdb/269.
12342
12343 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
12344
12345 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
12346 prototype.
12347
12348 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
12349
12350 * cp-abi.c: Fix whitespace.
12351 (baseclass_offset): New wrapper function.
12352 * cp-abi.h (baseclass_offset): Add prototype.
12353 (struct cp_abi_ops): Add baseclass_offset pointer.
12354
12355 * valops.c (vb_match): Move to...
12356 * gnu-v2-abi.c (vb_match): here.
12357 * valops.c (baseclass_offset): Move to...
12358 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
12359
12360 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
12361
12362 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
12363 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
12364 * hpacc-abi.c (init_hpacc_ops): Likewise.
12365
12366 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
12367
12368 * valops.c (find_overload_match): Accept obj as a
12369 reference parameter. Update it before returning.
12370 * value.h (find_overload_match): Update prototype.
12371 * eval.c (evaluate_subexp_standard): Pass object to
12372 find_overload_match by reference.
12373
12374 2002-01-03 Andrew Cagney <ac131313@redhat.com>
12375
12376 * valarith.c: Replace value_ptr with struct value pointer. Remove
12377 register attribute from value declarations.
12378 * valops.c: Ditto.
12379 * value.h: Ditto.
12380 * scm-lang.c (scm_lookup_name): Ditto.
12381
12382 2002-01-03 Michael Snyder <msnyder@redhat.com>
12383
12384 Abstract the functionality of iterating over mapped memory
12385 regions into a general purpose iterator function.
12386 * procfs.c (iterate_over_mappings): New function, general purpose
12387 iterator for memory sections.
12388 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
12389 (solib_mappings_callback): New function, callback for above.
12390 (info_proc_mappings): Reimpliment using iterate_over_mappings.
12391 (info_mappings_callback): New function, callback for above.
12392
12393 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
12394
12395 2002-01-01 Mark Kettenis <kettenis@gnu.org>
12396
12397 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
12398 * i386-tdep.c: Include "elf-bfd.h".
12399 (process_note_abi_tag_sections): New function.
12400 (i386_gdbarch_init): Add code to recognize various OS/ABI
12401 combinations.
12402
12403 * maint.c (_initialize_maint_cmds): Add missing \ in
12404 string-literal.
12405
12406 For older changes see ChangeLog-2001
12407 \f
12408 Local Variables:
12409 mode: change-log
12410 left-margin: 8
12411 fill-column: 74
12412 version-control: never
12413 End: