2002-10-25 Andrew Cagney <cagney@redhat.com>
[binutils-gdb.git] / gdb / ChangeLog
1 2002-10-25 Andrew Cagney <cagney@redhat.com>
2
3 * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
4
5 2002-10-24 Martin M. Hunt <hunt@redhat.com>
6
7 * utils.c (string_to_core_addr): Revert patch from 11 Oct.
8
9 2002-10-24 Elena Zannoni <ezannoni@redhat.com>
10
11 * symtab.h (INIT_SAL): Delete macro.
12 (init_sal): Export.
13 * symtab.c (init_sal): New function.
14
15 * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
16 to init_sal function call.
17 (find_sal_from_funcs_and_line): Ditto.
18 (all_sals_for_line): Ditto.
19 * breakpoint.c (create_internal_breakpoint): Ditto.
20 (create_fork_vfork_event_catchpoint): Ditto.
21 (create_exec_event_catchpoint): Ditto.
22 (parse_breakpoint_sals): Ditto.
23 (watch_command_1): Ditto.
24 (handle_gnu_4_16_catch_command): Ditto.
25 (clear_command): Ditto.
26 * hppa-tdep.c (child_enable_exception_callback): Ditto.
27 * infcmd.c (run_stack_dummy): Ditto.
28 * infrun.c (process_event_stop_test): Ditto.
29 (check_sigtramp2): Ditto.
30 (step_over_function): Ditto.
31 * linespec.c (decode_line_2): Ditto.
32 (decode_line_1): Ditto.
33 * source.c (line_info): Ditto.
34 * symtab.c (find_pc_sect_line): Ditto.
35
36 2002-10-24 Michal Ludvig <mludvig@suse.cz>
37
38 * dwarf2cfi.c (struct context)
39 (struct context_reg): Moved to dwarf2cfi.h
40 (context_alloc, frame_state_alloc, context_cpy):
41 Made extern instead of static, removed prototypes.
42 * dwarf2cfi.h (struct context)
43 (struct context_reg): New, moved from dwarf2cfi.c
44 (context_alloc, frame_state_alloc, context_cpy):
45 New prototypes.
46 * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
47 Changed from static to extern.
48 (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
49 (LINUX_SIGCONTEXT_FP_OFFSET)
50 (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
51 (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
52 (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
53 * x86-64-tdep.c (x86_64_gdbarch_init): Several
54 set_gdbarch_*() calls now use x86-64 specific functions
55 instead of DWARF2 CFI ones.
56 * x86-64-tdep.h (x86_64_linux_in_sigtramp)
57 (x86_64_linux_frame_chain, x86_64_init_frame_pc)
58 (x86_64_init_extra_frame_info): New prototypes.
59
60 2002-10-23 David Carlton <carlton@math.stanford.edu>
61
62 * linespec.c: #include "parser-defs.h".
63 Delete prototype for find_template_name_end.
64 * Makefile.in (linespec.o): Depend on $(parser_defs_h).
65
66 2002-10-23 Jeff Johnston <jjohnstn@redhat.com>
67
68 * NEWS: add recent mi fixes.
69 * varobj.c (struct varobj): Add new "updated" flag.
70 (new_variable): Default "updated" flag to 0.
71 (varobj_set_value): Set "updated" flag to 1 if value
72 changes.
73 (varobj_update): Check varobj "updated" flag before
74 comparing old and refreshed values. Fix for
75 PR gdb/702.
76
77 2002-10-23 David Carlton <carlton@math.stanford.edu>
78
79 * parse.c (parse_exp_1): Use BLOCK_START.
80 * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
81 SYMBOL_BLOCK_VALUE.
82 * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
83
84 2002-10-23 David Carlton <carlton@math.stanford.edu>
85
86 * symtab.c: Delete cplusplus_hint.
87 Delete prototype for find_template_name_end.
88
89 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
90
91 * symtab.h: Update comment.
92
93 2002-10-23 Michael Snyder <msnyder@redhat.com>
94
95 * printcmd.c (address_info): Restore quotes in output.
96 * valops.c (value_of_local): Restore quotes in error message.
97
98 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
99
100 * symtab.c (symbol_demangled_name): New function.
101 * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
102 turning most of it into a function.
103 (symbol_demangled_name): Export.
104
105 2002-10-23 Michael Snyder <msnyder@redhat.com>
106
107 * valops.c (value_of_local): Restore quotes in error message.
108
109 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
110
111 * symtab.c (symbol_init_language_specific): New function.
112 * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
113 turning most of it into a function.
114 (symbol_init_language_specific): Export.
115
116 2002-10-23 David Carlton <carlton@math.stanford.edu>
117
118 * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
119 (dwarf_attr_name): Ditto.
120 (dwarf_type_encoding_name): Ditto.
121 (scan_partial_symbols): Descend into DW_TAG_namespace entries.
122 (process_die): Handle DW_TAG_namespace,
123 DW_TAG_imported_declaration, DW_TAG_imported_module.
124 (read_namespace): New function.
125
126 2002-10-22 Joel Brobecker <brobecker@gnat.com>
127
128 * configure.in: Define NEW_PROC_API on Interix too.
129 * configure: Regenerate.
130
131 2002-10-21 Joel Brobecker <brobecker@gnat.com>
132
133 * configure: Regenerate using the proper version of autoconf.
134
135 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
136
137 * findvar.c (read_var_value): Temporarily disable TLS code, until
138 complete TLS support is added.
139
140 2002-10-21 Jim Blandy <jimb@redhat.com>
141 Elena Zannoni <ezannoni@redhat.com>
142
143 * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
144 for thread local storage locations.
145 (struct symbol): Add objfile field.
146 (SYMBOL_OBJFILE): Define.
147 * dwarf2read.c (is_thread_local): New static variable.
148 (new_symbol): If variable is in thread local fill in address class
149 and objfile appropriately.
150 (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
151 stack operation.
152 * printcmd.c (address_info): Print the information for thread
153 local storage variable.
154 * findvar.c (read_var_value): In case of thread local variable,
155 defer to the target vector code to compute address.
156
157 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
158
159 * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
160 * solib-svr4.h (svr4_fetch_objfile_link_map): Export.
161
162 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
163
164 * symtab.h (address_class): Rename
165 LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
166 * hpread.c (hpread_process_one_debug_symbol): Ditto.
167 * printcmd.c (address_info): Ditto.
168 * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
169
170 2002-10-20 Mark Kettenis <kettenis@gnu.org>
171
172 * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
173 DBREG_DRX macro to acces debug registers.
174
175 * Makefile.in (i386obsd-tdep.o): New target.
176
177 * solib-sunos.c: Include "bcache.h" and "regcache.h".
178 * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
179
180 * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
181 * config/i386/obsd.mt: New file.
182 * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
183 i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
184 * i386obsd-nat.c (_initialize_i386obsd_nat): Set
185 i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
186 i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
187 * i386obsd-tdep.c: New file.
188
189 2002-10-19 Adam Fedor <fedor@gnu.org>
190
191 * objc-exp.y (name_not_typename): Fix invalid comment.
192
193 2002-10-20 Mark Kettenis <kettenis@gnu.org>
194
195 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
196 to allocate partial syms and macro byte caches.
197
198 2002-10-18 David Carlton <carlton@math.stanford.edu>
199
200 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
201
202 2002-10-18 Adam Fedor <fedor@gnu.org>
203
204 * stabsread.c (find_name_end): New function.
205 (define_symbol): Use it.
206
207 2002-10-18 Daniel Jacobowitz <drow@mvista.com>
208
209 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
210 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
211 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
212 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
213
214 2002-10-17 David Carlton <carlton@math.stanford.edu>
215
216 * symfile.h: Add opaque declaration for struct obstack.
217 Declare obsavestring to take a const char *.
218 * symfile.c (obsavestring): Make first argument a const char *.
219
220 2002-10-16 Adam Fedor <fedor@gnu.org>
221
222 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
223 names when matching breakpoints in current file.
224
225 2002-10-16 Kevin Buettner <kevinb@redhat.com>
226
227 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
228 (read_tag_pointer_type): Add address class support.
229 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
230 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
231 New methods.
232 * gdbarch.h, gdbarch.c: Regenerate.
233 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
234 (make_type_with_address_space, recursive_type_dump): Add address
235 class support.
236 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
237 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
238 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
239
240 2002-10-16 Klee Dienes <kdienes@apple.com>
241
242 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
243 to get the last character of a char[] buffer, not
244 name[sizeof(vptr_name)-1].
245
246 2002-10-14 Adam Fedor <fedor@gnu.org>
247
248 * symtab.h: New objc_specific struct.
249 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
250 (SYMBOL_DEMANGLED_NAME): Likewise.
251
252 2002-10-14 Adam Fedor <fedor@gnu.org>
253
254 * symfile.c (init_filename_language_table): Add ObjC file extension.
255
256 2002-10-14 Adam Fedor <fedor@gnu.org>
257
258 * utils.c (puts_filtered_tabular): New function.
259 (fprintf_symbol_filtered): Get ObjC demangled name.
260 * defs.h (puts_filtered_tabular): Declared.
261
262 2002-10-14 Kevin Buettner <kevinb@redhat.com>
263
264 * c-lang.h (c_type_print_varspec_prefix): Delete.
265 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
266 ``need_post_space'' parameter. Adjust all callers.
267
268 2002-10-14 Daniel Jacobowitz <drow@mvista.com>
269
270 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
271 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
272 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
273 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
274
275 2002-10-13 Adam Fedor <fedor@gnu.org>
276
277 * source.c (print_source_lines): Update comments.
278
279 2002-10-13 Adam Fedor <fedor@gnu.org>
280
281 * valops.c (value_of_local): New function.
282 (value_of_this): Use it.
283 * value.h (value_of_local): Declared.
284
285 2002-10-13 Adam Fedor <fedor@gnu.org>
286
287 * parse.c: (length_of_subexp, prefixify_subexp): Handle
288 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
289
290 2002-10-12 Adam Fedor <fedor@gnu.org>
291
292 * language.c (binop_result_type): Add language_objc to case.
293 (integral_type): Likewise.
294 (character_type): Likewise.
295 (string_type): Likewise.
296 (boolean_type): Likewise.
297 (structured_type): Likewise.
298 (binop_type_check): Likewise.
299
300 2002-10-11 Adam Fedor <fedor@gnu.org>
301
302 * printcmd.c (address_info): Print 'self' for ObjC.
303
304 2002-10-11 Adam Fedor <fedor@gnu.org>
305
306 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
307 OP_SELF.
308
309 2002-10-11 Adam Fedor <fedor@gnu.org>
310
311 * language.h (CAST_IS_CONVERSION): Add language_objc.
312
313 2002-10-11 Adam Fedor <fedor@gnu.org>
314
315 * defs.h (enum language): Add language_objc.
316
317 2002-10-11 Klee Dienes <kdienes@apple.com>
318
319 * findvar.c (read_memory_typed_address): New function.
320 * gdbcore.h (read_memory_typed_address): Add prototype.
321 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
322 to read a value destined for a CORE_ADDR, not read_memory_integer.
323 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
324 (f77_get_dynamic_lowerbound): Ditto.
325
326 2002-10-11 Martin M. Hunt <hunt@redhat.com>
327
328 * utils.c (string_to_core_addr): After turning string into
329 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
330 which will do necessary sign-extension, etc.
331
332 2002-10-11 Daniel Jacobowitz <drow@mvista.com>
333
334 * c-exp.y (THIS): Delete token and grammar rule.
335 (yylex): Don't return THIS.
336 * cp-valprint.c (vtbl_ptr_name_old): Delete.
337 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
338 * demangle.c (cplus_markers): Update comment. Put '$'
339 first. Remove CPLUS_MARKER.
340 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
341 * jv-exp.y (THIS): Delete token and grammar rule.
342 (yylex): Don't return THIS.
343 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
344 * objc-exp.y (THIS): Delete token and grammar rule.
345 (yylex): Don't return THIS.
346 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
347 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
348 (read_member_functions): Likewise for opname.
349 (read_tilde_fields): Use is_cplus_marker.
350
351 * defs.h (CPLUS_MARKER): Don't define.
352 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
353 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
354 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
355 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
356 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
357
358 * config/i386/tm-i386v4.h: Delete file.
359 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
360 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
361 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
362 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
363 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
364 * config/i386/i386sco5.mt (TM_FILE): Likewise.
365 * config/i386/i386v4.mt (TM_FILE): Likewise.
366 * config/i386/ncr3000.mt (TM_FILE): Likewise.
367
368 2002-10-10 Marko Mlinar <markom@opencores.org>
369
370 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
371 accidentially not commited 2002-10-09
372 * gdbarch.h, gdbarch.c: Re-generate.
373
374 2002-10-09 Marko Mlinar <markom@opencores.org>
375
376 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
377 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
378 * gdbarch.h, gdbarch.c: Re-generate.
379
380 2002-10-08 Petr Sorfa <petrs@caldera.com>
381
382 Revised and re-submitted by John Wolfe <jlw@caldera.com>
383
384 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
385 so we can work on more than one compilation unit at a time. This
386 helps prepare GDB to handle inter-CU die references.
387 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
388 the code to be defined before struct comp_unit_head.
389 (comp_unit_head): Added new members - offset, cu_head,
390 begin_die, next and dwarf2_abbrevs.
391 (dwarf2_abbrevs): Removed single static var; now member of
392 struct comp_unit_head.
393 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
394 members.
395 (psymtab_to_symtab_1): Changed to work with the new
396 struct comp_unit_head.
397 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
398 constructs the dwarf2_abbrevs[] inside the cu_header.
399 (dwarf2_empty_abbrev_table): Now expects a ptr to a
400 dwarf2_abbrev table to clean up.
401 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
402 handling of dwarf2_abbrevs inside the cu_header.
403 (read_partial_die): Now supports the call to the new
404 dwarf2_lookup_abbrev.
405 (read_full_die): Now supports the call to the new
406 dwarf2_lookup_abbrev.
407
408 2002-10-06 Christopher Faylor <cgf@redhat.com>
409
410 * Makefile.in (install-gdbtk): Add missing continuation backslash to
411 insure that shell variables, such as "transformed_name" are propagated
412 to later shell statements in rule.
413
414 2002-10-06 Mark Kettenis <kettenis@gnu.org>
415
416 * config/i386/nm-i386sco.h: Add protection against
417 multiple-inclusion. Include "i386/nm-i386v.h".
418 (REGISTER_U_ADDR): Remove define.
419 (i386_register_u_addr): Remove prototype.
420
421 2002-10-04 Michael Snyder <msnyder@redhat.com>
422
423 * m32r-stub.c (handle_exception): Make sure exception is "trap"
424 before treating it as a single-step event.
425
426 2002-10-03 Adam Fedor <fedor@gnu.org>
427
428 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
429 (objc_demangle): Remove assignment in if statements, Replace
430 free with xfree.
431 (add_msglist): Likewise.
432 (end_msglist): Likewise.
433 (complare_selectors): Likewise.
434 (selectors_info): Likewise.
435 (compare_classes): Likewise.
436 (classes_info): Likewise.
437 (print_object_command): Likewise.
438 (find_objc_msgcall_submethod): Replace PTR with void *.
439 * objc-lang.h: Remove check for __STDC__.
440
441 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
442
443 * ui-out.h (ui_out_field_fmt_int): New prototype.
444 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
445 of field width and alignment.
446 * stack.c (print_frame_info_base): When printing frame level, use
447 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
448 PR gdb/192
449
450 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
451
452 * MAINTAINERS: Add self to Write After Approval list.
453
454 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
455
456 * infcmd.c (interrupt_target_command_wrapper): Delete.
457 (interrupt_target_command): Make non static.
458 (nofp_registers_info): Make static.
459 * stack.c (return_command_wrapper): Delete.
460 (return_command): Make non static.
461
462 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
463
464 * event-top.c (gdb_setup_readline): New function. Code moved from
465 _initialize_event_loop().
466 (_initialize_event_loop): Call gdb_setup_readline().
467
468 2002-10-02 Andrew Cagney <ac131313@redhat.com>
469
470 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
471 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
472 * gdbarch.h, gdbarch.c: Re-generate.
473
474 2002-10-02 Daniel Jacobowitz <drow@mvista.com>
475
476 Fix PR gdb/778
477 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
478 before recursing.
479 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
480 of fill_in_vptr_fieldno.
481
482 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
483
484 * inferior.h (registers_info, stepi_command, nexti_command,
485 continue_command, interrupt_target_command): Export from infcmd.c.
486 * frame.h (args_info, selected_frame_level_changed_hook,
487 return_command): Export from stack.c.
488 * v850ice.c (stepi_command, nexti_command, continue_command): use
489 prototypes from inferior.h.
490 * tracepoint.c (registers_info, args_info, locals_info): Use
491 prototypes from frame.h and inferior.h.
492 * Makefile.in (mi-main.o): Add dependency on frame.h.
493
494 2002-10-02 Andrew Cagney <ac131313@redhat.com>
495
496 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
497 value in register 3 adjusted by ppc_gp0_regnum.
498
499 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
500
501 2002-10-02 Marko Mlinar <markom@opencores.org>
502
503 * MAINTAINERS: Add myself to the Write After Approval list.
504
505 2002-10-01 Alexandre Oliva <aoliva@redhat.com>
506
507 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
508 of the section for the N64 ABI, fixed.
509
510 * config/mips/tm-irix6.h: Include solib.h.
511
512 2002-10-01 Elena Zannoni <ezannoni@redhat.com>
513
514 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
515 GNU operators.
516
517 2002-10-01 Andrew Cagney <ac131313@redhat.com>
518
519 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
520 and that "mi0" syntax has been removed.
521
522 2002-09-30 David Carlton <carlton@math.stanford.edu>
523
524 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
525 * ppc-sysv-tdep.c: #include "gdb_string.h".
526 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
527 pacify GCC.
528
529 2002-10-01 Andrew Cagney <ac131313@redhat.com>
530
531 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
532 "vrsave"'s register number.
533
534 2002-09-30 Andrew Cagney <ac131313@redhat.com>
535
536 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
537 use frame_unwind_signed_register to obtain the PC.
538 (mips_frame_chain): Handle a generic dummy frame.
539 (mips_init_extra_frame_info): When a generic dummy frame, don't
540 re-compute the frame base.
541 (mips_pop_frame): Handle generic dummy frames.
542 (mips_gdbarch_init): When generic dummy frames, set
543 use_generic_dummy_frames, push_dummy_frame to
544 generic_push_dummy_frame, pc_in_call_dummy to
545 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
546 generic_save_dummy_frame_tos.
547
548 2002-09-30 Andrew Cagney <ac131313@redhat.com>
549
550 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
551 against TOP when TOP was explictly set.
552 (generic_push_dummy_frame): Set TOP to zero.
553
554 2002-09-30 Elena Zannoni <ezannoni@redhat.com>
555
556 * event-loop.c (start_event_loop): Rename variable 'result' to
557 'gdb_result', to avoid conflicts with upcoming intepreters changes.
558
559 2002-09-30 Keith Seitz <keiths@redhat.com>
560
561 * gdb-events.sh (selected_thread_changed): New event.
562 * gdb-events.c: Regenerated.
563 * gdb-events.h: Regenerated.
564
565 2002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
566
567 * MAINTAINERS: Add self to Write After Approval list.
568
569 2002-09-30 Fernando Nasser <fnasser@redhat.com>
570
571 * disasm.c: New file.
572 * disasm.h: New file.
573 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
574 (compare_lines): Ditto.
575 (dump_insns): Ditto.
576 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
577 argument.
578 (do_assembly_only): Ditto.
579 (do_disassembly): Renamed to gdb_disassembly and moved to
580 disasm.c. Sdded uiout argument.
581 * Makefile.in: Add new files. Reorder SFILES list. Update
582 dependencies. Include libgdb.a later in the insight executable.
583
584 2002-09-29 Andrew Cagney <ac131313@redhat.com>
585
586 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
587 bfd/elf64-alpha-fbsd.c.
588
589 2002-09-29 Andrew Cagney <ac131313@redhat.com>
590
591 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
592 i386gnu-tdep.c.
593
594 2002-09-29 Andrew Cagney <ac131313@redhat.com>
595
596 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
597 __FUNCTION__.
598 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
599 function name.
600 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
601 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
602 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
603 (S_msg_sig_post_reply): Ditto.
604
605 2002-09-28 Corinna Vinschen <vinschen@redhat.com>
606
607 * sh-tdep.c (sh_use_struct_convention): Use definition according
608 to ABI.
609 (sh_push_arguments): Store in register with correct endianess.
610 (sh_default_store_return_value): Ditto.
611 (sh_gdbarch_init): Set sizeof long double to 8.
612
613 2002-09-27 Mark Kettenis <kettenis@gnu.org>
614
615 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
616 Fix some whitespace problems.
617
618 2002-09-27 David Carlton <carlton@math.stanford.edu>
619
620 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
621 (mcore-tdep.o): Ditto.
622 (ns32k-tdep.o): Ditto.
623 (ns32knbsd-tdep.o): Ditto.
624 (sh3-rom.o): Ditto.
625 (vax-tdep.o): Ditto.
626 * cris-tdep.c: #include "gdb_string.h"
627 * mcore-tdep.c: Ditto.
628 * ns32k-tdep.c: Ditto.
629 * ns32knbsd-tdep.c: Ditto.
630 * sh3-rom.c: Ditto.
631 * vax-tdep.c: Ditto.
632
633 2002-09-27 David Carlton <carlton@math.stanford.edu>
634
635 * config/djgpp/fnchange.lst: Add entries for
636 gdb/testsuite/gdb.c++/m-static files.
637
638 2002-09-27 Jim Wilson <wilson@redhat.com>
639
640 * MAINTAINERS: Add myself to the Write After Approval list.
641
642 2002-09-26 Martin M. Hunt <hunt@redhat.com>
643
644 * mips-tdep.c (find_proc_desc): Initialize startaddr.
645
646
647 2002-09-26 Andrew Cagney <ac131313@redhat.com>
648
649 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
650 frame.
651
652 2002-09-26 Andrew Cagney <ac131313@redhat.com>
653
654 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
655 (rs6000_struct_return_address): Delete variable.
656 (rs6000_store_struct_return): Update.
657 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
658 deprecated_extract_struct_value_address.
659 (rs6000_frame_align): New function.
660 (rs6000_gdbarch_init): Set frame_align.
661
662 2002-09-26 Andrew Cagney <ac131313@redhat.com>
663
664 From Grace Sainsbury <graces@redhat.com>:
665 * Makefile.in (gdbtk-main.o): New target.
666 (gdb.o): New target.
667 (main_h): Define.
668 (main.o): Update dependencies.
669 (gdb$(EXEEXT)): Add gdb.o.
670 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
671 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
672 (SUBDIR_GDBTK_CLEAN): Set.
673 (install-gdbtk): Install the insight binary.
674 (uninstall-gdbtk): New target.
675 (all-gdbtk, clean-gdbtk): New rule.
676 * top.c (use_windows): Default to zero.
677 * main.c: Include "main.h".
678 (main): Delete.
679 (struct captured_main_args): Delete.
680 (gdb_main): New function.
681 * main.h: New file.
682 * gdb.c: New File.
683
684 2002-09-25 Andrew Cagney <cagney@redhat.com>
685
686 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
687 (frame_map_regnum_to_name): New function.
688 (frame_map_name_to_regnum): New function.
689 * frame.h (frame_map_name_to_regnum): Declare.
690 (frame_map_regnum_to_name): Declare.
691 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
692 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
693 * parse.c: Do not include "builtin-regs.h".
694 (target_map_name_to_register): Delete function.
695 (write_dollar_variable): Use frame_map_name_to_regnum.
696 * parser-defs.h (target_map_name_to_register): Delete declaration.
697 * expprint.c: Include "frame.h".
698 (print_subexp): Use frame_map_regnum_to_name.
699 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
700 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
701
702 2002-09-25 Andrew Cagney <ac131313@redhat.com>
703
704 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
705 wasn't saved, and the next innermost frame is a dummy, return the
706 dummy frame's link register.
707
708 2002-09-24 Jim Blandy <jimb@redhat.com>
709
710 Fix from Paul Breed:
711 * main.c (captured_main): Add a `break' after the case for 'b'.
712
713 2002-09-24 Keith Seitz <keiths@redhat.com>
714
715 * varobj.c (c_type_of_child): Use get_target_type instead
716 of TYPE_TARGET_TYPE.
717
718 2002-09-22 Fernando Nasser <fnasser@redhat.com>
719
720 * source.c (get_current_or_default_source_symtab_and_line): Remove
721 function.
722 (set_default_source_symtab_and_line): New function. Attempts to
723 determine a source file to list lines from if one is not currently
724 defined.
725 (get_current_source_symtab_and_line): Initialize sal.pc and
726 sal.end fields.
727 (set_current_source_symtab_and_line): Mark argument as const.
728 * source.h: Update declarations and comments.
729 * linespec.c (decode_line_1): Replace call to removed routine above.
730 * stack.c (print_frame_info_base): Ditto.
731 * cli/cli-cmds.c (edit_command): Ditto.
732 (list_command): Ditto.
733
734 2002-09-22 Fernando Nasser <fnasser@redhat.com>
735
736 * source.c (get_current_or_default_source_symtab_and_line): Initialize
737 sal.pc and sal.end fields.
738 (get_current_or_default_source_symtab_and_line): Ditto.
739 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
740 so we do not cause a new source symtab to be searched for (reverting an
741 unintentional change from the 2002-09-20 patch).
742 * scm-lang.c (scm_unpac): Ditto.
743
744 2002-09-21 Andrew Cagney <cagney@redhat.com>
745
746 * complaints.c (symfile_explanations): Remove new-line from
747 ``isolated_message''.
748 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
749 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
750
751 2002-09-20 Nick Clifton <nickc@redhat.com>
752
753 * NEWS: Announce that V850EA ISA is no longer supported.
754 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
755
756 2002-09-20 David Carlton <carlton@math.stanford.edu>
757
758 * Makefile.in (c-lang.o): Correct dependencies.
759 (utils.o): Gather dependencies.
760 (charset.o): Move.
761 * c-lang.c: #include "gdb_string.h"
762
763 2002-09-20 Fernando Nasser <fnasser@redhat.com>
764
765 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
766 * cli/cli-cmds.c (list_command): New function. Implements the new
767 cli edit command.
768 (_init_cli_cmds): Add new command definition.
769 * gdb.1: Document edit command.
770 * doc/gdb.texinfo: Document edit command.
771
772 2002-09-20 Fernando Nasser <fnasser@redhat.com>
773
774 * source.c: Make global variables current_source_symtab and
775 current_source_line static.
776 (list_command): Moved to cli/cli-cmds.c.
777 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
778 (get_first_line_listed): New accessor function.
779 (get_lines_to_list): New accessor function.
780 (get_current_source_symtab_and_line): New function. Retrieves the
781 position in the source code that we consider current.
782 (get_current_or_default_source_symtab_and_line): New function.
783 Like the above but attempts to determine a default position if one
784 is not currently defined.
785 (set_current_source_symtab_and_line): New function. Sets the source
786 code position considered current and returns the previously set one.
787 (clear_current_source_symtab_and_line): Reset stored information about
788 a current source line.
789 (_initialize_source): Remove registration for the "list" command and
790 its alias.
791 * source.h: Add declarations for the new functions above.
792 * symtab.h: Remove declarations for the global variables mentioned
793 above.
794 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
795 obtain current source line.
796 * linespec.c (decode_line_1): Ditto.
797 * macroscope.c (default_macro_scope): Ditto.
798 * scm-lang.c (scm_unpac): Ditto.
799 * stack.c (print_frame_info_base): Ditto.
800 * symfile.c (clear_symtab_users): Ditto.
801 * symtab.c (decode_line_spec): Ditto.
802 * cli/cli-cmds.c (list_command): Moved here from source.c.
803 (ambiguous_line_spec): Moved here from source.c.
804 (_init_cli_cmds): Add definition for "list" and its alias.
805 * Makefile.in: Update dependencies.
806
807 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
808
809 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
810 with what gcc thinks is correct.
811
812 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
813
814 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
815 multiple register push instruction.
816
817 2002-09-19 Jim Blandy <jimb@redhat.com>
818
819 Add support for distinct host and target character sets.
820 * charset.c, charset.h: New files.
821 * c-exp.y: #include "charset.h".
822 (yylex): Convert character and string literals to the target
823 character set, before returning them as the semantic value of the
824 token.
825 * c-lang.c: #include "charset.h".
826 (c_emit_char): Use charset-specific methods to recognize
827 characters with backslash escape forms, to decide which characters
828 to print literally and which to print using numeric escape
829 sequences, and to convert target characters to host characters
830 before printing.
831 * utils.c: #include "charset.h".
832 (no_control_char_error): New function.
833 (parse_escape): Use charset-specific methods to recognize
834 backslash escapes, parse `control character' notation, and convert
835 characters from the host character set to the target character set.
836 * configure.in: Set the default host character set.
837 Check where to find iconv, and what its argument types might be.
838 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
839 * Makefile.in (SFILES): List charset.c.
840 (COMMON_OBS): List charset.o.
841 (charset.o): New rule.
842 (charset_h): New header dependency variable.
843 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
844 (LIBICONV): New variable, set by configure.
845 (CLIBS): Include $(LIBICONV) here.
846 * aclocal.m4, config.in, configure: Regenerated.
847
848 2002-09-19 Joel Brobecker <brobecker@gnat.com>
849
850 * ada-exp.y: Add missing semicolons to end rules. Fixes a
851 bison 1.35 warning.
852
853 2002-09-19 Richard Earnshaw <rearnsha@arm.com>
854
855 * gdb_mbuild.sh: New file.
856
857 2002-09-19 Andrew Cagney <ac131313@redhat.com>
858
859 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
860
861 2002-09-18 Andrew Cagney <ac131313@redhat.com>
862
863 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
864 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
865 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
866 valops.c, value.h: Revert previous change.
867
868 2002-09-18 Michael Snyder <msnyder@redhat.com>
869
870 Preliminary support for Objective-C:
871 * defs.h (language_objc): New enum value.
872 (puts_filtered_tabular): Declaration only, exported from utils.c.
873 (skip_quoted): Delete, declared in completer.h.
874 * c-exp.y: Include completer.h.
875 * p-exp.y: Ditto.
876 * jv-exp.y: Ditto.
877 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
878 New operator enum values.
879 * language.h (CAST_IS_CONVERSION): Test for language_objc.
880 * language.c (binop_result_type): Handle language_objc case.
881 (integral_type, character_type, string_type, boolean_type,
882 structured_type, binop_type_check): Ditto.
883 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
884 (struct objc_specific): Add to general_symbol_info.
885 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
886 (SYMBOL_DEMANGLED_NAME): Handle objc case.
887 * parser-defs.h (struct objc_class_str): New struct type.
888 (start_msglist, end_msglist, add_msglist): Declaration only,
889 exported from objc-lang.c.
890 * value.h (value_of_local, value_nsstring,
891 call_function_by_hand_expecting_type): Exported from valops.c.
892 * valops.c (find_function_addr): Export.
893 (call_function_by_hand_expecting_type): New function.
894 (value_of_local): New function.
895 * symfile.c (init_filename_language_table): Add ".m" extension
896 for Objective-C.
897 * utils.c (puts_filtered_tabular): New function.
898 (fprintf_symbol_filtered): Add objc demangling support (disabled).
899 (set/show demangle): Extend help-string to refer to ObjC.
900 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
901 * stabsread.c (symbol_reference_defined): Objective-C symbols
902 may contain colons: make allowances when scanning stabs strings
903 for colons.
904 (objc_find_colon): New function.
905 * printcmd.c (address_info): If language == objc then print
906 "self" instead of "this".
907 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
908 OP_NSSTRING, and OP_SELF.
909 (prefixify_subexp): Ditto.
910 * source.c (print_source_lines): Mention objc in comment.
911 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
912 method names.
913
914 2002-09-18 Andrew Cagney <ac131313@redhat.com>
915
916 * complaints.h: Update copyright.
917 (struct complaints): Declare.
918 (struct complaint): Make `message' constant.
919 (internal_complaint): Declare.
920 (complaint): Declare.
921 (complaint_root): Delete declaration.
922 (symfile_complaints): Delete declaration.
923 (struct complaints): Add opaque declaration.
924 (clear_complaints): Add a complaints parameter.
925 * complaints.c: Update copyright.
926 (enum complaint_series): Define.
927 (complaint_root): Delete.
928 (struct complaints): Define.
929 (complaint_sentinel, symfile_complaint_book): New variables.
930 (symfile_explanations, symfile_complaints): New variables.
931 New variables.
932 (get_complaints): New function.
933 (vcomplaint): New function.
934 (complaint): New function.
935 (internal_complaint): New function.
936 (complain): Call vcomplain with symfile_complaint.
937 (clear_complaints): Rewrite.
938 (_initialize_complaints): Use add_setshow_command.
939 * Makefile.in (complaints.o): Update dependencies.
940 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
941 to call to clear_complaints.
942 (new_symfile_objfile, reread_symbols): Ditto.
943 (oldsyms_complaint): Delete.
944 (empty_symtab_complaint, unknown_option_complaint): Delete.
945 (free_named_symtabs): Use complaint instead of complain.
946
947 2002-09-18 Michael Snyder <msnyder@redhat.com>
948
949 Contributed by Apple Computer, Inc. Merged with current sources
950 by Adam Fedor <fedor@doc.com> [cagney].
951
952 * objc-lang.c: First clean-up round: comments, indentation.
953 * objc-lang.h: Ditto.
954 * objc-lang.y: Ditto.
955
956 2002-09-18 Andrew Cagney <ac131313@redhat.com>
957
958 * maint.c (maintenance_internal_error): Print the parameter as the
959 error message.
960 (maintenance_internal_warning): New function.
961 (_initialize_maint_cmds): Add command `maint internal-warning'.
962
963 * defs.h (internal_warning, internal_vwarning): Declare.
964 * utils.c (struct internal_problem): Define.
965 (internal_vproblem): New function.
966 (internal_warning): New function.
967 (internal_vwarning): New function.
968 (internal_warning_problem, internal_error_problem): New variables.
969 (internal_verror): Just call internal_vproblem.
970
971 2002-09-18 Michael Snyder <msnyder@redhat.com>
972
973 * objc-lang.c: New file, support for Objective-C.
974 Preliminary check-in, not yet integrated into gdb.
975 * objc-lang.h: New file.
976 * objc-exp.y: New file.
977
978 2002-09-18 Andrew Cagney <ac131313@redhat.com>
979
980 * infrun.c (signal_stop_update): Convert definition to ISO C.
981 (signal_print_update): Ditto.
982 (signal_pass_update): Ditto.
983 * inflow.c (terminal_save_ours): Ditto.
984
985 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
986 comments.
987
988 * config/djgpp/fnchange.lst: Handle name clashes between
989 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
990 bfd/coff-tic80.c.
991
992 * i386-linux-tdep.h: Fix tipo.
993
994 2002-09-18 Adam Fedor <fedor@gnu.org>
995
996 * MAINTAINERS: Add myself to the Write After Approval list.
997
998 2002-09-18 Jim Blandy <jimb@redhat.com>
999
1000 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
1001 texthigh and textlow to reader-specific structs caused
1002 objfile_relocate to miss them. This is fixable, but the work that
1003 the change was supposed to prepare GDB for never got done anyway.
1004
1005 2002-09-18 David Carlton <carlton@math.stanford.edu>
1006
1007 * MAINTAINERS: Alphabetize Write After Approval list.
1008
1009 2002-09-18 Daniel Jacobowitz <drow@mvista.com>
1010
1011 Fix PR gdb/709
1012 * values.c (value_static_field): Call read_var_value.
1013
1014 2002-09-18 Andrew Cagney <ac131313@redhat.com>
1015
1016 * valops.c (hand_function_call): Align the initial stack pointer
1017 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
1018 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
1019 return value.
1020 * mips-tdep.c (mips_frame_align): New function.
1021 (mips_gdbarch_init): Set frame_align.
1022 * gdbarch.sh (FRAME_ALIGN): New method.
1023 * gdbarch.h, gdbarch.c: Re-generate.
1024
1025 2002-09-18 Michal Ludvig <mludvig@suse.cz>
1026
1027 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
1028 registers.
1029
1030 2002-09-17 Andrew Cagney <ac131313@redhat.com>
1031
1032 * NEWS: Mention that MIPS $fp behavior changed.
1033 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
1034 reference to FP_REGNUM.
1035 (mipsnbsd_cannot_store_register): Ditto.
1036 * mips-linux-nat.c: Update copyright.
1037 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
1038 (mips_linux_cannot_store_register): Ditto.
1039 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
1040 * config/mips/tm-mips.h: Update copyright.
1041 (FP_REGNUM): Delete macro.
1042 (MIPS_REGISTER_NAMES): Replace "fp" with "".
1043 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
1044 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
1045 (mips_r3041_reg_names, mips_r3051_reg_names)
1046 (mips_r3081_reg_names): Replace "fp" with "".
1047 Fix PR gdb/480.
1048
1049 2002-09-17 Theodore A. Roth <troth@verinet.com>
1050
1051 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
1052 generic_read_register_dummy() (PR gdb/703).
1053 (avr_push_return_address): #if 0 out unused vars.
1054 (avr_gdbarch_init): Enable use of avr_push_return_address().
1055
1056 2002-09-17 Michael Snyder <msnyder@redhat.com>
1057
1058 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
1059 RTE will take care of it.
1060
1061 2002-09-17 Andrew Cagney <ac131313@redhat.com>
1062
1063 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
1064 invalid, return SP_REGNUM.
1065
1066 2002-09-17 Michael Snyder <msnyder@redhat.com>
1067
1068 * mips-tdep.c (mips_pop_frame): Read saved values of floating
1069 point registers without sign extension.
1070
1071 2002-09-17 Andrew Cagney <cagney@redhat.com>
1072
1073 * blockframe.c (deprecated_read_register_dummy): Rename
1074 generic_read_register_dummy.
1075 * frame.c (frame_unwind_signed_register): New function.
1076 (frame_unwind_unsigned_register): New function.
1077 * frame.h (frame_unwind_signed_register): Declare.
1078 (frame_unwind_unsigned_register): Declare.
1079 (deprecated_read_register_dummy): Rename
1080 generic_read_register_dummy.
1081
1082 * h8300-tdep.c (h8300_frame_chain): Update.
1083 (h8300_frame_saved_pc): Update.
1084 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
1085 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
1086 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
1087 (s390_frame_chain): Update.
1088 * v850-tdep.c (v850_find_callers_reg): Update.
1089 (v850_frame_saved_pc): Update.
1090 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
1091 (m32r_find_callers_reg): Update.
1092 (m32r_frame_saved_pc): Update.
1093 * sh-tdep.c (sh_find_callers_reg): Update.
1094 (sh64_get_saved_pr): Update.
1095 (sh_init_extra_frame_info): Update.
1096 (sh_init_extra_frame_info): Update.
1097 (sh64_init_extra_frame_info): Update.
1098 (sh64_init_extra_frame_info): Update.
1099 * mcore-tdep.c (mcore_find_callers_reg): Update.
1100 (mcore_frame_saved_pc): Update.
1101 (mcore_init_extra_frame_info): Update.
1102 * i386-tdep.c (i386_frame_saved_pc): Update.
1103 * ia64-tdep.c (ia64_frame_saved_pc): Update.
1104 (ia64_init_extra_frame_info): Update.
1105 (ia64_init_extra_frame_info): Update.
1106 * d10v-tdep.c (d10v_frame_saved_pc): Update.
1107 * cris-tdep.c (cris_init_extra_frame_info): Update.
1108 * avr-tdep.c (avr_frame_chain): Update.
1109 (avr_init_extra_frame_info): Update.
1110 (avr_frame_saved_pc): Update.
1111 * arm-tdep.c (arm_find_callers_reg): Update.
1112 (arm_init_extra_frame_info): Update.
1113 (arm_frame_saved_pc): Update.
1114
1115 2002-09-17 Tom Tromey <tromey@redhat.com>
1116
1117 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
1118 is "'".
1119
1120 2002-09-17 Corinna Vinschen <vinschen@redhat.com>
1121
1122 * MAINTAINERS: Remove "non multi-arched" text from h8300.
1123 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
1124 NEXT_PROLOGUE_INSN.
1125 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
1126 NEXT_PROLOGUE_INSN.
1127
1128 2002-09-16 Joel Brobecker <brobecker@gnat.com>
1129
1130 * osfsolib.c: Remove file, replaced by solib-osf.c.
1131 * Makefile.in: Remove compilation rules for osfsolib.c.
1132
1133 2002-09-16 David Carlton <carlton@math.stanford.edu>
1134
1135 * cp-valprint.c (cp_print_class_method): Correct args to
1136 check_stub_method_group.
1137
1138 2002-09-16 Corinna Vinschen <vinschen@redhat.com>
1139
1140 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
1141 `set architecture'. Unify naming convention of functions.
1142 (h8300_skip_prologue): Improve prologue analysis.
1143 (h8300_push_arguments): Rewritten to more closely match GCC's
1144 bizarre argument-passing behavior, along with the comment describing
1145 said behavior.
1146 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
1147 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
1148 sim, remote-e7000.c, remote-hms.c and remote.c
1149
1150 2002-09-15 Mark Kettenis <kettenis@gnu.org>
1151
1152 * i386-tdep.c (gdb_print_insn_i386): Removed.
1153 (i386_print_insn): New function.
1154 (i386_gdbarch_init): Set print_insn to i386_print_insns.
1155 (_initialize_i386_tdep): Don't initialize tm_print_insn and
1156 tm_print_insn_info.
1157
1158 2002-09-14 Mark Kettenis <kettenis@gnu.org>
1159
1160 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
1161 zero.
1162
1163 2002-09-14 Corinna Vinschen <vinschen@redhat.com>
1164
1165 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
1166 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
1167 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
1168
1169 2002-09-13 Christopher Faylor <cgf@redhat.com>
1170
1171 * win32-nat.c (child_create_inferior): Honor 'tty' command.
1172
1173 2002-09-13 Daniel Jacobowitz <drow@mvista.com>
1174
1175 * gdbtypes.c (check_stub_method): Make static.
1176 (check_stub_method_group): New function.
1177 * gdbtypes.h: Update prototypes.
1178 * cp-support.c: New file.
1179 * cp-support.h: New file.
1180
1181 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
1182 (update_method_name_from_physname): New function.
1183 (read_member_functions): Correct method names for operators
1184 and v3 constructors/destructors. Separate v2 constructors and
1185 destructors.
1186 * Makefile.in (stabsread.o): Update dependencies.
1187 (SFILES): Add cp-support.c.
1188 (COMMON_OBS): Add cp-support.o.
1189 (cp_support_h, cp-support.o): Add.
1190
1191 * cp-valprint.c (cp_print_class_method): Call
1192 check_stub_method_group instead of check_stub_method. Remove
1193 extraneous QUITs.
1194 * p-valprint.c (pascal_object_print_class_method): Likewise.
1195 * valops.c (search_struct_method): Likewise.
1196 (find_method_list, value_struct_elt_for_reference): Likewise.
1197
1198 2002-09-13 Andrew Cagney <cagney@redhat.com>
1199
1200 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
1201 * gdbarch.h, gdbarch.c: Regenerate.
1202
1203 2002-09-13 Andrew Cagney <ac131313@redhat.com>
1204
1205 * frame.c (find_saved_register): Delete function.
1206 * frame.h (find_saved_register): Delete declaration.
1207 Fix PR gdb/631.
1208
1209 Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
1210
1211 * mips-tdep.c (read_next_frame_reg): Re-hack using
1212 frame_register_unwind.
1213
1214 Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
1215
1216 * mips-tdep.c (mips_get_saved_register): Re-hack using
1217 frame_register_unwind.
1218
1219 2002-09-12 Joel Brobecker <brobecker@gnat.com>
1220
1221 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
1222 vector. Will be useful for Interix.
1223 * gdbarch.h, gdbarch.c: Regenerate.
1224
1225 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
1226 name of the malloc function by NAME_OF_MALLOC.
1227
1228 2002-09-12 Joel Brobecker <brobecker@gnat.com>
1229
1230 * value.h (find_function_in_inferior): Add const keyword to
1231 one of the parameters. Allows us to invoke this function with
1232 a const char *.
1233 * valops.c (find_function_in_inferior): Likewise.
1234
1235 2002-09-12 Joel Brobecker <brobecker@gnat.com>
1236
1237 * exec.c (xfer_memory): Fix compilation warning with old versions
1238 of GCC.
1239 * tracepoint.c (trace_find_tracepoint_command): Likewise.
1240
1241 2002-09-12 David Carlton <carlton@math.stanford.edu>
1242
1243 * symtab.h: Run through gdb_indent.h.
1244 Add 2002 to Copyright year list.
1245
1246 2002-09-12 Alan Modra <amodra@bigpond.net.au>
1247
1248 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
1249 mach constants.
1250 * MAINTAINERS: Add myself to write after approval list.
1251
1252 2002-09-11 J. Brobecker <brobecker@gnat.com>
1253
1254 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
1255
1256 2002-09-11 J. Brobecker <brobecker@gnat.com>
1257
1258 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
1259 Interix.
1260
1261 2002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
1262
1263 * procfs.c (do_detach): Clear current signal, not just fault.
1264 Corrects problem with breakpoint trap signal leaking to detached
1265 process on Tru64.
1266
1267 2002-09-10 Michael Snyder <msnyder@redhat.com>
1268
1269 * buildsym.c (finish_block): Protect against null pointer.
1270
1271 2002-09-10 Andrew Cagney <cagney@redhat.com>
1272
1273 * infcmd.c (default_print_registers_info): Send all output to
1274 ``file'' instead of ``gdb_stdout''.
1275
1276 2002-09-10 Michael Snyder <msnyder@redhat.com>
1277
1278 * mips-tdep.c (mips_extract_struct_value_address): Make val a
1279 LONGEST, and use signed register read (addresses are sign-
1280 extended for mips).
1281
1282 2002-09-10 Stephane Carrez <stcarrez@nerim.fr>
1283
1284 * event-loop.c (gdb_do_one_event): Make public.
1285 * event-loop.h (gdb_do_one_event): Declare.
1286
1287 2002-09-10 Jeff Law <law@redhat.com>
1288
1289 * infttrace.c (child_resume): Simplify and rework to avoid
1290 TT_PROC_CONTINUE.
1291
1292 2002-09-09 Fred Fish <fnf@intrinsity.com>
1293
1294 * printcmd.c (print_scalar_formatted): "len" is the number of
1295 target bytes, NOT the number of target bits.
1296
1297 2002-09-09 Elena Zannoni <ezannoni@redhat.com>
1298
1299 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
1300 * top.c (init_main): Set rl_terminal_name.
1301
1302 2002-09-08 Aidan Skinner <aidan@velvet.net>
1303
1304 * ada-lang.c (ada_array_bound, ada_type_match,
1305 _initialize_ada_language): Fix K&R definitions.
1306 * ada-tasks.c (get_current_task): Fix K&R definitions.
1307 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
1308
1309 2002-09-07 Christopher Faylor <cgf@redhat.com>
1310
1311 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
1312 Add XP.
1313
1314 2002-09-06 Mark Kettenis <kettenis@gnu.org>
1315
1316 * i386-tdep.c (i386_register_virtual_type,
1317 i386_register_convertible, i386_register_convert_to_virtual,
1318 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
1319 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
1320 (i386_gdbarch_init): Fix comment. Add comments on calls that set
1321 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
1322 Don't set push_arguments twice.
1323
1324 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
1325 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
1326 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
1327 sigtramp_end to NULL.
1328 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
1329 defines.
1330 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
1331
1332 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
1333 whitespace.
1334
1335 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
1336 * gdbarch.h, gdbarch.c: Re-generate.
1337 * blockframe.c (find_pc_sect_partial_function): Convert to use
1338 SIGTRAMP_START_P predicate.
1339
1340 2002-09-05 Michael Snyder <msnyder@redhat.com>
1341
1342 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
1343 generic_dummy_frame method and old method. Also distinguish
1344 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
1345 (arm_extract_return_value): Use new regcache method.
1346
1347 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
1348 adjustment that doesn't conform to the ABI.
1349 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
1350 saved regcache, not from current regcache.
1351
1352 2002-09-05 Andrew Cagney <ac131313@redhat.com>
1353
1354 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
1355 * README: Update.
1356
1357 2002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
1358
1359 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
1360 if arm_apcs_32 is false.
1361
1362 2002-09-04 Andrew Cagney <ac131313@redhat.com>
1363
1364 GDB 5.3 branch created.
1365
1366 2002-09-03 Theodore A. Roth <troth@verinet.com>
1367
1368 * gdb/avr-tdep.c (avr_gdbarch_init): Use
1369 generic_unwind_get_saved_register.
1370
1371 2002-09-03 David Carlton <carlton@math.stanford.edu>
1372
1373 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
1374 argument (PR gdb/653). Update call to smash_to_method_type.
1375 (read_structure_scope): Update call to dwarf2_add_member_fn.
1376
1377 2002-09-03 Michal Ludvig <mludvig@suse.cz>
1378
1379 * x86-64-linux-tdep.c: Include gdb_string.h
1380 * x86-64-linux-nat.c: Ditto.
1381
1382 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1383
1384 * ada-exp.y (yyname, yyrule): Remap global variables that appear
1385 when YYDEBUG is set to 1.
1386 * c-exp.y: Likewise.
1387 * f-exp.y: Likewise.
1388 * jv-exp.y: Likewise.
1389 * m2-exp.y: Likewise.
1390 * p-exp.y: Likewise.
1391
1392 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1393
1394 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
1395 dependency list.
1396 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
1397 solib_svr4_fetch_link_map_offsets to
1398 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
1399 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
1400 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
1401 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
1402 solib-svr4.o, and solib-legacy.o.
1403 * config/i386/tm-nbsd.h: Include solib.h.
1404
1405 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1406
1407 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
1408 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
1409 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
1410 comment noting that this needs its own target configuration.
1411 * config/i386/nbsd.mt: New file.
1412 * config/i386/nbsdaout.mt: Remove.
1413 * config/i386/nbsdelf.mt: Ditto.
1414 * config/i386/tm-nbsdaout.h: Ditto.
1415
1416 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1417
1418 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
1419 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
1420 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
1421 tdep->sigtramp_end.
1422 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
1423 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
1424 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
1425
1426 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1427
1428 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
1429 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
1430 * i386-tdep.h (i386bsd_init_abi): New prototype.
1431 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
1432 function declaration.
1433 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
1434 for NetBSD-a.out or NetBSD-ELF.
1435 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
1436 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
1437 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
1438 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
1439 and nbsd-tdep.h.
1440 (i386nbsd_pc_in_sigtramp): New function.
1441 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1442 i386nbsd_pc_in_sigtramp.
1443 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
1444 and i386nbsdelf_init_abi OS ABI handlers.
1445 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
1446 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
1447
1448 2002-09-02 Mark Kettenis <kettenis@gnu.org>
1449
1450 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
1451 registers if the target really has them.
1452
1453 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1454
1455 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
1456 than nbsd-tdep.h.
1457
1458 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1459
1460 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
1461 list.
1462 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
1463 (alphanbsd_skip_sigtramp_frame): New functions.
1464 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
1465 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
1466 to alphanbsd_sigcontext_addr.
1467
1468 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1469
1470 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
1471 list.
1472 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
1473 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
1474 nbsd_pc_in_sigtramp.
1475 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
1476 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
1477 * nbsd-tdep.c: Include gdb_string.h.
1478 (nbsd_pc_in_sigtramp): New function.
1479 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
1480 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
1481 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1482 ppcnbsd_pc_in_sigtramp.
1483 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
1484 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1485 shnbsd_pc_in_sigtramp.
1486 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
1487 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
1488 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
1489
1490 2002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
1491
1492 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
1493 watchpoints to NULL.
1494 (insert_breakpoints): set val field of watchpoints if NULL.
1495
1496
1497 2002-08-29 Jim Blandy <jimb@redhat.com>
1498
1499 * symtab.c (lookup_symbol_aux): In the cases where we find a
1500 minimal symbol of an appropriate name and use its address to
1501 select a symtab to read and search, use `name' (as passed to us)
1502 as the demangled name when searching the symtab's global and
1503 static blocks, not the minsym's name.
1504
1505 2002-08-29 Keith Seitz <keiths@redhat.com>
1506
1507 * stack.c (print_frame_info_base): Always set current_source_symtab
1508 and current_source_line.
1509
1510 2002-08-29 Donn Terry <donnte@microsoft.com>
1511
1512 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
1513
1514 2002-08-28 Keith Seitz <keiths@redhat.com>
1515
1516 * stack.c (select_frame): Add FIXME concerning selected-frame
1517 events.
1518 (select_frame_command): Send selected-frame-level-changed
1519 event notification, but only if the level actually changed.
1520 (up_silently_base): Add selected-frame-level-changed event
1521 notification.
1522 (down_silently_base): Likewise.
1523
1524 2002-08-28 Andrew Cagney <ac131313@redhat.com>
1525
1526 * Makefile.in: Update dependencies for all gdb/*.c files.
1527
1528 2002-08-27 Tom Tromey <tromey@redhat.com>
1529
1530 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
1531 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
1532 Update dependencies.
1533 * i387-tdep.c: Include gdb_string.h.
1534 * osabi.c: Likewise.
1535 * i386-linux-nat.c: Likewise.
1536 * lin-lwp.c: Likewise.
1537 * ax-gdb.c: Likewise.
1538 * signals/signals.c: Likewise.
1539 * jv-valprint.c: Likewise.
1540 * p-lang.c: Likewise.
1541 * c-valprint.c: Likewise.
1542 * cp-abi.c: Likewise.
1543
1544 2002-08-27 Elena Zannoni <ezannoni@redhat.com>
1545
1546 * cli/cli-script.h (copy_command_lines): Export.
1547 * breakpoint.c: Include cli/cli-script.h.
1548 * Makefile.in (breakpoint.o): Update dependencies.
1549
1550 2002-08-26 Michael Snyder <msnyder@redhat.com>
1551
1552 * breakpoint.c (insert_breakpoints): Protect all references
1553 to 'process_warning'. Shorten long lines.
1554
1555 2002-08-26 Joel Brobecker <brobecker@gnat.com>
1556
1557 * cli/cli-script.c (copy_command_lines): New function.
1558 * defs.h (copy_command_lines): Export.
1559 * testsuite/gdb.base/commands.exp: New tests for commands
1560 attached to a temporary breakpoint, and for commands that
1561 delete the breakpoint they are attached to.
1562
1563 2002-08-26 Michael Snyder <msnyder@redhat.com>
1564
1565 * breakpoint.c (bpstat_stop_status): Instead of copying the
1566 pointer to the breakpoint commands struct, make a new copy
1567 of the struct and point to that.
1568 (bpstat_clear): Free the commands struct.
1569 (bpstat_clear_actions): Free the commands struct.
1570 (bpstat_do_actions): Free the command actions. Also execute
1571 the local cleanups, instead of deleting them.
1572 (delete_breakpoint): Leave the commands field of the bpstat
1573 chain alone -- it will be freed later.
1574
1575 2002-08-26 Kevin Buettner <kevinb@redhat.com>
1576
1577 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
1578 deleted in 2002-08-20 commit. This function is still used by
1579 ppc-linux-nat.c.
1580
1581 2002-08-26 Keith Seitz <keiths@redhat.com>
1582
1583 * gdb-events.sh: Add selected-frame-level-changed event.
1584 * gdb-events.c: Regenerated.
1585 * gdb-events.h: Regenerated.
1586
1587 2002-08-26 Stephane Carrez <stcarrez@nerim.fr>
1588
1589 Fix PR gdb/393:
1590 * inflow.c (terminal_save_ours): New function to save terminal
1591 settings.
1592 * inferior.h (terminal_save_ours): Declare.
1593 * target.c (debug_to_terminal_save_ours): New function.
1594 (cleanup_target): Defaults to_terminal_save_ours.
1595 (update_current_target): Inherit to_terminal_save_ours.
1596 (setup_target_debug): Set to_terminal_save_ours.
1597 * target.h (target_terminal_save_ours): New to save terminal settings.
1598 (target_ops): New member to_terminal_save_ours.
1599 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
1600 * hpux-thread.c (init_hpux_thread_ops): Likewise.
1601 * inftarg.c (init_child_ops): Likewise.
1602 * m3-nat.c (init_m3_ops): Likewise.
1603 * procfs.c (init_procfs_ops): Likewise.
1604 * wince.c (init_child_ops): Likewise.
1605 * win32-nat.c (init_child_ops): Likewise.
1606 * sol-thread.c (init_sol_thread_ops): Likewise.
1607
1608 2002-08-26 Mark Kettenis <kettenis@gnu.org>
1609
1610 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
1611 use regcache_* functions.
1612 (i386_gdbarch_init): Set store_return_value instead of
1613 deprecated_store_return_value.
1614
1615 * regcache.c (regcache_raw_write_signed,
1616 regcache_raw_write_unsigned): New functions.
1617 * regcache.h (regcache_raw_write_signed,
1618 regcache_raw_write_unsigned): New prototypes.
1619
1620 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1621
1622 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
1623 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
1624 source file dependencies. Cleanup corresponding generator rules.
1625
1626 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1627
1628 * regcache.h (register_offset_hack): Declare.
1629 (regcache_cooked_read_using_offset_hack): Declare.
1630 (regcache_cooked_write_using_offset_hack): Declare.
1631
1632 * regcache.c (register_offset_hack): New function.
1633 (regcache_cooked_read_using_offset_hack): New function.
1634 (regcache_cooked_write_using_offset_hack): New function.
1635 (regcache_dump): Check that the registers, according to their
1636 offset, are packed hard against each other.
1637 (cooked_xfer_using_offset_hack): New function.
1638
1639 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1640
1641 * regcache.c (struct regcache_descr): Add field register_type.
1642 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
1643 in as a parameter
1644 (init_regcache_descr): Initialize register_type. Pass the descr
1645 to init_legacy_regcache_descr. Use register_type instead of
1646 REGISTER_VIRTUAL_TYPE.
1647 (register_type): New function.
1648 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
1649 * regcache.h (register_type): Declare.
1650
1651 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1652
1653 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
1654 instead of deprecated_store_return_value. Fix fallout from
1655 2002-08-23 Andrew Cagney <cagney@redhat.com>.
1656
1657 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1658
1659 * regcache.c (max_register_size): New function.
1660 (init_legacy_regcache_descr): Ensure that max_register_size is
1661 large enough for REGISTER_VIRTUAL_SIZE.
1662 * regcache.h (max_register_size): Declare.
1663
1664 2002-08-24 Andrew Cagney <ac131313@redhat.com>
1665
1666 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
1667 store_return_value.
1668 (e500_extract_return_value): Change type of valbuf pointer to
1669 void.
1670
1671 2002-08-24 Mark Kettenis <kettenis@gnu.org>
1672
1673 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
1674 workaround.
1675
1676 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
1677 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
1678 long long) to prevent compiler warning on 64-bit systems.
1679
1680 2002-08-23 Andrew Cagney <cagney@redhat.com>
1681
1682 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
1683 (DEPRECATED_STORE_RETURN_VALUE): New method.
1684 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
1685 * gdbarch.h, gdbarch.c: Re-generate.
1686
1687 * values.c (set_return_value): Pass current_regcache to
1688 STORE_RETURN_VALUE.
1689 * arch-utils.h (legacy_store_return_value): Declare.
1690 * arch-utils.c (legacy_store_return_value): New function.
1691 (legacy_extract_return_value): Update parameters.
1692
1693 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
1694 STORE_RETURN_VALUE.
1695 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1696 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1697 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1698 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1699 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1700 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1701 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1702 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1703 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1704 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1705
1706 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1707 * i386-tdep.c (i386_extract_return_value): Update.
1708 * arch-utils.c (legacy_extract_return_value): Update.
1709 * frv-tdep.c (frv_gdbarch_init): Update.
1710 * cris-tdep.c (cris_gdbarch_init): Update.
1711 * d10v-tdep.c (d10v_gdbarch_init): Update.
1712 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1713 * m68k-tdep.c (m68k_gdbarch_init): Update.
1714 * mcore-tdep.c (mcore_gdbarch_init): Update.
1715 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1716 * s390-tdep.c (s390_gdbarch_init): Update.
1717 * sparc-tdep.c (sparc_gdbarch_init): Update.
1718 * sh-tdep.c (sh_gdbarch_init): Update.
1719 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1720 * v850-tdep.c (v850_gdbarch_init): Update.
1721 * avr-tdep.c (avr_gdbarch_init): Update.
1722 * ia64-tdep.c (ia64_gdbarch_init): Update.
1723 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1724 * vax-tdep.c (vax_gdbarch_init): Update.
1725 * alpha-tdep.c (alpha_gdbarch_init): Update.
1726 * arm-tdep.c (arm_gdbarch_init): Update.
1727 * mips-tdep.c (mips_gdbarch_init): Update.
1728 * i386-tdep.c (i386_gdbarch_init): Update.
1729
1730 2002-08-23 Andrew Cagney <ac131313@redhat.com>
1731
1732 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
1733 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
1734
1735 2002-08-24 Mark Kettenis <kettenis@gnu.org>
1736
1737 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
1738 problems.
1739
1740 2002-08-23 Joel Brobecker <brobecker@gnat.com>
1741
1742 * infrun.c (handle_inferior_event): Move a comment outside of a
1743 function call, in order to avoid indent reformatting this part
1744 of the code in an unreadable way.
1745
1746 2002-08-23 Grace Sainsbury <graces@redhat.com>
1747
1748 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
1749 when breakpoints fail. Move general breakpoint error messages to
1750 insert_breakpoints.
1751 * breakpoint.c (insert_breakpoints): Change warnings when
1752 breakpoints are nto inserted to specify the type. Remove call to
1753 memory_error when hardware breakpoints can't be inserted. Remove
1754 multiple calls to warning so all messages are sent to the user at
1755 once.
1756 (delete_breakpoints): Make insert error messsages more explicit.
1757
1758 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
1759
1760 * ChangeLog: Move gdbserver entries after GDB 5.2 to
1761 gdbserver/ChangeLog.
1762
1763 2002-08-23 Mark Kettenis <kettenis@gnu.org>
1764
1765 * i386-tdep.c: Include "objfiles.h".
1766 (i386_svr4_init_abi): Set in_solib_call_trampoline and
1767 skip_trampoline_code.
1768 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
1769 (CPLUS_MARKER): Define to '.'.
1770
1771 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
1772 member.
1773 (linux_corefile_thread_callback): Increase args->num_notes.
1774 (linux_make_note_section): Initialize thread_args.num_notes, and
1775 use it to determine whether notes for any threads were created.
1776
1777 2002-08-23 Donn Terry <donnte@microsoft.com>
1778
1779 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
1780 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
1781 and PCUNKILL.
1782 (write_with_trace): Conditionalize out the switch branch handling
1783 PCSHOLD if the corresponding macro is not defined. Likewise for
1784 PRSABORT and PRSTOP.
1785 This change will be needed by the Interix port.
1786
1787 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
1788
1789 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
1790 write_register wherever possible instead of manipulating the
1791 register bytes directly.
1792 Assign VALUE_CONTENTS to a variable and use that.
1793 The GPR numbers are now dependent on the architecture.
1794
1795 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
1796
1797 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
1798 ev_offset fields.
1799 (skip_prologue): Add support for BookE/e500 instructions.
1800 (e500_extract_return_value): New function.
1801 (frame_get_saved_regs): Add support for saving ev registers and
1802 pseudo gpr's.
1803 (e500_store_return_value): New function.
1804 (rs6000_gdbarch_init): Move up default intializations of
1805 deprecated_extract_return_value and store_return_value. Overwrite
1806 init of store_return_value with e500 specific version.
1807 Set extract_return_value for e500.
1808
1809 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
1810
1811 * blockframe.c (generic_call_dummy_register_unwind): Use
1812 regcache_cooked_read to catch cases in which the variable is
1813 stored in a pseudo register.
1814
1815 2002-08-22 Andrew Cagney <cagney@redhat.com>
1816
1817 * NEWS: Mention that the i960 has been made obsolete.
1818 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
1819 i960-tdep.c
1820 (remote-nrom.o): Obsolete target.
1821 (remote-nindy.o, i960-tdep.o): Ditto.
1822 * remote-nrom.c: Make file obsolete.
1823 * remote-nindy.c, remote-vx960.c: Ditto.
1824 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
1825 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
1826 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
1827 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
1828 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
1829 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
1830 i960-*-vxworks* obsolete.
1831 * MAINTAINERS: Note that the i960 is obsolete.
1832
1833 2002-08-21 Corinna Vinschen <vinschen@redhat.com
1834
1835 * aix-thread.c (aix_thread_detach): Disable thread debugging on
1836 detach to allow reinitialization.
1837
1838 2002-08-22 Andrew Cagney <ac131313@redhat.com>
1839
1840 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
1841 attempt).
1842
1843 2002-08-22 Jim Blandy <jimb@redhat.com>
1844
1845 * coffread.c (coff_symfile_read): Don't try to read the line
1846 number table from disk if the image file doesn't have a symbol
1847 table; we'll never actually look at the info anyway, and Windows
1848 ships DLL's with bogus file offsets for the line number data.
1849
1850 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
1851
1852 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
1853 an e500 executable.
1854
1855 2002-08-21 Michael Snyder <msnyder@redhat.com>
1856
1857 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
1858 (MSYMBOL_SIZE): Replace macro with function.
1859 (DEFAULT_MIPS_TYPE): Delete unused macro.
1860 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
1861 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
1862
1863 2002-08-21 Jim Blandy <jimb@redhat.com>
1864
1865 * valops.c (value_cast): Simplify and correct logic for doing a
1866 static cast from a pointer to a base class to a pointer to a
1867 derived class.
1868
1869 2002-08-21 Andrew Cagney <ac131313@redhat.com>
1870
1871 * infcmd.c (default_print_registers_info): Replace
1872 do_registers_info.
1873 (registers_info): Use gdbarch_print_registers_info instead of
1874 DO_REGISTERS_INFO.
1875 * inferior.h (default_print_registers_info): Replace
1876 do_registers_info.
1877 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
1878 (DO_REGISTERS_INFO): Change to a predicate function.
1879 * gdbarch.h, gdbarch.c: Regenerate.
1880
1881 2002-08-21 Keith Seitz <keiths@redhat.com>
1882
1883 * gdb-events.sh: Add target-changed event.
1884 * gdb-events.c: Regenerated.
1885 * gdb-events.c: Regenerated.
1886 * valops.c (value_assign): Add target-changed event notification
1887 to inlval_register, lval_memory, and lval_reg_frame_relative.
1888
1889 2002-08-21 Joel Brobecker <brobecker@gnat.com>
1890
1891 * NEWS: Add an entry regarding the improvement of the next/step
1892 operation on Alpha Tru64 multi-processor machines.
1893
1894 2002-08-21 Andrew Cagney <ac131313@redhat.com>
1895
1896 * Makefile.in: Update dependencies for mi/ cli/ and tui/
1897 directores.
1898 * Makefile.in: Update all _h macro definitions.
1899 * Makefile.in (install-gdbtk): Move to install section.
1900 (rdi-share/libangsd.a): Move to end of file.
1901
1902 2002-08-19 Andrew Cagney <ac131313@redhat.com>
1903
1904 * frame.c (frame_register_unwind): When a register, set addrp to
1905 the register's byte.
1906
1907 2002-08-20 Michael Snyder <msnyder@redhat.com>
1908
1909 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
1910 used locally, so move them from the target machine header to here.
1911 (mips_set_processor_type, mips_register_name, mips32_next_pc,
1912 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
1913 Make static.
1914 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
1915
1916 2002-08-20 Andrew Cagney <cagney@redhat.com>
1917
1918 * NEWS: Mention that the Apollo line was made obsolete.
1919 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
1920 m68*-hp-hpux* obsolete.
1921 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
1922 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
1923 * buildsym.c (make_blockvector): Make static.
1924 * buildsym.h (make_blockvector): Make extern declaration obsolete.
1925 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
1926 (ALLDEPFILES): Remove dstread.c.
1927 (dstread.o): Obsolete make rule.
1928 * dstread.c: Makefile obsolete.
1929 * dst.h: Ditto.
1930 * config/m68k/hp300hpux.mt: Ditto.
1931 * config/m68k/hp300hpux.mh: Ditto.
1932 * config/m68k/hp300bsd.mt: Ditto.
1933 * config/m68k/hp300bsd.mh: Ditto.
1934 * config/m68k/apollo68b.mt: Ditto.
1935 * config/m68k/apollo68v.mh: Ditto.
1936 * config/m68k/apollo68b.mh: Ditto.
1937
1938 2002-08-20 Michael Snyder <msnyder@redhat.com>
1939
1940 * mips-tdep.c (mips_in_return_stub): Make static.
1941 (mips_gdbarch_init): Set in_solib_return_trampoline.
1942 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
1943
1944 2002-08-20 Michael Snyder <msnyder@redhat.com>
1945
1946 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
1947 * gdbarch.c, gdbarch.h: Regenerate.
1948 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
1949 Add.
1950 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
1951
1952 2002-08-20 Michael Snyder <msnyder@redhat.com>
1953
1954 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
1955 (mips_gdbarch_init): Set skip_trampoline_code,
1956 in_solib_call_trampoline.
1957 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
1958 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
1959
1960 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1961
1962 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
1963
1964 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
1965 vector type for ev registers.
1966 (e500_pseudo_register_read): New function.
1967 (e500_pseudo_register_write): New function.
1968 (e500_dwarf2_reg_to_regnum): New function.
1969 (PPC_UISA_NOFP_SPRS): New macro.
1970 (PPC_EV_REGS): New macro.
1971 (PPC_GPRS_PSEUDO_REGS): New macro.
1972 (registers_e500): New register set for e500.
1973 (variants): Add e500 variant.
1974 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
1975 before setting architectural dependent variations. Initialize ev
1976 registers numbers. Add case for e500 architecture. Set the
1977 number of pseudo registers.
1978
1979 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1980
1981 * rs6000-tdep.c: Clean up comments.
1982
1983 2002-08-20 Andrew Cagney <cagney@redhat.com>
1984
1985 * h8300-tdep.c: Re-indent file.
1986
1987 2002-08-20 Jim Blandy <jimb@redhat.com>
1988
1989 * Makefile.in (LDFLAGS): Allow the configure script to establish a
1990 default for this.
1991
1992 2002-08-20 Keith Seitz <keiths@redhat.com>
1993
1994 * breakpoints.c (watch_command_1): Use internal breakpoint
1995 when setting a watchpoint_scope breakpoint.
1996
1997 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1998
1999 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
2000 (build_builtin_type_vec64i): Ditto.
2001 (build_builtin_type_vec128): Ditto.
2002 (build_builtin_type_vec128i): Ditto.
2003
2004 2002-08-19 Michael Snyder <msnyder@redhat.com>
2005
2006 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
2007 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
2008 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
2009 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
2010 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
2011 CALL_DUMMY_ADDRESS): Delete.
2012 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
2013 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
2014 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
2015 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
2016 push_return_address.
2017 (mips_register_raw_size, mips_eabi_use_struct_convention,
2018 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
2019 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
2020 mips_init_extra_frame_info, mips_eabi_push_arguments,
2021 mips_n32n64_push_arguments, mips_push_return_address,
2022 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
2023 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
2024
2025 2002-08-19 Michael Snyder <msnyder@redhat.com>
2026
2027 * mips-tdep.c (mips_frame_num_args): New function.
2028 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
2029 frame_saved_pc, frame_args_address, frame_locals_address,
2030 frame_num_args, and frame_args_skip.
2031 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
2032 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
2033 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
2034 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
2035
2036 2002-08-20 Michael Snyder <msnyder@redhat.com>
2037
2038 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
2039 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
2040 * mips-tdep.c (mips_store_struct_return): New function.
2041 (mips_extract_struct_value_address): New function.
2042 (mips_gdbarch_init): Set store_struct_return and
2043 extract_struct_value_address.
2044
2045 2002-08-20 David Carlton <carlton@math.stanford.edu>
2046
2047 * dwarf2read.c (dwarf2_build_psymtabs): Check that
2048 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
2049 (read_file_scope): Check that line_header is nonzero before
2050 decoding macro information.
2051
2052 2002-08-20 Mark Kettenis <kettenis@gnu.org>
2053
2054 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
2055 flag the general-purpose registers as floating-point on targets
2056 that don't support the floating-point registers.
2057
2058 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
2059
2060 * rs6000-tdep.c (altivec_register_p): Delete.
2061 (rs6000_do_altivec_registers): Delete.
2062 (rs6000_altivec_registers_info): Delete.
2063 (rs6000_do_registers_info): Delete.
2064 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
2065 (rs6000_gdbarch_init): Remove setting of do_registers_info.
2066
2067 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
2068
2069 * infcmd.c (do_registers_info): Print vector registers in hex
2070 format only.
2071 (print_vector_info): Check that printing registers
2072 makes sense.
2073 (print_float_info): Ditto.
2074
2075 2002-08-20 Andrew Cagney <ac131313@redhat.com>
2076
2077 * mips-tdep.c (mips_gdbarch_init): Update.
2078 (mips_o32_extract_return_value): Rewrite.
2079 (mips_o32_store_return_value): Rewrite.
2080 (mips_o32_xfer_return_value): New function.
2081 (mips_xfer_register): Tweak debug print message. Allow for
2082 buf_offset when dumping the value transfered.
2083
2084 2002-08-20 Andrew Cagney <ac131313@redhat.com>
2085
2086 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
2087 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
2088 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
2089 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
2090 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
2091
2092 2002-08-14 Michael Snyder <msnyder@redhat.com>
2093
2094 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
2095
2096 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
2097
2098 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
2099 register.
2100 (P): New macro to define a register as a pseudo register.
2101 (R, R4, R8, R16, FR32, R64, R0): Updated.
2102 (struct variant): Add new fields for number of pseudo registers
2103 and number of total registers.
2104 (tot_num_registers): New macro replacing....
2105 (num_registers): ...deleted macro.
2106 (num_registers): New function.
2107 (num_pseudo_registers): New function.
2108 (variants): Update all variants to intialize new fields correctly.
2109 Postpone initialization of number of pseudo regs and real regs.
2110 (init_variants): New function.
2111 (rs6000_gdbarch_init): Initialize variants. Update calculation of
2112 registers offsets.
2113
2114 2002-08-19 David Carlton <carlton@math.stanford.edu>
2115
2116 * valops.c (search_struct_field): Change error message to treat
2117 return value of 0 from value_static_field as meaning that field is
2118 optimized out.
2119 (value_struct_elt_for_reference): Ditto.
2120 * values.c (value_static_field): Treat an unresolved location the
2121 same as a nonexistent symbol. Fix PR gdb/635.
2122 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
2123 enclosed. Fix PR gdb/574.
2124 * MAINTAINERS: Add self to Write After Approval list.
2125
2126 2002-08-19 Andrew Cagney <ac131313@redhat.com>
2127
2128 * mips-tdep.c (mips_xfer_register): New function.
2129 (mips_n32n64_extract_return_value): Rewrite.
2130 (mips_gdbarch_init): For N32 and N64, set extract_return_value
2131 instead of deprecated_extract_return_value.
2132
2133 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
2134
2135 * rs6000-tdep.c (TDEP): Delete macro.
2136 (branch_dest): Replace use of TDEP macro with its body.
2137 (rs6000_pop_frame): Ditto.
2138 (rs6000_push_arguments): Ditto.
2139 (rs6000_skip_trampoline_code): Ditto.
2140 (rs6000_frame_saved_pc): Ditto.
2141 (rs6000_frame_chain): Ditto.
2142 (rs6000_register_name): Ditto.
2143 (rs6000_register_byte): Ditto.
2144 (rs6000_register_raw_size): Ditto.
2145 (rs6000_register_virtual_type): Ditto.
2146 (rs6000_register_convertible): Ditto.
2147 (rs6000_convert_from_func_ptr_addr): Ditto.
2148
2149 2002-08-19 Daniel Jacobowitz <drow@mvista.com>
2150
2151 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
2152 conditionally.
2153 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
2154 MIPS_LINUX_JB_ELEMENT_SIZE.
2155 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
2156 for MAX_REGISTER_RAW_SIZE arrays.
2157 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
2158 MIPS_LINUX_JB_ELEMENT_SIZE.
2159
2160 2002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
2161
2162 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
2163
2164 2002-08-19 Aidan Skinner <aidan@velvet.net>
2165
2166 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
2167 ada-valprint.c ada-tasks.c.
2168 (YYFILES): Add ada-exp.y.
2169 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
2170 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
2171 (ada-exp.tab.o): New target.
2172
2173 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2174
2175 * regcache.c (regcache_xfer_part): New function.
2176 (regcache_raw_read_part): New function.
2177 (regcache_raw_write_part): New function.
2178 (regcache_cooked_read_part): New function.
2179 (regcache_cooked_write_part): New function.
2180 * regcache.h (regcache_raw_read_part): Declare.
2181 (regcache_raw_write_part): Declare.
2182 (regcache_cooked_read_part): Declare.
2183 (regcache_cooked_write_part): Declare.
2184
2185 2002-08-18 Daniel Jacobowitz <drow@mvista.com>
2186
2187 * remote.c (remote_open_1): Add async_p.
2188 (remote_async_open_1): Delete.
2189 (open_remote_target): Delete.
2190 (remote_open, extended_remote_open): Update calls to remote_open_1.
2191 (remote_async_open, extended_remote_async_open): Call
2192 remote_open_1 instead of remote_async_open_1.
2193
2194 2002-08-19 Mark Kettenis <kettenis@gnu.org>
2195
2196 * blockframe.c: Fix a few coding standard violations.
2197
2198 2002-08-19 Mark Kettenis <kettenis@gnu.org>
2199
2200 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
2201 here from ...
2202 * config/i386/tm-i386sco5.h: ... here. File removed.
2203 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
2204
2205 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
2206 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
2207 (TM_FILE): Set to tm-i386.h.
2208 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
2209 * config/i386/tm-i386v.h: Remove file.
2210 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
2211 instead of "i386/tm-i386v.h".
2212 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
2213 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
2214 "i386/tm-i386v.h".
2215 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
2216 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
2217 "i386/tm-i386.h".
2218
2219 2002-08-18 Mark Kettenis <kettenis@gnu.org>
2220
2221 * config/i386/nm-i386v.h: Add protection against
2222 multiple-inclusion.
2223 (i386_register_u_addr): Remove prototype.
2224 (register_u_addr): New prototype.
2225 (REGISTER_U_ADDR): Redefine accordingly.
2226 * i386v-nat.c: Improve several comments.
2227 (i386_register_u_addr): Change signature and rename to
2228 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
2229 ubase variable.
2230
2231 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2232
2233 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
2234 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
2235 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
2236 deprecated_extract_return_value.
2237 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
2238 rename mips_o32o64_push_arguments.
2239 (mips_gdbarch_init): Update.
2240 (mips_extract_return_value): Delete.
2241 (mips_o32_extract_return_value): Clone mips_extract_return_value.
2242 (mips_o64_extract_return_value): Clone mips_extract_return_value.
2243 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
2244 (mips_n32n64_extract_return_value): Clone
2245 mips_extract_return_value.
2246 (mips_store_return_value): Delete.
2247 (mips_o32_store_return_value): Clone mips_store_return_value.
2248 (mips_o64_store_return_value): Clone mips_store_return_value.
2249 (mips_eabi_store_return_value): Clone mips_store_return_value.
2250 (mips_n32n64_store_return_value): Clone mips_store_return_value.
2251
2252 2002-08-18 Aidan Skinner <aidan@velvet.net>
2253
2254 * ada-lang.c: Use gdb_string.h instead of <string.h>.
2255 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
2256
2257 2002-08-18 Aidan Skinner <aidan@velvet.net>
2258
2259 * ada-lang.c: Run through gdb_indent.sh.
2260 * ada-lang.h: Run through gdb_indent.sh.
2261 * ada-tasks.c: Run through gdb_indent.sh.
2262 * ada-typeprint.c: Run through gdb_indent.sh.
2263 * ada-valprint.c: Run through gdb_indent.sh.
2264
2265 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2266
2267 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
2268 ABI.
2269
2270 2002-08-18 Mark Kettenis <kettenis@gnu.org>
2271
2272 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
2273
2274 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
2275 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
2276
2277 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
2278 write_register_gen instead of write_register_bytes.
2279
2280 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
2281 i[3456]-*-osf1mk* configurations have been made obsolete.
2282 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
2283 i[3456]86-*-osf1mk* hosts obsolete.
2284 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
2285 targets obsolete.
2286 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
2287 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
2288 config/i386/i386m3.mt, config/i386/nm-m3.h,
2289 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
2290 config/i386/i386mk.mh, config/i386/i386mk.mt,
2291 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
2292 obsolete.
2293 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
2294 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
2295 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
2296
2297 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2298
2299 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
2300 (hppa_value_returned_from_stack): Declare.
2301 (hppa_extract_return_value): Declare.
2302 * config/pa/hppa.mt: New file.
2303 * configure.tgt: Recognize hppa*-*-*.
2304 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
2305
2306 2002-08-18 Mark Kettenis <kettenis@gnu.org>
2307
2308 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
2309 comment.
2310
2311 2002-08-17 Mark Kettenis <kettenis@gnu.org>
2312
2313 * top.c (gdb_rl_operate_and_get_next): Make sure
2314 operate-and-get-next functions correctly even when the history
2315 list is completely filled.
2316
2317 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2318
2319 * MAINTAINERS (Target Instruction Set Architectures): Rename
2320 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
2321 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
2322 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
2323 already listed under Host/Native.
2324
2325 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
2326 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
2327 mips*-*-*.
2328
2329 2002-08-17 Andrew Cagney <ac131313@redhat.com>
2330
2331 * config/ia64/ia64.mt: New file.
2332 * config/alpha/alpha.mt: New file.
2333 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
2334 ia64-linux-gnu. Mention that ia64-elf is broken.
2335 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
2336
2337 2002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
2338
2339 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
2340 generic_func_frame_valid instead of func_frame_valid.
2341
2342 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2343
2344 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
2345 procfs appears to be broken when debugging on multi-processor
2346 machines. So enable software single stepping in order to avoid
2347 using the procfs interface to do next/step operations, using
2348 internal breakpoints instead.
2349
2350 * infrun.c (handle_inferior_event): Readjust the stop_pc by
2351 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
2352 make this pc address equal to the value it would have if the
2353 system stepping capability was used. Also set a new flag used
2354 to ensure that we don't readjust the PC one more time later.
2355
2356 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
2357 address by DECR_PC_AFTER_BREAK when software single step is
2358 in use for this architecture, as this has already been taken
2359 care of in handle_inferior_event().
2360
2361 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2362
2363 * infrun.c (handle_inferior_event): Minor reformatting, to make
2364 a rather long condition expression easier to read.
2365
2366 2002-08-16 Andrew Cagney <ac131313@redhat.com>
2367
2368 * Makefile.in (gdbtk.o): Move to end of file.
2369 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
2370 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
2371 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
2372 (gdbtk-wrapper.o, gdbres.o): Ditto.
2373
2374 2002-08-16 Andrew Cagney <ac131313@redhat.com>
2375
2376 * Makefile.in (copying.o): Separate out compile rule.
2377 (hpux-thread.o, procfs.o, signals.o): Ditto.
2378 (v850ice.o, z8k-tdep.o): Ditto.
2379 (tui-file.o): Move to TUI section.
2380 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
2381 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
2382
2383 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2384
2385 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
2386 skip_trampoline_code, for better namespace-proofing.
2387
2388 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
2389
2390 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2391
2392 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
2393
2394 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2395
2396 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
2397 signal, check whether we hit a breakpoint before checking for a
2398 single step breakpoint. Otherwise, GDB fails to notice that a
2399 breakpoint has been hit when stepping onto a breakpoint.
2400
2401 2002-08-16 Keith Seitz <keiths@redhat.com>
2402
2403 * gdb-events.sh (clear_gdb_event_hooks): New function.
2404 * gdb-events.c: Regenerate.
2405 * gdb-events.h: Regenerate.
2406
2407 2002-08-16 Andrew Cagney <ac131313@redhat.com>
2408
2409 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
2410 not_a_sw_breakpoint.
2411 * breakpoint.h (bpstat_stop_status): Add parameter names.
2412
2413 2002-08-16 Grace Sainsbury <graces@redhat.com>
2414
2415 * remote.c (remote_insert_hw_breakpoint)
2416 (remote_remove_hw_breakpoint): Fix calculation of length field
2417 for Z-packet.
2418
2419 2002-08-15 Michael Snyder <msnyder@redhat.com>
2420
2421 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
2422 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
2423 (supply_fpregset): Ditto.
2424
2425 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
2426 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
2427 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
2428 (TARGET_READ_SP): Delete.
2429 (DO_REGISTERS_INFO): Delete.
2430 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
2431 Delete.
2432 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
2433 from macros to functions.
2434
2435 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
2436 (mips_register_convertible, mips_register_convert_to_virtual,
2437 mips_register_convert_to_raw): Make static.
2438 (mips_read_sp): New function.
2439 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
2440 (mips_do_registers_info): Make static.
2441 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
2442 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
2443 (mips_register_convert_from_type, mips_register_convert_to_type):
2444 New functions.
2445 (mips_gdbarch_init): Set up function_start_offset,
2446 register_virtual_size, pc_in_sigtramp.
2447
2448 2002-08-15 Andrew Cagney <ac131313@redhat.com>
2449
2450 * infcmd.c (vector_info): New function.
2451 (_initialize_infcmd): Add command "info vector".
2452 (print_vector_info): New function.
2453
2454 * gdbarch.sh (PRINT_VECTOR_INFO): New method
2455 * gdbarch.h, gdbarch.c: Regenerate.
2456
2457 2002-08-15 Andrew Cagney <ac131313@redhat.com>
2458
2459 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
2460 ``print_all''. Only print vector registers when ``print_all''.
2461
2462 2002-08-15 Andrew Cagney <ac131313@redhat.com>
2463
2464 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
2465 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
2466
2467 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
2468 Add `args' parameter.
2469 * gdbarch.h, gdbarch.c: Regenerate.
2470
2471 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
2472
2473 * infcmd.c (float_info): Call print_float_info.
2474 (print_float_info): New function. By default, print the
2475 floating-point registers.
2476
2477 * arch-utils.h (default_print_float_info): Delete declaration.
2478 * arch-utils.c (default_print_float_info): Delete function.
2479
2480 2002-08-16 Mark Kettenis <kettenis@gnu.org>
2481
2482 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
2483 out define.
2484
2485 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
2486 FRAME.
2487
2488 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
2489 * configure.host: Make i[3456]86-*-aix host obsolete.
2490 * configure.tgt: Make i[3456]86-*-aix target obsolete.
2491 * config/i386/i386aix.mh, config/i386/i386aix.mt,
2492 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
2493 config/i386/xm-i386aix.h: Make files obsolete.
2494 * i386aix-nat.c: Make file obsolete.
2495 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
2496 (i386aix-nat.o): Make target obsolete.
2497
2498 * config/i386/nm-gnu.h: Removed.
2499 * config/i386/nm-i386gnu.h: New file.
2500 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
2501 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
2502 Moved here from ...
2503 * config/i386/tm-i386gnu.h: ... here. Removed.
2504 * config/i386/xm-i386gnu.h: Removed.
2505 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
2506 (NAT_FILE): Set to nm-i386gnu.h.
2507 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
2508 * i386-tdep.c: New file.
2509 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
2510 (i386gnu-tdep.o): Specify dependencies.
2511
2512 2002-08-15 Mark Kettenis <kettenis@gnu.org>
2513
2514 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
2515 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
2516 Adjust a few comments to reflect reality a bit closer.
2517 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
2518 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
2519 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
2520 target_insert_watchpoint, target_remove_watchpoint):
2521 Move defines to ...
2522 * config/i386/nm-i386sco5.h: ... here.
2523 (kernel_u_size): Add prototype. Improve a few comments and add
2524 protection against multiple inclusion.
2525
2526 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
2527 out define.
2528
2529 * uw-thread.c (SP_ARG0): Define if not already defined.
2530 * config/i386/tm-i386.h (SO_ARG0): Remove define.
2531
2532 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
2533
2534 * config/i386/tm-i386.h: Don't include "regcache.h".
2535
2536 * i387-tdep.h (i387_print_float_info): New prototype.
2537 * i387-tdep.c (print_i387_value, print_i387_ext,
2538 print_i387_status_word, print_i387_control_word): Add `struct
2539 ui_file *' argument and use it for output.
2540 (i387_print_float_info): Renamed from i387_float_info. Add
2541 `struct gdbarch *' and `struct ui_file *' arguments and use the
2542 latter for output.
2543 * i386-tdep.c: Include "i387-tdep.h".
2544 (i386_gdbarch_init): Set print_float_info.
2545 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
2546 (FLOAT_INFO): Remove define.
2547
2548 2002-08-13 Michael Snyder <msnyder@redhat.com>
2549
2550 * mips-tdep.c (mips_push_arguments): Rename to
2551 mips_eabi_push_arguments, and tune for EABI.
2552 (MIPS_REGS_HAVE_HOME_P): Delete.
2553 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
2554 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
2555 Delete references to mips_regs_have_home_p.
2556
2557 2002-08-14 Keith Seitz <keiths@redhat.com>
2558
2559 * Makefile.in (install-gdbtk): Create insight plugin directory.
2560 Install plugins.tcl file.
2561
2562 2002-08-14 Keith Seitz <keiths@redhat.com>
2563
2564 * configure.in: Move SUBDIRS to near top of the file so that
2565 --enable options may add things to it.
2566 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
2567 * configure: Regenerate.
2568
2569 2002-08-13 Michael Snyder <msnyder@redhat.com>
2570
2571 * mips-tdep.c (mips_o32o64_push_arguments): New function,
2572 cloned from mips_push_arguments, tuned for o32/o64 ABI.
2573 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
2574
2575 2002-08-13 Andrew Cagney <ac131313@redhat.com>
2576
2577 * vax-tdep.c (vax_get_saved_register): Delete function.
2578 (vax_gdbarch_init): Update.
2579 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
2580 (ns32k_gdbarch_init): Update.
2581 * alpha-tdep.c (alpha_get_saved_register): Delete function.
2582 (alpha_gdbarch_init): Update.
2583
2584 2002-08-13 Andrew Cagney <cagney@redhat.com>
2585
2586 * regcache.c (init_regcache_descr): Overallocate the
2587 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
2588 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
2589 nr_raw_registers.
2590 (set_register_cached): Add range checking assertions. Use
2591 current_regcache.
2592
2593 2002-08-13 Mark Kettenis <kettenis@gnu.org>
2594
2595 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
2596 numbers for MMX registers.
2597
2598 2002-08-13 Andrew Cagney <cagney@redhat.com>
2599
2600 * i386-tdep.c (i386_gdbarch_init): Use
2601 generic_unwind_get_saved_register.
2602
2603 2002-08-13 Kevin Buettner <kevinb@redhat.com>
2604
2605 * procfs.c (procfs_can_use_hw_breakpoint): New function.
2606 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
2607 target vector.
2608 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
2609 Delete. Add comment regarding this now-deleted target method.
2610
2611 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2612
2613 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
2614 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
2615 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
2616 real PC and the page number (if it's within the memory bank window).
2617 (m68hc11_pseudo_register_write): Likewise when saving.
2618 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
2619 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
2620 (m68hc11_register_raw_size): And use 32-bit for it.
2621 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
2622 16K memory bank is used by the prog; also use the virtual pc.
2623
2624 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2625
2626 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
2627 (m68hc11_gdbarch_init): Install it in gdbarch.
2628 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
2629 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
2630 (MSYMBOL_SIZE): New for documentation.
2631 (insn_return_kind): Enum to specify how a function returns.
2632 (frame_extra_info): Cleanup and record the return mode.
2633 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
2634 register in address computation.
2635 (m68hc11_get_return_insn): New to obtain the return instruction used
2636 by the function.
2637 (m68hc11_frame_init_saved_regs): Take into account the return
2638 instruction used by the function for far and interrupt functions.
2639 (m68hc11_init_extra_frame_info): Take into account page register.
2640 (m68hc11_frame_args_address): Adjust according to the return mode.
2641 (show_regs): Print page register only when it's used.
2642
2643 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2644
2645 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
2646 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
2647 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
2648 registers.
2649 (m68hc11_register_raw_size): Likewise.
2650
2651 2002-08-13 Andrew Cagney <cagney@redhat.com>
2652
2653 * i386-tdep.c (i386_register_name): Handle mmx registers.
2654 (mmx_regnum_p): New function.
2655 (i386_mmx_names): New array.
2656 (mmx_num_regs): New variable.
2657 (i386_pseudo_register_read): New function.
2658 (i386_pseudo_register_write): New function.
2659 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
2660
2661 * regcache.c (regcache_raw_read_unsigned): New function.
2662 (regcache_raw_read_signed): New function.
2663 * regcache.h (regcache_raw_read_unsigned): Declare.
2664 (regcache_raw_read_signed): Declare.
2665
2666 2002-08-13 Andrew Cagney <cagney@redhat.com>
2667
2668 * regcache.c (regcache_raw_read_as_address): Delete function.
2669 (regcache_cooked_read_signed): New function.
2670 (regcache_cooked_read_unsigned): New function.
2671 * regcache.h (regcache_cooked_read_signed): Declare.
2672 (regcache_cooked_read_unsigned): Declare.
2673 (regcache_raw_read_as_address): Delete declaration.
2674
2675 * blockframe.c (generic_read_register_dummy): Use
2676 regcache_cooked_read_unsigned.
2677 * i386-tdep.c (i386_extract_struct_value_address): Use
2678 regcache_cooked_read_unsigned.
2679
2680 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2681
2682 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
2683 double sizes according to ELF ABI flags.
2684 (gdbarch_tdep): Record elf_flags.
2685
2686 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2687
2688 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
2689 (m6812_prolog): They can appear in 68HC12 function prologue.
2690 (m68hc11_frame_chain): Cleanup.
2691
2692 2002-08-12 Andrew Cagney <cagney@redhat.com>
2693
2694 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
2695 declarations.
2696 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
2697 (i386_linux_register_raw_size): Delete function.
2698 (i386_linux_init_abi): Update.
2699 * i386-tdep.c (i386_register_raw_size): Delete function.
2700 (i386_register_byte): Delete function.
2701 (i386_gdbarch_init): Update.
2702 (i386_register_size): Delete array.
2703 (i386_register_offset): Delete array.
2704
2705 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
2706 (REGISTER_RAW_SIZE): Delete macro.
2707 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
2708 (REGISTER_BYTE): Delete macro.
2709
2710 2002-08-11 Aidan Skinner <aidan@velvet.net>
2711
2712 * ada-lang.c (ada_lookup_partial_symbol)
2713 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
2714 prototype names so that grep ^func works properly.
2715
2716 * ada-lang.c (ada_array_element_type)
2717 (ada_lookup_partial_symbol): Fix typos in parameter list.
2718
2719 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
2720 Fix prototype names so that grep ^func works properly.
2721
2722 2002-08-10 Andrew Cagney <cagney@redhat.com>
2723 Elena Zannoni <ezannoni@redhat.com>
2724 Martin M. Hunt <hunt@redhat.com>
2725
2726 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
2727 (build_builtin_type_vec128i): Set the vector bit.
2728 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
2729 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
2730 (build_builtin_type_vec64): New function.
2731 (build_builtin_type_vec64i): New function.
2732 (build_gdbtypes): Initialize builtin_type_vec64 and
2733 builtin_type_vec64i.
2734
2735 2002-08-09 Andrew Cagney <cagney@redhat.com>
2736
2737 * regcache.c (regcache_dump): Compare the register offset
2738 with REGISTER_BYTE.
2739 * arch-utils.c (generic_register_byte): New function.
2740 * arch-utils.h (generic_register_byte): Declare.
2741 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
2742 * gdbarch.h, gdbarch.c: Regenerate.
2743
2744 2002-08-09 Andrew Cagney <cagney@redhat.com>
2745
2746 * regcache.c: Include "gdbcmd.h"
2747 (_initialize_regcache): Add commands "maintenance print
2748 registers", "maintenance print raw-registers" and "maintenance
2749 print cooked-registers".
2750 (enum regcache_dump_what): Define.
2751 (dump_endian_bytes): New function.
2752 (regcache_dump): New function.
2753 (regcache_print): New function.
2754 (maintenance_print_registers): New function.
2755 (maintenance_print_raw_registers): New function.
2756 (maintenance_print_cooked_registers): New function.
2757 * Makefile.in (regcache.o): Update dependencies.
2758
2759 2002-08-09 Michael Snyder <msnyder@redhat.com>
2760
2761 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
2762 (mips_push_arguments): Correct some comments. Use paddr_nz
2763 for printing addresses in debug output. Replace static
2764 allocation using MAX_REGISTER_RAW_SIZE with alloca.
2765 (mips_n32n64_push_arguments): New function, cloned from
2766 mips_push_arguments and tuned for the n32/n64 ABI.
2767 (mips_push_register): Buffer needs dynamic allocation.
2768 (mips_print_register): Ditto.
2769 (do_gp_register_row): Ditto.
2770 (mips_store_return_value): Ditto.
2771 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
2772
2773 2002-08-09 Don Howard <dhoward@redhat.com>
2774
2775 * memattr.c (mem_info_command): Print special case of upper bound
2776 as max CORE_ADDR + 1.
2777
2778 2002-08-08 Michael Snyder <msnyder@redhat.com>
2779
2780 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
2781 returns structs by ref if they're too big to fit in two registers.
2782
2783 2002-08-09 Kevin Buettner <kevinb@redhat.com>
2784
2785 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
2786 saved regs value.
2787 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
2788 mips_find_saved_regs().
2789 (mips_pop_frame): Likewise.
2790
2791 2002-08-09 Kevin Buettner <kevinb@redhat.com>
2792
2793 * blockframe.c (frame_saved_regs_register_unwind): Revise
2794 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
2795 frames are in use.
2796
2797 2002-08-09 Grace Sainsbury <graces@redhat.com>
2798
2799 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
2800 T-packets; the 'a' is not taken as a register number.
2801 (remote_check_watch_resources, remote_stopped_by_watchpoint)
2802 (remote_stopped_data_address): New functions; add to target
2803 vector.
2804 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
2805 prototypes to match other implementations of this
2806 function. replace integer argument with pointer -- the length
2807 field in the Z-packet is the length of what is pointed to or 1 if
2808 pointer is null. Add to target vector.
2809 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
2810 target vector.
2811
2812 From Mark Salter:
2813 * remote.c (remote_wait): Add support to extract optional
2814 watchpoint information from T-packet. Ignore unrecognized
2815 optional info in T-packet.
2816 (remote_async_wait): Ditto.
2817
2818 2002-08-09 Corinna Vinschen <vinschen@redhat.com>
2819
2820 * cli/cli-dump.c: Change fopen modes to use binary open modes
2821 as defined in include/fopen-bin.h throughout.
2822
2823 2002-08-08 Michael Snyder <msnyder@redhat.com>
2824
2825 * mips-tdep.c: Minor whitespace and indentation clean-ups.
2826
2827 2002-08-08 Kevin Buettner <kevinb@redhat.com>
2828
2829 * doublest.c (store_floating): Avoid floatformat_from_doublest()
2830 assertion failure by returning early after a warning.
2831
2832 2002-08-08 Kevin Buettner <kevinb@redhat.com>
2833
2834 * mips-tdep.c (mips_find_saved_regs): Make static.
2835 (mips_frame_init_saved_regs): New function.
2836 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
2837 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
2838 (mips_find_saved_regs): Delete declaration.
2839
2840 2002-08-08 Grace Sainsbury <graces@redhat.com>
2841
2842 * remote.c (remote_wait, remote_async_wait): Change
2843 thread_num from int to ULONGEST.
2844 (unpack_varlen_hex): Change result parameter from
2845 int * to ULONGEST *.
2846
2847 2002-08-08 Andrew Cagney <ac131313@redhat.com>
2848
2849 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
2850 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
2851 powerpc*-*-*.
2852 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
2853
2854 2002-08-08 Andrew Cagney <cagney@redhat.com>
2855
2856 * gcore.c (override_derive_stack_segment): Delete variable.
2857 (preempt_derive_stack_segment): Delete function.
2858 (derive_stack_segment): Delete function.
2859 (default_derive_stack_segment): Renamed to derive_stack_segment.
2860 (override_derive_heap_segment): Delete variable.
2861 (preempt_derive_heap_segment): Delete function.
2862 (derive_heap_segment): Delete function.
2863 (default_derive_heap_segment): Rename to derive_heap_segment.
2864
2865 2002-08-06 Michael Snyder <msnyder@redhat.com>
2866
2867 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
2868 * mips-tdep.c (mips_EABI_use_struct_convention,
2869 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
2870 New functions. (mips_use_struct_convention): Delete.
2871 (mips_gdbarch_init): set use_gdbarch_convention.
2872
2873 2002-08-06 Michael Snyder <msnyder@redhat.com>
2874
2875 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
2876 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
2877 mips_o32_reg_struct_has_addr): New functions.
2878 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
2879
2880 2002-08-07 Andrew Cagney <ac131313@redhat.com>
2881
2882 * regcache.c (pseudo_register): Delete function.
2883 (fetch_register): Delete function.
2884 (store_register): Delete function.
2885 (regcache_raw_read, legacy_read_register_gen): Use
2886 target_fetch_registers instead of fetch_register.
2887 (legacy_write_register_gen, regcache_raw_write): Use
2888 target_store_register instead of store_register.
2889 (write_register_bytes): Ditto.
2890
2891 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
2892 (STORE_PSEUDO_REGISTER): Delete.
2893 * gdbarch.h, gdbarch.c: Regenerate.
2894
2895 2002-08-06 Corinna Vinschen <vinschen@redhat.com>
2896
2897 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
2898 write dump file binary.
2899
2900 2002-08-05 Michael Snyder <msnyder@redhat.com>
2901
2902 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
2903 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
2904 (mips_gdbarch_init): Set N32 target to be mips64.
2905
2906 2002-08-06 Kevin Buettner <kevinb@redhat.com>
2907
2908 * frame.c (find_saved_register): Break out of loop once saved
2909 register address is found. Don't mention sparc in loop comment
2910 anymore.
2911
2912 2002-08-06 Kevin Buettner <kevinb@redhat.com>
2913
2914 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
2915 mips_default_saved_regsize to 8.
2916
2917 2002-08-06 Andrew Cagney <ac131313@redhat.com>
2918
2919 * gcore.c: Do not include <sys/procfs.h>.
2920 * Makefile.in (gcore.o): Update dependencies.
2921
2922 2002-08-06 Andrew Cagney <cagney@redhat.com>
2923
2924 * configure.tgt: Make arc-*-* obsolete.
2925 * NEWS: Mention that arc-*-* has been identifed as obsolete.
2926 * MAINTAINERS: Make arc-elf obsolete.
2927 * arc-tdep.c: Make file obsolete.
2928 * config/arc/arc.mt: Ditto.
2929 * config/arc/tm-arc.h: Ditto.
2930
2931 2002-08-05 Theodore A. Roth <troth@verinet.com>
2932
2933 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
2934
2935 2002-08-05 Andrew Cagney <ac131313@redhat.com>
2936
2937 * mcore-tdep.c (mcore_gdbarch_init): Use
2938 generic_unwind_get_saved_register instead of
2939 generic_get_saved_register.
2940 * v850-tdep.c (v850_gdbarch_init): Ditto.
2941 * frv-tdep.c (frv_gdbarch_init): Ditto.
2942 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2943 * s390-tdep.c (s390_gdbarch_init): Ditto.
2944 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2945 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
2946 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
2947
2948 2002-08-05 Joel Brobecker <brobecker@gnat.com>
2949
2950 * objfiles.h: Add missing #include "symfile.h"
2951
2952 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
2953
2954 2002-08-04 Andrew Cagney <ac131313@redhat.com>
2955
2956 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
2957 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
2958 of FIELD_BITSIZE.
2959
2960 2002-08-04 Daniel Jacobowitz <drow@mvista.com>
2961
2962 * NEWS: Cleanup and nitpick.
2963
2964 2002-08-03 Andrew Cagney <ac131313@redhat.com>
2965
2966 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
2967
2968 2002-08-03 Andrew Cagney <ac131313@redhat.com>
2969
2970 * Makefile.in (gdbtk-bp.o): Update dependencies.
2971 (gdbtk-register.o): Ditto.
2972 (gdbtk-varobj.o): Ditto.
2973
2974 2002-08-03 Andrew Cagney <cagney@redhat.com>
2975
2976 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
2977 m68hc11_fetch_pseudo_register.
2978 (m68hc11_pseudo_register_write): Replace
2979 m68hc11_store_pseudo_register.
2980 (m68hc11_gdbarch_init): Update.
2981
2982 Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
2983
2984 * gdbarch.sh: Include "gdb_string.h".
2985 * gdbarch.c: Regenerate.
2986
2987 * regcache.c: Include "gdb_string.h".
2988 * ax-general.c: Ditto.
2989 * varobj.c: Ditto.
2990 * std-regs.c: Ditto.
2991 * fbsd-proc.c: Ditto.
2992 * thread.c: Ditto.
2993
2994 * Makefile.in (regcache.o): Update dependencies.
2995 (thread.o, gdbarch.o): Ditto.
2996 (ax-general.o, gdbarch.o): Ditto.
2997 (varobj.o, std-regs.o): Ditto.
2998 (fbsd-proc.o): Specify dependencies.
2999
3000 2002-08-02 Andrew Cagney <cagney@redhat.com>
3001
3002 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
3003 regnum.
3004 (regcache_cooked_write): Ditto.
3005
3006 2002-08-02 Andrew Cagney <ac131313@redhat.com>
3007
3008 * regcache.c (regcache_cooked_read): New function.
3009 (regcache_cooked_write): New function.
3010 (read_register_gen): Rewrite using regcache_cooked_read.
3011 (write_register_gen): Rewrite using regcache_cooked_write.
3012
3013 * regcache.h (regcache_cooked_read, regcache_cooked_write):
3014 Declare.
3015
3016 2002-08-02 Andrew Cagney <cagney@redhat.com>
3017
3018 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
3019 Replace the architecture methods register_read and register_write.
3020 * gdbarch.h, gdbarch.c: Regenerate.
3021 * regcache.c (init_regcache_descr): Update.
3022 (read_register_gen): Update.
3023 (write_register_gen): Update.
3024 (supply_register): Update comment.
3025
3026 * sh-tdep.c (sh_gdbarch_init): Update.
3027 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
3028 `regcache' and `gdbarch' parameters. Make `buffer' a void
3029 pointer. Update code.
3030 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
3031 `regcache' and `gdbarch' parameters. Make `buffer' a constant
3032 void pointer. Update code.
3033 (sh64_register_write): Delete.
3034 (sh4_register_read): Delete.
3035 (sh64_register_read): Delete.
3036 (sh4_register_write): Delete.
3037 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
3038 void pointer, `to' parameter a void pointer.
3039 (sh_sh64_register_convert_to_raw): Ditto.
3040
3041 2002-08-01 Kevin Buettner <kevinb@redhat.com>
3042
3043 * mips-tdep.c (mips_register_virtual_type): Use architecture
3044 invariant return values.
3045
3046 2002-08-01 Andrew Cagney <cagney@redhat.com>
3047
3048 * linux-proc.c: Include "gdb_string.h".
3049 * Makefile.in (linux-proc.o): Update dependency list.
3050
3051 2002-08-01 Kevin Buettner <kevinb@redhat.com>
3052
3053 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
3054 comment.
3055
3056 2002-08-01 Grace Sainsbury <graces@redhat.com>
3057
3058 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
3059 to_insert_watchpoint, to_remove_watchpoint,
3060 to_stopped_by_watchpoint, to_stopped_data_address,
3061 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
3062 target vecctor. Define their corresponding macros so they call
3063 them.
3064
3065 * target.c: Add default and debug versions of for
3066 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
3067 to_insert_watchpoint, to_remove_watchpoint,
3068 to_stopped_by_watchpoint, to_stopped_data_address,
3069 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
3070
3071 2002-08-01 Kevin Buettner <kevinb@redhat.com>
3072
3073 * mips-tdep.c (mips_register_virtual_type): New function.
3074 (mips_gdbarch_init): Register mips_register_virtual_type()
3075 with gdbarch machinery.
3076 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
3077 this file instead of tm-bigmips.h.
3078 (MIPS_REGSIZE): Delete this macro.
3079 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
3080 multiarch version in mips-tdep.c will be found.
3081
3082 2002-08-01 Andrew Cagney <cagney@redhat.com>
3083
3084 * NEWS: Menion that CHILL has been made obsolete.
3085
3086 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
3087 * stabsread.c (read_range_type): Ditto.
3088 * gdbtypes.h: Ditto.
3089 * language.c (binop_type_check): Ditto.
3090 (binop_result_type): Ditto.
3091 (integral_type): Ditto.
3092 (character_type): Ditto.
3093 (string_type): Ditto.
3094 (boolean_type): Ditto.
3095 (structured_type): Ditto.
3096 (lang_bool_type): Ditto.
3097 (binop_type_check): Ditto.
3098 * language.h (_LANG_chill): Ditto.
3099 * dwarfread.c (set_cu_language): Ditto.
3100 * dwarfread.c (CHILL_PRODUCER): Ditto.
3101 * dwarfread.c (handle_producer): Ditto.
3102 * expression.h (enum exp_opcode): Ditto.
3103 * eval.c: Ditto for comments.
3104 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
3105 * expprint.c (print_subexp): Ditto.
3106 (print_subexp): Ditto.
3107 * valops.c (value_cast): Ditto.
3108 (search_struct_field): Ditto.
3109 * value.h (COERCE_VARYING_ARRAY): Ditto.
3110 * symfile.c (init_filename_language_table): Ditto.
3111 (add_psymbol_with_dem_name_to_list): Ditto.
3112 * valarith.c (value_binop): Ditto.
3113 (value_neg): Ditto.
3114 * valops.c (value_slice): Ditto.
3115 * symtab.h (union language_specific): Ditto.
3116 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
3117 (SYMBOL_DEMANGLED_NAME): Ditto.
3118 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
3119 * defs.h (enum language): Ditto.
3120 * symtab.c (got_symtab): Ditto.
3121 * utils.c (fprintf_symbol_filtered): Ditto.
3122
3123 * ch-typeprint.c: Make file obsolete.
3124 * ch-valprint.c: Make file obsolete.
3125 * ch-lang.h: Make file obsolete.
3126 * ch-exp.c: Make file obsolete.
3127 * ch-lang.c: Make file obsolete.
3128
3129 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
3130 CHILL_LIB.
3131 (TARGET_FLAGS_TO_PASS): Ditto.
3132 (CHILLFLAGS): Obsolete.
3133 (CHILL): Obsolete.
3134 (CHILL_FOR_TARGET): Obsolete.
3135 (CHILL_LIB): Obsolete.
3136 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
3137 ch-valprint.c.
3138 (HFILES_NO_SRCDIR): Remove ch-lang.h.
3139 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
3140 ch-lang.o.
3141 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
3142 targets.
3143
3144 2002-07-31 Joel Brobecker <brobecker@gnat.com>
3145
3146 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
3147 This does not change anything at the moment, but will be helpful
3148 later when full Ada support is integrated.
3149
3150 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3151
3152 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
3153 help message.
3154
3155 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3156
3157 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
3158 and save it in a local variable. Use variable in later test.
3159
3160 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3161
3162 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
3163 test. (Thanks to Daniel Jacobowitz.)
3164
3165 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3166
3167 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
3168 (mips_abi_strings): Add "n64".
3169 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
3170
3171 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3172
3173 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
3174 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
3175
3176 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3177
3178 * utils.c (host_pointer_to_address, address_to_host_pointer):
3179 Use gdb_assert() instead of explicit call to internal_error().
3180
3181 2002-07-30 Kevin Buettner <kevinb@redhat.com>
3182
3183 * Makefile.in (rs6000-nat.o): Update dependencies.
3184
3185 From Nicholas Duffek:
3186 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
3187 (aix-thread.o): New rule.
3188 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
3189 * config/powerpc/aix432.mh: New file.
3190
3191 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
3192
3193 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
3194 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
3195 (fetch_core_registers, ppc_linux_supply_gregset)
3196 (ppc_linux_supply_fpregset): New functions.
3197 (ppc_linux_regset_core_fns): New.
3198 (_initialize_ppc_linux_tdep): Call add_core_fns.
3199 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
3200 and ppc_linux_supply_gregset.
3201 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
3202 (supply_fpregset): Call ppc_linux_supply_fpregset.
3203 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
3204 corelow.o.
3205 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
3206
3207 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
3208
3209 * symtab.c (lookup_symbol): Demangle before lowercasing.
3210
3211 2002-07-30 Andrew Cagney <ac131313@redhat.com>
3212
3213 * symtab.h: Replace #include "gdb_obstack.h" with opaque
3214 declaration.
3215 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
3216 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
3217 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
3218 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
3219 "gdb_string.h".
3220 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
3221 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
3222 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
3223 (avr-tdep.o, mon960-rom.o): Ditto.
3224 (aout_stabs_gnu_h): Define.
3225 (symtab_h): Remove $(gdb_obstack_h).
3226
3227 2002-07-30 Jim Blandy <jimb@redhat.com>
3228
3229 Patch from David Carlton <carlton@math.stanford.edu>:
3230 * gdbinit.in: Move the `dir' commands that add GDB's own source
3231 directory to the search path to the end, so that the `gdb' source
3232 directory will be searched first.
3233
3234 2002-07-29 Andrew Cagney <ac131313@redhat.com>
3235
3236 * gdb_obstack.h: New file.
3237 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
3238 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
3239 * objfiles.h: Include "gdb_obstack.h".
3240 * Makefile.in (gdb_obstack_h): Define.
3241 (symtab_h): Add $(gdb_obstack_h).
3242 (objfiles_h): Add $(gdb_obstack_h).
3243
3244 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
3245 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
3246 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
3247 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
3248 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
3249 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
3250 * symfile.c, coffread.c, c-typeprint.c: Ditto.
3251 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
3252
3253 * Makefile.in (bcache.o): Update dependencies.
3254 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
3255 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
3256 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
3257 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
3258 (stabsread.o, symfile.o, symmisc.o): Ditto.
3259 (symtab.o, typeprint.o, macroexp.o): Ditto.
3260 (macrotab.o, mdebugread.o): Ditto.
3261 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
3262 (coff_ecoff_h, aout_aout64_h): Define.
3263 (aout_stabs_gnu_h, libaout_h): Define.
3264
3265 2002-07-29 Andrew Cagney <cagney@redhat.com>
3266
3267 * regcache.c (struct regcache_descr): Rename nr_registers to
3268 nr_cooked_registers. Revise comments describing the structure
3269 member fields.
3270 (init_regcache_descr): Update.
3271 (init_legacy_regcache_descr): Update.
3272 (read_register_gen, write_register_gen): When a cooked register in
3273 the raw register range, directly access the value from the raw
3274 register cache.
3275
3276 2002-07-29 Andrew Cagney <ac131313@redhat.com>
3277
3278 * z8k-tdep.c: Do not include "obstack.h".
3279 * h8300-tdep.c, h8500-tdep.c: Ditto.
3280 * m68hc11-tdep.c, sh-tdep.c: Ditto.
3281 * valprint.c, v850-tdep.c: Ditto.
3282 * d10v-tdep.c, mn10300-tdep.c: Ditto.
3283 * mn10200-tdep.c: Ditto.
3284
3285 * Makefile.in (z8k-tdep.o): Update dependencies.
3286 (m68hc11-tdep.o, valprint.o): Ditto.
3287 (v850-tdep.o, d10v-tdep.o): Ditto.
3288 (mn10300-tdep.o, sparc-tdep.o): Ditto.
3289 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
3290 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
3291 (sh_opc_h, gdb_sim_sh_h): Define.
3292 (elf_sh_h, elf_bfd_h): Define.
3293 (opcode_m68hc11_h): Define.
3294 (OPCODES_SRC, OPCODES_DIR): define.
3295 (OPCODES): Use $(OPCODES_DIR).
3296 (gdb_sim_d10v_h): Rename sim_d10v_h.
3297 (gdb_sim_arm_h): Rename sim_arm_h.
3298
3299 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3300
3301 * utils.c (host_pointer_to_address, address_to_host_pointer):
3302 Change internal_error() message to indicate function responsible
3303 for the error.
3304
3305 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3306
3307 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
3308 calls to local_hex_string_custom().
3309
3310 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3311
3312 * irix5-nat.c: Move IRIX shared library support from here...
3313 * solib-irix.c: ...to here. Revised substantially to work with
3314 generic solib framework.
3315
3316 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
3317 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
3318 * mips-irix-tdep.c: New file.
3319
3320 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
3321 (mips-irix-tdep.o, solib-irix.o): New rules.
3322 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
3323 solib-irix.o.
3324 * config/mips/irix6.mt (TDEPFILES): Likewise.
3325 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
3326
3327 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3328
3329 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
3330 disabled (via ``#if 0'') includes.
3331
3332 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3333
3334 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
3335 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
3336 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
3337 Add support for the fpscr register.
3338 * rs6000-nat.c (regmap, fetch_inferior_registers)
3339 (store_inferior_registers, fetch_core_registers): Likewise.
3340
3341 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3342
3343 * rs6000-nat.c (language.h): Include.
3344 (special_regs): Delete this array.
3345 (regmap): New function.
3346 (fetch_register, store_register): Use regmap() to map gdb
3347 register numbers to ptrace register numbers. Also, use
3348 outputs from regmap() to make decisions regarding type of
3349 ptrace() call to make. In particular, don't compare against
3350 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
3351 (fetch_inferior_registers, store_inferior_registers): Where
3352 possible, obtain register numbers from tdep struct. Don't
3353 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
3354 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
3355 (LAST_UISA_SP_REGNUM): Delete.
3356
3357 2002-07-25 Kevin Buettner <kevinb@redhat.com>
3358
3359 * rs6000-nat.c (ppc-tdep.h): Include.
3360 (fetch_registers, store_register, fetch_core_registers): Don't
3361 access registers[] directly. Instead, use supply_register() or
3362 regcache_collect() as appropriate.
3363 (find_toc_address): Format hex address with local_hex_string().
3364
3365 2002-07-25 Andrew Cagney <ac131313@redhat.com>
3366
3367 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
3368 bfd/elf32-frv.c.
3369
3370 2002-07-24 Tom Tromey <tromey@redhat.com>
3371
3372 * jv-exp.y: Marked all strings with _().
3373 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
3374 internal_error.
3375 (MethodInvocation, CastExpression, parse_number, yyerror,
3376 java_type_from_name, push_expression_name, yylex): Typo fixes.
3377
3378 2002-07-24 Daniel Jacobowitz <drow@mvista.com>
3379
3380 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
3381 (tee_file_flush, tee_file_write, tee_file_fputs)
3382 (tee_file_isatty): New.
3383 * ui-file.h (tee_file_new): Add prototype.
3384
3385 2002-07-24 Aidan Skinner <aidan@velvet.net>
3386
3387 * ada-lang.c: Change k&r style function definitions to prototyped
3388 form.
3389 * ada-typeprint.c: Change k&r style function definitions to prototyped
3390 form.
3391 * ada-valprint.c: Change k&r style function definitions to prototyped
3392 form.
3393
3394 2002-07-24 Andrew Cagney <cagney@redhat.com>
3395
3396 * README: Remove reference to remote-bug.
3397 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
3398 remote-bug.c.
3399 (m88k-nat.o): Delete rule.
3400 (m88k-tdep.o): Delete rule.
3401 (remote-bug.o): Delete rule.
3402 * MAINTAINERS: Mark as obsolete.
3403 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
3404 * m88k-tdep.c: Make file obsolete.
3405 * config/m88k/m88k.mh: Ditto.
3406 * config/m88k/delta88v4.mh: Ditto.
3407 * config/m88k/delta88v4.mt: Ditto.
3408 * config/m88k/delta88.mt: Ditto.
3409 * config/m88k/delta88.mh: Ditto.
3410 * remote-bug.c: Ditto.
3411 * config/m88k/tm-delta88.h: Ditto.
3412 * config/m88k/nm-delta88v4.h: Ditto.
3413 * config/m88k/xm-delta88.h: Ditto.
3414 * config/m88k/xm-dgux.h: Ditto.
3415 * config/m88k/tm-m88k.h: Ditto.
3416 * config/m88k/nm-m88k.h: Ditto.
3417 * config/m88k/tm-delta88v4.h: Ditto.
3418 * m88k-nat.c: Ditto.
3419 * cxux-nat.c: Ditto.
3420 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
3421 and m88*-*-* obsolete.
3422 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
3423 m88*-*-* obsolete.
3424
3425 2002-07-24 Andrew Cagney <cagney@redhat.com>
3426
3427 * findvar.c (extract_unsigned_integer): Make `addr' parameter
3428 constant. Same for local pointer variables.
3429 (extract_signed_integer): Ditto.
3430 * defs.h (extract_unsigned_integer): Update.
3431 (extract_signed_integer): Update.
3432
3433 2002-07-24 Andrew Cagney <cagney@redhat.com>
3434
3435 * regcache.c (regcache_raw_write): Change buf parameter to a
3436 constant void pointer.
3437 (regcache_raw_read): Change buf parameter to a void pointer.
3438 (legacy_write_register_gen): Change myaddr parameter a constant
3439 void pointer.
3440 (supply_register): Change val parameter to a const void pointer.
3441 * regcache.h (regcache_raw_write): Update declaration.
3442 (regcache_raw_read): Update declaration.
3443 (supply_register): Update declaration.
3444
3445 2002-07-24 Tom Tromey <tromey@redhat.com>
3446
3447 * defs.h (gdb_readline_wrapper): Declare.
3448 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
3449 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
3450 * top.c (gdb_readline_wrapper): New function.
3451 (command_line_input): Use it.
3452
3453 2002-07-24 Andrew Cagney <cagney@redhat.com>
3454
3455 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
3456 regcache_read and regcache_write.
3457 (regcache_raw_read_as_address): Replace regcache_read_as_address.
3458 * regcache.c: Update.
3459 * sh-tdep.c (sh64_push_arguments): Update comment.
3460 (sh_pseudo_register_read): Update.
3461 (sh_pseudo_register_write): Update.
3462 (sh4_register_read): Update.
3463 (sh4_register_write): Update.
3464 (sh64_pseudo_register_read): Update.
3465 (sh64_pseudo_register_write): Update.
3466 (sh64_register_read): Update.
3467 (sh64_register_write): Update.
3468 * i386-tdep.c (i386_extract_return_value): Update.
3469 (i386_extract_struct_value_address): Update.
3470 (i386_extract_return_value): Update.
3471 * blockframe.c (generic_read_register_dummy): Update.
3472 (generic_call_dummy_register_unwind): Update
3473 * infrun.c (write_inferior_status_register): Update.
3474
3475 2002-07-23 Jim Blandy <jimb@redhat.com>
3476
3477 * parser-defs.h (expression_context_pc): Make this extern.
3478 (Thanks to Michael Snyder.)
3479
3480 2002-07-23 Andrew Cagney <ac131313@redhat.com>
3481
3482 GDB 5.2.1 released from 5.2 branch.
3483 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
3484 * README: Update to mention 5.2.1.
3485
3486 2002-07-23 Mark Salter <msalter@redhat.com>
3487
3488 * remote.c (remote_read_bytes): Fix check for error.
3489
3490 2002-07-22 Kevin Buettner <kevinb@redhat.com>
3491
3492 * aix-thread.c (language.h): Include.
3493 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
3494 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
3495 Print newlines at end of debug messages.
3496 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
3497 (pdc_write_data): Use local_hex_string() instead of %llx formats.
3498
3499 2002-07-22 Kevin Buettner <kevinb@redhat.com>
3500
3501 * aix-thread.c (ppc-tdep.h): Include.
3502 (special_register_p): New function.
3503 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
3504 (store_regs_user_thread): Use register number information from
3505 gdbarch_tdep struct instead of hardcoded offsets relative to
3506 FIRST_UISA_SP_REGNUM.
3507 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
3508 special_register_p() instead of using FPLAST_REGNUM and
3509 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
3510 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
3511 will be MQ's register number.
3512
3513 2002-07-22 Michael Snyder <msnyder@redhat.com>
3514
3515 * aix-thread.c (ops): Rename to aix_thread_ops.
3516 (base_ops): Rename to base_target.
3517 (ops_attach): Rename to aix_thread_attach.
3518 (ops_detach): Rename to aix_thread_detach.
3519 (ops_resume): Rename to aix_thread_detach.
3520 (ops_wait): Rename to aix_thread_wait.
3521 (ops_kill): Rename to aix_thread_kill.
3522 (init_ops): Rename to init_aix_thread_ops.
3523 (ops_fetch_register): Rename to aix_thread_fetch_register.
3524 (ops_store_register): Rename to aix_thread_store_register.
3525 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
3526 (ops_thread_alive): Rename to aix_thread_thread_alive.
3527 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
3528 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
3529 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
3530 (fetch_regs_lib): Rename to fetch_regs_user_thread.
3531 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
3532 (store_regs_lib): Rename to store_regs_user_thread.
3533 (store_regs_kern): Rename to store_regs_kernel_thread.
3534
3535 2002-07-22 Michael Snyder <msnyder@redhat.com>
3536
3537 * aix-thread.c (ops_prepare_to_store): Eliminate.
3538 (init_ops): Don't initialize ops.prepare_to_store.
3539 (store_regs_kern): Pre-fetch register buffers from child,
3540 because some registers may not be in the cache. Copy
3541 regs from register cache only if they are cached.
3542 (store_regs_lib): Copy regs from register cache only
3543 if they are cached.
3544 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
3545 fill_gprs64): Ditto.
3546
3547 2002-07-22 Kevin Buettner <kevinb@redhat.com>
3548
3549 * aix-thread.c (gdb_assert.h): Include.
3550 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
3551 register sizes (from register cache) match size of buffer holding
3552 register data.
3553 (fill_sprs32): Change parameter types to match those in the ptrace()
3554 buffer.
3555 (store_regs_lib): Likewise, but for 32-bit temporary variables.
3556 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
3557
3558 2002-07-22 Michael Snyder <msnyder@redhat.com>
3559
3560 * aix-thread.c (supply_sprs64): Cosmetic change.
3561 (supply_sprs32): Cosmetic change.
3562 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
3563 (fill_sprs64): Use regcache_collect instead of read_register.
3564 (store_regs_lib): Use regcache_collect instead of
3565 read_register. Use fill_sprs32 instead of fill_sprs64,
3566 if debugging a 32-bit architecture.
3567 (store_regs_kern): Use fill_gprs64 etc. to pull the values
3568 out of the register cache, instead of passing a pointer into
3569 the register cache directly to ptrace. Use regcache_collect
3570 insteaad of read_register.
3571 (ops_prepare_to_store): Use target_read_registers instead
3572 of read_register_bytes.
3573
3574 2002-07-20 Aidan Skinner <aidan@velvet.net>
3575
3576 * MAINTAINERS: Add self under write after approval.
3577
3578 2002-07-20 Aidan Skinner <aidan@velvet.net>
3579
3580 * ada-tasks.c: Change k&r style function definitions to prototyped
3581 form.
3582
3583 2002-07-19 Andrew Cagney <ac131313@redhat.com>
3584
3585 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
3586 * x86-64-tdep.c: Include "objfiles.h".
3587 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
3588 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
3589
3590 2002-07-17 Michal Ludvig <michal@suse.cz>
3591
3592 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
3593 (update_context): Initialise cfa variable.
3594
3595 2002-07-17 Michael Snyder <msnyder@redhat.com>
3596
3597 * aix-thread.c: Shorten some long lines.
3598 Bring comments into line with code spec.
3599
3600 2002-07-18 Joel Brobecker <brobecker@gnat.com>
3601
3602 * infrun.c: Re-indent using gdb_indent.sh.
3603
3604 2002-07-18 Joel Brobecker <brobecker@gnat.com>
3605
3606 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
3607 Leave the indentation temporarily untouched, to minimize the diffs.
3608
3609 2002-07-18 Elena Zannoni <ezannoni@redhat.com>
3610
3611 * stabsread.c: Make os9k sections of the code obsolete,
3612 for real this time.
3613 * stabsread.h: Make os9k sections of the code obsolete.
3614
3615 2002-07-18 Michal Ludvig <mludvig@suse.cz>
3616
3617 * linux-low.c (regsets_store_inferior_registers): Add free()
3618 at the end of a loop to prevent memory leak.
3619 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
3620 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
3621 * config/sparc/tm-sp64linux.h: Make the rest of #endif
3622 line a comment.
3623 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
3624
3625 2002-07-17 Jim Blandy <jimb@redhat.com>
3626
3627 * macrocmd.c (info_macro_command): Remove newline from error
3628 message.
3629
3630 2002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
3631
3632 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
3633 (sh_gdbarch_init): Use it for sh-dsp.
3634
3635 2002-07-16 Kevin Buettner <kevinb@redhat.com>
3636
3637 * dwarf2read.c (read_initial_length): Handle older, non-standard,
3638 64-bit DWARF2 format.
3639
3640 2002-07-16 Joel Brobecker <brobecker@gnat.com>
3641
3642 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
3643 <sys/proc.h> when not available.
3644
3645 2002-07-16 Andrew Cagney <ac131313@redhat.com>
3646
3647 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
3648 * stabsread.c: Make os9k sections of the code obsolete.
3649 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
3650 * config/i386/i386os9k.mt: Make file obsolete.
3651 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
3652 (COMMON_OBS): Remove os9kread.o
3653 (SFILES): Remove os9kread.c.
3654 (os9kread.o, remote-os9k.o): Make target obsolete.
3655 * remote-os9k.c: Make file obsolete.
3656 * os9kread.c: Make file obsolete.
3657 * Makefile.in
3658
3659 2002-07-16 Andrew Cagney <ac131313@redhat.com>
3660
3661 * NEWS: Mention that the FR30 has been made obsolete.
3662 * fr30-tdep.c: Make file obsolete.
3663 * config/fr30/tm-fr30.h: Ditto.
3664 * config/fr30/fr30.mt: Ditto.
3665 * configure.tgt: Make fr30-*-elf obsolete.
3666 * MAINTAINERS: Make fr30-elf obsolete.
3667
3668 2002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
3669
3670 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
3671 found is not inside a section.
3672
3673 2002-07-15 Kevin Buettner <kevinb@redhat.com>
3674
3675 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
3676 strerror().
3677 (pdc_realloc): Use xrealloc() instead of realloc().
3678
3679 2002-07-15 Kevin Buettner <kevinb@redhat.com>
3680
3681 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
3682 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
3683 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
3684 macros.
3685
3686 2002-07-15 Kevin Buettner <kevinb@redhat.com>
3687
3688 * aix-thread.c (ptrace_check): Eliminate goto.
3689 (sync_threadlists): Eliminate gotos. Also, fix array overrun
3690 problem.
3691
3692 2002-07-15 Kevin Buettner <kevinb@redhat.com>
3693
3694 * aix-thread.c (gdbcmd.h): Include.
3695 (DEBUG, DBG, DBG2, dbg): Eliminate.
3696 (debug_aix_thread): New static global.
3697 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
3698 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
3699 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
3700 invocations to DBG and DBG2 macros to test against
3701 ``debug_aix_thread'' and call fprintf_unfiltered().
3702 (_initialize_aix_thread): Add new command "set debug aix-thread".
3703
3704 2002-07-15 Andrew Cagney <ac131313@redhat.com>
3705
3706 From Gerhard Tonn <TON@de.ibm.com>:
3707 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
3708 instead of supply_register.
3709
3710 2002-07-15 Andrew Cagney <ac131313@redhat.com>
3711
3712 * dwarf2cfi.c: Include "gdb_assert.h".
3713 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
3714 non-NULL.
3715 (update_context): Do not use __func__. Add missing ``break''.
3716 (update_context): Do not use __func__.
3717
3718 2002-07-15 Elena Zannoni <ezannoni@redhat.com>
3719
3720 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
3721 and its setting. Set gdbarch instruction printing functions
3722 directly. For non-rs6000 case use new function
3723 gdb_print_insn_powerpc.
3724 (gdb_print_insn_powerpc): New function.
3725
3726 2002-07-13 Andrew Cagney <ac131313@redhat.com>
3727
3728 * NEWS: Mention that the d30v has been marked obsolete.
3729 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
3730 * configure.tgt: Mark d30v-*-* as obsolete.
3731 * d30v-tdep.c: Mark file as obsolete.
3732 * config/d30v/d30v.mt: Ditto.
3733 * config/d30v/tm-d30v.h: Ditto.
3734
3735 2002-07-13 Aidan Skinner <aidan@velvet.net>
3736
3737 * ada-tasks.c (add_task_entry): replace calls to
3738 malloc() with xmalloc
3739 * ada-tasks.c (init_task_list): replace calls to free with xfree()
3740
3741 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
3742 ada_finish_decode_line_1, all_sals_for_line
3743 ada_breakpoint_rewrite): replace calls to free() with xfree()
3744
3745 2002-07-12 Kevin Buettner <kevinb@redhat.com>
3746
3747 From Nicholas Duffek (with minor changes by Martin Hunt,
3748 Louis Hamilton, and Kevin Buettner):
3749 * aix-thread.c: New file.
3750
3751 2002-07-12 Petr Sorfa <petrs@caldera.com>
3752
3753 * dwarf2read.c (dwarf2_invalid_attrib_class): New
3754 complaint for invalid attribute class or form.
3755 (read_func_scope): DW_AT_frame_base
3756 better handling of DW_AT_block*.
3757 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
3758 better handling of DW_AT_block*.
3759 (read_common_block): DW_AT_location
3760 better handling of DW_AT_block*.
3761 (read_partial_die): DW_AT_location better handling
3762 of DW_AT_block*.
3763 (new_symbol): DW_AT_external better handling of
3764 DW_AT_block*. Proper initialization of variable
3765 "addr".
3766 (attr_form_is_block): New function that returns true
3767 if the attribute's form is of DW_FORM_block*.
3768
3769 2002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
3770
3771 * valops.c (find_method_list): Remove comment about
3772 removed STATIC_MEMFUNCP argument.
3773 (value_find_oload_method_list): Likewise.
3774
3775 2002-07-12 Kevin Buettner <kevinb@redhat.com>
3776
3777 From Nicholas Duffek:
3778 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
3779 target_new_objfile_hook.
3780
3781 2002-07-12 Kevin Buettner <kevinb@redhat.com>
3782
3783 From Nicholas Duffek:
3784 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
3785 csect.
3786
3787 2002-07-12 Andrew Cagney <cagney@redhat.com>
3788
3789 * MAINTAINERS: Mention --enable-sim-build-warnings.
3790 (m68hc11-elf): Disable sim build warnings.
3791 (m32r-elf): Mark as broken obsolete candidate.
3792 (x86_64-linux-gnu): Mark as buildable with -Werror.
3793 (arm-elf): Change -w to ``,'' which enables warnings but not
3794 -Werror.
3795
3796 2002-07-12 Andrew Cagney <ac131313@redhat.com>
3797
3798 * bcache.h: Update copyright.
3799 (struct bstring, struct bcache): Move definition to "bcache.c".
3800 Replaced by opaque declaration.
3801 (bcache_xfree): Replace free_bcache.
3802 (bcache_xmalloc, bcache_memory_used): Declare.
3803
3804 * bcache.c: Update copyright.
3805 (struct bstring, struct bcache): Moved to here from "bcache.h".
3806 Update comments.
3807 (bcache_xmalloc, bcache_memory_used): New functions.
3808 (bcache_xfree): Replace function free_bcache.
3809
3810 * Makefile.in (objfiles.o): Add $(bcache_h).
3811 (objfiles_h): Remove $(bcache_h).
3812 (symfile.o): Add $(bcache_h).
3813
3814 * symmisc.c: Update copyright.
3815 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
3816 (print_objfile_statistics): Use bcache_memory_used.
3817
3818 * symfile.c: Include "bcache.h".
3819 (reread_symbols): Use bcache_xfree.
3820 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
3821 (add_psymbol_to_list): Pass psymbol_cache by value.
3822 (add_psymbol_with_dem_name_to_list): Ditto.
3823
3824 * objfiles.h: Update copyright.
3825 (struct bcache): Declare opaque. Do not include "bcache.h".
3826 (struct objfile): Change psymbol_cache and macro_cache to ``struct
3827 bcache'' pointers.
3828 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
3829
3830 * objfiles.c: Include "bcache.h". Update copyright.
3831 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
3832 macro_cache.
3833 (free_objfile): Use bcache_xfree.
3834
3835 2002-07-11 Grace Sainsbury <graces@redhat.com>
3836
3837 * monitor.c (monitor_fetch_register): Make name a constant.
3838 (monitor_store_register): Same.
3839
3840 2002-07-11 Daniel Jacobowitz <drow@mvista.com>
3841
3842 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
3843 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
3844 (finish_block) For non-function blocks, hash the symbol table. For
3845 function blocks, mark the symbol table as unhashed.
3846 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
3847 (msymbol_hash_iw): Likewise.
3848 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
3849 value.
3850 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
3851 (lookup_minimal_symbol): Likewise for both.
3852 * symtab.h (struct block): Add `hashtable' flag. Comment the
3853 hashtable.
3854 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
3855 (ALL_BLOCK_SYMBOLS): Update.
3856 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
3857 (struct symbol): Add `hash_next' pointer.
3858 * symtab.c (lookup_block_symbol): Search using the hash table when
3859 possible.
3860 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
3861 (search_symbols, find_addr_symbol): Likewise.
3862
3863 * dstread.c (process_dst_block): Clear hashtable bit for new block.
3864 (read_dst_symtab): Likewise.
3865 * jv-lang.c (get_java_class_symtab): Likewise.
3866 * mdebugread.c: Include "gdb_assert.h".
3867 (shrink_block): Assert that the block being modified is not hashed.
3868 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
3869 * symmisc.c (free_symtab_block): Walk the hash table when freeing
3870 symbols.
3871 (dump_symtab): Recognize hashed blocks.
3872 * printcmd.c (print_frame_args): Assert that function blocks do not
3873 have hashed symbol tables.
3874 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
3875 (fill_in_ada_prototype, debug_print_block): Likewise.
3876 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
3877
3878 2002-07-11 Corinna Vinschen <vinschen@redhat.com>
3879
3880 * stack.c (print_frame): Use result of frame_address_in_block()
3881 instead of fi->pc when evaluating symbols.
3882 (backtrace_command_1): Ditto.
3883
3884 2002-07-11 Andrew Cagney <cagney@redhat.com>
3885
3886 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
3887 Make static.
3888
3889 * arm-tdep.c (arm_register_name): Make return type constant.
3890
3891 2002-07-10 Andrew Cagney <ac131313@redhat.com>
3892
3893 * win32-nat.c (has_detach_ability): Convert to strict ISO C
3894 prototype.
3895 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
3896 * s390-tdep.c (s390_fp_regnum): Ditto.
3897 (s390_read_fp): Ditto.
3898 (s390_pop_frame): Ditto.
3899 (_initialize_s390_tdep): Ditto.
3900 * remote.c (get_remote_state): Ditto.
3901 * procfs.c (mappingflags): Ditto.
3902 * memattr.c (_initialize_mem): Ditto.
3903 * mcore-tdep.c (mcore_pop_frame): Ditto.
3904 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
3905 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
3906 * language.c (set_case_str): Ditto.
3907 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
3908 * frv-tdep.c (new_variant): Ditto.
3909 (frv_stopped_data_address): Ditto.
3910 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
3911 (context_alloc): Ditto.
3912 (frame_state_alloc): Ditto.
3913 (unwind_tmp_obstack_init): Ditto.
3914 (unwind_tmp_obstack_free): Ditto.
3915 (cfi_read_fp): Ditto.
3916 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
3917 (cris_pop_frame): Ditto.
3918 * c-lang.c (scanning_macro_expansion): Ditto.
3919 (finished_macro_expansion): Ditto.
3920 (c_preprocess_and_parse): Ditto.
3921 * gdbarch.sh: Ditto.
3922 * gdbarch.h, gdbarch.c: Regenerate.
3923 * config/mn10200/tm-mn10200.h: Adjust indentation.
3924 * target.c: Adjust indentation.
3925 * symtab.h: Adjust indentation.
3926 * stabsread.h: Adjust indentation.
3927 * remote-es.c: Adjust indentation.
3928 * os9kread.c: Adjust indentation.
3929
3930 2002-07-10 Andrew Cagney <ac131313@redhat.com>
3931
3932 * wince.c (_initialize_wince): Rename _initialize_inftarg.
3933 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
3934
3935 2002-07-10 Grace Sainsbury <graces@redhat.com>
3936
3937 * NEWS: Mention m68k, mcore multi-arching.
3938 * MAINTAINERS: Change status of m68k, mcore to reflect
3939 multi-arching.
3940
3941 2002-07-10 Daniel Jacobowitz <drow@mvista.com>
3942
3943 * valops.c (find_overload_match): Free oload_syms.
3944
3945 2002-07-09 Joel Brobecker <brobecker@gnat.com>
3946
3947 Define HAVE_SYS_PROC_H if sys/proc.h exists
3948 * configure.in: Add check for sys/proc.h
3949 * config.in: Regenerate.
3950 * configure: Regenerate.
3951
3952 2002-07-09 Grace Sainsbury <graces@redhat.com>
3953
3954 * config/m68k/tm-m68k.h: Remove macros wrapped in
3955 #if !GDB_MULTI_ARCH.
3956
3957 2002-07-08 Andrew Cagney <ac131313@redhat.com>
3958
3959 * config.in, configure: Regenerate.
3960
3961 2002-07-08 Mark Kettenis <kettenis@gnu.org>
3962
3963 * dwarf2cfi.c: Include "gcore.h".
3964 (execute_stack_op): Fix implementation of the
3965 DW_OP_deref and DW_OP_deref_size operators by letting do their
3966 lookup in the target.
3967
3968 2002-07-07 Mark Kettenis <kettenis@gnu.org>
3969
3970 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
3971 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
3972 tdep->sc_sp_offset.
3973
3974 2002-07-05 Daniel Jacobowitz <drow@mvista.com>
3975
3976 Fix PR gdb/595, gdb/602
3977 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
3978 Don't call value_cast, just read the vtable pointer; update comments
3979 to match.
3980
3981 2002-07-05 Grace Sainsbury <graces@redhat.com>
3982
3983 * config/mcore/tm-mcore.h: Remove file.
3984 * config/mcore/mcore.mt: Remove definition of TM_FILE
3985 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
3986
3987 2002-07-05 Mark Kettenis <kettenis@gnu.org>
3988
3989 * i386bsd-tdep.c: Include "gdb_string.h".
3990
3991 2002-07-04 Grace Sainsbury <graces@redhat.com>
3992
3993 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
3994 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
3995 mcore-tdep.
3996 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
3997 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
3998 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
3999 (RETVAL_REGNUM): Move macros from tm-mcore.h
4000 (mcore_reg_struct_has_addr): New function.
4001 (mcore_gdbarch_init): Added initializations for the macros removed
4002 from tm-mcore.h.
4003
4004 2002-07-04 Mark Kettenis <kettenis@gnu.org>
4005
4006 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
4007 traditonal string branding within the ELF header.
4008
4009 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
4010
4011 * symtab.c (remove_params): New function.
4012 (make_symbol_overload_list): Use it instead of cplus_demangle.
4013 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
4014
4015 2002-07-04 Mark Kettenis <kettenis@gnu.org>
4016
4017 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
4018
4019 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
4020 New variables.
4021 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
4022 and tdep->sigtramp_end.
4023 * i386obsd-nat.c: New file.
4024 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
4025
4026 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
4027 Don't call get_current_frame().
4028
4029 2002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
4030
4031 * i386-nat.c (child_post_startup_inferior): New function
4032 calling i386_cleanup_dregs if
4033 I386_USE_GENERIC_WATCHPOINTS is defined.
4034 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
4035 conditional to acknowledge that i386-nat.c has its
4036 own child_post_startup_inferior function.
4037
4038 2002-07-04 Mark Kettenis <kettenis@gnu.org>
4039
4040 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
4041 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
4042 instead of MAX_REGISTER_RAW_SIZE.
4043 (i386_extract_return_value, i386_extract_struct_value_address):
4044 Convert to use regcache.
4045 (i386_gdbarch_init): Set max_register_raw_size and
4046 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
4047 Set extract_return_value and extract_struct_value_address instead
4048 of their deprecated variants.
4049
4050 Convert i386 target to generic dummy frames.
4051 * i386-tdep.c: Include "symfile.h".
4052 (i386_frameless_signal_p): Consider a function to be frameless if
4053 the pc points at the first instruction of the function.
4054 (i386_frame_chain): Handle (generic) call dummies.
4055 (i386_frame_saved_pc): Likewise.
4056 (i386_frame_init_saved_regs): Remove code dealing with call
4057 dummies on the stack.
4058 (i386_push_dummy_frame): Removed.
4059 (i386_call_dummy_words): Removed.
4060 (i386_fix_call_dummy): Removed.
4061 (i386_push_return_address): New function.
4062 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
4063 parameter, and don't call get_current_frame.
4064 (i386_pop_frame): New function.
4065 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
4066 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
4067 entry_point_address, set call_dummy_breakpoint_offset to 0, set
4068 call_dummy_length to 0, set call_dummy_words to NULL, set
4069 sizeof_call_dummy_words to 0, set fix_call_dummy to
4070 generic_fix_call_dummy, set pc_in_call_dummy to
4071 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
4072 generic_push_dummy_frame, set push_return_address to
4073 i386_push_return_address and set frame_chain_valid to
4074 generic_file_frame_chain_valid.
4075
4076 2002-07-03 Andrew Cagney <ac131313@redhat.com>
4077
4078 * gdbarch.sh (struct regcache): Add opaque declaration.
4079 (EXTRACT_RETURN_VALUE): New architecture method.
4080 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
4081 * gdbarch.h, gdbarch.c: Regenerate.
4082 * arch-utils.c (legacy_extract_return_value): New function.
4083 * arch-utils.h (legacy_extract_return_value): Declare.
4084 * values.c (value_being_returned): Re-enable code handling
4085 EXTRACT_STRUCT_VALUE_ADDRESS. Move
4086 deprecated_grub_regcache_for_registers call to block handling
4087 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
4088 (EXTRACT_RETURN_VALUE): Do not define.
4089
4090 2002-07-03 Grace Sainsbury <graces@redhat.com>
4091
4092 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
4093 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
4094 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
4095 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
4096 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
4097 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
4098 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
4099 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
4100 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
4101 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
4102 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
4103 argument so the function fits the prototype in the architecture
4104 vector.
4105 (mcore_pop_frame): Remove argument so the function fits the
4106 prototype. Use get_current_frame instead of the argument.
4107 (mcore_push_arguments): Change type of struct_return so the
4108 function can be used in the architecture vector.
4109 (mcore_store_struct_return): Add.
4110 (mcore_frame_init_saved_regs): Add.
4111 (mcore_gdbarch_init): Add function calls to replace the macros
4112 removed from tm-mcore.h
4113
4114 2002-07-03 Andrew Cagney <ac131313@redhat.com>
4115
4116 * infcmd.c (print_return_value): Remove compatibility code calling
4117 deprecated_grub_regcache_for_registers.
4118
4119 * values.c: Include "regcache.h".
4120 (value_being_returned): Update. Use
4121 deprecated_grub_regcache_for_registers to extract the register
4122 buffer address.
4123 * value.h (value_being_returned): Change ``retbuf'' parameter to a
4124 ``struct regcache''.
4125 * Makefile.in (values.o): Add dependency on $(regcache_h).
4126
4127 * inferior.h (run_stack_dummy): Change type of second parameter to
4128 a ``struct regcache''.
4129 * valops.c (hand_function_call): Change type of retbuf to ``struct
4130 regcache''. Allocate using regcache_xmalloc, clean using
4131 make_cleanup_regcache_xfree.
4132 * infcmd.c (run_stack_dummy): Update. Use
4133 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
4134
4135 * regcache.c (do_regcache_xfree): New function.
4136 (make_cleanup_regcache_xfree): New function.
4137 * regcache.h (make_cleanup_regcache_xfree): Declare.
4138
4139 2002-07-03 Martin M. Hunt <hunt@redhat.com>
4140
4141 * event-top.c (command_line_handler): Don't read past
4142 beginning of buffer.
4143
4144 2002-07-03 Martin M. Hunt <hunt@redhat.com>
4145
4146 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
4147 struct frame_id.
4148 (varobj_create): Store frame_id for root.
4149 (varobj_gen_name): Use xasprintf.
4150 (varobj_update): Save and restore frame using get_frame_id() and
4151 frame_find_by_id().
4152 (create_child): Use xasprintf.
4153 (new_root_variable): Initialize frame_id.
4154 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
4155 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
4156 to prevent memory leak.
4157
4158 2002-07-03 Andrew Cagney <ac131313@redhat.com>
4159
4160 * valops.c (hand_function_call): Move declaration of retbuf to
4161 start of function, allocate using malloc, add a cleanup but before
4162 the inf_status cleanup, cleanup the buffer. Rename local variable
4163 old_chain to inf_status_cleanup.
4164
4165 2002-07-03 Martin M. Hunt <hunt@redhat.com>
4166
4167 * top.c (execute_command): Use cmd_func() and cmd_func_p().
4168
4169 * cli/cli-decode.c (cmd_func_p): New function.
4170 (cmd_func): New function.
4171
4172 * command.h: Add cmd_func() and cmd_func_p().
4173
4174 2002-07-03 Grace Sainsbury <graces@redhat.com>
4175
4176 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
4177 (REGISTER_SIZE): Remove.
4178 (MAX_REGISTER_RAW_SIZE): Remove.
4179 (REGISTER_VIRTUAL_TYPE): Remove.
4180 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
4181 (REGISTER_NAME): Remove.
4182 (USE_GENERIC_DUMMY_FRAMES): Remove.
4183 (CALL_DUMMY): Remove.
4184 (CALL_DUMMY_START_OFFSET): Remove.
4185 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
4186 (CALL_DUMMY_LOCATION): Remove.
4187 (FIX_CALL_DUMMY): Remove.
4188 (CALL_DUMMY_ADDRESS): Remove.
4189 (SIZEOF_CALL_DUMMY_WORDS): Remove.
4190 (SAVE_DUMMY_FRAME_TOS): Remove.
4191 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
4192 (mcore_register_virtual_type): New function.
4193 (mcore_register_byte): New function.
4194 (mcore_register_size): New function.
4195 (mcore_register_name): New function.
4196 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
4197 macros removed from tm-mcore.h.
4198 (mcore_dump_tdep): Add.
4199 (_initialize_mcore_tdep): Add gdbarch_register call.
4200
4201 2002-07-03 Mark Kettenis <kettenis@gnu.org>
4202
4203 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
4204 frameless_look_for_prologue, such that we actually call this
4205 function.
4206
4207 2002-07-02 Joel Brobecker <brobecker@gnat.com>
4208
4209 * frame.h (frame_address_in_block): New function.
4210
4211 * blockframe.c (frame_address_in_block): New function extracted
4212 from get_frame_block().
4213 (get_frame_block): Use frame_address_in_block().
4214 (block_innermost_frame): Use frame_address_in_block() to match
4215 the frame pc address against the block boundaries rather than
4216 the frame pc directly. This prevents a failure when a frame pc
4217 is actually a return-address pointing immediately after the end
4218 of the given block.
4219
4220 2002-07-02 Grace Sainsbury <graces@redhat.com>
4221
4222 * MAINTAINERS: Add self under write after approval.
4223
4224 2002-07-02 Grace Sainsbury <graces@redhat.com>
4225
4226 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
4227 used in architecture vector. The default is
4228 m68k_local_breakpoint_from_pc.
4229 (m68k_local_breakpoint_from_pc): Add.
4230 (enum): Add register numbers from tm-m68k.h.
4231 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
4232 vector.
4233 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
4234 GDB_MULTI_ARCH_PARTIAL.
4235 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
4236 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
4237 m68k-tdep.c.
4238 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
4239 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
4240 to enum in m68k-tdep.c
4241
4242 2002-07-02 Joel Brobecker <brobecker@gnat.com>
4243
4244 * solib-osf.c (open_map): Compute the list of shared libraries
4245 loaded by the inferior, rather than the list of libraries loaded
4246 by GDB itself. Otherwise, GDB ends up reading the symbols from
4247 the wrong shared libraries...
4248
4249 2002-07-02 Mark Kettenis <kettenis@gnu.org>
4250
4251 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
4252 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
4253 macros.
4254 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
4255 Remove functions.
4256 (FRAMELESS_SIGNAL): Remove function.
4257 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
4258 i386_linux_saved_pc_after_call): Removed.
4259 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
4260 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
4261 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
4262
4263 * i386-tdep.c (i386_frameless_signal_p): New function.
4264 (i386_frame_chain): Deal with frameless signals.
4265 (i386_sigtramp_saved_sp): New function.
4266 (i386_frame_saved_pc): Deal with frameless signals.
4267 (i386_saved_pc_after_call): Make sure the correct value is
4268 returned just after entry into a sigtramp.
4269 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
4270 i386fbsd4_sc_sp_offset): New variables.
4271 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
4272 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
4273 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
4274 similiar to what we already did for sc_pc_offset.
4275 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
4276 tdep->sc_sp_offset.
4277
4278 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
4279
4280 2002-07-02 Michal Ludvig <mludvig@suse.cz>
4281
4282 * config/i386/tm-x86-64linux.h: New.
4283 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
4284 definitions.
4285 * config/i386/nm-x86-64.h: Rename to ...
4286 * config/i386/nm-x86-64linux.h: ... this one.
4287 * config/i386/x86-64linux.mh: Reflect the above change.
4288
4289 2002-07-01 Mark Kettenis <kettenis@gnu.org>
4290
4291 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
4292 with sigcontext_addr. Add sc_sp_offset.
4293 (i386bsd_sigtramp_saved_pc): Remove prototype.
4294 (i386bsd_sicontext_addr): Add prototype.
4295 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
4296 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
4297 (i386_svr4_sigtramp_saved_pc): Removed.
4298 (i386_svr4_sigcontext_addr): New function.
4299 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
4300 Initialize tdep->sigcontext_addr instead. Initialize
4301 tdep->sc_pc_offset and tdep->sc_sp_offset.
4302 (i386_gdbarch_init): Likewise.
4303 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
4304 any more.
4305 (i386bsd_sigtramp_saved_pc): Remove function.
4306 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
4307 Initialize tdep->sigcontext_addr instead. Initialize
4308 tdep->sc_pc_offset.
4309 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
4310 of tdep->sigtramp_saved_pc.
4311 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
4312 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
4313 instead.
4314
4315 * i386-tdep.c (i386_frameless_function_invocation,
4316 i386_frame_num_args, i386_frame_init_saved_regs,
4317 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
4318 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
4319 i386_extract_return_value, i386_store_return_value,
4320 i386_extract_struct_value_address, i386_register_virtual_type,
4321 i386_register_convertible, i386_register_convert_to_virtual,
4322 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
4323 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
4324 static.
4325
4326 2002-07-01 Mark Kettenis <kettenis@gnu.org>
4327
4328 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
4329
4330 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
4331 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
4332 this macro. Include "value.h".
4333
4334 2002-06-30 Aidan Skinner <aidan@velvet.net>
4335
4336 * ada-exp.tab.c: remove as it's a generated file
4337 * ada-lex.c: remove as it's a generated file
4338
4339 2002-06-30 Mark Kettenis <kettenis@gnu.org>
4340
4341 * config/i386/tm-i386.h (struct frame_info, struct
4342 frame_saved_regs, struct value, struct type): Remove forward
4343 declarations.
4344
4345 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
4346 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
4347 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
4348 (FILL_FPXREGSET): Define.
4349
4350 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
4351
4352 * configure.tgt (i[3456]86-*-openbsd*): Fold into
4353 i[3456]86-*-netbsd* case.
4354 * config/i386/tm-obsd.h: Removed.
4355 * config/i386/obsd.mt: Removed.
4356 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
4357 core-aout.o.
4358 (MH_CFLAGS): Add -DYYDEBUG=0.
4359
4360 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
4361 i386nbsd_sc_pc_offset on OpenBSD too.
4362
4363 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
4364 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
4365 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
4366 define.
4367 * i386bsd-tdep.c: Include "arch-utils.h".
4368 (i386bsd_aout_in_solib_call_trampoline): New function.
4369 (i386bsd_init_abi): Set in_solib_call_trampoline to
4370 i386bsd_aout_in_solib_call_trampoline.
4371 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
4372 in_solib_call_trampoline to generic_in_solib_call_trampoline.
4373
4374 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4375
4376 * macrotab.h: Do not include "obstack.h" or "bcache.h".
4377 (struct obstack, struct bcache): Add opaque declarations.
4378 * Makefile.in (macrotab_h): Update
4379
4380 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4381
4382 * blockframe.c (generic_find_dummy_frame): Change return type to
4383 ``struct regcache''.
4384 (struct dummy_frame): Replace field ``registers'' with regcache, a
4385 struct regcache object.
4386 (generic_find_dummy_frame): Update.
4387 (generic_push_dummy_frame): Update. Use regcache_xfree,
4388 regcache_xmalloc and regcache_cpy.
4389 (generic_pop_dummy_frame): Update. Use regcache_cpy and
4390 regcache_xfree.
4391 (deprecated_generic_find_dummy_frame): Update.
4392 (generic_read_register_dummy): Update. Use
4393 regcache_read_as_address.
4394 (generic_call_dummy_register_unwind): Update. Use regcache_read.
4395 (generic_get_saved_register): Update. Use regcache_read.
4396
4397 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4398
4399 * Makefile.in (objfiles_h): Add $(bcache_h).
4400 * objfiles.h: Include "bcache.h".
4401
4402 * Makefile.in (symtab_h): Remove $(bcache_h).
4403 * symtab.h: Do not include "bcache.h".
4404
4405 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4406
4407 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
4408 generic_func_frame_chain_valid.
4409
4410 2002-06-28 David O'Brien <obrien@FreeBSD.org>
4411
4412 * config/i386/nm-fbsd.h: Include <sys/param.h>.
4413 * config/i386/tm-fbsd.h: Likewise.
4414
4415 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4416
4417 * rs6000-tdep.c (rs6000_gdbarch_init): Use
4418 generic_unwind_get_saved_register.
4419
4420 2002-06-27 Andrew Cagney <ac131313@redhat.com>
4421
4422 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
4423 * regcache.c (supply_register): Add missing argument to
4424 register_buffer call.
4425
4426 2002-06-27 Andrew Cagney <ac131313@redhat.com>
4427
4428 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
4429 Solaris /bin/grep does not not like it. From Peter Schauer.
4430
4431 2002-06-26 Tom Tromey <tromey@redhat.com>
4432
4433 * command.h (add_setshow_cmd): Declare.
4434 (add_setshow_cmd_full): Declare.
4435 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
4436 returns void. Use add_setshow_cmd_full.
4437 (add_setshow_cmd_full): New function.
4438 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
4439 (add_setshow_boolean_cmd): Likewise.
4440
4441 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4442
4443 * config/vax/tm-vax.h: Protect from multiple inclusion.
4444 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
4445 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
4446 * config/vax/tm-vaxbsd.h: ...here. New file.
4447 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
4448
4449 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4450
4451 * config/vax/tm-vax.h (BREAKPOINT): Remove.
4452 (BELIEVE_PCC_PROMOTION): Remove.
4453 (AP_REGNUM): Move to...
4454 * config/vax/nm-vax.h: ...here.
4455 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
4456 (vax_breakpoint_from_pc): New function.
4457 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
4458 and gdbarch_believe_pcc_promotion.
4459
4460 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4461
4462 * Makefile.in (vax_tdep_h): Define.
4463 (vax-tdep.o): Use $(vax_tdep_h).
4464 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
4465 (vax_dump_tdep): New function.
4466 (_initialize_vax_tdep): Register vax_dump_tdep.
4467 * vax-tdep.h: Include osabi.h.
4468 (struct gdbarch_tdep): New.
4469
4470 2002-06-26 Andrew Cagney <cagney@redhat.com>
4471
4472 * frame.h (deprecated_generic_find_dummy_frame): Rename
4473 generic_find_dummy_frame.
4474 * blockframe.c (generic_find_dummy_frame): Make static.
4475 (deprecated_generic_find_dummy_frame): New function.
4476 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
4477 generic_find_dummy_frame with deprecated_find_dummy_frame.
4478 (sh64_nofp_frame_init_saved_regs): Ditto.
4479 (sh_fp_frame_init_saved_regs): Ditto.
4480 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
4481 (s390_frame_chain): Ditto.
4482 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
4483
4484 2002-06-26 Grace Sainsbury <graces@redhat.com>
4485
4486 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
4487 gdbarch vector are at the top.
4488 (NUM_REGS): Remove.
4489 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
4490 (FRAME_ARGS_ADDRESS): Remove.
4491 (FRAME_LOCALS_ADDRESS): Remove.
4492 (FRAME_NUM_ARGS): Remove.
4493 (FRAME_ARGS_SKIP): Remove.
4494 * m68k-tdep.c (enum): Add eumeration of special register numbers.
4495 (m68k_gdbarch_init): Add gdbarch initializations for macros
4496 undefined in tm-m68k.h
4497
4498 2002-06-26 Grace Sainsbury <graces@redhat.com>
4499
4500 * monitor.h: Add the function regname to monitor_ops
4501 structure. This way NUM_REGS does not have to be a constant.
4502 * monitor.c (monitor_fetch_register): Added support for regname
4503 function. The function is called if the array regnames is NULL.
4504 (monitor_store_register): Same.
4505 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
4506 regnames array.
4507 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
4508 cpu32bug_cmds.regname to point to new function.
4509 * abug-rom.c (abug_regname): Same as above.
4510 (init_abug_cmds): Same.
4511 * dbug-rom.c (dbug_regname): Same as above.
4512 (init_dbug_cmds): Same.
4513 * remote-est.c (est_regname): Same.
4514 (init_est_cmds): Same.
4515 * rom68k-rom.c (rom68k_regname): Same.
4516 (init_rom68k_cmds): Same.
4517
4518 2002-06-25 Tom Tromey <tromey@redhat.com>
4519
4520 * breakpoint.c (delete_command): Don't repeat `delete' commands.
4521
4522 2002-06-25 Andrew Cagney <cagney@redhat.com>
4523
4524 * infrun.c (stop_registers): Change variable's type to ``struct
4525 regcache'''.
4526 (xmalloc_inferior_status): Delete function.
4527 (free_inferior_status): Delete function.
4528 (normal_stop): Use regcache_cpy.
4529 (struct inferior_status): Change type of fields ``stop_registers''
4530 and ``registers'' to ``struct regcache''.
4531 (write_inferior_status_register): Use regcache_write.
4532 (save_inferior_status): Instead of calling
4533 xmalloc_inferior_status, allocate the inf_status buffer directly.
4534 Use regcache_dup_no_passthrough and regcache_dup to save the
4535 buffers.
4536 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
4537 Replace the stop_registers regcache instead of overriding it. Use
4538 regcache_xfree. Instead of calling free_inferior_status, xfree
4539 the buffer directly.
4540 (discard_inferior_status): Use regcache_xfree. Instead of calling
4541 free_inferior_status, xfree the buffer directly.
4542 (build_infrun): Use regcache_xmalloc.
4543 (_initialize_infrun): Delete redundant call to build_infrun.
4544
4545 * Makefile.in (infcmd.o): Add $(regcache_h).
4546
4547 * infcmd.c: Include "regcache.h".
4548 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
4549 obtain the address of `stop_registers' register buffer.
4550 (print_return_value): Ditto.
4551
4552 * inferior.h (struct regcache): Add opaque declaration.
4553 (stop_registers): Change variable's declared type to ``struct
4554 regcache''.
4555
4556 2002-06-24 Tom Tromey <tromey@redhat.com>
4557
4558 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
4559 * target.c (initialize_targets): Fixed typo in
4560 trust-readonly-sections `show' documentation.
4561
4562 * main.c: Marked all strings with _().
4563
4564 2002-06-24 Don Howard <dhoward@redhat.com>
4565
4566 * memattr.c (create_mem_region): Treat hi == 0 as a special case
4567 that means max CORE_ADDR+1.
4568 (lookup_mem_region): Ditto.
4569 (mem_info_command): Ditto.
4570
4571 2002-06-24 Grace Sainsbury <graces@redhat.com>
4572
4573 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
4574 (REGISTER_BYTES_OK): Remove.
4575 (REGISTER_BYTES): Remove.
4576 (STORE_STRUCT_RETURN): Remove.
4577 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
4578 (STORE_RETURN_VALUE): Remove.
4579 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
4580 (FRAME_CHAIN): Remove.
4581 (FRAMELESS_FUNCTION_INVOCATION): Remove.
4582 (FRAME_SAVED_PC): Remove.
4583 * m68k-tdep.c (m68k_register_bytes_ok):Add.
4584 (m68k_store_struct_return): Add.
4585 (m68k_deprecated_extract_return_value): Add.
4586 (m68k_deprecated_extract_struct_value_address): Add.
4587 (m68k_store_return_value): Add.
4588 (m68k_frame_chain): Add.
4589 (m68k_frameless_function_invocation): Add.
4590 (m68k_frame_saved_pc): Add.
4591 (m68k_gdbarch_init): added set_gdbarch calls for new
4592 functions and deleted macros.
4593
4594 2002-06-23 Tom Tromey <tromey@redhat.com>
4595
4596 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
4597 (ALLDEPFILES): Likewise.
4598 (udiheaders): Removed.
4599 (udip2soc.o): Likewise.
4600 (udi2go32.o): Likewise.
4601 (udr.o): Likewise.
4602 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
4603
4604 2002-06-22 Andrew Cagney <ac131313@redhat.com>
4605
4606 * infrun.c (_initialize_infrun): Delete unnecessary call to
4607 build_infrun.
4608
4609 * regcache.h: Update comments describing the regcache_cpy family
4610 of functions.
4611 (regcache_save, regcache_restore): Delete declaration.
4612 (regcache_save_no_passthrough): Delete declaration.
4613 (regcache_restore_no_passthrough): Delete declaration.
4614 * regcache.c (regcache_save): Delete function.
4615 (regcache_save_no_passthrough): Delete function.
4616 (regcache_restore): Delete function.
4617 (regcache_restore_no_passthrough): Delete function.
4618
4619 2002-06-21 Andrew Cagney <ac131313@redhat.com>
4620
4621 * config/m68k/tm-m68k.h: Fix typo.
4622 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
4623 (m68k_frame_init_saved_regs): Declare.
4624
4625 2002-06-21 Jim Blandy <jimb@redhat.com>
4626
4627 Remove some vestiges of Harris 88k support.
4628 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
4629 register numbering quirk.
4630 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
4631 odd symbols occurring in Harris 88k ELF targets.
4632
4633 2002-06-21 Tom Tromey <tromey@redhat.com>
4634
4635 * gdb_locale.h: New file.
4636 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
4637 (defs_h): Added gdb_locale.h.
4638 * configure, config.in: Rebuilt.
4639 * configure.in (PACKAGE): Define.
4640 * defs.h: Include gdb_locale.h.
4641 * main.c (captured_main): Call setlocale, bindtextdomain,
4642 textdomain.
4643
4644 2002-06-21 Dave Brolley <brolley@redhat.com>
4645
4646 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
4647 * config/frv/frv.mt: New file.
4648 * config/frv/tm-frv.h: New file.
4649 * configure.tgt: Support frv-*-*.
4650 * Makefile.in (frv-tdep.o): New target.
4651 * frv-tdep.c: New file.
4652 * NEWS: Mention frv.
4653
4654 2002-06-21 Dave Brolley <brolley@redhat.com>
4655
4656 * MAINTAINERS: Add self to "Write After Approval" list.
4657
4658 2002-06-21 Grace Sainsbury <graces@redhat.com>
4659
4660 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
4661 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
4662 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
4663 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
4664 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
4665
4666 * m68k-tdep.c: Include arch-utils.h
4667 (m68k_register_raw_size): Add.
4668 (m68k_register_virtual_size): Add.
4669 (m68k_register_virtual_type): Add.
4670 (m68k_register_name): Add.
4671 (m68k_stack_align): Add.
4672 (m68k_register_byte): Add.
4673 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
4674 tm-m68k.h.
4675
4676 2002-06-21 Grace Sainsbury <graces@redhat.com>
4677
4678 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
4679 m68k_find_saved_regs.
4680 (m68k_pop_frame): Removed saved_regs structure, and replaced
4681 references to it with frame->saved_regs.
4682 (m68k_gdbarch_init): Added function calls to initialize the
4683 gdbarch structure.
4684 (m68k_fix_call_dummy): Add.
4685 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
4686 (CALL_DUMMY): Remove.
4687 (CALL_DUMMY_LENGTH): Remove.
4688 (CALL_DUMMY_START_OFFSET): Remove.
4689 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
4690 (FIX_CALL_DUMMY): Remove.
4691 (PUSH_DUMMY_FRAME): Remove.
4692 (POP_FRAME): Remove.
4693
4694 2002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
4695
4696 * parse.c (parse_fprintf): New function used to avoid calls to
4697 fprintf in bison parser generated debug code.
4698 * parser-defs.h: Declaration of new parse_fprintf function.
4699 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
4700 Set YYDEBUG to 1 by default.
4701 Set YYFPRINTF as parse_fprintf.
4702
4703 2002-06-21 Michal Ludvig <mludvig@suse.cz>
4704
4705 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
4706 encoding anymore.
4707 (pointer_encoding, enum ptr_encoding): New.
4708 (execute_cfa_program): Take care about pointer encoding.
4709 (dwarf2_build_frame_info): Only call parse_frame_info for
4710 .debug_frame and .eh_frame.
4711 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
4712 fixed augmentation handling, added relative addressing,
4713 ignore duplicate FDEs. Added comments.
4714 * dwarf2cfi.c: Reindented.
4715
4716 2002-06-20 Elena Zannoni <ezannoni@redhat.com>
4717
4718 * event-top.c (command_handler): Don't use space_at_cmd_start
4719 unless there is sbrk() on the host. Assign time and space data
4720 to union fields of the appropriate length.
4721
4722 2002-06-20 Michal Ludvig <mludvig@suse.cz>
4723
4724 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
4725 x86_64_register_name. Return type changed to 'const char *'.
4726 (x86_64_register_name2nr): Rename to x86_64_register_number.
4727 (x86_64_gdbarch_init): Update to reflect the change.
4728 * x86-64-tdep.h: Ditto.
4729 * x86-64-linux-nat.c (x86_64_fxsave_offset)
4730 (supply_fpregset): Ditto.
4731
4732 2002-06-19 Andrew Cagney <cagney@redhat.com>
4733
4734 * regcache.h: Update copyright.
4735 (struct regcache, struct gdbarch): Add opaque declarations.
4736 (current_regcache): Declare global variable.
4737 (regcache_read, regcache_write): Add gdbarch parameter.
4738 (regcache_save, regcache_save_no_passthrough)
4739 (regcache_restore, regcache_restore_no_passthrough)
4740 (regcache_dup, regcache_dup_no_passthrough)
4741 (regcache_cpy, regcache_cpy_no_passthrough)
4742 (deprecated_grub_regcache_for_registers)
4743 (deprecated_grub_regcache_for_register_valid)
4744 (regcache_valid_p): Add function declarations.
4745
4746 * regcache.c: Update copyright.
4747 (regcache_descr_handle): New global variable.
4748 (struct regcache_descr): Define.
4749 (init_legacy_regcache_descr, init_regcache_descr): New functions.
4750 (regcache_descr, xfree_regcache_descr): New functions.
4751 (struct regcache): Define.
4752 (regcache_xmalloc, regcache_xfree): New functions.
4753 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
4754 (regcache_dup, regcache_dup_no_passthrough): New functions.
4755 (regcache_valid_p, regcache_read_as_address): New functions.
4756 (deprecated_grub_regcache_for_registers): New function.
4757 (deprecated_grub_regcache_for_register_valid): New function.
4758 (current_regcache): New global variable.
4759 (register_buffer): Add regcache parameter. Update calls.
4760 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
4761 (read_register_gen, write_register_gen): Update register_buffer
4762 call. Test for legacy_p instead of gdbarch_register_read_p or
4763 gdbarch_register_write_p.
4764 (regcache_collect): Update register_buffer call.
4765 (build_regcache): Rewrite. Use deprecated grub functions.
4766 (regcache_save, regcache_save_no_passthrough): New functions.
4767 (regcache_restore, regcache_restore_no_passthrough): New
4768 functions.
4769 (_initialize_regcache): Create the regcache_data_handle. Swap
4770 current_regcache global variable.
4771
4772 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
4773 parameter to regcache_read and regcache_write calls.
4774 (sh4_register_read): Ditto.
4775 (sh64_pseudo_register_read): Ditto.
4776 (sh64_register_read): Ditto.
4777 (sh_pseudo_register_write): Ditto.
4778 (sh4_register_write): Ditto.
4779 (sh64_pseudo_register_write): Ditto.
4780 (sh64_register_write): Ditto.
4781
4782 * defs.h (XCALLOC): Define.
4783
4784 2002-06-19 Grace Sainsbury <graces@redhat.com>
4785
4786 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
4787 * m68k-tdep.c (m68k_gdbarch_init): Added.
4788 (m68k_dump_tdep): Added.
4789
4790 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
4791
4792 * ada-lang.c (fill_in_ada_prototype): Update comment.
4793
4794 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
4795
4796 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
4797 MIPS_ABI_LAST.
4798 (mips_abi_string, mips_abi_strings): New.
4799 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
4800 (mips_gdbarch_init): Set tdep->found_abi. Don't set
4801 tdep->mips_abi_string. Honor mips_abi_string. Default to
4802 O32 if no ABI is found.
4803 (mips_dump_tdep): Use mips_abi_strings.
4804 (mips_abi_update): New function.
4805 (_initialize_mips_tdep): Initialize mips_abi_string. Add
4806 ``set mips abi'' and ``show mips abi''. Check the size of
4807 mips_abi_strings.
4808
4809 2002-06-19 Andrew Cagney <cagney@redhat.com>
4810
4811 * i386-linux-tdep.c (i386_linux_register_name): Make return type
4812 constant.
4813
4814 2002-06-18 Joel Brobecker <brobecker@gnat.com>
4815
4816 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
4817 current frame using only the first stack size adjustment. All
4818 subsequent size adjustments are not considered to be part of
4819 the "static" part of the current frame.
4820 Compute the address of the saved registers relative to the
4821 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
4822 in use in this frame.
4823
4824 2002-06-18 Don Howard <dhoward@redhat.com>
4825
4826 * valops.c (value_ind): Use value_at_lazy() when dereferencing
4827 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
4828 suggesting this solution.
4829
4830 2002-06-18 Andrew Cagney <ac131313@redhat.com>
4831
4832 * config/romp/xm-rtbsd.h: Delete file.
4833 * config/romp/rtbsd.mh: Delete file.
4834
4835 2002-06-18 Keith Seitz <keiths@redhat.com>
4836
4837 * breakpoint.c (condition_command): Post breakpoint_modify
4838 when a condition is added to an existing breakpoint.
4839 (commands_command): Likewise for commands.
4840 (set_ignore_count): Likewise for ignore counts.
4841 If no tty, do not simply return, still need to send event
4842 notification.
4843 (ignore_command): Only print a newline if the command came
4844 from a tty.
4845 Don't call breakpoints_changed, since this is now properly
4846 handled by set_ignore_count.
4847
4848 2002-06-18 Andrew Cagney <cagney@redhat.com>
4849
4850 * MAINTAINERS: Note that cris-elf target can be compiled with
4851 -Werror.
4852 * cris-tdep.c (cris_register_name): Make return type constant.
4853 (cris_breakpoint_from_pc): Ditto.
4854
4855 2002-06-18 Michal Ludvig <mludvig@suse.cz>
4856
4857 * frame.h (struct frame_info): Change type of context to
4858 'struct context'.
4859
4860 2002-06-17 Andrew Cagney <cagney@redhat.com>
4861
4862 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
4863 pointer.
4864 * gdbarch.h, gdbarch.c: Regenerate.
4865 * config/mips/tm-mips.h (mips_register_name): Update.
4866 * i386-tdep.h (i386_register_name): Update.
4867 * mips-tdep.c (mips_register_name): Update
4868 * alpha-tdep.c (alpha_register_name): Update.
4869 * arch-utils.c (legacy_register_name): Update.
4870 * arch-utils.h (legacy_register_name): Update.
4871 * avr-tdep.c (avr_register_name): Update.
4872 * ia64-tdep.c (ia64_register_name): Update.
4873 * i386-tdep.c (i386_register_name): Update.
4874 * sparc-tdep.c (sparc32_register_name): Update.
4875 (sparc64_register_name): Update.
4876 (sparclite_register_name): Update.
4877 (sparclet_register_name): Update.
4878 * sh-tdep.c (sh_generic_register_name): Update.
4879 (sh_sh_register_name): Update.
4880 (sh_sh3_register_name): Update.
4881 (sh_sh3e_register_name): Update.
4882 (sh_sh_dsp_register_name): Update.
4883 (sh_sh3_dsp_register_name): Update.
4884 (sh_sh4_register_name): Update.
4885 (sh_sh64_register_name): Update.
4886 * s390-tdep.c (s390_register_name): Update.
4887 * rs6000-tdep.c (rs6000_register_name): Update.
4888 * ns32k-tdep.c (ns32k_register_name_32082): Update.
4889 (ns32k_register_name_32382): Update.
4890 * d10v-tdep.c (d10v_ts2_register_name): Update.
4891 (d10v_ts3_register_name): Update.
4892 * xstormy16-tdep.c (xstormy16_register_name): Update.
4893 * vax-tdep.c (vax_register_name): Update.
4894 * v850-tdep.c (v850_register_name): Update.
4895 * m68hc11-tdep.c (m68hc11_register_name): Update.
4896 * mn10300-tdep.c (mn10300_generic_register_name): Update.
4897 (am33_register_name): Update.
4898
4899 2002-06-17 Grace Sainsbury <graces@redhat.com>
4900
4901 * m68k-tdep.c: Reindented.
4902
4903 2002-06-17 Andrew Cagney <ac131313@redhat.com>
4904
4905 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
4906 list of predefined types.
4907
4908 2002-06-16 Mark Kettenis <kettenis@gnu.org>
4909
4910 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
4911 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
4912 REGISTER_CONVERT_TO_RAW): Remove defines.
4913 (i386_register_virtual_type, i386_register_convertible,
4914 i386_register_convert_to_virtual, i386_register_convert_to_raw):
4915 Remove prototypes.
4916 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4917 macros mentioned above.
4918
4919 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
4920 (i386lynx_saved_pc_after_call): Remove prototype.
4921 * i386ly-tdep.c: Include "i386-tdep.h".
4922 (i386lynx_saved_pc_after_call): Make static. Use
4923 read_memory_nobpt instead of read_memory. Use
4924 read_memory_unsigned_integer instead of read_memory_integer.
4925 (i386lynx_init_abi): New function.
4926 (i386lynx_coff_osabi_sniffer): New function.
4927 (_initialize_i386bsd_tdep): New function.
4928
4929 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
4930 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
4931 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
4932 (i386_fix_call_dummy): Remove prototype.
4933 * i386-tdep.c (i386_call_dummy_words): New variable.
4934 (i386_gdbarch_init): Adjust for removal of the
4935 macros mentioned above.
4936
4937 2002-06-15 Andrew Cagney <ac131313@redhat.com>
4938
4939 * command.h (add_setshow_auto_boolean_cmd): Replace
4940 add_set_auto_boolean_cmd.
4941 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
4942 add_set_auto_boolean_cmd.
4943 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
4944 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
4945 mask-address'' command.
4946 (show_mask_address): Add cmd parameter.
4947 * remote.c (add_packet_config_cmd): Update. Change type of
4948 set_func and show_func to cmd_sfunc_ftype.
4949 (_initialize_remote): Update `set remote Z-packet'
4950 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
4951 (show_remote_protocol_e_packet_cmd): Ditto.
4952 (show_remote_protocol_E_packet_cmd): Ditto.
4953 (show_remote_protocol_P_packet_cmd): Ditto.
4954 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
4955 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
4956 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
4957 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
4958 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
4959 (show_remote_protocol_Z_packet_cmd): Ditto.
4960 (show_remote_protocol_binary_download_cmd): Ditto.
4961 (show_remote_cmd): Pass NULL to all of above.
4962
4963 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4964
4965 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
4966 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
4967 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
4968 POP_FRAME): Remove defines.
4969 (i386_push_arguments, i386_store_struct_return,
4970 i386_extract_return_value, i386_store_return_value,
4971 i386_extract_struct_value_address, i386_push_dummy_frame,
4972 i386_pop_frame): Renove prototypes.
4973 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4974 macros mentioned above.
4975
4976 2002-06-15 Andrew Cagney <ac131313@redhat.com>
4977
4978 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
4979 add_set_boolean_cmd.
4980 (add_setshow_cmd): New function.
4981 * command.h (add_setshow_boolean_cmd): Replace
4982 add_set_boolean_cmd.
4983 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
4984 and ``set rdiromatzero''.
4985 * maint.c (_initialize_maint_cmds): Update commented out code.
4986 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
4987 * target.c (initialize_targets): Update `set
4988 trust-readonly-sections'.
4989 * remote.c (_initialize_remote): Update `set remotebreak'.
4990
4991 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4992
4993 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
4994 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
4995 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
4996 fit into multi-arch framework.
4997 (i386_breakpoint_from_pc): New function.
4998 (i386_gdbarch_init): Adjust for removal of the macros mentioned
4999 above.
5000
5001 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
5002 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
5003 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
5004 (i386_frameless_function_invocation, i386_frame_num_args,
5005 i386_frame_init_saved_regs): Remove prototypes.
5006 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
5007 macros mentioned above.
5008
5009 2002-06-15 Andrew Cagney <ac131313@redhat.com>
5010
5011 * cli/cli-decode.c (set_cmd_cfunc): Update.
5012 (set_cmd_sfunc): Update.
5013 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
5014 (set_cmd_sfunc, set_cmd_cfunc): Update.
5015 * cli/cli-decode.h: Update.
5016
5017 2002-06-15 Mark Kettenis <kettenis@gnu.org>
5018
5019 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
5020 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
5021
5022 2002-06-15 Andrew Cagney <ac131313@redhat.com>
5023
5024 * defs.h (auto_boolean): Declare enum.
5025 * command.h (cmd_auto_boolean): Delete enum.
5026 * mips-tdep.c (mask_address_var): Update.
5027 (mips_mask_address_p): Update.
5028 (show_mask_address): Update.
5029 * remote.c (struct packet_config): Update.
5030 (update_packet_config): Update.
5031 (show_packet_config_cmd): Update.
5032 (packet_ok): Update.
5033 (add_packet_config_cmd): Update.
5034 (_initialize_remote):
5035 * command.h: Update.
5036 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
5037 (do_setshow_command): Update.
5038 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
5039 * cli/cli-decode.h: Update.
5040
5041 2002-06-15 Mark Kettenis <kettenis@gnu.org>
5042
5043 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
5044 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
5045 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
5046 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
5047 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
5048 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
5049
5050 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
5051 list of DJGPP COFF targets.
5052
5053 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
5054 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
5055 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
5056 (FP0_REGNUM): Remove define.
5057 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
5058 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
5059 (i386_register_virtual_size): Remove protoype.
5060 * i386-tdep.c (i386_register_virtual_size): Removed.
5061 (i386_extract_return_value, i386_store_return_value): Use
5062 FP0_REGNUM instead of NUM_FREGS to determine whether the
5063 floating-point registers are available.
5064 (i386_gdbarch_init): Tweak FIXME about FPU registers.
5065 Adjust for removal of macros mentioned above.
5066
5067 2002-06-15 Mark Kettenis <kettenis@gnu.org>
5068
5069 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
5070 comments.
5071 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
5072 Remove prototypes.
5073 (supply_gregset, fill_gregset): Remove use of register keyword and
5074 remove declaration for regmap. Use I386_NUM_GREGS instead of
5075 NUM_REGS and NUM_FREGS.
5076 (FPREGSET_FSAVE_OFFSET): Remove.
5077 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
5078 NUM_FREGS to determine whether the floating-point registers are
5079 available.
5080
5081 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
5082 gnu_store_registers): Replace usage of NUM_GREGS with
5083 I386_NUM_GREGS.
5084
5085 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
5086 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
5087 usage of NUM_GREGS with I386_NUM_GREGS.
5088
5089 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
5090
5091 * i386bsd-nat.c: Include "i386-tdep.h".
5092 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
5093 I386_NUM_GREGS.
5094
5095 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
5096 and associated comment. They no longer make any sense, since we
5097 don't use this file anymore on Linux.
5098
5099 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
5100 * i386-tdep.c (i386_register_offset, i386_register_size): Use
5101 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
5102 elements in these arrays.
5103 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
5104 MAX_NUM_REGS.
5105
5106 2002-06-15 Mark Kettenis <kettenis@gnu.org>
5107
5108 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
5109 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
5110
5111 2002-06-14 Andrew Cagney <cagney@redhat.com>
5112
5113 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
5114 EXTRACT_RETURN_VALUE.
5115 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
5116 EXTRACT_STRUCT_VALUE_ADDRESS.
5117 * gdbarch.h, gdbarch.c: Regenerate.
5118
5119 * values.c (value_being_returned): Handle
5120 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
5121 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
5122
5123 * arm-linux-tdep.c (arm_linux_init_abi): Update.
5124 * arm-tdep.c (arm_gdbarch_init): Update.
5125 * avr-tdep.c (avr_gdbarch_init): Update.
5126 * cris-tdep.c (cris_gdbarch_init): Update.
5127 * d10v-tdep.c (d10v_gdbarch_init): Update.
5128 * ia64-tdep.c (ia64_gdbarch_init): Update.
5129 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5130 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5131 * s390-tdep.c (s390_gdbarch_init): Update.
5132 * sh-tdep.c (sh_gdbarch_init): Update.
5133 * s390-tdep.c (s390_gdbarch_init): Update.
5134 * sparc-tdep.c (sparc_gdbarch_init): Update.
5135 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5136 * v850-tdep.c (v850_gdbarch_init): Update.
5137 * vax-tdep.c (vax_gdbarch_init): Update.
5138 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
5139 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5140
5141 * config/arc/tm-arc.h: Update.
5142 * config/d30v/tm-d30v.h: Update.
5143 * config/fr30/tm-fr30.h: Update.
5144 * config/h8300/tm-h8300.h: Update.
5145 * config/h8500/tm-h8500.h: Update.
5146 * config/i386/tm-i386.h: Update.
5147 * config/i386/tm-ptx.h: Update.
5148 * config/i386/tm-symmetry.h: Update.
5149 * config/i960/tm-i960.h: Update.
5150 * config/m32r/tm-m32r.h: Update.
5151 * config/m68k/tm-delta68.h: Update.
5152 * config/m68k/tm-linux.h: Update.
5153 * config/m68k/tm-m68k.h: Update.
5154 * config/m88k/tm-m88k.h: Update.
5155 * config/mcore/tm-mcore.h: Update.
5156 * config/mips/tm-mips.h: Update.
5157 * config/mn10200/tm-mn10200.h: Update.
5158 * config/pa/tm-hppa.h: Update.
5159 * config/pa/tm-hppa64.h: Update.
5160 * config/sparc/tm-sp64.h: Update.
5161 * config/sparc/tm-sparc.h: Update.
5162 * config/sparc/tm-sparclet.h: Update.
5163 * config/z8k/tm-z8k.h: Update.
5164
5165 2002-06-14 Andrew Cagney <cagney@redhat.com>
5166
5167 * Makefile.in (i386_linux_tdep_h): Define.
5168 (i386_tdep_h, i387_tdep_h): Define.
5169 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
5170 $(i386_tdep_h) and $(i387_tdep_h).
5171 * i386-linux-nat.c: Include "i386-linux-tdep.h".
5172
5173 2002-06-14 Mark Kettenis <kettenis@gnu.org>
5174
5175 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
5176 Already covered by the default.
5177
5178 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
5179 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
5180 (i386_gdbarch_init): Initialize long_double_format and long_double
5181 bit.
5182
5183 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
5184 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
5185 Move these to ...
5186 * config/i386/i386sol2.mh: ... here.
5187 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
5188 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
5189 (SIGCONTEXT_PC_OFFSET): Remove define.
5190 (IN_SIGTRAMP): Remove define.
5191 * i386-sol2-tdep.c: New file.
5192
5193 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
5194 * config/i386/tm-i386nw.h: Removed.
5195
5196 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
5197 USE_STRUCT_CONVENTION): Remove defines.
5198 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5199 (get_longjmp_target): Remove prototype.
5200 (IN_SIGTRAMP): Remove define.
5201 (i386bsd_in_sigtramp): Remove prototype.
5202 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
5203 function. Update comment accordingly
5204 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
5205 (FRAME_SAVED_PC): Remove define.
5206 (i386bsd_frame_saved_pc): Remove prototype.
5207 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
5208 GET_LONGJMP_TARGET): Remove defines.
5209 (get_longjmp_target): Remove prototype.
5210 (IN_SIGTRAMP): Remove define.
5211 (i386bsd_in_sigtramp): Remove prototype.
5212 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
5213 function. Update comment accordingly
5214 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
5215 (FRAME_SAVED_PC): Remove define.
5216 (i386bsd_frame_saved_pc): Remove prototype.
5217 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
5218 Remove prototype.
5219 (USE_STRUCT_CONVENTION): Remove prototype.
5220 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
5221 declaration.
5222 (_initialize_i386bsd_nat): Revise logic to determine some
5223 constants at compile time when compiling a native GDB. Warn if
5224 things don't match up with what we expect.
5225 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
5226 Remove variables.
5227 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
5228 to use date stored in `struct gdbarch_tdep'.
5229 (i386bsd_sigcontext_offset): Remove varaible.
5230 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
5231 stored in `struct gdbarch_tdep'.
5232 (i386bsd_frame_saved_pc): Make static.
5233 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
5234 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
5235 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
5236 i386fbsd4_sc_pc_offset): New variables.
5237 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
5238 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
5239 functions.
5240 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
5241 functions.
5242 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
5243 Modify the value of i386fbsd_sigtramp_start and
5244 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
5245 i386fbsd_sigtramp_end.
5246 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
5247 function.
5248
5249 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
5250 define to i386-linux-tdep.h.
5251 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
5252 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
5253 defines.
5254 (i386_linux_register_name, i386_linux_register_byte,
5255 i386_linux_register_raw_size): Remove prototypes.
5256 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
5257 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
5258 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
5259 TARGET_WRITE_PC): Remove defines.
5260 (i386_linux_in_sigtramp, i386_linux_frame_chain,
5261 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
5262 i386_linux_write_pc): Remove prototypes.
5263 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5264 (get_longjmp_target): Remove prototype.
5265 * i386-linux-tdep.h: New file.
5266 * i386-linux-nat.c: Include "i386-linux-tdep.h".
5267 * i386-linux-tdep.c: Include "i386-tdep.h" and
5268 "i386-linux-tdep.h".
5269 (i386_linux_register_name, i386_linux_register_byte,
5270 i386_linux_register_raw_size, i386_linux_in_sigtramp,
5271 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
5272 Make static.
5273 (i386_linux_init_abi): New function.
5274 (_initialize_i386_linux_tdep): New function.
5275
5276 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
5277 (i386_saved_pc_after_call): Remove prototype.
5278 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
5279 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
5280 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
5281 (i386_register_name, i386_stab_reg_to_regnum,
5282 i386_dwarf_reg_to_regnum): Remove prototypes.
5283 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
5284 SIZEOF_SSE_REGS): Remove defines.
5285 (REGISTER_BYTES): Remove define.
5286 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
5287 (i386_register_byte, i386_register_raw_size): Remove prototypes.
5288 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
5289 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
5290 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
5291 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
5292 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
5293 (get_longjmp_target): Remove prototype.
5294 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
5295 (sigtramp_saved_pc): Remove define.
5296 (i386v4_sigtramp_saved_pc): Remove prototype.
5297 * config/i386/tm-go32.h (FRAME_CHAIN,
5298 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
5299 (i386go32_frame_saved_pc): Remove prototype.
5300 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5301 (get_longjmp_target): Remove prototype.
5302 * i386-tdep.h: Include "osabi.h".
5303 (enum i386_abi): Removed.
5304 (enum struct_return): New enum.
5305 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
5306 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
5307 sc_pc_offset members.
5308 (i386_gdbarch_register_os_abi): Remove prototype.
5309 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
5310 I386_SSE_NUM_REGS): New defines.
5311 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
5312 I386_SSE_SIZEOF_REGS): New defines.
5313 (i386_register_name, i386_register_byte, i386_register_raw_size):
5314 New prototypes.
5315 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
5316 (i386bsd_sigtramp_saved_pc): New prototype.
5317 * i386-tdep.c: Don't include "elf-bfd.h".
5318 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
5319 i386_frame_chain, i386_saved_pc_after_call): Make static.
5320 (i386_frame_saved_pc): Rewrite to call architecture dependent
5321 function to deal with signal handlers. Make static.
5322 (i386go32_frame_saved_pc): Removed.
5323 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
5324 Removed.
5325 (i386_get_longjmp_target): New function.
5326 (default_struct_convention, pcc_struct_convention,
5327 reg_struct_convention, valid_conventions, struct_convention): New
5328 variables.
5329 (i386_use_struct_convention): New function.
5330 (i386v4_sigtramp_saved_pc): Renamed to
5331 i386_svr4_sigtramp_saved_pc. Made static. Moved.
5332 (i386_pc_in_sigtramp): New function.
5333 (i386_abi_names): Removed.
5334 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
5335 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
5336 Removed.
5337 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
5338 i386_gdbarch_register_os_abi): Removed.
5339 (struct i386_abi_handler): Removed.
5340 (i386_abi_handler_list): Removed.
5341 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
5342 functions.
5343 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
5344 i386_nw_init_abi): New functions.
5345 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
5346 Use set_gdbarch_xxx() calls instead of relying on macros for a
5347 number of calls.
5348 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
5349 (_initialize_i386_tdep): Add new 'struct-convcention' command.
5350 Register the various architecture variants defined in this file.
5351
5352 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
5353
5354 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
5355 (struct main_type): Remove arg_types member. Update comments for
5356 struct field.
5357 (TYPE_ARG_TYPES): Remove.
5358 (TYPE_FN_FIELD_ARGS): Update.
5359 (smash_to_method_type): Update prototype.
5360
5361 * c-typeprint.c (cp_type_print_method_args): Take method type
5362 instead of argument list. Use new argument layout. Simplify.
5363 (c_type_print_args): Use new argument layout. Simplify.
5364 (c_type_print_base): Update call to cp_type_print_method_args.
5365 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
5366 argument; use die->type instead. Update call to
5367 smash_to_method_type.
5368 (read_structure_scope): Update call to dwarf2_add_member_fn.
5369 * gdbtypes.c (allocate_stub_method): Update comment.
5370 (smash_to_method_type): Take new NARGS and VARARGS arguments.
5371 Use new argument layout.
5372 (check_stub_method): Use new argument layout. Don't count
5373 void as an argument.
5374 (print_arg_types): Update comments. Use new argument layout.
5375 (recursive_dump_type): Don't print arg_types member.
5376 * hpread.c (hpread_read_struct_type): Use new argument layout.
5377 (fixup_class_method_type): Likewise.
5378 (hpread_type_lookup): Likewise.
5379 * stabsread.c (read_type): Update calls to read_args and
5380 smash_to_method_type.
5381 (read_args): Use new argument layout. Simplify.
5382 * valops.c (typecmp): Use new argument layout. Update parameters
5383 and comments. Simplify.
5384 (hand_function_call): Use new argument layout.
5385 (search_struct_method): Update call to typecmp.
5386 (find_overload_match): Use new argument layout.
5387
5388 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
5389
5390 * NEWS: Mention multithreaded debug support for gdbserver.
5391
5392 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
5393
5394 * MAINTAINERS: Mention NEWS.
5395
5396 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
5397
5398 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
5399 (struct mips_objfile_private, compare_pdr_entries): New.
5400 (non_heuristic_proc_desc): Read the ".pdr" section if it
5401 is present.
5402
5403 2002-06-12 Andrew Cagney <ac131313@redhat.com>
5404
5405 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
5406 (arm_debug): New static variable.
5407 (_initialize_arm_tdep): Add ``set debug arm'' command.
5408
5409 2002-06-12 Andrew Cagney <ac131313@redhat.com>
5410
5411 * Makefile.in (sim_arm_h): Define.
5412 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
5413 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
5414 (arm_register_sim_regno): New function, map an internal REGNUM
5415 onto a simulator register number.
5416 (arm_gdbarch_init): Set register_sim_regno.
5417
5418 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
5419
5420 * MAINTAINERS: Add self.
5421
5422 2002-06-11 Jim Blandy <jimb@redhat.com>
5423
5424 * source.c (source_info): Mention whether the symtab has
5425 information about preprocessor macros.
5426
5427 Call the command `info macro', not `show macro'.
5428 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
5429 Fix error message.
5430 (_initialize_macrocmd): Register `info_macro_command' in
5431 `infolist', not `showlist'.
5432
5433 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
5434
5435 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
5436 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
5437 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
5438 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
5439 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
5440 unconditionally.
5441 (set_mipsfpu_single_command, set_mipsfpu_double_command)
5442 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
5443 (_initialize_mips_tdep): Remove dead code.
5444 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
5445 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
5446 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
5447 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
5448 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
5449 MIPS_LAST_FP_ARG_REGNUM): Remove.
5450
5451 2002-06-11 Michal Ludvig <mludvig@suse.cz>
5452
5453 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
5454 (unwind_tmp_obstack_free, parse_frame_info)
5455 (update_context, cfi_read_fp, cfi_write_fp)
5456 (cfi_frame_chain, cfi_init_extra_frame_info)
5457 (cfi_virtual_frame_pointer): Use the above function.
5458 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
5459
5460 2002-06-11 Corinna Vinschen <vinschen@redhat.com>
5461
5462 * v850-tdep.c (v850_type_is_scalar): New function.
5463 (v850_use_struct_convention): Match current gcc implementation
5464 as close as possible.
5465 (v850_push_arguments): Fix stack_offset handling. Don't write
5466 struct_addr into register. This is done by v850_store_struct_return.
5467 (v850_extract_return_value): Care for structs.
5468 (v850_store_return_value): Ditto.
5469 (v850_store_struct_return): Actually write address.
5470
5471 2002-06-11 Michal Ludvig <mludvig@suse.cz>
5472
5473 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
5474 without debug information too.
5475
5476 2002-06-10 Andrew Cagney <ac131313@redhat.com>
5477
5478 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
5479 Make multi-arch pure.
5480 * gdbarch.h, gdbarch.c: Re-generate.
5481 * arm-tdep.c (arm_print_float_info): Update.
5482 * arch-utils.h (default_print_float_info): Update.
5483 * arch-utils.c (default_print_float_info): Update.
5484 * infcmd.c (float_info): Update call.
5485
5486 2002-06-10 Andrew Cagney <ac131313@redhat.com>
5487
5488 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
5489 the front of the initialize list.
5490
5491 2002-06-10 Andrew Cagney <ac131313@redhat.com>
5492
5493 * infrun.c (struct inferior_status): Replace fields
5494 selected_frame_address and selected_level with field
5495 selected_frame_id.
5496 (save_inferior_status): Update. Use get_frame_id.
5497 (struct restore_selected_frame_args): Delete.
5498 (restore_selected_frame): Update. Use frame_find_by_id.
5499 (restore_inferior_status): Update.
5500
5501 * breakpoint.h (struct breakpoint): Change type of
5502 watchpoint_frame to frame_id.
5503 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
5504 call to get_current_frame.
5505 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
5506 get_current_frame.
5507 (watchpoint_check): Use frame_find_by_id.
5508
5509 * frame.h (record_selected_frame): Delete declaration.
5510 * stack.c (record_selected_frame): Delete function.
5511
5512 * frame.h (struct frame_id): Define.
5513 (get_frame_id): Declare.
5514 (frame_find_by_id): Declare.
5515 * frame.c (frame_find_by_id): New function.
5516 (get_frame_id): New function.
5517
5518 2002-06-10 Andrey Volkov <avolkov@transas.com>
5519
5520 * ser-e7kpc.c: Fix duplicated define and call of
5521 _initialize_ser_e7000pc
5522
5523 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
5524
5525 * signals/signals.c (target_signal_from_host): Fix #ifdef
5526 SIGRTMIN case.
5527 (do_target_signal_to_host): Likewise.
5528
5529 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
5530
5531 * mips-tdep.c (mips_find_abi_section): New function.
5532 (mips_gdbarch_init): Call it.
5533
5534 2002-06-09 Mark Kettenis <kettenis@gnu.org>
5535
5536 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
5537 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
5538 after Andrew's 2002-06-08 gdbarch change.
5539
5540 2002-06-09 Mark Kettenis <kettenis@gnu.org>
5541
5542 * i386-linux-nat.c (suppy_gregset): Don't supply
5543 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
5544 register cache.
5545 (fill_gregset): Don't fetch it under the same circumstances.
5546
5547 2002-06-09 Andrew Cagney <cagney@redhat.com>
5548
5549 * Makefile.in (callback_h): Define.
5550 (remote_sim_h): Update path to remote-sim.h.
5551 (remote-rdp.o): Add $(callback_h).
5552 (remote-sim.o): Use $(callback_h).
5553 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
5554 * remote-rdp.c: Include "gdb/callback.h".
5555
5556 2002-06-09 Mark Kettenis <kettenis@gnu.org>
5557
5558 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
5559 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
5560
5561 2002-06-08 Andrew Cagney <ac131313@redhat.com>
5562
5563 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
5564 * rdi-share/serpardr.c: Ditto.
5565 * rdi-share/unixcomm.c: Ditto.
5566 * rdi-share/serdrv.c: Ditto.
5567 * rdi-share/hostchan.h: Ditto.
5568 * rdi-share/hostchan.c: Ditto.
5569 * rdi-share/host.h: Ditto.
5570 * rdi-share/devsw.c: Ditto.
5571
5572 * objfiles.h: Change type of obj_private to void pointer.
5573 * pa64solib.c: Update copyright. Don't include "assert.h", use
5574 strcmp instead of STREQ, use LONGEST, do not use PTR
5575 * somsolib.c: Ditto.
5576
5577 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
5578 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
5579 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
5580
5581 2002-06-08 Andrew Cagney <ac131313@redhat.com>
5582
5583 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
5584 (default_get_saved_register): Delete function.
5585 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
5586 generic_unwind_get_saved_register.
5587 * gdbarch.h, gdbarch.c: Re-generate.
5588
5589 2002-06-08 Andrew Cagney <ac131313@redhat.com>
5590
5591 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
5592 generic_func_frame_chain_valid.
5593 * gdbarch.h, gdbarch.c: Re-generate.
5594 * blockframe.c (generic_func_frame_chain_valid): Only check
5595 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
5596 passing FP to PC_IN_CALL_DUMMY.
5597 Fix PR gdb/360.
5598
5599 2002-06-08 Andrew Cagney <ac131313@redhat.com>
5600
5601 * gdbarch.sh (struct gdbarch_data): Add field init_p.
5602 (register_gdbarch_data): Initialize init_p.
5603 (gdbarch_data): Initialize data pointer using the init function.
5604 (init_gdbarch_data): Delete function.
5605 (gdbarch_update_p): Update.
5606 (initialize_non_multiarch): Update.
5607 (struct gdbarch): Add field initialized_p.
5608 * gdbarch.h, gdbarch.c: Re-generate.
5609
5610 2002-06-07 Michal Ludvig <mludvig@suse.cz>
5611
5612 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
5613 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
5614 better do the things actually here.
5615 * x86-64-tdep.c (x86_64_register_name2nr): New.
5616 (x86_64_register_name): Renamed to x86_64_register_nr2name.
5617 (x86_64_gdbarch_init): Respect the above change.
5618 * x86-64-tdep.h (x86_64_register_name2nr)
5619 (x86_64_register_nr2name): Add prototypes.
5620 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
5621
5622 2002-06-06 Michael Snyder <msnyder@redhat.com>
5623
5624 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
5625 Delete extra braces and re-indent.
5626 (d10v_store_return_value): Char return values
5627 must be shifted over by one byte in R0.
5628 (d10v_extract_return_value): Delete extra braces, re-indent.
5629
5630 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
5631
5632 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
5633 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
5634 (d10v_integer_to_address): Rewrite.
5635 (d10v_frame_init_saved_regs): When reading fp and sp registers use
5636 the d10v specific functions which take care of converting to the
5637 correct space.
5638
5639 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
5640
5641 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
5642 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
5643
5644 2002-06-02 Andrew Cagney <ac131313@redhat.com>
5645
5646 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
5647 includes.
5648 * config/tm-linux.h: Ditto.
5649 * config/alpha/tm-alphalinux.h: Ditto.
5650 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
5651 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
5652 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
5653 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
5654 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
5655 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
5656 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
5657 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
5658 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
5659 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
5660 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
5661 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
5662 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
5663 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
5664 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
5665 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
5666 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
5667 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
5668 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
5669 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
5670 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
5671 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
5672 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
5673 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
5674 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
5675 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
5676 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
5677 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
5678 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
5679 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
5680 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
5681 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
5682 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
5683 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
5684 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
5685 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
5686 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
5687
5688 2002-05-04 Aidan Skinner <aidan@velvet.net>
5689
5690 * ada-exp.tab.c: New file
5691 * ada-exp.y: New file
5692 * ada-lang.c: New file
5693 * ada-lang.h: New file
5694 * ada-lex.c: New file
5695 * ada-lex.l: New file
5696 * ada-tasks.c: New file
5697 * ada-typeprint.c: New file
5698 * ada-valprint.c: New file
5699
5700 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
5701
5702 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
5703 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
5704
5705 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
5706
5707 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
5708 insetead of ppc-linux-tdep.o.
5709 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
5710 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
5711
5712 2002-06-02 Andrew Cagney <ac131313@redhat.com>
5713
5714 2002-05-07 Christian Groessler <chris@groessler.org>
5715 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
5716 bit register contents for little endian hosts.
5717
5718 2002-06-01 Andrew Cagney <ac131313@redhat.com>
5719
5720 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
5721 any maintainer.
5722
5723 2002-06-01 Andrew Cagney <ac131313@redhat.com>
5724
5725 * gdbarch.h: Regenerate.
5726
5727 2002-06-01 Andrew Cagney <ac131313@redhat.com>
5728
5729 * MAINTAINERS: Add everyone to write-after-approval list.
5730
5731 2002-06-01 Andrew Cagney <ac131313@redhat.com>
5732
5733 * stack.c (frame_info): Use frame_register_unwind instead of
5734 saved_regs. Mention when the SP is on the stack or in a register.
5735
5736 * frame.h (frame_register_unwind_ftype): Define. Document.
5737 (struct frame_info): Add field register_unwind and
5738 register_unwind_cache.
5739 (frame_register_unwind): Declare.
5740 (generic_unwind_get_saved_register): Declare.
5741
5742 * frame.c (frame_register_unwind): New function.
5743 (generic_unwind_get_saved_register): New function.
5744
5745 * blockframe.c (generic_call_dummy_register_unwind): New function.
5746 (frame_saved_regs_register_unwind): New function.
5747 (set_unwind_by_pc): New function.
5748 (create_new_frame): New function.
5749 (get_prev_frame): New function.
5750
5751 2002-05-30 Andrew Cagney <ac131313@redhat.com>
5752
5753 * a29k-share/: Delete directory.
5754 * remote-vx29k.c: Delete file.
5755
5756 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5757
5758 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
5759 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
5760
5761 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5762
5763 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
5764 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
5765 (sparc64nbsd-nat.o)
5766 (sparcnbsd-nat.o)
5767 (sparcnbsd-tdep.o): New dependency lists.
5768 * NEWS: Note new UltraSPARC NetBSD native configuration.
5769 * configure.host (sparc64-*-netbsd*): New host.
5770 * configure.tgt (sparc-*-netbsdelf*)
5771 (sparc-*-netbsd*): Set gdb_target to nbsd.
5772 (sparc64-*-netbsd*): New target.
5773 * sparc64nbsd-nat.c: New file.
5774 * sparcnbsd-nat.c: New file.
5775 * sparcnbsd-tdep.c: New file.
5776 * sparcnbsd-tdep.h: New file.
5777 * config/sparc/nbsd.mt: New file.
5778 * config/sparc/nbsd64.mh: New file.
5779 * config/sparc/nbsd64.mt: New file.
5780 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
5781 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
5782 (HOST_IPC): Remove.
5783 * config/sparc/nbsdaout.mt: Remove.
5784 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
5785 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
5786 (HOST_IPC): Remove.
5787 * config/sparc/nbsdelf.mt: Remove.
5788 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
5789 sparc-nat.c compatiblity defines.
5790 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
5791 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
5792 * config/sparc/tm-nbsd64.h: New file.
5793 * config/sparc/tm-nbsdaout.h: Remove.
5794 * config/sparc/xm-nbsd.h: Remove.
5795
5796 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5797
5798 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
5799 * sparc-tdep.c: Include osabi.h.
5800 (gdbarch_tdep): Add osabi member.
5801 (_initialize_sparc_tdep): Use gdbarch_register.
5802 (sparc_gdbarch_init): Use generic OS ABI framework.
5803 (sparc_dump_tdep): New function.
5804
5805 2002-05-30 Kevin Buettner <kevinb@redhat.com>
5806
5807 * corefile.c (do_captured_read_memory_integer): Return non-zero
5808 result.
5809 (safe_read_memory_integer): Copy result of memory read when
5810 status is non-zero. Also, add comments.
5811
5812 2002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
5813
5814 * Makefile.in (ppc_tdep_h): Define.
5815 (ppc-linux-nat.o)
5816 (ppc-linux-tdep.o)
5817 (rs6000-tdep.o): Use $(ppc_tdep_h).
5818 (ppc-sysv-tdep.o)
5819 (ppcnbsd-nat.o)
5820 (ppcnbsd-tdep.o): New dependency lists.
5821 * ppc-tdep.h: Use generic OS ABI framework.
5822 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
5823 (ppc_linux_init_abi): New functions.
5824 (ppc_sysv_abi_broken_use_struct_convention)
5825 (ppc_sysv_abi_use_struct_convention)
5826 (ppc_sysv_abi_push_arguments): Move to...
5827 * ppc-sysv-tdep.c: ...here.
5828 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
5829 * rs6000-tdep.c (process_note_abi_tag_sections)
5830 (get_elfosabi): Remove.
5831 (rs6000_gdbarch_init): Use generic OS ABI framework.
5832 (rs6000_dump_tdep): New function.
5833 (_initialize_rs6000_tdep): Use gdbarch_register.
5834 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
5835 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
5836 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
5837 of ppc-linux-tdep.o.
5838 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
5839 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
5840 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
5841 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
5842 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
5843 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
5844
5845 2002-05-29 Jim Blandy <jimb@redhat.com>
5846
5847 * macroscope.c (default_macro_scope): Put `void' in empty argument
5848 list.
5849
5850 2002-05-29 Andrew Cagney <ac131313@redhat.com>
5851
5852 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
5853 * arch-utils.c: Include "sim-regno.h".
5854 * gdbarch.sh: Don't include "sim-regno.h".
5855 * gdbarch.h, gdbarch.c: Regenerate.
5856 * sim-regno.h (legacy_register_sim_regno): Move declaration from
5857 here.
5858 * arch-utils.h (legacy_register_sim_regno): To here.
5859 * remote-sim.c (legacy_register_sim_regno): Move function from
5860 here.
5861 * arch-utils.c (legacy_register_sim_regno): To here.
5862
5863 2002-05-28 Andrew Cagney <ac131313@redhat.com>
5864
5865 * sim-regno.h: New file.
5866 * Makefile.in (sim_regno_h): Define.
5867 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
5868 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
5869 (legacy_register_sim_regno): New function.
5870 (one2one_register_sim_regno): New function.
5871 (gdbsim_fetch_register): Rewrite.
5872 (gdbsim_store_register): Only store a register when
5873 REGISTER_SIM_REGNO is valid.
5874 * d10v-tdep.c: Include "sim-regno.h".
5875 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
5876 (d10v_ts3_register_sim_regno): Ditto.
5877 * gdbarch.sh: Include "sim-regno.h".
5878 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
5879 * gdbarch.h, gdbarch.c: Regenerate.
5880 * arch-utils.h (default_register_sim_regno): Delete declaration.
5881 * arch-utils.c (default_register_sim_regno): Delete function.
5882
5883 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
5884
5885 * ppcnbsd-nat.c: Rewrite.
5886 * ppcnbsd-tdep.c: New file.
5887 * ppcnbsd-tdep.h: New file.
5888 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
5889 solib.o, and solib-svr4.o.
5890 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
5891 nbsd-tdep.o, and corelow.o.
5892
5893 2002-05-28 Andrew Cagney <ac131313@redhat.com>
5894
5895 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
5896 `tr' and `sed'. Mention that `broken' targets are not expected to
5897 build.
5898
5899 2002-05-27 Michal Ludvig <mludvig@suse.cz>
5900
5901 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
5902 Let PC point right after the prologue before looking up symbols.
5903
5904 2002-05-27 Martin M. Hunt <hunt@redhat.com>
5905
5906 * i386-tdep.c (i386_register_virtual_type): Return
5907 builtin_type_vec128i for SSE registers.
5908
5909 * gdbtypes.h (builtin_type_vec128i): Declare.
5910
5911 * gdbtypes.c (build_builtin_type_vec128i): New function.
5912 (builtin_type_v2_double, builtin_type_v4_int64): New types.
5913 (builtin_type_vec128i): New type for SSE2 128-bit registers.
5914 (build_gdbtypes): Initialize new builtin vector types.
5915 (_initialize_gdbtypes): Register new vector types with gdbarch.
5916
5917 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5918
5919 * MAINTAINERS: ns32k is not longer an obsolete candidate,
5920 since it has been multi-arch'd.
5921 * NEWS: Note that ns32k-*-* is now partial multi-arch.
5922 Move Alpha and VAX multi-arch news entries to same section
5923 as other multi-arch news.
5924
5925 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5926
5927 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
5928 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
5929 static. Rename some register numbers to put them in ns32k-tdep
5930 private namespace.
5931 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
5932 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
5933 functions.
5934 (_initialize_ns32k_tdep): Use gdbarch_register.
5935 * ns32k-tdep.h: New file.
5936 * ns32knbsd-tdep.c: New file.
5937 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
5938 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
5939 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
5940 REGISTER_BYTES, REGISTER_BYTE): Remove.
5941 * config/ns32k/tm-ns32k.h: New file.
5942 * config/ns32k/tm-umax.h: Remove.
5943
5944 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5945
5946 * ns32k-tdep.c (ns32k_saved_pc_after_call,
5947 ns32k_store_struct_return, ns32k_extract_return_value,
5948 ns32k_store_return_value, ns32k_extract_struct_value_address): New
5949 functions.
5950 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
5951 ns32k_saved_pc_after_call.
5952 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
5953 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
5954 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
5955 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
5956 ns32k_extract_struct_value_address.
5957
5958 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5959
5960 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
5961 ns32k_fix_call_dummy): New.
5962 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
5963 ns32k_call_dummy_words.
5964 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
5965 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
5966 CALL_DUMMY_NARGS): Remove.
5967 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
5968
5969 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5970
5971 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
5972 ns32k_frame_saved_pc, ns32k_frame_args_address,
5973 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
5974 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
5975 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
5976 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
5977 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
5978 (BREAKPOINT): Remove..
5979 (FRAME_CHAIN): Define as ns32k_frame_chain.
5980 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
5981 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
5982 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
5983 (FRAME_FIND_SAVED_REGS): Remove.
5984 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
5985 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
5986 (POP_FRAME): Define as ns32k_pop_frame.
5987
5988 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5989
5990 * ns32k-tdep.c (ns32k_register_byte_32082,
5991 ns32k_register_byte_32382, ns32k_register_raw_size,
5992 ns32k_register_virtual_size, ns32k_register_virtual_type): New
5993 functions.
5994 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
5995 ns32k_register_byte_32382.
5996 * config/ns32k/tm-umax.h: Update copyright years.
5997 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
5998 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
5999 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
6000 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
6001 (ns32k_get_enter_addr): Fix prototype.
6002
6003 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6004
6005 * ns32k-tdep.c: Update copyright years.
6006 (ns32k_register_name_32082): New function.
6007 (ns32k_register_name_32382): Ditto.
6008 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
6009 (REGISTER_NAME): Define as ns32k_register_name_32382.
6010 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
6011 (REGISTER_NAME): Define as ns32k_register_name_32082.
6012
6013 2002-05-24 Jim Blandy <jimb@redhat.com>
6014
6015 * dwarf2read.c (free_line_header): Use xfree, not free.
6016
6017 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
6018
6019 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
6020 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
6021
6022 2002-05-23 Andrew Cagney <ac131313@redhat.com>
6023
6024 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
6025
6026 2002-05-23 Andrew Cagney <ac131313@redhat.com>
6027
6028 From Ross Alexander at NEC Europe:
6029 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
6030
6031 2002-05-23 Michael Snyder <msnyder@redhat.com>
6032
6033 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
6034 for input, rather than parse_and_eval_address.
6035
6036 2002-05-23 Andrew Cagney <ac131313@redhat.com>
6037
6038 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
6039 * Makefile.in (sim_d10v_h): Update definition.
6040
6041 2002-05-24 Andrew Cagney <cagney@redhat.com>
6042
6043 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
6044 change `2002-05-22 Michael Snyder' below.
6045 (d10v_push_arguments): Ditto.
6046 (d10v_extract_return_value): Ditto.
6047
6048 2002-05-23 Jim Blandy <jimb@redhat.com>
6049
6050 * macrotab.c (check_for_redefinition): Don't complain if the new
6051 definition is the same as the previous one. Take more arguments
6052 to allow the comparison.
6053 (macro_define_object, macro_define_function): Pass more arguments
6054 to check_for_redefinition.
6055
6056 2002-05-22 Michael Snyder <msnyder@redhat.com>
6057
6058 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
6059 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
6060 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
6061 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
6062 Don't bail if return_pc is PC_IN_CALL_DUMMY.
6063 Add a temp variable to save a call (and a memory read).
6064 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
6065 if possible (so that PC_IN_CALL_DUMMY will work).
6066
6067 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
6068
6069 * MAINTAINERS: Remove status `OBSOLETE' from v850.
6070
6071 2002-05-22 Michal Ludvig <mludvig@suse.cz>
6072
6073 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
6074 fde->cie_ptr.
6075 (dwarf2_build_frame_info): Corrected handling of eh_frame.
6076 (dwarf2_build_frame_info): Add offset to fde->initial_location
6077 so that frames of shared libraries are mapped correctly.
6078 (execute_stack_op): Change type of 'result' from ULONGEST to
6079 CORE_ADDR.
6080
6081 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
6082
6083 * config/alpha/tm-nbsd.h: Include solib.h.
6084
6085 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
6086
6087 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
6088 assumptions about the host's byte order.
6089
6090 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
6091
6092 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
6093 to dependency list.
6094 * alphanbsd-tdep.c: Include solib-svr4.h.
6095 * shnbsd-tdep.c: Ditto.
6096
6097 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
6098
6099 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
6100 nbsd-tdep.h to dependency list.
6101 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
6102 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
6103 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
6104 nbsdaout.mh and nbsdelf.mh consistently.
6105 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
6106 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
6107 nbsdaout.mt and nbsdelf.mh consistently.
6108 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
6109 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
6110 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
6111 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
6112 a.out shared library stuff from here...
6113 * config/nm-nbsdaout.h: ...to here.
6114 * config/tm-nbsd.h: Remove.
6115 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
6116 * config/arm/nbsd.mh: Remove.
6117 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
6118 nbsd-tdep.o.
6119 * config/arm/nbsdaout.mh: New file.
6120 * config/arm/nbsdelf.mh: New file.
6121 * config/arm/nm-nbsdaout.h: New file.
6122 * config/i386/nbsd.mh: Remove.
6123 * config/i386/nbsd.mt: Remove.
6124 * config/i386/nbsdaout.mh: New file.
6125 * config/i386/nbsdaout.mt: New file.
6126 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
6127 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
6128 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
6129 i386_register_u_addr): Remove.
6130 * config/i386/nm-nbsdaout.h: New file.
6131 * config/i386/nm-nbsdelf.h: Remove.
6132 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
6133 (USE_STRUCT_CONVENTION): Remove.
6134 * config/i386/tm-nbsdaout.h: New file.
6135 * config/i386/tm-nbsdelf.h: Remove.
6136 * config/m68k/nbsd.mh: Remove.
6137 * config/m68k/nbsd.mt: Remove.
6138 * config/m68k/nbsdaout.mh: New file.
6139 * config/m68k/nbsdaout.mt: New file.
6140 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
6141 * config/m68k/nm-nbsdaout.h: New file.
6142 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
6143 (IN_SOLIB_CALL_TRAMPOLINE): Define.
6144 * config/ns32k/nbsd.mh: Remove.
6145 * config/ns32k/nbsd.mt: Remove.
6146 * config/ns32k/nbsdaout.mh: New file.
6147 * config/ns32k/nbsdaout.mt: New file.
6148 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
6149 * config/ns32k/nm-nbsdaout.h: New file.
6150 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
6151 (IN_SOLIB_CALL_TRAMPOLINE): Define.
6152 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
6153 (SVR4_SHARED_LIBS): Remove.
6154 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
6155 * config/sparc/nbsd.mh: Remove.
6156 * config/sparc/nbsd.mt: Remove.
6157 * config/sparc/nbsdaout.mh: New file.
6158 * config/sparc/nbsdaout.mt: New file.
6159 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
6160 * config/sparc/nbsdelf.mt: New file.
6161 * config/sparc/nm-nbsdaout.h: New file.
6162 * config/sparc/nm-nbsdelf.h: Remove.
6163 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
6164 * config/sparc/tm-nbsdaout.h: New file.
6165
6166 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6167
6168 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
6169 mipsnbsd-tdep.c
6170 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
6171
6172 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6173
6174 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
6175 shnbsd-nat.c.
6176 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
6177
6178 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6179
6180 * NEWS: Note new MIPS NetBSD native configuration.
6181 * configure.host (mips*-*-netbsd*): New host.
6182 * configure.tgt (mips*-*-netbsd*): New target.
6183 * mipsnbsd-nat.c: New file.
6184 * mipsnbsd-tdep.c: New file.
6185 * mipsnbsd-tdep.h: New file.
6186 * config/mips/nbsd.mh: New file.
6187 * config/mips/nbsd.mt: New file.
6188 * config/mips/nm-nbsd.h: New file.
6189 * config/mips/tm-nbsd.h: New file.
6190
6191 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6192
6193 * Makefile.in (SFILES): Add osabi.c.
6194 (COMMON_OBS): Add osabi.o.
6195 (osabi.o): New dependency list.
6196 * osabi.c: New file.
6197 * osabi.h: New file.
6198 * doc/gdbint.texinfo: Document new generic OS ABI framework.
6199
6200 * Makefile.in (alpha_tdep_h): Define and use instead of
6201 alpha-tdep.h.
6202 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
6203 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
6204 Remove.
6205 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
6206 * alpha-tdep.h: Include osabi.h.
6207 (alpha_abi): Remove.
6208 (gdbarch_tdep): Use generic OS ABI framework.
6209 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
6210 gdbarch_register_osabi.
6211 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
6212 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
6213 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
6214
6215 * Makefile.in (sh_tdep_h): Add osabi.h.
6216 * sh-tdep.h (sh_osabi): Remove.
6217 (gdbarch_tdep): Use generic OS ABI framework.
6218 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
6219 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
6220 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
6221 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
6222
6223 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
6224 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
6225 gdbarch_register_osabi.
6226 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
6227 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
6228 (get_elfosabi): Rename to...
6229 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
6230 ABI framework support routines.
6231 (arm_gdbarch_init): Use generic OS ABI framework.
6232 (arm_dump_tdep): Likewise.
6233 (_initialize_arm_tdep): Likewise.
6234 * arm-tdep.h: Include osabi.h.
6235 (arm_abi): Remove.
6236 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
6237 osabi member.
6238 (arm_gdbarch_register_os_abi): Remove prototype.
6239 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
6240 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
6241
6242 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
6243 * mips-tdep.c: Include osabi.h.
6244 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
6245 OS ABI framework.
6246
6247 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
6248
6249 * h8300-tdep.c: Fix formatting.
6250
6251 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
6252
6253 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
6254 printing vector registers.
6255
6256 2002-05-19 Andrew Cagney <ac131313@redhat.com>
6257
6258 From Fernando Nasser:
6259 * remote.c (remote_async_open_1): Re-throw the exception when the
6260 connection fails.
6261 (remote_cisco_open): Ditto.
6262 (remote_open_1): Ditto.
6263
6264 2002-05-19 Andrew Cagney <ac131313@redhat.com>
6265
6266 * remote.c (remote_start_remote_dummy): Add uiout parameter.
6267 (remote_start_remote): Add uiout parameter. Pass through to
6268 remote_start_remote_dummy.
6269 (remote_open_1): Use catch_exception instead of catch_errors.
6270 (remote_async_open_1): Ditto.
6271 (remote_cisco_open): Ditto.
6272
6273 2002-05-19 Andrew Cagney <ac131313@redhat.com>
6274
6275 * remote.c (remote_start_remote): Replace PTR with void pointer.
6276 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
6277 static.
6278
6279 2002-05-18 Andrew Cagney <ac131313@redhat.com>
6280
6281 * gdb_indent.sh: Allow the script to be run in the sim directory.
6282
6283 2002-05-18 Mark Kettenis <kettenis@gnu.org>
6284
6285 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
6286 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
6287
6288 * corelow.c (core_open): Only call set_gdbarch_from_file if
6289 exec_bfd is NULL.
6290
6291 2002-05-17 Andrey Volkov <avolkov@transas.com>
6292
6293 * h8300-tdep.c: Add support of EXR register
6294 * config/h8300/tm-h8300.h: Ditto.
6295
6296 2002-05-17 Andrey Volkov <avolkov@transas.com>
6297
6298 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
6299
6300 2002-05-17 Andrey Volkov <avolkov@transas.com>
6301
6302 * h8300-tdep.c: Change literal regnums to REGNO.
6303
6304 2002-05-17 Jim Blandy <jimb@redhat.com>
6305
6306 * NEWS: Note addition of macro support.
6307
6308 Expand preprocessor macros in C expressions.
6309 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
6310 (scan_macro_expansion, scanning_macro_expansion,
6311 finished_macro_expansion): New function declarations.
6312 (expression_macro_lookup_func, expression_macro_lookup_baton): New
6313 variable declarations.
6314 * parser-defs.h (expression_context_pc): New declaration.
6315 * parse.c (expression_context_pc): New variable.
6316 (parse_exp_1): Set expression_context_pc, as well as
6317 expression_context_block.
6318 * c-exp.y (yylex): If we're not already reading the result of a
6319 macro expansion, try to macro-expand the next token. When we're
6320 done scanning a macro expansion, switch back to the mainline text.
6321 Commas and `if's in a macro's expansion don't terminate the input.
6322 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
6323 (macro_original_text, macro_expanded_text,
6324 expression_macro_lookup_func, expression_macro_lookup_baton): New
6325 variables.
6326 (scan_macro_expansion, scanning_macro_expansion,
6327 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
6328 c_preprocess_and_parse): New functions.
6329 (c_language_defn, cplus_language_defn, asm_language_defn): Call
6330 c_preprocess_and_parse, instead of c_parse.
6331 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
6332 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
6333
6334 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
6335
6336 * sh-tdep.c (gdb_print_insn_sh64): Delete.
6337 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
6338 (sh_gdbarch_init): Always use gdb_print_insn_sh.
6339
6340 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
6341
6342 * NEWS: Add section for multi-arched targets. Add v850 to that section.
6343
6344 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
6345
6346 * Makefile.in (sh_tdep_h): Define and use.
6347 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
6348 register enum): Move to...
6349 * * sh-tdep.h: ...here.
6350 * sh-tdep.c: Include sh-tdep.h.
6351 * sh3-rom.c: Likewise.
6352 * shnbsd-tdep.c: Likewise.
6353
6354 2002-05-16 Michael Snyder <msnyder@redhat.com>
6355
6356 * arm-tdep.c: Spelling fix in comment.
6357
6358 2002-05-16 Jim Blandy <jimb@redhat.com>
6359
6360 Add commands for manually expanding macros and showing their
6361 definitions.
6362 * macrocmd.c, macroscope.c, macroscope.h: New files.
6363 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
6364 (macroscope_h): New variable.
6365 (HFILES_NO_SRCDIR): Add macroscope.h.
6366 (COMMON_OBS): Add macrocmd.o, macroscope.o.
6367 (macroscope.o, macrocmd.o): New rules.
6368
6369 Teach the Dwarf 2 reader to read macro information.
6370 * dwarf2read.c: #include "macrotab.h".
6371 (dwarf_macinfo_buffer): New variable.
6372 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
6373 dwarf_macinfo_size.
6374 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
6375 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
6376 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
6377 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
6378 dwarf2_macro_spaces_in_definition): New complaints.
6379 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
6380 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
6381 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
6382 the partial symbol table.
6383 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
6384 from what's recorded in the partial symbol table.
6385 (read_file_scope): If the compilation unit has a
6386 `DW_AT_macro_info' attribute, read its macro information.
6387 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
6388
6389 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
6390
6391 Fix PR gdb/546
6392 * ser-tcp.c: Don't include <netinet/udp.h>.
6393
6394 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
6395
6396 * MAINTAINERS: Update my email address.
6397
6398 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
6399
6400 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
6401 include file of the same name.
6402
6403 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
6404
6405 * configure.tgt: Mark v850 as multi-arched.
6406 * config/v850/tm-v850.h: Remove file.
6407 * config/v850/v850.mt: Eliminate TM_FILE.
6408
6409 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
6410
6411 * v850-tdep.c: Full multi-arch.
6412 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
6413 Define GDB_MULTI_ARCH to 2.
6414
6415 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
6416
6417 * p-exp.y (current_type): New static variable.
6418 Carries the type of the expression at the position that is parsed.
6419 (push_current_type, pop_current_type): Two new functions. Used
6420 to store/restore current_type in expression on specific tokens.
6421 (search_field): New static variable. Set to one after parsing a point
6422 as at that point only a FIELDNAME token should be searched.
6423 (FIELDNAME): New token. After a point only a token belonging to
6424 current_type type definition is allowed.
6425 (all over token rules): reset and change current_type according
6426 to rules.
6427 (exp '[' rule): insert implicit array index field if
6428 exp is a pascal string type.
6429
6430 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
6431
6432 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
6433 frame info. Use frame_info's saved_regs instead of matching member
6434 in extra_frame_info throughout.
6435 (v850_frame_init_saved_regs): New function.
6436 (v850_init_extra_frame_info): Move most functionality into
6437 v850_frame_init_saved_regs().
6438 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
6439 (v850_frame_find_saved_regs): Remove declaration.
6440 (FRAME_FIND_SAVED_REGS): Remove definition.
6441 (v850_frame_init_saved_regs): Add declaration.
6442 (FRAME_INIT_SAVED_REGS): Add definition.
6443
6444 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
6445
6446 * v850-tdep.c: Begin multi-arch'ing v850.
6447 (v850_target_architecture_hook): Remove function.
6448 (v850_gdbarch_init): New function. Add code previously in
6449 v850_target_architecture_hook().
6450 (_initialize_v850_tdep): Don't set target_architecture_hook.
6451 Call register_gdbarch_init() instead.
6452
6453 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
6454
6455 * gdbtypes.h (struct cplus_struct_type): Remove args field.
6456 * hpread.c (hpread_read_struct_type): Remove assignments to args.
6457 (fixup_class_method_type): Likewise.
6458
6459 2002-05-15 Jim Blandy <jimb@redhat.com>
6460
6461 Add macro structures to GDB's symbol tables. Nobody puts anything
6462 in them yet.
6463 * symtab.h (struct symtab): New member: `macro_table'.
6464 * buildsym.h (pending_macros): New global variable.
6465 * buildsym.c: #include "macrotab.h".
6466 (buildsym_init): Initialize `pending_macros'.
6467 (end_symtab): If we found macro information while reading a CU's
6468 debugging info, do build a symtab structure for it. Make the
6469 symtab point to the macro information, and clear the
6470 `pending_macros' pointer which held it while we were reading the
6471 debug info.
6472 (really_free_pendings): Free any pending macro table.
6473 * objfiles.h (struct objfile): New member: `macro_cache'.
6474 * objfiles.c (allocate_objfile): Set allocate and free functions
6475 for the macro cache's objstack.
6476 (free_objfile): Empty the macro cache's obstack.
6477 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
6478 set new allocate and free functions for it.
6479 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
6480 free functions for the macro cache's objstack. (Why is this
6481 function building its own objfile?)
6482 * symmisc.c (print_objfile_statistics): Print statistics on the
6483 macro bcache.
6484 * Makefile.in: Note that buildsym.o depends on macrotab.h.
6485
6486 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
6487
6488 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
6489 (REGISTER_U_ADDR): Delete definition.
6490 (arm_register_u_addr): Delete declaration.
6491
6492 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
6493
6494 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
6495 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
6496
6497 2002-05-14 Andrew Cagney <ac131313@redhat.com>
6498
6499 * regcache.c (register_valid): Revise comments refering to "Not
6500 available" and "unavailable".
6501 * frame.c (frame_register_read): Ditto.
6502 * findvar.c (value_of_register): Ditto.
6503
6504 2002-05-15 Andrew Cagney <cagney@redhat.com>
6505
6506 * Makefile.in (remote_sim_h): Replace remote-sim_h.
6507 (remote-sim.o): Update dependencies.
6508 (d10v-tdep.o): Specify dependencies.
6509 (sim_d10v_h): Define.
6510
6511 2002-05-14 Jim Blandy <jimb@redhat.com>
6512
6513 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
6514 * macrotab.c (macro_lookup_inclusion, find_definition,
6515 new_macro_table): Same.
6516
6517 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
6518 not `! strcmp ()'. This is a dubious improvement.
6519 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
6520
6521 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
6522 although it's not necessary, to avoid a warning.
6523
6524 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
6525
6526 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
6527 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
6528 TYPE_INSTANCE_FLAGS.
6529 (struct main_type): New.
6530 (struct type): Move most members to struct main_type. Change
6531 cv_type and as_type to new type_chain member. Add instance_flags.
6532 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
6533 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
6534 (finish_cv_type): Remove prototype.
6535 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
6536 Set TYPE_CHAIN.
6537 (alloc_type_instance): New function.
6538 (smash_type): New function.
6539 (make_pointer_type, make_reference_type, make_function_type)
6540 (smash_to_member_type, smash_to_method_type): Call smash_type.
6541 (make_qualified_type): New function.
6542 (make_type_with_address_space): Call make_qualified_type.
6543 (make_cv_type): Likewise.
6544 (finish_cv_type): Remove unnecessary function.
6545 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
6546 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
6547 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
6548 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
6549 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
6550 * hpread.c (hpread_read_struct_type): Likewise.
6551 * stabsread.c (read_struct_type): Likewise.
6552
6553 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
6554
6555 * configure.tgt: Add a catch all sh* target, for cases like
6556 sh[2,3,4]-elf and sh-hms.
6557
6558 2002-05-14 Keith Seitz <keiths@redhat.com>
6559
6560 * event-loop.c (create_file_handler): Don't do anything but
6561 update data when we are given a fd which we are already
6562 monitoring.
6563
6564 2002-05-14 Michal Ludvig <mludvig@suse.cz>
6565
6566 * dwarf2cfi.c (context_cpy): Copy registers correctly.
6567 (update_context): Use __func__ in warnings.
6568
6569 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
6570
6571 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
6572 and tcp_close to net_open and net_close.
6573 (net_open): Accept "udp:" and "tcp:" specifications. Connect
6574 using UDP if requested. Don't try to disable Nagle on UDP
6575 sockets.
6576 * remote.c (remote_serial_open): New function. Warn about UDP.
6577 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
6578
6579 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
6580
6581 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
6582
6583 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
6584
6585 * configure.tgt: Remove sh-hms target.
6586 * MAINTAINERS: Don't list sh-hms as a separate target.
6587
6588 2002-05-13 Jim Blandy <jimb@redhat.com>
6589
6590 Add first preprocessor macro-expansion files.
6591 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
6592 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
6593 (splay_tree_h, macroexp_h, macrotab_h): New variable.
6594 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
6595 (COMMON_OBS): Add macrotab.o, macroexp.o.
6596 (macroexp.o, macrotab.o): New rules.
6597
6598 2002-05-13 Andrew Cagney <ac131313@redhat.com>
6599
6600 * config/m88k/tm-m88k.h: Update copyright.
6601 (m88k_target_write_pc): Declare
6602 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
6603 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
6604 (SHIFT_INST_REGS): Update definition.
6605 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
6606 using old definition of TARGET_WRITE_PC.
6607 * regcache.c (generic_target_write_pc): Delete code handling
6608 NNPC_REGNUM.
6609 * gdbarch.sh (NNPC_REGNUM): Delete.
6610 * gdbarch.h, gdbarch.c: Regenerate.
6611
6612 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
6613
6614 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
6615 builtin reg number.
6616
6617 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
6618
6619 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
6620 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
6621 (gen_address_of, gen_struct_ref, gen_repeat): Use type
6622 access macros.
6623 * c-typeprint.c (cp_type_print_method_args): Likewise.
6624 (c_type_print_args): Likewise.
6625 * d10v-tdep.c (d10v_push_arguments): Likewise.
6626 (d10v_extract_return_value): Likewise.
6627 * expprint.c (print_subexp): Likewise.
6628 * gdbtypes.c (lookup_primitive_typename): Likewise.
6629 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
6630 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
6631 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
6632 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
6633 (TYPE_VECTOR): Likewise.
6634 * hpread.c (hpread_read_struct_type)
6635 (fix_static_member_physnames, fixup_class_method_type)
6636 (hpread_type_lookup): Likewise.
6637 * mdebugread.c (parse_symbol, parse_type): Likewise.
6638 * p-lang.c (is_pascal_string_type): Likewise.
6639 * valops.c (hand_function_call): Likewise.
6640 * x86-64-tdep.c (classify_argument): Likewise.
6641
6642 * hpread.c (hpread_read_function_type)
6643 (hpread_read_doc_function_type): Call replace_type.
6644 * dstread.c (create_new_type): Delete.
6645 (decode_dst_structure, process_dst_function): Call alloc_type.
6646 Use type access macros.
6647
6648 2002-05-12 Mark Kettenis <kettenis@gnu.org>
6649
6650 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
6651 the're not supported by the current architecture.
6652 (i387_fill_fxsave): Likewise.
6653
6654 2002-05-12 Fred Fish <fnf@redhat.com>
6655
6656 * symfile.c (default_symfile_offsets): Arrange for uninitialized
6657 sect_index_xxx members to index the first slot in section_offsets
6658 if all of the section_offsets are zero.
6659
6660 2002-05-12 Mark Kettenis <kettenis@gnu.org>
6661
6662 * configure.tgt (sparc-*openbsd): Remove entry accidentially
6663 checked in with last change.
6664
6665 2002-05-12 Mark Kettenis <kettenis@gnu.org>
6666
6667 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
6668 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
6669 config.sub.
6670
6671 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
6672
6673 * Makefile.in: Update dependencies.
6674
6675 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6676
6677 * language.c (local_hex_string_custom): Simplify. Do not depend
6678 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
6679
6680 * memattr.c (mem_info_command): Replace calls to
6681 longest_local_hex_string and longest_local_hex_string_custom.
6682 * buildsym.c (make_blockvector): Ditto.
6683 * solib.c (info_sharedlibrary_command): Ditto.
6684 * tracepoint.c (tracepoints_info): Ditto.
6685 * symtab.c (print_msymbol_info): Ditto.
6686
6687 * language.c (local_hex_string): Delete.
6688 (local_hex_string_custom): Delete.
6689 (longest_local_hex_string): Rename to local_hex_string.
6690 (longest_local_hex_string_custom): Rename to
6691 local_hex_string_custom.
6692 * language.h (local_hex_string): Change parameter type to LONGEST.
6693 (local_hex_string_custom): Ditto.
6694 (longest_local_hex_string): Delete declaration.
6695 (longest_local_hex_string_custom): Ditto.
6696
6697 * solib.c: Update copyright.
6698 * memattr.c: Update copyright.
6699
6700 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6701
6702 * arch-utils.h (legacy_register_to_value): Declare.
6703 (legacy_value_to_register): Declare.
6704 (legacy_convert_register_p): Declare.
6705 * arch-utils.c (legacy_register_to_value): New function.
6706 (legacy_value_to_register): New function.
6707 (legacy_convert_register_p): New function.
6708
6709 * gdbarch.sh (REGISTER_TO_VALUE): Define.
6710 (VALUE_TO_REGISTER): Define.
6711 (CONVERT_REGISTER_P): Define.
6712 * gdbarch.h, gdbarch.c: Regenerate.
6713
6714 * valops.c (value_assign): Use CONVERT_REGISTER_P and
6715 VALUE_TO_REGISTER.
6716 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
6717 CONVERT_REGISTER_P.
6718
6719 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
6720 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
6721
6722 * Makefile.in: Update dependencies for valops.c.
6723 * valops.c: Include "gdb_assert.h".
6724 (typecmp): Skip THIS parameter to methods.
6725 (find_method_list): Remove static_memfuncp argument,
6726 update callers. Check for stub methods.
6727 (find_value_oload_method_list): Don't set *static_memfuncp.
6728 (find_overload_match): Don't check for stub methods. Assert
6729 that methods are not stubbed. Handle static methods.
6730 (value_find_oload_method_list): Remove static_memfuncp argument.
6731 * gdbtypes.c (check_stub_method): Do not add THIS pointer
6732 to the argument list for static stub methods.
6733 * value.h (value_find_oload_method_list): Update prototype.
6734
6735 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6736
6737 * arch-utils.h (generic_register_size): Declare.
6738 (generic_register_raw_size, generic_register_virtual_size): Delete
6739 declarations.
6740 * arch-utils.c (generic_register_raw_size): Delete.
6741 (generic_register_size): New function.
6742 (generic_register_virtual_size): Delete.
6743
6744 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
6745 default generic_register_size.
6746 * gdbarch.h, gdbarch.c: Re-generate.
6747
6748 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
6749 register_virtual_size.
6750 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
6751 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6752
6753 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6754
6755 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
6756 * gdbarch.h, gdbarch.c: Regenerate.
6757 * gnu-v3-abi.c: Update copyright.
6758 (vtable_address_point_offset): Update.
6759 (gnuv3_rtti_type): Update.
6760 (gnuv3_baseclass_offset): Update.
6761 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
6762 (init_fetch_link_map_offsets): Update.
6763 * remote.c (get_remote_state): Update.
6764
6765 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
6766
6767 * TODO: Remove value_headof/value_from_vtable_info comment.
6768 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
6769 * values.c (value_headof, value_from_vtable_info): Delete.
6770 * value.h (value_from_vtable_info): Delete prototype.
6771
6772 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6773
6774 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
6775 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
6776 $(gdb_regex_h).
6777 (gdb_assert_h): Define.
6778 (gdb_wait_h): Define.
6779 (gdb_regex_h): Define.
6780
6781 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
6782
6783 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
6784 * linespec.c (find_methods): Handle GCC 3.x template constructors.
6785
6786 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6787
6788 * nbsd-tdep.c: Fix comment.
6789
6790 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6791
6792 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
6793 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
6794 (nbsd-tdep.o): New dependency list.
6795 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
6796 nbsd-tdep.h.
6797 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
6798 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
6799 * nbsd-tdep.c: New file.
6800 * nbsd-tdep.h: New file.
6801 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
6802 nbsd-tdep.h.
6803 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
6804 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
6805 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
6806 * config/sh/nbsd.mt (TDEPFILES): Ditto.
6807
6808 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6809
6810 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
6811 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
6812 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
6813 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
6814 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
6815 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
6816
6817 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6818
6819 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
6820 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6821 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
6822 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
6823 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
6824 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
6825 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
6826
6827 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6828
6829 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
6830 fetch_elfcore_registers to...
6831 * i386nbsd-tdep.c: ...here.
6832 (i386nbsd_use_struct_convention): Rename to...
6833 (i386nbsd_aout_use_struct_convention): ...this.
6834 (i386nbsd_supply_reg): New function.
6835 (i386nbsd_fill_reg): New function.
6836 (fetch_core_registers): Use i386nbsd_supply_reg.
6837 (fetch_elfcore_registers): Likewise.
6838 (_initialize_i386nbsd_tdep): New function.
6839 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
6840 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6841 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
6842 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
6843 (i386nbsd_aout_use_struct_convention): ...this.
6844
6845 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6846
6847 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
6848 (store_inferior_registers): Use shnbsd_fill_reg.
6849 * shnbsd-tdep.c (sh_nbsd_supply_registers,
6850 sh_nbsd_supply_register): Collapse into...
6851 (shnbsd_supply_reg): ...this.
6852 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
6853 (shnbsd_fill_reg): ...this.
6854 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
6855 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
6856 (fetch_core_registers): Use shnbsd_supply_reg.
6857 (fetch_elfcore_registers): Use shnbsd_supply_reg.
6858 (sh_nbsd_core_fns): Rename to...
6859 (shnbsd_core_fns): ...this.
6860 (sh_nbsd_elfcore_fns): Rename to...
6861 (shnbsd_elfcore_fns): ...this.
6862 (sh_nbsd_init_abi): Rename to...
6863 (shnbsd_init_abi): ...this.
6864 (_initialize_sh_nbsd_tdep): Rename to...
6865 (_initialize_shnbsd_tdep): ...this.
6866 * shnbsd-tdep.h (sh_nbsd_supply_registers,
6867 sh_nbsd_supply_register, sh_nbsd_fill_registers,
6868 sh_nbsd_fill_register): Remove prototypes.
6869 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
6870
6871 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6872
6873 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
6874 (i387-nat.o): Delete dependency list.
6875 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
6876 (x86-64-linux-nat.o): Likewise.
6877 * i387-nat.c: Delete file, moving contents to...
6878 * i387-tdep.c: ...here.
6879 * i387-nat.h: Rename...
6880 * i387-tdep.h: ...to this.
6881 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
6882 * i386-linux-nat.c: Likewise.
6883 * i386bsd-nat.c: Likewise.
6884 * i386gnu-nat.c: Likewise.
6885 * i386nbsd-nat.c: Likewise.
6886 * i386v4-nat.c: Likewise.
6887 * x86-64-linux-nat.c: Likewise.
6888 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
6889 * config/i386/go32.mh (NATDEPFILES): Likewise.
6890 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
6891 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
6892 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
6893 * config/i386/linux.mh (NATDEPFILES): Likewise.
6894 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
6895 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6896 * config/i386/obsd.mh (NATDEPFILES): Likewise.
6897 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
6898
6899 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6900
6901 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
6902 (alphanbsd-nat.o): Remove dependency list.
6903 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
6904 * alphanbsd-nat.c: Delete. Contents moved to...
6905 * alphanbsd-tdep.c: ...here.
6906 (_initialize_alphanbsd_tdep): Register core functions.
6907 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
6908
6909 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6910
6911 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
6912 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
6913 (alphanbsd-nat.o): Likewise.
6914 (alphabsd-tdep.o): New dependency list.
6915 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
6916 (fill_gregset): Use alphabsd_fill_reg.
6917 (supply_fpregset): Use alphabsd_supply_fpreg.
6918 (fill_fpregset): Use alphabsd_fill_fpreg.
6919 (fetch_inferior_registers): Use struct reg and struct fpreg
6920 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
6921 and alphabsd_supply_fpreg.
6922 (store_inferior_registers): Use struct reg and struct fpreg
6923 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
6924 and alphabsd_fill_fpreg.
6925 * alphabsd-tdep.c: New file.
6926 * alphabsd-tdep.h: New file.
6927 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
6928 (fetch_elfcore_registers): Use alphabsd_supply_reg and
6929 alphabsd_supply_fpreg.
6930 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
6931 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
6932
6933 2002-05-11 Eric Christopher <echristo@redhat.com>
6934
6935 * mips-tdep.c (mips_double_register_type): Fix thinko.
6936 (mips_single_register_type): Ditto.
6937 * MAINTAINERS: Add self.
6938
6939 2002-05-11 Mark Kettenis <kettenis@gnu.org>
6940
6941 * i387-nat.c (i387_supply_register, i387_fill_fsave,
6942 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
6943 right thing on architectures with different endianness and/or
6944 integer sizes.
6945
6946 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
6947
6948 From Christian Limpach <chris@Pin.LU>
6949 * configure.in: Change sed expression which comments out
6950 NATDEPFILES to also comment out continuation lines.
6951 * configure: Regenerate.
6952
6953 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
6954
6955 * sh-tdep.c: Clean up code erroneously reintroduced by previous
6956 big patch.
6957
6958 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
6959
6960 * sh-tdep.c: Include correct file.
6961
6962 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
6963
6964 New support for sh64-elf (sh5) target.
6965
6966 * configure.tgt: For sh64-elf target, default to sh-elf.
6967
6968 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
6969 (struct gdbarch_tdep): Add new fields for new registers and ABI
6970 info.
6971
6972 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
6973 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
6974 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
6975 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
6976 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
6977 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
6978 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
6979 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
6980 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
6981 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
6982 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
6983 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
6984 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
6985 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
6986 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
6987 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
6988 sh64_get_gdb_regnum, sh64_media_reg_base_num,
6989 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
6990 sign_extend, sh64_nofp_frame_init_saved_regs,
6991 sh64_init_extra_frame_info, sh64_get_saved_register,
6992 sh64_extract_struct_value_address, sh64_pop_frame,
6993 sh64_push_arguments, sh64_extract_return_value,
6994 sh64_store_return_value, sh64_show_media_regs,
6995 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
6996 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
6997 sh_sh64_register_virtual_type,
6998 sh_sh64_register_convert_to_virtual,
6999 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
7000 sh64_register_read, sh64_pseudo_register_write,
7001 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
7002 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
7003 sh64_do_pseudo_register, sh_compact_do_registers_info,
7004 sh64_do_registers_info, sh_gdbarch_init): New functions.
7005
7006 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
7007
7008 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
7009
7010 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
7011
7012 * linespec.c (decode_line_1): Check for a double quote after
7013 a filename correctly.
7014
7015 2002-05-10 Jim Blandy <jimb@redhat.com>
7016
7017 Properly track the size of the current objfile's .debug_line section.
7018 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
7019 (DWARF_LINE_SIZE): New macro.
7020 (dwarf2_build_psymtabs_hard): Record the line section's size in
7021 the partial symbol table.
7022 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
7023 symbol table.
7024
7025 2002-05-10 Petr Sorfa <petrs@caldera.com>
7026
7027 * ia64-tdep.c: Handle breakpoints on L instruction type
7028 in MLX instruction bundle by moving the breakpoint to
7029 the third slot (X instruction type) as L holds only data.
7030
7031 2002-05-10 Kevin Buettner <kevinb@redhat.com>
7032
7033 * dbxread.c (discarding_local_symbols_complaint): New complaint.
7034 (process_one_symbol): Complain about discarding local symbols
7035 due to a misplaced N_LBRAC entry.
7036
7037 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
7038
7039 From Daniel Berlin <dan@cgsoftware.com>
7040 * linespec.c (find_toplevel_char): '<' and '>' also increase and
7041 decrease the depth we are at, in the case of templates.
7042
7043 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
7044
7045 * mips-tdep.c (mips_float_register_type): New function.
7046 (mips_double_register_type): New function.
7047 (mips_print_register): Use them.
7048 (do_fp_register_row): Likewise.
7049
7050 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
7051
7052 * signals/signals.c (signals): Remove conditional compilation around
7053 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
7054 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
7055
7056 2002-05-09 Michael Snyder <msnyder@redhat.com>
7057
7058 * remote-rdp.c (remote_rdp_can_run): Remove.
7059
7060 2002-05-09 Tom Tromey <tromey@redhat.com>
7061
7062 * jv-valprint.c (java_val_print): Handle `char' as a special case
7063 of TYPE_CODE_INT.
7064
7065 2002-05-09 Michael Snyder <msnyder@redhat.com>
7066
7067 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
7068 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
7069 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
7070 str r(0123),[sp,#nn].
7071 (arm_skip_prologue): Ditto. Also make disassembly
7072 order-independent by placing it in a loop.
7073
7074 2002-05-06 Michael Snyder <msnyder@redhat.com>
7075
7076 * stabsread.c (read_type): Add recognition for new attribute:
7077 "@V;" means that an array type is actually a vector.
7078 This is analogous to the vector flag that's been added to dwarf2.
7079
7080 2002-05-09 Mark Kettenis <kettenis@gnu.org>
7081
7082 * i386-tdep.h (i386_abi): New enum.
7083 (struct gdbarch_tdep): Replace os_ident member with abi.
7084 (i386_gdbarch_register_os_abi): New prototype.
7085 * i386-tdep.c (i386_abi_names): New array.
7086 (process_note_abi_tag_sections): Removed.
7087 (process_note_sections): New function.
7088 (i386_elf_abi_from_note, i386_elf_abi): New functions.
7089 (struct i386_abi_handler): New struct.
7090 (i386_abi_handler_list): New variable.
7091 (i386_gdbarch_register_os_abi): New function.
7092 (i386_gdbarch_init): Adapt for the changes given above.
7093
7094 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
7095
7096 * gregset.h: Say "GNU/Linux".
7097
7098 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
7099
7100 * gdbtypes.c : Add new builtin type for 64 bit vectors.
7101 (build_gdbtypes): Build builtin_type_v2_float.
7102 (_initialize_gdbtypes): Register new builtin type.
7103
7104 2002-05-08 Andrew Cagney <ac131313@redhat.com>
7105
7106 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
7107 (clear_gdbarch_swap): New function.
7108 (initialize_non_multiarch): Call.
7109 (gdbarch_update_p): Before calling init(), swap out and clear the
7110 existing architecture.
7111 * gdbarch.c: Regenerate.
7112
7113 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7114
7115 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
7116 alphanbsd-tdep.c.
7117
7118 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7119
7120 * sh-nbsd-nat.c: Rename to...
7121 * shnbsd-nat.c: ...this.
7122 * sh-nbsd-tdep.c: Rename to...
7123 * shnbsd-tdep.c: ...this.
7124 * sh-nbsd-tdep.h: Rename to...
7125 * shnbsd-tdep.h: ...this.
7126 * config/sh/nbsd.mh: Use shnbsd-nat.o.
7127 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
7128
7129 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
7130
7131 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
7132 concatenation for command help messages.
7133
7134 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7135
7136 * NEWS: Note new sh*-*-netbsdelf* configuration.
7137 * configure.host: Set gdb_host_cpu to sh for all sh*.
7138 (sh*-*-netbsdelf*): New host.
7139 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
7140 (sh*-*-netbsdelf*): New target.
7141 * sh-nbsd-nat.c: New file.
7142 * sh-nbsd-tdep.c: New file.
7143 * sh-nbsd-tdep.h: New file.
7144 * config/sh/nbsd.mh: New file.
7145 * config/sh/nbsd.mt: New file.
7146 * config/sh/nm-nbsd.h: New file.
7147 * config/sh/tm-nbsd.h: New file.
7148
7149 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7150
7151 * sh-tdep.c (sh_osabi_names): Declare.
7152 (process_note_abi_tag_sections): New function.
7153 (get_elfosabi): Ditto.
7154 (sh_gdbarch_register_os_abi): Ditto.
7155 (sh_dump_tdep): Ditto.
7156 _initialize_sh_tdep): Use gdbarch_register to register
7157 sh_gdbarch_init and sh_dump_tdep.
7158 * config/sh/tm-sh.h (sh_osabi): Declare.
7159 (gdbarch_tdep): Add sh_osabi and osabi_name members.
7160
7161 2002-05-07 Andrew Cagney <ac131313@redhat.com>
7162
7163 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
7164 (thumb_scan_prologue): Ditto.
7165 (arm_find_callers_reg): Ditto.
7166 (arm_frame_chain): Ditto.
7167 (arm_init_extra_frame_info): Ditto.
7168 (arm_frame_saved_pc): Ditto.
7169 (arm_pop_frame): Ditto.
7170 (arm_push_return_address): New function.
7171 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
7172 call_dummy_location, call_dummy_breakpoint_offset_p,
7173 call_dummy_breakpoint_offset, call_dummy_p,
7174 call_dummy_stack_adjust_p, call_dummy_words,
7175 sizeof_call_dummy_words, call_dummy_start_offset,
7176 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
7177 call_dummy_address, push_return_address and push_dummy_frame for
7178 generic dummy frames.
7179
7180 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
7181
7182 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
7183 size computation for alloca.
7184 (sh_fp_frame_init_saved_regs): Likewise.
7185
7186 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
7187
7188 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
7189 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
7190 * arm-tdep.c (arm_store_return_value): Use them.
7191 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
7192 * remote-rdp.c (remote_rdp_fetch_register): Use
7193 ARM_MAX_REGISTER_RAW_SIZE.
7194 (remote_rdp_store_register): Likewise.
7195
7196 2002-05-07 Michal Ludvig <mludvig@suse.cz>
7197
7198 * dwarf2cfi.c: Code cleanup, removed unused variables,
7199 added default labels to switch {} statements.
7200 * x86-64-tdep.c: Ditto.
7201 * x86-64-linux-nat.c: Ditto.
7202
7203 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
7204
7205 * solib.h: Protect against multiple inclusion.
7206
7207 2002-05-06 Jim Blandy <jimb@redhat.com>
7208
7209 Add first preprocessor macro-expansion files.
7210 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
7211 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
7212 (splay_tree_h, macroexp_h, macrotab_h): New variable.
7213 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
7214 (COMMON_OBS): Add macrotab.o, macroexp.o.
7215 (macroexp.o, macrotab.o): New rules.
7216
7217 Separate the job of reading the line number info statement program
7218 header (...expialidocious) out into its own function.
7219 * dwarf2read.c (struct line_head, struct filenames, struct
7220 directories): Replace with...
7221 (struct line_header): New structure, containing the full
7222 contents of the statement program header, including the
7223 include directory and file name tables.
7224 (read_file_scope): If we have line number info, instead of just
7225 calling dwarf_decode_lines to do all the work, call
7226 dwarf_decode_line_header first to get a `struct line_header'
7227 containing the data in the statement program header, and then
7228 pass that to dwarf_decode_lines, which will pick up where that
7229 left off. Be sure to clean up the `struct line_header' object.
7230 (dwarf_decode_line_header, free_line_header, add_include_dir,
7231 add_file_name): New functions.
7232 (dwarf_decode_lines): Move all the code to read the statement
7233 program header into dwarf_decode_line_header. Take the line
7234 header it built as the first argument, instead of the offset to
7235 the compilation unit's line number info. Use the new `struct
7236 line_header' type instead of the old structures. No need to do
7237 cleanups here now, since we don't allocate anything.
7238 (dwarf2_statement_list_fits_in_line_number_section,
7239 dwarf2_line_header_too_long): New complaints.
7240
7241 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
7242
7243 * gdbtypes.c (init_vector_type): New function.
7244 (build_builtin_type_vec128): Simplify the representation of SIMD
7245 registers.
7246 (build_gdbtypes): Initialize new builtin vector types.
7247 (_initialize_gdbtypes): Register new vector types with gdbarch.
7248 (builtin_type_v4_float, builtin_type_v4_int32,
7249 builtin_type_v8_int16, builtin_type_v16_int8,
7250 builtin_type_v2_int32, builtin_type_v4_int16,
7251 builtin_type_v8_int8): New (renamed) SIMD types.
7252
7253 2002-05-06 Mark Kettenis <kettenis@gnu.org>
7254
7255 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
7256 (i387_fill_fxsave): Likewise.
7257
7258 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
7259
7260 * alpha-tdep.c (alpha_extract_return_value): Don't use
7261 non-constant array size in prototype.
7262
7263 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7264
7265 From Brian Taylor <briant at model dot com>:
7266 * ui-out.c (ui_out_field_core_addr): Use the function
7267 longest_local_hex_string_custom'to format addresses > 32 bits
7268 wide.
7269
7270 * ui-out.c (ui_out_field_core_addr): Update comment.
7271
7272 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7273
7274 * stack.c (select_and_print_frame): Make static. Delete the
7275 parameter `level'.
7276 (func_command): Update call.
7277 (select_frame_command): Delete code computing the frame level.
7278 * frame.h (select_and_print_frame): Delete declaration.
7279
7280 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7281
7282 * sparc-tdep.c (sparc_get_saved_register): Comment why
7283 get_prev_frame call is safe.
7284
7285 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7286
7287 * frame.h (select_frame): Delete level parameter.
7288 * stack.c (select_frame): Update. Use frame_relative_level to
7289 obtain the frame's level.
7290 (select_and_print_frame): Update call.
7291 (select_frame_command): Ditto.
7292 (up_silently_base): Ditto.
7293 (down_silently_base): Ditto.
7294 * ocd.c (ocd_start_remote): Ditto.
7295 * remote-rdp.c (remote_rdp_open): Ditto.
7296 * remote-mips.c (mips_initialize): Ditto.
7297 (common_open): Ditto.
7298 * remote-e7000.c (e7000_start_remote): Ditto.
7299 * m3-nat.c (select_thread): Ditto.
7300 * hppa-tdep.c (child_get_current_exception_event): Ditto.
7301 (child_get_current_exception_event): Ditto.
7302 * varobj.c (varobj_create): Ditto.
7303 (varobj_update): Ditto.
7304 (c_value_of_root): Ditto.
7305 * tracepoint.c (finish_tfind_command): Ditto.
7306 * corelow.c (core_open): Ditto.
7307 * arch-utils.c (generic_prepare_to_proceed): Ditto.
7308 * thread.c (info_threads_command): Ditto.
7309 (switch_to_thread): Ditto.
7310 * infrun.c (normal_stop): Ditto.
7311 (restore_selected_frame): Ditto.
7312 (restore_inferior_status): Ditto.
7313 * breakpoint.c (insert_breakpoints): Ditto.
7314 (watchpoint_check): Ditto.
7315 (bpstat_stop_status): Ditto.
7316 (do_enable_breakpoint): Ditto.
7317 * blockframe.c (flush_cached_frames): Ditto.
7318 (reinit_frame_cache): Ditto.
7319
7320 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7321
7322 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
7323 maintainer.
7324
7325 2002-05-04 Jim Blandy <jimb@redhat.com>
7326
7327 * gdbtypes.c (replace_type): Doc fix.
7328
7329 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7330
7331 * valprint.c (strcat_longest): Delete commented out function.
7332 Update copyright.
7333
7334 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7335
7336 * MAINTAINERS: Mark a29k as deleted.
7337 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
7338 Move new configurations to the top.
7339 * configure.tgt: Remove a29k.
7340 * config/a29k/tm-vx29k.h: Delete.
7341 * config/a29k/vx29k.mt: Delete.
7342 * config/a29k/tm-a29k.h: Delete.
7343 * config/a29k/a29k-udi.mt: Delete.
7344 * config/a29k/a29k.mt: Delete.
7345 * a29k-tdep.c: Delete.
7346 * remote-udi.c: Delete.
7347 * remote-mm.c: Delete.
7348 * remote-eb.c: Delete.
7349 * remote-adapt.c: Delete.
7350 * Makefile.in: Remove obsolete code.
7351 * config/s390/s390x.mt: Ditto.
7352 * config/s390/s390.mt: Ditto.
7353 * config/sparc/sparclynx.mh: Ditto.
7354 * config/sparc/linux.mh: Ditto.
7355 * config/pa/hppaosf.mh: Ditto.
7356 * config/pa/hppabsd.mh: Ditto.
7357 * config/ns32k/nbsd.mt: Ditto.
7358 * config/mips/vr5000.mt: Ditto.
7359 * config/m68k/sun3os4.mh: Ditto.
7360 * config/m68k/nbsd.mt: Ditto.
7361 * config/m68k/m68klynx.mh: Ditto.
7362 * config/m32r/m32r.mt: Ditto.
7363 * config/i386/x86-64linux.mt: Ditto.
7364 * config/i386/nbsdelf.mt: Ditto.
7365 * config/i386/nbsd.mt: Ditto.
7366 * config/i386/i386lynx.mh: Ditto.
7367
7368 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7369
7370 * target.c (debug_print_register): New function. Handle oversize
7371 registers.
7372 (debug_to_fetch_registers): Call.
7373 (debug_to_store_registers): Call.
7374
7375 2002-05-03 Jim Blandy <jimb@redhat.com>
7376
7377 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
7378 (read_type): Doc fix.
7379 * gdbtypes.c (replace_type): Doc fix.
7380
7381 * stabsread.c (multiply_defined_struct): New complaint.
7382 (read_struct_type): If the type we were passed isn't empty, or
7383 incomplete, don't read the new struct type into it; complain,
7384 and return the original type unchanged. Take a new `type_code'
7385 argument, which is the type code for the new type.
7386 (read_type): Rather than storing the type's type code here, pass
7387 it as an argument to read_struct_type, and let that take care of
7388 storing it. That way, we don't overwrite the original type code,
7389 so read_struct_type can use it to decide whether we're overwriting
7390 something we shouldn't.
7391 (complain_about_struct_wipeout): New function.
7392
7393 2002-05-03 Andrew Cagney <ac131313@redhat.com>
7394
7395 * gdbarch.sh: Assert that gdbarch is non-NULL.
7396 * gdbarch.c: Regenerate.
7397
7398 2002-05-03 Jason Merrill <jason@redhat.com>
7399
7400 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
7401 and return NULL.
7402
7403 2002-05-03 Michal Ludvig <mludvig@suse.cz>
7404
7405 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
7406 (x86_64_dwarf2gdb_regno_map_length),
7407 (x86_64_dwarf2_reg_to_regnum): Added.
7408 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
7409 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
7410 (_initialize_x86_64_tdep): Synced with the change above.
7411 (x86_64_skip_prologue): Reformulated message.
7412
7413 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
7414
7415 * f-exp.y: Also use new prev_lexptr variable
7416 to improve error reporting. Based on Michael Snyder
7417 2002-04-24 dated patch to c-exp.y.
7418 * jv-exp.y: Likewise.
7419 * m2-exp.y: Likewise.
7420
7421 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
7422
7423 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
7424 we are dealing with vectors.
7425
7426 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7427
7428 * config/m68k/tm-nbsd.h: Obvious fix,
7429 correct machine name.
7430
7431 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7432
7433 * p-typeprint.c (pascal_type_print_base): Add support
7434 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
7435
7436 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7437
7438 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
7439 for fondamental pascal 'char' type.
7440
7441 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7442
7443 * p-lang.h (is_pascal_string_type): Declaration changed,
7444 new sixth argument of type char ** added.
7445 * p-lang.c (is_pascal_string_type): Implementation
7446 changed. Args length_pos, length_size, string_pos, char_size
7447 can now be NULL. New argument arrayname set to the field
7448 name of the char array. Return value set to char array
7449 field index plus one.
7450 * p-valprint.c (pascal_val_print): Adapt to new declaration of
7451 is_pascal_string_type function.
7452
7453 2002-05-02 Andrew Cagney <cagney@redhat.com>
7454
7455 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
7456 <cagney@redhat.com> change.
7457 * gdbarch.c: Regenerate.
7458
7459 2002-05-02 Andrew Cagney <cagney@redhat.com>
7460
7461 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
7462 before probing for a new one. Detect errorenous gdbarch_init
7463 functions.
7464 * gdbarch.c: Regenerate.
7465
7466 2002-05-01 Andrew Cagney <cagney@redhat.com>
7467
7468 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
7469 * config/mcore/tm-mcore.h: Ditto. Update copyright.
7470 * config/v850/tm-v850.h: Ditto. Update copyright.
7471
7472 2002-04-30 Andrew Cagney <ac131313@redhat.com>
7473
7474 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
7475 current_gdbarch.
7476
7477 2002-04-30 Michael Snyder <msnyder@redhat.com>
7478
7479 * arm-tdep.c: Whitespace clean-ups.
7480 (arm_skip_prologue): Fix thinko; two lines
7481 should have been removed as part of 4/24 change.
7482
7483 2002-04-30 Kevin Buettner <kevinb@redhat.com>
7484
7485 * rs6000-tdep.c: Added comment describing how fpscr register
7486 numbers were chosen.
7487
7488 2002-04-30 Michael Snyder <msnyder@redhat.com>
7489
7490 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
7491
7492 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
7493
7494 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
7495 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
7496 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
7497
7498 2002-04-29 Kevin Buettner <kevinb@redhat.com>
7499
7500 From Louis Hamilton <hamilton@redhat.com>:
7501 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
7502 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
7503 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
7504 not bfd-private xcoff data, to determine wordsize.
7505 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
7506
7507 2002-04-29 Andrew Cagney <ac131313@redhat.com>
7508
7509 GDB 5.2 released from 5.2 branch.
7510
7511 2002-04-29 Michal Ludvig <mludvig@suse.cz>
7512
7513 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
7514 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
7515 (x86_64_register_info_table): Added comments with register numbers.
7516
7517 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
7518
7519 * rs6000-tdep.c (rs6000_extract_return_value,
7520 rs6000_store_return_value): Handle returning vectors.
7521 (rs6000_gdbarch_init): Use
7522 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
7523 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
7524 New function.
7525 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
7526 vectors.
7527 (ppc_sysv_abi_push_arguments): Handle vector parameters.
7528 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
7529
7530 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
7531
7532 * hpread.c (hpread_psymtab_to_symtab_1,
7533 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
7534 with fprintf_unfiltered (gdb_stderr,...).
7535
7536 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
7537
7538 * remote-array.c (printf_monitor, write_monitor,
7539 array_insert_breakpoint, array_remove_breakpoint ):
7540 Replace fprintf (stderr,...
7541 with fprintf_unfiltered (gdb_stderr,....
7542 * remote-es.c: Likewise.
7543 * remote-os9k.c: Likewise.
7544 * remote-st.c: Likewise.
7545
7546 2002-04-28 Andreas Schwab <schwab@suse.de>
7547
7548 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
7549 linux-proc.o and gcore.o.
7550
7551 2002-04-26 Michal Ludvig <mludvig@suse.cz>
7552
7553 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
7554 code without frame pointers.
7555
7556 2002-04-26 Andrew Cagney <ac131313@redhat.com>
7557
7558 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
7559 ON_STACK is needed.
7560
7561 2002-04-26 Ben Elliston <bje@redhat.com>
7562
7563 * target.c (do_xfer_memory): Correct reference to the new option
7564 "trust-readonly-sections".
7565
7566 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
7567
7568 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
7569 * gdbtypes.c (recursive_dump_type): Output the vector flag.
7570 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
7571 vectors.
7572 (read_array_type): Record the fact that this array type is really a
7573 vector (i.e. are passed in by value).
7574
7575 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
7576
7577 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
7578 * alpha-tdep.c (alpha_sigcontext_addr): New function.
7579 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
7580 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
7581 * alpha-linux-tdep.c: Include frame.h.
7582 (alpha_linux_sigcontext_addr): New function.
7583 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
7584 alpha_linux_sigcontext_addr.
7585 * alpha-osf1-tdep.c: Include gdbcore.h.
7586 (alpha_osf1_sigcontext_addr): New function.
7587 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
7588 alpha_osf1_sigcontext_addr.
7589 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
7590 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
7591
7592 2002-04-26 Andrew Cagney <ac131313@redhat.com>
7593
7594 * stack.c (selected_frame_level):
7595 (select_frame): Do not set selected_frame_level.
7596 * frame.h (selected_frame_level): Delete declaration.
7597
7598 2002-04-26 Andrew Cagney <ac131313@redhat.com>
7599
7600 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
7601 convert_from_func_ptr-addr when AIX / PowerOpen.
7602
7603 2002-04-25 Andrew Cagney <ac131313@redhat.com>
7604
7605 * valops.c (hand_function_call): Call
7606 generic_save_call_dummy_addr.
7607 * frame.h (generic_save_call_dummy_addr): Declare.
7608 * blockframe.c (struct dummy_frame): Add fields call_lo and
7609 call_hi.
7610 (generic_find_dummy_frame): Check for PC in range call_lo to
7611 call_hi instead of entry_point_address.
7612 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
7613 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
7614 (generic_save_call_dummy_addr): New function.
7615
7616 2002-04-24 David S. Miller <davem@redhat.com>
7617
7618 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
7619 sparc_skip_prologue.
7620 (sparc_skip_prologue): Kill frameless_p arg, and use line number
7621 information to find prologue when possible.
7622 (sparc_prologue_frameless_p): Call examine_prologue directly.
7623 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
7624 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
7625 second argument.
7626 (SKIP_PROLOGUE): Likewise.
7627
7628 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7629
7630 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
7631 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
7632 indicate that the condition it was testing is always true.
7633 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
7634 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
7635 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
7636
7637 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7638
7639 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
7640 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
7641 tdep->jb_pc and tdep->jb_elt_size.
7642 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
7643 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
7644 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
7645 * alpha-nat.c (get_longjmp_target): Remove.
7646 (JB_ELEMENT_SIZE): Ditto.
7647 (JB_PC): Ditto.
7648 * alpha-tdep.c (alpha_get_longjmp_target): New function.
7649 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
7650 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
7651 to alpha_get_longjmp_target.
7652 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
7653 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
7654 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
7655
7656 2002-04-25 Andrew Cagney <ac131313@redhat.com>
7657
7658 * README: Update to GDB 5.2.
7659
7660 2002-04-25 Andrew Cagney <ac131313@redhat.com>
7661
7662 * gdbarch.sh (LC_ALL): Set to `c'.
7663
7664 2002-04-25 Theodore A. Roth <troth@verinet.com>
7665
7666 * avr-tdep.c: Ran through gdb_indent.sh.
7667
7668 2002-04-25 Theodore A. Roth <troth@verinet.com>
7669
7670 * MAINTAINERS: Add myself as AVR maintainer.
7671 * NEWS: Note new target avr.
7672
7673 2002-04-25 Theodore A. Roth <troth@verinet.com>
7674
7675 * Makefile.in: Add support for AVR target.
7676 * configure.tgt: Add support for AVR target.
7677 * avr-tdep.c: New file
7678 * config/avr/avr.mt: New file.
7679
7680 2002-04-25 Theodore A. Roth <troth@verinet.com>
7681
7682 * MAINTAINERS: Add myself to write-after-approval.
7683
7684 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
7685
7686 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
7687 with fprintf_unfiltered (gdb_stderr,....
7688
7689 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
7690
7691 Fix PR gdb/508.
7692 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
7693
7694 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
7695
7696 * p-exp.y: Also use new prev_lexptr variable
7697 to improve error reporting. Based on Michael Snyder
7698 2002-04-24 dated patch to c-exp.y.
7699
7700 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7701
7702 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
7703 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
7704 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
7705 to 0.
7706 * config/alpha/tm-alpha.h: Remove forward decls of struct type
7707 and struct value.
7708 (FUNCTION_START_OFFSET): Remove.
7709 (BREAKPOINT): Ditto.
7710
7711 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7712
7713 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
7714 * NEWS: Ditto.
7715
7716 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7717
7718 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
7719 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
7720 alpha_linux_pc_in_sigtramp.
7721 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
7722 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
7723 alpha_osf1_pc_in_sigtramp.
7724 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
7725 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
7726 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
7727 alphafbsd_pc_in_sigtramp.
7728 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
7729 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
7730 alphanbsd_pc_in_sigtramp.
7731 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
7732 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
7733
7734 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7735
7736 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
7737
7738 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7739
7740 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
7741 alphanbsd-tdep.c.
7742 (alphanbsd-nat.o): New dependency list.
7743 (alphanbsd-tdep.o): Ditto.
7744 * NEWS: Note new native NetBSD/alpha configuration.
7745 * alphanbsd-nat.c: New file.
7746 * alphanbsd-tdep.c: Ditto.
7747 * configure.host (alpha*-*-netbsd*): New host.
7748 * configure.tgt (alpha*-*-netbsd*): New target.
7749 * config/alpha/nbsd.mh: New file.
7750 * config/alpha/nbsd.mt: Ditto.
7751 * config/alpha/nm-nbsd.h: Ditto.
7752 * config/alpha/tm-nbsd.h: Ditto.
7753
7754 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7755
7756 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
7757 (alpha-osf1-tdep.o): New dependency list.
7758 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
7759 and skip_sigtramp_frame members.
7760 * alpha-linux-tdep.c: Include gdbcore.h.
7761 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
7762 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
7763 * alpha-osf1-tdep.c: New file.
7764 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
7765 alpha-osf1-dep.c.
7766 (alpha_frame_past_sigtramp_frame): New function.
7767 (alpha_dynamic_sigtramp_offset): Ditto.
7768 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
7769 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
7770 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
7771 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
7772 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
7773 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
7774 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
7775 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
7776 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
7777 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
7778 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
7779 to find_solib_trampoline_target.
7780 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
7781 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
7782 (SKIP_TRAMPOLINE_CODE): Remove.
7783 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7784 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7785 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
7786 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
7787 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
7788 (PROC_SIGTRAMP_MAGIC): Ditto.
7789 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7790 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7791 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7792 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
7793 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
7794
7795 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7796
7797 * NEWS: Note that Alpha targets are now multi-arch.
7798
7799 2002-04-24 Michael Snyder <msnyder@redhat.com>
7800
7801 * parser-defs.h (prev_lexptr): New external variable.
7802 * parse.c (parse_exp_1): Set prev_lexptr to null before
7803 calling the language-specific parser.
7804 * c-exp.y (yylex): Set prev_lexptr to start of current token.
7805 (yyerror): Use prev_lexptr in error reporting.
7806
7807 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
7808
7809 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
7810 * gregset.h: If FILL_FPXREGSET is defined, provide
7811 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
7812 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
7813 is defined, call fill_fpxregset.
7814
7815 2002-04-24 Roland McGrath <roland@frob.com>
7816
7817 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
7818 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
7819 (supply_gregset, supply_fpregset): New functions.
7820
7821 * gnu-nat.c (gnu_find_memory_regions): New function.
7822 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
7823 (gnu_xfer_memory): Add a cast.
7824
7825 2002-04-24 Michael Snyder <msnyder@redhat.com>
7826
7827 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
7828 loop. Add handling for "str lr, [sp, #-4]!" and for saves
7829 of argument regs ("str r(0123), [r11, #-nn"]).
7830 (arm_skip_prologue): Better handling for frameless functions.
7831 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
7832 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
7833
7834 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
7835
7836 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
7837 NUM_PSEUDO_REGS can be used.
7838
7839 2002-04-24 Andrew Cagney <ac131313@redhat.com>
7840
7841 * arch-utils.h: Update copyright.
7842
7843 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
7844 * gdbarch.h, gdbarch.c: Re-generate.
7845
7846 * inferior.h (IN_SIGTRAMP): Delete definition.
7847 * arch-utils.c (legacy_pc_in_sigtramp): New function.
7848 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
7849
7850 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
7851 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
7852 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
7853 (find_proc_framesize): Ditto.
7854 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
7855 (alpha_init_extra_frame_info): Ditto.
7856 * infrun.c (handle_inferior_event): Ditto.
7857 (handle_inferior_event): Ditto.
7858 (check_sigtramp2): Ditto.
7859 * blockframe.c (create_new_frame): Ditto.
7860 (get_prev_frame): Ditto.
7861 * ppc-linux-tdep.c: Update comments.
7862 * i386-linux-tdep.c: Update comments.
7863 * breakpoint.c (bpstat_what): Update comment.
7864
7865 2002-04-24 David S. Miller <davem@redhat.com>
7866
7867 * i960-tdep.c (register_in_window_p): New function.
7868 (i960_find_saved_register): Use it instead of
7869 REGISTER_IN_WINDOW_P.
7870 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
7871
7872 * symtab.h (find_stab_function_addr): Kill extern.
7873 * minsyms.c (find_stab_function_addr): Remove from here...
7874 * dbxread.c: ... to here, and mark it static.
7875
7876 2002-04-20 David S. Miller <davem@redhat.com>
7877
7878 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
7879 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
7880
7881 2002-04-21 David S. Miller <davem@redhat.com>
7882
7883 * remote-vxsparc.c (vx_read_register): Fix typo, we want
7884 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
7885 (vx_write_register): Likewise.
7886
7887 2002-04-23 J. Brobecker <brobecker@gnat.com>
7888
7889 * source.c (is_regular_file): New function.
7890 (openp): Check wether file to open is a regular file
7891 to avoid opening directories.
7892
7893 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7894
7895 * findvar.c (extract_signed_integer): Cast printf argument
7896 to suppress format warning.
7897 (extract_unsigned_integer): Likewise.
7898 * infcmd.c (registers_info): Likewise.
7899 * top.c (get_prompt_1): Likewise.
7900 * valops.c (value_assign): Likewise.
7901 * valprint.c (print_decimal): Likewise.
7902
7903 2002-04-22 H.J. Lu (hjl@gnu.org)
7904
7905 * c-exp.y (typebase): Support
7906
7907 [long|long long|short] [signed|unsigned] [int|]
7908
7909 and
7910
7911 signed [long|long long|short] int
7912
7913 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7914
7915 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
7916 and vax-tdep.h.
7917 * vax-tdep.h: New file.
7918 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
7919 Make several routines static.
7920 (vax_get_saved_register): New function.
7921 (vax_gdbarch_init): New function.
7922 (_initialize_vax_tdep): Register vax_gdbarch_init.
7923 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
7924 Remove macros now under the control of gdbarch.
7925
7926 2002-04-22 Michael Snyder <msnyder@redhat.com>
7927
7928 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
7929 Some whitespace and coding standards tweaks.
7930
7931 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7932
7933 * vax-tdep.c: Include regcache.h.
7934 (vax_call_dummy_words): New.
7935 (sizeof_vax_call_dummy_words): New.
7936 (vax_fix_call_dummy): New function.
7937 (vax_saved_pc_after_call): Ditto.
7938 * config/vax/tm-vax.h: Don't include regcache.h.
7939 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
7940 (CALL_DUMMY): Remove.
7941 (CALL_DUMMY_WORDS): Define.
7942 (SIZEOF_CALL_DUMMY_WORDS): Define.
7943 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
7944
7945 2002-04-18 Michael Snyder <msnyder@redhat.com>
7946
7947 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
7948
7949 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7950
7951 * vax-tdep.c (vax_frame_chain): New function.
7952 (vax_push_dummy_frame): Ditto.
7953 (vax_pop_frame): Ditto.
7954 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
7955 (FRAMELESS_FUNCTION_INVOCATION): Use
7956 generic_frameless_function_invocation_not.
7957 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
7958 (POP_FRAME): Use vax_pop_frame.
7959
7960 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7961
7962 * vax-tdep.c (vax_store_struct_return): New function.
7963 (vax_extract_return_value): Ditto.
7964 (vax_store_return_value): Ditto.
7965 (vax_extract_struct_value_address): Ditto.
7966 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
7967 vax_store_struct_return.
7968 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
7969 (STORE_RETURN_VALUE): Use vax_store_return_value.
7970 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
7971
7972 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7973
7974 * vax-tdep.c (vax_frame_saved_pc): New function.
7975 (vax_frame_args_address_correct): Ditto.
7976 (vax_frame_args_address): Ditto.
7977 (vax_frame_locals_address): Ditto.
7978 (vax_frame_num_args): Move code to be in proximity to
7979 other frame-related functions.
7980 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
7981 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
7982 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
7983 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
7984 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
7985
7986 2002-04-22 H.J. Lu (hjl@gnu.org)
7987
7988 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
7989 includedir.
7990
7991 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7992
7993 * vax-tdep.c (vax_frame_init_saved_regs): New function.
7994 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
7995 (FRAME_INIT_SAVED_REGS): New macro.
7996
7997 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7998
7999 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
8000
8001 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8002
8003 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
8004 where needed.
8005 (fetch_osf_core_registers): Likewise.
8006 (supply_gregset): Likewise.
8007
8008 2002-04-22 J. Brobecker <brobecker@gnat.com>
8009
8010 * symfile.h (get_section_index): Define.
8011 * symfile.c (get_section_index): New function.
8012 * mdebugread.c (SC_IS_SBSS): New macro.
8013 (SC_IS_BSS): Return true for the scBss storage class only, as
8014 the scSBss storage class refers to the .sbss section.
8015 (parse_partial_symbols): Discard the symbols which associated
8016 section does not exist.
8017 Make sure to use the .sbss section index for symbols which
8018 storage class is scBss, rather than using the .bss section index.
8019
8020 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8021
8022 * vax-tdep.c: Update copyright years.
8023 (vax_register_name): New function.
8024 (vax_register_byte): Ditto.
8025 (vax_register_raw_size): Ditto.
8026 (vax_register_virtual_size): Ditto.
8027 (vax_register_virtual_type): Ditto.
8028 * config/vax/tm-vax.h: Update copyright years.
8029 (REGISTER_NAMES): Remove.
8030 (REGISTER_NAME): Define.
8031 (REGISTER_BYTE): Use vax_register_byte.
8032 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
8033 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
8034 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
8035
8036 2002-04-21 Andrew Cagney <ac131313@redhat.com>
8037
8038 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
8039 declaration
8040 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
8041
8042 2002-04-21 David S. Miller <davem@redhat.com>
8043
8044 * arch-utils.c (generic_prologue_frameless_p): Kill
8045 SKIP_PROLOGUE_FRAMELESS_P code.
8046 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
8047 references.
8048 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
8049 * arc-tdep.c (arc_prologue_frameless_p): Implement.
8050 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
8051 references.
8052 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
8053 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
8054 (sparc_gdbarch_init): Pass it to
8055 set_gdbarch_prologue_frameless_p.
8056
8057 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8058
8059 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
8060 (alphabsd-nat.o): New dependency list.
8061
8062 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8063
8064 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
8065 alphafbsd-tdep.c.
8066 (alpha-linux-tdep.o): New dependency list.
8067 (alphafbsd-tdep.o): Likewise.
8068
8069 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8070
8071 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
8072 to here...
8073 * alpha-tdep.c: ...from here.
8074 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
8075
8076 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8077
8078 * config/alpha/tm-alpha.h: Move alpha_software_single_step
8079 prototype from here...
8080 * alpha-tdep.h: ...to here.
8081
8082 2002-04-21 Andrew Cagney <ac131313@redhat.com>
8083
8084 * frame.h (selected_frame_level): Document as deprecated.
8085 (frame_relative_level): Declare.
8086 * stack.c (frame_relative_level): New function.
8087 (selected_frame_level): Document as deprecated.
8088 (select_frame): Do not set the selected_frame_level.
8089
8090 * stack.c (frame_info, record_selected_frame): Update.
8091 (frame_command, current_frame_command): Update.
8092 (up_silently_base, up_command, down_silently_base): Update.
8093 (down_command): Update.
8094 * inflow.c (kill_command): Update.
8095 * tracepoint.c (finish_tfind_command): Update.
8096 * corelow.c (core_open): Update.
8097 * thread.c (info_threads_command): Update.
8098 (do_captured_thread_select): Update.
8099 * infcmd.c (finish_command): Update.
8100 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
8101
8102 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8103
8104 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
8105
8106 2002-04-21 Andrew Cagney <ac131313@redhat.com>
8107
8108 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
8109 type const.
8110
8111 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8112
8113 * alphafbsd-tdep.c: Update copyright years. Include
8114 alpha-tdep.h.
8115 (alphafbsd_use_struct_convention): Make static.
8116 (alphafbsd_init_abi): New function.
8117 (_initialize_alphafbsd_tdep): New function.
8118 * config/alpha/tm-fbsd.h: Update copyright years.
8119 (USE_STRUCT_CONVENTION): Remove.
8120
8121 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8122
8123 * alpha-tdep.c (alpha_abi_handler): New structure to describe
8124 an Alpha ABI variant.
8125 (alpha_abi_handler_list): Declare.
8126 (alpha_gdbarch_register_os_abi): New function.
8127 (alpha_gdbarch_init): Give registered ABI variant handlers a
8128 chance to tweak the gdbarch once we have set up defaults.
8129 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
8130
8131 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8132
8133 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
8134 to standard_coerce_float_to_double.
8135 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
8136
8137 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8138
8139 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
8140 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
8141 from gdbarch_tdep rather than a constant.
8142 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
8143 the default text address for all Alpha Unix ABIs.
8144 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
8145 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
8146
8147 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8148
8149 * alpha-tdep.h: New file. Includes several Alpha target constants
8150 taken from...
8151 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
8152 let gdbarch deal with.
8153 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
8154 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
8155 to dependency list.
8156 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
8157 Alpha target register names.
8158 * alphabsd-nat.c: Likewise.
8159 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
8160 Alpha target register names. Make serveral routines static.
8161 (alpha_get_saved_register): New function.
8162 (alpha_abi_names): New.
8163 (process_note_abi_tag_sections): New function.
8164 (get_elfosabi): New function.
8165 (alpha_gdbarch_init): New function.
8166 (alpha_dump_tdep): New function.
8167 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
8168
8169 2002-04-21 Andrew Cagney <ac131313@redhat.com>
8170
8171 * frame.c (find_saved_register): Delete #ifdef
8172 HAVE_REGISTER_WINDOWS code.
8173 * config/sparc/tm-sparc.h: Update comments.
8174 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
8175
8176 2002-04-21 Andrew Cagney <ac131313@redhat.com>
8177
8178 * i960-tdep.c (i960_find_saved_register): New function.
8179 (i960_get_saved_register): New function.
8180 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
8181 (i960_get_saved_register): Declare.
8182 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
8183
8184 2002-04-20 David S. Miller <davem@redhat.com>
8185
8186 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
8187
8188 2002-04-20 Andrew Cagney <ac131313@redhat.com>
8189
8190 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
8191 instead of NUM_PSEUDO_REGS.
8192
8193 2002-04-20 David S. Miller <davem@redhat.com>
8194
8195 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
8196 GDB_MULTI_ARCH_PARTIAL
8197 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
8198 define, let tm-sp64.h do it.
8199
8200 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
8201
8202 * frame.c (find_saved_register): Avoid a NULL pointer
8203 dereference and actually walk the frame list.
8204
8205 2002-04-20 Andrew Cagney <ac131313@redhat.com>
8206
8207 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
8208 sorted in most most-recent-used order. Document.
8209 * gdbarch.h, gdbarch.c: Regenerate.
8210
8211 2002-04-19 Andrew Cagney <ac131313@redhat.com>
8212
8213 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
8214 instead of ->prev.
8215 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
8216 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
8217 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
8218 instead of ->prev.
8219
8220 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
8221
8222 Fix PR gdb/471.
8223 * gdbtypes.c (init_simd_type): Rewrite using new functions.
8224 (build_builtin_type_vec128): Ditto.
8225 (append_composite_type_field): Fix calculation of type length in
8226 union case.
8227
8228 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
8229
8230 * config/djgpp/README: Update.
8231
8232 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
8233 compiler warnings.
8234
8235 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
8236
8237 * alpha-tdep.c (setup_arbitrary_frame): Rename...
8238 (alpha_setup_arbitrary_frame): ...to this.
8239 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
8240 for alpha_setup_arbitrary_frame.
8241
8242 2002-04-18 Andrew Cagney <cagney@redhat.com>
8243
8244 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
8245 * gdbarch.h, gdbarch.c: Regenerate.
8246
8247 * defs.h (breakpoint_from_pc_fn): Delete type definition.
8248 * target.h (memory_breakpoint_from_pc): Update declaration.
8249 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
8250
8251 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
8252 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
8253 * mem-break.c (memory_breakpoint_from_pc): Ditto.
8254 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
8255 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
8256 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
8257 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
8258 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
8259 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
8260 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
8261 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
8262 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
8263
8264 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
8265 const pointer.
8266 * monitor.c (monitor_insert_breakpoint): Ditto.
8267 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
8268
8269 * config/mcore/tm-mcore.h: Update copyright.
8270 * mem-break.c: Ditto.
8271 * xstormy16-tdep.c: Ditto.
8272
8273 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
8274
8275 * p-exp.y: Add precedence rule for '^' token.
8276 This removes the shift/reduce conflicts.
8277 Remove the comment concerning these shift/reduce conflicts.
8278
8279 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
8280
8281 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
8282 (registers_powerpc_nofp): New register set for processors
8283 without floating point unit.
8284
8285 2002-04-18 David S. Miller <davem@redhat.com>
8286
8287 * MAINTAINERS: Add myself to write-after-approval.
8288
8289 2002-04-17 Michael Snyder <msnyder@redhat.com>
8290
8291 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
8292
8293 2002-04-17 Andrew Cagney <ac131313@redhat.com>
8294
8295 * rs6000-tdep.c (frame_initial_stack_address): Use
8296 frame_register_read to read the alloca_reg.
8297
8298 2002-04-17 Andrew Cagney <ac131313@redhat.com>
8299
8300 * frame.c (find_saved_register): Find saved registers in the next
8301 not prev frame.
8302 Fix PR gdb/365.
8303
8304 2002-04-17 Andrew Cagney <ac131313@redhat.com>
8305
8306 * gdbarch.sh (LANG): Set to ``c''.
8307
8308 2002-04-15 Andrew Cagney <ac131313@redhat.com>
8309
8310 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
8311
8312 2002-04-15 Andrew Cagney <ac131313@redhat.com>
8313
8314 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
8315 Update copyright.
8316
8317 * hpread.c (hpread_get_lntt): Add declaration.
8318 Also fix PR gdb/391.
8319
8320 2002-04-14 Andrew Cagney <ac131313@redhat.com>
8321
8322 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
8323 * aclocal.m4, configure: Re-generate.
8324 Fix PR gdb/391.
8325
8326 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
8327
8328 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
8329 instead of tm_print_insn.
8330
8331 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
8332
8333 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
8334
8335 2002-04-14 Andrew Cagney <ac131313@redhat.com>
8336
8337 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
8338 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
8339 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
8340
8341 2002-04-12 Don Howard <dhoward@redhat.com>
8342
8343 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
8344 max_user_call_depth.
8345 (init_cmd_lists): Initialize the new value;
8346 * cli/cli-script.c (execute_user_command): Limit the call depth of
8347 user defined commands. This avoids a core-dump when user commands
8348 are infinitly recursive.
8349
8350 2002-04-12 Kevin Buettner <kevinb@redhat.com>
8351
8352 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
8353 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
8354 from tdep struct instead of DEFAULT_LR_SAVE.
8355 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
8356 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
8357 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
8358
8359 2002-04-12 Michael Snyder <msnyder@redhat.com>
8360
8361 * Remote.c: Spelling fix.
8362 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
8363 If no symbol found for "sbrk", try "_sbrk".
8364 (make_output_phdrs): Use bfd_section_name.
8365 (gcore_copy_callback): Use bfd_section_name.
8366 * eval.c: Indentation fix-ups.
8367 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
8368 in case it gets applied to an address that is already
8369 in the instruction space.
8370 * cli/cli-decode.c (help_list): Allow long lines to wrap.
8371 * symfile.c: Fix indentation, long lines.
8372 * source.c: White space fix-up.
8373
8374 2002-04-12 Andrew Cagney <cagney@redhat.com>
8375
8376 * defs.h (read_relative_register_raw_bytes): Delete declaration.
8377 * frame.c (frame_register_read): New function. Return non-zero on
8378 success.
8379 (read_relative_register_raw_bytes_for_frame): Delete.
8380 (read_relative_register_raw_bytes): Delete.
8381 * frame.h (frame_register_read): Declare.
8382 * d30v-tdep.c: Update Copyright. Use frame_register_read.
8383 * sh-tdep.c: Ditto.
8384 * infcmd.c (do_registers_info): Ditto.
8385 * hppa-tdep.c: Ditto.
8386 * rs6000-tdep.c: Ditto.
8387 * h8500-tdep.c: Ditto.
8388 * mips-tdep.c: Ditto.
8389 * h8300-tdep.c: Ditto.
8390 * z8k-tdep.c: Ditto.
8391
8392 2002-04-12 Kevin Buettner <kevinb@redhat.com>
8393
8394 From Jimi X <jimix@watson.ibm.com>:
8395 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
8396 64-bit SysV ABI.
8397
8398 2002-04-12 Kevin Buettner <kevinb@redhat.com>
8399
8400 From Jimi X <jimix@watson.ibm.com>:
8401 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
8402 bfd info.
8403
8404 2002-04-12 Kevin Buettner <kevinb@redhat.com>
8405
8406 From Jimi X <jimix@watson.ibm.com>:
8407 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
8408 register sets for these processor variants.
8409
8410 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
8411
8412 * regformats/reg-ppc.dat: Support FPSCR.
8413
8414 2002-04-11 Kevin Buettner <kevinb@redhat.com>
8415
8416 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
8417 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
8418 Add fpscr as an invalid/unfetchable register.
8419 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
8420 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
8421 (fill_fpregset): Add support for register fpscr.
8422 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
8423 (fill_gregset): Account for the fact that register ``mq'' might
8424 not exist.
8425 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
8426 (registers_power): Add fpscr to register set at slot 71.
8427 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
8428 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
8429
8430 2002-04-11 Michael Snyder <msnyder@redhat.com>
8431
8432 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
8433 * configure: Regenerate.
8434 * config.in: Regenerate.
8435 * acconfig.h: Add define for _SYSCALL32.
8436 * core-sol2.c: Remove #define _SYSCALL32.
8437 * solib-legacy.c: Remove #define _SYSCALL32.
8438
8439 2002-04-10 Andrew Cagney <ac131313@redhat.com>
8440
8441 * stack.c (select_frame): Cleanup internal error message, do not
8442 use %p.
8443
8444 2002-04-10 Andrew Cagney <ac131313@redhat.com>
8445
8446 * stack.c (select_frame): Check that selected_frame and the
8447 specified level are as expected.
8448 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
8449 Update copyright.
8450 * frame.h (struct frame_info): Add field `level'. Update
8451 copyright.
8452 Work-in-progress PR gdb/464.
8453
8454 2002-04-10 Andrew Cagney <ac131313@redhat.com>
8455
8456 * maint.c (maint_print_section_info): Rename print_section_info.
8457 (print_bfd_section_info, print_objfile_section_info): Update.
8458 * inferior.h (struct gdbarch): Add opaque declaration.
8459 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
8460 * gdbarch.h: Regenerate.
8461
8462 2002-04-10 Michal Ludvig <mludvig@suse.cz>
8463
8464 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
8465 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
8466 (kernel_u_size): Added.
8467 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
8468 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
8469
8470 2002-04-04 Jim Ingham <jingham@apple.com>
8471
8472 * valarith.c (find_size_for_pointer_math): New function, either returns
8473 the size for a pointer's target, returns 1 for void *, or errors for
8474 incomplete types.
8475 (value_add, value_sub): use find_size_for_pointer_math.
8476
8477 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
8478
8479 * linux-low.c (linux_look_up_symbols): New hook.
8480 (linux_target_ops): Add linux_look_up_symbols.
8481 * remote-utils.c (decode_address): New function.
8482 (look_up_one_symbol): New function.
8483 * server.c (handle_query): Call target look_up_symbols hook.
8484 * server.h (look_up_one_symbol): Add prototype.
8485 * target.h (struct target_ops): Add look_up_symbols hook.
8486
8487 2002-04-09 Andrew Cagney <ac131313@redhat.com>
8488
8489 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
8490 override FP_REGNUM with frame->fp. Update copyright.
8491 * parse.c (num_std_regs, std_regs): Delete.
8492 (target_map_name_to_register): Do not search std_regs. Update
8493 function description.
8494 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
8495 declarations. Update copyright.
8496 Fix PR gdb/251.
8497
8498 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
8499
8500 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
8501 after the last symbol in a block.
8502
8503 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
8504
8505 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
8506 is non zero as a found symbol.
8507
8508 2002-04-08 Andrew Cagney <ac131313@redhat.com>
8509
8510 * findvar.c: Include "builtin-regs.h".
8511 (value_of_register): Call value_of_builtin_reg when applicable.
8512 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
8513 (target_map_name_to_register): Call
8514 builtin_reg_map_name_to_regnum.
8515 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
8516 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
8517 (builtin_regs_h): Define.
8518 (builtin-regs.o): New target.
8519 (findvar.o): Add $(builtin_regs_h).
8520 * builtin-regs.c, builtin-regs.h: New files.
8521 * std-regs.c: New file.
8522 Partial fix for PR gdb/251.
8523
8524 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8525
8526 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
8527 it's no longer required.
8528
8529 2002-04-08 Andrew Cagney <ac131313@redhat.com>
8530
8531 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
8532
8533 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8534
8535 From Jimi X <jimix@watson.ibm.com>:
8536 * rs6000-tdep.c (rs6000_software_single_step): Use
8537 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
8538 and size. Use target_insert_breakpoint() and
8539 target_remove_breakpoint() to insert and remove breakpoints
8540 instead of explicit memory reads and writes.
8541
8542 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8543
8544 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
8545 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
8546 ELF_OBJECT_FORMAT ifdef.
8547
8548 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8549
8550 From Jimi X <jimix@watson.ibm.com>:
8551 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
8552
8553 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8554
8555 From Jimi X <jimix@watson.ibm.com>:
8556 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
8557 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
8558
8559 2002-04-07 Mark Kettenis <kettenis@gnu.org>
8560
8561 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
8562 s/asprintf/xasprintf/.
8563 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
8564
8565 2002-04-07 Andrew Cagney <ac131313@redhat.com>
8566
8567 I believe Jeff Law denies responsability for this one:
8568 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
8569 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
8570 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
8571 Work-around for PR gdb/366.
8572
8573 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
8574
8575 * remote-e7000.c (write_small, e7000_read_inferior_memory,
8576 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
8577 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
8578
8579 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
8580
8581 * sh-tdep.c (sh_fp_frame_init_saved_regs,
8582 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
8583 information.
8584
8585 2002-04-07 Andrew Cagney <ac131313@redhat.com>
8586
8587 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
8588 maintainer.
8589
8590 2002-04-07 Andrew Cagney <ac131313@redhat.com>
8591
8592 * README (Reporting Bugs in GDB): Document the bug web page as the
8593 prefered way of submitting bugs.
8594 Fix PR gdb/402.
8595
8596 2002-04-06 Andrew Cagney <ac131313@redhat.com>
8597
8598 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
8599 -1. Update comment.
8600 * gdbarch.h, gdbarch.c: Re-generate.
8601
8602 2002-04-07 Andreas Schwab <schwab@suse.de>
8603
8604 * m68klinux-nat.c (fill_fpregset): Properly pass address of
8605 buffer to regcache_collect.
8606
8607 2002-04-06 Andrew Cagney <ac131313@redhat.com>
8608
8609 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
8610 * gdbarch.c, gdbarch.h: Re-generate.
8611
8612 2002-04-06 Andrew Cagney <ac131313@redhat.com>
8613
8614 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
8615 declaration. Fix -Werror.
8616
8617 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
8618
8619 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
8620 * gdbarch.c: Regenerate.
8621
8622 2002-04-05 Michael Snyder <msnyder@redhat.com>
8623
8624 * breakpoint.c (clear_command): Rewrite middle section to
8625 combine two loops with identical control conditions.
8626 Add a cleanup to eliminate a memory leak.
8627 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
8628
8629 2002-04-05 H.J. Lu (hjl@gnu.org)
8630
8631 * solib-svr4.c (bkpt_names): Add "__start".
8632
8633 2002-04-04 Andrew Cagney <ac131313@redhat.com>
8634
8635 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
8636 as test for 64 bit target.
8637
8638 2002-04-05 Andrew Cagney <ac131313@redhat.com>
8639
8640 * h8500-tdep.c (h8500_write_fp): Delete function.
8641 * dwarf2cfi.c (cfi_write_fp): Document as not used.
8642 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
8643 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
8644 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
8645 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
8646 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
8647 (s390_write_fp):
8648 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
8649 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
8650 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
8651 (d10v_write_fp): Delete function.
8652 * inferior.h (write_fp, generic_target_write_fp): Delete
8653 declarations.
8654 * regcache.c (generic_target_write_fp): Delete function.
8655 (write_fp): Delete function.
8656 * gdbarch.sh (TARGET_WRITE_FP): Delete.
8657 * gdbarch.h, gdbarch.c: Regenerate.
8658 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
8659 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
8660 (sparc64_write_fp): Delete declaration.
8661 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
8662 (h8500_write_fp): Delete declaration.
8663
8664 2002-04-04 Andrew Cagney <ac131313@redhat.com>
8665
8666 * sparc-tdep.c (sparc64_write_fp): Delete.
8667 (sparc_push_dummy_frame): Replace write_fp call with code to store
8668 the FP directly.
8669 (sparc_gdbarch_init): Do not initialize write_fp.
8670
8671 2002-04-05 Kevin Buettner <kevinb@redhat.com>
8672
8673 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
8674 clause.
8675
8676 2002-03-29 Jim Blandy <jimb@redhat.com>
8677
8678 * stack.c (get_selected_block): Add new argument `addr_in_block',
8679 used to return the exact code address we used to select the block,
8680 not just the block.
8681 * blockframe.c (get_frame_block, get_current_block): Same.
8682 * frame.h (get_frame_block, get_current_block,
8683 get_selected_block): Update declarations.
8684 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
8685 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
8686
8687 2002-04-05 Michael Snyder <msnyder@redhat.com>
8688
8689 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
8690 warning message.
8691
8692 2002-04-05 J. Brobecker <brobecker@gnat.com>
8693
8694 * utils.c (xfullpath): New function.
8695 * defs.h (xfullpath): Add declaration.
8696 * source.c (openp): Use xfullpath in place of gdb_realpath to
8697 avoid resolving the basename part of filenames when the
8698 associated file is a symbolic link. This fixes a potential
8699 inconsistency between the filenames known to GDB and the
8700 filenames it prints in the annotations.
8701 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
8702 to be able to match a filename with either the real filename, or
8703 the name of any symbolic link to this file.
8704 (lookup_partial_symtab): Ditto.
8705
8706 2002-04-04 Michael Snyder <msnyder@redhat.com>
8707
8708 * breakpoint.c: Add support for hardware breakpoints in overlays.
8709 (overlay_events_enabled): New state variable.
8710 (insert_breakpoints): Use overlay_events_enabled to decide
8711 whether to attempt to set a breakpoint at the overlay load addr.
8712 Handle bp_hardware_breakpoint as well as bp_breakpoint.
8713 (remove_breakpoint): Use overlay_events_enabled to decide
8714 whether breakpoints need to be removed from overlay load addr.
8715 Handle bp_hardware_breakpoint as well as bp_breakpoint.
8716 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
8717 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
8718 disable_overlay_breakpoints): Update overlay_events_enabled.
8719
8720 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
8721
8722 * dwarf2read.c (struct function_range): New.
8723 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
8724 (check_cu_functions): New.
8725 (read_file_scope): Initialize global function lists.
8726 Call dwarf_decode_line after processing children.
8727 (read_func_scope): Add to global function list.
8728 (dwarf_decode_lines): Call check_cu_functions everywhere
8729 record_line is called. Call record_line with a linenumber
8730 of 0 to mark sequence ends.
8731
8732 2002-04-04 Michal Ludvig <mludvig@suse.cz>
8733
8734 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
8735 change sync with glibc.
8736
8737 2002-04-03 Jim Blandy <jimb@redhat.com>
8738
8739 * configure.in: Call AC_C_INLINE.
8740 * configure: Regenerated.
8741
8742 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
8743
8744 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
8745 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
8746
8747 2002-03-31 Mark Kettenis <kettenis@gnu.org>
8748
8749 * NEWS: Mention gcore support on FreeBSD/i386.
8750
8751 * fbsd-proc.c: New file.
8752 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
8753 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
8754
8755 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
8756 while statement.
8757
8758 2002-03-29 Jim Blandy <jimb@redhat.com>
8759
8760 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
8761 unescaped newlines in string literals, but newer ones don't. So
8762 escape them.
8763
8764 2002-03-26 Michael Snyder <msnyder@redhat.com>
8765 Andrew Cagney <cagney@redhat.com>
8766
8767 * cli/cli-dump.c: New file. Dump memory to file,
8768 restore file to memory.
8769 * cli/cli-dump.h: New file.
8770 * Makefile.in: Add rules, dependencies for cli-dump.o.
8771 * NEWS: Mention new commands.
8772
8773 2002-03-28 Michael Snyder <msnyder@redhat.com>
8774
8775 * symfile.c (symbol_file_add): Move test for null symbols to later.
8776
8777 2002-03-27 Andrew Cagney <ac131313@redhat.com>
8778
8779 From veksler at il.ibm.com:
8780 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
8781 the xstrduped original path.
8782 Fix PR gdb/417.
8783
8784 2002-03-27 Michael Snyder <msnyder@redhat.com>
8785
8786 * breakpoint.c (_initialize_breakpoint): Clean up help string.
8787 * infcmd.c (_initialize_infcmd): Ditto.
8788 * language.c (_initialize_language): Ditto.
8789 * symfile.c (_initialize_symfile): Ditto.
8790 * top.c (_init_main): Ditto.
8791 * cli/cli-cmds.c (init_cli_cmds): Ditto.
8792
8793 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
8794
8795 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
8796 vector registers handling.
8797 (skip_prologue): Handle new AltiVec instructions. Fill in new
8798 fields of frame data.
8799 (frame_get_saved_regs): Fill in information for AltiVec registers.
8800
8801 2002-03-27 Jim Blandy <jimb@redhat.com>
8802
8803 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
8804 a function; leave this macro here to invoke that function.
8805 (symbol_init_mangled_name): Declaration for that function.
8806 * symtab.c (symbol_init_mangled_name): New function.
8807
8808 2002-03-27 Andrew Cagney <ac131313@redhat.com>
8809
8810 * valarith.c: Replace strerror with safe_strerror.
8811 * tracepoint.c: Ditto.
8812 * lin-lwp.c: Ditto.
8813 * go32-nat.c: Ditto.
8814 * inflow.c: Ditto.
8815 * gnu-nat.c: Ditto.
8816
8817 2002-03-27 Andreas Schwab <schwab@suse.de>
8818
8819 * event-top.c (command_line_handler): Remove useless if.
8820
8821 2002-03-27 Andreas Jaeger <aj@suse.de>
8822
8823 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
8824 comment.
8825
8826 2002-03-27 Michal Ludvig <mludvig@suse.cz>
8827
8828 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
8829 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
8830 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
8831 (x86_64_linux_dr_get_status, supply_gregset),
8832 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
8833 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
8834 (x86_64_register_info_table): Add.
8835 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
8836 (x86_64_register_raw_size, x86_64_register_virtual_type),
8837 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
8838 general x86_64_register_info_table.
8839 (i386_gdbarch_init): gdbarch_register_bytes is now set
8840 dynamicaly during initialization.
8841 * regformats/reg-x86-64.dat: Synced with changes to registers above.
8842 * gdbserver/linux-x86-64-low.c: Ditto.
8843
8844 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
8845
8846 * gdbserver/server.c (main): Call target_signal_to_host_p
8847 and target_signal_to_host on signals received from the remote.
8848 * gdbserver/remote-utils.c (prepare_resume_reply): Call
8849 target_signal_from_host on signals sent to the remote.
8850 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
8851 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
8852
8853 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
8854
8855 * signals/signals.c: Include "server.h" in gdbserver build.
8856 (target_signal_from_name): Don't use STREQ.
8857 (_initialize_signals): Likewise. Don't include function in
8858 gdbserver build.
8859
8860 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
8861
8862 * signals.c: Moved to...
8863 * signals/signals.c: Here.
8864 * Makefile (signals.o): Update.
8865
8866 2002-03-26 Jeff Law (law@redhat.com)
8867
8868 * somread.c (som_symtab_read): Remove some commented out code and
8869 updated related comments. Do not set the minimal symbol table to
8870 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
8871 in a dynamic executable.
8872 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
8873 where we are unable to find the minimal symbol for the given
8874 PC value.
8875
8876 2002-03-25 Jeff Law (law@redhat.com)
8877
8878 * linux-proc.c (read_mapping): Scan up to end of line for filename.
8879
8880 2002-03-25 Michal Ludvig <mludvig@suse.cz>
8881
8882 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
8883
8884 2002-03-23 Andrew Cagney <ac131313@redhat.com>
8885
8886 * command.h: Update copyright.
8887 (struct cmd_list_element): Replace definition with opaque
8888 declaration.
8889 (enum cmd_types): Document that it will eventually be moved to
8890 cli/cli-decode.h
8891 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
8892 (MALLOCED_REPLACEMENT): Delete macro.
8893 * Makefile.in (cli_decode_h): Add $(command_h).
8894 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
8895 * top.c: Include "cli/cli-decode.h".
8896 * completer.c: Include "cli/cli-decode.h".
8897 * maint.c: Include "cli/cli-decode.h".
8898 * cli/cli-decode.h: Include "command.h".
8899 (enum command_class): Delete.
8900 (enum cmd_types): Comment out.
8901 (enum cmd_auto_boolean): Delete.
8902 (enum var_types): Delete.
8903
8904 2002-03-23 Andrew Cagney <ac131313@redhat.com>
8905
8906 * cli/cli-decode.c: Include "gdb_assert.h".
8907 (add_set_or_show_cmd): New static function.
8908 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
8909 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
8910 all fields, such as func, from the set command.
8911
8912 2002-03-23 Andrew Cagney <ac131313@redhat.com>
8913
8914 * MAINTAINERS (sh-elf): Change warning flag to -w.
8915
8916 2002-03-23 Andrew Cagney <cagney@redhat.com>
8917
8918 * defs.h (error): Add printf format attribute.
8919 * thread-db.c (thread_from_lwp): Fix error format string.
8920 * stack.c (parse_frame_specification): Ditto.
8921 * cli/cli-decode.c (undef_cmd_error): Ditto.
8922 * scm-lang.c (scm_lookup_name): Ditto.
8923 * tracepoint.c (trace_error): Ditto.
8924 * remote-utils.c (usage): Ditto.
8925 * remote.c (compare_sections_command): Ditto.
8926 Fix PR gdb/328.
8927
8928 2002-03-22 Andrew Cagney <ac131313@redhat.com>
8929
8930 * gdbtypes.c (append_composite_type_field): New function.
8931 (init_composite_type): New function.
8932 * gdbtypes.h (append_composite_type_field): Declare.
8933 (init_composite_type): Ditto.
8934
8935 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
8936
8937 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
8938 function.
8939 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
8940 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
8941 structure returning convention for SYSV ABI case, but not
8942 for GNU/Linux, FreeBSD, or NetBSD.
8943
8944 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
8945
8946 * symtab.h (lookup_block_symbol): Add mangled_name argument
8947 to prototype.
8948
8949 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
8950 with new mangled_name argument.
8951 * linespec.c (decode_line_1): Likewise.
8952 * valops (value_of_this): Likewise.
8953 * symtab.c (lookup_transparent_type): Likewise.
8954 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
8955 (lookup_symbol): If we are given a mangled name, pass it down
8956 to lookup_symbol_aux.
8957 (lookup_block_symbol): If we are given a mangled name to check
8958 against, only return symbols which match it.
8959
8960 2002-03-22 Christopher Faylor <cgf@redhat.com>
8961
8962 * win32-nat.c (child_create_inferior): Check for proper shell to use
8963 here, in case the user changes it on the fly.
8964 (_initialize_inftarg): Remove shell path considerations.
8965
8966 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
8967
8968 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
8969 for gdbarch_max_register_raw_size and max_register_virtual_size.
8970 Adjust copyright year.
8971
8972 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
8973
8974 * dbxread.c (process_one_symbol): Extend the first N_SLINE
8975 in a function to cover the entire beginning of the function
8976 as well if it does not already.
8977
8978 2002-03-21 Tom Rix <trix@redhat.com>
8979
8980 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
8981 (rs6000_ptrace64): Renamed from ptrace64.
8982
8983 2002-03-20 Martin M. Hunt <hunt@redhat.com>
8984
8985 * gdbserver/remote-utils.c (remote_open): Don't call
8986 getprotobyname, we're all using TCP here so just use
8987 IPPROTO_TCP.
8988 * gdbserver/gdbreplay.c (remote_open): Ditto.
8989
8990 2002-03-20 Martin M. Hunt <hunt@redhat.com>
8991
8992 * regcache.c (_initialize_regcache): No need to call
8993 build_regcache() at this time; it gets called whenever
8994 the gdbarch changes.
8995
8996 2002-03-20 David O'Brien <obrien@FreeBSD.org>
8997
8998 * sparc-nat.c: Include sys/param.h where possible.
8999
9000 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
9001
9002 Fix PR gdb/422.
9003 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
9004 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
9005 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
9006 complex types.
9007 * stabsread.c (rs6000_builtin_type): Likewise.
9008 (read_sun_floating_type): Likewise.
9009
9010 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9011
9012 * stabsread.c (read_member_functions): Remove skip code for duplicate
9013 constructor/destructor methods. Use standard parsing for these
9014 methods and just do not chain them to the list of methods after
9015 parsing.
9016
9017 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
9018
9019 * coffread.c: Remove redundant static declarations. Replace
9020 occurrences of `PTR' with `void *'.
9021 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
9022 * top.h (quit_cover): Likewise.
9023 * defs.h (catch_errors): Likewise.
9024
9025 2002-03-18 Andrew Cagney <ac131313@redhat.com>
9026
9027 * defs.h (XMALLOC): Define.
9028 * gdb-events.sh (XMALLOC): Delete macro.
9029 * gdb-events.c, gdb-events.h: Regenerate.
9030 * gdbarch.sh (XMALLOC): Delete macro.
9031 * gdbarch.c: Regenerate.
9032 * serial.c (XMALLOC): Delete macro.
9033 * ui-file.c (XMALLOC): Ditto.
9034 * ser-unix.h (XMALLOC): Ditto.
9035 * sh-tdep.c (XMALLOC): Ditto.
9036 * ui-out.c (XMALLOC): Ditto.
9037 * utils.c (XMALLOC): Ditto.
9038 * i386-tdep.c (XMALLOC): Ditto.
9039 * gdb-events.c (XMALLOC): Ditto.
9040 * d10v-tdep.c (XMALLOC): Ditto.
9041 * cli-out.c (XMALLOC): Ditto.
9042
9043 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
9044 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
9045 * ui-file.c, ui-out.c: Ditto.
9046
9047 2002-03-18 Andrew Cagney <ac131313@redhat.com>
9048
9049 * command.h (struct cmd_list_element): Add field context.
9050 (set_cmd_context, get_cmd_context): Declare.
9051 * cli/cli-decode.h: Ditto.
9052 * cli/cli-decode.c (get_cmd_context): New function.
9053 (set_cmd_context): New function.
9054 (add_cmd): Initialize context.
9055 Part of fixing PR gdb/145 and PR gdb/146.
9056
9057 2002-03-17 Andrew Cagney <ac131313@redhat.com>
9058
9059 * cli/cli-decode.c (cmd_type): New function.
9060 * command.h (cmd_type): Declare.
9061 * infrun.c (set_schedlock_func): Call function cmd_type.
9062 * kod.c (kod_set_os): Call cmd_type.
9063 * cris-tdep.c (cris_version_update): Use function cmd_type.
9064 (cris_mode_update, cris_abi_update): Ditto.
9065
9066 * command.h: (execute_cmd_post_hook): Declare.
9067 (execute_cmd_pre_hook): Declare.
9068 * cli/cli-script.c (clear_hook_in_cleanup): New function.
9069 (execute_cmd_post_hook, execute_cmd_pre_hook): New
9070 functions. Execute pre/post hook while ensuring that afterwords
9071 hook_in is cleared.
9072 * top.c (execute_command): Use execute_cmd_post_hook, and
9073 execute_cmd_pre_hook to execute pre/post commands.
9074 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
9075 hook_stop_stub.
9076 (hook_stop_stub): Call execute_cmd_pre_hook.
9077
9078 2002-03-17 Andrew Cagney <ac131313@redhat.com>
9079
9080 * kod.c (kod_set_os): Revert previous change. Is called by ``info
9081 set'' and this leads to a core dump. Move xstrdup of
9082 operating_system to after check that it is not NULL.
9083
9084 2002-03-17 Andrew Cagney <ac131313@redhat.com>
9085
9086 * kod.c (kod_set_os): Remove unnecessary check that
9087 ``command->type'' is set_cmd.
9088
9089 * valprint.c (set_input_radix): Use input_radix.
9090 (set_output_radix): Use output_radix.
9091 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
9092 isn't reverted.
9093
9094 2002-03-16 Andrew Cagney <ac131313@redhat.com>
9095
9096 * value.h (struct value): Delete field ``substring_addr''. Change
9097 aligner fields to force_doublest_align, force_longest_align,
9098 force_core_addr_align and force_pointer_aligh.
9099
9100 * value.h (struct value): Fix typo in above change.
9101
9102 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9103
9104 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
9105 to fix internal_error from ``maintenance print architecture''.
9106
9107 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9108
9109 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
9110 for gcc versions after gcc-2.8.1.
9111
9112 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9113
9114 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
9115 for method resolution. Restore adjustment of ``this'' pointer after
9116 calling value_struct_elt, which was accidentally removed during the
9117 HP merge.
9118
9119 2002-03-15 Andrew Cagney <ac131313@redhat.com>
9120
9121 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
9122 value_of_register.
9123 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
9124 get_saved_register.
9125 * value.h (value_of_register): Update.
9126
9127 2002-03-14 Richard Henderson <rth@redhat.com>
9128
9129 * configure.in: Detect declaration for canonicalize_file_name.
9130 * utils.c (canonicalize_file_name): Declare, if needed.
9131 (gdb_realpath): Prefer realpath if available and usable.
9132 * config.in, configure: Rebuild.
9133
9134 2002-03-14 Richard Henderson <rth@redhat.com>
9135
9136 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
9137 a constant array bound.
9138
9139 * MAINTAINERS: Add myself to write-after-approval.
9140
9141 2002-03-14 Michael Snyder <msnyder@redhat.com>
9142
9143 * symfile.c (syms_from_objfile): Return immediately if no syms.
9144 (symbol_file_add): Return immediately if no syms.
9145 (find_sym_fns): Return immediately if no syms.
9146
9147 2002-03-13 Michal Ludvig <mludvig@suse.cz>
9148
9149 * gdbserver/remote-util.c (remote_open): Print remote-side's
9150 IP address when remote debugging over the network.
9151
9152 2002-03-12 David O'Brien <obrien@FreeBSD.org>
9153
9154 * config/sparc/fbsd.mh: Fix copyright.
9155 * config/sparc/fbsd.mt: Likewise.
9156
9157 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
9158
9159 * MAINTAINERS: Fix typo in name of gdb warnings option.
9160 (x86-64): Fix formating so that this can be parsed by awk.
9161
9162 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
9163
9164 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
9165 * defs.h: Include "gdb/signals.h".
9166 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
9167
9168 2002-03-10 Michal Ludvig <mludvig@suse.cz>
9169
9170 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
9171 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
9172 from x86-64-tdep.h
9173
9174 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
9175 Don Howard <dhoward@redhat.com>
9176
9177 * mips-tdep.c (ST0_FR): Define.
9178 (mips2_fp_compat): New function, temporarily disabled.
9179 (mips_read_fp_register_single): New function.
9180 (mips_read_fp_register_double): New function.
9181 (mips_print_register): Use them.
9182 (do_fp_register_row): Likewise.
9183
9184 2002-03-09 Andrew Cagney <ac131313@redhat.com>
9185
9186 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
9187 approval''.
9188
9189 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9190
9191 * stabsread.c (read_member_functions): Fix is_stub test for
9192 static member functions, improve comment.
9193
9194 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
9195
9196 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
9197 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
9198 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
9199 commands that set boolean values.
9200 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
9201 (arm_rdi_resume): Always initialize PC.
9202 (arm_rdi_open): Don't use rslt as a boolean.
9203 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
9204 (arm_rdi_fetch_registers, arm_rdi_store_registers)
9205 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
9206 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
9207
9208 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
9209
9210 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
9211 * configure: Rebuilt.
9212
9213 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9214
9215 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
9216 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
9217
9218 2002-03-06 Andrew Cagney <ac131313@redhat.com>
9219
9220 * cli/cli-decode.c (set_cmd_completer): New function.
9221 * command.h (set_cmd_completer): Declare.
9222 * cli/cli-decode.h (set_cmd_completer): Ditto.
9223
9224 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
9225 * cli/cli-cmds.c (init_cli_cmds): Ditto.
9226 * win32-nat.c (_initialize_inftarg): Ditto.
9227 * remote-rdi.c (_initialize_remote_rdi): Ditto.
9228 * proc-api.c (_initialize_proc_api): Ditto.
9229 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
9230 * source.c (_initialize_source): Ditto.
9231 * exec.c (_initialize_exec): Ditto.
9232 * solib.c (_initialize_solib): Ditto.
9233 * top.c (init_main): Ditto.
9234 * tracepoint.c (_initialize_tracepoint): Ditto.
9235 * symfile.c (_initialize_symfile): Ditto.
9236 * printcmd.c (_initialize_printcmd): Ditto.
9237 * infcmd.c (_initialize_infcmd): Ditto.
9238 * corefile.c (_initialize_core): Ditto.
9239
9240 2002-03-05 Andrew Cagney <ac131313@redhat.com>
9241
9242 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
9243
9244 2002-03-05 Andrew Cagney <ac131313@redhat.com>
9245
9246 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
9247
9248 2002-03-05 Andrew Cagney <ac131313@redhat.com>
9249
9250 * NEWS: Update headings, 5.2 has branched.
9251
9252 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
9253
9254 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
9255 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
9256 (register_addr, REGISTER_RAW_SIZE): Likewise.
9257 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
9258 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
9259
9260 2002-03-03 Michal Ludvig <mludvig@suse.cz>
9261
9262 * MAINTAINERS (x86-64): Add myself.
9263 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
9264 changed value_ptr -> struct value *
9265
9266 2002-03-01 David O'Brien <obrien@FreeBSD.org>
9267
9268 * configure.host (sparc64-*-freebsd): Add.
9269 * configure.tgt: Likewise.
9270 * config/sparc/fbsd.mh: New file.
9271 * config/sparc/fbsd.mt: Likewise.
9272 * config/sparc/nm-fbsd.h: Likewise.
9273 * config/sparc/tm-fbsd.h: Likewise.
9274
9275 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
9276
9277 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
9278 regformats/reg-s390x.dat.
9279
9280 2002-03-01 Andrew Cagney <ac131313@redhat.com>
9281
9282 * utils.c: Add FIXME explaining true/false problem.
9283
9284 2002-02-28 Andrew Cagney <ac131313@redhat.com>
9285
9286 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
9287
9288 2002-02-28 Michael Chastain <mec@shout.net>
9289
9290 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
9291
9292 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
9293
9294 * gdbserver/linux-s390-low.c: New file.
9295 * regformats/reg-s390.dat: New file.
9296 * regformats/reg-s390x.dat: New file.
9297 * gdbserver/configure.srv: Add S/390.
9298 * gdbserver/Makefile.in: Add S/390.
9299 * configure.tgt: Enable gdbserver for S/390.
9300
9301 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
9302
9303 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
9304 first line of the doc string for "info dos", except at the end of
9305 the sentence, since the short help stops at the first period.
9306
9307 2002-02-28 Jason Merrill <jason@redhat.com>
9308
9309 * dwarf2read.c (dwarf_cfi_name): Add new codes.
9310
9311 2002-02-27 Fred Fish <fnf@redhat.com>
9312
9313 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
9314 comment (dumy -> dummy).
9315
9316 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9317
9318 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
9319
9320 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
9321
9322 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
9323
9324 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
9325
9326 * gdbserver/acconfig.h: New file.
9327 * gdbserver/i387-fp.c: New file.
9328 * gdbserver/i387-fp.h: New file.
9329 * gdbserver/linux-x86-64.c: New file.
9330 * regformats/reg-x86-64.dat: New file.
9331 * configure.tgt: Add x86_64-*-linux* gdbserver support.
9332 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
9333 * gdbserver/configure.in: Add support for regsets.
9334 * gdbserver/config.in: Regenerate.
9335 * gdbserver/configure: Regenerate.
9336 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
9337 * gdbserver/linux-low.h: New file.
9338 * gdbserver/linux-low.c: Include "linux-low.h". Add support
9339 for regsets.
9340 * gdbserver/linux-arm-low.c: Include "linux-low.h".
9341 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
9342 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
9343 * gdbserver/linux-mips-low.c: Include "linux-low.h".
9344 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
9345 * gdbserver/linux-sh-low.c: Include "linux-low.h".
9346 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
9347 "i387-fp.h". Add PTRACE_GETREGS and friends.
9348 * gdbserver/regcache.c (supply_register): New function.
9349 (supply_register_by_name): New function.
9350 (collect_register): New function.
9351 (collect_register_by_name): New function.
9352
9353 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
9354
9355 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
9356 (config.status): Add configure.srv dependency.
9357 (server_h): Add config.h dependency.
9358
9359 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
9360
9361 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
9362 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
9363 * gdbserver/configure.srv: Change i386-*-linux* to use
9364 reg-i386-linux.o.
9365
9366 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9367
9368 * x86-64-tdep.c: Re-indent. Update copyright date.
9369
9370 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9371
9372 From Michal Ludvig <mludvig@suse.cz>:
9373 * x86-64-tdep.c (value.h): Delete.
9374 (gdb_assert.h): Include.
9375 (x86_64_register_convert_to_virtual,
9376 x86_64_register_convert_to_raw ): Add check which lets only
9377 floating-point values to be converted.
9378 (value_push): Delete.
9379 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
9380 (i386_gdbarch_init): Number of register_bytes fixed.
9381
9382 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9383
9384 * MAINTAINERS: Add x86-64 target.
9385
9386 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9387
9388 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
9389 * osfsolib.c (solib_map_sections): Ditto.
9390 * irix5-nat.c (solib_map_sections): Ditto.
9391 * corelow.c (gdb_check_format): Ditto.
9392 * symfile.c (symfile_bfd_open): Ditto.
9393 * solib.c (solib_map_sections): Ditto.
9394 Fix PR gdb/354.
9395
9396 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9397
9398 * remote.c (_initialize_remote): By default, disable ``e'' and
9399 ``E'' step out-of-range packets.
9400
9401 2002-02-26 Andreas Schwab <schwab@suse.de>
9402
9403 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
9404 m68k_linux_frame_saved_pc.
9405 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
9406 in_sigtramp.
9407 (SIGCONTEXT_PC_OFFSET): Remove.
9408 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
9409 m68k_linux_sigtramp_saved_pc): New functions.
9410 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
9411 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
9412 (UCONTEXT_PC_OFFSET): Define.
9413 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
9414 non-RT and RT signal trampolines.
9415
9416 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
9417
9418 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
9419 (TARGET_NBPG, STACK_END_ADDR): Delete
9420 (VARIABLES_INSIDE_BLOCK): Delete.
9421
9422 2002-02-25 Andrew Cagney <ac131313@redhat.com>
9423
9424 * utils.c (perror_with_name): Make string parameter constant.
9425 (print_sys_errmsg): Ditto.
9426 (query): Ditto.
9427 * defs.h (perror_with_name): Update.
9428 (print_sys_errmsg): Update.
9429 (query): Update.
9430
9431 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
9432
9433 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
9434 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
9435
9436 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9437
9438 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
9439 if it already matches the current architecture from the exec file.
9440 Include arch-utils.h for gdbarch_info_init prototype.
9441 * Makefile.in (rs6000-nat.o): Update dependencies.
9442
9443 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
9444
9445 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
9446 list of exported variables.
9447
9448 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
9449
9450 * gdbserver/configure.srv: New file.
9451 * gdbserver/configure.in: Use configure.srv instead
9452 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
9453 from it.
9454 * gdbserver/configure: Regenerated.
9455 * gdbserver/terminal.h: New file.
9456 * gdbserver/Makefile.in: Update for configure changes. Remove
9457 more unneeded include paths.
9458
9459 2002-02-24 Andrew Cagney <ac131313@redhat.com>
9460
9461 From wiz at danbala:
9462 * config/sparc/tm-sp64.h: Fix grammar and typos.
9463 Fix PR gdb/287.
9464
9465 2002-02-24 Andrew Cagney <ac131313@redhat.com>
9466
9467 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
9468 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
9469 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
9470 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
9471 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
9472 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
9473 * s390-tdep.c: Ditto.
9474 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
9475 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
9476 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
9477 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
9478 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
9479 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
9480 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
9481 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
9482 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
9483 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
9484 Fix PR gdb/378.
9485
9486 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9487
9488 * lin-thread.c: Delete file.
9489 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
9490 to gdb_proc_service.h.
9491 * configure: Re-generate.
9492
9493 * ocd.c (ocd_open): Do not try to open the "ocd" device.
9494 * serial.c (serial_open): Delete check for "ocd".
9495 Fix PR gdb/349.
9496
9497 * Makefile.in (linux-thread.o): Delete target.
9498 * linux-thread.c: Delete file.
9499
9500 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
9501 renamed SH files to be consistent.
9502
9503 * symtab.c (sort_search_symbols): Use xfree.
9504
9505 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
9506
9507 * arm-linux-tdep.c (arm_linux_init_abi): Register
9508 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
9509 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
9510 definition with undef, since we don't want the sysvr4 definition.
9511 (SKIP_TRAMPOLINE_CODE): Likewise.
9512
9513 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9514
9515 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
9516
9517 * configure.in: (AC_CHECK_FUNCS) Added test for
9518 canonicalize_file_name Regenerated.
9519 * config.in, configure: Regenerated.
9520 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
9521 defined use canonicalize_file_name.
9522
9523 2002-02-23 Michael Chastain <mec@shout.net>
9524
9525 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
9526
9527 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9528
9529 * README: Remove references to cygnus.com.
9530 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
9531 dot com'' form. Remove references to cygnus.com and sourceware.
9532
9533 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9534
9535 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
9536 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
9537 1003.1-2001 no longer allows "head -1".
9538 * gdb/Makefile.in (version.c): Likewise.
9539 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
9540 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
9541 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
9542
9543 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9544
9545 * cli/cli-decode.c (cmd_cfunc_eq): New function.
9546 * command.h (cmd_cfunc_eq): Declare.
9547 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
9548
9549 * cli/cli-cmds.h (is_complete_command): Change parameter to a
9550 ``struct cmd_list_element *''.
9551 * cli/cli-cmds.c (is_complete_command): Update. Use
9552 cmd_cfunc_eq.
9553 * top.c (execute_command): Pass the command to
9554 is_complete_command.
9555 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
9556
9557 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9558
9559 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
9560 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
9561 architecture defines.
9562 * s390-tdep.c (s390_gdbarch_init): Likewise.
9563
9564 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
9565
9566 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
9567 (arm_linux_push_arguments): Likewise.
9568 (arm_linux_init_abi): Register them. Also register linux-specific
9569 call_dummy_words.
9570 (find_minsym_and_objfile): Use strcmp, not STREQ.
9571 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
9572 (arm_linux_call_dummy_words): Delete declaration.
9573 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
9574 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
9575 declarations.
9576 (LOWEST_PC): Delete.
9577
9578 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9579
9580 * maint.c (print_section_info): Do not prepend `0x' to filepos
9581 output, it will be handled by local_hex_string_custom.
9582
9583 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
9584
9585 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
9586 (store_newfpe_double, store_newfpe_extended, store_fpregister)
9587 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
9588
9589 2002-02-22 Jim Blandy <jimb@redhat.com>
9590
9591 Indicate that the bcache functions don't change the strings
9592 they're passed.
9593 * bcache.h (bcache, hash): Add `const' keywords to declarations.
9594 * bcache.c (bcache, hash): Add `const' keywords to definitions.
9595
9596 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
9597
9598 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
9599
9600 2002-02-21 Christopher Faylor <cgf@redhat.com>
9601
9602 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
9603 find the complete path to a loaded DLL.
9604
9605 2002-02-21 Fred Fish <fnf@redhat.com>
9606
9607 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
9608 that marks the end of the range of a function, enter a line number
9609 entry that has a line number of zero and a PC offset that matches
9610 the end of the function. This starts a range of PC's for which no
9611 line number information is known.
9612 * symtab.c (find_pc_sect_line): If our best fit is in a range of
9613 PC's for which no line number info is found (line number is zero)
9614 then we didn't find any valid line information.
9615 * symtab.h: Document use of zero line number entry.
9616
9617 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
9618
9619 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
9620 (have_ptrace_getvrregs): Define for run time checks.
9621 (gdb_vrregset_t): New type for Altivec register handling.
9622 (fetch_register, store_register): Fetch/store altivec register
9623 when needed.
9624 (fetch_altivec_register, store_altivec_register): New functions.
9625 (supply_vrregset, fill_vrregset): New functions.
9626 (fetch_altivec_registers, store_altivec_registers): New functions.
9627 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
9628 registers as well.
9629
9630 2002-02-21 Jiri Smid <smid@suse.cz>
9631
9632 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
9633
9634 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
9635
9636 * Makefile.in (armnbsd-nat.o): Update dependencies.
9637 * armnbsd-nat.c (supply_gregset): New function. Common code to
9638 supply the integer register set.
9639 (supply_fparegset): New function. Similar for FPA registers.
9640 (fetch_regs, fetch_fp_regs): Use them.
9641 (fetch_core_registers): Likewise.
9642 (fetch_elfcore_registers): New function.
9643 (arm_netbsd_elfcore_fns): New core-file type specification.
9644 (_initialize_arm_netbsd_nat): Register it.
9645
9646 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
9647
9648 * armnbsd-nat.c: Include gdbcore.h.
9649 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
9650 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
9651 'void' to declaration, to shut up ARI.
9652 (fetch_core_registers): Make static. Rewrite using supply_register.
9653 (arm_netbsd_core_fns): New core-file type specification.
9654 (_initialize_arm_netbsd_nat): New function.
9655
9656 2002-02-21 Christopher Faylor <cgf@redhat.com>
9657
9658 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
9659 value.
9660
9661 2002-02-20 Christopher Faylor <cgf@redhat.com>
9662
9663 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
9664 fails.
9665
9666 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9667
9668 * jv-exp.y (parse_number): Change type of implicit longs
9669 to builtin_type_uint64.
9670
9671 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9672
9673 * gdbserver/linux-low.c (mywait): Change argument to waitpid
9674 to be an integer instead of a `union wait'.
9675
9676 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9677
9678 * mips-linux-nat.c: Call the operating system GNU/Linux.
9679 * mips-linux-tdep.c: Likewise.
9680 * mips-tdep.c: Likewise.
9681
9682 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9683
9684 Fix PR gdb/265.
9685 * jv-exp.y (parse_number): Handle 64-bit integers.
9686
9687 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9688
9689 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
9690 AC_STDC_HEADERS to AC_HEADER_STDC.
9691 * gdbserver/configure: Regenerated.
9692
9693 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
9694
9695 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
9696 is defined.
9697 * sparc-tdep.c (get_longjmp_target): Likewise.
9698
9699 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
9700
9701 * News: Add news about ARM and Multi-arch. Mention the new target
9702 arm*-*-netbsd*.
9703
9704 2002-02-19 Jim Blandy <jimb@redhat.com>
9705
9706 * stabsread.c (error_type_complaint): Improve error message.
9707
9708 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
9709
9710 * gdbserver/README: Update documentation.
9711 * gdbserver/configure.in: Update configury to match documentation.
9712 * gdbserver/Makefile.in: Likewise.
9713 * gdbserver/configure: Regenerated.
9714 * gdbserver/aclocal.m4: New file, generated by aclocal.
9715 * gdbserver/config.in: New file, generated by autoheader.
9716
9717 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9718
9719 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
9720 armnbsd-nat.c.
9721
9722 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9723
9724 * arm-tdep.h (enum arm_float_model): New enum.
9725 (struct gdbarch_tdep): Add fp_model.
9726 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
9727 up floating-point conversions until we know the floating-point model
9728 in use by the inferior. Don't complain about being unable to
9729 determine the ABI of the inferior when we don't have one.
9730 (arm_extract_return_value): Support different floating-point models.
9731 (arm_store_return_value): Likewise.
9732 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
9733 ARM_FLOAT_SOFT.
9734 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
9735
9736 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9737
9738 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
9739 of ``current_gdbarch''.
9740
9741 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9742
9743 * armnbsd-nat.c : ANSIfy all function declarations.
9744 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
9745 (fetch_inferior_registers): Re-implement in terms of above.
9746 (store_register, store_regs, store_fp_register, store_fp_regs): New.
9747 (store_inferior_registers): Re-implement in terms of above.
9748
9749 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9750
9751 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
9752 kernel.
9753 * arm-linux-tdep.c: Likewise.
9754 * config/arm/tm-linux.h: Likewise.
9755
9756 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9757
9758 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
9759 * config/arm/nbsd.mt (TM_FILE): Delete.
9760 * config/arm/tm-nbsd.h: Delete.
9761
9762 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9763
9764 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
9765 Initialize CALL_DUMMY_LENGTH.
9766
9767 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9768
9769 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
9770 function.
9771 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
9772 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
9773 defines one thing and that is incorrect for this port.
9774 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
9775
9776 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9777
9778 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
9779
9780 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9781
9782 * win32-nat.c (display_selector): New function. Displays information
9783 about the information returned by GetThreadSelectorEntry API function.
9784 (display_selectors): New function. Displays the infomation of
9785 the selector given as argument, or of CS, DS ans FS selectors
9786 if no argument is given.
9787 ( _initialize_inftarg): Add "w32" as info prefix command.
9788 Add "info w32 selector" as command calling display_selectors.
9789
9790 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
9791
9792 * i386-tdep.c (get_longjmp_target): Fix compilation failure
9793 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
9794 if not defined.
9795
9796 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
9797
9798 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
9799
9800 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
9801
9802 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
9803 (arm_fix_call_dummy): Call it.
9804 (arm_call_dummy_breakpoint_offset): Delete.
9805 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
9806 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
9807
9808 2002-02-18 Andrew Cagney <ac131313@redhat.com>
9809
9810 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
9811 Default to func_frame_chain_valid.
9812 * gdbarch.h, gdbarch.c: Re-generate.
9813 * frame.h (FRAME_CHAIN_VALID): Delete definition.
9814
9815 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
9816
9817 * ppc-linux-nat.c: Update copyright.
9818 (fetch_register, store_register): Add tid parameter, don't compute
9819 tid here.
9820 (fetch_ppc_registers, store_ppc_registers): Add tid
9821 parameter. Pass it along to callees.
9822 (fetch_inferior_registers, store_inferior_registers): Compute tid
9823 here, and pass it to calleed functions.
9824 (fill_gregset, supply_fpregset): Clean up formatting.
9825
9826 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
9827
9828 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
9829 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
9830
9831 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
9832
9833 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
9834 * gdbarch.c gdbarch.h: Regenerate.
9835 * breakpoint.c (create_longjmp_breakpoint): Always compile this
9836 function.
9837 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
9838 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
9839 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
9840
9841 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
9842 * arm-tdep.c (arm_get_longjmp_target): New function.
9843 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
9844 this to a positive value register arm_get_longjmp_target as the
9845 longjmp handler.
9846 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
9847 (arm_linux_init_abi): Set up longjmp description in tdep.
9848 * armnbsd-nat.c (get_longjmp_target): Delete.
9849 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
9850 description in tdep.
9851 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
9852 (get_longjmp_target): Delete declaration.
9853 (GET_LONGJMP_TARGET): Delete.
9854 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
9855 (GET_LONGJMP_TARGET): Delete.
9856
9857 2002-02-17 Kevin Buettner <kevinb@redhat.com>
9858
9859 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
9860 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
9861 of ``current_gdbarch''.
9862
9863 2002-02-17 Tom Tromey <tromey@redhat.com>
9864
9865 * cli/cli-cmds.c (compare_strings): New function.
9866 (complete_command): Only print each unique item once.
9867 * completer.h (complete_line): Declare.
9868 * completer.c (complete_line): New function.
9869 (line_completion_function): Use it.
9870
9871 2002-02-16 Andrew Cagney <ac131313@redhat.com>
9872
9873 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
9874 * gdbarch.h, gdbarch.c: Re-generate.
9875
9876 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
9877
9878 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
9879
9880 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
9881
9882 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
9883 * valops.c (value_arg_coerce): Don't take the address of a reference
9884 to convert an argument to a reference.
9885
9886 2002-02-15 Christopher Faylor <cgf@redhat.com>
9887
9888 * win32-nat.c (get_image_name): New function.
9889 (handle_load_dll): Use get_image_name function.
9890 (get_child_debug_event): Avoid registering debug events until possibly
9891 execed process is started.
9892 (child_create_inferior): Allow invocation via shell so that command
9893 line redirection, etc. works ok.
9894 (_initialize_inftarg): Add new command: "set shell" to control whether
9895 a shell is used to start a process.
9896
9897 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
9898
9899 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
9900 instead of find_register_by_number.
9901 (cannot_store_register): Likewise.
9902
9903 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
9904
9905 * dwarf2read.c: Replace fprintf (stderr, ...) by
9906 fprintf_unfiltered (gdb_stderr, ...).
9907
9908 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
9909
9910 * gdbserver/gdbserver.1: Document --attach.
9911
9912 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
9913
9914 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
9915 descriptions.
9916 * arm-tdep.c (arm_default_arm_le_breakpoint)
9917 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
9918 (arm_default_thumb_be_breakpoint): New. Initialize them from
9919 traditional breakpoint defines.
9920 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
9921 (arm_gdbarch_init): Initialize new breakpoint variables.
9922 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
9923 (arm_linux_init_abi): Initialize linux-specific breakpoint.
9924 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
9925 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
9926 code out to ...
9927 (arm_netbsd_init_abi_common): ... here; new function.
9928 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
9929 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
9930 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
9931 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
9932
9933 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
9934
9935 * arm-tdep.h (enum arm_abi): New enum.
9936 (struct gdbarch_tdep): New structure.
9937 (LOWEST_PC): Provide a default.
9938 (arm_gdbarch_register_os_abi): Declare new function.
9939 * arm-tdep.c (arm_abi_names): New array.
9940 (process_note_abi_tag_sections): New function.
9941 (get_elfosabi): New function.
9942 (arm_gdbarch_register_os_abi): New function.
9943 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
9944 support for that ABI has been built in, then call the appropriate
9945 configuration routine. Use gdbarch_num_regs() to get the number
9946 of registers.
9947 (arm_dump_tdep): New function.
9948 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
9949 place-holder functions.
9950 (_initialize_arm_tdep): Register them.
9951 * config/arm/tm-arm.h (LOWEST_PC): Delete.
9952
9953 * armnbsd-tdep.c: New file.
9954 * Makefile.in (armnbsd-tdep.o): Add dependencies.
9955 * config/arm/nbsd.mt (TDEPFILES): Add it.
9956 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
9957
9958 * armnbsd-nat.c: Include regcache.h.
9959 * Makefile.in (armnbsd-nat.o): Update dependency list.
9960
9961 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
9962
9963 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9964
9965 * gdbserver/Makefile.in: Fix typos in target rules.
9966
9967 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9968
9969 Fix part of PR gdb/267.
9970 * linespec.c (find_methods): Handle constructors specially for now.
9971
9972 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
9973
9974 * arm-tdep.c (arm_push_arguments): Eliminate special float type
9975 handling.
9976 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
9977 standard_coerce_float_to_double().
9978
9979 2002-02-14 Christopher Faylor <cgf@redhat.com>
9980
9981 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
9982 GDBINIT_FILENAME.
9983
9984 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
9985
9986 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
9987 find_variant_by_name, because it confuses the multiarch
9988 framework. Return NULL if there isn't an architecture with the
9989 user supplied name, instead of forcing a different one without
9990 recording the change with the multiarch machinery.
9991 (find_variant_by_name): Delete.
9992
9993 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9994
9995 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
9996 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
9997
9998 2002-02-13 Martin M. Hunt <hunt@redhat.com>
9999
10000 * stack.c (print_frame_info_base): When calling
10001 print_frame_info_listing_hook, set current_source_symtab.
10002
10003 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
10004
10005 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
10006 and remove unused $(INCLUDE_DIR).
10007 Add regcache.c to OBS.
10008 Add generated register protocol files to clean target.
10009 Update dependencies for new objects, obsolete old target code.
10010
10011 * gdbserver/linux-low.c: Remove all platform-specific code to
10012 new files. Remove various dead code. Update to use regcache
10013 functionality.
10014 * gdbserver/remote-utils.c (fromhex): Add return statement
10015 to quiet warning.
10016 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
10017 constant.
10018 (input_interrupt): Add integer parameter to match prototype
10019 of a signal handler.
10020 (outreg): Use register_data ().
10021 (prepare_resume_reply): Use gdbserver_expedite_regs.
10022 * gdbserver/server.c (main): Dynamically allocate own_buf because
10023 PBUFSIZ is no longer constant. Use registers_to_string () and
10024 registers_from_string ().
10025 * gdbserver/server.h: No longer include "defs.h". Add prototypes
10026 for error (), fatal (), and warning (). Update definition of
10027 PBUFSIZ to use regcache functionality. Add include guard.
10028 * gdbserver/utils.c (fatal): Add missing ``const''.
10029 (warning): New function.
10030
10031 * regformats/regdat.sh: Include "regcache.h" in generated files.
10032 Provide init_registers () function.
10033 * regformats/regdef.h: Add prototype for set_register_cache ().
10034 Add include guard.
10035
10036 * gdbserver/linux-arm-low.c: New file.
10037 * gdbserver/linux-i386-low.c: New file.
10038 * gdbserver/linux-ia64-low.c: New file.
10039 * gdbserver/linux-m68k-low.c: New file.
10040 * gdbserver/linux-mips-low.c: New file.
10041 * gdbserver/linux-ppc-low.c: New file.
10042 * gdbserver/linux-sh-low.c: New file.
10043
10044 * gdbserver/regcache.c: New file.
10045 * gdbserver/regcache.h: New file.
10046
10047 * gdbserver/low-linux.c: Removed obsolete file.
10048
10049 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
10050
10051 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
10052 * config/i386/linux.mt: Likewise.
10053 * config/ia64/linux.mt: Likewise.
10054 * config/m68k/linux.mh: Likewise.
10055 * config/powerpc/linux.mh: Likewise.
10056 * config/mips/linux.mt: Likewise.
10057
10058 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
10059
10060 * config/i386/i386lynx.mh: Mark gdbserver variables
10061 as (currently) obsolete for this target.
10062 * config/i386/nbsd.mt: Likewise.
10063 * config/i386/nbsdelf.mt: Likewise.
10064 * config/m32r/m32r.mt: Likewise.
10065 * config/m68k/m68klynx.mh: Likewise.
10066 * config/m68k/nbsd.mt: Likewise.
10067 * config/m68k/sun3os4.mh: Likewise.
10068 * config/mips/vr5000.mt: Likewise.
10069 * config/ns32k/nbsd.mt: Likewise.
10070 * config/pa/hppabsd.mh: Likewise.
10071 * config/pa/hppaosf.mh: Likewise.
10072 * config/powerpc/nbsd.mt: Likewise.
10073 * config/rs6000/rs6000lynx.mh: Likewise.
10074 * config/s390/s390.mt: Likewise.
10075 * config/s390/s390x.mt: Likewise.
10076 * config/sparc/sparclynx.mh: Likewise.
10077 * config/sparc/sun4os4.mh: Likewise.
10078 * config/i386/x86-64linux.mt: Likewise.
10079 * config/sparc/linux.mh: Likewise.
10080
10081 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
10082
10083 * configure.tgt: Configure gdbserver only for known working
10084 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
10085 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
10086 SUBDIRS if it is configured. Update comment for ${nativefile}.
10087 * configure: Regenerated.
10088
10089 2002-02-13 Michael Snyder <msnyder@redhat.com>
10090
10091 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
10092
10093 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
10094 (default_gcore_mach): Just return 0, work around a problem in bfd.
10095 (default_gcore_target): OK to return NULL if exec_bfd is null.
10096 (make_mem_sec): Use a cast, avoid a warning.
10097
10098 * procfs.c (find_memory_regions_callback): Use a cast instead of
10099 calling host_pointer_to_address (which complains if
10100 sizeof (host pointer) != sizeof (target pointer)).
10101 (procfs_make_note_section): Avoid overflow in psargs string.
10102
10103 * procfs.c (procfs_make_note_section): Make the default
10104 implementation return an error.
10105
10106 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
10107
10108 * procfs.c (procfs_make_note_section): Provide a default definition
10109 (for alpha-dec-osf4.0f). Fix typos.
10110
10111 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
10112
10113 * linux-proc.c: Add include of regcache.h.
10114 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
10115
10116 2002-02-13 Andrew Cagney <ac131313@redhat.com>
10117
10118 From 2002-01-18 Greg McGary <greg@mcgary.org>:
10119 * memattr.c (create_mem_region): Disallow useless empty region.
10120 Regions are half-open intervals, so allow [A..B) [B..C) as
10121 non-overlapping.
10122
10123 2002-02-13 Michael Chastain <mec@shout.net>
10124
10125 * defs.h: Kill CONST_PTR.
10126 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
10127 * c-lang.c (c_builtin_types): Likewise.
10128 * ch-lang.c (ch_builtin_types): Likewise.
10129 * f-lang.c (f_builtin_types): Likewise.
10130 * language.c (unknown_builtin_types): Likewise.
10131 * m2-lang.c (m2_builtin_types): Likewise.
10132 * p-lang.c (pascal_builtin_types): Likewise.
10133 * scm-lang.c (c_builtin_types): Likewise.
10134
10135 2002-02-13 Keith Seitz <keiths@redhat.com>
10136
10137 * arm-tdep.h (arm_get_next_pc): Add declaration.
10138
10139 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
10140
10141 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
10142 with other related struct-returning functions.
10143 (arm_extract_struct_value_address): New function.
10144 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
10145 initialize float_format, double_format and long_double_format as
10146 appropriate to the endianness of the target.
10147 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
10148 (arm_use_struct_convention): Delete declaration.
10149 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
10150
10151 2002-02-13 Keith Seitz <keiths@redhat.com>
10152
10153 * defs.h (core_addr_to_string_nz): New function.
10154
10155 2002-02-13 Mark Kettenis <kettenis@gnu.org>
10156
10157 Apply missing bits of 2002-01-15 patch.
10158 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
10159 (fill_fpregset): Use i387_fill_fsave.
10160
10161 2002-02-12 Keith Seitz <keiths@redhat.com>
10162
10163 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
10164 (core_addr_to_string_nz): New function.
10165
10166 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
10167
10168 * arm-linux-nat.c: Really include arm-tdep.h.
10169 * config/arm/tm-linux.h (struct type, struct value): Declare.
10170
10171 2002-02-11 Michael Snyder <msnyder@redhat.com>
10172
10173 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
10174 (gcore section): Ifdef for Solaris and Unixware only.
10175 (procfs_do_thread_registers): Unixware needs one lwpstatus
10176 per thread (not one prstatus or pstatus).
10177 (procfs_make_note_section): Iterate only over kernel threads (lwps),
10178 not over all gdb threads. For unixware, call elfcore_write_pstatus
10179 once before iterating over threads.
10180
10181 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
10182
10183 * arm-tdep.h: New file.
10184 * arm-tdep.c: Include arm-tdep.h.
10185 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
10186 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
10187 (arm_print_float_info, arm_register_type, convert_to_extended)
10188 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
10189 (arm_extract_return_value, arm_register_name): Make static.
10190 (arm_software_single_step): Similarly. Fix types in declaration.
10191 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
10192 (arm_store_return_value, arm_store_struct_return): New functions.
10193 (arm_gdbarch_init): Register the above functions. Also register
10194 call_dummy_start_offset, sizeof_call_dummy_words,
10195 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
10196 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
10197 max_register_virtual_size, register_size. Set up
10198 prologue_cache.saved_regs here, rather than ...
10199 (_initialize_arm_tdep): ... here.
10200 * config/arm/tm-arm.h (struct type, struct value): Delete forward
10201 declarations.
10202 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
10203 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
10204 (arm_print_float_info, arm_register_type, convert_to_extended)
10205 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
10206 (arm_extract_return_value, arm_register_name): Delete declarations.
10207 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
10208 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
10209 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
10210 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
10211 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
10212 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
10213 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
10214 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
10215 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
10216 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
10217 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
10218 (arm_get_next_pc): No-longer static -- these are needed by the RDI
10219 interface.
10220 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
10221 * remote-rdi.c remote-rdp.c: Likewise.
10222 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
10223 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
10224 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
10225 definition.
10226
10227 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
10228 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
10229 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
10230 from non-ARM_ prefixed definitions.
10231 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
10232 all uses of above.
10233 * remote-rdi.c remote-rdp.c: Likewise.
10234 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
10235
10236 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
10237
10238 * arm-tdep.c (arm_frameless_function_invocation)
10239 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
10240 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
10241 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
10242 (arm_pop_frame, arm_get_next_pc): Make static.
10243 (arm_gdbarch_init): Register above in gdbarch structure.
10244 (arm_read_fp): Renamed from arm_target_read_fp.
10245 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
10246 * config/arm/tm-arm.h (arm_frameless_function_invocation)
10247 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
10248 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
10249 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
10250 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
10251 (arm_pc_is_thumb_dummy): Delete declarations.
10252 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
10253 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
10254 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
10255 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
10256
10257 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
10258
10259 * symtab.c (compare_search_syms): New function.
10260 (sort_search_symbols): New function.
10261 (search_symbols): Sort symbols after searching rather than
10262 before.
10263
10264 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10265
10266 * NEWS: Linux -> GNU/Linux.
10267
10268 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10269
10270 * gdbarch.sh: For for level one methods, disallow a definition
10271 when partially multi-arched. Add comments explaining rationale.
10272 * gdbarch.h: Re-generate.
10273
10274 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10275
10276 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
10277 multi-arch partial.
10278
10279 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10280
10281 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
10282 field. Use diff -u.
10283 * gdbarch.c: Re-generate.
10284
10285 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10286
10287 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
10288 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
10289 partial.
10290
10291 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10292
10293 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
10294 multi-arch partial.
10295 (PUSH_ARGUMENTS): Switch to using predefault.
10296 * gdbarch.c: Regenerate.
10297
10298 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10299
10300 * valops.c (PUSH_ARGUMENTS): Delete definition.
10301 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
10302 partial. Default to default_push_arguments.
10303 * gdbarch.h, gdbarch.c: Regenerate.
10304
10305 2002-02-09 Andrew Cagney <ac131313@redhat.com>
10306
10307 * defs.h (throw_exception): Rename return_to_top_level. Update
10308 comments.
10309 * utils.c (error_stream, internal_verror, quit): Ditto.
10310 * top.c (throw_exception, catcher): Ditto.
10311 * sparclet-rom.c (sparclet_load): Ditto.
10312 * remote.c (interrupt_query, minitelnet): Ditto.
10313 * remote-sds.c (interrupt_query): Ditto.
10314 * remote-mips.c (mips_error, mips_kill): Ditto.
10315 * ocd.c (interrupt_query): Ditto.
10316 * monitor.c (monitor_interrupt_query): Ditto.
10317 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
10318 * target.h: Update comment.
10319
10320 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
10321
10322 2002-02-09 Andrew Cagney <ac131313@redhat.com>
10323
10324 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
10325 default_double_format.
10326 * gdbarch.h, gdbarch.c: Re-generate.
10327 * findvar.c (floatformat_unknown): Delete variable definition.
10328 * doublest.h (floatformat_unknown): Delete variable declaration.
10329
10330 2002-02-09 Jim Blandy <jimb@redhat.com>
10331
10332 * stabsread.c (read_type): Add code to parse Sun's syntax for
10333 prototyped function types.
10334
10335 2002-02-09 Andrew Cagney <ac131313@redhat.com>
10336
10337 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
10338 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
10339
10340 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10341
10342 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
10343 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
10344 now _initialize_xcoffsolib gets called again and overrides the
10345 commands from solib.c in a native configuration.
10346
10347 2002-02-09 Mark Kettenis <kettenis@gnu.org>
10348
10349 * doublest.c (store_typed_floating): Don't try to return a value.
10350 Fixes PR gdb/290.
10351
10352 2002-02-08 Jim Blandy <jimb@redhat.com>
10353
10354 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
10355 is prototyped and has no arguments, print its argument list as
10356 `(void)'.
10357
10358 2002-02-08 Chris Demetriou <cgd@broadcom.com>
10359
10360 * MAINTAINERS (write-after-approval): Add myself.
10361 (paper-trail): I've escaped!
10362
10363 2002-02-08 Christopher Faylor <cgf@redhat.com>
10364
10365 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
10366 changes.
10367 (_initialize_check_for_gdb_ini): Ditto.
10368
10369 2002-02-08 Martin M. Hunt <hunt@redhat.com>
10370
10371 * win32-nat.c (cygwin_pid_to_str): Fix typo.
10372 xaprintf -> xasprintf.
10373
10374 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
10375
10376 * win32-nat.c: Remove use of printf and sprintf functions.
10377
10378 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
10379
10380 * arm-tdep.c (arm_frame_chain_valid): Make static.
10381 (arm_push_arguments): Likewise.
10382 (arm_gdbarch_init): New function.
10383 (_initialize_arm_tdep): Call it.
10384 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
10385 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
10386 (FRAME_CHAIN_VALID): Delete.
10387 (arm_frame_chain_valid): Delete declaration.
10388 (PUSH_ARGUMENTS): Delete.
10389 (arm_push_arguments): Delete declaration.
10390 (CALL_DUMMY_P): Delete.
10391
10392 2002-02-08 Andrew Cagney <ac131313@redhat.com>
10393 Corinna Vinschen <vinschen@redhat.com>
10394
10395 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
10396 on builtin float types.
10397
10398 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
10399
10400 * utils.c: Include <curses.h> before "bfd.h".
10401 * tui/tui-hooks.c: Likewise.
10402 * tui/tui.c: Likewise.
10403 * tui/tuiCommand.c: Likewise.
10404 * tui/tuiData.c: Likewise.
10405 * tui/tuiDataWin.c: Likewise.
10406 * tui/tuiDisassem.c: Likewise.
10407 * tui/tuiGeneralWin.c: Likewise.
10408 * tui/tuiIO.c: Likewise.
10409 * tui/tuiLayout.c: Likewise.
10410 * tui/tuiRegs.c: Likewise.
10411 * tui/tuiSource.c: Likewise.
10412 * tui/tuiSourceWin.c: Likewise.
10413 * tui/tuiStack.c: Likewise.
10414 * tui/tuiWin.c: Likewise.
10415
10416 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
10417
10418 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
10419 to include space for pseudoregs as well. Update loops accordingly.
10420 (sh_fp_frame_init_saved_regs): Ditto.
10421 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
10422
10423 2002-02-07 Andrew Cagney <ac131313@redhat.com>
10424
10425 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
10426 Add Richard Earnshaw to Arm maintainers.
10427
10428 2002-02-07 Andrew Cagney <ac131313@redhat.com>
10429
10430 * defs.h (warning_begin): Delete declaration.
10431
10432 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
10433 Delete macro.
10434
10435 2002-02-07 Michael Snyder <msnyder@redhat.com>
10436
10437 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
10438 Logic bug, remove misplaced else.
10439
10440 2002-02-07 Klee Dienes <klee@apple.com>
10441
10442 * fork-inferior.c (fork_inferior): Add '!' to the list of
10443 characters that need to be quoted when building a string for the
10444 shell. Quote '!' specifically with a backslash, since CSH chokes
10445 when trying to evaluate "str!str".
10446
10447 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
10448
10449 * rdi-share/host.h: Only provide a typedef for bool if it is not
10450 defined.
10451
10452 2002-02-04 Michael Snyder <msnyder@redhat.com>
10453
10454 * breakpoint.h (enum bptype): Add new overlay event bp type.
10455 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
10456
10457 * breakpoint.c (create_internal_breakpoint): New function.
10458 (internal_breakpoint_number): Moved into create_internal_breakpoint.
10459 (create_longjmp_breakpoint): Use create_internal_breakpoint.
10460 (create_thread_event_breakpoint): Ditto.
10461 (create_solib_event_breakpoint): Ditto.
10462 (create_overlay_event_breakpoint): New function.
10463 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
10464 (update_breakpoints_after_exec): Delete and re-initialize
10465 overlay event breakpoints after an exec. Add FIXME comment
10466 about longjmp breakpoint.
10467 (print_it_typical): Ignore overlay event breakpoints.
10468 (print_one_breakpoint): Ditto.
10469 (mention): Ditto.
10470 (bpstat_what): Do not stop for overlay event breakpoints.
10471 (delete_breakpoint): Don't delete overlay event breakpoints.
10472 (breakpoint_re_set_one): Delete the overlay event breakpoint.
10473 (breakpoint_re_set): Re-create overlay event breakpoint.
10474
10475 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
10476 (overlay_manual_command): Disable overlay breakpoints.
10477 (overlay_off_command): Disable overlay breakpoints.
10478
10479 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
10480
10481 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
10482 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
10483 to here from config/tm-arm.h.
10484 (coff_sym_is_thumb): Make static.
10485 (arm_elf_make_msymbol_special): New function.
10486 (arm_coff_make_msymbol_special): New function.
10487 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
10488 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
10489 (coff_sym_is_thumb): Delete declaration.
10490 (arm_elf_make_msymbol_special): Declare.
10491 (arm_coff_make_msymbol_special): Declare.
10492 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
10493 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
10494
10495 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
10496
10497 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
10498
10499 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
10500
10501 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
10502 * gdbarch.c gdbarch.h: Regenerate.
10503 * arch-utils.c (default_print_float_info): New function.
10504 * arch-utils.h (default_print_float_info): Prototype it.
10505 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
10506 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
10507 (PRINT_FLOAT_INFO): Document it.
10508
10509 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
10510 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
10511 (PRINT_FLOAT_INFO): Define.
10512
10513 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
10514
10515 * win32-nat.c (_initialize_check_for_gdb_ini):
10516 Add typecast to sprintf argument to suppress a warning.
10517
10518 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
10519
10520 * win32-nat.c (last_sig): Changed type of variable to target_signal,
10521 to allow easier handling of pass state.
10522 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
10523 that gives exception name and address.
10524 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
10525 and set last_sig value to ourstatus->value.sig. Some missing
10526 exceptions added.
10527 (child_continue): Correctly report continue_status.
10528 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
10529 TARGET_SIGNAL_0 (new default value).
10530 (child_resume): consider sig argument passed to decide if
10531 the exception should be passed to debuggee or not.
10532
10533 2002-02-05 Michael Snyder <msnyder@redhat.com>
10534
10535 * regcache.c (fetch_register): Call target_fetch_register
10536 only if we don't call FETCH_PSEUDO_REGISTER.
10537 (store_register): Call target_store_register only if we
10538 don't call STORE_PSEUDO_REGISTER.
10539
10540 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
10541
10542 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
10543 ELF_MAKE_MSYMBOL_SPECIAL.
10544 * gdbarch.c, gdbarch.h: Regenerate.
10545 * arch-utils.c (default_make_msymbol_special): New function.
10546 * arch-utils.h (default_make_msymbol_special): Export.
10547 * elfread.c (elf_symtab_read): Compile use of
10548 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
10549 multiarched.
10550 * coffread.c (coff_symtab_read): Ditto, for
10551 COFF_MAKE_MSYMBOL_SPECIAL.
10552
10553 2002-02-05 Jim Blandy <jimb@redhat.com>
10554
10555 * solib-svr4.c (svr4_truncate_ptr): New function.
10556 (svr4_relocate_section_addresses): Do the address arithmetic with
10557 the appropriate truncation for target addresses, even when
10558 CORE_ADDR is larger than a target address.
10559
10560 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10561
10562 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
10563 to (int *).
10564
10565 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10566
10567 * gdbserver/linux-low.c (kill_inferior): Remove commented out
10568 code.
10569
10570 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10571
10572 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
10573
10574 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10575
10576 * gdbserver/linux-low.c: Remove unused include files.
10577
10578 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10579
10580 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
10581 (read_inferior_memory): Use it.
10582 (write_inferior_memory): Likewise.
10583
10584 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10585
10586 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
10587 grubbing through sys_errlist.
10588
10589 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10590
10591 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
10592
10593 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
10594 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
10595
10596 2002-02-04 Andrew Cagney <ac131313@redhat.com>
10597
10598 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
10599 (do_sfunc, set_cmd_sfunc): New functions.
10600
10601 * command.h (struct cmd_list_element): Add field func.
10602 * cli/cli-decode.h (struct cmd_list_element): Ditto.
10603 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
10604 * cli/cli-decode.h: Ditto.
10605
10606 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
10607 (help_all, help_cmd_list): Ditto.
10608 (find_cmd, complete_on_cmdlist): Ditto.
10609 * top.c (execute_command): Ditto.
10610
10611 * cli/cli-setshow.c (do_setshow_command): Call func instead of
10612 function.sfunc.
10613
10614 * infcmd.c (notice_args_read): Fix function signature.
10615
10616 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
10617 * cli/cli-decode.c (add_set_cmd): Ditto.
10618 * utils.c (initialize_utils): Ditto.
10619 * maint.c (_initialize_maint_cmds): Ditto.
10620 * infrun.c (_initialize_infrun): Ditto.
10621 * demangle.c (_initialize_demangler): Ditto.
10622 * remote.c (add_packet_config_cmd): Ditto.
10623 * mips-tdep.c (_initialize_mips_tdep): Ditto.
10624 * cris-tdep.c (_initialize_cris_tdep): Ditto.
10625 * proc-api.c (_initialize_proc_api): Ditto.
10626 * kod.c (_initialize_kod): Ditto.
10627 * valprint.c (_initialize_valprint): Ditto.
10628 * top.c (init_main): Ditto.
10629 * infcmd.c (_initialize_infcmd): Ditto.
10630 * corefile.c (_initialize_core): Ditto.
10631 * arm-tdep.c (_initialize_arm_tdep): Ditto.
10632 * arch-utils.c (initialize_current_architecture): Ditto.
10633 (_initialize_gdbarch_utils): Ditto.
10634 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
10635
10636 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
10637 * wince.c (_initialize_inftarg): Ditto.
10638 * symfile.c (_initialize_symfile): Ditto.
10639 * mips-tdep.c (_initialize_mips_tdep): Ditto.
10640 * language.c (_initialize_language): Ditto.
10641 * arc-tdep.c (_initialize_arc_tdep): Ditto.
10642
10643 2002-02-04 Michael Snyder <msnyder@redhat.com>
10644
10645 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
10646
10647 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
10648
10649 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
10650 Add rules for building the register data files.
10651
10652 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
10653
10654 * regformats/regdat.sh: Add braces to the definition of
10655 expedite_regs_${arch}.
10656
10657 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
10658
10659 * regformats/regdef.h (struct reg): Add comment describing the
10660 requirements for offset and size fields.
10661
10662 2002-02-04 Andreas Schwab <schwab@suse.de>
10663
10664 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
10665 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
10666
10667 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
10668
10669 * gdbarch.sh (copyright): Update years in generated header.
10670 (SMASH_TEXT_ADDRESS): Add rule.
10671 * gdbarch.h, gdbarch.c: Re-generate.
10672 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
10673 * dbxread.c: Likewise.
10674 * dwarfread.c: Likewise.
10675 * elfread.c: Likewise.
10676 * somread.c: Likewise.
10677
10678 * arm-tdep.c (arm_smash_text_address): New function.
10679 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
10680
10681 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
10682
10683 Add support for hardware watchpoints on win32 native.
10684 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
10685 CONTEXT_DEBUG_REGISTERS.
10686 (dr variable): New variable. Static array containing a local copy
10687 of debug registers.
10688 (debug_registers_changed): New variable. Reflects when debug registers
10689 are changed and need to be written to inferior.
10690 (debug_registers_used): New variable. Reflects when any debug register
10691 was set, used when new threads are created.
10692 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
10693 i386-nat code.
10694 (thread_rec): Set dr array if id is the thread of current_event .
10695 (child_continue, child_resume): Change the debug registers for all
10696 threads if debug_registers_changed.
10697 (child_add_thread): Change the debug registers if debug_registers_used.
10698 * config/i386/cygwin.mh: Add use of i386-nat.o file.
10699 Link nm.h to new nm-cygwin.h file.
10700 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
10701 of hardware registers.
10702
10703 2002-02-03 Andrew Cagney <ac131313@redhat.com>
10704
10705 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
10706 Restore behavour broken by 2002-01-20 Andrew Cagney
10707 <ac131313@redhat.com> IEEE_FLOAT removal.
10708
10709 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
10710
10711 * c-valprint.c (c_val_print): Pass a proper valaddr to
10712 cp_print_class_method.
10713 * valops.c (search_struct_method): If there is only one method
10714 and args is NULL, return that method.
10715
10716 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
10717
10718 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
10719 accessing tag_name directly.
10720
10721 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
10722
10723 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
10724 of accessing tag_name directly.
10725
10726 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
10727
10728 PR gdb/280
10729 * gdbtypes.c (replace_type): New function.
10730 * gdbtypes.h (replace_type): Add prototype.
10731 * stabsread.c (read_type): Use replace_type.
10732
10733 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
10734
10735 * Makefile.in (memattr.o): Add missing dependencies rule.
10736
10737 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10738
10739 * breakpoint.c (break_at_finish_command): Really export.
10740 (break_at_finish_at_depth_command): Ditto.
10741 (tbreak_at_finish_command): Ditto.
10742 * hppa-tdep.c: Include completer.h.
10743 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
10744 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
10745
10746 2002-02-01 Andrew Cagney <ac131313@redhat.com>
10747
10748 * utils.c (do_write): New function.
10749 (error_stream): Rewrite combining the code from error_begin and
10750 verror.
10751 (verror): Rewrite using error_stream.
10752 (error_begin): Delete function.
10753
10754 2002-02-01 Andrew Cagney <ac131313@redhat.com>
10755
10756 * utils.c (error_begin): Make static.
10757 * defs.h (error_begin): Delete declaration.
10758
10759 * linespec.c (cplusplus_error): Replace cplusplus_hint.
10760 (decode_line_1): Use cplusplus_error instead of error_begin,
10761 cplusplus_hint and return_to_top_level.
10762 * coffread.c (coff_symfile_read): Use error instead of error_begin
10763 and return_to_top_level.
10764 * infrun.c (default_skip_permanent_breakpoint): Ditto.
10765
10766 2002-02-01 Andrew Cagney <ac131313@redhat.com>
10767
10768 * language.h (type_error, range_error): Make string parameter
10769 constant.
10770 * language.c (warning_pre_print): Delete extern declaration.
10771 * dwarfread.c (warning_pre_print): Ditto.
10772 * language.c (type_error, range_error): Rewrite to use verror and
10773 vwarning instead of warning_begin.
10774
10775 2002-02-01 Michael Snyder <msnyder@redhat.com>
10776
10777 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
10778 (set_ignore_count): Move misplaced comment back where it belongs.
10779
10780 2002-02-01 Andrew Cagney <ac131313@redhat.com>
10781
10782 * command.h (NO_FUNCTION): Delete macro.
10783 * cli/cli-decode.h (NO_FUNCTION): Ditto.
10784 * top.c (execute_command): Replace NO_FUNCTION with NULL.
10785 * tracepoint.c (_initialize_tracepoint): Ditto.
10786 * cli/cli-decode.c (add_set_cmd): Ditto.
10787 * cli/cli-cmds.c (init_cli_cmds): Ditto.
10788
10789 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
10790
10791 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
10792 Update ``this'' pointer when calling virtual functions.
10793
10794 2002-02-01 Michael Snyder <msnyder@redhat.com>
10795
10796 * breakpoint.c (create_temp_exception_breakpoint): Delete.
10797 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
10798
10799 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
10800
10801 * regformats/reg-arm.dat: New file.
10802 * regformats/reg-i386.dat: New file.
10803 * regformats/reg-ia64.dat: New file.
10804 * regformats/reg-m68k.dat: New file.
10805 * regformats/reg-mips.dat: New file.
10806 * regformats/reg-ppc.dat: New file.
10807 * regformats/reg-sh.dat: New file.
10808 * regformats/regdef.h: New file.
10809 * regformats/regdat.sh: New file.
10810
10811 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
10812
10813 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
10814 (arm_frame_args_address, arm_frame_locals_address): New functions.
10815 (arm_frame_num_args): New function.
10816 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
10817 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
10818 (FRMA_NUM_ARGS): Call arm_frame_num_args.
10819
10820 2002-01-31 Michael Snyder <msnyder@redhat.com>
10821
10822 * breakpoint.c (break_at_finish_command): Export.
10823 (break_at_finish_at_depth_command): Export.
10824 (tbreak_at_finish_command): Export.
10825 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
10826 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
10827 "txbreak" commands, which are HPPA specific.
10828
10829 * printcmd.c (disassemble_command): Remove an ancient
10830 artifact of an old merge.
10831
10832 * symfile.h (enum overlay_debugging_state):
10833 Define enum constant values for overlay mode.
10834 * symfile.c (overlay_debugging): Use enums instead of literals.
10835 (overlay_is_mapped, overlay_auto_command,
10836 overlay_manual_command): Ditto.
10837
10838 * breakpoint.c (insert_breakpoints, remove_breakpoint,
10839 breakpoint_here_p, breakpoint_inserted_here_p,
10840 breakpoint_thread_match, bpstat_stop_status,
10841 describe_other_breakpoints, check_duplicates, clear_command):
10842 Coding standard fixes.
10843
10844 * target.c (target_xfer_memory): Add spaces, coding standard.
10845 (do_xfer_memory): Add missing line to trust-readonly
10846 code: check bfd SEC_READONLY flag for section.
10847
10848 2002-01-31 Andrew Cagney <ac131313@redhat.com>
10849
10850 * PROBLEMS: Fix typo, 5.1->5.1.1.
10851
10852 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
10853
10854 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
10855 data symbols, since we search based on textlow and texthigh.
10856 (find_pc_sect_symtab): Likewise.
10857
10858 2002-01-30 Andrew Cagney <ac131313@redhat.com>
10859
10860 * defs.h (vwarning): Declare.
10861 * utils.c (vwarning): New function.
10862 (warning): Call vwarning.
10863 (warning_begin): Delete function.
10864
10865 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
10866 the warning message.
10867 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
10868 warning_begin.
10869
10870 2002-01-30 Michael Snyder <msnyder@redhat.com>
10871
10872 * NEWS: Mention "set trust-readonly-sections" command.
10873 Mention generate-core-file command.
10874
10875 2002-01-15 Michael Snyder <msnyder@redhat.com>
10876
10877 * target.c: New command, "set trust-readonly-sections on".
10878 (do_xfer_memory): Honor the suggestion to trust readonly sections
10879 by reading them from the object file instead of from the target.
10880 (initialize_targets): Register command "set trust-readonly-sections".
10881
10882 2002-01-29 Andrew Cagney <ac131313@redhat.com>
10883
10884 * parse.c (target_map_name_to_register): Simplify, search regs and
10885 pseudo-regs using a single loop.
10886
10887 2002-01-30 Andrew Cagney <ac131313@redhat.com>
10888
10889 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
10890
10891 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
10892
10893 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
10894 * config/i386/i386v42mp.mh: Add i387-nat.o .
10895 * i386v4-nat.c: Include i387-nat.h.
10896 (supply_fpregset): Use i387_supply_fsave.
10897 (fill_fpregset): Use i387_fill_fsave.
10898
10899 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
10900
10901 * arm-tdep.c (arm_call_dummy_words): Define.
10902 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
10903 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
10904 (CALL_DUMMY_WORDS): Define.
10905 (arm_call_dummy_words): Declare.
10906 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
10907 (arm_linux_call_dummy_words): Declare.
10908
10909 2002-01-30 Andreas Schwab <schwab@suse.de>
10910
10911 * m68klinux-nat.c: Fix last change to use regcache_collect
10912 instead of referencing registers[] directly.
10913
10914 2002-01-29 Andrew Cagney <ac131313@redhat.com>
10915
10916 * parse.c (target_map_name_to_register): Delete code wrapped in
10917 #ifdef REGISTER_NAME_ALIAS_HOOK.
10918
10919 2002-01-28 Michael Snyder <msnyder@redhat.com>
10920
10921 * regcache.c (legacy_read_register_gen): Need to be able to
10922 read pseudo-register as well as real register.
10923 (legacy_write_register_gen): Ditto.
10924
10925 2002-01-28 Andrew Cagney <ac131313@redhat.com>
10926
10927 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
10928 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
10929 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
10930 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
10931 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
10932 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
10933 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
10934 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
10935 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
10936 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
10937 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
10938 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
10939 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
10940 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
10941 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
10942 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
10943 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
10944 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
10945 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
10946 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
10947
10948 2002-01-28 Andrew Cagney <ac131313@redhat.com>
10949
10950 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
10951 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
10952 (initialize_current_architecture): Update target_byte_order using
10953 information from BFD.
10954 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
10955 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
10956
10957 2002-01-28 Andrew Cagney <ac131313@redhat.com>
10958
10959 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
10960 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
10961
10962 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
10963 #ifdef INVALID_FLOAT.
10964 * infcmd.c (do_registers_info): Ditto.
10965 * values.c (unpack_double): Ditto. Add comment.
10966
10967 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
10968 already commented out.
10969
10970 2002-01-26 Andreas Schwab <schwab@suse.de>
10971
10972 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
10973 * m68klinux-nat.c: Update ptrace interface for fetching/storing
10974 registers and add support for PTRACE_GETREGS.
10975
10976 2002-01-24 Andrew Cagney <ac131313@redhat.com>
10977
10978 GDB 5.1.1 released from 5.1 branch.
10979 * NEWS: Add 5.1.1 news.
10980 * README: Sync with 5.1 branch.
10981
10982 2002-01-23 Fred Fish <fnf@redhat.com>
10983
10984 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
10985 stabstring on initial malloc. Reallocing will copy it for us,
10986 if necessary.
10987
10988 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
10989
10990 * Makefile.in (hpread_h): Delete.
10991 (HFILES_NO_SRCDIR): Remove hpread.h.
10992 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
10993 (hpread.o): Update dependencies.
10994 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
10995
10996 * hp-psymtab-read.c: Remove file.
10997 * hp-symtab-read.c: Remove file.
10998 * hpread.h: Remove file.
10999
11000 * hpread.c: Merge all contents of hp-psymtab-read.c,
11001 hp-symtab-read.c and hpread.h into this file, as it was prior to
11002 January 1999.
11003
11004 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
11005 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
11006 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
11007 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
11008
11009 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
11010
11011 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
11012 fill_gregset): Call gdbarch_tdep() just once, assign result to
11013 variable and use that, instead of calling the function several
11014 times.
11015
11016 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
11017
11018 * configure.host: Accept sparcv9 as alias for sparc64.
11019 * configure.tgt: Likewise.
11020
11021 2002-01-22 Kevin Buettner <kevinb@redhat.com>
11022
11023 * solib-aix5.c (build_so_list_from_mapfile)
11024 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
11025 arguments is not reversed.
11026 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
11027 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
11028
11029 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
11030
11031 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
11032 modified version of obsolete sh_fetch_pseudo_register.
11033 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
11034 (sh4_register_read): New function.
11035 (sh_pseudo_register_write): New function. Renamed and modified
11036 version of obsolete sh_store_pseudo_register.
11037 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
11038 (sh4_register_write): New function.
11039 (sh_gdbarch_init): Remove setting of gdbarch function
11040 fetch_pseudo_register and store_pseudo_register. Remove setting of
11041 register_convert_to_raw, register_convert_to_virtual,
11042 register_convertible.
11043 (sh_sh4_register_convertible): Delete. No longer needed. All is
11044 taken care by architecture specific functions
11045 register_read/register_write.
11046 (sh_sh4_register_convert_to_virtual): Make static.
11047 (sh_sh4_register_convert_to_raw): Ditto.
11048
11049 2002-01-22 Andrew Cagney <ac131313@redhat.com>
11050
11051 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
11052 (floatformat_is_nan, floatformat_mantissa): Ditto.
11053
11054 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
11055 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
11056 builtin_type_ieee_double_little,
11057 builtin_type_ieee_double_littlebyte_bigword,
11058 builtin_type_m68881_ext, builtin_type_i960_ext,
11059 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
11060 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
11061 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
11062 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
11063
11064 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
11065
11066 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
11067 parameter. Set frameless flag if it exists and depended of
11068 whether the scanned function is frameless or not.
11069 (xstormy16_skip_prologue): If function is frameless, return
11070 result of xstormy16_scan_prologue().
11071 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
11072 call.
11073
11074 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
11075
11076 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
11077 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
11078 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
11079 sh_sh4_register_byte, sh_sh4_register_raw_size,
11080 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
11081 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
11082 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
11083 sh_store_pseudo_register, sh_do_pseudo_register): Call
11084 gdbarch_tdep() just once, assign result to variable and use that,
11085 instead of calling the function several times.
11086
11087 2002-01-20 Mark Kettenis <kettenis@gnu.org>
11088
11089 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
11090 macros instead of LAST_FPU_CTRL_REGNUM.
11091 (store_register): Likewise.
11092
11093 2002-01-21 Jim Blandy <jimb@redhat.com>
11094
11095 * infcmd.c (run_command): Check that the `exec' target layer's BFD
11096 is up-to-date before running the program, not just when a program
11097 exits.
11098
11099 2002-01-21 Fred Fish <fnf@redhat.com>
11100
11101 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
11102 when we have found all instructions we are looking for.
11103
11104 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
11105
11106 * arm-tdep.c (arm_register_name): New function.
11107 (arm_registers_names): Make static.
11108 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
11109 (arm_register_name): Declare.
11110 (REGISTER_NAME): Use it.
11111
11112 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
11113 Kevin Buettner <kevinb@redhat.com>
11114
11115 Convert arm targets to new FRAME interface.
11116 * arm-tdep.c (struct frame_extra_info): Remove fsr.
11117 (arm_frame_find_save_regs): Delete.
11118 (arm_frame_init_saved_regs): New.
11119 (arm_init_extra_frame_info): Alloacte saved_regs as required.
11120 Allocate extra_info as required. Convert all uses of fsr.regs
11121 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
11122 to use extra_info.
11123 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
11124 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
11125 (check_prologue_cache, save_prologue_cache): Likewise.
11126 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
11127 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
11128 (FRAME_FIND_SAVED_REGS): Delete.
11129 (arm_frame_find_saved_regs): Delete prototype.
11130 (arm_frame_init_saved_regs): New prototype.
11131 (FRAME_INIT_SAVED_REGS): Define.
11132
11133 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11134
11135 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
11136
11137 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11138
11139 From Jeff Law <law@redhat.com>:
11140 * infttrace.c: Include <sys/pstat.h>.
11141 (child_pid_to_exec_file): Revamp. Use pstat call to get the
11142 exec file if the ttrace equivalent fails.
11143
11144 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11145
11146 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
11147 (closeLogFile): Ditto.
11148
11149 2002-01-20 Michael Chastain <mec@shout.net>
11150
11151 * top.c (print_gdb_version): Bump copyright year to 2002.
11152
11153 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11154
11155 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
11156 Zannoni and Eli Zaretskii.
11157
11158 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
11159
11160 * buildsym.c: Update copyright years.
11161 * c-typeprint.c: Likewise.
11162 * dwarf2read.c: Likewise.
11163 * f-typeprint.c: Likewise.
11164 * gdbtypes.c: Likewise.
11165 * gdbtypes.h: Likewise.
11166 * hp-symtab-read.c: Likewise.
11167 * hpread.c: Likewise.
11168 * mdebugread.c: Likewise.
11169 * p-typeprint.c: Likewise.
11170
11171 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11172
11173 * remote-sim.c (gdbsim_open): Simplify code testing the macro
11174 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
11175 byte-order selectable.
11176 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
11177 * arch-utils.c: Ditto.
11178 (set_endian): Ditto.
11179 (set_endian_from_file): Ditto.
11180 * gdbserver/low-sim.c (create_inferior): Ditto.
11181 * gdbarch.sh: Ditto.
11182 * gdbarch.h: Re-generate.
11183 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11184 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
11185 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
11186 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11187 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11188 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11189 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
11190 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
11191 macro definition.
11192 * config/mips/tm-wince.h: Remove #undef of macro
11193 TARGET_BYTE_ORDER_SELECTABLE.
11194 * config/sh/tm-wince.h: Ditto.
11195
11196 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
11197
11198 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
11199 member function fields. Add accessor macro
11200 TYPE_FN_FIELD_ARTIFICIAL.
11201 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
11202 * c-typeprint.c (c_type_print_base): Skip artificial member
11203 functions.
11204
11205 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
11206
11207 * f-typeprint.c: Delete unused function f_type_print_args.
11208 * p-typeprint.c: Delete unused function pascal_type_print_args.
11209
11210 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
11211
11212 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
11213 comment. Add ``artificial'' to ``union field_location''.
11214
11215 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
11216
11217 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
11218 * mdebugread.c (parse_symbol): Likewise.
11219 * stabsread.c (define_symbol): Likewise.
11220 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
11221 initializing TYPE_FIELD_BITPOS to n (obsolete).
11222 (hpread_doc_function_type): Likewise.
11223 * hpread.c (hpread_function_type): Likewise.
11224
11225 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11226
11227 * configure.in (host_makefile_frag): Only require a host makefile
11228 fragment when a native build.
11229 * configure: Re-generate.
11230
11231 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11232
11233 * doublest.h (floatformat_from_type): Declare.
11234 * doublest.c (floatformat_from_type): New function.
11235 (convert_typed_floating): Use.
11236
11237 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
11238 call to function floatformat_from_type.
11239
11240 * gdbarch.sh (IEEE_FLOAT): Delete.
11241 * gdbarch.h, gdbarch.c: Re-generate.
11242 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
11243 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
11244 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
11245 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
11246 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
11247 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
11248 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
11249 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
11250 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
11251 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
11252 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
11253 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
11254
11255 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
11256 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
11257 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
11258 * sh-tdep.c (sh_gdbarch_init): Ditto.
11259 * mips-tdep.c (mips_gdbarch_init): Ditto.
11260 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11261 * cris-tdep.c (cris_gdbarch_init): Ditto.
11262
11263 2002-01-20 Jiri Smid <smid@suse.cz>
11264
11265 * configure.host, configure.tgt: Support x86-64.
11266 * NEWS: Note new target x86-64.
11267
11268 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
11269 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
11270 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
11271 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
11272 x86-64-linux-nat.o): Fix dependencies.
11273
11274 2002-01-19 Andrew Cagney <ac131313@redhat.com>
11275
11276 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
11277 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
11278 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
11279 * config/sparc/xm-sun4os4.h: Delete file.
11280 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
11281
11282 2002-01-19 Andrew Cagney <ac131313@redhat.com>
11283
11284 * config/sparc/sparclynx.mh (XM_FILE): Delete.
11285 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
11286 * config/m68k/m68klynx.mh (XM_FILE): Delete.
11287 * config/i386/i386lynx.mh (XM_FILE): Delete.
11288 * config/rs6000/xm-rs6000ly.h: Delete file.
11289 * config/sparc/xm-sparclynx.h: Delete file.
11290 * config/m68k/xm-m68klynx.h: Delete file.
11291 * config/i386/xm-i386lynx.h: Delete file.
11292 * config/xm-lynx.h: Delete file.
11293 * config/djgpp/fnchange.lst: Update.
11294
11295 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11296
11297 * alpha-tdep.c (alpha_register_byte): New function.
11298 (alpha_register_raw_size): Ditto.
11299 (alpha_register_virtual_size): Ditto.
11300 (alpha_skip_prologue_internal): Renamed from
11301 alpha_skip_prologue.
11302 (alpha_skip_prologue): New version that calls
11303 alpha_skip_prologue_internal.
11304 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
11305 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
11306 second argument from alpha_skip_prologue.
11307 (REGISTER_BYTE): Use alpha_register_byte.
11308 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
11309 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
11310 (FRAMELESS_FUNCTION_INVOCATION): Use
11311 generic_frameless_function_invocation_not.
11312 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
11313 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
11314
11315 2002-01-19 Andrew Cagney <ac131313@redhat.com>
11316
11317 * config/mips/xm-news-mips.h: Delete file.
11318 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
11319
11320 * config/m88k/xm-m88k.h: Delete file.
11321 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
11322 * config/m88k/xm-delta88v4.h: Ditto.
11323 * config/m88k/xm-delta88.h: Ditto.
11324
11325 * config/alpha/xm-fbsd.h: Delete file.
11326 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
11327
11328 * config/sparc/xm-sparc.h: Delete file.
11329 * Makefile.in (xm-sun4os4.h): Delete dependency.
11330 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
11331 * config/sparc/xm-sun4os4.h: Ditto.
11332 * config/sparc/xm-linux.h: Ditto.
11333
11334 * config/i386/xm-windows.h: Delete file.
11335
11336 2002-01-19 Andrew Cagney <ac131313@redhat.com>
11337
11338 * utils.c: Include <sys/param.h> for MAXPATHLEN.
11339 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
11340
11341 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11342
11343 * alpha-tdep.c (alpha_call_dummy_words): New.
11344 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
11345 (CALL_DUMMY_P): Define.
11346 (CALL_DUMMY_WORDS): Define.
11347 (SIZEOF_CALL_DUMMY_WORDS): Define.
11348
11349 2002-01-19 Per Bothner <per@bothner.com>
11350
11351 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
11352 isn't NULL, which can happen with some gcj-3.x-produced code.
11353
11354 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11355
11356 * alpha-tdep.c (alpha_register_virtual_type): New function.
11357 (alpha_init_frame_pc_first): Ditto.
11358 (alpha_fix_call_dummy): Ditto.
11359 (alpha_store_struct_return): Ditto.
11360 (alpha_extract_struct_value_address): Ditto.
11361 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
11362 alpha_register_virtual_type.
11363 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
11364 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
11365 alpha_extract_struct_value_address.
11366 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
11367 (INIT_FRAME_PC): Use init_frame_pc_noop.
11368 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
11369
11370 2002-01-19 Mark Kettenis <kettenis@gnu.org>
11371
11372 * i386gnu-nat.c: Include "i386-tdep.h".
11373 (fetch_fpregs): Simplify code dealing with uninitialized floating
11374 point states such that it doesn't require FP7_REGNUM.
11375
11376 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11377
11378 * alpha-tdep.c (frame_extra_info): New.
11379 (alpha_find_saved_regs): Make static. Use
11380 frame->extra_info.
11381 (alpha_frame_init_saved_regs): New function.
11382 (alpha_frame_saved_pc): Use frame->extra_info.
11383 (temp_saved_regs): Don't declare as struct frame_saved_regs.
11384 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
11385 (init_extra_frame_info): Rename to...
11386 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
11387 (alpha_print_extra_frame_info): New function.
11388 (alpha_frame_locals_address): Ditto.
11389 (alpha_frame_args_address): Ditto.
11390 (alpha_pop_frame): Use frame->extra_info.
11391 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
11392 alpha_frame_args_address.
11393 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
11394 (alpha_find_saved_regs): Remove prototype.
11395 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
11396 (EXTRA_FRAME_INFO): Remove.
11397 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
11398 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
11399
11400 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11401
11402 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
11403 (alpha_cannot_fetch_register): Ditto.
11404 (alpha_cannot_store_register): Ditto.
11405 (alpha_register_convertible): Ditto.
11406 (alpha_use_struct_convention): Ditto.
11407 * config/alpha/tm-alpha.h: Update copyright years.
11408 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
11409 (INNER_THAN): Use core_addr_lessthan.
11410 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
11411 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
11412 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
11413 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
11414 (FRAME_CHAIN): Remove unnecessary cast.
11415
11416 2002-01-18 Andrew Cagney <ac131313@redhat.com>
11417
11418 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
11419 obsolete.
11420
11421 2002-01-18 Andrew Cagney <ac131313@redhat.com>
11422
11423 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
11424 * monitor.c, remote-array.c, remote-bug.c: Ditto.
11425 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
11426 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
11427 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
11428 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
11429 * x86-64-linux-nat.c: Ditto.
11430
11431 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11432
11433 * alpha-tdep.c (alpha_register_name): New function.
11434 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
11435 (REGISTER_NAME): Define.
11436
11437 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11438
11439 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
11440
11441 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11442
11443 * alpha-tdep.c: Update copyright years.
11444 (alpha_next_pc): New function.
11445 (alpha_software_single_step): Ditto.
11446 * config/alpha/tm-alpha.h: Add prototype for
11447 alpha_software_single_step.
11448
11449 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11450
11451 * alphabsd-nat.c: Update copyright years.
11452 (fill_gregset): Use regcache_collect.
11453 (fill_fpregset): Likewise.
11454 (fetch_inferior_registers): Only fetch integer registers
11455 if requested to do so.
11456 (store_inferior_registers): Only store integer registers
11457 if requested to do so.
11458
11459 2002-01-17 Andrew Cagney <ac131313@redhat.com>
11460
11461 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
11462 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
11463 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
11464 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
11465 * config/alpha/fbsd.mh (XDEPFILES): Delete.
11466 * config/arm/linux.mh (XDEPFILES): Delete.
11467 * config/arm/nbsd.mh (XDEPFILES): Delete.
11468 * config/i386/i386dgux.mh (XDEPFILES): Delete.
11469 * config/i386/i386sol2.mh (XDEPFILES): Delete.
11470 * config/i386/i386m3.mh (XDEPFILES): Delete.
11471 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
11472 * config/i386/i386gnu.mh (XDEPFILES): Delete.
11473 * config/i386/fbsd.mh (XDEPFILES): Delete.
11474 * config/i386/i386bsd.mh (XDEPFILES): Delete.
11475 * config/i386/i386sco5.mh (XDEPFILES): Delete.
11476 * config/i386/i386v4.mh (XDEPFILES): Delete.
11477 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
11478 * config/i386/i386sco4.mh (XDEPFILES): Delete.
11479 * config/i386/i386aix.mh (XDEPFILES): Delete.
11480 * config/i386/go32.mh (XDEPFILES): Delete.
11481 * config/i386/cygwin.mh (XDEPFILES): Delete.
11482 * config/i386/i386lynx.mh (XDEPFILES): Delete.
11483 * config/i386/i386mach.mh (XDEPFILES): Delete.
11484 * config/i386/i386v32.mh (XDEPFILES): Delete.
11485 * config/i386/linux.mh (XDEPFILES): Delete.
11486 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
11487 * config/i386/ncr3000.mh (XDEPFILES): Delete.
11488 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
11489 * config/i386/i386sco.mh (XDEPFILES): Delete.
11490 * config/i386/i386v.mh (XDEPFILES): Delete.
11491 * config/i386/nbsd.mh (XDEPFILES): Delete.
11492 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
11493 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
11494 * config/i386/symmetry.mh (XDEPFILES): Delete.
11495 * config/i386/obsd.mh (XDEPFILES): Delete.
11496 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
11497 * config/ia64/linux.mh (XDEPFILES): Delete.
11498 * config/ia64/aix.mh (XDEPFILES): Delete.
11499 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
11500 * config/m68k/dpx2.mh (XDEPFILES): Delete.
11501 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
11502 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
11503 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
11504 * config/m68k/linux.mh (XDEPFILES): Delete.
11505 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
11506 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
11507 * config/m68k/nbsd.mh (XDEPFILES): Delete.
11508 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
11509 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
11510 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
11511 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
11512 * config/m88k/delta88.mh (XDEPFILES): Delete.
11513 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
11514 * config/m88k/m88k.mh (XDEPFILES): Delete.
11515 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
11516 * config/mips/linux.mh (XDEPFILES): Delete.
11517 * config/mips/irix6.mh (XDEPFILES): Delete.
11518 * config/mips/irix5.mh (XDEPFILES): Delete.
11519 * config/mips/irix4.mh (XDEPFILES): Delete.
11520 * config/mips/irix3.mh (XDEPFILES): Delete.
11521 * config/mips/decstation.mh (XDEPFILES): Delete.
11522 * config/mips/mipsm3.mh (XDEPFILES): Delete.
11523 (NATDEPFILES): Move core-aout.o to here.
11524 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
11525 * config/pa/hpux1020.mh (XDEPFILES): Delete.
11526 * config/pa/hppabsd.mh (XDEPFILES): Delete.
11527 * config/pa/hppahpux.mh (XDEPFILES): Delete.
11528 * config/pa/hpux11w.mh (XDEPFILES): Delete.
11529 * config/pa/hppaosf.mh (XDEPFILES): Delete.
11530 * config/pa/hpux11.mh (XDEPFILES): Delete.
11531 * config/powerpc/aix.mh (XDEPFILES): Delete.
11532 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
11533 * config/powerpc/linux.mh (XDEPFILES): Delete.
11534 * config/romp/rtbsd.mh: Rename XDEPFILES.
11535 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
11536 * config/rs6000/aix4.mh (XDEPFILES): Delete.
11537 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
11538 * config/s390/s390.mh (XDEPFILES): Delete.
11539 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
11540 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
11541 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
11542 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
11543 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
11544 * config/sparc/nbsd.mh (XDEPFILES): Delete.
11545 * config/sparc/linux.mh (XDEPFILES): Delete.
11546 * config/vax/vaxult.mh (XDEPFILES): Delete.
11547 * config/vax/vaxult2.mh (XDEPFILES): Delete.
11548 * Makefile.in (DEPFILES): Remove XDEPFILES.
11549
11550 2002-01-17 Andrew Cagney <ac131313@redhat.com>
11551
11552 * utils.c (internal_verror): Fix comments, default is yes not no.
11553 Update queries to match. Default to quit and dump core.
11554
11555 2002-01-17 Andrew Cagney <ac131313@redhat.com>
11556
11557 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
11558 copyright.
11559 * defs.h, event-top.c, gdbcmd.h: Ditto.
11560 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
11561 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
11562 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
11563 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
11564 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
11565 * mi/mi-main.c:Ditto.
11566
11567 * stack.c, symfile.c: Update copyright.
11568
11569 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
11570
11571 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
11572 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
11573 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
11574 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
11575
11576 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
11577
11578 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
11579 * gdbserver/low-lynx.c (myattach): Likewise.
11580 * gdbserver/low-nbsd.c (myattach): Likewise.
11581 * gdbserver/low-sim.c (myattach): Likewise.
11582 * gdbserver/low-sparc.c (myattach): Likewise.
11583 * gdbserver/low-sun3.c (myattach): Likewise.
11584
11585 * gdbserver/low-linux.c (myattach): New function.
11586
11587 * gdbserver/server.c (attach_inferior): New function.
11588 (main): Handle "--attach".
11589
11590 2002-01-16 Andrew Cagney <ac131313@redhat.com>
11591
11592 * MAINTAINERS (language support): Daniel Jacobwitz is C++
11593 maintainer.
11594
11595 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
11596
11597 * c-typeprint.c (is_type_conversion_operator): Add additional
11598 check for non-conversion operators.
11599
11600 2002-01-15 Michael Snyder <msnyder@redhat.com>
11601
11602 * linux-proc.c: Add "info proc" command, a la procfs.c.
11603 (read_mapping): New function, abstract and re-use code.
11604 (linux_find_memory_regions): Use new func read_mapping.
11605 (linux_info_proc_cmd): New function, implement "info proc".
11606 (_initialize_linux_proc): Add new command "info proc".
11607
11608 2002-01-15 Michael Snyder <msnyder@redhat.com>
11609
11610 * symfile.c (generic_load): Use bfd_map_over_sections method
11611 instead of manipulating bfd structure members directly.
11612 (add_section_size_callback): New function, bfd sections callback
11613 used by generic_load.
11614 (load_sections_callback): New function, bfd sections callback
11615 used by generic_load.
11616
11617 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
11618
11619 [Based on work by Jim Blandy]
11620 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
11621 (builtin_type_vec128): Export.
11622 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
11623 types.
11624 (builtin_type_vec128): New builtin type for 128 bit vector
11625 registers.
11626 (build_gdbtypes): Initialize builtin_type_v16qi and
11627 builtin_type_v8hi. Create the vec128 register builtin type
11628 structure.
11629 (build_builtin_type_vec128): New function.
11630 (_initialize_gdbtypes): Register builtin_type_v16qi and
11631 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
11632 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
11633 AltiVec register to new builtin type.
11634
11635 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
11636
11637 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
11638 to make_cv_type.
11639
11640 2002-01-14 Andrew Cagney <ac131313@redhat.com>
11641
11642 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
11643 CLEAN_UP_REGISTER_VALUE.
11644 * regcache.c (supply_register): Update only call.
11645
11646 2002-01-14 Andrew Cagney <ac131313@redhat.com>
11647
11648 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
11649 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
11650 a29k-*-vxworks* targets as obsolete.
11651
11652 2002-01-14 Michael Snyder <msnyder@redhat.com>
11653
11654 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
11655 until we can resolve portability issues.
11656 * gregset.h: Remove references to fpxregs.
11657 * gcore.c (gcore_command): Initialize note_sec to NULL.
11658
11659 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11660
11661 * signals.c (target_signal_to_name): Rewrite. Only use
11662 signals[].name when in bounds and non-NULL.
11663
11664 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11665
11666 From Petr Ledvina <ledvinap@kae.zcu.cz>:
11667 * signals.c (target_signal_to_name): Verify that SIG is within the
11668 bounds of the signals array.
11669
11670 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11671
11672 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
11673
11674 2002-01-13 Keith Seitz <keiths@redhat.com>
11675
11676 * stack.c (print_frame_info_base): Print the frame's pc
11677 only if when print_frame_info_listing_hook is not defined.
11678
11679 2002-01-13 Keith Seitz <keiths@redhat.com>
11680
11681 * varobj.c (varobj_set_value): Make sure that there were no
11682 errors evaluating the object before attempting to set its
11683 value.
11684 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
11685 so this offset adjustment is no longer necessary.
11686 (create_child): Don't set the error flag if the child is
11687 a CPLUS_FAKE_CHILD.
11688 (value_of_child): If value_fetch_lazy fails, return NULL
11689 so that callers will be notified that an error occurred.
11690 (c_value_of_variable): Delay check of variable's validity
11691 until later. We actually want all structs and unions to have
11692 the value "{...}".
11693 Do not return "???" for variables which could not be evaluated.
11694 This error condition must be returned to the caller so that it
11695 can get the error condition from gdb.
11696 (cplus_name_of_child): Adjust index for vptr before figuring
11697 out the name of the child.
11698 (cplus_value_of_child): If a child's (real) parent is not valid,
11699 don't even bother trying to give a value for it. Just return
11700 an error. Change all instances in this function.
11701 (cplus_type_of_child): If our parent is one of the "fake"
11702 parents, we need to get at the type of the real parent, and
11703 derive the child's true type using this information.
11704
11705 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11706
11707 From 2002-01-09 John Marshall <johnm@falch.net>:
11708 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
11709 sources.redhat.com, and tweak some related URLs which had
11710 suffered from linkrot.
11711
11712 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11713
11714 From Jeff law:
11715 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
11716 structures passed in registers.
11717
11718 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
11719
11720 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
11721 white space which prevented compilation. Reported by DSK
11722 <dsk@student.unsw.edu.au>.
11723
11724 2002-01-11 Michael Snyder <msnyder@redhat.com>
11725
11726 * symfile.c (build_section_addr_info_from_section_tab):
11727 Use bfd access method instead of manipulating bfd directly.
11728 (syms_from_objfile): Ditto.
11729 (simple_overlay_update_1): Ditto.
11730 (simple_overlay_update): Ditto.
11731 (generic_load): Ditto.
11732 (overlay_unmapped_address): FIXME comment, bfd access methods.
11733 (sections_overlap): FIXME comment, bfd access methods.
11734 (pc_in_mapped_range): FIXME comment, bfd access methods.
11735 (pc_in_unmapped_range): FIXME comment, bfd access methods.
11736 (section_is_mapped): FIXME comment, bfd access methods.
11737 (section_is_overlay): FIXME comment, bfd access methods.
11738
11739 * symfile.c (generic_load): Whitespace and long line cleanups.
11740 Remove duplicate variable, change several local variables to
11741 more appropriate data types.
11742 (print_transfer_performance): Use %lu instead of %ld for ulongs.
11743
11744 2002-01-12 Andrew Cagney <ac131313@redhat.com>
11745
11746 From Peter Schauer:
11747 * language.c (longest_local_hex_string_custom): Use phex_nz to
11748 convert NUM to a hex string.
11749
11750 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
11751
11752 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
11753 the function.
11754 Update Copyright year.
11755
11756 2002-01-12 Andrew Cagney <ac131313@redhat.com>
11757
11758 * language.c (longest_raw_hex_string): Delete unused function.
11759
11760 2002-01-11 Petr Sorfa <petrs@caldera.com>
11761
11762 * MAINTAINERS (write-after-approval): Add myself.
11763 * dwarf2read.c (read_tag_string_type): Handling of
11764 DW_AT_byte_size.
11765 (read_tag_string_type): FORTRAN fix to prevent propagation of
11766 first string size.
11767 (set_cu_language): Handling of DW_LANG_Fortran95
11768
11769 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
11770
11771 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
11772 GETPID(inferior_ptid).
11773 (store_inferior_registers): Likewise.
11774
11775 2002-01-10 Jason Merrill <jason@redhat.com>
11776
11777 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
11778 Fix DW_OP_minus.
11779
11780 2002-01-10 Andrew Cagney <ac131313@redhat.com>
11781
11782 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
11783 and bfd/elf32-sh-nbsd.c.
11784
11785 2002-01-10 Michael Snyder <msnyder@redhat.com>
11786
11787 * NEWS: Mention --pid and corefile/proc-id behavior change.
11788
11789 * Makefile.in: Add rules for gcore.o and linux-proc.o.
11790 * gcore.c: Include cli/cli-decode.h instead of command.h.
11791
11792 * main.c (captured_main): Add new command line option "--pid".
11793 If the second command line argument (following the symbol-file)
11794 begins with a digit, try to attach to it before trying to open
11795 it as a corefile.
11796 (print_gdb_help): Document the "--pid" argument.
11797
11798 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
11799
11800 * completer.c (command_completer): New function.
11801
11802 * completer.h <command_completer>: Add prototype.
11803
11804 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
11805 completer for the "help" command.
11806
11807 2002-01-09 Jason Merrill <jason@redhat.com>
11808
11809 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
11810
11811 2002-01-09 Michael Snyder <msnyder@redhat.com>
11812
11813 * i386-linux-nat.c (fill_fpxregset): Make global.
11814 (store_fpxregset): Ditto.
11815
11816 * gregset.h (gdb_fpxregset_t): Define.
11817 (supply_fpxregset): Prototype.
11818 (fill_fpxregset): Prototype.
11819
11820 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
11821
11822 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
11823
11824 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
11825 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
11826 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
11827
11828 2002-01-09 Andrew Cagney <ac131313@redhat.com>
11829
11830 * MAINTAINERS: Update target maintainer rules so that any
11831 Maintainer can approve a tested patch for a maintenance-only
11832 target.
11833
11834 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
11835
11836 * MAINTAINERS (write-after-approval): Add myself.
11837
11838 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
11839 IN_SIGTRAMP.
11840
11841 2002-01-08 Michael Snyder <msnyder@redhat.com>
11842
11843 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
11844 real name of the executable, rather than the /proc name.
11845
11846 2002-01-03 Michael Snyder <msnyder@redhat.com>
11847
11848 Implement a "generate-core-file" command in gdb, save target state.
11849 * gcore.c: New file. Implement new command 'generate-core-file'.
11850 Save a corefile image of the current state of the inferior.
11851 * linux-proc.c: Add linux-specific code for saving corefiles.
11852 * target.h (struct target_ops): Add new target vectors for saving
11853 corefiles; to_find_memory_regions and to_make_corefile_notes.
11854 (target_find_memory_regions): New macro.
11855 (target_make_corefile_notes): New macro.
11856 * target.c (update_current_target): Inherit new target methods.
11857 (dummy_find_memory_regions): New place-holder method.
11858 (dummy_make_corefile_notes): New place-holder method.
11859 (init_dummy_target): Initialize new dummy target vectors.
11860 * exec.c (exec_set_find_memory_regions): New function.
11861 Allow the exec_ops vector for memory regions to be taken over.
11862 (exec_make_note_section): New function, target vector method.
11863 * defs.h (exec_set_find_memory_regions): Export prototype.
11864 * procfs.c (proc_find_memory_regions): New function, corefile method.
11865 (procfs_make_note_section): New function, corefile method.
11866 (init_procfs_ops): Set new target vector pointers.
11867 (find_memory_regions_callback): New function.
11868 (procfs_do_thread_registers): New function.
11869 (procfs_corefile_thread_callback): New function.
11870 * sol-thread.c (sol_find_memory_regions): New function.
11871 (sol_make_note_section): New function.
11872 (init_sol_thread_ops): Initialize new target vectors.
11873 * inftarg.c (inftarg_set_find_memory_regions): New function.
11874 Allow to_find_memory_regions vector to be taken over.
11875 (inftarg_set_make_corefile_notes): New function.
11876 Allow to_make_corefile_notes vector to be taken over.
11877 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
11878 interface layer if not target_has_execution (may be a corefile).
11879 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
11880 * config/sparc/sun4sol2.mh: Ditto.
11881 * config/alpha/alpha-linux.mh: Ditto.
11882 * config/arm/linux.mh: Ditto.
11883 * config/i386/x86-64linux.mh: Ditto.
11884 * config/ia64/linux.mh: Ditto.
11885 * config/m68k/linux.mh: Ditto.
11886 * config/mips/linux.mh: Ditto.
11887 * config/powerpc/linux.mh: Ditto.
11888 * config/sparc/linux.mh: Ditto.
11889
11890 2002-01-07 Michael Snyder <msnyder@redhat.com>
11891
11892 * arm-linux-nat.c: Remove references to regcache.c internal data
11893 (registers[] and register_valid[]).
11894
11895 2002-01-07 Michael Snyder <msnyder@redhat.com>
11896
11897 * linux-proc.c: New file. Implement child_pid_to_exec_file,
11898 so that attaching to a pid will automatically read the process's
11899 symbol file and shlibs.
11900 * Makefile.in: Add rule for linux-proc.o.
11901 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
11902 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
11903 * config/arm/linux.mh: Ditto.
11904 * config/i386/linux.mh: Ditto.
11905 * config/i386/x86-64linux.mh: Ditto.
11906 * config/ia64/linux.mh: Ditto.
11907 * config/m68k/linux.mh: Ditto.
11908 * config/mips/linux.mh: Ditto.
11909 * config/powerpc/linux.mh: Ditto.
11910 * config/sparc/linux.mh: Ditto.
11911
11912 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
11913
11914 * win32-nat.c: Add i386-tdep.h dependency.
11915
11916 2002-01-07 Michael Snyder <msnyder@redhat.com>
11917
11918 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
11919 instead of bfd_get_arch_size. Don't bail out just because
11920 there's no exec_bfd.
11921
11922 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
11923 * p-valprint.c (pascal_object_print_value): Ditto.
11924 * somread.c (som_symtab_read): Ditto.
11925 * symfile.c (simple_free_overlay_region_table): Ditto.
11926 * valops.c (value_assign): Ditto.
11927
11928 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
11929 use tilde_expand and strerror for opening save-tracepoints file.
11930
11931 * thread-db.c (thread_db_new_objfile): Indendation fix.
11932
11933 * infptrace.c (GDB_MAX_ALLOCA): New define.
11934 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
11935 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
11936 can be overridden with whatever value is appropriate to the host).
11937 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
11938 alloca to allocate potentially large buffer.
11939 * rs6000-nat.c (child_xfer_memory): Ditto.
11940 * symm-nat.c (child_xfer_memory): Ditto.
11941 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
11942
11943 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
11944
11945 From Nick Clifton <nickc@redhat.com>
11946 * d10v-tdep.c: Set STACK_START to 0x200bffe.
11947
11948 2002-01-07 Michael Snyder <msnyder@redhat.com>
11949
11950 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
11951 Don't use exec_bfd if it's NULL.
11952
11953 2002-01-06 Mark Kettenis <kettenis@gnu.org>
11954
11955 * valops.c (value_arg_coerce): Fix formatting.
11956
11957 2002-01-06 Andrew Cagney <ac131313@redhat.com>
11958
11959 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
11960 * gnu-nat.c: Ditto.
11961
11962 2002-01-06 Andrew Cagney <ac131313@redhat.com>
11963
11964 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
11965 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
11966 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
11967 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
11968 z8k-coff have not been multi-arched. Update z8k-coff build
11969 status.
11970
11971 2002-01-06 Andrew Cagney <ac131313@redhat.com>
11972
11973 * MAINTAINERS: Mark a29k target as obsolete.
11974 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
11975 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
11976 comments.
11977 * NEWS: Note that a29k targets are obsolete.
11978 * a29k-tdep.c: Mark as obsolete.
11979 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
11980 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
11981 a29k-*-vxworks* targets as obsolete.
11982 * remote-adapt.c: Obsolete.
11983 * remote-eb.c: Obsolete.
11984 * remote-mm.c: Obsolete.
11985 * remote-udi.c: Obsolete.
11986 * config/a29k/a29k-udi.mt: Obsolete.
11987 * config/a29k/a29k.mt: Obsolete.
11988 * config/a29k/tm-a29k.h: Obsolete.
11989 * config/a29k/tm-vx29k.h: Obsolete.
11990 * config/a29k/vx29k.mt: Obsolete.
11991
11992 2002-01-05 Andrew Cagney <ac131313@redhat.com>
11993
11994 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
11995 with BFD_ENDIAN_BIG.
11996
11997 2002-01-05 Andrew Cagney <ac131313@redhat.com>
11998
11999 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
12000 * configure, config.in: Re-generate.
12001 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
12002 * defs.h: Do not include <endian.h>.
12003
12004 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
12005
12006 * acconfig.h (HAVE_PT_GETXMMREGS): New.
12007 * config.in: Regenerate.
12008 * configure.in: Update copyright years.
12009 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
12010 * configure: Regenerate.
12011 * i386bsd-nat.c: Update copyright years.
12012 (fill_gregset): Use regcache_collect.
12013 (fetch_inferior_registers): Only fetch integer registers
12014 if requested to do so. Add support for XMM registers
12015 using PT_GETXMMREGS.
12016 (store_inferior_registers): Only store integer registers
12017 if requested to do so. Add support for XMM registers
12018 using PT_SETXMMREGS.
12019 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
12020 (store_inferior_registers): Remove.
12021 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
12022 (fetch_elfcore_registers): New function.
12023 (i386nbsd_elfcore_fns): New.
12024 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
12025 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
12026 i386bsd-nat.o.
12027 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
12028 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
12029 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
12030 * config/i386/tm-nbsd.h: Update copyright years.
12031 (HAVE_SSE_REGS): Define.
12032 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
12033 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
12034 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
12035 (SIGCONTEXT_PC_OFFSET): Remove.
12036 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
12037
12038 2002-01-05 Andrew Cagney <ac131313@redhat.com>
12039
12040 * configure.tgt: Remove powerpc-*-macos* target.
12041 * config/m68k/xm-mpw.h: Delete file.
12042 * config/xm-mpw.h: Delete file.
12043 * ser-mac.c: Delete file.
12044 * mpw-make.sed: Delete file.
12045 * mpw-config.in: Delete file.
12046 * mac-xdep.c: Delete file.
12047 * mac-gdb.r: Delete file.
12048 * mac-defs.h: Delete file.
12049 * mac-nat.c: Delete file.
12050 * config/powerpc/macos.mh: Delete file.
12051 * config/powerpc/macos.mt: Delete file.
12052 * config/powerpc/nm-macos.h: Delete file.
12053 * config/powerpc/tm-macos.h: Delete file.
12054 * source.c (openp, open_source_file): Remove obsolete code.
12055 * top.c (gdb_readline): Ditto.
12056 * utils.c (query): Ditto.
12057 * event-top.c (display_gdb_prompt): Ditto.
12058 * Makefile.in (ser-mac.o): Delete obsolete target.
12059 * NEWS: Update.
12060
12061 2002-01-04 Andrew Cagney <ac131313@redhat.com>
12062
12063 * defs.h (BIG_ENDIAN): Delete macro definition.
12064 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
12065 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
12066 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
12067 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
12068 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
12069 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
12070 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
12071 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
12072 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
12073 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
12074 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
12075 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
12076 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
12077 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
12078 * gdbarch.c: Re-generate.
12079
12080 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
12081
12082 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
12083 for core files.
12084
12085 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
12086
12087 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
12088
12089 2002-01-04 Andrew Cagney <ac131313@redhat.com>
12090
12091 * value.h (value_ptr): Delete typedef.
12092
12093 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
12094
12095 * i386nbsd-nat.c: Update copyright years.
12096 Include i386-tdep.h.
12097
12098 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
12099
12100 * stabsread.c: Update copyright years.
12101
12102 From Debashis Mahata <debashis.mahata@wipro.com>:
12103 (read_struct_fields): Deal with Sun C compiler erroneous stab
12104 output for structs and unions.
12105 Fix PR gdb/269.
12106
12107 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
12108
12109 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
12110 prototype.
12111
12112 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
12113
12114 * cp-abi.c: Fix whitespace.
12115 (baseclass_offset): New wrapper function.
12116 * cp-abi.h (baseclass_offset): Add prototype.
12117 (struct cp_abi_ops): Add baseclass_offset pointer.
12118
12119 * valops.c (vb_match): Move to...
12120 * gnu-v2-abi.c (vb_match): here.
12121 * valops.c (baseclass_offset): Move to...
12122 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
12123
12124 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
12125
12126 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
12127 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
12128 * hpacc-abi.c (init_hpacc_ops): Likewise.
12129
12130 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
12131
12132 * valops.c (find_overload_match): Accept obj as a
12133 reference parameter. Update it before returning.
12134 * value.h (find_overload_match): Update prototype.
12135 * eval.c (evaluate_subexp_standard): Pass object to
12136 find_overload_match by reference.
12137
12138 2002-01-03 Andrew Cagney <ac131313@redhat.com>
12139
12140 * valarith.c: Replace value_ptr with struct value pointer. Remove
12141 register attribute from value declarations.
12142 * valops.c: Ditto.
12143 * value.h: Ditto.
12144 * scm-lang.c (scm_lookup_name): Ditto.
12145
12146 2002-01-03 Michael Snyder <msnyder@redhat.com>
12147
12148 Abstract the functionality of iterating over mapped memory
12149 regions into a general purpose iterator function.
12150 * procfs.c (iterate_over_mappings): New function, general purpose
12151 iterator for memory sections.
12152 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
12153 (solib_mappings_callback): New function, callback for above.
12154 (info_proc_mappings): Reimpliment using iterate_over_mappings.
12155 (info_mappings_callback): New function, callback for above.
12156
12157 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
12158
12159 2002-01-01 Mark Kettenis <kettenis@gnu.org>
12160
12161 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
12162 * i386-tdep.c: Include "elf-bfd.h".
12163 (process_note_abi_tag_sections): New function.
12164 (i386_gdbarch_init): Add code to recognize various OS/ABI
12165 combinations.
12166
12167 * maint.c (_initialize_maint_cmds): Add missing \ in
12168 string-literal.
12169
12170 For older changes see ChangeLog-2001
12171 \f
12172 Local Variables:
12173 mode: change-log
12174 left-margin: 8
12175 fill-column: 74
12176 version-control: never
12177 End: