* i386v-nat.c: Include "i386-tdep.h".
[binutils-gdb.git] / gdb / ChangeLog
1 2002-10-25 Mark Kettenis <kettenis@gnu.org>
2
3 * i386v-nat.c: Include "i386-tdep.h".
4
5 2002-10-25 Andrew Cagney <cagney@redhat.com>
6
7 * gdbtypes.c (address_space_name_to_int): Update.
8 (address_space_int_to_name): Update.
9 * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
10 multi-arch predicate.
11 (address_class_name_to_type_flags): Ditto.
12 * gdbarch.h, gdbarch.c: Re-generate.
13
14 * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
15
16 2002-10-24 Martin M. Hunt <hunt@redhat.com>
17
18 * utils.c (string_to_core_addr): Revert patch from 11 Oct.
19
20 2002-10-24 Elena Zannoni <ezannoni@redhat.com>
21
22 * symtab.h (INIT_SAL): Delete macro.
23 (init_sal): Export.
24 * symtab.c (init_sal): New function.
25
26 * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
27 to init_sal function call.
28 (find_sal_from_funcs_and_line): Ditto.
29 (all_sals_for_line): Ditto.
30 * breakpoint.c (create_internal_breakpoint): Ditto.
31 (create_fork_vfork_event_catchpoint): Ditto.
32 (create_exec_event_catchpoint): Ditto.
33 (parse_breakpoint_sals): Ditto.
34 (watch_command_1): Ditto.
35 (handle_gnu_4_16_catch_command): Ditto.
36 (clear_command): Ditto.
37 * hppa-tdep.c (child_enable_exception_callback): Ditto.
38 * infcmd.c (run_stack_dummy): Ditto.
39 * infrun.c (process_event_stop_test): Ditto.
40 (check_sigtramp2): Ditto.
41 (step_over_function): Ditto.
42 * linespec.c (decode_line_2): Ditto.
43 (decode_line_1): Ditto.
44 * source.c (line_info): Ditto.
45 * symtab.c (find_pc_sect_line): Ditto.
46
47 2002-10-24 Michal Ludvig <mludvig@suse.cz>
48
49 * dwarf2cfi.c (struct context)
50 (struct context_reg): Moved to dwarf2cfi.h
51 (context_alloc, frame_state_alloc, context_cpy):
52 Made extern instead of static, removed prototypes.
53 * dwarf2cfi.h (struct context)
54 (struct context_reg): New, moved from dwarf2cfi.c
55 (context_alloc, frame_state_alloc, context_cpy):
56 New prototypes.
57 * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
58 Changed from static to extern.
59 (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
60 (LINUX_SIGCONTEXT_FP_OFFSET)
61 (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
62 (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
63 (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
64 * x86-64-tdep.c (x86_64_gdbarch_init): Several
65 set_gdbarch_*() calls now use x86-64 specific functions
66 instead of DWARF2 CFI ones.
67 * x86-64-tdep.h (x86_64_linux_in_sigtramp)
68 (x86_64_linux_frame_chain, x86_64_init_frame_pc)
69 (x86_64_init_extra_frame_info): New prototypes.
70
71 2002-10-23 David Carlton <carlton@math.stanford.edu>
72
73 * linespec.c: #include "parser-defs.h".
74 Delete prototype for find_template_name_end.
75 * Makefile.in (linespec.o): Depend on $(parser_defs_h).
76
77 2002-10-23 Jeff Johnston <jjohnstn@redhat.com>
78
79 * NEWS: add recent mi fixes.
80 * varobj.c (struct varobj): Add new "updated" flag.
81 (new_variable): Default "updated" flag to 0.
82 (varobj_set_value): Set "updated" flag to 1 if value
83 changes.
84 (varobj_update): Check varobj "updated" flag before
85 comparing old and refreshed values. Fix for
86 PR gdb/702.
87
88 2002-10-23 David Carlton <carlton@math.stanford.edu>
89
90 * parse.c (parse_exp_1): Use BLOCK_START.
91 * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
92 SYMBOL_BLOCK_VALUE.
93 * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
94
95 2002-10-23 David Carlton <carlton@math.stanford.edu>
96
97 * symtab.c: Delete cplusplus_hint.
98 Delete prototype for find_template_name_end.
99
100 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
101
102 * symtab.h: Update comment.
103
104 2002-10-23 Michael Snyder <msnyder@redhat.com>
105
106 * printcmd.c (address_info): Restore quotes in output.
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_demangled_name): New function.
112 * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
113 turning most of it into a function.
114 (symbol_demangled_name): Export.
115
116 2002-10-23 Michael Snyder <msnyder@redhat.com>
117
118 * valops.c (value_of_local): Restore quotes in error message.
119
120 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
121
122 * symtab.c (symbol_init_language_specific): New function.
123 * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
124 turning most of it into a function.
125 (symbol_init_language_specific): Export.
126
127 2002-10-23 David Carlton <carlton@math.stanford.edu>
128
129 * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
130 (dwarf_attr_name): Ditto.
131 (dwarf_type_encoding_name): Ditto.
132 (scan_partial_symbols): Descend into DW_TAG_namespace entries.
133 (process_die): Handle DW_TAG_namespace,
134 DW_TAG_imported_declaration, DW_TAG_imported_module.
135 (read_namespace): New function.
136
137 2002-10-22 Joel Brobecker <brobecker@gnat.com>
138
139 * configure.in: Define NEW_PROC_API on Interix too.
140 * configure: Regenerate.
141
142 2002-10-21 Joel Brobecker <brobecker@gnat.com>
143
144 * configure: Regenerate using the proper version of autoconf.
145
146 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
147
148 * findvar.c (read_var_value): Temporarily disable TLS code, until
149 complete TLS support is added.
150
151 2002-10-21 Jim Blandy <jimb@redhat.com>
152 Elena Zannoni <ezannoni@redhat.com>
153
154 * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
155 for thread local storage locations.
156 (struct symbol): Add objfile field.
157 (SYMBOL_OBJFILE): Define.
158 * dwarf2read.c (is_thread_local): New static variable.
159 (new_symbol): If variable is in thread local fill in address class
160 and objfile appropriately.
161 (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
162 stack operation.
163 * printcmd.c (address_info): Print the information for thread
164 local storage variable.
165 * findvar.c (read_var_value): In case of thread local variable,
166 defer to the target vector code to compute address.
167
168 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
169
170 * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
171 * solib-svr4.h (svr4_fetch_objfile_link_map): Export.
172
173 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
174
175 * symtab.h (address_class): Rename
176 LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
177 * hpread.c (hpread_process_one_debug_symbol): Ditto.
178 * printcmd.c (address_info): Ditto.
179 * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
180
181 2002-10-20 Mark Kettenis <kettenis@gnu.org>
182
183 * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
184 DBREG_DRX macro to acces debug registers.
185
186 * Makefile.in (i386obsd-tdep.o): New target.
187
188 * solib-sunos.c: Include "bcache.h" and "regcache.h".
189 * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
190
191 * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
192 * config/i386/obsd.mt: New file.
193 * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
194 i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
195 * i386obsd-nat.c (_initialize_i386obsd_nat): Set
196 i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
197 i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
198 * i386obsd-tdep.c: New file.
199
200 2002-10-19 Adam Fedor <fedor@gnu.org>
201
202 * objc-exp.y (name_not_typename): Fix invalid comment.
203
204 2002-10-20 Mark Kettenis <kettenis@gnu.org>
205
206 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
207 to allocate partial syms and macro byte caches.
208
209 2002-10-18 David Carlton <carlton@math.stanford.edu>
210
211 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
212
213 2002-10-18 Adam Fedor <fedor@gnu.org>
214
215 * stabsread.c (find_name_end): New function.
216 (define_symbol): Use it.
217
218 2002-10-18 Daniel Jacobowitz <drow@mvista.com>
219
220 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
221 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
222 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
223 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
224
225 2002-10-17 David Carlton <carlton@math.stanford.edu>
226
227 * symfile.h: Add opaque declaration for struct obstack.
228 Declare obsavestring to take a const char *.
229 * symfile.c (obsavestring): Make first argument a const char *.
230
231 2002-10-16 Adam Fedor <fedor@gnu.org>
232
233 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
234 names when matching breakpoints in current file.
235
236 2002-10-16 Kevin Buettner <kevinb@redhat.com>
237
238 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
239 (read_tag_pointer_type): Add address class support.
240 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
241 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
242 New methods.
243 * gdbarch.h, gdbarch.c: Regenerate.
244 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
245 (make_type_with_address_space, recursive_type_dump): Add address
246 class support.
247 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
248 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
249 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
250
251 2002-10-16 Klee Dienes <kdienes@apple.com>
252
253 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
254 to get the last character of a char[] buffer, not
255 name[sizeof(vptr_name)-1].
256
257 2002-10-14 Adam Fedor <fedor@gnu.org>
258
259 * symtab.h: New objc_specific struct.
260 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
261 (SYMBOL_DEMANGLED_NAME): Likewise.
262
263 2002-10-14 Adam Fedor <fedor@gnu.org>
264
265 * symfile.c (init_filename_language_table): Add ObjC file extension.
266
267 2002-10-14 Adam Fedor <fedor@gnu.org>
268
269 * utils.c (puts_filtered_tabular): New function.
270 (fprintf_symbol_filtered): Get ObjC demangled name.
271 * defs.h (puts_filtered_tabular): Declared.
272
273 2002-10-14 Kevin Buettner <kevinb@redhat.com>
274
275 * c-lang.h (c_type_print_varspec_prefix): Delete.
276 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
277 ``need_post_space'' parameter. Adjust all callers.
278
279 2002-10-14 Daniel Jacobowitz <drow@mvista.com>
280
281 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
282 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
283 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
284 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
285
286 2002-10-13 Adam Fedor <fedor@gnu.org>
287
288 * source.c (print_source_lines): Update comments.
289
290 2002-10-13 Adam Fedor <fedor@gnu.org>
291
292 * valops.c (value_of_local): New function.
293 (value_of_this): Use it.
294 * value.h (value_of_local): Declared.
295
296 2002-10-13 Adam Fedor <fedor@gnu.org>
297
298 * parse.c: (length_of_subexp, prefixify_subexp): Handle
299 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
300
301 2002-10-12 Adam Fedor <fedor@gnu.org>
302
303 * language.c (binop_result_type): Add language_objc to case.
304 (integral_type): Likewise.
305 (character_type): Likewise.
306 (string_type): Likewise.
307 (boolean_type): Likewise.
308 (structured_type): Likewise.
309 (binop_type_check): Likewise.
310
311 2002-10-11 Adam Fedor <fedor@gnu.org>
312
313 * printcmd.c (address_info): Print 'self' for ObjC.
314
315 2002-10-11 Adam Fedor <fedor@gnu.org>
316
317 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
318 OP_SELF.
319
320 2002-10-11 Adam Fedor <fedor@gnu.org>
321
322 * language.h (CAST_IS_CONVERSION): Add language_objc.
323
324 2002-10-11 Adam Fedor <fedor@gnu.org>
325
326 * defs.h (enum language): Add language_objc.
327
328 2002-10-11 Klee Dienes <kdienes@apple.com>
329
330 * findvar.c (read_memory_typed_address): New function.
331 * gdbcore.h (read_memory_typed_address): Add prototype.
332 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
333 to read a value destined for a CORE_ADDR, not read_memory_integer.
334 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
335 (f77_get_dynamic_lowerbound): Ditto.
336
337 2002-10-11 Martin M. Hunt <hunt@redhat.com>
338
339 * utils.c (string_to_core_addr): After turning string into
340 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
341 which will do necessary sign-extension, etc.
342
343 2002-10-11 Daniel Jacobowitz <drow@mvista.com>
344
345 * c-exp.y (THIS): Delete token and grammar rule.
346 (yylex): Don't return THIS.
347 * cp-valprint.c (vtbl_ptr_name_old): Delete.
348 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
349 * demangle.c (cplus_markers): Update comment. Put '$'
350 first. Remove CPLUS_MARKER.
351 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
352 * jv-exp.y (THIS): Delete token and grammar rule.
353 (yylex): Don't return THIS.
354 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
355 * objc-exp.y (THIS): Delete token and grammar rule.
356 (yylex): Don't return THIS.
357 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
358 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
359 (read_member_functions): Likewise for opname.
360 (read_tilde_fields): Use is_cplus_marker.
361
362 * defs.h (CPLUS_MARKER): Don't define.
363 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
364 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
365 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
366 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
367 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
368
369 * config/i386/tm-i386v4.h: Delete file.
370 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
371 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
372 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
373 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
374 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
375 * config/i386/i386sco5.mt (TM_FILE): Likewise.
376 * config/i386/i386v4.mt (TM_FILE): Likewise.
377 * config/i386/ncr3000.mt (TM_FILE): Likewise.
378
379 2002-10-10 Marko Mlinar <markom@opencores.org>
380
381 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
382 accidentially not commited 2002-10-09
383 * gdbarch.h, gdbarch.c: Re-generate.
384
385 2002-10-09 Marko Mlinar <markom@opencores.org>
386
387 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
388 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
389 * gdbarch.h, gdbarch.c: Re-generate.
390
391 2002-10-08 Petr Sorfa <petrs@caldera.com>
392
393 Revised and re-submitted by John Wolfe <jlw@caldera.com>
394
395 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
396 so we can work on more than one compilation unit at a time. This
397 helps prepare GDB to handle inter-CU die references.
398 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
399 the code to be defined before struct comp_unit_head.
400 (comp_unit_head): Added new members - offset, cu_head,
401 begin_die, next and dwarf2_abbrevs.
402 (dwarf2_abbrevs): Removed single static var; now member of
403 struct comp_unit_head.
404 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
405 members.
406 (psymtab_to_symtab_1): Changed to work with the new
407 struct comp_unit_head.
408 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
409 constructs the dwarf2_abbrevs[] inside the cu_header.
410 (dwarf2_empty_abbrev_table): Now expects a ptr to a
411 dwarf2_abbrev table to clean up.
412 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
413 handling of dwarf2_abbrevs inside the cu_header.
414 (read_partial_die): Now supports the call to the new
415 dwarf2_lookup_abbrev.
416 (read_full_die): Now supports the call to the new
417 dwarf2_lookup_abbrev.
418
419 2002-10-06 Christopher Faylor <cgf@redhat.com>
420
421 * Makefile.in (install-gdbtk): Add missing continuation backslash to
422 insure that shell variables, such as "transformed_name" are propagated
423 to later shell statements in rule.
424
425 2002-10-06 Mark Kettenis <kettenis@gnu.org>
426
427 * config/i386/nm-i386sco.h: Add protection against
428 multiple-inclusion. Include "i386/nm-i386v.h".
429 (REGISTER_U_ADDR): Remove define.
430 (i386_register_u_addr): Remove prototype.
431
432 2002-10-04 Michael Snyder <msnyder@redhat.com>
433
434 * m32r-stub.c (handle_exception): Make sure exception is "trap"
435 before treating it as a single-step event.
436
437 2002-10-03 Adam Fedor <fedor@gnu.org>
438
439 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
440 (objc_demangle): Remove assignment in if statements, Replace
441 free with xfree.
442 (add_msglist): Likewise.
443 (end_msglist): Likewise.
444 (complare_selectors): Likewise.
445 (selectors_info): Likewise.
446 (compare_classes): Likewise.
447 (classes_info): Likewise.
448 (print_object_command): Likewise.
449 (find_objc_msgcall_submethod): Replace PTR with void *.
450 * objc-lang.h: Remove check for __STDC__.
451
452 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
453
454 * ui-out.h (ui_out_field_fmt_int): New prototype.
455 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
456 of field width and alignment.
457 * stack.c (print_frame_info_base): When printing frame level, use
458 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
459 PR gdb/192
460
461 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
462
463 * MAINTAINERS: Add self to Write After Approval list.
464
465 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
466
467 * infcmd.c (interrupt_target_command_wrapper): Delete.
468 (interrupt_target_command): Make non static.
469 (nofp_registers_info): Make static.
470 * stack.c (return_command_wrapper): Delete.
471 (return_command): Make non static.
472
473 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
474
475 * event-top.c (gdb_setup_readline): New function. Code moved from
476 _initialize_event_loop().
477 (_initialize_event_loop): Call gdb_setup_readline().
478
479 2002-10-02 Andrew Cagney <ac131313@redhat.com>
480
481 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
482 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
483 * gdbarch.h, gdbarch.c: Re-generate.
484
485 2002-10-02 Daniel Jacobowitz <drow@mvista.com>
486
487 Fix PR gdb/778
488 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
489 before recursing.
490 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
491 of fill_in_vptr_fieldno.
492
493 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
494
495 * inferior.h (registers_info, stepi_command, nexti_command,
496 continue_command, interrupt_target_command): Export from infcmd.c.
497 * frame.h (args_info, selected_frame_level_changed_hook,
498 return_command): Export from stack.c.
499 * v850ice.c (stepi_command, nexti_command, continue_command): use
500 prototypes from inferior.h.
501 * tracepoint.c (registers_info, args_info, locals_info): Use
502 prototypes from frame.h and inferior.h.
503 * Makefile.in (mi-main.o): Add dependency on frame.h.
504
505 2002-10-02 Andrew Cagney <ac131313@redhat.com>
506
507 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
508 value in register 3 adjusted by ppc_gp0_regnum.
509
510 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
511
512 2002-10-02 Marko Mlinar <markom@opencores.org>
513
514 * MAINTAINERS: Add myself to the Write After Approval list.
515
516 2002-10-01 Alexandre Oliva <aoliva@redhat.com>
517
518 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
519 of the section for the N64 ABI, fixed.
520
521 * config/mips/tm-irix6.h: Include solib.h.
522
523 2002-10-01 Elena Zannoni <ezannoni@redhat.com>
524
525 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
526 GNU operators.
527
528 2002-10-01 Andrew Cagney <ac131313@redhat.com>
529
530 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
531 and that "mi0" syntax has been removed.
532
533 2002-09-30 David Carlton <carlton@math.stanford.edu>
534
535 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
536 * ppc-sysv-tdep.c: #include "gdb_string.h".
537 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
538 pacify GCC.
539
540 2002-10-01 Andrew Cagney <ac131313@redhat.com>
541
542 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
543 "vrsave"'s register number.
544
545 2002-09-30 Andrew Cagney <ac131313@redhat.com>
546
547 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
548 use frame_unwind_signed_register to obtain the PC.
549 (mips_frame_chain): Handle a generic dummy frame.
550 (mips_init_extra_frame_info): When a generic dummy frame, don't
551 re-compute the frame base.
552 (mips_pop_frame): Handle generic dummy frames.
553 (mips_gdbarch_init): When generic dummy frames, set
554 use_generic_dummy_frames, push_dummy_frame to
555 generic_push_dummy_frame, pc_in_call_dummy to
556 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
557 generic_save_dummy_frame_tos.
558
559 2002-09-30 Andrew Cagney <ac131313@redhat.com>
560
561 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
562 against TOP when TOP was explictly set.
563 (generic_push_dummy_frame): Set TOP to zero.
564
565 2002-09-30 Elena Zannoni <ezannoni@redhat.com>
566
567 * event-loop.c (start_event_loop): Rename variable 'result' to
568 'gdb_result', to avoid conflicts with upcoming intepreters changes.
569
570 2002-09-30 Keith Seitz <keiths@redhat.com>
571
572 * gdb-events.sh (selected_thread_changed): New event.
573 * gdb-events.c: Regenerated.
574 * gdb-events.h: Regenerated.
575
576 2002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
577
578 * MAINTAINERS: Add self to Write After Approval list.
579
580 2002-09-30 Fernando Nasser <fnasser@redhat.com>
581
582 * disasm.c: New file.
583 * disasm.h: New file.
584 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
585 (compare_lines): Ditto.
586 (dump_insns): Ditto.
587 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
588 argument.
589 (do_assembly_only): Ditto.
590 (do_disassembly): Renamed to gdb_disassembly and moved to
591 disasm.c. Sdded uiout argument.
592 * Makefile.in: Add new files. Reorder SFILES list. Update
593 dependencies. Include libgdb.a later in the insight executable.
594
595 2002-09-29 Andrew Cagney <ac131313@redhat.com>
596
597 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
598 bfd/elf64-alpha-fbsd.c.
599
600 2002-09-29 Andrew Cagney <ac131313@redhat.com>
601
602 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
603 i386gnu-tdep.c.
604
605 2002-09-29 Andrew Cagney <ac131313@redhat.com>
606
607 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
608 __FUNCTION__.
609 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
610 function name.
611 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
612 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
613 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
614 (S_msg_sig_post_reply): Ditto.
615
616 2002-09-28 Corinna Vinschen <vinschen@redhat.com>
617
618 * sh-tdep.c (sh_use_struct_convention): Use definition according
619 to ABI.
620 (sh_push_arguments): Store in register with correct endianess.
621 (sh_default_store_return_value): Ditto.
622 (sh_gdbarch_init): Set sizeof long double to 8.
623
624 2002-09-27 Mark Kettenis <kettenis@gnu.org>
625
626 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
627 Fix some whitespace problems.
628
629 2002-09-27 David Carlton <carlton@math.stanford.edu>
630
631 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
632 (mcore-tdep.o): Ditto.
633 (ns32k-tdep.o): Ditto.
634 (ns32knbsd-tdep.o): Ditto.
635 (sh3-rom.o): Ditto.
636 (vax-tdep.o): Ditto.
637 * cris-tdep.c: #include "gdb_string.h"
638 * mcore-tdep.c: Ditto.
639 * ns32k-tdep.c: Ditto.
640 * ns32knbsd-tdep.c: Ditto.
641 * sh3-rom.c: Ditto.
642 * vax-tdep.c: Ditto.
643
644 2002-09-27 David Carlton <carlton@math.stanford.edu>
645
646 * config/djgpp/fnchange.lst: Add entries for
647 gdb/testsuite/gdb.c++/m-static files.
648
649 2002-09-27 Jim Wilson <wilson@redhat.com>
650
651 * MAINTAINERS: Add myself to the Write After Approval list.
652
653 2002-09-26 Martin M. Hunt <hunt@redhat.com>
654
655 * mips-tdep.c (find_proc_desc): Initialize startaddr.
656
657
658 2002-09-26 Andrew Cagney <ac131313@redhat.com>
659
660 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
661 frame.
662
663 2002-09-26 Andrew Cagney <ac131313@redhat.com>
664
665 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
666 (rs6000_struct_return_address): Delete variable.
667 (rs6000_store_struct_return): Update.
668 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
669 deprecated_extract_struct_value_address.
670 (rs6000_frame_align): New function.
671 (rs6000_gdbarch_init): Set frame_align.
672
673 2002-09-26 Andrew Cagney <ac131313@redhat.com>
674
675 From Grace Sainsbury <graces@redhat.com>:
676 * Makefile.in (gdbtk-main.o): New target.
677 (gdb.o): New target.
678 (main_h): Define.
679 (main.o): Update dependencies.
680 (gdb$(EXEEXT)): Add gdb.o.
681 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
682 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
683 (SUBDIR_GDBTK_CLEAN): Set.
684 (install-gdbtk): Install the insight binary.
685 (uninstall-gdbtk): New target.
686 (all-gdbtk, clean-gdbtk): New rule.
687 * top.c (use_windows): Default to zero.
688 * main.c: Include "main.h".
689 (main): Delete.
690 (struct captured_main_args): Delete.
691 (gdb_main): New function.
692 * main.h: New file.
693 * gdb.c: New File.
694
695 2002-09-25 Andrew Cagney <cagney@redhat.com>
696
697 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
698 (frame_map_regnum_to_name): New function.
699 (frame_map_name_to_regnum): New function.
700 * frame.h (frame_map_name_to_regnum): Declare.
701 (frame_map_regnum_to_name): Declare.
702 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
703 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
704 * parse.c: Do not include "builtin-regs.h".
705 (target_map_name_to_register): Delete function.
706 (write_dollar_variable): Use frame_map_name_to_regnum.
707 * parser-defs.h (target_map_name_to_register): Delete declaration.
708 * expprint.c: Include "frame.h".
709 (print_subexp): Use frame_map_regnum_to_name.
710 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
711 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
712
713 2002-09-25 Andrew Cagney <ac131313@redhat.com>
714
715 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
716 wasn't saved, and the next innermost frame is a dummy, return the
717 dummy frame's link register.
718
719 2002-09-24 Jim Blandy <jimb@redhat.com>
720
721 Fix from Paul Breed:
722 * main.c (captured_main): Add a `break' after the case for 'b'.
723
724 2002-09-24 Keith Seitz <keiths@redhat.com>
725
726 * varobj.c (c_type_of_child): Use get_target_type instead
727 of TYPE_TARGET_TYPE.
728
729 2002-09-22 Fernando Nasser <fnasser@redhat.com>
730
731 * source.c (get_current_or_default_source_symtab_and_line): Remove
732 function.
733 (set_default_source_symtab_and_line): New function. Attempts to
734 determine a source file to list lines from if one is not currently
735 defined.
736 (get_current_source_symtab_and_line): Initialize sal.pc and
737 sal.end fields.
738 (set_current_source_symtab_and_line): Mark argument as const.
739 * source.h: Update declarations and comments.
740 * linespec.c (decode_line_1): Replace call to removed routine above.
741 * stack.c (print_frame_info_base): Ditto.
742 * cli/cli-cmds.c (edit_command): Ditto.
743 (list_command): Ditto.
744
745 2002-09-22 Fernando Nasser <fnasser@redhat.com>
746
747 * source.c (get_current_or_default_source_symtab_and_line): Initialize
748 sal.pc and sal.end fields.
749 (get_current_or_default_source_symtab_and_line): Ditto.
750 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
751 so we do not cause a new source symtab to be searched for (reverting an
752 unintentional change from the 2002-09-20 patch).
753 * scm-lang.c (scm_unpac): Ditto.
754
755 2002-09-21 Andrew Cagney <cagney@redhat.com>
756
757 * complaints.c (symfile_explanations): Remove new-line from
758 ``isolated_message''.
759 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
760 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
761
762 2002-09-20 Nick Clifton <nickc@redhat.com>
763
764 * NEWS: Announce that V850EA ISA is no longer supported.
765 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
766
767 2002-09-20 David Carlton <carlton@math.stanford.edu>
768
769 * Makefile.in (c-lang.o): Correct dependencies.
770 (utils.o): Gather dependencies.
771 (charset.o): Move.
772 * c-lang.c: #include "gdb_string.h"
773
774 2002-09-20 Fernando Nasser <fnasser@redhat.com>
775
776 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
777 * cli/cli-cmds.c (list_command): New function. Implements the new
778 cli edit command.
779 (_init_cli_cmds): Add new command definition.
780 * gdb.1: Document edit command.
781 * doc/gdb.texinfo: Document edit command.
782
783 2002-09-20 Fernando Nasser <fnasser@redhat.com>
784
785 * source.c: Make global variables current_source_symtab and
786 current_source_line static.
787 (list_command): Moved to cli/cli-cmds.c.
788 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
789 (get_first_line_listed): New accessor function.
790 (get_lines_to_list): New accessor function.
791 (get_current_source_symtab_and_line): New function. Retrieves the
792 position in the source code that we consider current.
793 (get_current_or_default_source_symtab_and_line): New function.
794 Like the above but attempts to determine a default position if one
795 is not currently defined.
796 (set_current_source_symtab_and_line): New function. Sets the source
797 code position considered current and returns the previously set one.
798 (clear_current_source_symtab_and_line): Reset stored information about
799 a current source line.
800 (_initialize_source): Remove registration for the "list" command and
801 its alias.
802 * source.h: Add declarations for the new functions above.
803 * symtab.h: Remove declarations for the global variables mentioned
804 above.
805 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
806 obtain current source line.
807 * linespec.c (decode_line_1): Ditto.
808 * macroscope.c (default_macro_scope): Ditto.
809 * scm-lang.c (scm_unpac): Ditto.
810 * stack.c (print_frame_info_base): Ditto.
811 * symfile.c (clear_symtab_users): Ditto.
812 * symtab.c (decode_line_spec): Ditto.
813 * cli/cli-cmds.c (list_command): Moved here from source.c.
814 (ambiguous_line_spec): Moved here from source.c.
815 (_init_cli_cmds): Add definition for "list" and its alias.
816 * Makefile.in: Update dependencies.
817
818 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
819
820 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
821 with what gcc thinks is correct.
822
823 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
824
825 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
826 multiple register push instruction.
827
828 2002-09-19 Jim Blandy <jimb@redhat.com>
829
830 Add support for distinct host and target character sets.
831 * charset.c, charset.h: New files.
832 * c-exp.y: #include "charset.h".
833 (yylex): Convert character and string literals to the target
834 character set, before returning them as the semantic value of the
835 token.
836 * c-lang.c: #include "charset.h".
837 (c_emit_char): Use charset-specific methods to recognize
838 characters with backslash escape forms, to decide which characters
839 to print literally and which to print using numeric escape
840 sequences, and to convert target characters to host characters
841 before printing.
842 * utils.c: #include "charset.h".
843 (no_control_char_error): New function.
844 (parse_escape): Use charset-specific methods to recognize
845 backslash escapes, parse `control character' notation, and convert
846 characters from the host character set to the target character set.
847 * configure.in: Set the default host character set.
848 Check where to find iconv, and what its argument types might be.
849 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
850 * Makefile.in (SFILES): List charset.c.
851 (COMMON_OBS): List charset.o.
852 (charset.o): New rule.
853 (charset_h): New header dependency variable.
854 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
855 (LIBICONV): New variable, set by configure.
856 (CLIBS): Include $(LIBICONV) here.
857 * aclocal.m4, config.in, configure: Regenerated.
858
859 2002-09-19 Joel Brobecker <brobecker@gnat.com>
860
861 * ada-exp.y: Add missing semicolons to end rules. Fixes a
862 bison 1.35 warning.
863
864 2002-09-19 Richard Earnshaw <rearnsha@arm.com>
865
866 * gdb_mbuild.sh: New file.
867
868 2002-09-19 Andrew Cagney <ac131313@redhat.com>
869
870 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
871
872 2002-09-18 Andrew Cagney <ac131313@redhat.com>
873
874 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
875 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
876 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
877 valops.c, value.h: Revert previous change.
878
879 2002-09-18 Michael Snyder <msnyder@redhat.com>
880
881 Preliminary support for Objective-C:
882 * defs.h (language_objc): New enum value.
883 (puts_filtered_tabular): Declaration only, exported from utils.c.
884 (skip_quoted): Delete, declared in completer.h.
885 * c-exp.y: Include completer.h.
886 * p-exp.y: Ditto.
887 * jv-exp.y: Ditto.
888 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
889 New operator enum values.
890 * language.h (CAST_IS_CONVERSION): Test for language_objc.
891 * language.c (binop_result_type): Handle language_objc case.
892 (integral_type, character_type, string_type, boolean_type,
893 structured_type, binop_type_check): Ditto.
894 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
895 (struct objc_specific): Add to general_symbol_info.
896 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
897 (SYMBOL_DEMANGLED_NAME): Handle objc case.
898 * parser-defs.h (struct objc_class_str): New struct type.
899 (start_msglist, end_msglist, add_msglist): Declaration only,
900 exported from objc-lang.c.
901 * value.h (value_of_local, value_nsstring,
902 call_function_by_hand_expecting_type): Exported from valops.c.
903 * valops.c (find_function_addr): Export.
904 (call_function_by_hand_expecting_type): New function.
905 (value_of_local): New function.
906 * symfile.c (init_filename_language_table): Add ".m" extension
907 for Objective-C.
908 * utils.c (puts_filtered_tabular): New function.
909 (fprintf_symbol_filtered): Add objc demangling support (disabled).
910 (set/show demangle): Extend help-string to refer to ObjC.
911 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
912 * stabsread.c (symbol_reference_defined): Objective-C symbols
913 may contain colons: make allowances when scanning stabs strings
914 for colons.
915 (objc_find_colon): New function.
916 * printcmd.c (address_info): If language == objc then print
917 "self" instead of "this".
918 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
919 OP_NSSTRING, and OP_SELF.
920 (prefixify_subexp): Ditto.
921 * source.c (print_source_lines): Mention objc in comment.
922 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
923 method names.
924
925 2002-09-18 Andrew Cagney <ac131313@redhat.com>
926
927 * complaints.h: Update copyright.
928 (struct complaints): Declare.
929 (struct complaint): Make `message' constant.
930 (internal_complaint): Declare.
931 (complaint): Declare.
932 (complaint_root): Delete declaration.
933 (symfile_complaints): Delete declaration.
934 (struct complaints): Add opaque declaration.
935 (clear_complaints): Add a complaints parameter.
936 * complaints.c: Update copyright.
937 (enum complaint_series): Define.
938 (complaint_root): Delete.
939 (struct complaints): Define.
940 (complaint_sentinel, symfile_complaint_book): New variables.
941 (symfile_explanations, symfile_complaints): New variables.
942 New variables.
943 (get_complaints): New function.
944 (vcomplaint): New function.
945 (complaint): New function.
946 (internal_complaint): New function.
947 (complain): Call vcomplain with symfile_complaint.
948 (clear_complaints): Rewrite.
949 (_initialize_complaints): Use add_setshow_command.
950 * Makefile.in (complaints.o): Update dependencies.
951 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
952 to call to clear_complaints.
953 (new_symfile_objfile, reread_symbols): Ditto.
954 (oldsyms_complaint): Delete.
955 (empty_symtab_complaint, unknown_option_complaint): Delete.
956 (free_named_symtabs): Use complaint instead of complain.
957
958 2002-09-18 Michael Snyder <msnyder@redhat.com>
959
960 Contributed by Apple Computer, Inc. Merged with current sources
961 by Adam Fedor <fedor@doc.com> [cagney].
962
963 * objc-lang.c: First clean-up round: comments, indentation.
964 * objc-lang.h: Ditto.
965 * objc-lang.y: Ditto.
966
967 2002-09-18 Andrew Cagney <ac131313@redhat.com>
968
969 * maint.c (maintenance_internal_error): Print the parameter as the
970 error message.
971 (maintenance_internal_warning): New function.
972 (_initialize_maint_cmds): Add command `maint internal-warning'.
973
974 * defs.h (internal_warning, internal_vwarning): Declare.
975 * utils.c (struct internal_problem): Define.
976 (internal_vproblem): New function.
977 (internal_warning): New function.
978 (internal_vwarning): New function.
979 (internal_warning_problem, internal_error_problem): New variables.
980 (internal_verror): Just call internal_vproblem.
981
982 2002-09-18 Michael Snyder <msnyder@redhat.com>
983
984 * objc-lang.c: New file, support for Objective-C.
985 Preliminary check-in, not yet integrated into gdb.
986 * objc-lang.h: New file.
987 * objc-exp.y: New file.
988
989 2002-09-18 Andrew Cagney <ac131313@redhat.com>
990
991 * infrun.c (signal_stop_update): Convert definition to ISO C.
992 (signal_print_update): Ditto.
993 (signal_pass_update): Ditto.
994 * inflow.c (terminal_save_ours): Ditto.
995
996 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
997 comments.
998
999 * config/djgpp/fnchange.lst: Handle name clashes between
1000 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
1001 bfd/coff-tic80.c.
1002
1003 * i386-linux-tdep.h: Fix tipo.
1004
1005 2002-09-18 Adam Fedor <fedor@gnu.org>
1006
1007 * MAINTAINERS: Add myself to the Write After Approval list.
1008
1009 2002-09-18 Jim Blandy <jimb@redhat.com>
1010
1011 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
1012 texthigh and textlow to reader-specific structs caused
1013 objfile_relocate to miss them. This is fixable, but the work that
1014 the change was supposed to prepare GDB for never got done anyway.
1015
1016 2002-09-18 David Carlton <carlton@math.stanford.edu>
1017
1018 * MAINTAINERS: Alphabetize Write After Approval list.
1019
1020 2002-09-18 Daniel Jacobowitz <drow@mvista.com>
1021
1022 Fix PR gdb/709
1023 * values.c (value_static_field): Call read_var_value.
1024
1025 2002-09-18 Andrew Cagney <ac131313@redhat.com>
1026
1027 * valops.c (hand_function_call): Align the initial stack pointer
1028 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
1029 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
1030 return value.
1031 * mips-tdep.c (mips_frame_align): New function.
1032 (mips_gdbarch_init): Set frame_align.
1033 * gdbarch.sh (FRAME_ALIGN): New method.
1034 * gdbarch.h, gdbarch.c: Re-generate.
1035
1036 2002-09-18 Michal Ludvig <mludvig@suse.cz>
1037
1038 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
1039 registers.
1040
1041 2002-09-17 Andrew Cagney <ac131313@redhat.com>
1042
1043 * NEWS: Mention that MIPS $fp behavior changed.
1044 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
1045 reference to FP_REGNUM.
1046 (mipsnbsd_cannot_store_register): Ditto.
1047 * mips-linux-nat.c: Update copyright.
1048 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
1049 (mips_linux_cannot_store_register): Ditto.
1050 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
1051 * config/mips/tm-mips.h: Update copyright.
1052 (FP_REGNUM): Delete macro.
1053 (MIPS_REGISTER_NAMES): Replace "fp" with "".
1054 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
1055 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
1056 (mips_r3041_reg_names, mips_r3051_reg_names)
1057 (mips_r3081_reg_names): Replace "fp" with "".
1058 Fix PR gdb/480.
1059
1060 2002-09-17 Theodore A. Roth <troth@verinet.com>
1061
1062 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
1063 generic_read_register_dummy() (PR gdb/703).
1064 (avr_push_return_address): #if 0 out unused vars.
1065 (avr_gdbarch_init): Enable use of avr_push_return_address().
1066
1067 2002-09-17 Michael Snyder <msnyder@redhat.com>
1068
1069 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
1070 RTE will take care of it.
1071
1072 2002-09-17 Andrew Cagney <ac131313@redhat.com>
1073
1074 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
1075 invalid, return SP_REGNUM.
1076
1077 2002-09-17 Michael Snyder <msnyder@redhat.com>
1078
1079 * mips-tdep.c (mips_pop_frame): Read saved values of floating
1080 point registers without sign extension.
1081
1082 2002-09-17 Andrew Cagney <cagney@redhat.com>
1083
1084 * blockframe.c (deprecated_read_register_dummy): Rename
1085 generic_read_register_dummy.
1086 * frame.c (frame_unwind_signed_register): New function.
1087 (frame_unwind_unsigned_register): New function.
1088 * frame.h (frame_unwind_signed_register): Declare.
1089 (frame_unwind_unsigned_register): Declare.
1090 (deprecated_read_register_dummy): Rename
1091 generic_read_register_dummy.
1092
1093 * h8300-tdep.c (h8300_frame_chain): Update.
1094 (h8300_frame_saved_pc): Update.
1095 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
1096 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
1097 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
1098 (s390_frame_chain): Update.
1099 * v850-tdep.c (v850_find_callers_reg): Update.
1100 (v850_frame_saved_pc): Update.
1101 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
1102 (m32r_find_callers_reg): Update.
1103 (m32r_frame_saved_pc): Update.
1104 * sh-tdep.c (sh_find_callers_reg): Update.
1105 (sh64_get_saved_pr): Update.
1106 (sh_init_extra_frame_info): Update.
1107 (sh_init_extra_frame_info): Update.
1108 (sh64_init_extra_frame_info): Update.
1109 (sh64_init_extra_frame_info): Update.
1110 * mcore-tdep.c (mcore_find_callers_reg): Update.
1111 (mcore_frame_saved_pc): Update.
1112 (mcore_init_extra_frame_info): Update.
1113 * i386-tdep.c (i386_frame_saved_pc): Update.
1114 * ia64-tdep.c (ia64_frame_saved_pc): Update.
1115 (ia64_init_extra_frame_info): Update.
1116 (ia64_init_extra_frame_info): Update.
1117 * d10v-tdep.c (d10v_frame_saved_pc): Update.
1118 * cris-tdep.c (cris_init_extra_frame_info): Update.
1119 * avr-tdep.c (avr_frame_chain): Update.
1120 (avr_init_extra_frame_info): Update.
1121 (avr_frame_saved_pc): Update.
1122 * arm-tdep.c (arm_find_callers_reg): Update.
1123 (arm_init_extra_frame_info): Update.
1124 (arm_frame_saved_pc): Update.
1125
1126 2002-09-17 Tom Tromey <tromey@redhat.com>
1127
1128 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
1129 is "'".
1130
1131 2002-09-17 Corinna Vinschen <vinschen@redhat.com>
1132
1133 * MAINTAINERS: Remove "non multi-arched" text from h8300.
1134 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
1135 NEXT_PROLOGUE_INSN.
1136 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
1137 NEXT_PROLOGUE_INSN.
1138
1139 2002-09-16 Joel Brobecker <brobecker@gnat.com>
1140
1141 * osfsolib.c: Remove file, replaced by solib-osf.c.
1142 * Makefile.in: Remove compilation rules for osfsolib.c.
1143
1144 2002-09-16 David Carlton <carlton@math.stanford.edu>
1145
1146 * cp-valprint.c (cp_print_class_method): Correct args to
1147 check_stub_method_group.
1148
1149 2002-09-16 Corinna Vinschen <vinschen@redhat.com>
1150
1151 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
1152 `set architecture'. Unify naming convention of functions.
1153 (h8300_skip_prologue): Improve prologue analysis.
1154 (h8300_push_arguments): Rewritten to more closely match GCC's
1155 bizarre argument-passing behavior, along with the comment describing
1156 said behavior.
1157 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
1158 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
1159 sim, remote-e7000.c, remote-hms.c and remote.c
1160
1161 2002-09-15 Mark Kettenis <kettenis@gnu.org>
1162
1163 * i386-tdep.c (gdb_print_insn_i386): Removed.
1164 (i386_print_insn): New function.
1165 (i386_gdbarch_init): Set print_insn to i386_print_insns.
1166 (_initialize_i386_tdep): Don't initialize tm_print_insn and
1167 tm_print_insn_info.
1168
1169 2002-09-14 Mark Kettenis <kettenis@gnu.org>
1170
1171 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
1172 zero.
1173
1174 2002-09-14 Corinna Vinschen <vinschen@redhat.com>
1175
1176 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
1177 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
1178 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
1179
1180 2002-09-13 Christopher Faylor <cgf@redhat.com>
1181
1182 * win32-nat.c (child_create_inferior): Honor 'tty' command.
1183
1184 2002-09-13 Daniel Jacobowitz <drow@mvista.com>
1185
1186 * gdbtypes.c (check_stub_method): Make static.
1187 (check_stub_method_group): New function.
1188 * gdbtypes.h: Update prototypes.
1189 * cp-support.c: New file.
1190 * cp-support.h: New file.
1191
1192 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
1193 (update_method_name_from_physname): New function.
1194 (read_member_functions): Correct method names for operators
1195 and v3 constructors/destructors. Separate v2 constructors and
1196 destructors.
1197 * Makefile.in (stabsread.o): Update dependencies.
1198 (SFILES): Add cp-support.c.
1199 (COMMON_OBS): Add cp-support.o.
1200 (cp_support_h, cp-support.o): Add.
1201
1202 * cp-valprint.c (cp_print_class_method): Call
1203 check_stub_method_group instead of check_stub_method. Remove
1204 extraneous QUITs.
1205 * p-valprint.c (pascal_object_print_class_method): Likewise.
1206 * valops.c (search_struct_method): Likewise.
1207 (find_method_list, value_struct_elt_for_reference): Likewise.
1208
1209 2002-09-13 Andrew Cagney <cagney@redhat.com>
1210
1211 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
1212 * gdbarch.h, gdbarch.c: Regenerate.
1213
1214 2002-09-13 Andrew Cagney <ac131313@redhat.com>
1215
1216 * frame.c (find_saved_register): Delete function.
1217 * frame.h (find_saved_register): Delete declaration.
1218 Fix PR gdb/631.
1219
1220 Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
1221
1222 * mips-tdep.c (read_next_frame_reg): Re-hack using
1223 frame_register_unwind.
1224
1225 Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
1226
1227 * mips-tdep.c (mips_get_saved_register): Re-hack using
1228 frame_register_unwind.
1229
1230 2002-09-12 Joel Brobecker <brobecker@gnat.com>
1231
1232 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
1233 vector. Will be useful for Interix.
1234 * gdbarch.h, gdbarch.c: Regenerate.
1235
1236 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
1237 name of the malloc function by NAME_OF_MALLOC.
1238
1239 2002-09-12 Joel Brobecker <brobecker@gnat.com>
1240
1241 * value.h (find_function_in_inferior): Add const keyword to
1242 one of the parameters. Allows us to invoke this function with
1243 a const char *.
1244 * valops.c (find_function_in_inferior): Likewise.
1245
1246 2002-09-12 Joel Brobecker <brobecker@gnat.com>
1247
1248 * exec.c (xfer_memory): Fix compilation warning with old versions
1249 of GCC.
1250 * tracepoint.c (trace_find_tracepoint_command): Likewise.
1251
1252 2002-09-12 David Carlton <carlton@math.stanford.edu>
1253
1254 * symtab.h: Run through gdb_indent.h.
1255 Add 2002 to Copyright year list.
1256
1257 2002-09-12 Alan Modra <amodra@bigpond.net.au>
1258
1259 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
1260 mach constants.
1261 * MAINTAINERS: Add myself to write after approval list.
1262
1263 2002-09-11 J. Brobecker <brobecker@gnat.com>
1264
1265 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
1266
1267 2002-09-11 J. Brobecker <brobecker@gnat.com>
1268
1269 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
1270 Interix.
1271
1272 2002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
1273
1274 * procfs.c (do_detach): Clear current signal, not just fault.
1275 Corrects problem with breakpoint trap signal leaking to detached
1276 process on Tru64.
1277
1278 2002-09-10 Michael Snyder <msnyder@redhat.com>
1279
1280 * buildsym.c (finish_block): Protect against null pointer.
1281
1282 2002-09-10 Andrew Cagney <cagney@redhat.com>
1283
1284 * infcmd.c (default_print_registers_info): Send all output to
1285 ``file'' instead of ``gdb_stdout''.
1286
1287 2002-09-10 Michael Snyder <msnyder@redhat.com>
1288
1289 * mips-tdep.c (mips_extract_struct_value_address): Make val a
1290 LONGEST, and use signed register read (addresses are sign-
1291 extended for mips).
1292
1293 2002-09-10 Stephane Carrez <stcarrez@nerim.fr>
1294
1295 * event-loop.c (gdb_do_one_event): Make public.
1296 * event-loop.h (gdb_do_one_event): Declare.
1297
1298 2002-09-10 Jeff Law <law@redhat.com>
1299
1300 * infttrace.c (child_resume): Simplify and rework to avoid
1301 TT_PROC_CONTINUE.
1302
1303 2002-09-09 Fred Fish <fnf@intrinsity.com>
1304
1305 * printcmd.c (print_scalar_formatted): "len" is the number of
1306 target bytes, NOT the number of target bits.
1307
1308 2002-09-09 Elena Zannoni <ezannoni@redhat.com>
1309
1310 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
1311 * top.c (init_main): Set rl_terminal_name.
1312
1313 2002-09-08 Aidan Skinner <aidan@velvet.net>
1314
1315 * ada-lang.c (ada_array_bound, ada_type_match,
1316 _initialize_ada_language): Fix K&R definitions.
1317 * ada-tasks.c (get_current_task): Fix K&R definitions.
1318 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
1319
1320 2002-09-07 Christopher Faylor <cgf@redhat.com>
1321
1322 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
1323 Add XP.
1324
1325 2002-09-06 Mark Kettenis <kettenis@gnu.org>
1326
1327 * i386-tdep.c (i386_register_virtual_type,
1328 i386_register_convertible, i386_register_convert_to_virtual,
1329 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
1330 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
1331 (i386_gdbarch_init): Fix comment. Add comments on calls that set
1332 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
1333 Don't set push_arguments twice.
1334
1335 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
1336 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
1337 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
1338 sigtramp_end to NULL.
1339 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
1340 defines.
1341 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
1342
1343 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
1344 whitespace.
1345
1346 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
1347 * gdbarch.h, gdbarch.c: Re-generate.
1348 * blockframe.c (find_pc_sect_partial_function): Convert to use
1349 SIGTRAMP_START_P predicate.
1350
1351 2002-09-05 Michael Snyder <msnyder@redhat.com>
1352
1353 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
1354 generic_dummy_frame method and old method. Also distinguish
1355 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
1356 (arm_extract_return_value): Use new regcache method.
1357
1358 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
1359 adjustment that doesn't conform to the ABI.
1360 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
1361 saved regcache, not from current regcache.
1362
1363 2002-09-05 Andrew Cagney <ac131313@redhat.com>
1364
1365 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
1366 * README: Update.
1367
1368 2002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
1369
1370 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
1371 if arm_apcs_32 is false.
1372
1373 2002-09-04 Andrew Cagney <ac131313@redhat.com>
1374
1375 GDB 5.3 branch created.
1376
1377 2002-09-03 Theodore A. Roth <troth@verinet.com>
1378
1379 * gdb/avr-tdep.c (avr_gdbarch_init): Use
1380 generic_unwind_get_saved_register.
1381
1382 2002-09-03 David Carlton <carlton@math.stanford.edu>
1383
1384 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
1385 argument (PR gdb/653). Update call to smash_to_method_type.
1386 (read_structure_scope): Update call to dwarf2_add_member_fn.
1387
1388 2002-09-03 Michal Ludvig <mludvig@suse.cz>
1389
1390 * x86-64-linux-tdep.c: Include gdb_string.h
1391 * x86-64-linux-nat.c: Ditto.
1392
1393 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1394
1395 * ada-exp.y (yyname, yyrule): Remap global variables that appear
1396 when YYDEBUG is set to 1.
1397 * c-exp.y: Likewise.
1398 * f-exp.y: Likewise.
1399 * jv-exp.y: Likewise.
1400 * m2-exp.y: Likewise.
1401 * p-exp.y: Likewise.
1402
1403 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1404
1405 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
1406 dependency list.
1407 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
1408 solib_svr4_fetch_link_map_offsets to
1409 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
1410 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
1411 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
1412 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
1413 solib-svr4.o, and solib-legacy.o.
1414 * config/i386/tm-nbsd.h: Include solib.h.
1415
1416 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1417
1418 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
1419 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
1420 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
1421 comment noting that this needs its own target configuration.
1422 * config/i386/nbsd.mt: New file.
1423 * config/i386/nbsdaout.mt: Remove.
1424 * config/i386/nbsdelf.mt: Ditto.
1425 * config/i386/tm-nbsdaout.h: Ditto.
1426
1427 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1428
1429 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
1430 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
1431 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
1432 tdep->sigtramp_end.
1433 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
1434 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
1435 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
1436
1437 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1438
1439 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
1440 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
1441 * i386-tdep.h (i386bsd_init_abi): New prototype.
1442 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
1443 function declaration.
1444 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
1445 for NetBSD-a.out or NetBSD-ELF.
1446 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
1447 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
1448 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
1449 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
1450 and nbsd-tdep.h.
1451 (i386nbsd_pc_in_sigtramp): New function.
1452 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1453 i386nbsd_pc_in_sigtramp.
1454 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
1455 and i386nbsdelf_init_abi OS ABI handlers.
1456 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
1457 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
1458
1459 2002-09-02 Mark Kettenis <kettenis@gnu.org>
1460
1461 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
1462 registers if the target really has them.
1463
1464 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1465
1466 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
1467 than nbsd-tdep.h.
1468
1469 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1470
1471 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
1472 list.
1473 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
1474 (alphanbsd_skip_sigtramp_frame): New functions.
1475 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
1476 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
1477 to alphanbsd_sigcontext_addr.
1478
1479 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1480
1481 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
1482 list.
1483 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
1484 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
1485 nbsd_pc_in_sigtramp.
1486 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
1487 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
1488 * nbsd-tdep.c: Include gdb_string.h.
1489 (nbsd_pc_in_sigtramp): New function.
1490 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
1491 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
1492 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1493 ppcnbsd_pc_in_sigtramp.
1494 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
1495 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1496 shnbsd_pc_in_sigtramp.
1497 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
1498 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
1499 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
1500
1501 2002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
1502
1503 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
1504 watchpoints to NULL.
1505 (insert_breakpoints): set val field of watchpoints if NULL.
1506
1507
1508 2002-08-29 Jim Blandy <jimb@redhat.com>
1509
1510 * symtab.c (lookup_symbol_aux): In the cases where we find a
1511 minimal symbol of an appropriate name and use its address to
1512 select a symtab to read and search, use `name' (as passed to us)
1513 as the demangled name when searching the symtab's global and
1514 static blocks, not the minsym's name.
1515
1516 2002-08-29 Keith Seitz <keiths@redhat.com>
1517
1518 * stack.c (print_frame_info_base): Always set current_source_symtab
1519 and current_source_line.
1520
1521 2002-08-29 Donn Terry <donnte@microsoft.com>
1522
1523 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
1524
1525 2002-08-28 Keith Seitz <keiths@redhat.com>
1526
1527 * stack.c (select_frame): Add FIXME concerning selected-frame
1528 events.
1529 (select_frame_command): Send selected-frame-level-changed
1530 event notification, but only if the level actually changed.
1531 (up_silently_base): Add selected-frame-level-changed event
1532 notification.
1533 (down_silently_base): Likewise.
1534
1535 2002-08-28 Andrew Cagney <ac131313@redhat.com>
1536
1537 * Makefile.in: Update dependencies for all gdb/*.c files.
1538
1539 2002-08-27 Tom Tromey <tromey@redhat.com>
1540
1541 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
1542 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
1543 Update dependencies.
1544 * i387-tdep.c: Include gdb_string.h.
1545 * osabi.c: Likewise.
1546 * i386-linux-nat.c: Likewise.
1547 * lin-lwp.c: Likewise.
1548 * ax-gdb.c: Likewise.
1549 * signals/signals.c: Likewise.
1550 * jv-valprint.c: Likewise.
1551 * p-lang.c: Likewise.
1552 * c-valprint.c: Likewise.
1553 * cp-abi.c: Likewise.
1554
1555 2002-08-27 Elena Zannoni <ezannoni@redhat.com>
1556
1557 * cli/cli-script.h (copy_command_lines): Export.
1558 * breakpoint.c: Include cli/cli-script.h.
1559 * Makefile.in (breakpoint.o): Update dependencies.
1560
1561 2002-08-26 Michael Snyder <msnyder@redhat.com>
1562
1563 * breakpoint.c (insert_breakpoints): Protect all references
1564 to 'process_warning'. Shorten long lines.
1565
1566 2002-08-26 Joel Brobecker <brobecker@gnat.com>
1567
1568 * cli/cli-script.c (copy_command_lines): New function.
1569 * defs.h (copy_command_lines): Export.
1570 * testsuite/gdb.base/commands.exp: New tests for commands
1571 attached to a temporary breakpoint, and for commands that
1572 delete the breakpoint they are attached to.
1573
1574 2002-08-26 Michael Snyder <msnyder@redhat.com>
1575
1576 * breakpoint.c (bpstat_stop_status): Instead of copying the
1577 pointer to the breakpoint commands struct, make a new copy
1578 of the struct and point to that.
1579 (bpstat_clear): Free the commands struct.
1580 (bpstat_clear_actions): Free the commands struct.
1581 (bpstat_do_actions): Free the command actions. Also execute
1582 the local cleanups, instead of deleting them.
1583 (delete_breakpoint): Leave the commands field of the bpstat
1584 chain alone -- it will be freed later.
1585
1586 2002-08-26 Kevin Buettner <kevinb@redhat.com>
1587
1588 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
1589 deleted in 2002-08-20 commit. This function is still used by
1590 ppc-linux-nat.c.
1591
1592 2002-08-26 Keith Seitz <keiths@redhat.com>
1593
1594 * gdb-events.sh: Add selected-frame-level-changed event.
1595 * gdb-events.c: Regenerated.
1596 * gdb-events.h: Regenerated.
1597
1598 2002-08-26 Stephane Carrez <stcarrez@nerim.fr>
1599
1600 Fix PR gdb/393:
1601 * inflow.c (terminal_save_ours): New function to save terminal
1602 settings.
1603 * inferior.h (terminal_save_ours): Declare.
1604 * target.c (debug_to_terminal_save_ours): New function.
1605 (cleanup_target): Defaults to_terminal_save_ours.
1606 (update_current_target): Inherit to_terminal_save_ours.
1607 (setup_target_debug): Set to_terminal_save_ours.
1608 * target.h (target_terminal_save_ours): New to save terminal settings.
1609 (target_ops): New member to_terminal_save_ours.
1610 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
1611 * hpux-thread.c (init_hpux_thread_ops): Likewise.
1612 * inftarg.c (init_child_ops): Likewise.
1613 * m3-nat.c (init_m3_ops): Likewise.
1614 * procfs.c (init_procfs_ops): Likewise.
1615 * wince.c (init_child_ops): Likewise.
1616 * win32-nat.c (init_child_ops): Likewise.
1617 * sol-thread.c (init_sol_thread_ops): Likewise.
1618
1619 2002-08-26 Mark Kettenis <kettenis@gnu.org>
1620
1621 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
1622 use regcache_* functions.
1623 (i386_gdbarch_init): Set store_return_value instead of
1624 deprecated_store_return_value.
1625
1626 * regcache.c (regcache_raw_write_signed,
1627 regcache_raw_write_unsigned): New functions.
1628 * regcache.h (regcache_raw_write_signed,
1629 regcache_raw_write_unsigned): New prototypes.
1630
1631 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1632
1633 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
1634 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
1635 source file dependencies. Cleanup corresponding generator rules.
1636
1637 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1638
1639 * regcache.h (register_offset_hack): Declare.
1640 (regcache_cooked_read_using_offset_hack): Declare.
1641 (regcache_cooked_write_using_offset_hack): Declare.
1642
1643 * regcache.c (register_offset_hack): New function.
1644 (regcache_cooked_read_using_offset_hack): New function.
1645 (regcache_cooked_write_using_offset_hack): New function.
1646 (regcache_dump): Check that the registers, according to their
1647 offset, are packed hard against each other.
1648 (cooked_xfer_using_offset_hack): New function.
1649
1650 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1651
1652 * regcache.c (struct regcache_descr): Add field register_type.
1653 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
1654 in as a parameter
1655 (init_regcache_descr): Initialize register_type. Pass the descr
1656 to init_legacy_regcache_descr. Use register_type instead of
1657 REGISTER_VIRTUAL_TYPE.
1658 (register_type): New function.
1659 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
1660 * regcache.h (register_type): Declare.
1661
1662 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1663
1664 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
1665 instead of deprecated_store_return_value. Fix fallout from
1666 2002-08-23 Andrew Cagney <cagney@redhat.com>.
1667
1668 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1669
1670 * regcache.c (max_register_size): New function.
1671 (init_legacy_regcache_descr): Ensure that max_register_size is
1672 large enough for REGISTER_VIRTUAL_SIZE.
1673 * regcache.h (max_register_size): Declare.
1674
1675 2002-08-24 Andrew Cagney <ac131313@redhat.com>
1676
1677 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
1678 store_return_value.
1679 (e500_extract_return_value): Change type of valbuf pointer to
1680 void.
1681
1682 2002-08-24 Mark Kettenis <kettenis@gnu.org>
1683
1684 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
1685 workaround.
1686
1687 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
1688 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
1689 long long) to prevent compiler warning on 64-bit systems.
1690
1691 2002-08-23 Andrew Cagney <cagney@redhat.com>
1692
1693 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
1694 (DEPRECATED_STORE_RETURN_VALUE): New method.
1695 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
1696 * gdbarch.h, gdbarch.c: Re-generate.
1697
1698 * values.c (set_return_value): Pass current_regcache to
1699 STORE_RETURN_VALUE.
1700 * arch-utils.h (legacy_store_return_value): Declare.
1701 * arch-utils.c (legacy_store_return_value): New function.
1702 (legacy_extract_return_value): Update parameters.
1703
1704 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
1705 STORE_RETURN_VALUE.
1706 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1707 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1708 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1709 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1710 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1711 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1712 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1713 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1714 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1715 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1716
1717 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1718 * i386-tdep.c (i386_extract_return_value): Update.
1719 * arch-utils.c (legacy_extract_return_value): Update.
1720 * frv-tdep.c (frv_gdbarch_init): Update.
1721 * cris-tdep.c (cris_gdbarch_init): Update.
1722 * d10v-tdep.c (d10v_gdbarch_init): Update.
1723 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1724 * m68k-tdep.c (m68k_gdbarch_init): Update.
1725 * mcore-tdep.c (mcore_gdbarch_init): Update.
1726 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1727 * s390-tdep.c (s390_gdbarch_init): Update.
1728 * sparc-tdep.c (sparc_gdbarch_init): Update.
1729 * sh-tdep.c (sh_gdbarch_init): Update.
1730 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1731 * v850-tdep.c (v850_gdbarch_init): Update.
1732 * avr-tdep.c (avr_gdbarch_init): Update.
1733 * ia64-tdep.c (ia64_gdbarch_init): Update.
1734 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1735 * vax-tdep.c (vax_gdbarch_init): Update.
1736 * alpha-tdep.c (alpha_gdbarch_init): Update.
1737 * arm-tdep.c (arm_gdbarch_init): Update.
1738 * mips-tdep.c (mips_gdbarch_init): Update.
1739 * i386-tdep.c (i386_gdbarch_init): Update.
1740
1741 2002-08-23 Andrew Cagney <ac131313@redhat.com>
1742
1743 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
1744 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
1745
1746 2002-08-24 Mark Kettenis <kettenis@gnu.org>
1747
1748 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
1749 problems.
1750
1751 2002-08-23 Joel Brobecker <brobecker@gnat.com>
1752
1753 * infrun.c (handle_inferior_event): Move a comment outside of a
1754 function call, in order to avoid indent reformatting this part
1755 of the code in an unreadable way.
1756
1757 2002-08-23 Grace Sainsbury <graces@redhat.com>
1758
1759 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
1760 when breakpoints fail. Move general breakpoint error messages to
1761 insert_breakpoints.
1762 * breakpoint.c (insert_breakpoints): Change warnings when
1763 breakpoints are nto inserted to specify the type. Remove call to
1764 memory_error when hardware breakpoints can't be inserted. Remove
1765 multiple calls to warning so all messages are sent to the user at
1766 once.
1767 (delete_breakpoints): Make insert error messsages more explicit.
1768
1769 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
1770
1771 * ChangeLog: Move gdbserver entries after GDB 5.2 to
1772 gdbserver/ChangeLog.
1773
1774 2002-08-23 Mark Kettenis <kettenis@gnu.org>
1775
1776 * i386-tdep.c: Include "objfiles.h".
1777 (i386_svr4_init_abi): Set in_solib_call_trampoline and
1778 skip_trampoline_code.
1779 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
1780 (CPLUS_MARKER): Define to '.'.
1781
1782 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
1783 member.
1784 (linux_corefile_thread_callback): Increase args->num_notes.
1785 (linux_make_note_section): Initialize thread_args.num_notes, and
1786 use it to determine whether notes for any threads were created.
1787
1788 2002-08-23 Donn Terry <donnte@microsoft.com>
1789
1790 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
1791 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
1792 and PCUNKILL.
1793 (write_with_trace): Conditionalize out the switch branch handling
1794 PCSHOLD if the corresponding macro is not defined. Likewise for
1795 PRSABORT and PRSTOP.
1796 This change will be needed by the Interix port.
1797
1798 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
1799
1800 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
1801 write_register wherever possible instead of manipulating the
1802 register bytes directly.
1803 Assign VALUE_CONTENTS to a variable and use that.
1804 The GPR numbers are now dependent on the architecture.
1805
1806 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
1807
1808 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
1809 ev_offset fields.
1810 (skip_prologue): Add support for BookE/e500 instructions.
1811 (e500_extract_return_value): New function.
1812 (frame_get_saved_regs): Add support for saving ev registers and
1813 pseudo gpr's.
1814 (e500_store_return_value): New function.
1815 (rs6000_gdbarch_init): Move up default intializations of
1816 deprecated_extract_return_value and store_return_value. Overwrite
1817 init of store_return_value with e500 specific version.
1818 Set extract_return_value for e500.
1819
1820 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
1821
1822 * blockframe.c (generic_call_dummy_register_unwind): Use
1823 regcache_cooked_read to catch cases in which the variable is
1824 stored in a pseudo register.
1825
1826 2002-08-22 Andrew Cagney <cagney@redhat.com>
1827
1828 * NEWS: Mention that the i960 has been made obsolete.
1829 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
1830 i960-tdep.c
1831 (remote-nrom.o): Obsolete target.
1832 (remote-nindy.o, i960-tdep.o): Ditto.
1833 * remote-nrom.c: Make file obsolete.
1834 * remote-nindy.c, remote-vx960.c: Ditto.
1835 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
1836 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
1837 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
1838 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
1839 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
1840 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
1841 i960-*-vxworks* obsolete.
1842 * MAINTAINERS: Note that the i960 is obsolete.
1843
1844 2002-08-21 Corinna Vinschen <vinschen@redhat.com
1845
1846 * aix-thread.c (aix_thread_detach): Disable thread debugging on
1847 detach to allow reinitialization.
1848
1849 2002-08-22 Andrew Cagney <ac131313@redhat.com>
1850
1851 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
1852 attempt).
1853
1854 2002-08-22 Jim Blandy <jimb@redhat.com>
1855
1856 * coffread.c (coff_symfile_read): Don't try to read the line
1857 number table from disk if the image file doesn't have a symbol
1858 table; we'll never actually look at the info anyway, and Windows
1859 ships DLL's with bogus file offsets for the line number data.
1860
1861 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
1862
1863 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
1864 an e500 executable.
1865
1866 2002-08-21 Michael Snyder <msnyder@redhat.com>
1867
1868 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
1869 (MSYMBOL_SIZE): Replace macro with function.
1870 (DEFAULT_MIPS_TYPE): Delete unused macro.
1871 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
1872 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
1873
1874 2002-08-21 Jim Blandy <jimb@redhat.com>
1875
1876 * valops.c (value_cast): Simplify and correct logic for doing a
1877 static cast from a pointer to a base class to a pointer to a
1878 derived class.
1879
1880 2002-08-21 Andrew Cagney <ac131313@redhat.com>
1881
1882 * infcmd.c (default_print_registers_info): Replace
1883 do_registers_info.
1884 (registers_info): Use gdbarch_print_registers_info instead of
1885 DO_REGISTERS_INFO.
1886 * inferior.h (default_print_registers_info): Replace
1887 do_registers_info.
1888 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
1889 (DO_REGISTERS_INFO): Change to a predicate function.
1890 * gdbarch.h, gdbarch.c: Regenerate.
1891
1892 2002-08-21 Keith Seitz <keiths@redhat.com>
1893
1894 * gdb-events.sh: Add target-changed event.
1895 * gdb-events.c: Regenerated.
1896 * gdb-events.c: Regenerated.
1897 * valops.c (value_assign): Add target-changed event notification
1898 to inlval_register, lval_memory, and lval_reg_frame_relative.
1899
1900 2002-08-21 Joel Brobecker <brobecker@gnat.com>
1901
1902 * NEWS: Add an entry regarding the improvement of the next/step
1903 operation on Alpha Tru64 multi-processor machines.
1904
1905 2002-08-21 Andrew Cagney <ac131313@redhat.com>
1906
1907 * Makefile.in: Update dependencies for mi/ cli/ and tui/
1908 directores.
1909 * Makefile.in: Update all _h macro definitions.
1910 * Makefile.in (install-gdbtk): Move to install section.
1911 (rdi-share/libangsd.a): Move to end of file.
1912
1913 2002-08-19 Andrew Cagney <ac131313@redhat.com>
1914
1915 * frame.c (frame_register_unwind): When a register, set addrp to
1916 the register's byte.
1917
1918 2002-08-20 Michael Snyder <msnyder@redhat.com>
1919
1920 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
1921 used locally, so move them from the target machine header to here.
1922 (mips_set_processor_type, mips_register_name, mips32_next_pc,
1923 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
1924 Make static.
1925 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
1926
1927 2002-08-20 Andrew Cagney <cagney@redhat.com>
1928
1929 * NEWS: Mention that the Apollo line was made obsolete.
1930 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
1931 m68*-hp-hpux* obsolete.
1932 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
1933 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
1934 * buildsym.c (make_blockvector): Make static.
1935 * buildsym.h (make_blockvector): Make extern declaration obsolete.
1936 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
1937 (ALLDEPFILES): Remove dstread.c.
1938 (dstread.o): Obsolete make rule.
1939 * dstread.c: Makefile obsolete.
1940 * dst.h: Ditto.
1941 * config/m68k/hp300hpux.mt: Ditto.
1942 * config/m68k/hp300hpux.mh: Ditto.
1943 * config/m68k/hp300bsd.mt: Ditto.
1944 * config/m68k/hp300bsd.mh: Ditto.
1945 * config/m68k/apollo68b.mt: Ditto.
1946 * config/m68k/apollo68v.mh: Ditto.
1947 * config/m68k/apollo68b.mh: Ditto.
1948
1949 2002-08-20 Michael Snyder <msnyder@redhat.com>
1950
1951 * mips-tdep.c (mips_in_return_stub): Make static.
1952 (mips_gdbarch_init): Set in_solib_return_trampoline.
1953 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
1954
1955 2002-08-20 Michael Snyder <msnyder@redhat.com>
1956
1957 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
1958 * gdbarch.c, gdbarch.h: Regenerate.
1959 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
1960 Add.
1961 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
1962
1963 2002-08-20 Michael Snyder <msnyder@redhat.com>
1964
1965 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
1966 (mips_gdbarch_init): Set skip_trampoline_code,
1967 in_solib_call_trampoline.
1968 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
1969 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
1970
1971 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1972
1973 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
1974
1975 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
1976 vector type for ev registers.
1977 (e500_pseudo_register_read): New function.
1978 (e500_pseudo_register_write): New function.
1979 (e500_dwarf2_reg_to_regnum): New function.
1980 (PPC_UISA_NOFP_SPRS): New macro.
1981 (PPC_EV_REGS): New macro.
1982 (PPC_GPRS_PSEUDO_REGS): New macro.
1983 (registers_e500): New register set for e500.
1984 (variants): Add e500 variant.
1985 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
1986 before setting architectural dependent variations. Initialize ev
1987 registers numbers. Add case for e500 architecture. Set the
1988 number of pseudo registers.
1989
1990 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1991
1992 * rs6000-tdep.c: Clean up comments.
1993
1994 2002-08-20 Andrew Cagney <cagney@redhat.com>
1995
1996 * h8300-tdep.c: Re-indent file.
1997
1998 2002-08-20 Jim Blandy <jimb@redhat.com>
1999
2000 * Makefile.in (LDFLAGS): Allow the configure script to establish a
2001 default for this.
2002
2003 2002-08-20 Keith Seitz <keiths@redhat.com>
2004
2005 * breakpoints.c (watch_command_1): Use internal breakpoint
2006 when setting a watchpoint_scope breakpoint.
2007
2008 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
2009
2010 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
2011 (build_builtin_type_vec64i): Ditto.
2012 (build_builtin_type_vec128): Ditto.
2013 (build_builtin_type_vec128i): Ditto.
2014
2015 2002-08-19 Michael Snyder <msnyder@redhat.com>
2016
2017 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
2018 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
2019 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
2020 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
2021 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
2022 CALL_DUMMY_ADDRESS): Delete.
2023 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
2024 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
2025 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
2026 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
2027 push_return_address.
2028 (mips_register_raw_size, mips_eabi_use_struct_convention,
2029 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
2030 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
2031 mips_init_extra_frame_info, mips_eabi_push_arguments,
2032 mips_n32n64_push_arguments, mips_push_return_address,
2033 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
2034 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
2035
2036 2002-08-19 Michael Snyder <msnyder@redhat.com>
2037
2038 * mips-tdep.c (mips_frame_num_args): New function.
2039 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
2040 frame_saved_pc, frame_args_address, frame_locals_address,
2041 frame_num_args, and frame_args_skip.
2042 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
2043 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
2044 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
2045 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
2046
2047 2002-08-20 Michael Snyder <msnyder@redhat.com>
2048
2049 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
2050 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
2051 * mips-tdep.c (mips_store_struct_return): New function.
2052 (mips_extract_struct_value_address): New function.
2053 (mips_gdbarch_init): Set store_struct_return and
2054 extract_struct_value_address.
2055
2056 2002-08-20 David Carlton <carlton@math.stanford.edu>
2057
2058 * dwarf2read.c (dwarf2_build_psymtabs): Check that
2059 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
2060 (read_file_scope): Check that line_header is nonzero before
2061 decoding macro information.
2062
2063 2002-08-20 Mark Kettenis <kettenis@gnu.org>
2064
2065 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
2066 flag the general-purpose registers as floating-point on targets
2067 that don't support the floating-point registers.
2068
2069 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
2070
2071 * rs6000-tdep.c (altivec_register_p): Delete.
2072 (rs6000_do_altivec_registers): Delete.
2073 (rs6000_altivec_registers_info): Delete.
2074 (rs6000_do_registers_info): Delete.
2075 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
2076 (rs6000_gdbarch_init): Remove setting of do_registers_info.
2077
2078 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
2079
2080 * infcmd.c (do_registers_info): Print vector registers in hex
2081 format only.
2082 (print_vector_info): Check that printing registers
2083 makes sense.
2084 (print_float_info): Ditto.
2085
2086 2002-08-20 Andrew Cagney <ac131313@redhat.com>
2087
2088 * mips-tdep.c (mips_gdbarch_init): Update.
2089 (mips_o32_extract_return_value): Rewrite.
2090 (mips_o32_store_return_value): Rewrite.
2091 (mips_o32_xfer_return_value): New function.
2092 (mips_xfer_register): Tweak debug print message. Allow for
2093 buf_offset when dumping the value transfered.
2094
2095 2002-08-20 Andrew Cagney <ac131313@redhat.com>
2096
2097 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
2098 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
2099 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
2100 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
2101 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
2102
2103 2002-08-14 Michael Snyder <msnyder@redhat.com>
2104
2105 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
2106
2107 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
2108
2109 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
2110 register.
2111 (P): New macro to define a register as a pseudo register.
2112 (R, R4, R8, R16, FR32, R64, R0): Updated.
2113 (struct variant): Add new fields for number of pseudo registers
2114 and number of total registers.
2115 (tot_num_registers): New macro replacing....
2116 (num_registers): ...deleted macro.
2117 (num_registers): New function.
2118 (num_pseudo_registers): New function.
2119 (variants): Update all variants to intialize new fields correctly.
2120 Postpone initialization of number of pseudo regs and real regs.
2121 (init_variants): New function.
2122 (rs6000_gdbarch_init): Initialize variants. Update calculation of
2123 registers offsets.
2124
2125 2002-08-19 David Carlton <carlton@math.stanford.edu>
2126
2127 * valops.c (search_struct_field): Change error message to treat
2128 return value of 0 from value_static_field as meaning that field is
2129 optimized out.
2130 (value_struct_elt_for_reference): Ditto.
2131 * values.c (value_static_field): Treat an unresolved location the
2132 same as a nonexistent symbol. Fix PR gdb/635.
2133 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
2134 enclosed. Fix PR gdb/574.
2135 * MAINTAINERS: Add self to Write After Approval list.
2136
2137 2002-08-19 Andrew Cagney <ac131313@redhat.com>
2138
2139 * mips-tdep.c (mips_xfer_register): New function.
2140 (mips_n32n64_extract_return_value): Rewrite.
2141 (mips_gdbarch_init): For N32 and N64, set extract_return_value
2142 instead of deprecated_extract_return_value.
2143
2144 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
2145
2146 * rs6000-tdep.c (TDEP): Delete macro.
2147 (branch_dest): Replace use of TDEP macro with its body.
2148 (rs6000_pop_frame): Ditto.
2149 (rs6000_push_arguments): Ditto.
2150 (rs6000_skip_trampoline_code): Ditto.
2151 (rs6000_frame_saved_pc): Ditto.
2152 (rs6000_frame_chain): Ditto.
2153 (rs6000_register_name): Ditto.
2154 (rs6000_register_byte): Ditto.
2155 (rs6000_register_raw_size): Ditto.
2156 (rs6000_register_virtual_type): Ditto.
2157 (rs6000_register_convertible): Ditto.
2158 (rs6000_convert_from_func_ptr_addr): Ditto.
2159
2160 2002-08-19 Daniel Jacobowitz <drow@mvista.com>
2161
2162 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
2163 conditionally.
2164 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
2165 MIPS_LINUX_JB_ELEMENT_SIZE.
2166 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
2167 for MAX_REGISTER_RAW_SIZE arrays.
2168 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
2169 MIPS_LINUX_JB_ELEMENT_SIZE.
2170
2171 2002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
2172
2173 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
2174
2175 2002-08-19 Aidan Skinner <aidan@velvet.net>
2176
2177 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
2178 ada-valprint.c ada-tasks.c.
2179 (YYFILES): Add ada-exp.y.
2180 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
2181 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
2182 (ada-exp.tab.o): New target.
2183
2184 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2185
2186 * regcache.c (regcache_xfer_part): New function.
2187 (regcache_raw_read_part): New function.
2188 (regcache_raw_write_part): New function.
2189 (regcache_cooked_read_part): New function.
2190 (regcache_cooked_write_part): New function.
2191 * regcache.h (regcache_raw_read_part): Declare.
2192 (regcache_raw_write_part): Declare.
2193 (regcache_cooked_read_part): Declare.
2194 (regcache_cooked_write_part): Declare.
2195
2196 2002-08-18 Daniel Jacobowitz <drow@mvista.com>
2197
2198 * remote.c (remote_open_1): Add async_p.
2199 (remote_async_open_1): Delete.
2200 (open_remote_target): Delete.
2201 (remote_open, extended_remote_open): Update calls to remote_open_1.
2202 (remote_async_open, extended_remote_async_open): Call
2203 remote_open_1 instead of remote_async_open_1.
2204
2205 2002-08-19 Mark Kettenis <kettenis@gnu.org>
2206
2207 * blockframe.c: Fix a few coding standard violations.
2208
2209 2002-08-19 Mark Kettenis <kettenis@gnu.org>
2210
2211 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
2212 here from ...
2213 * config/i386/tm-i386sco5.h: ... here. File removed.
2214 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
2215
2216 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
2217 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
2218 (TM_FILE): Set to tm-i386.h.
2219 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
2220 * config/i386/tm-i386v.h: Remove file.
2221 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
2222 instead of "i386/tm-i386v.h".
2223 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
2224 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
2225 "i386/tm-i386v.h".
2226 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
2227 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
2228 "i386/tm-i386.h".
2229
2230 2002-08-18 Mark Kettenis <kettenis@gnu.org>
2231
2232 * config/i386/nm-i386v.h: Add protection against
2233 multiple-inclusion.
2234 (i386_register_u_addr): Remove prototype.
2235 (register_u_addr): New prototype.
2236 (REGISTER_U_ADDR): Redefine accordingly.
2237 * i386v-nat.c: Improve several comments.
2238 (i386_register_u_addr): Change signature and rename to
2239 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
2240 ubase variable.
2241
2242 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2243
2244 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
2245 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
2246 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
2247 deprecated_extract_return_value.
2248 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
2249 rename mips_o32o64_push_arguments.
2250 (mips_gdbarch_init): Update.
2251 (mips_extract_return_value): Delete.
2252 (mips_o32_extract_return_value): Clone mips_extract_return_value.
2253 (mips_o64_extract_return_value): Clone mips_extract_return_value.
2254 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
2255 (mips_n32n64_extract_return_value): Clone
2256 mips_extract_return_value.
2257 (mips_store_return_value): Delete.
2258 (mips_o32_store_return_value): Clone mips_store_return_value.
2259 (mips_o64_store_return_value): Clone mips_store_return_value.
2260 (mips_eabi_store_return_value): Clone mips_store_return_value.
2261 (mips_n32n64_store_return_value): Clone mips_store_return_value.
2262
2263 2002-08-18 Aidan Skinner <aidan@velvet.net>
2264
2265 * ada-lang.c: Use gdb_string.h instead of <string.h>.
2266 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
2267
2268 2002-08-18 Aidan Skinner <aidan@velvet.net>
2269
2270 * ada-lang.c: Run through gdb_indent.sh.
2271 * ada-lang.h: Run through gdb_indent.sh.
2272 * ada-tasks.c: Run through gdb_indent.sh.
2273 * ada-typeprint.c: Run through gdb_indent.sh.
2274 * ada-valprint.c: Run through gdb_indent.sh.
2275
2276 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2277
2278 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
2279 ABI.
2280
2281 2002-08-18 Mark Kettenis <kettenis@gnu.org>
2282
2283 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
2284
2285 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
2286 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
2287
2288 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
2289 write_register_gen instead of write_register_bytes.
2290
2291 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
2292 i[3456]-*-osf1mk* configurations have been made obsolete.
2293 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
2294 i[3456]86-*-osf1mk* hosts obsolete.
2295 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
2296 targets obsolete.
2297 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
2298 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
2299 config/i386/i386m3.mt, config/i386/nm-m3.h,
2300 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
2301 config/i386/i386mk.mh, config/i386/i386mk.mt,
2302 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
2303 obsolete.
2304 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
2305 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
2306 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
2307
2308 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2309
2310 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
2311 (hppa_value_returned_from_stack): Declare.
2312 (hppa_extract_return_value): Declare.
2313 * config/pa/hppa.mt: New file.
2314 * configure.tgt: Recognize hppa*-*-*.
2315 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
2316
2317 2002-08-18 Mark Kettenis <kettenis@gnu.org>
2318
2319 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
2320 comment.
2321
2322 2002-08-17 Mark Kettenis <kettenis@gnu.org>
2323
2324 * top.c (gdb_rl_operate_and_get_next): Make sure
2325 operate-and-get-next functions correctly even when the history
2326 list is completely filled.
2327
2328 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2329
2330 * MAINTAINERS (Target Instruction Set Architectures): Rename
2331 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
2332 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
2333 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
2334 already listed under Host/Native.
2335
2336 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
2337 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
2338 mips*-*-*.
2339
2340 2002-08-17 Andrew Cagney <ac131313@redhat.com>
2341
2342 * config/ia64/ia64.mt: New file.
2343 * config/alpha/alpha.mt: New file.
2344 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
2345 ia64-linux-gnu. Mention that ia64-elf is broken.
2346 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
2347
2348 2002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
2349
2350 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
2351 generic_func_frame_valid instead of func_frame_valid.
2352
2353 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2354
2355 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
2356 procfs appears to be broken when debugging on multi-processor
2357 machines. So enable software single stepping in order to avoid
2358 using the procfs interface to do next/step operations, using
2359 internal breakpoints instead.
2360
2361 * infrun.c (handle_inferior_event): Readjust the stop_pc by
2362 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
2363 make this pc address equal to the value it would have if the
2364 system stepping capability was used. Also set a new flag used
2365 to ensure that we don't readjust the PC one more time later.
2366
2367 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
2368 address by DECR_PC_AFTER_BREAK when software single step is
2369 in use for this architecture, as this has already been taken
2370 care of in handle_inferior_event().
2371
2372 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2373
2374 * infrun.c (handle_inferior_event): Minor reformatting, to make
2375 a rather long condition expression easier to read.
2376
2377 2002-08-16 Andrew Cagney <ac131313@redhat.com>
2378
2379 * Makefile.in (gdbtk.o): Move to end of file.
2380 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
2381 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
2382 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
2383 (gdbtk-wrapper.o, gdbres.o): Ditto.
2384
2385 2002-08-16 Andrew Cagney <ac131313@redhat.com>
2386
2387 * Makefile.in (copying.o): Separate out compile rule.
2388 (hpux-thread.o, procfs.o, signals.o): Ditto.
2389 (v850ice.o, z8k-tdep.o): Ditto.
2390 (tui-file.o): Move to TUI section.
2391 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
2392 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
2393
2394 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2395
2396 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
2397 skip_trampoline_code, for better namespace-proofing.
2398
2399 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
2400
2401 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2402
2403 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
2404
2405 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2406
2407 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
2408 signal, check whether we hit a breakpoint before checking for a
2409 single step breakpoint. Otherwise, GDB fails to notice that a
2410 breakpoint has been hit when stepping onto a breakpoint.
2411
2412 2002-08-16 Keith Seitz <keiths@redhat.com>
2413
2414 * gdb-events.sh (clear_gdb_event_hooks): New function.
2415 * gdb-events.c: Regenerate.
2416 * gdb-events.h: Regenerate.
2417
2418 2002-08-16 Andrew Cagney <ac131313@redhat.com>
2419
2420 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
2421 not_a_sw_breakpoint.
2422 * breakpoint.h (bpstat_stop_status): Add parameter names.
2423
2424 2002-08-16 Grace Sainsbury <graces@redhat.com>
2425
2426 * remote.c (remote_insert_hw_breakpoint)
2427 (remote_remove_hw_breakpoint): Fix calculation of length field
2428 for Z-packet.
2429
2430 2002-08-15 Michael Snyder <msnyder@redhat.com>
2431
2432 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
2433 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
2434 (supply_fpregset): Ditto.
2435
2436 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
2437 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
2438 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
2439 (TARGET_READ_SP): Delete.
2440 (DO_REGISTERS_INFO): Delete.
2441 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
2442 Delete.
2443 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
2444 from macros to functions.
2445
2446 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
2447 (mips_register_convertible, mips_register_convert_to_virtual,
2448 mips_register_convert_to_raw): Make static.
2449 (mips_read_sp): New function.
2450 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
2451 (mips_do_registers_info): Make static.
2452 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
2453 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
2454 (mips_register_convert_from_type, mips_register_convert_to_type):
2455 New functions.
2456 (mips_gdbarch_init): Set up function_start_offset,
2457 register_virtual_size, pc_in_sigtramp.
2458
2459 2002-08-15 Andrew Cagney <ac131313@redhat.com>
2460
2461 * infcmd.c (vector_info): New function.
2462 (_initialize_infcmd): Add command "info vector".
2463 (print_vector_info): New function.
2464
2465 * gdbarch.sh (PRINT_VECTOR_INFO): New method
2466 * gdbarch.h, gdbarch.c: Regenerate.
2467
2468 2002-08-15 Andrew Cagney <ac131313@redhat.com>
2469
2470 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
2471 ``print_all''. Only print vector registers when ``print_all''.
2472
2473 2002-08-15 Andrew Cagney <ac131313@redhat.com>
2474
2475 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
2476 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
2477
2478 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
2479 Add `args' parameter.
2480 * gdbarch.h, gdbarch.c: Regenerate.
2481
2482 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
2483
2484 * infcmd.c (float_info): Call print_float_info.
2485 (print_float_info): New function. By default, print the
2486 floating-point registers.
2487
2488 * arch-utils.h (default_print_float_info): Delete declaration.
2489 * arch-utils.c (default_print_float_info): Delete function.
2490
2491 2002-08-16 Mark Kettenis <kettenis@gnu.org>
2492
2493 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
2494 out define.
2495
2496 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
2497 FRAME.
2498
2499 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
2500 * configure.host: Make i[3456]86-*-aix host obsolete.
2501 * configure.tgt: Make i[3456]86-*-aix target obsolete.
2502 * config/i386/i386aix.mh, config/i386/i386aix.mt,
2503 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
2504 config/i386/xm-i386aix.h: Make files obsolete.
2505 * i386aix-nat.c: Make file obsolete.
2506 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
2507 (i386aix-nat.o): Make target obsolete.
2508
2509 * config/i386/nm-gnu.h: Removed.
2510 * config/i386/nm-i386gnu.h: New file.
2511 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
2512 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
2513 Moved here from ...
2514 * config/i386/tm-i386gnu.h: ... here. Removed.
2515 * config/i386/xm-i386gnu.h: Removed.
2516 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
2517 (NAT_FILE): Set to nm-i386gnu.h.
2518 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
2519 * i386-tdep.c: New file.
2520 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
2521 (i386gnu-tdep.o): Specify dependencies.
2522
2523 2002-08-15 Mark Kettenis <kettenis@gnu.org>
2524
2525 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
2526 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
2527 Adjust a few comments to reflect reality a bit closer.
2528 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
2529 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
2530 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
2531 target_insert_watchpoint, target_remove_watchpoint):
2532 Move defines to ...
2533 * config/i386/nm-i386sco5.h: ... here.
2534 (kernel_u_size): Add prototype. Improve a few comments and add
2535 protection against multiple inclusion.
2536
2537 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
2538 out define.
2539
2540 * uw-thread.c (SP_ARG0): Define if not already defined.
2541 * config/i386/tm-i386.h (SO_ARG0): Remove define.
2542
2543 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
2544
2545 * config/i386/tm-i386.h: Don't include "regcache.h".
2546
2547 * i387-tdep.h (i387_print_float_info): New prototype.
2548 * i387-tdep.c (print_i387_value, print_i387_ext,
2549 print_i387_status_word, print_i387_control_word): Add `struct
2550 ui_file *' argument and use it for output.
2551 (i387_print_float_info): Renamed from i387_float_info. Add
2552 `struct gdbarch *' and `struct ui_file *' arguments and use the
2553 latter for output.
2554 * i386-tdep.c: Include "i387-tdep.h".
2555 (i386_gdbarch_init): Set print_float_info.
2556 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
2557 (FLOAT_INFO): Remove define.
2558
2559 2002-08-13 Michael Snyder <msnyder@redhat.com>
2560
2561 * mips-tdep.c (mips_push_arguments): Rename to
2562 mips_eabi_push_arguments, and tune for EABI.
2563 (MIPS_REGS_HAVE_HOME_P): Delete.
2564 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
2565 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
2566 Delete references to mips_regs_have_home_p.
2567
2568 2002-08-14 Keith Seitz <keiths@redhat.com>
2569
2570 * Makefile.in (install-gdbtk): Create insight plugin directory.
2571 Install plugins.tcl file.
2572
2573 2002-08-14 Keith Seitz <keiths@redhat.com>
2574
2575 * configure.in: Move SUBDIRS to near top of the file so that
2576 --enable options may add things to it.
2577 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
2578 * configure: Regenerate.
2579
2580 2002-08-13 Michael Snyder <msnyder@redhat.com>
2581
2582 * mips-tdep.c (mips_o32o64_push_arguments): New function,
2583 cloned from mips_push_arguments, tuned for o32/o64 ABI.
2584 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
2585
2586 2002-08-13 Andrew Cagney <ac131313@redhat.com>
2587
2588 * vax-tdep.c (vax_get_saved_register): Delete function.
2589 (vax_gdbarch_init): Update.
2590 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
2591 (ns32k_gdbarch_init): Update.
2592 * alpha-tdep.c (alpha_get_saved_register): Delete function.
2593 (alpha_gdbarch_init): Update.
2594
2595 2002-08-13 Andrew Cagney <cagney@redhat.com>
2596
2597 * regcache.c (init_regcache_descr): Overallocate the
2598 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
2599 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
2600 nr_raw_registers.
2601 (set_register_cached): Add range checking assertions. Use
2602 current_regcache.
2603
2604 2002-08-13 Mark Kettenis <kettenis@gnu.org>
2605
2606 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
2607 numbers for MMX registers.
2608
2609 2002-08-13 Andrew Cagney <cagney@redhat.com>
2610
2611 * i386-tdep.c (i386_gdbarch_init): Use
2612 generic_unwind_get_saved_register.
2613
2614 2002-08-13 Kevin Buettner <kevinb@redhat.com>
2615
2616 * procfs.c (procfs_can_use_hw_breakpoint): New function.
2617 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
2618 target vector.
2619 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
2620 Delete. Add comment regarding this now-deleted target method.
2621
2622 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2623
2624 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
2625 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
2626 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
2627 real PC and the page number (if it's within the memory bank window).
2628 (m68hc11_pseudo_register_write): Likewise when saving.
2629 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
2630 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
2631 (m68hc11_register_raw_size): And use 32-bit for it.
2632 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
2633 16K memory bank is used by the prog; also use the virtual pc.
2634
2635 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2636
2637 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
2638 (m68hc11_gdbarch_init): Install it in gdbarch.
2639 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
2640 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
2641 (MSYMBOL_SIZE): New for documentation.
2642 (insn_return_kind): Enum to specify how a function returns.
2643 (frame_extra_info): Cleanup and record the return mode.
2644 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
2645 register in address computation.
2646 (m68hc11_get_return_insn): New to obtain the return instruction used
2647 by the function.
2648 (m68hc11_frame_init_saved_regs): Take into account the return
2649 instruction used by the function for far and interrupt functions.
2650 (m68hc11_init_extra_frame_info): Take into account page register.
2651 (m68hc11_frame_args_address): Adjust according to the return mode.
2652 (show_regs): Print page register only when it's used.
2653
2654 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2655
2656 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
2657 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
2658 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
2659 registers.
2660 (m68hc11_register_raw_size): Likewise.
2661
2662 2002-08-13 Andrew Cagney <cagney@redhat.com>
2663
2664 * i386-tdep.c (i386_register_name): Handle mmx registers.
2665 (mmx_regnum_p): New function.
2666 (i386_mmx_names): New array.
2667 (mmx_num_regs): New variable.
2668 (i386_pseudo_register_read): New function.
2669 (i386_pseudo_register_write): New function.
2670 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
2671
2672 * regcache.c (regcache_raw_read_unsigned): New function.
2673 (regcache_raw_read_signed): New function.
2674 * regcache.h (regcache_raw_read_unsigned): Declare.
2675 (regcache_raw_read_signed): Declare.
2676
2677 2002-08-13 Andrew Cagney <cagney@redhat.com>
2678
2679 * regcache.c (regcache_raw_read_as_address): Delete function.
2680 (regcache_cooked_read_signed): New function.
2681 (regcache_cooked_read_unsigned): New function.
2682 * regcache.h (regcache_cooked_read_signed): Declare.
2683 (regcache_cooked_read_unsigned): Declare.
2684 (regcache_raw_read_as_address): Delete declaration.
2685
2686 * blockframe.c (generic_read_register_dummy): Use
2687 regcache_cooked_read_unsigned.
2688 * i386-tdep.c (i386_extract_struct_value_address): Use
2689 regcache_cooked_read_unsigned.
2690
2691 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2692
2693 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
2694 double sizes according to ELF ABI flags.
2695 (gdbarch_tdep): Record elf_flags.
2696
2697 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2698
2699 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
2700 (m6812_prolog): They can appear in 68HC12 function prologue.
2701 (m68hc11_frame_chain): Cleanup.
2702
2703 2002-08-12 Andrew Cagney <cagney@redhat.com>
2704
2705 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
2706 declarations.
2707 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
2708 (i386_linux_register_raw_size): Delete function.
2709 (i386_linux_init_abi): Update.
2710 * i386-tdep.c (i386_register_raw_size): Delete function.
2711 (i386_register_byte): Delete function.
2712 (i386_gdbarch_init): Update.
2713 (i386_register_size): Delete array.
2714 (i386_register_offset): Delete array.
2715
2716 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
2717 (REGISTER_RAW_SIZE): Delete macro.
2718 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
2719 (REGISTER_BYTE): Delete macro.
2720
2721 2002-08-11 Aidan Skinner <aidan@velvet.net>
2722
2723 * ada-lang.c (ada_lookup_partial_symbol)
2724 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
2725 prototype names so that grep ^func works properly.
2726
2727 * ada-lang.c (ada_array_element_type)
2728 (ada_lookup_partial_symbol): Fix typos in parameter list.
2729
2730 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
2731 Fix prototype names so that grep ^func works properly.
2732
2733 2002-08-10 Andrew Cagney <cagney@redhat.com>
2734 Elena Zannoni <ezannoni@redhat.com>
2735 Martin M. Hunt <hunt@redhat.com>
2736
2737 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
2738 (build_builtin_type_vec128i): Set the vector bit.
2739 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
2740 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
2741 (build_builtin_type_vec64): New function.
2742 (build_builtin_type_vec64i): New function.
2743 (build_gdbtypes): Initialize builtin_type_vec64 and
2744 builtin_type_vec64i.
2745
2746 2002-08-09 Andrew Cagney <cagney@redhat.com>
2747
2748 * regcache.c (regcache_dump): Compare the register offset
2749 with REGISTER_BYTE.
2750 * arch-utils.c (generic_register_byte): New function.
2751 * arch-utils.h (generic_register_byte): Declare.
2752 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
2753 * gdbarch.h, gdbarch.c: Regenerate.
2754
2755 2002-08-09 Andrew Cagney <cagney@redhat.com>
2756
2757 * regcache.c: Include "gdbcmd.h"
2758 (_initialize_regcache): Add commands "maintenance print
2759 registers", "maintenance print raw-registers" and "maintenance
2760 print cooked-registers".
2761 (enum regcache_dump_what): Define.
2762 (dump_endian_bytes): New function.
2763 (regcache_dump): New function.
2764 (regcache_print): New function.
2765 (maintenance_print_registers): New function.
2766 (maintenance_print_raw_registers): New function.
2767 (maintenance_print_cooked_registers): New function.
2768 * Makefile.in (regcache.o): Update dependencies.
2769
2770 2002-08-09 Michael Snyder <msnyder@redhat.com>
2771
2772 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
2773 (mips_push_arguments): Correct some comments. Use paddr_nz
2774 for printing addresses in debug output. Replace static
2775 allocation using MAX_REGISTER_RAW_SIZE with alloca.
2776 (mips_n32n64_push_arguments): New function, cloned from
2777 mips_push_arguments and tuned for the n32/n64 ABI.
2778 (mips_push_register): Buffer needs dynamic allocation.
2779 (mips_print_register): Ditto.
2780 (do_gp_register_row): Ditto.
2781 (mips_store_return_value): Ditto.
2782 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
2783
2784 2002-08-09 Don Howard <dhoward@redhat.com>
2785
2786 * memattr.c (mem_info_command): Print special case of upper bound
2787 as max CORE_ADDR + 1.
2788
2789 2002-08-08 Michael Snyder <msnyder@redhat.com>
2790
2791 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
2792 returns structs by ref if they're too big to fit in two registers.
2793
2794 2002-08-09 Kevin Buettner <kevinb@redhat.com>
2795
2796 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
2797 saved regs value.
2798 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
2799 mips_find_saved_regs().
2800 (mips_pop_frame): Likewise.
2801
2802 2002-08-09 Kevin Buettner <kevinb@redhat.com>
2803
2804 * blockframe.c (frame_saved_regs_register_unwind): Revise
2805 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
2806 frames are in use.
2807
2808 2002-08-09 Grace Sainsbury <graces@redhat.com>
2809
2810 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
2811 T-packets; the 'a' is not taken as a register number.
2812 (remote_check_watch_resources, remote_stopped_by_watchpoint)
2813 (remote_stopped_data_address): New functions; add to target
2814 vector.
2815 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
2816 prototypes to match other implementations of this
2817 function. replace integer argument with pointer -- the length
2818 field in the Z-packet is the length of what is pointed to or 1 if
2819 pointer is null. Add to target vector.
2820 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
2821 target vector.
2822
2823 From Mark Salter:
2824 * remote.c (remote_wait): Add support to extract optional
2825 watchpoint information from T-packet. Ignore unrecognized
2826 optional info in T-packet.
2827 (remote_async_wait): Ditto.
2828
2829 2002-08-09 Corinna Vinschen <vinschen@redhat.com>
2830
2831 * cli/cli-dump.c: Change fopen modes to use binary open modes
2832 as defined in include/fopen-bin.h throughout.
2833
2834 2002-08-08 Michael Snyder <msnyder@redhat.com>
2835
2836 * mips-tdep.c: Minor whitespace and indentation clean-ups.
2837
2838 2002-08-08 Kevin Buettner <kevinb@redhat.com>
2839
2840 * doublest.c (store_floating): Avoid floatformat_from_doublest()
2841 assertion failure by returning early after a warning.
2842
2843 2002-08-08 Kevin Buettner <kevinb@redhat.com>
2844
2845 * mips-tdep.c (mips_find_saved_regs): Make static.
2846 (mips_frame_init_saved_regs): New function.
2847 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
2848 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
2849 (mips_find_saved_regs): Delete declaration.
2850
2851 2002-08-08 Grace Sainsbury <graces@redhat.com>
2852
2853 * remote.c (remote_wait, remote_async_wait): Change
2854 thread_num from int to ULONGEST.
2855 (unpack_varlen_hex): Change result parameter from
2856 int * to ULONGEST *.
2857
2858 2002-08-08 Andrew Cagney <ac131313@redhat.com>
2859
2860 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
2861 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
2862 powerpc*-*-*.
2863 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
2864
2865 2002-08-08 Andrew Cagney <cagney@redhat.com>
2866
2867 * gcore.c (override_derive_stack_segment): Delete variable.
2868 (preempt_derive_stack_segment): Delete function.
2869 (derive_stack_segment): Delete function.
2870 (default_derive_stack_segment): Renamed to derive_stack_segment.
2871 (override_derive_heap_segment): Delete variable.
2872 (preempt_derive_heap_segment): Delete function.
2873 (derive_heap_segment): Delete function.
2874 (default_derive_heap_segment): Rename to derive_heap_segment.
2875
2876 2002-08-06 Michael Snyder <msnyder@redhat.com>
2877
2878 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
2879 * mips-tdep.c (mips_EABI_use_struct_convention,
2880 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
2881 New functions. (mips_use_struct_convention): Delete.
2882 (mips_gdbarch_init): set use_gdbarch_convention.
2883
2884 2002-08-06 Michael Snyder <msnyder@redhat.com>
2885
2886 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
2887 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
2888 mips_o32_reg_struct_has_addr): New functions.
2889 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
2890
2891 2002-08-07 Andrew Cagney <ac131313@redhat.com>
2892
2893 * regcache.c (pseudo_register): Delete function.
2894 (fetch_register): Delete function.
2895 (store_register): Delete function.
2896 (regcache_raw_read, legacy_read_register_gen): Use
2897 target_fetch_registers instead of fetch_register.
2898 (legacy_write_register_gen, regcache_raw_write): Use
2899 target_store_register instead of store_register.
2900 (write_register_bytes): Ditto.
2901
2902 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
2903 (STORE_PSEUDO_REGISTER): Delete.
2904 * gdbarch.h, gdbarch.c: Regenerate.
2905
2906 2002-08-06 Corinna Vinschen <vinschen@redhat.com>
2907
2908 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
2909 write dump file binary.
2910
2911 2002-08-05 Michael Snyder <msnyder@redhat.com>
2912
2913 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
2914 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
2915 (mips_gdbarch_init): Set N32 target to be mips64.
2916
2917 2002-08-06 Kevin Buettner <kevinb@redhat.com>
2918
2919 * frame.c (find_saved_register): Break out of loop once saved
2920 register address is found. Don't mention sparc in loop comment
2921 anymore.
2922
2923 2002-08-06 Kevin Buettner <kevinb@redhat.com>
2924
2925 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
2926 mips_default_saved_regsize to 8.
2927
2928 2002-08-06 Andrew Cagney <ac131313@redhat.com>
2929
2930 * gcore.c: Do not include <sys/procfs.h>.
2931 * Makefile.in (gcore.o): Update dependencies.
2932
2933 2002-08-06 Andrew Cagney <cagney@redhat.com>
2934
2935 * configure.tgt: Make arc-*-* obsolete.
2936 * NEWS: Mention that arc-*-* has been identifed as obsolete.
2937 * MAINTAINERS: Make arc-elf obsolete.
2938 * arc-tdep.c: Make file obsolete.
2939 * config/arc/arc.mt: Ditto.
2940 * config/arc/tm-arc.h: Ditto.
2941
2942 2002-08-05 Theodore A. Roth <troth@verinet.com>
2943
2944 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
2945
2946 2002-08-05 Andrew Cagney <ac131313@redhat.com>
2947
2948 * mcore-tdep.c (mcore_gdbarch_init): Use
2949 generic_unwind_get_saved_register instead of
2950 generic_get_saved_register.
2951 * v850-tdep.c (v850_gdbarch_init): Ditto.
2952 * frv-tdep.c (frv_gdbarch_init): Ditto.
2953 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2954 * s390-tdep.c (s390_gdbarch_init): Ditto.
2955 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2956 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
2957 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
2958
2959 2002-08-05 Joel Brobecker <brobecker@gnat.com>
2960
2961 * objfiles.h: Add missing #include "symfile.h"
2962
2963 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
2964
2965 2002-08-04 Andrew Cagney <ac131313@redhat.com>
2966
2967 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
2968 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
2969 of FIELD_BITSIZE.
2970
2971 2002-08-04 Daniel Jacobowitz <drow@mvista.com>
2972
2973 * NEWS: Cleanup and nitpick.
2974
2975 2002-08-03 Andrew Cagney <ac131313@redhat.com>
2976
2977 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
2978
2979 2002-08-03 Andrew Cagney <ac131313@redhat.com>
2980
2981 * Makefile.in (gdbtk-bp.o): Update dependencies.
2982 (gdbtk-register.o): Ditto.
2983 (gdbtk-varobj.o): Ditto.
2984
2985 2002-08-03 Andrew Cagney <cagney@redhat.com>
2986
2987 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
2988 m68hc11_fetch_pseudo_register.
2989 (m68hc11_pseudo_register_write): Replace
2990 m68hc11_store_pseudo_register.
2991 (m68hc11_gdbarch_init): Update.
2992
2993 Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
2994
2995 * gdbarch.sh: Include "gdb_string.h".
2996 * gdbarch.c: Regenerate.
2997
2998 * regcache.c: Include "gdb_string.h".
2999 * ax-general.c: Ditto.
3000 * varobj.c: Ditto.
3001 * std-regs.c: Ditto.
3002 * fbsd-proc.c: Ditto.
3003 * thread.c: Ditto.
3004
3005 * Makefile.in (regcache.o): Update dependencies.
3006 (thread.o, gdbarch.o): Ditto.
3007 (ax-general.o, gdbarch.o): Ditto.
3008 (varobj.o, std-regs.o): Ditto.
3009 (fbsd-proc.o): Specify dependencies.
3010
3011 2002-08-02 Andrew Cagney <cagney@redhat.com>
3012
3013 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
3014 regnum.
3015 (regcache_cooked_write): Ditto.
3016
3017 2002-08-02 Andrew Cagney <ac131313@redhat.com>
3018
3019 * regcache.c (regcache_cooked_read): New function.
3020 (regcache_cooked_write): New function.
3021 (read_register_gen): Rewrite using regcache_cooked_read.
3022 (write_register_gen): Rewrite using regcache_cooked_write.
3023
3024 * regcache.h (regcache_cooked_read, regcache_cooked_write):
3025 Declare.
3026
3027 2002-08-02 Andrew Cagney <cagney@redhat.com>
3028
3029 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
3030 Replace the architecture methods register_read and register_write.
3031 * gdbarch.h, gdbarch.c: Regenerate.
3032 * regcache.c (init_regcache_descr): Update.
3033 (read_register_gen): Update.
3034 (write_register_gen): Update.
3035 (supply_register): Update comment.
3036
3037 * sh-tdep.c (sh_gdbarch_init): Update.
3038 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
3039 `regcache' and `gdbarch' parameters. Make `buffer' a void
3040 pointer. Update code.
3041 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
3042 `regcache' and `gdbarch' parameters. Make `buffer' a constant
3043 void pointer. Update code.
3044 (sh64_register_write): Delete.
3045 (sh4_register_read): Delete.
3046 (sh64_register_read): Delete.
3047 (sh4_register_write): Delete.
3048 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
3049 void pointer, `to' parameter a void pointer.
3050 (sh_sh64_register_convert_to_raw): Ditto.
3051
3052 2002-08-01 Kevin Buettner <kevinb@redhat.com>
3053
3054 * mips-tdep.c (mips_register_virtual_type): Use architecture
3055 invariant return values.
3056
3057 2002-08-01 Andrew Cagney <cagney@redhat.com>
3058
3059 * linux-proc.c: Include "gdb_string.h".
3060 * Makefile.in (linux-proc.o): Update dependency list.
3061
3062 2002-08-01 Kevin Buettner <kevinb@redhat.com>
3063
3064 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
3065 comment.
3066
3067 2002-08-01 Grace Sainsbury <graces@redhat.com>
3068
3069 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
3070 to_insert_watchpoint, to_remove_watchpoint,
3071 to_stopped_by_watchpoint, to_stopped_data_address,
3072 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
3073 target vecctor. Define their corresponding macros so they call
3074 them.
3075
3076 * target.c: Add default and debug versions of for
3077 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
3078 to_insert_watchpoint, to_remove_watchpoint,
3079 to_stopped_by_watchpoint, to_stopped_data_address,
3080 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
3081
3082 2002-08-01 Kevin Buettner <kevinb@redhat.com>
3083
3084 * mips-tdep.c (mips_register_virtual_type): New function.
3085 (mips_gdbarch_init): Register mips_register_virtual_type()
3086 with gdbarch machinery.
3087 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
3088 this file instead of tm-bigmips.h.
3089 (MIPS_REGSIZE): Delete this macro.
3090 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
3091 multiarch version in mips-tdep.c will be found.
3092
3093 2002-08-01 Andrew Cagney <cagney@redhat.com>
3094
3095 * NEWS: Menion that CHILL has been made obsolete.
3096
3097 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
3098 * stabsread.c (read_range_type): Ditto.
3099 * gdbtypes.h: Ditto.
3100 * language.c (binop_type_check): Ditto.
3101 (binop_result_type): Ditto.
3102 (integral_type): Ditto.
3103 (character_type): Ditto.
3104 (string_type): Ditto.
3105 (boolean_type): Ditto.
3106 (structured_type): Ditto.
3107 (lang_bool_type): Ditto.
3108 (binop_type_check): Ditto.
3109 * language.h (_LANG_chill): Ditto.
3110 * dwarfread.c (set_cu_language): Ditto.
3111 * dwarfread.c (CHILL_PRODUCER): Ditto.
3112 * dwarfread.c (handle_producer): Ditto.
3113 * expression.h (enum exp_opcode): Ditto.
3114 * eval.c: Ditto for comments.
3115 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
3116 * expprint.c (print_subexp): Ditto.
3117 (print_subexp): Ditto.
3118 * valops.c (value_cast): Ditto.
3119 (search_struct_field): Ditto.
3120 * value.h (COERCE_VARYING_ARRAY): Ditto.
3121 * symfile.c (init_filename_language_table): Ditto.
3122 (add_psymbol_with_dem_name_to_list): Ditto.
3123 * valarith.c (value_binop): Ditto.
3124 (value_neg): Ditto.
3125 * valops.c (value_slice): Ditto.
3126 * symtab.h (union language_specific): Ditto.
3127 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
3128 (SYMBOL_DEMANGLED_NAME): Ditto.
3129 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
3130 * defs.h (enum language): Ditto.
3131 * symtab.c (got_symtab): Ditto.
3132 * utils.c (fprintf_symbol_filtered): Ditto.
3133
3134 * ch-typeprint.c: Make file obsolete.
3135 * ch-valprint.c: Make file obsolete.
3136 * ch-lang.h: Make file obsolete.
3137 * ch-exp.c: Make file obsolete.
3138 * ch-lang.c: Make file obsolete.
3139
3140 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
3141 CHILL_LIB.
3142 (TARGET_FLAGS_TO_PASS): Ditto.
3143 (CHILLFLAGS): Obsolete.
3144 (CHILL): Obsolete.
3145 (CHILL_FOR_TARGET): Obsolete.
3146 (CHILL_LIB): Obsolete.
3147 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
3148 ch-valprint.c.
3149 (HFILES_NO_SRCDIR): Remove ch-lang.h.
3150 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
3151 ch-lang.o.
3152 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
3153 targets.
3154
3155 2002-07-31 Joel Brobecker <brobecker@gnat.com>
3156
3157 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
3158 This does not change anything at the moment, but will be helpful
3159 later when full Ada support is integrated.
3160
3161 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3162
3163 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
3164 help message.
3165
3166 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3167
3168 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
3169 and save it in a local variable. Use variable in later test.
3170
3171 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3172
3173 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
3174 test. (Thanks to Daniel Jacobowitz.)
3175
3176 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3177
3178 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
3179 (mips_abi_strings): Add "n64".
3180 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
3181
3182 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3183
3184 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
3185 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
3186
3187 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3188
3189 * utils.c (host_pointer_to_address, address_to_host_pointer):
3190 Use gdb_assert() instead of explicit call to internal_error().
3191
3192 2002-07-30 Kevin Buettner <kevinb@redhat.com>
3193
3194 * Makefile.in (rs6000-nat.o): Update dependencies.
3195
3196 From Nicholas Duffek:
3197 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
3198 (aix-thread.o): New rule.
3199 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
3200 * config/powerpc/aix432.mh: New file.
3201
3202 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
3203
3204 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
3205 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
3206 (fetch_core_registers, ppc_linux_supply_gregset)
3207 (ppc_linux_supply_fpregset): New functions.
3208 (ppc_linux_regset_core_fns): New.
3209 (_initialize_ppc_linux_tdep): Call add_core_fns.
3210 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
3211 and ppc_linux_supply_gregset.
3212 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
3213 (supply_fpregset): Call ppc_linux_supply_fpregset.
3214 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
3215 corelow.o.
3216 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
3217
3218 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
3219
3220 * symtab.c (lookup_symbol): Demangle before lowercasing.
3221
3222 2002-07-30 Andrew Cagney <ac131313@redhat.com>
3223
3224 * symtab.h: Replace #include "gdb_obstack.h" with opaque
3225 declaration.
3226 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
3227 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
3228 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
3229 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
3230 "gdb_string.h".
3231 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
3232 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
3233 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
3234 (avr-tdep.o, mon960-rom.o): Ditto.
3235 (aout_stabs_gnu_h): Define.
3236 (symtab_h): Remove $(gdb_obstack_h).
3237
3238 2002-07-30 Jim Blandy <jimb@redhat.com>
3239
3240 Patch from David Carlton <carlton@math.stanford.edu>:
3241 * gdbinit.in: Move the `dir' commands that add GDB's own source
3242 directory to the search path to the end, so that the `gdb' source
3243 directory will be searched first.
3244
3245 2002-07-29 Andrew Cagney <ac131313@redhat.com>
3246
3247 * gdb_obstack.h: New file.
3248 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
3249 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
3250 * objfiles.h: Include "gdb_obstack.h".
3251 * Makefile.in (gdb_obstack_h): Define.
3252 (symtab_h): Add $(gdb_obstack_h).
3253 (objfiles_h): Add $(gdb_obstack_h).
3254
3255 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
3256 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
3257 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
3258 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
3259 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
3260 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
3261 * symfile.c, coffread.c, c-typeprint.c: Ditto.
3262 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
3263
3264 * Makefile.in (bcache.o): Update dependencies.
3265 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
3266 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
3267 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
3268 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
3269 (stabsread.o, symfile.o, symmisc.o): Ditto.
3270 (symtab.o, typeprint.o, macroexp.o): Ditto.
3271 (macrotab.o, mdebugread.o): Ditto.
3272 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
3273 (coff_ecoff_h, aout_aout64_h): Define.
3274 (aout_stabs_gnu_h, libaout_h): Define.
3275
3276 2002-07-29 Andrew Cagney <cagney@redhat.com>
3277
3278 * regcache.c (struct regcache_descr): Rename nr_registers to
3279 nr_cooked_registers. Revise comments describing the structure
3280 member fields.
3281 (init_regcache_descr): Update.
3282 (init_legacy_regcache_descr): Update.
3283 (read_register_gen, write_register_gen): When a cooked register in
3284 the raw register range, directly access the value from the raw
3285 register cache.
3286
3287 2002-07-29 Andrew Cagney <ac131313@redhat.com>
3288
3289 * z8k-tdep.c: Do not include "obstack.h".
3290 * h8300-tdep.c, h8500-tdep.c: Ditto.
3291 * m68hc11-tdep.c, sh-tdep.c: Ditto.
3292 * valprint.c, v850-tdep.c: Ditto.
3293 * d10v-tdep.c, mn10300-tdep.c: Ditto.
3294 * mn10200-tdep.c: Ditto.
3295
3296 * Makefile.in (z8k-tdep.o): Update dependencies.
3297 (m68hc11-tdep.o, valprint.o): Ditto.
3298 (v850-tdep.o, d10v-tdep.o): Ditto.
3299 (mn10300-tdep.o, sparc-tdep.o): Ditto.
3300 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
3301 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
3302 (sh_opc_h, gdb_sim_sh_h): Define.
3303 (elf_sh_h, elf_bfd_h): Define.
3304 (opcode_m68hc11_h): Define.
3305 (OPCODES_SRC, OPCODES_DIR): define.
3306 (OPCODES): Use $(OPCODES_DIR).
3307 (gdb_sim_d10v_h): Rename sim_d10v_h.
3308 (gdb_sim_arm_h): Rename sim_arm_h.
3309
3310 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3311
3312 * utils.c (host_pointer_to_address, address_to_host_pointer):
3313 Change internal_error() message to indicate function responsible
3314 for the error.
3315
3316 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3317
3318 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
3319 calls to local_hex_string_custom().
3320
3321 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3322
3323 * irix5-nat.c: Move IRIX shared library support from here...
3324 * solib-irix.c: ...to here. Revised substantially to work with
3325 generic solib framework.
3326
3327 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
3328 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
3329 * mips-irix-tdep.c: New file.
3330
3331 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
3332 (mips-irix-tdep.o, solib-irix.o): New rules.
3333 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
3334 solib-irix.o.
3335 * config/mips/irix6.mt (TDEPFILES): Likewise.
3336 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
3337
3338 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3339
3340 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
3341 disabled (via ``#if 0'') includes.
3342
3343 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3344
3345 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
3346 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
3347 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
3348 Add support for the fpscr register.
3349 * rs6000-nat.c (regmap, fetch_inferior_registers)
3350 (store_inferior_registers, fetch_core_registers): Likewise.
3351
3352 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3353
3354 * rs6000-nat.c (language.h): Include.
3355 (special_regs): Delete this array.
3356 (regmap): New function.
3357 (fetch_register, store_register): Use regmap() to map gdb
3358 register numbers to ptrace register numbers. Also, use
3359 outputs from regmap() to make decisions regarding type of
3360 ptrace() call to make. In particular, don't compare against
3361 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
3362 (fetch_inferior_registers, store_inferior_registers): Where
3363 possible, obtain register numbers from tdep struct. Don't
3364 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
3365 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
3366 (LAST_UISA_SP_REGNUM): Delete.
3367
3368 2002-07-25 Kevin Buettner <kevinb@redhat.com>
3369
3370 * rs6000-nat.c (ppc-tdep.h): Include.
3371 (fetch_registers, store_register, fetch_core_registers): Don't
3372 access registers[] directly. Instead, use supply_register() or
3373 regcache_collect() as appropriate.
3374 (find_toc_address): Format hex address with local_hex_string().
3375
3376 2002-07-25 Andrew Cagney <ac131313@redhat.com>
3377
3378 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
3379 bfd/elf32-frv.c.
3380
3381 2002-07-24 Tom Tromey <tromey@redhat.com>
3382
3383 * jv-exp.y: Marked all strings with _().
3384 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
3385 internal_error.
3386 (MethodInvocation, CastExpression, parse_number, yyerror,
3387 java_type_from_name, push_expression_name, yylex): Typo fixes.
3388
3389 2002-07-24 Daniel Jacobowitz <drow@mvista.com>
3390
3391 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
3392 (tee_file_flush, tee_file_write, tee_file_fputs)
3393 (tee_file_isatty): New.
3394 * ui-file.h (tee_file_new): Add prototype.
3395
3396 2002-07-24 Aidan Skinner <aidan@velvet.net>
3397
3398 * ada-lang.c: Change k&r style function definitions to prototyped
3399 form.
3400 * ada-typeprint.c: Change k&r style function definitions to prototyped
3401 form.
3402 * ada-valprint.c: Change k&r style function definitions to prototyped
3403 form.
3404
3405 2002-07-24 Andrew Cagney <cagney@redhat.com>
3406
3407 * README: Remove reference to remote-bug.
3408 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
3409 remote-bug.c.
3410 (m88k-nat.o): Delete rule.
3411 (m88k-tdep.o): Delete rule.
3412 (remote-bug.o): Delete rule.
3413 * MAINTAINERS: Mark as obsolete.
3414 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
3415 * m88k-tdep.c: Make file obsolete.
3416 * config/m88k/m88k.mh: Ditto.
3417 * config/m88k/delta88v4.mh: Ditto.
3418 * config/m88k/delta88v4.mt: Ditto.
3419 * config/m88k/delta88.mt: Ditto.
3420 * config/m88k/delta88.mh: Ditto.
3421 * remote-bug.c: Ditto.
3422 * config/m88k/tm-delta88.h: Ditto.
3423 * config/m88k/nm-delta88v4.h: Ditto.
3424 * config/m88k/xm-delta88.h: Ditto.
3425 * config/m88k/xm-dgux.h: Ditto.
3426 * config/m88k/tm-m88k.h: Ditto.
3427 * config/m88k/nm-m88k.h: Ditto.
3428 * config/m88k/tm-delta88v4.h: Ditto.
3429 * m88k-nat.c: Ditto.
3430 * cxux-nat.c: Ditto.
3431 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
3432 and m88*-*-* obsolete.
3433 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
3434 m88*-*-* obsolete.
3435
3436 2002-07-24 Andrew Cagney <cagney@redhat.com>
3437
3438 * findvar.c (extract_unsigned_integer): Make `addr' parameter
3439 constant. Same for local pointer variables.
3440 (extract_signed_integer): Ditto.
3441 * defs.h (extract_unsigned_integer): Update.
3442 (extract_signed_integer): Update.
3443
3444 2002-07-24 Andrew Cagney <cagney@redhat.com>
3445
3446 * regcache.c (regcache_raw_write): Change buf parameter to a
3447 constant void pointer.
3448 (regcache_raw_read): Change buf parameter to a void pointer.
3449 (legacy_write_register_gen): Change myaddr parameter a constant
3450 void pointer.
3451 (supply_register): Change val parameter to a const void pointer.
3452 * regcache.h (regcache_raw_write): Update declaration.
3453 (regcache_raw_read): Update declaration.
3454 (supply_register): Update declaration.
3455
3456 2002-07-24 Tom Tromey <tromey@redhat.com>
3457
3458 * defs.h (gdb_readline_wrapper): Declare.
3459 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
3460 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
3461 * top.c (gdb_readline_wrapper): New function.
3462 (command_line_input): Use it.
3463
3464 2002-07-24 Andrew Cagney <cagney@redhat.com>
3465
3466 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
3467 regcache_read and regcache_write.
3468 (regcache_raw_read_as_address): Replace regcache_read_as_address.
3469 * regcache.c: Update.
3470 * sh-tdep.c (sh64_push_arguments): Update comment.
3471 (sh_pseudo_register_read): Update.
3472 (sh_pseudo_register_write): Update.
3473 (sh4_register_read): Update.
3474 (sh4_register_write): Update.
3475 (sh64_pseudo_register_read): Update.
3476 (sh64_pseudo_register_write): Update.
3477 (sh64_register_read): Update.
3478 (sh64_register_write): Update.
3479 * i386-tdep.c (i386_extract_return_value): Update.
3480 (i386_extract_struct_value_address): Update.
3481 (i386_extract_return_value): Update.
3482 * blockframe.c (generic_read_register_dummy): Update.
3483 (generic_call_dummy_register_unwind): Update
3484 * infrun.c (write_inferior_status_register): Update.
3485
3486 2002-07-23 Jim Blandy <jimb@redhat.com>
3487
3488 * parser-defs.h (expression_context_pc): Make this extern.
3489 (Thanks to Michael Snyder.)
3490
3491 2002-07-23 Andrew Cagney <ac131313@redhat.com>
3492
3493 GDB 5.2.1 released from 5.2 branch.
3494 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
3495 * README: Update to mention 5.2.1.
3496
3497 2002-07-23 Mark Salter <msalter@redhat.com>
3498
3499 * remote.c (remote_read_bytes): Fix check for error.
3500
3501 2002-07-22 Kevin Buettner <kevinb@redhat.com>
3502
3503 * aix-thread.c (language.h): Include.
3504 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
3505 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
3506 Print newlines at end of debug messages.
3507 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
3508 (pdc_write_data): Use local_hex_string() instead of %llx formats.
3509
3510 2002-07-22 Kevin Buettner <kevinb@redhat.com>
3511
3512 * aix-thread.c (ppc-tdep.h): Include.
3513 (special_register_p): New function.
3514 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
3515 (store_regs_user_thread): Use register number information from
3516 gdbarch_tdep struct instead of hardcoded offsets relative to
3517 FIRST_UISA_SP_REGNUM.
3518 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
3519 special_register_p() instead of using FPLAST_REGNUM and
3520 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
3521 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
3522 will be MQ's register number.
3523
3524 2002-07-22 Michael Snyder <msnyder@redhat.com>
3525
3526 * aix-thread.c (ops): Rename to aix_thread_ops.
3527 (base_ops): Rename to base_target.
3528 (ops_attach): Rename to aix_thread_attach.
3529 (ops_detach): Rename to aix_thread_detach.
3530 (ops_resume): Rename to aix_thread_detach.
3531 (ops_wait): Rename to aix_thread_wait.
3532 (ops_kill): Rename to aix_thread_kill.
3533 (init_ops): Rename to init_aix_thread_ops.
3534 (ops_fetch_register): Rename to aix_thread_fetch_register.
3535 (ops_store_register): Rename to aix_thread_store_register.
3536 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
3537 (ops_thread_alive): Rename to aix_thread_thread_alive.
3538 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
3539 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
3540 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
3541 (fetch_regs_lib): Rename to fetch_regs_user_thread.
3542 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
3543 (store_regs_lib): Rename to store_regs_user_thread.
3544 (store_regs_kern): Rename to store_regs_kernel_thread.
3545
3546 2002-07-22 Michael Snyder <msnyder@redhat.com>
3547
3548 * aix-thread.c (ops_prepare_to_store): Eliminate.
3549 (init_ops): Don't initialize ops.prepare_to_store.
3550 (store_regs_kern): Pre-fetch register buffers from child,
3551 because some registers may not be in the cache. Copy
3552 regs from register cache only if they are cached.
3553 (store_regs_lib): Copy regs from register cache only
3554 if they are cached.
3555 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
3556 fill_gprs64): Ditto.
3557
3558 2002-07-22 Kevin Buettner <kevinb@redhat.com>
3559
3560 * aix-thread.c (gdb_assert.h): Include.
3561 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
3562 register sizes (from register cache) match size of buffer holding
3563 register data.
3564 (fill_sprs32): Change parameter types to match those in the ptrace()
3565 buffer.
3566 (store_regs_lib): Likewise, but for 32-bit temporary variables.
3567 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
3568
3569 2002-07-22 Michael Snyder <msnyder@redhat.com>
3570
3571 * aix-thread.c (supply_sprs64): Cosmetic change.
3572 (supply_sprs32): Cosmetic change.
3573 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
3574 (fill_sprs64): Use regcache_collect instead of read_register.
3575 (store_regs_lib): Use regcache_collect instead of
3576 read_register. Use fill_sprs32 instead of fill_sprs64,
3577 if debugging a 32-bit architecture.
3578 (store_regs_kern): Use fill_gprs64 etc. to pull the values
3579 out of the register cache, instead of passing a pointer into
3580 the register cache directly to ptrace. Use regcache_collect
3581 insteaad of read_register.
3582 (ops_prepare_to_store): Use target_read_registers instead
3583 of read_register_bytes.
3584
3585 2002-07-20 Aidan Skinner <aidan@velvet.net>
3586
3587 * MAINTAINERS: Add self under write after approval.
3588
3589 2002-07-20 Aidan Skinner <aidan@velvet.net>
3590
3591 * ada-tasks.c: Change k&r style function definitions to prototyped
3592 form.
3593
3594 2002-07-19 Andrew Cagney <ac131313@redhat.com>
3595
3596 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
3597 * x86-64-tdep.c: Include "objfiles.h".
3598 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
3599 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
3600
3601 2002-07-17 Michal Ludvig <michal@suse.cz>
3602
3603 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
3604 (update_context): Initialise cfa variable.
3605
3606 2002-07-17 Michael Snyder <msnyder@redhat.com>
3607
3608 * aix-thread.c: Shorten some long lines.
3609 Bring comments into line with code spec.
3610
3611 2002-07-18 Joel Brobecker <brobecker@gnat.com>
3612
3613 * infrun.c: Re-indent using gdb_indent.sh.
3614
3615 2002-07-18 Joel Brobecker <brobecker@gnat.com>
3616
3617 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
3618 Leave the indentation temporarily untouched, to minimize the diffs.
3619
3620 2002-07-18 Elena Zannoni <ezannoni@redhat.com>
3621
3622 * stabsread.c: Make os9k sections of the code obsolete,
3623 for real this time.
3624 * stabsread.h: Make os9k sections of the code obsolete.
3625
3626 2002-07-18 Michal Ludvig <mludvig@suse.cz>
3627
3628 * linux-low.c (regsets_store_inferior_registers): Add free()
3629 at the end of a loop to prevent memory leak.
3630 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
3631 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
3632 * config/sparc/tm-sp64linux.h: Make the rest of #endif
3633 line a comment.
3634 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
3635
3636 2002-07-17 Jim Blandy <jimb@redhat.com>
3637
3638 * macrocmd.c (info_macro_command): Remove newline from error
3639 message.
3640
3641 2002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
3642
3643 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
3644 (sh_gdbarch_init): Use it for sh-dsp.
3645
3646 2002-07-16 Kevin Buettner <kevinb@redhat.com>
3647
3648 * dwarf2read.c (read_initial_length): Handle older, non-standard,
3649 64-bit DWARF2 format.
3650
3651 2002-07-16 Joel Brobecker <brobecker@gnat.com>
3652
3653 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
3654 <sys/proc.h> when not available.
3655
3656 2002-07-16 Andrew Cagney <ac131313@redhat.com>
3657
3658 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
3659 * stabsread.c: Make os9k sections of the code obsolete.
3660 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
3661 * config/i386/i386os9k.mt: Make file obsolete.
3662 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
3663 (COMMON_OBS): Remove os9kread.o
3664 (SFILES): Remove os9kread.c.
3665 (os9kread.o, remote-os9k.o): Make target obsolete.
3666 * remote-os9k.c: Make file obsolete.
3667 * os9kread.c: Make file obsolete.
3668 * Makefile.in
3669
3670 2002-07-16 Andrew Cagney <ac131313@redhat.com>
3671
3672 * NEWS: Mention that the FR30 has been made obsolete.
3673 * fr30-tdep.c: Make file obsolete.
3674 * config/fr30/tm-fr30.h: Ditto.
3675 * config/fr30/fr30.mt: Ditto.
3676 * configure.tgt: Make fr30-*-elf obsolete.
3677 * MAINTAINERS: Make fr30-elf obsolete.
3678
3679 2002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
3680
3681 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
3682 found is not inside a section.
3683
3684 2002-07-15 Kevin Buettner <kevinb@redhat.com>
3685
3686 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
3687 strerror().
3688 (pdc_realloc): Use xrealloc() instead of realloc().
3689
3690 2002-07-15 Kevin Buettner <kevinb@redhat.com>
3691
3692 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
3693 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
3694 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
3695 macros.
3696
3697 2002-07-15 Kevin Buettner <kevinb@redhat.com>
3698
3699 * aix-thread.c (ptrace_check): Eliminate goto.
3700 (sync_threadlists): Eliminate gotos. Also, fix array overrun
3701 problem.
3702
3703 2002-07-15 Kevin Buettner <kevinb@redhat.com>
3704
3705 * aix-thread.c (gdbcmd.h): Include.
3706 (DEBUG, DBG, DBG2, dbg): Eliminate.
3707 (debug_aix_thread): New static global.
3708 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
3709 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
3710 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
3711 invocations to DBG and DBG2 macros to test against
3712 ``debug_aix_thread'' and call fprintf_unfiltered().
3713 (_initialize_aix_thread): Add new command "set debug aix-thread".
3714
3715 2002-07-15 Andrew Cagney <ac131313@redhat.com>
3716
3717 From Gerhard Tonn <TON@de.ibm.com>:
3718 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
3719 instead of supply_register.
3720
3721 2002-07-15 Andrew Cagney <ac131313@redhat.com>
3722
3723 * dwarf2cfi.c: Include "gdb_assert.h".
3724 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
3725 non-NULL.
3726 (update_context): Do not use __func__. Add missing ``break''.
3727 (update_context): Do not use __func__.
3728
3729 2002-07-15 Elena Zannoni <ezannoni@redhat.com>
3730
3731 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
3732 and its setting. Set gdbarch instruction printing functions
3733 directly. For non-rs6000 case use new function
3734 gdb_print_insn_powerpc.
3735 (gdb_print_insn_powerpc): New function.
3736
3737 2002-07-13 Andrew Cagney <ac131313@redhat.com>
3738
3739 * NEWS: Mention that the d30v has been marked obsolete.
3740 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
3741 * configure.tgt: Mark d30v-*-* as obsolete.
3742 * d30v-tdep.c: Mark file as obsolete.
3743 * config/d30v/d30v.mt: Ditto.
3744 * config/d30v/tm-d30v.h: Ditto.
3745
3746 2002-07-13 Aidan Skinner <aidan@velvet.net>
3747
3748 * ada-tasks.c (add_task_entry): replace calls to
3749 malloc() with xmalloc
3750 * ada-tasks.c (init_task_list): replace calls to free with xfree()
3751
3752 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
3753 ada_finish_decode_line_1, all_sals_for_line
3754 ada_breakpoint_rewrite): replace calls to free() with xfree()
3755
3756 2002-07-12 Kevin Buettner <kevinb@redhat.com>
3757
3758 From Nicholas Duffek (with minor changes by Martin Hunt,
3759 Louis Hamilton, and Kevin Buettner):
3760 * aix-thread.c: New file.
3761
3762 2002-07-12 Petr Sorfa <petrs@caldera.com>
3763
3764 * dwarf2read.c (dwarf2_invalid_attrib_class): New
3765 complaint for invalid attribute class or form.
3766 (read_func_scope): DW_AT_frame_base
3767 better handling of DW_AT_block*.
3768 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
3769 better handling of DW_AT_block*.
3770 (read_common_block): DW_AT_location
3771 better handling of DW_AT_block*.
3772 (read_partial_die): DW_AT_location better handling
3773 of DW_AT_block*.
3774 (new_symbol): DW_AT_external better handling of
3775 DW_AT_block*. Proper initialization of variable
3776 "addr".
3777 (attr_form_is_block): New function that returns true
3778 if the attribute's form is of DW_FORM_block*.
3779
3780 2002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
3781
3782 * valops.c (find_method_list): Remove comment about
3783 removed STATIC_MEMFUNCP argument.
3784 (value_find_oload_method_list): Likewise.
3785
3786 2002-07-12 Kevin Buettner <kevinb@redhat.com>
3787
3788 From Nicholas Duffek:
3789 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
3790 target_new_objfile_hook.
3791
3792 2002-07-12 Kevin Buettner <kevinb@redhat.com>
3793
3794 From Nicholas Duffek:
3795 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
3796 csect.
3797
3798 2002-07-12 Andrew Cagney <cagney@redhat.com>
3799
3800 * MAINTAINERS: Mention --enable-sim-build-warnings.
3801 (m68hc11-elf): Disable sim build warnings.
3802 (m32r-elf): Mark as broken obsolete candidate.
3803 (x86_64-linux-gnu): Mark as buildable with -Werror.
3804 (arm-elf): Change -w to ``,'' which enables warnings but not
3805 -Werror.
3806
3807 2002-07-12 Andrew Cagney <ac131313@redhat.com>
3808
3809 * bcache.h: Update copyright.
3810 (struct bstring, struct bcache): Move definition to "bcache.c".
3811 Replaced by opaque declaration.
3812 (bcache_xfree): Replace free_bcache.
3813 (bcache_xmalloc, bcache_memory_used): Declare.
3814
3815 * bcache.c: Update copyright.
3816 (struct bstring, struct bcache): Moved to here from "bcache.h".
3817 Update comments.
3818 (bcache_xmalloc, bcache_memory_used): New functions.
3819 (bcache_xfree): Replace function free_bcache.
3820
3821 * Makefile.in (objfiles.o): Add $(bcache_h).
3822 (objfiles_h): Remove $(bcache_h).
3823 (symfile.o): Add $(bcache_h).
3824
3825 * symmisc.c: Update copyright.
3826 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
3827 (print_objfile_statistics): Use bcache_memory_used.
3828
3829 * symfile.c: Include "bcache.h".
3830 (reread_symbols): Use bcache_xfree.
3831 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
3832 (add_psymbol_to_list): Pass psymbol_cache by value.
3833 (add_psymbol_with_dem_name_to_list): Ditto.
3834
3835 * objfiles.h: Update copyright.
3836 (struct bcache): Declare opaque. Do not include "bcache.h".
3837 (struct objfile): Change psymbol_cache and macro_cache to ``struct
3838 bcache'' pointers.
3839 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
3840
3841 * objfiles.c: Include "bcache.h". Update copyright.
3842 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
3843 macro_cache.
3844 (free_objfile): Use bcache_xfree.
3845
3846 2002-07-11 Grace Sainsbury <graces@redhat.com>
3847
3848 * monitor.c (monitor_fetch_register): Make name a constant.
3849 (monitor_store_register): Same.
3850
3851 2002-07-11 Daniel Jacobowitz <drow@mvista.com>
3852
3853 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
3854 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
3855 (finish_block) For non-function blocks, hash the symbol table. For
3856 function blocks, mark the symbol table as unhashed.
3857 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
3858 (msymbol_hash_iw): Likewise.
3859 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
3860 value.
3861 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
3862 (lookup_minimal_symbol): Likewise for both.
3863 * symtab.h (struct block): Add `hashtable' flag. Comment the
3864 hashtable.
3865 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
3866 (ALL_BLOCK_SYMBOLS): Update.
3867 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
3868 (struct symbol): Add `hash_next' pointer.
3869 * symtab.c (lookup_block_symbol): Search using the hash table when
3870 possible.
3871 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
3872 (search_symbols, find_addr_symbol): Likewise.
3873
3874 * dstread.c (process_dst_block): Clear hashtable bit for new block.
3875 (read_dst_symtab): Likewise.
3876 * jv-lang.c (get_java_class_symtab): Likewise.
3877 * mdebugread.c: Include "gdb_assert.h".
3878 (shrink_block): Assert that the block being modified is not hashed.
3879 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
3880 * symmisc.c (free_symtab_block): Walk the hash table when freeing
3881 symbols.
3882 (dump_symtab): Recognize hashed blocks.
3883 * printcmd.c (print_frame_args): Assert that function blocks do not
3884 have hashed symbol tables.
3885 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
3886 (fill_in_ada_prototype, debug_print_block): Likewise.
3887 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
3888
3889 2002-07-11 Corinna Vinschen <vinschen@redhat.com>
3890
3891 * stack.c (print_frame): Use result of frame_address_in_block()
3892 instead of fi->pc when evaluating symbols.
3893 (backtrace_command_1): Ditto.
3894
3895 2002-07-11 Andrew Cagney <cagney@redhat.com>
3896
3897 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
3898 Make static.
3899
3900 * arm-tdep.c (arm_register_name): Make return type constant.
3901
3902 2002-07-10 Andrew Cagney <ac131313@redhat.com>
3903
3904 * win32-nat.c (has_detach_ability): Convert to strict ISO C
3905 prototype.
3906 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
3907 * s390-tdep.c (s390_fp_regnum): Ditto.
3908 (s390_read_fp): Ditto.
3909 (s390_pop_frame): Ditto.
3910 (_initialize_s390_tdep): Ditto.
3911 * remote.c (get_remote_state): Ditto.
3912 * procfs.c (mappingflags): Ditto.
3913 * memattr.c (_initialize_mem): Ditto.
3914 * mcore-tdep.c (mcore_pop_frame): Ditto.
3915 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
3916 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
3917 * language.c (set_case_str): Ditto.
3918 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
3919 * frv-tdep.c (new_variant): Ditto.
3920 (frv_stopped_data_address): Ditto.
3921 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
3922 (context_alloc): Ditto.
3923 (frame_state_alloc): Ditto.
3924 (unwind_tmp_obstack_init): Ditto.
3925 (unwind_tmp_obstack_free): Ditto.
3926 (cfi_read_fp): Ditto.
3927 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
3928 (cris_pop_frame): Ditto.
3929 * c-lang.c (scanning_macro_expansion): Ditto.
3930 (finished_macro_expansion): Ditto.
3931 (c_preprocess_and_parse): Ditto.
3932 * gdbarch.sh: Ditto.
3933 * gdbarch.h, gdbarch.c: Regenerate.
3934 * config/mn10200/tm-mn10200.h: Adjust indentation.
3935 * target.c: Adjust indentation.
3936 * symtab.h: Adjust indentation.
3937 * stabsread.h: Adjust indentation.
3938 * remote-es.c: Adjust indentation.
3939 * os9kread.c: Adjust indentation.
3940
3941 2002-07-10 Andrew Cagney <ac131313@redhat.com>
3942
3943 * wince.c (_initialize_wince): Rename _initialize_inftarg.
3944 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
3945
3946 2002-07-10 Grace Sainsbury <graces@redhat.com>
3947
3948 * NEWS: Mention m68k, mcore multi-arching.
3949 * MAINTAINERS: Change status of m68k, mcore to reflect
3950 multi-arching.
3951
3952 2002-07-10 Daniel Jacobowitz <drow@mvista.com>
3953
3954 * valops.c (find_overload_match): Free oload_syms.
3955
3956 2002-07-09 Joel Brobecker <brobecker@gnat.com>
3957
3958 Define HAVE_SYS_PROC_H if sys/proc.h exists
3959 * configure.in: Add check for sys/proc.h
3960 * config.in: Regenerate.
3961 * configure: Regenerate.
3962
3963 2002-07-09 Grace Sainsbury <graces@redhat.com>
3964
3965 * config/m68k/tm-m68k.h: Remove macros wrapped in
3966 #if !GDB_MULTI_ARCH.
3967
3968 2002-07-08 Andrew Cagney <ac131313@redhat.com>
3969
3970 * config.in, configure: Regenerate.
3971
3972 2002-07-08 Mark Kettenis <kettenis@gnu.org>
3973
3974 * dwarf2cfi.c: Include "gcore.h".
3975 (execute_stack_op): Fix implementation of the
3976 DW_OP_deref and DW_OP_deref_size operators by letting do their
3977 lookup in the target.
3978
3979 2002-07-07 Mark Kettenis <kettenis@gnu.org>
3980
3981 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
3982 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
3983 tdep->sc_sp_offset.
3984
3985 2002-07-05 Daniel Jacobowitz <drow@mvista.com>
3986
3987 Fix PR gdb/595, gdb/602
3988 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
3989 Don't call value_cast, just read the vtable pointer; update comments
3990 to match.
3991
3992 2002-07-05 Grace Sainsbury <graces@redhat.com>
3993
3994 * config/mcore/tm-mcore.h: Remove file.
3995 * config/mcore/mcore.mt: Remove definition of TM_FILE
3996 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
3997
3998 2002-07-05 Mark Kettenis <kettenis@gnu.org>
3999
4000 * i386bsd-tdep.c: Include "gdb_string.h".
4001
4002 2002-07-04 Grace Sainsbury <graces@redhat.com>
4003
4004 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
4005 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
4006 mcore-tdep.
4007 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
4008 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
4009 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
4010 (RETVAL_REGNUM): Move macros from tm-mcore.h
4011 (mcore_reg_struct_has_addr): New function.
4012 (mcore_gdbarch_init): Added initializations for the macros removed
4013 from tm-mcore.h.
4014
4015 2002-07-04 Mark Kettenis <kettenis@gnu.org>
4016
4017 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
4018 traditonal string branding within the ELF header.
4019
4020 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
4021
4022 * symtab.c (remove_params): New function.
4023 (make_symbol_overload_list): Use it instead of cplus_demangle.
4024 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
4025
4026 2002-07-04 Mark Kettenis <kettenis@gnu.org>
4027
4028 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
4029
4030 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
4031 New variables.
4032 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
4033 and tdep->sigtramp_end.
4034 * i386obsd-nat.c: New file.
4035 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
4036
4037 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
4038 Don't call get_current_frame().
4039
4040 2002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
4041
4042 * i386-nat.c (child_post_startup_inferior): New function
4043 calling i386_cleanup_dregs if
4044 I386_USE_GENERIC_WATCHPOINTS is defined.
4045 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
4046 conditional to acknowledge that i386-nat.c has its
4047 own child_post_startup_inferior function.
4048
4049 2002-07-04 Mark Kettenis <kettenis@gnu.org>
4050
4051 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
4052 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
4053 instead of MAX_REGISTER_RAW_SIZE.
4054 (i386_extract_return_value, i386_extract_struct_value_address):
4055 Convert to use regcache.
4056 (i386_gdbarch_init): Set max_register_raw_size and
4057 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
4058 Set extract_return_value and extract_struct_value_address instead
4059 of their deprecated variants.
4060
4061 Convert i386 target to generic dummy frames.
4062 * i386-tdep.c: Include "symfile.h".
4063 (i386_frameless_signal_p): Consider a function to be frameless if
4064 the pc points at the first instruction of the function.
4065 (i386_frame_chain): Handle (generic) call dummies.
4066 (i386_frame_saved_pc): Likewise.
4067 (i386_frame_init_saved_regs): Remove code dealing with call
4068 dummies on the stack.
4069 (i386_push_dummy_frame): Removed.
4070 (i386_call_dummy_words): Removed.
4071 (i386_fix_call_dummy): Removed.
4072 (i386_push_return_address): New function.
4073 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
4074 parameter, and don't call get_current_frame.
4075 (i386_pop_frame): New function.
4076 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
4077 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
4078 entry_point_address, set call_dummy_breakpoint_offset to 0, set
4079 call_dummy_length to 0, set call_dummy_words to NULL, set
4080 sizeof_call_dummy_words to 0, set fix_call_dummy to
4081 generic_fix_call_dummy, set pc_in_call_dummy to
4082 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
4083 generic_push_dummy_frame, set push_return_address to
4084 i386_push_return_address and set frame_chain_valid to
4085 generic_file_frame_chain_valid.
4086
4087 2002-07-03 Andrew Cagney <ac131313@redhat.com>
4088
4089 * gdbarch.sh (struct regcache): Add opaque declaration.
4090 (EXTRACT_RETURN_VALUE): New architecture method.
4091 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
4092 * gdbarch.h, gdbarch.c: Regenerate.
4093 * arch-utils.c (legacy_extract_return_value): New function.
4094 * arch-utils.h (legacy_extract_return_value): Declare.
4095 * values.c (value_being_returned): Re-enable code handling
4096 EXTRACT_STRUCT_VALUE_ADDRESS. Move
4097 deprecated_grub_regcache_for_registers call to block handling
4098 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
4099 (EXTRACT_RETURN_VALUE): Do not define.
4100
4101 2002-07-03 Grace Sainsbury <graces@redhat.com>
4102
4103 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
4104 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
4105 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
4106 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
4107 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
4108 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
4109 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
4110 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
4111 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
4112 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
4113 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
4114 argument so the function fits the prototype in the architecture
4115 vector.
4116 (mcore_pop_frame): Remove argument so the function fits the
4117 prototype. Use get_current_frame instead of the argument.
4118 (mcore_push_arguments): Change type of struct_return so the
4119 function can be used in the architecture vector.
4120 (mcore_store_struct_return): Add.
4121 (mcore_frame_init_saved_regs): Add.
4122 (mcore_gdbarch_init): Add function calls to replace the macros
4123 removed from tm-mcore.h
4124
4125 2002-07-03 Andrew Cagney <ac131313@redhat.com>
4126
4127 * infcmd.c (print_return_value): Remove compatibility code calling
4128 deprecated_grub_regcache_for_registers.
4129
4130 * values.c: Include "regcache.h".
4131 (value_being_returned): Update. Use
4132 deprecated_grub_regcache_for_registers to extract the register
4133 buffer address.
4134 * value.h (value_being_returned): Change ``retbuf'' parameter to a
4135 ``struct regcache''.
4136 * Makefile.in (values.o): Add dependency on $(regcache_h).
4137
4138 * inferior.h (run_stack_dummy): Change type of second parameter to
4139 a ``struct regcache''.
4140 * valops.c (hand_function_call): Change type of retbuf to ``struct
4141 regcache''. Allocate using regcache_xmalloc, clean using
4142 make_cleanup_regcache_xfree.
4143 * infcmd.c (run_stack_dummy): Update. Use
4144 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
4145
4146 * regcache.c (do_regcache_xfree): New function.
4147 (make_cleanup_regcache_xfree): New function.
4148 * regcache.h (make_cleanup_regcache_xfree): Declare.
4149
4150 2002-07-03 Martin M. Hunt <hunt@redhat.com>
4151
4152 * event-top.c (command_line_handler): Don't read past
4153 beginning of buffer.
4154
4155 2002-07-03 Martin M. Hunt <hunt@redhat.com>
4156
4157 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
4158 struct frame_id.
4159 (varobj_create): Store frame_id for root.
4160 (varobj_gen_name): Use xasprintf.
4161 (varobj_update): Save and restore frame using get_frame_id() and
4162 frame_find_by_id().
4163 (create_child): Use xasprintf.
4164 (new_root_variable): Initialize frame_id.
4165 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
4166 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
4167 to prevent memory leak.
4168
4169 2002-07-03 Andrew Cagney <ac131313@redhat.com>
4170
4171 * valops.c (hand_function_call): Move declaration of retbuf to
4172 start of function, allocate using malloc, add a cleanup but before
4173 the inf_status cleanup, cleanup the buffer. Rename local variable
4174 old_chain to inf_status_cleanup.
4175
4176 2002-07-03 Martin M. Hunt <hunt@redhat.com>
4177
4178 * top.c (execute_command): Use cmd_func() and cmd_func_p().
4179
4180 * cli/cli-decode.c (cmd_func_p): New function.
4181 (cmd_func): New function.
4182
4183 * command.h: Add cmd_func() and cmd_func_p().
4184
4185 2002-07-03 Grace Sainsbury <graces@redhat.com>
4186
4187 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
4188 (REGISTER_SIZE): Remove.
4189 (MAX_REGISTER_RAW_SIZE): Remove.
4190 (REGISTER_VIRTUAL_TYPE): Remove.
4191 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
4192 (REGISTER_NAME): Remove.
4193 (USE_GENERIC_DUMMY_FRAMES): Remove.
4194 (CALL_DUMMY): Remove.
4195 (CALL_DUMMY_START_OFFSET): Remove.
4196 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
4197 (CALL_DUMMY_LOCATION): Remove.
4198 (FIX_CALL_DUMMY): Remove.
4199 (CALL_DUMMY_ADDRESS): Remove.
4200 (SIZEOF_CALL_DUMMY_WORDS): Remove.
4201 (SAVE_DUMMY_FRAME_TOS): Remove.
4202 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
4203 (mcore_register_virtual_type): New function.
4204 (mcore_register_byte): New function.
4205 (mcore_register_size): New function.
4206 (mcore_register_name): New function.
4207 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
4208 macros removed from tm-mcore.h.
4209 (mcore_dump_tdep): Add.
4210 (_initialize_mcore_tdep): Add gdbarch_register call.
4211
4212 2002-07-03 Mark Kettenis <kettenis@gnu.org>
4213
4214 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
4215 frameless_look_for_prologue, such that we actually call this
4216 function.
4217
4218 2002-07-02 Joel Brobecker <brobecker@gnat.com>
4219
4220 * frame.h (frame_address_in_block): New function.
4221
4222 * blockframe.c (frame_address_in_block): New function extracted
4223 from get_frame_block().
4224 (get_frame_block): Use frame_address_in_block().
4225 (block_innermost_frame): Use frame_address_in_block() to match
4226 the frame pc address against the block boundaries rather than
4227 the frame pc directly. This prevents a failure when a frame pc
4228 is actually a return-address pointing immediately after the end
4229 of the given block.
4230
4231 2002-07-02 Grace Sainsbury <graces@redhat.com>
4232
4233 * MAINTAINERS: Add self under write after approval.
4234
4235 2002-07-02 Grace Sainsbury <graces@redhat.com>
4236
4237 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
4238 used in architecture vector. The default is
4239 m68k_local_breakpoint_from_pc.
4240 (m68k_local_breakpoint_from_pc): Add.
4241 (enum): Add register numbers from tm-m68k.h.
4242 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
4243 vector.
4244 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
4245 GDB_MULTI_ARCH_PARTIAL.
4246 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
4247 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
4248 m68k-tdep.c.
4249 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
4250 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
4251 to enum in m68k-tdep.c
4252
4253 2002-07-02 Joel Brobecker <brobecker@gnat.com>
4254
4255 * solib-osf.c (open_map): Compute the list of shared libraries
4256 loaded by the inferior, rather than the list of libraries loaded
4257 by GDB itself. Otherwise, GDB ends up reading the symbols from
4258 the wrong shared libraries...
4259
4260 2002-07-02 Mark Kettenis <kettenis@gnu.org>
4261
4262 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
4263 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
4264 macros.
4265 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
4266 Remove functions.
4267 (FRAMELESS_SIGNAL): Remove function.
4268 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
4269 i386_linux_saved_pc_after_call): Removed.
4270 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
4271 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
4272 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
4273
4274 * i386-tdep.c (i386_frameless_signal_p): New function.
4275 (i386_frame_chain): Deal with frameless signals.
4276 (i386_sigtramp_saved_sp): New function.
4277 (i386_frame_saved_pc): Deal with frameless signals.
4278 (i386_saved_pc_after_call): Make sure the correct value is
4279 returned just after entry into a sigtramp.
4280 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
4281 i386fbsd4_sc_sp_offset): New variables.
4282 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
4283 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
4284 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
4285 similiar to what we already did for sc_pc_offset.
4286 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
4287 tdep->sc_sp_offset.
4288
4289 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
4290
4291 2002-07-02 Michal Ludvig <mludvig@suse.cz>
4292
4293 * config/i386/tm-x86-64linux.h: New.
4294 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
4295 definitions.
4296 * config/i386/nm-x86-64.h: Rename to ...
4297 * config/i386/nm-x86-64linux.h: ... this one.
4298 * config/i386/x86-64linux.mh: Reflect the above change.
4299
4300 2002-07-01 Mark Kettenis <kettenis@gnu.org>
4301
4302 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
4303 with sigcontext_addr. Add sc_sp_offset.
4304 (i386bsd_sigtramp_saved_pc): Remove prototype.
4305 (i386bsd_sicontext_addr): Add prototype.
4306 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
4307 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
4308 (i386_svr4_sigtramp_saved_pc): Removed.
4309 (i386_svr4_sigcontext_addr): New function.
4310 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
4311 Initialize tdep->sigcontext_addr instead. Initialize
4312 tdep->sc_pc_offset and tdep->sc_sp_offset.
4313 (i386_gdbarch_init): Likewise.
4314 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
4315 any more.
4316 (i386bsd_sigtramp_saved_pc): Remove function.
4317 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
4318 Initialize tdep->sigcontext_addr instead. Initialize
4319 tdep->sc_pc_offset.
4320 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
4321 of tdep->sigtramp_saved_pc.
4322 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
4323 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
4324 instead.
4325
4326 * i386-tdep.c (i386_frameless_function_invocation,
4327 i386_frame_num_args, i386_frame_init_saved_regs,
4328 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
4329 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
4330 i386_extract_return_value, i386_store_return_value,
4331 i386_extract_struct_value_address, i386_register_virtual_type,
4332 i386_register_convertible, i386_register_convert_to_virtual,
4333 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
4334 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
4335 static.
4336
4337 2002-07-01 Mark Kettenis <kettenis@gnu.org>
4338
4339 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
4340
4341 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
4342 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
4343 this macro. Include "value.h".
4344
4345 2002-06-30 Aidan Skinner <aidan@velvet.net>
4346
4347 * ada-exp.tab.c: remove as it's a generated file
4348 * ada-lex.c: remove as it's a generated file
4349
4350 2002-06-30 Mark Kettenis <kettenis@gnu.org>
4351
4352 * config/i386/tm-i386.h (struct frame_info, struct
4353 frame_saved_regs, struct value, struct type): Remove forward
4354 declarations.
4355
4356 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
4357 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
4358 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
4359 (FILL_FPXREGSET): Define.
4360
4361 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
4362
4363 * configure.tgt (i[3456]86-*-openbsd*): Fold into
4364 i[3456]86-*-netbsd* case.
4365 * config/i386/tm-obsd.h: Removed.
4366 * config/i386/obsd.mt: Removed.
4367 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
4368 core-aout.o.
4369 (MH_CFLAGS): Add -DYYDEBUG=0.
4370
4371 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
4372 i386nbsd_sc_pc_offset on OpenBSD too.
4373
4374 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
4375 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
4376 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
4377 define.
4378 * i386bsd-tdep.c: Include "arch-utils.h".
4379 (i386bsd_aout_in_solib_call_trampoline): New function.
4380 (i386bsd_init_abi): Set in_solib_call_trampoline to
4381 i386bsd_aout_in_solib_call_trampoline.
4382 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
4383 in_solib_call_trampoline to generic_in_solib_call_trampoline.
4384
4385 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4386
4387 * macrotab.h: Do not include "obstack.h" or "bcache.h".
4388 (struct obstack, struct bcache): Add opaque declarations.
4389 * Makefile.in (macrotab_h): Update
4390
4391 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4392
4393 * blockframe.c (generic_find_dummy_frame): Change return type to
4394 ``struct regcache''.
4395 (struct dummy_frame): Replace field ``registers'' with regcache, a
4396 struct regcache object.
4397 (generic_find_dummy_frame): Update.
4398 (generic_push_dummy_frame): Update. Use regcache_xfree,
4399 regcache_xmalloc and regcache_cpy.
4400 (generic_pop_dummy_frame): Update. Use regcache_cpy and
4401 regcache_xfree.
4402 (deprecated_generic_find_dummy_frame): Update.
4403 (generic_read_register_dummy): Update. Use
4404 regcache_read_as_address.
4405 (generic_call_dummy_register_unwind): Update. Use regcache_read.
4406 (generic_get_saved_register): Update. Use regcache_read.
4407
4408 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4409
4410 * Makefile.in (objfiles_h): Add $(bcache_h).
4411 * objfiles.h: Include "bcache.h".
4412
4413 * Makefile.in (symtab_h): Remove $(bcache_h).
4414 * symtab.h: Do not include "bcache.h".
4415
4416 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4417
4418 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
4419 generic_func_frame_chain_valid.
4420
4421 2002-06-28 David O'Brien <obrien@FreeBSD.org>
4422
4423 * config/i386/nm-fbsd.h: Include <sys/param.h>.
4424 * config/i386/tm-fbsd.h: Likewise.
4425
4426 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4427
4428 * rs6000-tdep.c (rs6000_gdbarch_init): Use
4429 generic_unwind_get_saved_register.
4430
4431 2002-06-27 Andrew Cagney <ac131313@redhat.com>
4432
4433 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
4434 * regcache.c (supply_register): Add missing argument to
4435 register_buffer call.
4436
4437 2002-06-27 Andrew Cagney <ac131313@redhat.com>
4438
4439 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
4440 Solaris /bin/grep does not not like it. From Peter Schauer.
4441
4442 2002-06-26 Tom Tromey <tromey@redhat.com>
4443
4444 * command.h (add_setshow_cmd): Declare.
4445 (add_setshow_cmd_full): Declare.
4446 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
4447 returns void. Use add_setshow_cmd_full.
4448 (add_setshow_cmd_full): New function.
4449 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
4450 (add_setshow_boolean_cmd): Likewise.
4451
4452 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4453
4454 * config/vax/tm-vax.h: Protect from multiple inclusion.
4455 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
4456 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
4457 * config/vax/tm-vaxbsd.h: ...here. New file.
4458 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
4459
4460 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4461
4462 * config/vax/tm-vax.h (BREAKPOINT): Remove.
4463 (BELIEVE_PCC_PROMOTION): Remove.
4464 (AP_REGNUM): Move to...
4465 * config/vax/nm-vax.h: ...here.
4466 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
4467 (vax_breakpoint_from_pc): New function.
4468 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
4469 and gdbarch_believe_pcc_promotion.
4470
4471 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4472
4473 * Makefile.in (vax_tdep_h): Define.
4474 (vax-tdep.o): Use $(vax_tdep_h).
4475 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
4476 (vax_dump_tdep): New function.
4477 (_initialize_vax_tdep): Register vax_dump_tdep.
4478 * vax-tdep.h: Include osabi.h.
4479 (struct gdbarch_tdep): New.
4480
4481 2002-06-26 Andrew Cagney <cagney@redhat.com>
4482
4483 * frame.h (deprecated_generic_find_dummy_frame): Rename
4484 generic_find_dummy_frame.
4485 * blockframe.c (generic_find_dummy_frame): Make static.
4486 (deprecated_generic_find_dummy_frame): New function.
4487 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
4488 generic_find_dummy_frame with deprecated_find_dummy_frame.
4489 (sh64_nofp_frame_init_saved_regs): Ditto.
4490 (sh_fp_frame_init_saved_regs): Ditto.
4491 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
4492 (s390_frame_chain): Ditto.
4493 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
4494
4495 2002-06-26 Grace Sainsbury <graces@redhat.com>
4496
4497 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
4498 gdbarch vector are at the top.
4499 (NUM_REGS): Remove.
4500 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
4501 (FRAME_ARGS_ADDRESS): Remove.
4502 (FRAME_LOCALS_ADDRESS): Remove.
4503 (FRAME_NUM_ARGS): Remove.
4504 (FRAME_ARGS_SKIP): Remove.
4505 * m68k-tdep.c (enum): Add eumeration of special register numbers.
4506 (m68k_gdbarch_init): Add gdbarch initializations for macros
4507 undefined in tm-m68k.h
4508
4509 2002-06-26 Grace Sainsbury <graces@redhat.com>
4510
4511 * monitor.h: Add the function regname to monitor_ops
4512 structure. This way NUM_REGS does not have to be a constant.
4513 * monitor.c (monitor_fetch_register): Added support for regname
4514 function. The function is called if the array regnames is NULL.
4515 (monitor_store_register): Same.
4516 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
4517 regnames array.
4518 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
4519 cpu32bug_cmds.regname to point to new function.
4520 * abug-rom.c (abug_regname): Same as above.
4521 (init_abug_cmds): Same.
4522 * dbug-rom.c (dbug_regname): Same as above.
4523 (init_dbug_cmds): Same.
4524 * remote-est.c (est_regname): Same.
4525 (init_est_cmds): Same.
4526 * rom68k-rom.c (rom68k_regname): Same.
4527 (init_rom68k_cmds): Same.
4528
4529 2002-06-25 Tom Tromey <tromey@redhat.com>
4530
4531 * breakpoint.c (delete_command): Don't repeat `delete' commands.
4532
4533 2002-06-25 Andrew Cagney <cagney@redhat.com>
4534
4535 * infrun.c (stop_registers): Change variable's type to ``struct
4536 regcache'''.
4537 (xmalloc_inferior_status): Delete function.
4538 (free_inferior_status): Delete function.
4539 (normal_stop): Use regcache_cpy.
4540 (struct inferior_status): Change type of fields ``stop_registers''
4541 and ``registers'' to ``struct regcache''.
4542 (write_inferior_status_register): Use regcache_write.
4543 (save_inferior_status): Instead of calling
4544 xmalloc_inferior_status, allocate the inf_status buffer directly.
4545 Use regcache_dup_no_passthrough and regcache_dup to save the
4546 buffers.
4547 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
4548 Replace the stop_registers regcache instead of overriding it. Use
4549 regcache_xfree. Instead of calling free_inferior_status, xfree
4550 the buffer directly.
4551 (discard_inferior_status): Use regcache_xfree. Instead of calling
4552 free_inferior_status, xfree the buffer directly.
4553 (build_infrun): Use regcache_xmalloc.
4554 (_initialize_infrun): Delete redundant call to build_infrun.
4555
4556 * Makefile.in (infcmd.o): Add $(regcache_h).
4557
4558 * infcmd.c: Include "regcache.h".
4559 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
4560 obtain the address of `stop_registers' register buffer.
4561 (print_return_value): Ditto.
4562
4563 * inferior.h (struct regcache): Add opaque declaration.
4564 (stop_registers): Change variable's declared type to ``struct
4565 regcache''.
4566
4567 2002-06-24 Tom Tromey <tromey@redhat.com>
4568
4569 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
4570 * target.c (initialize_targets): Fixed typo in
4571 trust-readonly-sections `show' documentation.
4572
4573 * main.c: Marked all strings with _().
4574
4575 2002-06-24 Don Howard <dhoward@redhat.com>
4576
4577 * memattr.c (create_mem_region): Treat hi == 0 as a special case
4578 that means max CORE_ADDR+1.
4579 (lookup_mem_region): Ditto.
4580 (mem_info_command): Ditto.
4581
4582 2002-06-24 Grace Sainsbury <graces@redhat.com>
4583
4584 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
4585 (REGISTER_BYTES_OK): Remove.
4586 (REGISTER_BYTES): Remove.
4587 (STORE_STRUCT_RETURN): Remove.
4588 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
4589 (STORE_RETURN_VALUE): Remove.
4590 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
4591 (FRAME_CHAIN): Remove.
4592 (FRAMELESS_FUNCTION_INVOCATION): Remove.
4593 (FRAME_SAVED_PC): Remove.
4594 * m68k-tdep.c (m68k_register_bytes_ok):Add.
4595 (m68k_store_struct_return): Add.
4596 (m68k_deprecated_extract_return_value): Add.
4597 (m68k_deprecated_extract_struct_value_address): Add.
4598 (m68k_store_return_value): Add.
4599 (m68k_frame_chain): Add.
4600 (m68k_frameless_function_invocation): Add.
4601 (m68k_frame_saved_pc): Add.
4602 (m68k_gdbarch_init): added set_gdbarch calls for new
4603 functions and deleted macros.
4604
4605 2002-06-23 Tom Tromey <tromey@redhat.com>
4606
4607 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
4608 (ALLDEPFILES): Likewise.
4609 (udiheaders): Removed.
4610 (udip2soc.o): Likewise.
4611 (udi2go32.o): Likewise.
4612 (udr.o): Likewise.
4613 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
4614
4615 2002-06-22 Andrew Cagney <ac131313@redhat.com>
4616
4617 * infrun.c (_initialize_infrun): Delete unnecessary call to
4618 build_infrun.
4619
4620 * regcache.h: Update comments describing the regcache_cpy family
4621 of functions.
4622 (regcache_save, regcache_restore): Delete declaration.
4623 (regcache_save_no_passthrough): Delete declaration.
4624 (regcache_restore_no_passthrough): Delete declaration.
4625 * regcache.c (regcache_save): Delete function.
4626 (regcache_save_no_passthrough): Delete function.
4627 (regcache_restore): Delete function.
4628 (regcache_restore_no_passthrough): Delete function.
4629
4630 2002-06-21 Andrew Cagney <ac131313@redhat.com>
4631
4632 * config/m68k/tm-m68k.h: Fix typo.
4633 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
4634 (m68k_frame_init_saved_regs): Declare.
4635
4636 2002-06-21 Jim Blandy <jimb@redhat.com>
4637
4638 Remove some vestiges of Harris 88k support.
4639 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
4640 register numbering quirk.
4641 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
4642 odd symbols occurring in Harris 88k ELF targets.
4643
4644 2002-06-21 Tom Tromey <tromey@redhat.com>
4645
4646 * gdb_locale.h: New file.
4647 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
4648 (defs_h): Added gdb_locale.h.
4649 * configure, config.in: Rebuilt.
4650 * configure.in (PACKAGE): Define.
4651 * defs.h: Include gdb_locale.h.
4652 * main.c (captured_main): Call setlocale, bindtextdomain,
4653 textdomain.
4654
4655 2002-06-21 Dave Brolley <brolley@redhat.com>
4656
4657 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
4658 * config/frv/frv.mt: New file.
4659 * config/frv/tm-frv.h: New file.
4660 * configure.tgt: Support frv-*-*.
4661 * Makefile.in (frv-tdep.o): New target.
4662 * frv-tdep.c: New file.
4663 * NEWS: Mention frv.
4664
4665 2002-06-21 Dave Brolley <brolley@redhat.com>
4666
4667 * MAINTAINERS: Add self to "Write After Approval" list.
4668
4669 2002-06-21 Grace Sainsbury <graces@redhat.com>
4670
4671 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
4672 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
4673 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
4674 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
4675 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
4676
4677 * m68k-tdep.c: Include arch-utils.h
4678 (m68k_register_raw_size): Add.
4679 (m68k_register_virtual_size): Add.
4680 (m68k_register_virtual_type): Add.
4681 (m68k_register_name): Add.
4682 (m68k_stack_align): Add.
4683 (m68k_register_byte): Add.
4684 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
4685 tm-m68k.h.
4686
4687 2002-06-21 Grace Sainsbury <graces@redhat.com>
4688
4689 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
4690 m68k_find_saved_regs.
4691 (m68k_pop_frame): Removed saved_regs structure, and replaced
4692 references to it with frame->saved_regs.
4693 (m68k_gdbarch_init): Added function calls to initialize the
4694 gdbarch structure.
4695 (m68k_fix_call_dummy): Add.
4696 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
4697 (CALL_DUMMY): Remove.
4698 (CALL_DUMMY_LENGTH): Remove.
4699 (CALL_DUMMY_START_OFFSET): Remove.
4700 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
4701 (FIX_CALL_DUMMY): Remove.
4702 (PUSH_DUMMY_FRAME): Remove.
4703 (POP_FRAME): Remove.
4704
4705 2002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
4706
4707 * parse.c (parse_fprintf): New function used to avoid calls to
4708 fprintf in bison parser generated debug code.
4709 * parser-defs.h: Declaration of new parse_fprintf function.
4710 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
4711 Set YYDEBUG to 1 by default.
4712 Set YYFPRINTF as parse_fprintf.
4713
4714 2002-06-21 Michal Ludvig <mludvig@suse.cz>
4715
4716 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
4717 encoding anymore.
4718 (pointer_encoding, enum ptr_encoding): New.
4719 (execute_cfa_program): Take care about pointer encoding.
4720 (dwarf2_build_frame_info): Only call parse_frame_info for
4721 .debug_frame and .eh_frame.
4722 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
4723 fixed augmentation handling, added relative addressing,
4724 ignore duplicate FDEs. Added comments.
4725 * dwarf2cfi.c: Reindented.
4726
4727 2002-06-20 Elena Zannoni <ezannoni@redhat.com>
4728
4729 * event-top.c (command_handler): Don't use space_at_cmd_start
4730 unless there is sbrk() on the host. Assign time and space data
4731 to union fields of the appropriate length.
4732
4733 2002-06-20 Michal Ludvig <mludvig@suse.cz>
4734
4735 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
4736 x86_64_register_name. Return type changed to 'const char *'.
4737 (x86_64_register_name2nr): Rename to x86_64_register_number.
4738 (x86_64_gdbarch_init): Update to reflect the change.
4739 * x86-64-tdep.h: Ditto.
4740 * x86-64-linux-nat.c (x86_64_fxsave_offset)
4741 (supply_fpregset): Ditto.
4742
4743 2002-06-19 Andrew Cagney <cagney@redhat.com>
4744
4745 * regcache.h: Update copyright.
4746 (struct regcache, struct gdbarch): Add opaque declarations.
4747 (current_regcache): Declare global variable.
4748 (regcache_read, regcache_write): Add gdbarch parameter.
4749 (regcache_save, regcache_save_no_passthrough)
4750 (regcache_restore, regcache_restore_no_passthrough)
4751 (regcache_dup, regcache_dup_no_passthrough)
4752 (regcache_cpy, regcache_cpy_no_passthrough)
4753 (deprecated_grub_regcache_for_registers)
4754 (deprecated_grub_regcache_for_register_valid)
4755 (regcache_valid_p): Add function declarations.
4756
4757 * regcache.c: Update copyright.
4758 (regcache_descr_handle): New global variable.
4759 (struct regcache_descr): Define.
4760 (init_legacy_regcache_descr, init_regcache_descr): New functions.
4761 (regcache_descr, xfree_regcache_descr): New functions.
4762 (struct regcache): Define.
4763 (regcache_xmalloc, regcache_xfree): New functions.
4764 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
4765 (regcache_dup, regcache_dup_no_passthrough): New functions.
4766 (regcache_valid_p, regcache_read_as_address): New functions.
4767 (deprecated_grub_regcache_for_registers): New function.
4768 (deprecated_grub_regcache_for_register_valid): New function.
4769 (current_regcache): New global variable.
4770 (register_buffer): Add regcache parameter. Update calls.
4771 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
4772 (read_register_gen, write_register_gen): Update register_buffer
4773 call. Test for legacy_p instead of gdbarch_register_read_p or
4774 gdbarch_register_write_p.
4775 (regcache_collect): Update register_buffer call.
4776 (build_regcache): Rewrite. Use deprecated grub functions.
4777 (regcache_save, regcache_save_no_passthrough): New functions.
4778 (regcache_restore, regcache_restore_no_passthrough): New
4779 functions.
4780 (_initialize_regcache): Create the regcache_data_handle. Swap
4781 current_regcache global variable.
4782
4783 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
4784 parameter to regcache_read and regcache_write calls.
4785 (sh4_register_read): Ditto.
4786 (sh64_pseudo_register_read): Ditto.
4787 (sh64_register_read): Ditto.
4788 (sh_pseudo_register_write): Ditto.
4789 (sh4_register_write): Ditto.
4790 (sh64_pseudo_register_write): Ditto.
4791 (sh64_register_write): Ditto.
4792
4793 * defs.h (XCALLOC): Define.
4794
4795 2002-06-19 Grace Sainsbury <graces@redhat.com>
4796
4797 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
4798 * m68k-tdep.c (m68k_gdbarch_init): Added.
4799 (m68k_dump_tdep): Added.
4800
4801 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
4802
4803 * ada-lang.c (fill_in_ada_prototype): Update comment.
4804
4805 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
4806
4807 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
4808 MIPS_ABI_LAST.
4809 (mips_abi_string, mips_abi_strings): New.
4810 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
4811 (mips_gdbarch_init): Set tdep->found_abi. Don't set
4812 tdep->mips_abi_string. Honor mips_abi_string. Default to
4813 O32 if no ABI is found.
4814 (mips_dump_tdep): Use mips_abi_strings.
4815 (mips_abi_update): New function.
4816 (_initialize_mips_tdep): Initialize mips_abi_string. Add
4817 ``set mips abi'' and ``show mips abi''. Check the size of
4818 mips_abi_strings.
4819
4820 2002-06-19 Andrew Cagney <cagney@redhat.com>
4821
4822 * i386-linux-tdep.c (i386_linux_register_name): Make return type
4823 constant.
4824
4825 2002-06-18 Joel Brobecker <brobecker@gnat.com>
4826
4827 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
4828 current frame using only the first stack size adjustment. All
4829 subsequent size adjustments are not considered to be part of
4830 the "static" part of the current frame.
4831 Compute the address of the saved registers relative to the
4832 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
4833 in use in this frame.
4834
4835 2002-06-18 Don Howard <dhoward@redhat.com>
4836
4837 * valops.c (value_ind): Use value_at_lazy() when dereferencing
4838 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
4839 suggesting this solution.
4840
4841 2002-06-18 Andrew Cagney <ac131313@redhat.com>
4842
4843 * config/romp/xm-rtbsd.h: Delete file.
4844 * config/romp/rtbsd.mh: Delete file.
4845
4846 2002-06-18 Keith Seitz <keiths@redhat.com>
4847
4848 * breakpoint.c (condition_command): Post breakpoint_modify
4849 when a condition is added to an existing breakpoint.
4850 (commands_command): Likewise for commands.
4851 (set_ignore_count): Likewise for ignore counts.
4852 If no tty, do not simply return, still need to send event
4853 notification.
4854 (ignore_command): Only print a newline if the command came
4855 from a tty.
4856 Don't call breakpoints_changed, since this is now properly
4857 handled by set_ignore_count.
4858
4859 2002-06-18 Andrew Cagney <cagney@redhat.com>
4860
4861 * MAINTAINERS: Note that cris-elf target can be compiled with
4862 -Werror.
4863 * cris-tdep.c (cris_register_name): Make return type constant.
4864 (cris_breakpoint_from_pc): Ditto.
4865
4866 2002-06-18 Michal Ludvig <mludvig@suse.cz>
4867
4868 * frame.h (struct frame_info): Change type of context to
4869 'struct context'.
4870
4871 2002-06-17 Andrew Cagney <cagney@redhat.com>
4872
4873 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
4874 pointer.
4875 * gdbarch.h, gdbarch.c: Regenerate.
4876 * config/mips/tm-mips.h (mips_register_name): Update.
4877 * i386-tdep.h (i386_register_name): Update.
4878 * mips-tdep.c (mips_register_name): Update
4879 * alpha-tdep.c (alpha_register_name): Update.
4880 * arch-utils.c (legacy_register_name): Update.
4881 * arch-utils.h (legacy_register_name): Update.
4882 * avr-tdep.c (avr_register_name): Update.
4883 * ia64-tdep.c (ia64_register_name): Update.
4884 * i386-tdep.c (i386_register_name): Update.
4885 * sparc-tdep.c (sparc32_register_name): Update.
4886 (sparc64_register_name): Update.
4887 (sparclite_register_name): Update.
4888 (sparclet_register_name): Update.
4889 * sh-tdep.c (sh_generic_register_name): Update.
4890 (sh_sh_register_name): Update.
4891 (sh_sh3_register_name): Update.
4892 (sh_sh3e_register_name): Update.
4893 (sh_sh_dsp_register_name): Update.
4894 (sh_sh3_dsp_register_name): Update.
4895 (sh_sh4_register_name): Update.
4896 (sh_sh64_register_name): Update.
4897 * s390-tdep.c (s390_register_name): Update.
4898 * rs6000-tdep.c (rs6000_register_name): Update.
4899 * ns32k-tdep.c (ns32k_register_name_32082): Update.
4900 (ns32k_register_name_32382): Update.
4901 * d10v-tdep.c (d10v_ts2_register_name): Update.
4902 (d10v_ts3_register_name): Update.
4903 * xstormy16-tdep.c (xstormy16_register_name): Update.
4904 * vax-tdep.c (vax_register_name): Update.
4905 * v850-tdep.c (v850_register_name): Update.
4906 * m68hc11-tdep.c (m68hc11_register_name): Update.
4907 * mn10300-tdep.c (mn10300_generic_register_name): Update.
4908 (am33_register_name): Update.
4909
4910 2002-06-17 Grace Sainsbury <graces@redhat.com>
4911
4912 * m68k-tdep.c: Reindented.
4913
4914 2002-06-17 Andrew Cagney <ac131313@redhat.com>
4915
4916 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
4917 list of predefined types.
4918
4919 2002-06-16 Mark Kettenis <kettenis@gnu.org>
4920
4921 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
4922 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
4923 REGISTER_CONVERT_TO_RAW): Remove defines.
4924 (i386_register_virtual_type, i386_register_convertible,
4925 i386_register_convert_to_virtual, i386_register_convert_to_raw):
4926 Remove prototypes.
4927 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4928 macros mentioned above.
4929
4930 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
4931 (i386lynx_saved_pc_after_call): Remove prototype.
4932 * i386ly-tdep.c: Include "i386-tdep.h".
4933 (i386lynx_saved_pc_after_call): Make static. Use
4934 read_memory_nobpt instead of read_memory. Use
4935 read_memory_unsigned_integer instead of read_memory_integer.
4936 (i386lynx_init_abi): New function.
4937 (i386lynx_coff_osabi_sniffer): New function.
4938 (_initialize_i386bsd_tdep): New function.
4939
4940 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
4941 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
4942 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
4943 (i386_fix_call_dummy): Remove prototype.
4944 * i386-tdep.c (i386_call_dummy_words): New variable.
4945 (i386_gdbarch_init): Adjust for removal of the
4946 macros mentioned above.
4947
4948 2002-06-15 Andrew Cagney <ac131313@redhat.com>
4949
4950 * command.h (add_setshow_auto_boolean_cmd): Replace
4951 add_set_auto_boolean_cmd.
4952 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
4953 add_set_auto_boolean_cmd.
4954 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
4955 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
4956 mask-address'' command.
4957 (show_mask_address): Add cmd parameter.
4958 * remote.c (add_packet_config_cmd): Update. Change type of
4959 set_func and show_func to cmd_sfunc_ftype.
4960 (_initialize_remote): Update `set remote Z-packet'
4961 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
4962 (show_remote_protocol_e_packet_cmd): Ditto.
4963 (show_remote_protocol_E_packet_cmd): Ditto.
4964 (show_remote_protocol_P_packet_cmd): Ditto.
4965 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
4966 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
4967 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
4968 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
4969 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
4970 (show_remote_protocol_Z_packet_cmd): Ditto.
4971 (show_remote_protocol_binary_download_cmd): Ditto.
4972 (show_remote_cmd): Pass NULL to all of above.
4973
4974 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4975
4976 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
4977 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
4978 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
4979 POP_FRAME): Remove defines.
4980 (i386_push_arguments, i386_store_struct_return,
4981 i386_extract_return_value, i386_store_return_value,
4982 i386_extract_struct_value_address, i386_push_dummy_frame,
4983 i386_pop_frame): Renove prototypes.
4984 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4985 macros mentioned above.
4986
4987 2002-06-15 Andrew Cagney <ac131313@redhat.com>
4988
4989 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
4990 add_set_boolean_cmd.
4991 (add_setshow_cmd): New function.
4992 * command.h (add_setshow_boolean_cmd): Replace
4993 add_set_boolean_cmd.
4994 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
4995 and ``set rdiromatzero''.
4996 * maint.c (_initialize_maint_cmds): Update commented out code.
4997 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
4998 * target.c (initialize_targets): Update `set
4999 trust-readonly-sections'.
5000 * remote.c (_initialize_remote): Update `set remotebreak'.
5001
5002 2002-06-15 Mark Kettenis <kettenis@gnu.org>
5003
5004 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
5005 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
5006 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
5007 fit into multi-arch framework.
5008 (i386_breakpoint_from_pc): New function.
5009 (i386_gdbarch_init): Adjust for removal of the macros mentioned
5010 above.
5011
5012 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
5013 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
5014 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
5015 (i386_frameless_function_invocation, i386_frame_num_args,
5016 i386_frame_init_saved_regs): Remove prototypes.
5017 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
5018 macros mentioned above.
5019
5020 2002-06-15 Andrew Cagney <ac131313@redhat.com>
5021
5022 * cli/cli-decode.c (set_cmd_cfunc): Update.
5023 (set_cmd_sfunc): Update.
5024 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
5025 (set_cmd_sfunc, set_cmd_cfunc): Update.
5026 * cli/cli-decode.h: Update.
5027
5028 2002-06-15 Mark Kettenis <kettenis@gnu.org>
5029
5030 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
5031 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
5032
5033 2002-06-15 Andrew Cagney <ac131313@redhat.com>
5034
5035 * defs.h (auto_boolean): Declare enum.
5036 * command.h (cmd_auto_boolean): Delete enum.
5037 * mips-tdep.c (mask_address_var): Update.
5038 (mips_mask_address_p): Update.
5039 (show_mask_address): Update.
5040 * remote.c (struct packet_config): Update.
5041 (update_packet_config): Update.
5042 (show_packet_config_cmd): Update.
5043 (packet_ok): Update.
5044 (add_packet_config_cmd): Update.
5045 (_initialize_remote):
5046 * command.h: Update.
5047 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
5048 (do_setshow_command): Update.
5049 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
5050 * cli/cli-decode.h: Update.
5051
5052 2002-06-15 Mark Kettenis <kettenis@gnu.org>
5053
5054 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
5055 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
5056 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
5057 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
5058 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
5059 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
5060
5061 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
5062 list of DJGPP COFF targets.
5063
5064 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
5065 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
5066 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
5067 (FP0_REGNUM): Remove define.
5068 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
5069 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
5070 (i386_register_virtual_size): Remove protoype.
5071 * i386-tdep.c (i386_register_virtual_size): Removed.
5072 (i386_extract_return_value, i386_store_return_value): Use
5073 FP0_REGNUM instead of NUM_FREGS to determine whether the
5074 floating-point registers are available.
5075 (i386_gdbarch_init): Tweak FIXME about FPU registers.
5076 Adjust for removal of macros mentioned above.
5077
5078 2002-06-15 Mark Kettenis <kettenis@gnu.org>
5079
5080 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
5081 comments.
5082 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
5083 Remove prototypes.
5084 (supply_gregset, fill_gregset): Remove use of register keyword and
5085 remove declaration for regmap. Use I386_NUM_GREGS instead of
5086 NUM_REGS and NUM_FREGS.
5087 (FPREGSET_FSAVE_OFFSET): Remove.
5088 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
5089 NUM_FREGS to determine whether the floating-point registers are
5090 available.
5091
5092 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
5093 gnu_store_registers): Replace usage of NUM_GREGS with
5094 I386_NUM_GREGS.
5095
5096 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
5097 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
5098 usage of NUM_GREGS with I386_NUM_GREGS.
5099
5100 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
5101
5102 * i386bsd-nat.c: Include "i386-tdep.h".
5103 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
5104 I386_NUM_GREGS.
5105
5106 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
5107 and associated comment. They no longer make any sense, since we
5108 don't use this file anymore on Linux.
5109
5110 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
5111 * i386-tdep.c (i386_register_offset, i386_register_size): Use
5112 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
5113 elements in these arrays.
5114 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
5115 MAX_NUM_REGS.
5116
5117 2002-06-15 Mark Kettenis <kettenis@gnu.org>
5118
5119 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
5120 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
5121
5122 2002-06-14 Andrew Cagney <cagney@redhat.com>
5123
5124 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
5125 EXTRACT_RETURN_VALUE.
5126 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
5127 EXTRACT_STRUCT_VALUE_ADDRESS.
5128 * gdbarch.h, gdbarch.c: Regenerate.
5129
5130 * values.c (value_being_returned): Handle
5131 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
5132 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
5133
5134 * arm-linux-tdep.c (arm_linux_init_abi): Update.
5135 * arm-tdep.c (arm_gdbarch_init): Update.
5136 * avr-tdep.c (avr_gdbarch_init): Update.
5137 * cris-tdep.c (cris_gdbarch_init): Update.
5138 * d10v-tdep.c (d10v_gdbarch_init): Update.
5139 * ia64-tdep.c (ia64_gdbarch_init): Update.
5140 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5141 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5142 * s390-tdep.c (s390_gdbarch_init): Update.
5143 * sh-tdep.c (sh_gdbarch_init): Update.
5144 * s390-tdep.c (s390_gdbarch_init): Update.
5145 * sparc-tdep.c (sparc_gdbarch_init): Update.
5146 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5147 * v850-tdep.c (v850_gdbarch_init): Update.
5148 * vax-tdep.c (vax_gdbarch_init): Update.
5149 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
5150 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5151
5152 * config/arc/tm-arc.h: Update.
5153 * config/d30v/tm-d30v.h: Update.
5154 * config/fr30/tm-fr30.h: Update.
5155 * config/h8300/tm-h8300.h: Update.
5156 * config/h8500/tm-h8500.h: Update.
5157 * config/i386/tm-i386.h: Update.
5158 * config/i386/tm-ptx.h: Update.
5159 * config/i386/tm-symmetry.h: Update.
5160 * config/i960/tm-i960.h: Update.
5161 * config/m32r/tm-m32r.h: Update.
5162 * config/m68k/tm-delta68.h: Update.
5163 * config/m68k/tm-linux.h: Update.
5164 * config/m68k/tm-m68k.h: Update.
5165 * config/m88k/tm-m88k.h: Update.
5166 * config/mcore/tm-mcore.h: Update.
5167 * config/mips/tm-mips.h: Update.
5168 * config/mn10200/tm-mn10200.h: Update.
5169 * config/pa/tm-hppa.h: Update.
5170 * config/pa/tm-hppa64.h: Update.
5171 * config/sparc/tm-sp64.h: Update.
5172 * config/sparc/tm-sparc.h: Update.
5173 * config/sparc/tm-sparclet.h: Update.
5174 * config/z8k/tm-z8k.h: Update.
5175
5176 2002-06-14 Andrew Cagney <cagney@redhat.com>
5177
5178 * Makefile.in (i386_linux_tdep_h): Define.
5179 (i386_tdep_h, i387_tdep_h): Define.
5180 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
5181 $(i386_tdep_h) and $(i387_tdep_h).
5182 * i386-linux-nat.c: Include "i386-linux-tdep.h".
5183
5184 2002-06-14 Mark Kettenis <kettenis@gnu.org>
5185
5186 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
5187 Already covered by the default.
5188
5189 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
5190 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
5191 (i386_gdbarch_init): Initialize long_double_format and long_double
5192 bit.
5193
5194 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
5195 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
5196 Move these to ...
5197 * config/i386/i386sol2.mh: ... here.
5198 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
5199 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
5200 (SIGCONTEXT_PC_OFFSET): Remove define.
5201 (IN_SIGTRAMP): Remove define.
5202 * i386-sol2-tdep.c: New file.
5203
5204 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
5205 * config/i386/tm-i386nw.h: Removed.
5206
5207 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
5208 USE_STRUCT_CONVENTION): Remove defines.
5209 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5210 (get_longjmp_target): Remove prototype.
5211 (IN_SIGTRAMP): Remove define.
5212 (i386bsd_in_sigtramp): Remove prototype.
5213 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
5214 function. Update comment accordingly
5215 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
5216 (FRAME_SAVED_PC): Remove define.
5217 (i386bsd_frame_saved_pc): Remove prototype.
5218 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
5219 GET_LONGJMP_TARGET): Remove defines.
5220 (get_longjmp_target): Remove prototype.
5221 (IN_SIGTRAMP): Remove define.
5222 (i386bsd_in_sigtramp): Remove prototype.
5223 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
5224 function. Update comment accordingly
5225 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
5226 (FRAME_SAVED_PC): Remove define.
5227 (i386bsd_frame_saved_pc): Remove prototype.
5228 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
5229 Remove prototype.
5230 (USE_STRUCT_CONVENTION): Remove prototype.
5231 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
5232 declaration.
5233 (_initialize_i386bsd_nat): Revise logic to determine some
5234 constants at compile time when compiling a native GDB. Warn if
5235 things don't match up with what we expect.
5236 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
5237 Remove variables.
5238 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
5239 to use date stored in `struct gdbarch_tdep'.
5240 (i386bsd_sigcontext_offset): Remove varaible.
5241 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
5242 stored in `struct gdbarch_tdep'.
5243 (i386bsd_frame_saved_pc): Make static.
5244 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
5245 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
5246 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
5247 i386fbsd4_sc_pc_offset): New variables.
5248 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
5249 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
5250 functions.
5251 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
5252 functions.
5253 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
5254 Modify the value of i386fbsd_sigtramp_start and
5255 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
5256 i386fbsd_sigtramp_end.
5257 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
5258 function.
5259
5260 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
5261 define to i386-linux-tdep.h.
5262 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
5263 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
5264 defines.
5265 (i386_linux_register_name, i386_linux_register_byte,
5266 i386_linux_register_raw_size): Remove prototypes.
5267 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
5268 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
5269 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
5270 TARGET_WRITE_PC): Remove defines.
5271 (i386_linux_in_sigtramp, i386_linux_frame_chain,
5272 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
5273 i386_linux_write_pc): Remove prototypes.
5274 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5275 (get_longjmp_target): Remove prototype.
5276 * i386-linux-tdep.h: New file.
5277 * i386-linux-nat.c: Include "i386-linux-tdep.h".
5278 * i386-linux-tdep.c: Include "i386-tdep.h" and
5279 "i386-linux-tdep.h".
5280 (i386_linux_register_name, i386_linux_register_byte,
5281 i386_linux_register_raw_size, i386_linux_in_sigtramp,
5282 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
5283 Make static.
5284 (i386_linux_init_abi): New function.
5285 (_initialize_i386_linux_tdep): New function.
5286
5287 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
5288 (i386_saved_pc_after_call): Remove prototype.
5289 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
5290 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
5291 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
5292 (i386_register_name, i386_stab_reg_to_regnum,
5293 i386_dwarf_reg_to_regnum): Remove prototypes.
5294 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
5295 SIZEOF_SSE_REGS): Remove defines.
5296 (REGISTER_BYTES): Remove define.
5297 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
5298 (i386_register_byte, i386_register_raw_size): Remove prototypes.
5299 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
5300 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
5301 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
5302 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
5303 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
5304 (get_longjmp_target): Remove prototype.
5305 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
5306 (sigtramp_saved_pc): Remove define.
5307 (i386v4_sigtramp_saved_pc): Remove prototype.
5308 * config/i386/tm-go32.h (FRAME_CHAIN,
5309 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
5310 (i386go32_frame_saved_pc): Remove prototype.
5311 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5312 (get_longjmp_target): Remove prototype.
5313 * i386-tdep.h: Include "osabi.h".
5314 (enum i386_abi): Removed.
5315 (enum struct_return): New enum.
5316 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
5317 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
5318 sc_pc_offset members.
5319 (i386_gdbarch_register_os_abi): Remove prototype.
5320 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
5321 I386_SSE_NUM_REGS): New defines.
5322 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
5323 I386_SSE_SIZEOF_REGS): New defines.
5324 (i386_register_name, i386_register_byte, i386_register_raw_size):
5325 New prototypes.
5326 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
5327 (i386bsd_sigtramp_saved_pc): New prototype.
5328 * i386-tdep.c: Don't include "elf-bfd.h".
5329 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
5330 i386_frame_chain, i386_saved_pc_after_call): Make static.
5331 (i386_frame_saved_pc): Rewrite to call architecture dependent
5332 function to deal with signal handlers. Make static.
5333 (i386go32_frame_saved_pc): Removed.
5334 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
5335 Removed.
5336 (i386_get_longjmp_target): New function.
5337 (default_struct_convention, pcc_struct_convention,
5338 reg_struct_convention, valid_conventions, struct_convention): New
5339 variables.
5340 (i386_use_struct_convention): New function.
5341 (i386v4_sigtramp_saved_pc): Renamed to
5342 i386_svr4_sigtramp_saved_pc. Made static. Moved.
5343 (i386_pc_in_sigtramp): New function.
5344 (i386_abi_names): Removed.
5345 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
5346 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
5347 Removed.
5348 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
5349 i386_gdbarch_register_os_abi): Removed.
5350 (struct i386_abi_handler): Removed.
5351 (i386_abi_handler_list): Removed.
5352 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
5353 functions.
5354 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
5355 i386_nw_init_abi): New functions.
5356 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
5357 Use set_gdbarch_xxx() calls instead of relying on macros for a
5358 number of calls.
5359 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
5360 (_initialize_i386_tdep): Add new 'struct-convcention' command.
5361 Register the various architecture variants defined in this file.
5362
5363 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
5364
5365 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
5366 (struct main_type): Remove arg_types member. Update comments for
5367 struct field.
5368 (TYPE_ARG_TYPES): Remove.
5369 (TYPE_FN_FIELD_ARGS): Update.
5370 (smash_to_method_type): Update prototype.
5371
5372 * c-typeprint.c (cp_type_print_method_args): Take method type
5373 instead of argument list. Use new argument layout. Simplify.
5374 (c_type_print_args): Use new argument layout. Simplify.
5375 (c_type_print_base): Update call to cp_type_print_method_args.
5376 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
5377 argument; use die->type instead. Update call to
5378 smash_to_method_type.
5379 (read_structure_scope): Update call to dwarf2_add_member_fn.
5380 * gdbtypes.c (allocate_stub_method): Update comment.
5381 (smash_to_method_type): Take new NARGS and VARARGS arguments.
5382 Use new argument layout.
5383 (check_stub_method): Use new argument layout. Don't count
5384 void as an argument.
5385 (print_arg_types): Update comments. Use new argument layout.
5386 (recursive_dump_type): Don't print arg_types member.
5387 * hpread.c (hpread_read_struct_type): Use new argument layout.
5388 (fixup_class_method_type): Likewise.
5389 (hpread_type_lookup): Likewise.
5390 * stabsread.c (read_type): Update calls to read_args and
5391 smash_to_method_type.
5392 (read_args): Use new argument layout. Simplify.
5393 * valops.c (typecmp): Use new argument layout. Update parameters
5394 and comments. Simplify.
5395 (hand_function_call): Use new argument layout.
5396 (search_struct_method): Update call to typecmp.
5397 (find_overload_match): Use new argument layout.
5398
5399 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
5400
5401 * NEWS: Mention multithreaded debug support for gdbserver.
5402
5403 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
5404
5405 * MAINTAINERS: Mention NEWS.
5406
5407 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
5408
5409 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
5410 (struct mips_objfile_private, compare_pdr_entries): New.
5411 (non_heuristic_proc_desc): Read the ".pdr" section if it
5412 is present.
5413
5414 2002-06-12 Andrew Cagney <ac131313@redhat.com>
5415
5416 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
5417 (arm_debug): New static variable.
5418 (_initialize_arm_tdep): Add ``set debug arm'' command.
5419
5420 2002-06-12 Andrew Cagney <ac131313@redhat.com>
5421
5422 * Makefile.in (sim_arm_h): Define.
5423 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
5424 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
5425 (arm_register_sim_regno): New function, map an internal REGNUM
5426 onto a simulator register number.
5427 (arm_gdbarch_init): Set register_sim_regno.
5428
5429 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
5430
5431 * MAINTAINERS: Add self.
5432
5433 2002-06-11 Jim Blandy <jimb@redhat.com>
5434
5435 * source.c (source_info): Mention whether the symtab has
5436 information about preprocessor macros.
5437
5438 Call the command `info macro', not `show macro'.
5439 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
5440 Fix error message.
5441 (_initialize_macrocmd): Register `info_macro_command' in
5442 `infolist', not `showlist'.
5443
5444 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
5445
5446 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
5447 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
5448 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
5449 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
5450 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
5451 unconditionally.
5452 (set_mipsfpu_single_command, set_mipsfpu_double_command)
5453 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
5454 (_initialize_mips_tdep): Remove dead code.
5455 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
5456 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
5457 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
5458 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
5459 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
5460 MIPS_LAST_FP_ARG_REGNUM): Remove.
5461
5462 2002-06-11 Michal Ludvig <mludvig@suse.cz>
5463
5464 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
5465 (unwind_tmp_obstack_free, parse_frame_info)
5466 (update_context, cfi_read_fp, cfi_write_fp)
5467 (cfi_frame_chain, cfi_init_extra_frame_info)
5468 (cfi_virtual_frame_pointer): Use the above function.
5469 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
5470
5471 2002-06-11 Corinna Vinschen <vinschen@redhat.com>
5472
5473 * v850-tdep.c (v850_type_is_scalar): New function.
5474 (v850_use_struct_convention): Match current gcc implementation
5475 as close as possible.
5476 (v850_push_arguments): Fix stack_offset handling. Don't write
5477 struct_addr into register. This is done by v850_store_struct_return.
5478 (v850_extract_return_value): Care for structs.
5479 (v850_store_return_value): Ditto.
5480 (v850_store_struct_return): Actually write address.
5481
5482 2002-06-11 Michal Ludvig <mludvig@suse.cz>
5483
5484 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
5485 without debug information too.
5486
5487 2002-06-10 Andrew Cagney <ac131313@redhat.com>
5488
5489 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
5490 Make multi-arch pure.
5491 * gdbarch.h, gdbarch.c: Re-generate.
5492 * arm-tdep.c (arm_print_float_info): Update.
5493 * arch-utils.h (default_print_float_info): Update.
5494 * arch-utils.c (default_print_float_info): Update.
5495 * infcmd.c (float_info): Update call.
5496
5497 2002-06-10 Andrew Cagney <ac131313@redhat.com>
5498
5499 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
5500 the front of the initialize list.
5501
5502 2002-06-10 Andrew Cagney <ac131313@redhat.com>
5503
5504 * infrun.c (struct inferior_status): Replace fields
5505 selected_frame_address and selected_level with field
5506 selected_frame_id.
5507 (save_inferior_status): Update. Use get_frame_id.
5508 (struct restore_selected_frame_args): Delete.
5509 (restore_selected_frame): Update. Use frame_find_by_id.
5510 (restore_inferior_status): Update.
5511
5512 * breakpoint.h (struct breakpoint): Change type of
5513 watchpoint_frame to frame_id.
5514 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
5515 call to get_current_frame.
5516 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
5517 get_current_frame.
5518 (watchpoint_check): Use frame_find_by_id.
5519
5520 * frame.h (record_selected_frame): Delete declaration.
5521 * stack.c (record_selected_frame): Delete function.
5522
5523 * frame.h (struct frame_id): Define.
5524 (get_frame_id): Declare.
5525 (frame_find_by_id): Declare.
5526 * frame.c (frame_find_by_id): New function.
5527 (get_frame_id): New function.
5528
5529 2002-06-10 Andrey Volkov <avolkov@transas.com>
5530
5531 * ser-e7kpc.c: Fix duplicated define and call of
5532 _initialize_ser_e7000pc
5533
5534 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
5535
5536 * signals/signals.c (target_signal_from_host): Fix #ifdef
5537 SIGRTMIN case.
5538 (do_target_signal_to_host): Likewise.
5539
5540 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
5541
5542 * mips-tdep.c (mips_find_abi_section): New function.
5543 (mips_gdbarch_init): Call it.
5544
5545 2002-06-09 Mark Kettenis <kettenis@gnu.org>
5546
5547 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
5548 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
5549 after Andrew's 2002-06-08 gdbarch change.
5550
5551 2002-06-09 Mark Kettenis <kettenis@gnu.org>
5552
5553 * i386-linux-nat.c (suppy_gregset): Don't supply
5554 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
5555 register cache.
5556 (fill_gregset): Don't fetch it under the same circumstances.
5557
5558 2002-06-09 Andrew Cagney <cagney@redhat.com>
5559
5560 * Makefile.in (callback_h): Define.
5561 (remote_sim_h): Update path to remote-sim.h.
5562 (remote-rdp.o): Add $(callback_h).
5563 (remote-sim.o): Use $(callback_h).
5564 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
5565 * remote-rdp.c: Include "gdb/callback.h".
5566
5567 2002-06-09 Mark Kettenis <kettenis@gnu.org>
5568
5569 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
5570 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
5571
5572 2002-06-08 Andrew Cagney <ac131313@redhat.com>
5573
5574 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
5575 * rdi-share/serpardr.c: Ditto.
5576 * rdi-share/unixcomm.c: Ditto.
5577 * rdi-share/serdrv.c: Ditto.
5578 * rdi-share/hostchan.h: Ditto.
5579 * rdi-share/hostchan.c: Ditto.
5580 * rdi-share/host.h: Ditto.
5581 * rdi-share/devsw.c: Ditto.
5582
5583 * objfiles.h: Change type of obj_private to void pointer.
5584 * pa64solib.c: Update copyright. Don't include "assert.h", use
5585 strcmp instead of STREQ, use LONGEST, do not use PTR
5586 * somsolib.c: Ditto.
5587
5588 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
5589 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
5590 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
5591
5592 2002-06-08 Andrew Cagney <ac131313@redhat.com>
5593
5594 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
5595 (default_get_saved_register): Delete function.
5596 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
5597 generic_unwind_get_saved_register.
5598 * gdbarch.h, gdbarch.c: Re-generate.
5599
5600 2002-06-08 Andrew Cagney <ac131313@redhat.com>
5601
5602 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
5603 generic_func_frame_chain_valid.
5604 * gdbarch.h, gdbarch.c: Re-generate.
5605 * blockframe.c (generic_func_frame_chain_valid): Only check
5606 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
5607 passing FP to PC_IN_CALL_DUMMY.
5608 Fix PR gdb/360.
5609
5610 2002-06-08 Andrew Cagney <ac131313@redhat.com>
5611
5612 * gdbarch.sh (struct gdbarch_data): Add field init_p.
5613 (register_gdbarch_data): Initialize init_p.
5614 (gdbarch_data): Initialize data pointer using the init function.
5615 (init_gdbarch_data): Delete function.
5616 (gdbarch_update_p): Update.
5617 (initialize_non_multiarch): Update.
5618 (struct gdbarch): Add field initialized_p.
5619 * gdbarch.h, gdbarch.c: Re-generate.
5620
5621 2002-06-07 Michal Ludvig <mludvig@suse.cz>
5622
5623 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
5624 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
5625 better do the things actually here.
5626 * x86-64-tdep.c (x86_64_register_name2nr): New.
5627 (x86_64_register_name): Renamed to x86_64_register_nr2name.
5628 (x86_64_gdbarch_init): Respect the above change.
5629 * x86-64-tdep.h (x86_64_register_name2nr)
5630 (x86_64_register_nr2name): Add prototypes.
5631 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
5632
5633 2002-06-06 Michael Snyder <msnyder@redhat.com>
5634
5635 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
5636 Delete extra braces and re-indent.
5637 (d10v_store_return_value): Char return values
5638 must be shifted over by one byte in R0.
5639 (d10v_extract_return_value): Delete extra braces, re-indent.
5640
5641 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
5642
5643 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
5644 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
5645 (d10v_integer_to_address): Rewrite.
5646 (d10v_frame_init_saved_regs): When reading fp and sp registers use
5647 the d10v specific functions which take care of converting to the
5648 correct space.
5649
5650 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
5651
5652 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
5653 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
5654
5655 2002-06-02 Andrew Cagney <ac131313@redhat.com>
5656
5657 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
5658 includes.
5659 * config/tm-linux.h: Ditto.
5660 * config/alpha/tm-alphalinux.h: Ditto.
5661 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
5662 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
5663 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
5664 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
5665 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
5666 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
5667 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
5668 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
5669 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
5670 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
5671 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
5672 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
5673 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
5674 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
5675 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
5676 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
5677 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
5678 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
5679 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
5680 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
5681 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
5682 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
5683 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
5684 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
5685 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
5686 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
5687 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
5688 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
5689 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
5690 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
5691 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
5692 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
5693 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
5694 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
5695 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
5696 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
5697 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
5698
5699 2002-05-04 Aidan Skinner <aidan@velvet.net>
5700
5701 * ada-exp.tab.c: New file
5702 * ada-exp.y: New file
5703 * ada-lang.c: New file
5704 * ada-lang.h: New file
5705 * ada-lex.c: New file
5706 * ada-lex.l: New file
5707 * ada-tasks.c: New file
5708 * ada-typeprint.c: New file
5709 * ada-valprint.c: New file
5710
5711 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
5712
5713 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
5714 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
5715
5716 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
5717
5718 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
5719 insetead of ppc-linux-tdep.o.
5720 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
5721 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
5722
5723 2002-06-02 Andrew Cagney <ac131313@redhat.com>
5724
5725 2002-05-07 Christian Groessler <chris@groessler.org>
5726 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
5727 bit register contents for little endian hosts.
5728
5729 2002-06-01 Andrew Cagney <ac131313@redhat.com>
5730
5731 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
5732 any maintainer.
5733
5734 2002-06-01 Andrew Cagney <ac131313@redhat.com>
5735
5736 * gdbarch.h: Regenerate.
5737
5738 2002-06-01 Andrew Cagney <ac131313@redhat.com>
5739
5740 * MAINTAINERS: Add everyone to write-after-approval list.
5741
5742 2002-06-01 Andrew Cagney <ac131313@redhat.com>
5743
5744 * stack.c (frame_info): Use frame_register_unwind instead of
5745 saved_regs. Mention when the SP is on the stack or in a register.
5746
5747 * frame.h (frame_register_unwind_ftype): Define. Document.
5748 (struct frame_info): Add field register_unwind and
5749 register_unwind_cache.
5750 (frame_register_unwind): Declare.
5751 (generic_unwind_get_saved_register): Declare.
5752
5753 * frame.c (frame_register_unwind): New function.
5754 (generic_unwind_get_saved_register): New function.
5755
5756 * blockframe.c (generic_call_dummy_register_unwind): New function.
5757 (frame_saved_regs_register_unwind): New function.
5758 (set_unwind_by_pc): New function.
5759 (create_new_frame): New function.
5760 (get_prev_frame): New function.
5761
5762 2002-05-30 Andrew Cagney <ac131313@redhat.com>
5763
5764 * a29k-share/: Delete directory.
5765 * remote-vx29k.c: Delete file.
5766
5767 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5768
5769 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
5770 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
5771
5772 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5773
5774 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
5775 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
5776 (sparc64nbsd-nat.o)
5777 (sparcnbsd-nat.o)
5778 (sparcnbsd-tdep.o): New dependency lists.
5779 * NEWS: Note new UltraSPARC NetBSD native configuration.
5780 * configure.host (sparc64-*-netbsd*): New host.
5781 * configure.tgt (sparc-*-netbsdelf*)
5782 (sparc-*-netbsd*): Set gdb_target to nbsd.
5783 (sparc64-*-netbsd*): New target.
5784 * sparc64nbsd-nat.c: New file.
5785 * sparcnbsd-nat.c: New file.
5786 * sparcnbsd-tdep.c: New file.
5787 * sparcnbsd-tdep.h: New file.
5788 * config/sparc/nbsd.mt: New file.
5789 * config/sparc/nbsd64.mh: New file.
5790 * config/sparc/nbsd64.mt: New file.
5791 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
5792 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
5793 (HOST_IPC): Remove.
5794 * config/sparc/nbsdaout.mt: Remove.
5795 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
5796 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
5797 (HOST_IPC): Remove.
5798 * config/sparc/nbsdelf.mt: Remove.
5799 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
5800 sparc-nat.c compatiblity defines.
5801 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
5802 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
5803 * config/sparc/tm-nbsd64.h: New file.
5804 * config/sparc/tm-nbsdaout.h: Remove.
5805 * config/sparc/xm-nbsd.h: Remove.
5806
5807 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5808
5809 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
5810 * sparc-tdep.c: Include osabi.h.
5811 (gdbarch_tdep): Add osabi member.
5812 (_initialize_sparc_tdep): Use gdbarch_register.
5813 (sparc_gdbarch_init): Use generic OS ABI framework.
5814 (sparc_dump_tdep): New function.
5815
5816 2002-05-30 Kevin Buettner <kevinb@redhat.com>
5817
5818 * corefile.c (do_captured_read_memory_integer): Return non-zero
5819 result.
5820 (safe_read_memory_integer): Copy result of memory read when
5821 status is non-zero. Also, add comments.
5822
5823 2002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
5824
5825 * Makefile.in (ppc_tdep_h): Define.
5826 (ppc-linux-nat.o)
5827 (ppc-linux-tdep.o)
5828 (rs6000-tdep.o): Use $(ppc_tdep_h).
5829 (ppc-sysv-tdep.o)
5830 (ppcnbsd-nat.o)
5831 (ppcnbsd-tdep.o): New dependency lists.
5832 * ppc-tdep.h: Use generic OS ABI framework.
5833 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
5834 (ppc_linux_init_abi): New functions.
5835 (ppc_sysv_abi_broken_use_struct_convention)
5836 (ppc_sysv_abi_use_struct_convention)
5837 (ppc_sysv_abi_push_arguments): Move to...
5838 * ppc-sysv-tdep.c: ...here.
5839 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
5840 * rs6000-tdep.c (process_note_abi_tag_sections)
5841 (get_elfosabi): Remove.
5842 (rs6000_gdbarch_init): Use generic OS ABI framework.
5843 (rs6000_dump_tdep): New function.
5844 (_initialize_rs6000_tdep): Use gdbarch_register.
5845 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
5846 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
5847 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
5848 of ppc-linux-tdep.o.
5849 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
5850 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
5851 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
5852 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
5853 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
5854 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
5855
5856 2002-05-29 Jim Blandy <jimb@redhat.com>
5857
5858 * macroscope.c (default_macro_scope): Put `void' in empty argument
5859 list.
5860
5861 2002-05-29 Andrew Cagney <ac131313@redhat.com>
5862
5863 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
5864 * arch-utils.c: Include "sim-regno.h".
5865 * gdbarch.sh: Don't include "sim-regno.h".
5866 * gdbarch.h, gdbarch.c: Regenerate.
5867 * sim-regno.h (legacy_register_sim_regno): Move declaration from
5868 here.
5869 * arch-utils.h (legacy_register_sim_regno): To here.
5870 * remote-sim.c (legacy_register_sim_regno): Move function from
5871 here.
5872 * arch-utils.c (legacy_register_sim_regno): To here.
5873
5874 2002-05-28 Andrew Cagney <ac131313@redhat.com>
5875
5876 * sim-regno.h: New file.
5877 * Makefile.in (sim_regno_h): Define.
5878 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
5879 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
5880 (legacy_register_sim_regno): New function.
5881 (one2one_register_sim_regno): New function.
5882 (gdbsim_fetch_register): Rewrite.
5883 (gdbsim_store_register): Only store a register when
5884 REGISTER_SIM_REGNO is valid.
5885 * d10v-tdep.c: Include "sim-regno.h".
5886 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
5887 (d10v_ts3_register_sim_regno): Ditto.
5888 * gdbarch.sh: Include "sim-regno.h".
5889 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
5890 * gdbarch.h, gdbarch.c: Regenerate.
5891 * arch-utils.h (default_register_sim_regno): Delete declaration.
5892 * arch-utils.c (default_register_sim_regno): Delete function.
5893
5894 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
5895
5896 * ppcnbsd-nat.c: Rewrite.
5897 * ppcnbsd-tdep.c: New file.
5898 * ppcnbsd-tdep.h: New file.
5899 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
5900 solib.o, and solib-svr4.o.
5901 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
5902 nbsd-tdep.o, and corelow.o.
5903
5904 2002-05-28 Andrew Cagney <ac131313@redhat.com>
5905
5906 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
5907 `tr' and `sed'. Mention that `broken' targets are not expected to
5908 build.
5909
5910 2002-05-27 Michal Ludvig <mludvig@suse.cz>
5911
5912 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
5913 Let PC point right after the prologue before looking up symbols.
5914
5915 2002-05-27 Martin M. Hunt <hunt@redhat.com>
5916
5917 * i386-tdep.c (i386_register_virtual_type): Return
5918 builtin_type_vec128i for SSE registers.
5919
5920 * gdbtypes.h (builtin_type_vec128i): Declare.
5921
5922 * gdbtypes.c (build_builtin_type_vec128i): New function.
5923 (builtin_type_v2_double, builtin_type_v4_int64): New types.
5924 (builtin_type_vec128i): New type for SSE2 128-bit registers.
5925 (build_gdbtypes): Initialize new builtin vector types.
5926 (_initialize_gdbtypes): Register new vector types with gdbarch.
5927
5928 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5929
5930 * MAINTAINERS: ns32k is not longer an obsolete candidate,
5931 since it has been multi-arch'd.
5932 * NEWS: Note that ns32k-*-* is now partial multi-arch.
5933 Move Alpha and VAX multi-arch news entries to same section
5934 as other multi-arch news.
5935
5936 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5937
5938 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
5939 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
5940 static. Rename some register numbers to put them in ns32k-tdep
5941 private namespace.
5942 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
5943 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
5944 functions.
5945 (_initialize_ns32k_tdep): Use gdbarch_register.
5946 * ns32k-tdep.h: New file.
5947 * ns32knbsd-tdep.c: New file.
5948 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
5949 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
5950 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
5951 REGISTER_BYTES, REGISTER_BYTE): Remove.
5952 * config/ns32k/tm-ns32k.h: New file.
5953 * config/ns32k/tm-umax.h: Remove.
5954
5955 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5956
5957 * ns32k-tdep.c (ns32k_saved_pc_after_call,
5958 ns32k_store_struct_return, ns32k_extract_return_value,
5959 ns32k_store_return_value, ns32k_extract_struct_value_address): New
5960 functions.
5961 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
5962 ns32k_saved_pc_after_call.
5963 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
5964 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
5965 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
5966 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
5967 ns32k_extract_struct_value_address.
5968
5969 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5970
5971 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
5972 ns32k_fix_call_dummy): New.
5973 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
5974 ns32k_call_dummy_words.
5975 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
5976 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
5977 CALL_DUMMY_NARGS): Remove.
5978 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
5979
5980 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5981
5982 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
5983 ns32k_frame_saved_pc, ns32k_frame_args_address,
5984 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
5985 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
5986 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
5987 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
5988 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
5989 (BREAKPOINT): Remove..
5990 (FRAME_CHAIN): Define as ns32k_frame_chain.
5991 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
5992 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
5993 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
5994 (FRAME_FIND_SAVED_REGS): Remove.
5995 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
5996 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
5997 (POP_FRAME): Define as ns32k_pop_frame.
5998
5999 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6000
6001 * ns32k-tdep.c (ns32k_register_byte_32082,
6002 ns32k_register_byte_32382, ns32k_register_raw_size,
6003 ns32k_register_virtual_size, ns32k_register_virtual_type): New
6004 functions.
6005 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
6006 ns32k_register_byte_32382.
6007 * config/ns32k/tm-umax.h: Update copyright years.
6008 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
6009 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
6010 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
6011 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
6012 (ns32k_get_enter_addr): Fix prototype.
6013
6014 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6015
6016 * ns32k-tdep.c: Update copyright years.
6017 (ns32k_register_name_32082): New function.
6018 (ns32k_register_name_32382): Ditto.
6019 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
6020 (REGISTER_NAME): Define as ns32k_register_name_32382.
6021 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
6022 (REGISTER_NAME): Define as ns32k_register_name_32082.
6023
6024 2002-05-24 Jim Blandy <jimb@redhat.com>
6025
6026 * dwarf2read.c (free_line_header): Use xfree, not free.
6027
6028 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
6029
6030 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
6031 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
6032
6033 2002-05-23 Andrew Cagney <ac131313@redhat.com>
6034
6035 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
6036
6037 2002-05-23 Andrew Cagney <ac131313@redhat.com>
6038
6039 From Ross Alexander at NEC Europe:
6040 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
6041
6042 2002-05-23 Michael Snyder <msnyder@redhat.com>
6043
6044 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
6045 for input, rather than parse_and_eval_address.
6046
6047 2002-05-23 Andrew Cagney <ac131313@redhat.com>
6048
6049 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
6050 * Makefile.in (sim_d10v_h): Update definition.
6051
6052 2002-05-24 Andrew Cagney <cagney@redhat.com>
6053
6054 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
6055 change `2002-05-22 Michael Snyder' below.
6056 (d10v_push_arguments): Ditto.
6057 (d10v_extract_return_value): Ditto.
6058
6059 2002-05-23 Jim Blandy <jimb@redhat.com>
6060
6061 * macrotab.c (check_for_redefinition): Don't complain if the new
6062 definition is the same as the previous one. Take more arguments
6063 to allow the comparison.
6064 (macro_define_object, macro_define_function): Pass more arguments
6065 to check_for_redefinition.
6066
6067 2002-05-22 Michael Snyder <msnyder@redhat.com>
6068
6069 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
6070 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
6071 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
6072 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
6073 Don't bail if return_pc is PC_IN_CALL_DUMMY.
6074 Add a temp variable to save a call (and a memory read).
6075 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
6076 if possible (so that PC_IN_CALL_DUMMY will work).
6077
6078 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
6079
6080 * MAINTAINERS: Remove status `OBSOLETE' from v850.
6081
6082 2002-05-22 Michal Ludvig <mludvig@suse.cz>
6083
6084 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
6085 fde->cie_ptr.
6086 (dwarf2_build_frame_info): Corrected handling of eh_frame.
6087 (dwarf2_build_frame_info): Add offset to fde->initial_location
6088 so that frames of shared libraries are mapped correctly.
6089 (execute_stack_op): Change type of 'result' from ULONGEST to
6090 CORE_ADDR.
6091
6092 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
6093
6094 * config/alpha/tm-nbsd.h: Include solib.h.
6095
6096 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
6097
6098 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
6099 assumptions about the host's byte order.
6100
6101 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
6102
6103 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
6104 to dependency list.
6105 * alphanbsd-tdep.c: Include solib-svr4.h.
6106 * shnbsd-tdep.c: Ditto.
6107
6108 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
6109
6110 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
6111 nbsd-tdep.h to dependency list.
6112 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
6113 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
6114 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
6115 nbsdaout.mh and nbsdelf.mh consistently.
6116 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
6117 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
6118 nbsdaout.mt and nbsdelf.mh consistently.
6119 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
6120 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
6121 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
6122 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
6123 a.out shared library stuff from here...
6124 * config/nm-nbsdaout.h: ...to here.
6125 * config/tm-nbsd.h: Remove.
6126 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
6127 * config/arm/nbsd.mh: Remove.
6128 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
6129 nbsd-tdep.o.
6130 * config/arm/nbsdaout.mh: New file.
6131 * config/arm/nbsdelf.mh: New file.
6132 * config/arm/nm-nbsdaout.h: New file.
6133 * config/i386/nbsd.mh: Remove.
6134 * config/i386/nbsd.mt: Remove.
6135 * config/i386/nbsdaout.mh: New file.
6136 * config/i386/nbsdaout.mt: New file.
6137 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
6138 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
6139 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
6140 i386_register_u_addr): Remove.
6141 * config/i386/nm-nbsdaout.h: New file.
6142 * config/i386/nm-nbsdelf.h: Remove.
6143 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
6144 (USE_STRUCT_CONVENTION): Remove.
6145 * config/i386/tm-nbsdaout.h: New file.
6146 * config/i386/tm-nbsdelf.h: Remove.
6147 * config/m68k/nbsd.mh: Remove.
6148 * config/m68k/nbsd.mt: Remove.
6149 * config/m68k/nbsdaout.mh: New file.
6150 * config/m68k/nbsdaout.mt: New file.
6151 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
6152 * config/m68k/nm-nbsdaout.h: New file.
6153 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
6154 (IN_SOLIB_CALL_TRAMPOLINE): Define.
6155 * config/ns32k/nbsd.mh: Remove.
6156 * config/ns32k/nbsd.mt: Remove.
6157 * config/ns32k/nbsdaout.mh: New file.
6158 * config/ns32k/nbsdaout.mt: New file.
6159 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
6160 * config/ns32k/nm-nbsdaout.h: New file.
6161 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
6162 (IN_SOLIB_CALL_TRAMPOLINE): Define.
6163 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
6164 (SVR4_SHARED_LIBS): Remove.
6165 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
6166 * config/sparc/nbsd.mh: Remove.
6167 * config/sparc/nbsd.mt: Remove.
6168 * config/sparc/nbsdaout.mh: New file.
6169 * config/sparc/nbsdaout.mt: New file.
6170 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
6171 * config/sparc/nbsdelf.mt: New file.
6172 * config/sparc/nm-nbsdaout.h: New file.
6173 * config/sparc/nm-nbsdelf.h: Remove.
6174 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
6175 * config/sparc/tm-nbsdaout.h: New file.
6176
6177 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6178
6179 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
6180 mipsnbsd-tdep.c
6181 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
6182
6183 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6184
6185 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
6186 shnbsd-nat.c.
6187 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
6188
6189 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6190
6191 * NEWS: Note new MIPS NetBSD native configuration.
6192 * configure.host (mips*-*-netbsd*): New host.
6193 * configure.tgt (mips*-*-netbsd*): New target.
6194 * mipsnbsd-nat.c: New file.
6195 * mipsnbsd-tdep.c: New file.
6196 * mipsnbsd-tdep.h: New file.
6197 * config/mips/nbsd.mh: New file.
6198 * config/mips/nbsd.mt: New file.
6199 * config/mips/nm-nbsd.h: New file.
6200 * config/mips/tm-nbsd.h: New file.
6201
6202 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6203
6204 * Makefile.in (SFILES): Add osabi.c.
6205 (COMMON_OBS): Add osabi.o.
6206 (osabi.o): New dependency list.
6207 * osabi.c: New file.
6208 * osabi.h: New file.
6209 * doc/gdbint.texinfo: Document new generic OS ABI framework.
6210
6211 * Makefile.in (alpha_tdep_h): Define and use instead of
6212 alpha-tdep.h.
6213 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
6214 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
6215 Remove.
6216 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
6217 * alpha-tdep.h: Include osabi.h.
6218 (alpha_abi): Remove.
6219 (gdbarch_tdep): Use generic OS ABI framework.
6220 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
6221 gdbarch_register_osabi.
6222 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
6223 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
6224 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
6225
6226 * Makefile.in (sh_tdep_h): Add osabi.h.
6227 * sh-tdep.h (sh_osabi): Remove.
6228 (gdbarch_tdep): Use generic OS ABI framework.
6229 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
6230 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
6231 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
6232 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
6233
6234 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
6235 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
6236 gdbarch_register_osabi.
6237 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
6238 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
6239 (get_elfosabi): Rename to...
6240 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
6241 ABI framework support routines.
6242 (arm_gdbarch_init): Use generic OS ABI framework.
6243 (arm_dump_tdep): Likewise.
6244 (_initialize_arm_tdep): Likewise.
6245 * arm-tdep.h: Include osabi.h.
6246 (arm_abi): Remove.
6247 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
6248 osabi member.
6249 (arm_gdbarch_register_os_abi): Remove prototype.
6250 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
6251 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
6252
6253 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
6254 * mips-tdep.c: Include osabi.h.
6255 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
6256 OS ABI framework.
6257
6258 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
6259
6260 * h8300-tdep.c: Fix formatting.
6261
6262 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
6263
6264 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
6265 printing vector registers.
6266
6267 2002-05-19 Andrew Cagney <ac131313@redhat.com>
6268
6269 From Fernando Nasser:
6270 * remote.c (remote_async_open_1): Re-throw the exception when the
6271 connection fails.
6272 (remote_cisco_open): Ditto.
6273 (remote_open_1): Ditto.
6274
6275 2002-05-19 Andrew Cagney <ac131313@redhat.com>
6276
6277 * remote.c (remote_start_remote_dummy): Add uiout parameter.
6278 (remote_start_remote): Add uiout parameter. Pass through to
6279 remote_start_remote_dummy.
6280 (remote_open_1): Use catch_exception instead of catch_errors.
6281 (remote_async_open_1): Ditto.
6282 (remote_cisco_open): Ditto.
6283
6284 2002-05-19 Andrew Cagney <ac131313@redhat.com>
6285
6286 * remote.c (remote_start_remote): Replace PTR with void pointer.
6287 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
6288 static.
6289
6290 2002-05-18 Andrew Cagney <ac131313@redhat.com>
6291
6292 * gdb_indent.sh: Allow the script to be run in the sim directory.
6293
6294 2002-05-18 Mark Kettenis <kettenis@gnu.org>
6295
6296 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
6297 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
6298
6299 * corelow.c (core_open): Only call set_gdbarch_from_file if
6300 exec_bfd is NULL.
6301
6302 2002-05-17 Andrey Volkov <avolkov@transas.com>
6303
6304 * h8300-tdep.c: Add support of EXR register
6305 * config/h8300/tm-h8300.h: Ditto.
6306
6307 2002-05-17 Andrey Volkov <avolkov@transas.com>
6308
6309 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
6310
6311 2002-05-17 Andrey Volkov <avolkov@transas.com>
6312
6313 * h8300-tdep.c: Change literal regnums to REGNO.
6314
6315 2002-05-17 Jim Blandy <jimb@redhat.com>
6316
6317 * NEWS: Note addition of macro support.
6318
6319 Expand preprocessor macros in C expressions.
6320 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
6321 (scan_macro_expansion, scanning_macro_expansion,
6322 finished_macro_expansion): New function declarations.
6323 (expression_macro_lookup_func, expression_macro_lookup_baton): New
6324 variable declarations.
6325 * parser-defs.h (expression_context_pc): New declaration.
6326 * parse.c (expression_context_pc): New variable.
6327 (parse_exp_1): Set expression_context_pc, as well as
6328 expression_context_block.
6329 * c-exp.y (yylex): If we're not already reading the result of a
6330 macro expansion, try to macro-expand the next token. When we're
6331 done scanning a macro expansion, switch back to the mainline text.
6332 Commas and `if's in a macro's expansion don't terminate the input.
6333 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
6334 (macro_original_text, macro_expanded_text,
6335 expression_macro_lookup_func, expression_macro_lookup_baton): New
6336 variables.
6337 (scan_macro_expansion, scanning_macro_expansion,
6338 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
6339 c_preprocess_and_parse): New functions.
6340 (c_language_defn, cplus_language_defn, asm_language_defn): Call
6341 c_preprocess_and_parse, instead of c_parse.
6342 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
6343 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
6344
6345 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
6346
6347 * sh-tdep.c (gdb_print_insn_sh64): Delete.
6348 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
6349 (sh_gdbarch_init): Always use gdb_print_insn_sh.
6350
6351 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
6352
6353 * NEWS: Add section for multi-arched targets. Add v850 to that section.
6354
6355 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
6356
6357 * Makefile.in (sh_tdep_h): Define and use.
6358 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
6359 register enum): Move to...
6360 * * sh-tdep.h: ...here.
6361 * sh-tdep.c: Include sh-tdep.h.
6362 * sh3-rom.c: Likewise.
6363 * shnbsd-tdep.c: Likewise.
6364
6365 2002-05-16 Michael Snyder <msnyder@redhat.com>
6366
6367 * arm-tdep.c: Spelling fix in comment.
6368
6369 2002-05-16 Jim Blandy <jimb@redhat.com>
6370
6371 Add commands for manually expanding macros and showing their
6372 definitions.
6373 * macrocmd.c, macroscope.c, macroscope.h: New files.
6374 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
6375 (macroscope_h): New variable.
6376 (HFILES_NO_SRCDIR): Add macroscope.h.
6377 (COMMON_OBS): Add macrocmd.o, macroscope.o.
6378 (macroscope.o, macrocmd.o): New rules.
6379
6380 Teach the Dwarf 2 reader to read macro information.
6381 * dwarf2read.c: #include "macrotab.h".
6382 (dwarf_macinfo_buffer): New variable.
6383 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
6384 dwarf_macinfo_size.
6385 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
6386 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
6387 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
6388 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
6389 dwarf2_macro_spaces_in_definition): New complaints.
6390 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
6391 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
6392 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
6393 the partial symbol table.
6394 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
6395 from what's recorded in the partial symbol table.
6396 (read_file_scope): If the compilation unit has a
6397 `DW_AT_macro_info' attribute, read its macro information.
6398 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
6399
6400 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
6401
6402 Fix PR gdb/546
6403 * ser-tcp.c: Don't include <netinet/udp.h>.
6404
6405 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
6406
6407 * MAINTAINERS: Update my email address.
6408
6409 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
6410
6411 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
6412 include file of the same name.
6413
6414 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
6415
6416 * configure.tgt: Mark v850 as multi-arched.
6417 * config/v850/tm-v850.h: Remove file.
6418 * config/v850/v850.mt: Eliminate TM_FILE.
6419
6420 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
6421
6422 * v850-tdep.c: Full multi-arch.
6423 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
6424 Define GDB_MULTI_ARCH to 2.
6425
6426 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
6427
6428 * p-exp.y (current_type): New static variable.
6429 Carries the type of the expression at the position that is parsed.
6430 (push_current_type, pop_current_type): Two new functions. Used
6431 to store/restore current_type in expression on specific tokens.
6432 (search_field): New static variable. Set to one after parsing a point
6433 as at that point only a FIELDNAME token should be searched.
6434 (FIELDNAME): New token. After a point only a token belonging to
6435 current_type type definition is allowed.
6436 (all over token rules): reset and change current_type according
6437 to rules.
6438 (exp '[' rule): insert implicit array index field if
6439 exp is a pascal string type.
6440
6441 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
6442
6443 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
6444 frame info. Use frame_info's saved_regs instead of matching member
6445 in extra_frame_info throughout.
6446 (v850_frame_init_saved_regs): New function.
6447 (v850_init_extra_frame_info): Move most functionality into
6448 v850_frame_init_saved_regs().
6449 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
6450 (v850_frame_find_saved_regs): Remove declaration.
6451 (FRAME_FIND_SAVED_REGS): Remove definition.
6452 (v850_frame_init_saved_regs): Add declaration.
6453 (FRAME_INIT_SAVED_REGS): Add definition.
6454
6455 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
6456
6457 * v850-tdep.c: Begin multi-arch'ing v850.
6458 (v850_target_architecture_hook): Remove function.
6459 (v850_gdbarch_init): New function. Add code previously in
6460 v850_target_architecture_hook().
6461 (_initialize_v850_tdep): Don't set target_architecture_hook.
6462 Call register_gdbarch_init() instead.
6463
6464 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
6465
6466 * gdbtypes.h (struct cplus_struct_type): Remove args field.
6467 * hpread.c (hpread_read_struct_type): Remove assignments to args.
6468 (fixup_class_method_type): Likewise.
6469
6470 2002-05-15 Jim Blandy <jimb@redhat.com>
6471
6472 Add macro structures to GDB's symbol tables. Nobody puts anything
6473 in them yet.
6474 * symtab.h (struct symtab): New member: `macro_table'.
6475 * buildsym.h (pending_macros): New global variable.
6476 * buildsym.c: #include "macrotab.h".
6477 (buildsym_init): Initialize `pending_macros'.
6478 (end_symtab): If we found macro information while reading a CU's
6479 debugging info, do build a symtab structure for it. Make the
6480 symtab point to the macro information, and clear the
6481 `pending_macros' pointer which held it while we were reading the
6482 debug info.
6483 (really_free_pendings): Free any pending macro table.
6484 * objfiles.h (struct objfile): New member: `macro_cache'.
6485 * objfiles.c (allocate_objfile): Set allocate and free functions
6486 for the macro cache's objstack.
6487 (free_objfile): Empty the macro cache's obstack.
6488 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
6489 set new allocate and free functions for it.
6490 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
6491 free functions for the macro cache's objstack. (Why is this
6492 function building its own objfile?)
6493 * symmisc.c (print_objfile_statistics): Print statistics on the
6494 macro bcache.
6495 * Makefile.in: Note that buildsym.o depends on macrotab.h.
6496
6497 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
6498
6499 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
6500 (REGISTER_U_ADDR): Delete definition.
6501 (arm_register_u_addr): Delete declaration.
6502
6503 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
6504
6505 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
6506 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
6507
6508 2002-05-14 Andrew Cagney <ac131313@redhat.com>
6509
6510 * regcache.c (register_valid): Revise comments refering to "Not
6511 available" and "unavailable".
6512 * frame.c (frame_register_read): Ditto.
6513 * findvar.c (value_of_register): Ditto.
6514
6515 2002-05-15 Andrew Cagney <cagney@redhat.com>
6516
6517 * Makefile.in (remote_sim_h): Replace remote-sim_h.
6518 (remote-sim.o): Update dependencies.
6519 (d10v-tdep.o): Specify dependencies.
6520 (sim_d10v_h): Define.
6521
6522 2002-05-14 Jim Blandy <jimb@redhat.com>
6523
6524 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
6525 * macrotab.c (macro_lookup_inclusion, find_definition,
6526 new_macro_table): Same.
6527
6528 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
6529 not `! strcmp ()'. This is a dubious improvement.
6530 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
6531
6532 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
6533 although it's not necessary, to avoid a warning.
6534
6535 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
6536
6537 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
6538 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
6539 TYPE_INSTANCE_FLAGS.
6540 (struct main_type): New.
6541 (struct type): Move most members to struct main_type. Change
6542 cv_type and as_type to new type_chain member. Add instance_flags.
6543 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
6544 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
6545 (finish_cv_type): Remove prototype.
6546 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
6547 Set TYPE_CHAIN.
6548 (alloc_type_instance): New function.
6549 (smash_type): New function.
6550 (make_pointer_type, make_reference_type, make_function_type)
6551 (smash_to_member_type, smash_to_method_type): Call smash_type.
6552 (make_qualified_type): New function.
6553 (make_type_with_address_space): Call make_qualified_type.
6554 (make_cv_type): Likewise.
6555 (finish_cv_type): Remove unnecessary function.
6556 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
6557 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
6558 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
6559 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
6560 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
6561 * hpread.c (hpread_read_struct_type): Likewise.
6562 * stabsread.c (read_struct_type): Likewise.
6563
6564 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
6565
6566 * configure.tgt: Add a catch all sh* target, for cases like
6567 sh[2,3,4]-elf and sh-hms.
6568
6569 2002-05-14 Keith Seitz <keiths@redhat.com>
6570
6571 * event-loop.c (create_file_handler): Don't do anything but
6572 update data when we are given a fd which we are already
6573 monitoring.
6574
6575 2002-05-14 Michal Ludvig <mludvig@suse.cz>
6576
6577 * dwarf2cfi.c (context_cpy): Copy registers correctly.
6578 (update_context): Use __func__ in warnings.
6579
6580 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
6581
6582 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
6583 and tcp_close to net_open and net_close.
6584 (net_open): Accept "udp:" and "tcp:" specifications. Connect
6585 using UDP if requested. Don't try to disable Nagle on UDP
6586 sockets.
6587 * remote.c (remote_serial_open): New function. Warn about UDP.
6588 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
6589
6590 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
6591
6592 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
6593
6594 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
6595
6596 * configure.tgt: Remove sh-hms target.
6597 * MAINTAINERS: Don't list sh-hms as a separate target.
6598
6599 2002-05-13 Jim Blandy <jimb@redhat.com>
6600
6601 Add first preprocessor macro-expansion files.
6602 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
6603 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
6604 (splay_tree_h, macroexp_h, macrotab_h): New variable.
6605 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
6606 (COMMON_OBS): Add macrotab.o, macroexp.o.
6607 (macroexp.o, macrotab.o): New rules.
6608
6609 2002-05-13 Andrew Cagney <ac131313@redhat.com>
6610
6611 * config/m88k/tm-m88k.h: Update copyright.
6612 (m88k_target_write_pc): Declare
6613 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
6614 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
6615 (SHIFT_INST_REGS): Update definition.
6616 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
6617 using old definition of TARGET_WRITE_PC.
6618 * regcache.c (generic_target_write_pc): Delete code handling
6619 NNPC_REGNUM.
6620 * gdbarch.sh (NNPC_REGNUM): Delete.
6621 * gdbarch.h, gdbarch.c: Regenerate.
6622
6623 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
6624
6625 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
6626 builtin reg number.
6627
6628 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
6629
6630 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
6631 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
6632 (gen_address_of, gen_struct_ref, gen_repeat): Use type
6633 access macros.
6634 * c-typeprint.c (cp_type_print_method_args): Likewise.
6635 (c_type_print_args): Likewise.
6636 * d10v-tdep.c (d10v_push_arguments): Likewise.
6637 (d10v_extract_return_value): Likewise.
6638 * expprint.c (print_subexp): Likewise.
6639 * gdbtypes.c (lookup_primitive_typename): Likewise.
6640 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
6641 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
6642 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
6643 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
6644 (TYPE_VECTOR): Likewise.
6645 * hpread.c (hpread_read_struct_type)
6646 (fix_static_member_physnames, fixup_class_method_type)
6647 (hpread_type_lookup): Likewise.
6648 * mdebugread.c (parse_symbol, parse_type): Likewise.
6649 * p-lang.c (is_pascal_string_type): Likewise.
6650 * valops.c (hand_function_call): Likewise.
6651 * x86-64-tdep.c (classify_argument): Likewise.
6652
6653 * hpread.c (hpread_read_function_type)
6654 (hpread_read_doc_function_type): Call replace_type.
6655 * dstread.c (create_new_type): Delete.
6656 (decode_dst_structure, process_dst_function): Call alloc_type.
6657 Use type access macros.
6658
6659 2002-05-12 Mark Kettenis <kettenis@gnu.org>
6660
6661 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
6662 the're not supported by the current architecture.
6663 (i387_fill_fxsave): Likewise.
6664
6665 2002-05-12 Fred Fish <fnf@redhat.com>
6666
6667 * symfile.c (default_symfile_offsets): Arrange for uninitialized
6668 sect_index_xxx members to index the first slot in section_offsets
6669 if all of the section_offsets are zero.
6670
6671 2002-05-12 Mark Kettenis <kettenis@gnu.org>
6672
6673 * configure.tgt (sparc-*openbsd): Remove entry accidentially
6674 checked in with last change.
6675
6676 2002-05-12 Mark Kettenis <kettenis@gnu.org>
6677
6678 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
6679 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
6680 config.sub.
6681
6682 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
6683
6684 * Makefile.in: Update dependencies.
6685
6686 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6687
6688 * language.c (local_hex_string_custom): Simplify. Do not depend
6689 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
6690
6691 * memattr.c (mem_info_command): Replace calls to
6692 longest_local_hex_string and longest_local_hex_string_custom.
6693 * buildsym.c (make_blockvector): Ditto.
6694 * solib.c (info_sharedlibrary_command): Ditto.
6695 * tracepoint.c (tracepoints_info): Ditto.
6696 * symtab.c (print_msymbol_info): Ditto.
6697
6698 * language.c (local_hex_string): Delete.
6699 (local_hex_string_custom): Delete.
6700 (longest_local_hex_string): Rename to local_hex_string.
6701 (longest_local_hex_string_custom): Rename to
6702 local_hex_string_custom.
6703 * language.h (local_hex_string): Change parameter type to LONGEST.
6704 (local_hex_string_custom): Ditto.
6705 (longest_local_hex_string): Delete declaration.
6706 (longest_local_hex_string_custom): Ditto.
6707
6708 * solib.c: Update copyright.
6709 * memattr.c: Update copyright.
6710
6711 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6712
6713 * arch-utils.h (legacy_register_to_value): Declare.
6714 (legacy_value_to_register): Declare.
6715 (legacy_convert_register_p): Declare.
6716 * arch-utils.c (legacy_register_to_value): New function.
6717 (legacy_value_to_register): New function.
6718 (legacy_convert_register_p): New function.
6719
6720 * gdbarch.sh (REGISTER_TO_VALUE): Define.
6721 (VALUE_TO_REGISTER): Define.
6722 (CONVERT_REGISTER_P): Define.
6723 * gdbarch.h, gdbarch.c: Regenerate.
6724
6725 * valops.c (value_assign): Use CONVERT_REGISTER_P and
6726 VALUE_TO_REGISTER.
6727 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
6728 CONVERT_REGISTER_P.
6729
6730 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
6731 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
6732
6733 * Makefile.in: Update dependencies for valops.c.
6734 * valops.c: Include "gdb_assert.h".
6735 (typecmp): Skip THIS parameter to methods.
6736 (find_method_list): Remove static_memfuncp argument,
6737 update callers. Check for stub methods.
6738 (find_value_oload_method_list): Don't set *static_memfuncp.
6739 (find_overload_match): Don't check for stub methods. Assert
6740 that methods are not stubbed. Handle static methods.
6741 (value_find_oload_method_list): Remove static_memfuncp argument.
6742 * gdbtypes.c (check_stub_method): Do not add THIS pointer
6743 to the argument list for static stub methods.
6744 * value.h (value_find_oload_method_list): Update prototype.
6745
6746 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6747
6748 * arch-utils.h (generic_register_size): Declare.
6749 (generic_register_raw_size, generic_register_virtual_size): Delete
6750 declarations.
6751 * arch-utils.c (generic_register_raw_size): Delete.
6752 (generic_register_size): New function.
6753 (generic_register_virtual_size): Delete.
6754
6755 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
6756 default generic_register_size.
6757 * gdbarch.h, gdbarch.c: Re-generate.
6758
6759 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
6760 register_virtual_size.
6761 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
6762 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6763
6764 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6765
6766 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
6767 * gdbarch.h, gdbarch.c: Regenerate.
6768 * gnu-v3-abi.c: Update copyright.
6769 (vtable_address_point_offset): Update.
6770 (gnuv3_rtti_type): Update.
6771 (gnuv3_baseclass_offset): Update.
6772 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
6773 (init_fetch_link_map_offsets): Update.
6774 * remote.c (get_remote_state): Update.
6775
6776 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
6777
6778 * TODO: Remove value_headof/value_from_vtable_info comment.
6779 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
6780 * values.c (value_headof, value_from_vtable_info): Delete.
6781 * value.h (value_from_vtable_info): Delete prototype.
6782
6783 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6784
6785 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
6786 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
6787 $(gdb_regex_h).
6788 (gdb_assert_h): Define.
6789 (gdb_wait_h): Define.
6790 (gdb_regex_h): Define.
6791
6792 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
6793
6794 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
6795 * linespec.c (find_methods): Handle GCC 3.x template constructors.
6796
6797 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6798
6799 * nbsd-tdep.c: Fix comment.
6800
6801 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6802
6803 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
6804 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
6805 (nbsd-tdep.o): New dependency list.
6806 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
6807 nbsd-tdep.h.
6808 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
6809 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
6810 * nbsd-tdep.c: New file.
6811 * nbsd-tdep.h: New file.
6812 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
6813 nbsd-tdep.h.
6814 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
6815 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
6816 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
6817 * config/sh/nbsd.mt (TDEPFILES): Ditto.
6818
6819 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6820
6821 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
6822 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
6823 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
6824 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
6825 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
6826 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
6827
6828 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6829
6830 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
6831 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6832 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
6833 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
6834 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
6835 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
6836 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
6837
6838 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6839
6840 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
6841 fetch_elfcore_registers to...
6842 * i386nbsd-tdep.c: ...here.
6843 (i386nbsd_use_struct_convention): Rename to...
6844 (i386nbsd_aout_use_struct_convention): ...this.
6845 (i386nbsd_supply_reg): New function.
6846 (i386nbsd_fill_reg): New function.
6847 (fetch_core_registers): Use i386nbsd_supply_reg.
6848 (fetch_elfcore_registers): Likewise.
6849 (_initialize_i386nbsd_tdep): New function.
6850 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
6851 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6852 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
6853 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
6854 (i386nbsd_aout_use_struct_convention): ...this.
6855
6856 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6857
6858 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
6859 (store_inferior_registers): Use shnbsd_fill_reg.
6860 * shnbsd-tdep.c (sh_nbsd_supply_registers,
6861 sh_nbsd_supply_register): Collapse into...
6862 (shnbsd_supply_reg): ...this.
6863 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
6864 (shnbsd_fill_reg): ...this.
6865 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
6866 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
6867 (fetch_core_registers): Use shnbsd_supply_reg.
6868 (fetch_elfcore_registers): Use shnbsd_supply_reg.
6869 (sh_nbsd_core_fns): Rename to...
6870 (shnbsd_core_fns): ...this.
6871 (sh_nbsd_elfcore_fns): Rename to...
6872 (shnbsd_elfcore_fns): ...this.
6873 (sh_nbsd_init_abi): Rename to...
6874 (shnbsd_init_abi): ...this.
6875 (_initialize_sh_nbsd_tdep): Rename to...
6876 (_initialize_shnbsd_tdep): ...this.
6877 * shnbsd-tdep.h (sh_nbsd_supply_registers,
6878 sh_nbsd_supply_register, sh_nbsd_fill_registers,
6879 sh_nbsd_fill_register): Remove prototypes.
6880 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
6881
6882 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6883
6884 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
6885 (i387-nat.o): Delete dependency list.
6886 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
6887 (x86-64-linux-nat.o): Likewise.
6888 * i387-nat.c: Delete file, moving contents to...
6889 * i387-tdep.c: ...here.
6890 * i387-nat.h: Rename...
6891 * i387-tdep.h: ...to this.
6892 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
6893 * i386-linux-nat.c: Likewise.
6894 * i386bsd-nat.c: Likewise.
6895 * i386gnu-nat.c: Likewise.
6896 * i386nbsd-nat.c: Likewise.
6897 * i386v4-nat.c: Likewise.
6898 * x86-64-linux-nat.c: Likewise.
6899 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
6900 * config/i386/go32.mh (NATDEPFILES): Likewise.
6901 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
6902 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
6903 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
6904 * config/i386/linux.mh (NATDEPFILES): Likewise.
6905 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
6906 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6907 * config/i386/obsd.mh (NATDEPFILES): Likewise.
6908 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
6909
6910 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6911
6912 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
6913 (alphanbsd-nat.o): Remove dependency list.
6914 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
6915 * alphanbsd-nat.c: Delete. Contents moved to...
6916 * alphanbsd-tdep.c: ...here.
6917 (_initialize_alphanbsd_tdep): Register core functions.
6918 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
6919
6920 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6921
6922 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
6923 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
6924 (alphanbsd-nat.o): Likewise.
6925 (alphabsd-tdep.o): New dependency list.
6926 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
6927 (fill_gregset): Use alphabsd_fill_reg.
6928 (supply_fpregset): Use alphabsd_supply_fpreg.
6929 (fill_fpregset): Use alphabsd_fill_fpreg.
6930 (fetch_inferior_registers): Use struct reg and struct fpreg
6931 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
6932 and alphabsd_supply_fpreg.
6933 (store_inferior_registers): Use struct reg and struct fpreg
6934 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
6935 and alphabsd_fill_fpreg.
6936 * alphabsd-tdep.c: New file.
6937 * alphabsd-tdep.h: New file.
6938 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
6939 (fetch_elfcore_registers): Use alphabsd_supply_reg and
6940 alphabsd_supply_fpreg.
6941 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
6942 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
6943
6944 2002-05-11 Eric Christopher <echristo@redhat.com>
6945
6946 * mips-tdep.c (mips_double_register_type): Fix thinko.
6947 (mips_single_register_type): Ditto.
6948 * MAINTAINERS: Add self.
6949
6950 2002-05-11 Mark Kettenis <kettenis@gnu.org>
6951
6952 * i387-nat.c (i387_supply_register, i387_fill_fsave,
6953 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
6954 right thing on architectures with different endianness and/or
6955 integer sizes.
6956
6957 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
6958
6959 From Christian Limpach <chris@Pin.LU>
6960 * configure.in: Change sed expression which comments out
6961 NATDEPFILES to also comment out continuation lines.
6962 * configure: Regenerate.
6963
6964 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
6965
6966 * sh-tdep.c: Clean up code erroneously reintroduced by previous
6967 big patch.
6968
6969 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
6970
6971 * sh-tdep.c: Include correct file.
6972
6973 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
6974
6975 New support for sh64-elf (sh5) target.
6976
6977 * configure.tgt: For sh64-elf target, default to sh-elf.
6978
6979 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
6980 (struct gdbarch_tdep): Add new fields for new registers and ABI
6981 info.
6982
6983 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
6984 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
6985 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
6986 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
6987 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
6988 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
6989 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
6990 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
6991 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
6992 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
6993 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
6994 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
6995 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
6996 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
6997 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
6998 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
6999 sh64_get_gdb_regnum, sh64_media_reg_base_num,
7000 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
7001 sign_extend, sh64_nofp_frame_init_saved_regs,
7002 sh64_init_extra_frame_info, sh64_get_saved_register,
7003 sh64_extract_struct_value_address, sh64_pop_frame,
7004 sh64_push_arguments, sh64_extract_return_value,
7005 sh64_store_return_value, sh64_show_media_regs,
7006 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
7007 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
7008 sh_sh64_register_virtual_type,
7009 sh_sh64_register_convert_to_virtual,
7010 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
7011 sh64_register_read, sh64_pseudo_register_write,
7012 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
7013 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
7014 sh64_do_pseudo_register, sh_compact_do_registers_info,
7015 sh64_do_registers_info, sh_gdbarch_init): New functions.
7016
7017 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
7018
7019 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
7020
7021 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
7022
7023 * linespec.c (decode_line_1): Check for a double quote after
7024 a filename correctly.
7025
7026 2002-05-10 Jim Blandy <jimb@redhat.com>
7027
7028 Properly track the size of the current objfile's .debug_line section.
7029 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
7030 (DWARF_LINE_SIZE): New macro.
7031 (dwarf2_build_psymtabs_hard): Record the line section's size in
7032 the partial symbol table.
7033 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
7034 symbol table.
7035
7036 2002-05-10 Petr Sorfa <petrs@caldera.com>
7037
7038 * ia64-tdep.c: Handle breakpoints on L instruction type
7039 in MLX instruction bundle by moving the breakpoint to
7040 the third slot (X instruction type) as L holds only data.
7041
7042 2002-05-10 Kevin Buettner <kevinb@redhat.com>
7043
7044 * dbxread.c (discarding_local_symbols_complaint): New complaint.
7045 (process_one_symbol): Complain about discarding local symbols
7046 due to a misplaced N_LBRAC entry.
7047
7048 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
7049
7050 From Daniel Berlin <dan@cgsoftware.com>
7051 * linespec.c (find_toplevel_char): '<' and '>' also increase and
7052 decrease the depth we are at, in the case of templates.
7053
7054 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
7055
7056 * mips-tdep.c (mips_float_register_type): New function.
7057 (mips_double_register_type): New function.
7058 (mips_print_register): Use them.
7059 (do_fp_register_row): Likewise.
7060
7061 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
7062
7063 * signals/signals.c (signals): Remove conditional compilation around
7064 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
7065 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
7066
7067 2002-05-09 Michael Snyder <msnyder@redhat.com>
7068
7069 * remote-rdp.c (remote_rdp_can_run): Remove.
7070
7071 2002-05-09 Tom Tromey <tromey@redhat.com>
7072
7073 * jv-valprint.c (java_val_print): Handle `char' as a special case
7074 of TYPE_CODE_INT.
7075
7076 2002-05-09 Michael Snyder <msnyder@redhat.com>
7077
7078 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
7079 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
7080 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
7081 str r(0123),[sp,#nn].
7082 (arm_skip_prologue): Ditto. Also make disassembly
7083 order-independent by placing it in a loop.
7084
7085 2002-05-06 Michael Snyder <msnyder@redhat.com>
7086
7087 * stabsread.c (read_type): Add recognition for new attribute:
7088 "@V;" means that an array type is actually a vector.
7089 This is analogous to the vector flag that's been added to dwarf2.
7090
7091 2002-05-09 Mark Kettenis <kettenis@gnu.org>
7092
7093 * i386-tdep.h (i386_abi): New enum.
7094 (struct gdbarch_tdep): Replace os_ident member with abi.
7095 (i386_gdbarch_register_os_abi): New prototype.
7096 * i386-tdep.c (i386_abi_names): New array.
7097 (process_note_abi_tag_sections): Removed.
7098 (process_note_sections): New function.
7099 (i386_elf_abi_from_note, i386_elf_abi): New functions.
7100 (struct i386_abi_handler): New struct.
7101 (i386_abi_handler_list): New variable.
7102 (i386_gdbarch_register_os_abi): New function.
7103 (i386_gdbarch_init): Adapt for the changes given above.
7104
7105 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
7106
7107 * gregset.h: Say "GNU/Linux".
7108
7109 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
7110
7111 * gdbtypes.c : Add new builtin type for 64 bit vectors.
7112 (build_gdbtypes): Build builtin_type_v2_float.
7113 (_initialize_gdbtypes): Register new builtin type.
7114
7115 2002-05-08 Andrew Cagney <ac131313@redhat.com>
7116
7117 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
7118 (clear_gdbarch_swap): New function.
7119 (initialize_non_multiarch): Call.
7120 (gdbarch_update_p): Before calling init(), swap out and clear the
7121 existing architecture.
7122 * gdbarch.c: Regenerate.
7123
7124 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7125
7126 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
7127 alphanbsd-tdep.c.
7128
7129 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7130
7131 * sh-nbsd-nat.c: Rename to...
7132 * shnbsd-nat.c: ...this.
7133 * sh-nbsd-tdep.c: Rename to...
7134 * shnbsd-tdep.c: ...this.
7135 * sh-nbsd-tdep.h: Rename to...
7136 * shnbsd-tdep.h: ...this.
7137 * config/sh/nbsd.mh: Use shnbsd-nat.o.
7138 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
7139
7140 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
7141
7142 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
7143 concatenation for command help messages.
7144
7145 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7146
7147 * NEWS: Note new sh*-*-netbsdelf* configuration.
7148 * configure.host: Set gdb_host_cpu to sh for all sh*.
7149 (sh*-*-netbsdelf*): New host.
7150 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
7151 (sh*-*-netbsdelf*): New target.
7152 * sh-nbsd-nat.c: New file.
7153 * sh-nbsd-tdep.c: New file.
7154 * sh-nbsd-tdep.h: New file.
7155 * config/sh/nbsd.mh: New file.
7156 * config/sh/nbsd.mt: New file.
7157 * config/sh/nm-nbsd.h: New file.
7158 * config/sh/tm-nbsd.h: New file.
7159
7160 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7161
7162 * sh-tdep.c (sh_osabi_names): Declare.
7163 (process_note_abi_tag_sections): New function.
7164 (get_elfosabi): Ditto.
7165 (sh_gdbarch_register_os_abi): Ditto.
7166 (sh_dump_tdep): Ditto.
7167 _initialize_sh_tdep): Use gdbarch_register to register
7168 sh_gdbarch_init and sh_dump_tdep.
7169 * config/sh/tm-sh.h (sh_osabi): Declare.
7170 (gdbarch_tdep): Add sh_osabi and osabi_name members.
7171
7172 2002-05-07 Andrew Cagney <ac131313@redhat.com>
7173
7174 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
7175 (thumb_scan_prologue): Ditto.
7176 (arm_find_callers_reg): Ditto.
7177 (arm_frame_chain): Ditto.
7178 (arm_init_extra_frame_info): Ditto.
7179 (arm_frame_saved_pc): Ditto.
7180 (arm_pop_frame): Ditto.
7181 (arm_push_return_address): New function.
7182 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
7183 call_dummy_location, call_dummy_breakpoint_offset_p,
7184 call_dummy_breakpoint_offset, call_dummy_p,
7185 call_dummy_stack_adjust_p, call_dummy_words,
7186 sizeof_call_dummy_words, call_dummy_start_offset,
7187 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
7188 call_dummy_address, push_return_address and push_dummy_frame for
7189 generic dummy frames.
7190
7191 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
7192
7193 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
7194 size computation for alloca.
7195 (sh_fp_frame_init_saved_regs): Likewise.
7196
7197 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
7198
7199 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
7200 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
7201 * arm-tdep.c (arm_store_return_value): Use them.
7202 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
7203 * remote-rdp.c (remote_rdp_fetch_register): Use
7204 ARM_MAX_REGISTER_RAW_SIZE.
7205 (remote_rdp_store_register): Likewise.
7206
7207 2002-05-07 Michal Ludvig <mludvig@suse.cz>
7208
7209 * dwarf2cfi.c: Code cleanup, removed unused variables,
7210 added default labels to switch {} statements.
7211 * x86-64-tdep.c: Ditto.
7212 * x86-64-linux-nat.c: Ditto.
7213
7214 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
7215
7216 * solib.h: Protect against multiple inclusion.
7217
7218 2002-05-06 Jim Blandy <jimb@redhat.com>
7219
7220 Add first preprocessor macro-expansion files.
7221 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
7222 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
7223 (splay_tree_h, macroexp_h, macrotab_h): New variable.
7224 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
7225 (COMMON_OBS): Add macrotab.o, macroexp.o.
7226 (macroexp.o, macrotab.o): New rules.
7227
7228 Separate the job of reading the line number info statement program
7229 header (...expialidocious) out into its own function.
7230 * dwarf2read.c (struct line_head, struct filenames, struct
7231 directories): Replace with...
7232 (struct line_header): New structure, containing the full
7233 contents of the statement program header, including the
7234 include directory and file name tables.
7235 (read_file_scope): If we have line number info, instead of just
7236 calling dwarf_decode_lines to do all the work, call
7237 dwarf_decode_line_header first to get a `struct line_header'
7238 containing the data in the statement program header, and then
7239 pass that to dwarf_decode_lines, which will pick up where that
7240 left off. Be sure to clean up the `struct line_header' object.
7241 (dwarf_decode_line_header, free_line_header, add_include_dir,
7242 add_file_name): New functions.
7243 (dwarf_decode_lines): Move all the code to read the statement
7244 program header into dwarf_decode_line_header. Take the line
7245 header it built as the first argument, instead of the offset to
7246 the compilation unit's line number info. Use the new `struct
7247 line_header' type instead of the old structures. No need to do
7248 cleanups here now, since we don't allocate anything.
7249 (dwarf2_statement_list_fits_in_line_number_section,
7250 dwarf2_line_header_too_long): New complaints.
7251
7252 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
7253
7254 * gdbtypes.c (init_vector_type): New function.
7255 (build_builtin_type_vec128): Simplify the representation of SIMD
7256 registers.
7257 (build_gdbtypes): Initialize new builtin vector types.
7258 (_initialize_gdbtypes): Register new vector types with gdbarch.
7259 (builtin_type_v4_float, builtin_type_v4_int32,
7260 builtin_type_v8_int16, builtin_type_v16_int8,
7261 builtin_type_v2_int32, builtin_type_v4_int16,
7262 builtin_type_v8_int8): New (renamed) SIMD types.
7263
7264 2002-05-06 Mark Kettenis <kettenis@gnu.org>
7265
7266 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
7267 (i387_fill_fxsave): Likewise.
7268
7269 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
7270
7271 * alpha-tdep.c (alpha_extract_return_value): Don't use
7272 non-constant array size in prototype.
7273
7274 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7275
7276 From Brian Taylor <briant at model dot com>:
7277 * ui-out.c (ui_out_field_core_addr): Use the function
7278 longest_local_hex_string_custom'to format addresses > 32 bits
7279 wide.
7280
7281 * ui-out.c (ui_out_field_core_addr): Update comment.
7282
7283 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7284
7285 * stack.c (select_and_print_frame): Make static. Delete the
7286 parameter `level'.
7287 (func_command): Update call.
7288 (select_frame_command): Delete code computing the frame level.
7289 * frame.h (select_and_print_frame): Delete declaration.
7290
7291 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7292
7293 * sparc-tdep.c (sparc_get_saved_register): Comment why
7294 get_prev_frame call is safe.
7295
7296 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7297
7298 * frame.h (select_frame): Delete level parameter.
7299 * stack.c (select_frame): Update. Use frame_relative_level to
7300 obtain the frame's level.
7301 (select_and_print_frame): Update call.
7302 (select_frame_command): Ditto.
7303 (up_silently_base): Ditto.
7304 (down_silently_base): Ditto.
7305 * ocd.c (ocd_start_remote): Ditto.
7306 * remote-rdp.c (remote_rdp_open): Ditto.
7307 * remote-mips.c (mips_initialize): Ditto.
7308 (common_open): Ditto.
7309 * remote-e7000.c (e7000_start_remote): Ditto.
7310 * m3-nat.c (select_thread): Ditto.
7311 * hppa-tdep.c (child_get_current_exception_event): Ditto.
7312 (child_get_current_exception_event): Ditto.
7313 * varobj.c (varobj_create): Ditto.
7314 (varobj_update): Ditto.
7315 (c_value_of_root): Ditto.
7316 * tracepoint.c (finish_tfind_command): Ditto.
7317 * corelow.c (core_open): Ditto.
7318 * arch-utils.c (generic_prepare_to_proceed): Ditto.
7319 * thread.c (info_threads_command): Ditto.
7320 (switch_to_thread): Ditto.
7321 * infrun.c (normal_stop): Ditto.
7322 (restore_selected_frame): Ditto.
7323 (restore_inferior_status): Ditto.
7324 * breakpoint.c (insert_breakpoints): Ditto.
7325 (watchpoint_check): Ditto.
7326 (bpstat_stop_status): Ditto.
7327 (do_enable_breakpoint): Ditto.
7328 * blockframe.c (flush_cached_frames): Ditto.
7329 (reinit_frame_cache): Ditto.
7330
7331 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7332
7333 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
7334 maintainer.
7335
7336 2002-05-04 Jim Blandy <jimb@redhat.com>
7337
7338 * gdbtypes.c (replace_type): Doc fix.
7339
7340 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7341
7342 * valprint.c (strcat_longest): Delete commented out function.
7343 Update copyright.
7344
7345 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7346
7347 * MAINTAINERS: Mark a29k as deleted.
7348 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
7349 Move new configurations to the top.
7350 * configure.tgt: Remove a29k.
7351 * config/a29k/tm-vx29k.h: Delete.
7352 * config/a29k/vx29k.mt: Delete.
7353 * config/a29k/tm-a29k.h: Delete.
7354 * config/a29k/a29k-udi.mt: Delete.
7355 * config/a29k/a29k.mt: Delete.
7356 * a29k-tdep.c: Delete.
7357 * remote-udi.c: Delete.
7358 * remote-mm.c: Delete.
7359 * remote-eb.c: Delete.
7360 * remote-adapt.c: Delete.
7361 * Makefile.in: Remove obsolete code.
7362 * config/s390/s390x.mt: Ditto.
7363 * config/s390/s390.mt: Ditto.
7364 * config/sparc/sparclynx.mh: Ditto.
7365 * config/sparc/linux.mh: Ditto.
7366 * config/pa/hppaosf.mh: Ditto.
7367 * config/pa/hppabsd.mh: Ditto.
7368 * config/ns32k/nbsd.mt: Ditto.
7369 * config/mips/vr5000.mt: Ditto.
7370 * config/m68k/sun3os4.mh: Ditto.
7371 * config/m68k/nbsd.mt: Ditto.
7372 * config/m68k/m68klynx.mh: Ditto.
7373 * config/m32r/m32r.mt: Ditto.
7374 * config/i386/x86-64linux.mt: Ditto.
7375 * config/i386/nbsdelf.mt: Ditto.
7376 * config/i386/nbsd.mt: Ditto.
7377 * config/i386/i386lynx.mh: Ditto.
7378
7379 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7380
7381 * target.c (debug_print_register): New function. Handle oversize
7382 registers.
7383 (debug_to_fetch_registers): Call.
7384 (debug_to_store_registers): Call.
7385
7386 2002-05-03 Jim Blandy <jimb@redhat.com>
7387
7388 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
7389 (read_type): Doc fix.
7390 * gdbtypes.c (replace_type): Doc fix.
7391
7392 * stabsread.c (multiply_defined_struct): New complaint.
7393 (read_struct_type): If the type we were passed isn't empty, or
7394 incomplete, don't read the new struct type into it; complain,
7395 and return the original type unchanged. Take a new `type_code'
7396 argument, which is the type code for the new type.
7397 (read_type): Rather than storing the type's type code here, pass
7398 it as an argument to read_struct_type, and let that take care of
7399 storing it. That way, we don't overwrite the original type code,
7400 so read_struct_type can use it to decide whether we're overwriting
7401 something we shouldn't.
7402 (complain_about_struct_wipeout): New function.
7403
7404 2002-05-03 Andrew Cagney <ac131313@redhat.com>
7405
7406 * gdbarch.sh: Assert that gdbarch is non-NULL.
7407 * gdbarch.c: Regenerate.
7408
7409 2002-05-03 Jason Merrill <jason@redhat.com>
7410
7411 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
7412 and return NULL.
7413
7414 2002-05-03 Michal Ludvig <mludvig@suse.cz>
7415
7416 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
7417 (x86_64_dwarf2gdb_regno_map_length),
7418 (x86_64_dwarf2_reg_to_regnum): Added.
7419 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
7420 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
7421 (_initialize_x86_64_tdep): Synced with the change above.
7422 (x86_64_skip_prologue): Reformulated message.
7423
7424 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
7425
7426 * f-exp.y: Also use new prev_lexptr variable
7427 to improve error reporting. Based on Michael Snyder
7428 2002-04-24 dated patch to c-exp.y.
7429 * jv-exp.y: Likewise.
7430 * m2-exp.y: Likewise.
7431
7432 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
7433
7434 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
7435 we are dealing with vectors.
7436
7437 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7438
7439 * config/m68k/tm-nbsd.h: Obvious fix,
7440 correct machine name.
7441
7442 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7443
7444 * p-typeprint.c (pascal_type_print_base): Add support
7445 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
7446
7447 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7448
7449 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
7450 for fondamental pascal 'char' type.
7451
7452 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7453
7454 * p-lang.h (is_pascal_string_type): Declaration changed,
7455 new sixth argument of type char ** added.
7456 * p-lang.c (is_pascal_string_type): Implementation
7457 changed. Args length_pos, length_size, string_pos, char_size
7458 can now be NULL. New argument arrayname set to the field
7459 name of the char array. Return value set to char array
7460 field index plus one.
7461 * p-valprint.c (pascal_val_print): Adapt to new declaration of
7462 is_pascal_string_type function.
7463
7464 2002-05-02 Andrew Cagney <cagney@redhat.com>
7465
7466 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
7467 <cagney@redhat.com> change.
7468 * gdbarch.c: Regenerate.
7469
7470 2002-05-02 Andrew Cagney <cagney@redhat.com>
7471
7472 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
7473 before probing for a new one. Detect errorenous gdbarch_init
7474 functions.
7475 * gdbarch.c: Regenerate.
7476
7477 2002-05-01 Andrew Cagney <cagney@redhat.com>
7478
7479 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
7480 * config/mcore/tm-mcore.h: Ditto. Update copyright.
7481 * config/v850/tm-v850.h: Ditto. Update copyright.
7482
7483 2002-04-30 Andrew Cagney <ac131313@redhat.com>
7484
7485 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
7486 current_gdbarch.
7487
7488 2002-04-30 Michael Snyder <msnyder@redhat.com>
7489
7490 * arm-tdep.c: Whitespace clean-ups.
7491 (arm_skip_prologue): Fix thinko; two lines
7492 should have been removed as part of 4/24 change.
7493
7494 2002-04-30 Kevin Buettner <kevinb@redhat.com>
7495
7496 * rs6000-tdep.c: Added comment describing how fpscr register
7497 numbers were chosen.
7498
7499 2002-04-30 Michael Snyder <msnyder@redhat.com>
7500
7501 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
7502
7503 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
7504
7505 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
7506 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
7507 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
7508
7509 2002-04-29 Kevin Buettner <kevinb@redhat.com>
7510
7511 From Louis Hamilton <hamilton@redhat.com>:
7512 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
7513 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
7514 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
7515 not bfd-private xcoff data, to determine wordsize.
7516 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
7517
7518 2002-04-29 Andrew Cagney <ac131313@redhat.com>
7519
7520 GDB 5.2 released from 5.2 branch.
7521
7522 2002-04-29 Michal Ludvig <mludvig@suse.cz>
7523
7524 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
7525 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
7526 (x86_64_register_info_table): Added comments with register numbers.
7527
7528 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
7529
7530 * rs6000-tdep.c (rs6000_extract_return_value,
7531 rs6000_store_return_value): Handle returning vectors.
7532 (rs6000_gdbarch_init): Use
7533 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
7534 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
7535 New function.
7536 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
7537 vectors.
7538 (ppc_sysv_abi_push_arguments): Handle vector parameters.
7539 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
7540
7541 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
7542
7543 * hpread.c (hpread_psymtab_to_symtab_1,
7544 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
7545 with fprintf_unfiltered (gdb_stderr,...).
7546
7547 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
7548
7549 * remote-array.c (printf_monitor, write_monitor,
7550 array_insert_breakpoint, array_remove_breakpoint ):
7551 Replace fprintf (stderr,...
7552 with fprintf_unfiltered (gdb_stderr,....
7553 * remote-es.c: Likewise.
7554 * remote-os9k.c: Likewise.
7555 * remote-st.c: Likewise.
7556
7557 2002-04-28 Andreas Schwab <schwab@suse.de>
7558
7559 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
7560 linux-proc.o and gcore.o.
7561
7562 2002-04-26 Michal Ludvig <mludvig@suse.cz>
7563
7564 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
7565 code without frame pointers.
7566
7567 2002-04-26 Andrew Cagney <ac131313@redhat.com>
7568
7569 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
7570 ON_STACK is needed.
7571
7572 2002-04-26 Ben Elliston <bje@redhat.com>
7573
7574 * target.c (do_xfer_memory): Correct reference to the new option
7575 "trust-readonly-sections".
7576
7577 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
7578
7579 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
7580 * gdbtypes.c (recursive_dump_type): Output the vector flag.
7581 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
7582 vectors.
7583 (read_array_type): Record the fact that this array type is really a
7584 vector (i.e. are passed in by value).
7585
7586 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
7587
7588 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
7589 * alpha-tdep.c (alpha_sigcontext_addr): New function.
7590 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
7591 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
7592 * alpha-linux-tdep.c: Include frame.h.
7593 (alpha_linux_sigcontext_addr): New function.
7594 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
7595 alpha_linux_sigcontext_addr.
7596 * alpha-osf1-tdep.c: Include gdbcore.h.
7597 (alpha_osf1_sigcontext_addr): New function.
7598 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
7599 alpha_osf1_sigcontext_addr.
7600 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
7601 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
7602
7603 2002-04-26 Andrew Cagney <ac131313@redhat.com>
7604
7605 * stack.c (selected_frame_level):
7606 (select_frame): Do not set selected_frame_level.
7607 * frame.h (selected_frame_level): Delete declaration.
7608
7609 2002-04-26 Andrew Cagney <ac131313@redhat.com>
7610
7611 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
7612 convert_from_func_ptr-addr when AIX / PowerOpen.
7613
7614 2002-04-25 Andrew Cagney <ac131313@redhat.com>
7615
7616 * valops.c (hand_function_call): Call
7617 generic_save_call_dummy_addr.
7618 * frame.h (generic_save_call_dummy_addr): Declare.
7619 * blockframe.c (struct dummy_frame): Add fields call_lo and
7620 call_hi.
7621 (generic_find_dummy_frame): Check for PC in range call_lo to
7622 call_hi instead of entry_point_address.
7623 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
7624 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
7625 (generic_save_call_dummy_addr): New function.
7626
7627 2002-04-24 David S. Miller <davem@redhat.com>
7628
7629 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
7630 sparc_skip_prologue.
7631 (sparc_skip_prologue): Kill frameless_p arg, and use line number
7632 information to find prologue when possible.
7633 (sparc_prologue_frameless_p): Call examine_prologue directly.
7634 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
7635 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
7636 second argument.
7637 (SKIP_PROLOGUE): Likewise.
7638
7639 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7640
7641 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
7642 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
7643 indicate that the condition it was testing is always true.
7644 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
7645 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
7646 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
7647
7648 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7649
7650 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
7651 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
7652 tdep->jb_pc and tdep->jb_elt_size.
7653 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
7654 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
7655 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
7656 * alpha-nat.c (get_longjmp_target): Remove.
7657 (JB_ELEMENT_SIZE): Ditto.
7658 (JB_PC): Ditto.
7659 * alpha-tdep.c (alpha_get_longjmp_target): New function.
7660 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
7661 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
7662 to alpha_get_longjmp_target.
7663 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
7664 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
7665 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
7666
7667 2002-04-25 Andrew Cagney <ac131313@redhat.com>
7668
7669 * README: Update to GDB 5.2.
7670
7671 2002-04-25 Andrew Cagney <ac131313@redhat.com>
7672
7673 * gdbarch.sh (LC_ALL): Set to `c'.
7674
7675 2002-04-25 Theodore A. Roth <troth@verinet.com>
7676
7677 * avr-tdep.c: Ran through gdb_indent.sh.
7678
7679 2002-04-25 Theodore A. Roth <troth@verinet.com>
7680
7681 * MAINTAINERS: Add myself as AVR maintainer.
7682 * NEWS: Note new target avr.
7683
7684 2002-04-25 Theodore A. Roth <troth@verinet.com>
7685
7686 * Makefile.in: Add support for AVR target.
7687 * configure.tgt: Add support for AVR target.
7688 * avr-tdep.c: New file
7689 * config/avr/avr.mt: New file.
7690
7691 2002-04-25 Theodore A. Roth <troth@verinet.com>
7692
7693 * MAINTAINERS: Add myself to write-after-approval.
7694
7695 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
7696
7697 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
7698 with fprintf_unfiltered (gdb_stderr,....
7699
7700 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
7701
7702 Fix PR gdb/508.
7703 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
7704
7705 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
7706
7707 * p-exp.y: Also use new prev_lexptr variable
7708 to improve error reporting. Based on Michael Snyder
7709 2002-04-24 dated patch to c-exp.y.
7710
7711 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7712
7713 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
7714 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
7715 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
7716 to 0.
7717 * config/alpha/tm-alpha.h: Remove forward decls of struct type
7718 and struct value.
7719 (FUNCTION_START_OFFSET): Remove.
7720 (BREAKPOINT): Ditto.
7721
7722 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7723
7724 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
7725 * NEWS: Ditto.
7726
7727 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7728
7729 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
7730 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
7731 alpha_linux_pc_in_sigtramp.
7732 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
7733 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
7734 alpha_osf1_pc_in_sigtramp.
7735 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
7736 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
7737 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
7738 alphafbsd_pc_in_sigtramp.
7739 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
7740 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
7741 alphanbsd_pc_in_sigtramp.
7742 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
7743 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
7744
7745 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7746
7747 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
7748
7749 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7750
7751 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
7752 alphanbsd-tdep.c.
7753 (alphanbsd-nat.o): New dependency list.
7754 (alphanbsd-tdep.o): Ditto.
7755 * NEWS: Note new native NetBSD/alpha configuration.
7756 * alphanbsd-nat.c: New file.
7757 * alphanbsd-tdep.c: Ditto.
7758 * configure.host (alpha*-*-netbsd*): New host.
7759 * configure.tgt (alpha*-*-netbsd*): New target.
7760 * config/alpha/nbsd.mh: New file.
7761 * config/alpha/nbsd.mt: Ditto.
7762 * config/alpha/nm-nbsd.h: Ditto.
7763 * config/alpha/tm-nbsd.h: Ditto.
7764
7765 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7766
7767 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
7768 (alpha-osf1-tdep.o): New dependency list.
7769 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
7770 and skip_sigtramp_frame members.
7771 * alpha-linux-tdep.c: Include gdbcore.h.
7772 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
7773 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
7774 * alpha-osf1-tdep.c: New file.
7775 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
7776 alpha-osf1-dep.c.
7777 (alpha_frame_past_sigtramp_frame): New function.
7778 (alpha_dynamic_sigtramp_offset): Ditto.
7779 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
7780 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
7781 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
7782 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
7783 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
7784 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
7785 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
7786 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
7787 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
7788 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
7789 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
7790 to find_solib_trampoline_target.
7791 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
7792 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
7793 (SKIP_TRAMPOLINE_CODE): Remove.
7794 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7795 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7796 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
7797 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
7798 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
7799 (PROC_SIGTRAMP_MAGIC): Ditto.
7800 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7801 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7802 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7803 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
7804 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
7805
7806 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7807
7808 * NEWS: Note that Alpha targets are now multi-arch.
7809
7810 2002-04-24 Michael Snyder <msnyder@redhat.com>
7811
7812 * parser-defs.h (prev_lexptr): New external variable.
7813 * parse.c (parse_exp_1): Set prev_lexptr to null before
7814 calling the language-specific parser.
7815 * c-exp.y (yylex): Set prev_lexptr to start of current token.
7816 (yyerror): Use prev_lexptr in error reporting.
7817
7818 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
7819
7820 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
7821 * gregset.h: If FILL_FPXREGSET is defined, provide
7822 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
7823 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
7824 is defined, call fill_fpxregset.
7825
7826 2002-04-24 Roland McGrath <roland@frob.com>
7827
7828 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
7829 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
7830 (supply_gregset, supply_fpregset): New functions.
7831
7832 * gnu-nat.c (gnu_find_memory_regions): New function.
7833 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
7834 (gnu_xfer_memory): Add a cast.
7835
7836 2002-04-24 Michael Snyder <msnyder@redhat.com>
7837
7838 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
7839 loop. Add handling for "str lr, [sp, #-4]!" and for saves
7840 of argument regs ("str r(0123), [r11, #-nn"]).
7841 (arm_skip_prologue): Better handling for frameless functions.
7842 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
7843 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
7844
7845 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
7846
7847 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
7848 NUM_PSEUDO_REGS can be used.
7849
7850 2002-04-24 Andrew Cagney <ac131313@redhat.com>
7851
7852 * arch-utils.h: Update copyright.
7853
7854 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
7855 * gdbarch.h, gdbarch.c: Re-generate.
7856
7857 * inferior.h (IN_SIGTRAMP): Delete definition.
7858 * arch-utils.c (legacy_pc_in_sigtramp): New function.
7859 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
7860
7861 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
7862 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
7863 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
7864 (find_proc_framesize): Ditto.
7865 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
7866 (alpha_init_extra_frame_info): Ditto.
7867 * infrun.c (handle_inferior_event): Ditto.
7868 (handle_inferior_event): Ditto.
7869 (check_sigtramp2): Ditto.
7870 * blockframe.c (create_new_frame): Ditto.
7871 (get_prev_frame): Ditto.
7872 * ppc-linux-tdep.c: Update comments.
7873 * i386-linux-tdep.c: Update comments.
7874 * breakpoint.c (bpstat_what): Update comment.
7875
7876 2002-04-24 David S. Miller <davem@redhat.com>
7877
7878 * i960-tdep.c (register_in_window_p): New function.
7879 (i960_find_saved_register): Use it instead of
7880 REGISTER_IN_WINDOW_P.
7881 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
7882
7883 * symtab.h (find_stab_function_addr): Kill extern.
7884 * minsyms.c (find_stab_function_addr): Remove from here...
7885 * dbxread.c: ... to here, and mark it static.
7886
7887 2002-04-20 David S. Miller <davem@redhat.com>
7888
7889 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
7890 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
7891
7892 2002-04-21 David S. Miller <davem@redhat.com>
7893
7894 * remote-vxsparc.c (vx_read_register): Fix typo, we want
7895 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
7896 (vx_write_register): Likewise.
7897
7898 2002-04-23 J. Brobecker <brobecker@gnat.com>
7899
7900 * source.c (is_regular_file): New function.
7901 (openp): Check wether file to open is a regular file
7902 to avoid opening directories.
7903
7904 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7905
7906 * findvar.c (extract_signed_integer): Cast printf argument
7907 to suppress format warning.
7908 (extract_unsigned_integer): Likewise.
7909 * infcmd.c (registers_info): Likewise.
7910 * top.c (get_prompt_1): Likewise.
7911 * valops.c (value_assign): Likewise.
7912 * valprint.c (print_decimal): Likewise.
7913
7914 2002-04-22 H.J. Lu (hjl@gnu.org)
7915
7916 * c-exp.y (typebase): Support
7917
7918 [long|long long|short] [signed|unsigned] [int|]
7919
7920 and
7921
7922 signed [long|long long|short] int
7923
7924 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7925
7926 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
7927 and vax-tdep.h.
7928 * vax-tdep.h: New file.
7929 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
7930 Make several routines static.
7931 (vax_get_saved_register): New function.
7932 (vax_gdbarch_init): New function.
7933 (_initialize_vax_tdep): Register vax_gdbarch_init.
7934 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
7935 Remove macros now under the control of gdbarch.
7936
7937 2002-04-22 Michael Snyder <msnyder@redhat.com>
7938
7939 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
7940 Some whitespace and coding standards tweaks.
7941
7942 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7943
7944 * vax-tdep.c: Include regcache.h.
7945 (vax_call_dummy_words): New.
7946 (sizeof_vax_call_dummy_words): New.
7947 (vax_fix_call_dummy): New function.
7948 (vax_saved_pc_after_call): Ditto.
7949 * config/vax/tm-vax.h: Don't include regcache.h.
7950 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
7951 (CALL_DUMMY): Remove.
7952 (CALL_DUMMY_WORDS): Define.
7953 (SIZEOF_CALL_DUMMY_WORDS): Define.
7954 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
7955
7956 2002-04-18 Michael Snyder <msnyder@redhat.com>
7957
7958 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
7959
7960 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7961
7962 * vax-tdep.c (vax_frame_chain): New function.
7963 (vax_push_dummy_frame): Ditto.
7964 (vax_pop_frame): Ditto.
7965 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
7966 (FRAMELESS_FUNCTION_INVOCATION): Use
7967 generic_frameless_function_invocation_not.
7968 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
7969 (POP_FRAME): Use vax_pop_frame.
7970
7971 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7972
7973 * vax-tdep.c (vax_store_struct_return): New function.
7974 (vax_extract_return_value): Ditto.
7975 (vax_store_return_value): Ditto.
7976 (vax_extract_struct_value_address): Ditto.
7977 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
7978 vax_store_struct_return.
7979 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
7980 (STORE_RETURN_VALUE): Use vax_store_return_value.
7981 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
7982
7983 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7984
7985 * vax-tdep.c (vax_frame_saved_pc): New function.
7986 (vax_frame_args_address_correct): Ditto.
7987 (vax_frame_args_address): Ditto.
7988 (vax_frame_locals_address): Ditto.
7989 (vax_frame_num_args): Move code to be in proximity to
7990 other frame-related functions.
7991 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
7992 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
7993 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
7994 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
7995 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
7996
7997 2002-04-22 H.J. Lu (hjl@gnu.org)
7998
7999 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
8000 includedir.
8001
8002 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8003
8004 * vax-tdep.c (vax_frame_init_saved_regs): New function.
8005 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
8006 (FRAME_INIT_SAVED_REGS): New macro.
8007
8008 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8009
8010 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
8011
8012 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8013
8014 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
8015 where needed.
8016 (fetch_osf_core_registers): Likewise.
8017 (supply_gregset): Likewise.
8018
8019 2002-04-22 J. Brobecker <brobecker@gnat.com>
8020
8021 * symfile.h (get_section_index): Define.
8022 * symfile.c (get_section_index): New function.
8023 * mdebugread.c (SC_IS_SBSS): New macro.
8024 (SC_IS_BSS): Return true for the scBss storage class only, as
8025 the scSBss storage class refers to the .sbss section.
8026 (parse_partial_symbols): Discard the symbols which associated
8027 section does not exist.
8028 Make sure to use the .sbss section index for symbols which
8029 storage class is scBss, rather than using the .bss section index.
8030
8031 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8032
8033 * vax-tdep.c: Update copyright years.
8034 (vax_register_name): New function.
8035 (vax_register_byte): Ditto.
8036 (vax_register_raw_size): Ditto.
8037 (vax_register_virtual_size): Ditto.
8038 (vax_register_virtual_type): Ditto.
8039 * config/vax/tm-vax.h: Update copyright years.
8040 (REGISTER_NAMES): Remove.
8041 (REGISTER_NAME): Define.
8042 (REGISTER_BYTE): Use vax_register_byte.
8043 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
8044 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
8045 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
8046
8047 2002-04-21 Andrew Cagney <ac131313@redhat.com>
8048
8049 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
8050 declaration
8051 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
8052
8053 2002-04-21 David S. Miller <davem@redhat.com>
8054
8055 * arch-utils.c (generic_prologue_frameless_p): Kill
8056 SKIP_PROLOGUE_FRAMELESS_P code.
8057 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
8058 references.
8059 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
8060 * arc-tdep.c (arc_prologue_frameless_p): Implement.
8061 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
8062 references.
8063 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
8064 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
8065 (sparc_gdbarch_init): Pass it to
8066 set_gdbarch_prologue_frameless_p.
8067
8068 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8069
8070 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
8071 (alphabsd-nat.o): New dependency list.
8072
8073 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8074
8075 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
8076 alphafbsd-tdep.c.
8077 (alpha-linux-tdep.o): New dependency list.
8078 (alphafbsd-tdep.o): Likewise.
8079
8080 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8081
8082 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
8083 to here...
8084 * alpha-tdep.c: ...from here.
8085 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
8086
8087 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8088
8089 * config/alpha/tm-alpha.h: Move alpha_software_single_step
8090 prototype from here...
8091 * alpha-tdep.h: ...to here.
8092
8093 2002-04-21 Andrew Cagney <ac131313@redhat.com>
8094
8095 * frame.h (selected_frame_level): Document as deprecated.
8096 (frame_relative_level): Declare.
8097 * stack.c (frame_relative_level): New function.
8098 (selected_frame_level): Document as deprecated.
8099 (select_frame): Do not set the selected_frame_level.
8100
8101 * stack.c (frame_info, record_selected_frame): Update.
8102 (frame_command, current_frame_command): Update.
8103 (up_silently_base, up_command, down_silently_base): Update.
8104 (down_command): Update.
8105 * inflow.c (kill_command): Update.
8106 * tracepoint.c (finish_tfind_command): Update.
8107 * corelow.c (core_open): Update.
8108 * thread.c (info_threads_command): Update.
8109 (do_captured_thread_select): Update.
8110 * infcmd.c (finish_command): Update.
8111 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
8112
8113 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8114
8115 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
8116
8117 2002-04-21 Andrew Cagney <ac131313@redhat.com>
8118
8119 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
8120 type const.
8121
8122 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8123
8124 * alphafbsd-tdep.c: Update copyright years. Include
8125 alpha-tdep.h.
8126 (alphafbsd_use_struct_convention): Make static.
8127 (alphafbsd_init_abi): New function.
8128 (_initialize_alphafbsd_tdep): New function.
8129 * config/alpha/tm-fbsd.h: Update copyright years.
8130 (USE_STRUCT_CONVENTION): Remove.
8131
8132 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8133
8134 * alpha-tdep.c (alpha_abi_handler): New structure to describe
8135 an Alpha ABI variant.
8136 (alpha_abi_handler_list): Declare.
8137 (alpha_gdbarch_register_os_abi): New function.
8138 (alpha_gdbarch_init): Give registered ABI variant handlers a
8139 chance to tweak the gdbarch once we have set up defaults.
8140 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
8141
8142 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8143
8144 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
8145 to standard_coerce_float_to_double.
8146 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
8147
8148 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8149
8150 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
8151 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
8152 from gdbarch_tdep rather than a constant.
8153 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
8154 the default text address for all Alpha Unix ABIs.
8155 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
8156 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
8157
8158 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8159
8160 * alpha-tdep.h: New file. Includes several Alpha target constants
8161 taken from...
8162 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
8163 let gdbarch deal with.
8164 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
8165 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
8166 to dependency list.
8167 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
8168 Alpha target register names.
8169 * alphabsd-nat.c: Likewise.
8170 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
8171 Alpha target register names. Make serveral routines static.
8172 (alpha_get_saved_register): New function.
8173 (alpha_abi_names): New.
8174 (process_note_abi_tag_sections): New function.
8175 (get_elfosabi): New function.
8176 (alpha_gdbarch_init): New function.
8177 (alpha_dump_tdep): New function.
8178 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
8179
8180 2002-04-21 Andrew Cagney <ac131313@redhat.com>
8181
8182 * frame.c (find_saved_register): Delete #ifdef
8183 HAVE_REGISTER_WINDOWS code.
8184 * config/sparc/tm-sparc.h: Update comments.
8185 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
8186
8187 2002-04-21 Andrew Cagney <ac131313@redhat.com>
8188
8189 * i960-tdep.c (i960_find_saved_register): New function.
8190 (i960_get_saved_register): New function.
8191 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
8192 (i960_get_saved_register): Declare.
8193 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
8194
8195 2002-04-20 David S. Miller <davem@redhat.com>
8196
8197 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
8198
8199 2002-04-20 Andrew Cagney <ac131313@redhat.com>
8200
8201 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
8202 instead of NUM_PSEUDO_REGS.
8203
8204 2002-04-20 David S. Miller <davem@redhat.com>
8205
8206 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
8207 GDB_MULTI_ARCH_PARTIAL
8208 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
8209 define, let tm-sp64.h do it.
8210
8211 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
8212
8213 * frame.c (find_saved_register): Avoid a NULL pointer
8214 dereference and actually walk the frame list.
8215
8216 2002-04-20 Andrew Cagney <ac131313@redhat.com>
8217
8218 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
8219 sorted in most most-recent-used order. Document.
8220 * gdbarch.h, gdbarch.c: Regenerate.
8221
8222 2002-04-19 Andrew Cagney <ac131313@redhat.com>
8223
8224 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
8225 instead of ->prev.
8226 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
8227 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
8228 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
8229 instead of ->prev.
8230
8231 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
8232
8233 Fix PR gdb/471.
8234 * gdbtypes.c (init_simd_type): Rewrite using new functions.
8235 (build_builtin_type_vec128): Ditto.
8236 (append_composite_type_field): Fix calculation of type length in
8237 union case.
8238
8239 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
8240
8241 * config/djgpp/README: Update.
8242
8243 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
8244 compiler warnings.
8245
8246 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
8247
8248 * alpha-tdep.c (setup_arbitrary_frame): Rename...
8249 (alpha_setup_arbitrary_frame): ...to this.
8250 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
8251 for alpha_setup_arbitrary_frame.
8252
8253 2002-04-18 Andrew Cagney <cagney@redhat.com>
8254
8255 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
8256 * gdbarch.h, gdbarch.c: Regenerate.
8257
8258 * defs.h (breakpoint_from_pc_fn): Delete type definition.
8259 * target.h (memory_breakpoint_from_pc): Update declaration.
8260 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
8261
8262 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
8263 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
8264 * mem-break.c (memory_breakpoint_from_pc): Ditto.
8265 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
8266 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
8267 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
8268 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
8269 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
8270 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
8271 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
8272 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
8273 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
8274
8275 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
8276 const pointer.
8277 * monitor.c (monitor_insert_breakpoint): Ditto.
8278 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
8279
8280 * config/mcore/tm-mcore.h: Update copyright.
8281 * mem-break.c: Ditto.
8282 * xstormy16-tdep.c: Ditto.
8283
8284 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
8285
8286 * p-exp.y: Add precedence rule for '^' token.
8287 This removes the shift/reduce conflicts.
8288 Remove the comment concerning these shift/reduce conflicts.
8289
8290 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
8291
8292 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
8293 (registers_powerpc_nofp): New register set for processors
8294 without floating point unit.
8295
8296 2002-04-18 David S. Miller <davem@redhat.com>
8297
8298 * MAINTAINERS: Add myself to write-after-approval.
8299
8300 2002-04-17 Michael Snyder <msnyder@redhat.com>
8301
8302 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
8303
8304 2002-04-17 Andrew Cagney <ac131313@redhat.com>
8305
8306 * rs6000-tdep.c (frame_initial_stack_address): Use
8307 frame_register_read to read the alloca_reg.
8308
8309 2002-04-17 Andrew Cagney <ac131313@redhat.com>
8310
8311 * frame.c (find_saved_register): Find saved registers in the next
8312 not prev frame.
8313 Fix PR gdb/365.
8314
8315 2002-04-17 Andrew Cagney <ac131313@redhat.com>
8316
8317 * gdbarch.sh (LANG): Set to ``c''.
8318
8319 2002-04-15 Andrew Cagney <ac131313@redhat.com>
8320
8321 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
8322
8323 2002-04-15 Andrew Cagney <ac131313@redhat.com>
8324
8325 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
8326 Update copyright.
8327
8328 * hpread.c (hpread_get_lntt): Add declaration.
8329 Also fix PR gdb/391.
8330
8331 2002-04-14 Andrew Cagney <ac131313@redhat.com>
8332
8333 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
8334 * aclocal.m4, configure: Re-generate.
8335 Fix PR gdb/391.
8336
8337 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
8338
8339 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
8340 instead of tm_print_insn.
8341
8342 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
8343
8344 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
8345
8346 2002-04-14 Andrew Cagney <ac131313@redhat.com>
8347
8348 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
8349 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
8350 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
8351
8352 2002-04-12 Don Howard <dhoward@redhat.com>
8353
8354 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
8355 max_user_call_depth.
8356 (init_cmd_lists): Initialize the new value;
8357 * cli/cli-script.c (execute_user_command): Limit the call depth of
8358 user defined commands. This avoids a core-dump when user commands
8359 are infinitly recursive.
8360
8361 2002-04-12 Kevin Buettner <kevinb@redhat.com>
8362
8363 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
8364 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
8365 from tdep struct instead of DEFAULT_LR_SAVE.
8366 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
8367 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
8368 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
8369
8370 2002-04-12 Michael Snyder <msnyder@redhat.com>
8371
8372 * Remote.c: Spelling fix.
8373 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
8374 If no symbol found for "sbrk", try "_sbrk".
8375 (make_output_phdrs): Use bfd_section_name.
8376 (gcore_copy_callback): Use bfd_section_name.
8377 * eval.c: Indentation fix-ups.
8378 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
8379 in case it gets applied to an address that is already
8380 in the instruction space.
8381 * cli/cli-decode.c (help_list): Allow long lines to wrap.
8382 * symfile.c: Fix indentation, long lines.
8383 * source.c: White space fix-up.
8384
8385 2002-04-12 Andrew Cagney <cagney@redhat.com>
8386
8387 * defs.h (read_relative_register_raw_bytes): Delete declaration.
8388 * frame.c (frame_register_read): New function. Return non-zero on
8389 success.
8390 (read_relative_register_raw_bytes_for_frame): Delete.
8391 (read_relative_register_raw_bytes): Delete.
8392 * frame.h (frame_register_read): Declare.
8393 * d30v-tdep.c: Update Copyright. Use frame_register_read.
8394 * sh-tdep.c: Ditto.
8395 * infcmd.c (do_registers_info): Ditto.
8396 * hppa-tdep.c: Ditto.
8397 * rs6000-tdep.c: Ditto.
8398 * h8500-tdep.c: Ditto.
8399 * mips-tdep.c: Ditto.
8400 * h8300-tdep.c: Ditto.
8401 * z8k-tdep.c: Ditto.
8402
8403 2002-04-12 Kevin Buettner <kevinb@redhat.com>
8404
8405 From Jimi X <jimix@watson.ibm.com>:
8406 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
8407 64-bit SysV ABI.
8408
8409 2002-04-12 Kevin Buettner <kevinb@redhat.com>
8410
8411 From Jimi X <jimix@watson.ibm.com>:
8412 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
8413 bfd info.
8414
8415 2002-04-12 Kevin Buettner <kevinb@redhat.com>
8416
8417 From Jimi X <jimix@watson.ibm.com>:
8418 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
8419 register sets for these processor variants.
8420
8421 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
8422
8423 * regformats/reg-ppc.dat: Support FPSCR.
8424
8425 2002-04-11 Kevin Buettner <kevinb@redhat.com>
8426
8427 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
8428 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
8429 Add fpscr as an invalid/unfetchable register.
8430 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
8431 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
8432 (fill_fpregset): Add support for register fpscr.
8433 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
8434 (fill_gregset): Account for the fact that register ``mq'' might
8435 not exist.
8436 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
8437 (registers_power): Add fpscr to register set at slot 71.
8438 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
8439 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
8440
8441 2002-04-11 Michael Snyder <msnyder@redhat.com>
8442
8443 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
8444 * configure: Regenerate.
8445 * config.in: Regenerate.
8446 * acconfig.h: Add define for _SYSCALL32.
8447 * core-sol2.c: Remove #define _SYSCALL32.
8448 * solib-legacy.c: Remove #define _SYSCALL32.
8449
8450 2002-04-10 Andrew Cagney <ac131313@redhat.com>
8451
8452 * stack.c (select_frame): Cleanup internal error message, do not
8453 use %p.
8454
8455 2002-04-10 Andrew Cagney <ac131313@redhat.com>
8456
8457 * stack.c (select_frame): Check that selected_frame and the
8458 specified level are as expected.
8459 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
8460 Update copyright.
8461 * frame.h (struct frame_info): Add field `level'. Update
8462 copyright.
8463 Work-in-progress PR gdb/464.
8464
8465 2002-04-10 Andrew Cagney <ac131313@redhat.com>
8466
8467 * maint.c (maint_print_section_info): Rename print_section_info.
8468 (print_bfd_section_info, print_objfile_section_info): Update.
8469 * inferior.h (struct gdbarch): Add opaque declaration.
8470 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
8471 * gdbarch.h: Regenerate.
8472
8473 2002-04-10 Michal Ludvig <mludvig@suse.cz>
8474
8475 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
8476 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
8477 (kernel_u_size): Added.
8478 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
8479 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
8480
8481 2002-04-04 Jim Ingham <jingham@apple.com>
8482
8483 * valarith.c (find_size_for_pointer_math): New function, either returns
8484 the size for a pointer's target, returns 1 for void *, or errors for
8485 incomplete types.
8486 (value_add, value_sub): use find_size_for_pointer_math.
8487
8488 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
8489
8490 * linux-low.c (linux_look_up_symbols): New hook.
8491 (linux_target_ops): Add linux_look_up_symbols.
8492 * remote-utils.c (decode_address): New function.
8493 (look_up_one_symbol): New function.
8494 * server.c (handle_query): Call target look_up_symbols hook.
8495 * server.h (look_up_one_symbol): Add prototype.
8496 * target.h (struct target_ops): Add look_up_symbols hook.
8497
8498 2002-04-09 Andrew Cagney <ac131313@redhat.com>
8499
8500 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
8501 override FP_REGNUM with frame->fp. Update copyright.
8502 * parse.c (num_std_regs, std_regs): Delete.
8503 (target_map_name_to_register): Do not search std_regs. Update
8504 function description.
8505 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
8506 declarations. Update copyright.
8507 Fix PR gdb/251.
8508
8509 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
8510
8511 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
8512 after the last symbol in a block.
8513
8514 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
8515
8516 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
8517 is non zero as a found symbol.
8518
8519 2002-04-08 Andrew Cagney <ac131313@redhat.com>
8520
8521 * findvar.c: Include "builtin-regs.h".
8522 (value_of_register): Call value_of_builtin_reg when applicable.
8523 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
8524 (target_map_name_to_register): Call
8525 builtin_reg_map_name_to_regnum.
8526 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
8527 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
8528 (builtin_regs_h): Define.
8529 (builtin-regs.o): New target.
8530 (findvar.o): Add $(builtin_regs_h).
8531 * builtin-regs.c, builtin-regs.h: New files.
8532 * std-regs.c: New file.
8533 Partial fix for PR gdb/251.
8534
8535 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8536
8537 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
8538 it's no longer required.
8539
8540 2002-04-08 Andrew Cagney <ac131313@redhat.com>
8541
8542 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
8543
8544 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8545
8546 From Jimi X <jimix@watson.ibm.com>:
8547 * rs6000-tdep.c (rs6000_software_single_step): Use
8548 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
8549 and size. Use target_insert_breakpoint() and
8550 target_remove_breakpoint() to insert and remove breakpoints
8551 instead of explicit memory reads and writes.
8552
8553 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8554
8555 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
8556 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
8557 ELF_OBJECT_FORMAT ifdef.
8558
8559 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8560
8561 From Jimi X <jimix@watson.ibm.com>:
8562 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
8563
8564 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8565
8566 From Jimi X <jimix@watson.ibm.com>:
8567 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
8568 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
8569
8570 2002-04-07 Mark Kettenis <kettenis@gnu.org>
8571
8572 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
8573 s/asprintf/xasprintf/.
8574 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
8575
8576 2002-04-07 Andrew Cagney <ac131313@redhat.com>
8577
8578 I believe Jeff Law denies responsability for this one:
8579 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
8580 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
8581 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
8582 Work-around for PR gdb/366.
8583
8584 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
8585
8586 * remote-e7000.c (write_small, e7000_read_inferior_memory,
8587 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
8588 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
8589
8590 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
8591
8592 * sh-tdep.c (sh_fp_frame_init_saved_regs,
8593 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
8594 information.
8595
8596 2002-04-07 Andrew Cagney <ac131313@redhat.com>
8597
8598 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
8599 maintainer.
8600
8601 2002-04-07 Andrew Cagney <ac131313@redhat.com>
8602
8603 * README (Reporting Bugs in GDB): Document the bug web page as the
8604 prefered way of submitting bugs.
8605 Fix PR gdb/402.
8606
8607 2002-04-06 Andrew Cagney <ac131313@redhat.com>
8608
8609 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
8610 -1. Update comment.
8611 * gdbarch.h, gdbarch.c: Re-generate.
8612
8613 2002-04-07 Andreas Schwab <schwab@suse.de>
8614
8615 * m68klinux-nat.c (fill_fpregset): Properly pass address of
8616 buffer to regcache_collect.
8617
8618 2002-04-06 Andrew Cagney <ac131313@redhat.com>
8619
8620 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
8621 * gdbarch.c, gdbarch.h: Re-generate.
8622
8623 2002-04-06 Andrew Cagney <ac131313@redhat.com>
8624
8625 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
8626 declaration. Fix -Werror.
8627
8628 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
8629
8630 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
8631 * gdbarch.c: Regenerate.
8632
8633 2002-04-05 Michael Snyder <msnyder@redhat.com>
8634
8635 * breakpoint.c (clear_command): Rewrite middle section to
8636 combine two loops with identical control conditions.
8637 Add a cleanup to eliminate a memory leak.
8638 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
8639
8640 2002-04-05 H.J. Lu (hjl@gnu.org)
8641
8642 * solib-svr4.c (bkpt_names): Add "__start".
8643
8644 2002-04-04 Andrew Cagney <ac131313@redhat.com>
8645
8646 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
8647 as test for 64 bit target.
8648
8649 2002-04-05 Andrew Cagney <ac131313@redhat.com>
8650
8651 * h8500-tdep.c (h8500_write_fp): Delete function.
8652 * dwarf2cfi.c (cfi_write_fp): Document as not used.
8653 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
8654 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
8655 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
8656 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
8657 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
8658 (s390_write_fp):
8659 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
8660 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
8661 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
8662 (d10v_write_fp): Delete function.
8663 * inferior.h (write_fp, generic_target_write_fp): Delete
8664 declarations.
8665 * regcache.c (generic_target_write_fp): Delete function.
8666 (write_fp): Delete function.
8667 * gdbarch.sh (TARGET_WRITE_FP): Delete.
8668 * gdbarch.h, gdbarch.c: Regenerate.
8669 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
8670 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
8671 (sparc64_write_fp): Delete declaration.
8672 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
8673 (h8500_write_fp): Delete declaration.
8674
8675 2002-04-04 Andrew Cagney <ac131313@redhat.com>
8676
8677 * sparc-tdep.c (sparc64_write_fp): Delete.
8678 (sparc_push_dummy_frame): Replace write_fp call with code to store
8679 the FP directly.
8680 (sparc_gdbarch_init): Do not initialize write_fp.
8681
8682 2002-04-05 Kevin Buettner <kevinb@redhat.com>
8683
8684 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
8685 clause.
8686
8687 2002-03-29 Jim Blandy <jimb@redhat.com>
8688
8689 * stack.c (get_selected_block): Add new argument `addr_in_block',
8690 used to return the exact code address we used to select the block,
8691 not just the block.
8692 * blockframe.c (get_frame_block, get_current_block): Same.
8693 * frame.h (get_frame_block, get_current_block,
8694 get_selected_block): Update declarations.
8695 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
8696 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
8697
8698 2002-04-05 Michael Snyder <msnyder@redhat.com>
8699
8700 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
8701 warning message.
8702
8703 2002-04-05 J. Brobecker <brobecker@gnat.com>
8704
8705 * utils.c (xfullpath): New function.
8706 * defs.h (xfullpath): Add declaration.
8707 * source.c (openp): Use xfullpath in place of gdb_realpath to
8708 avoid resolving the basename part of filenames when the
8709 associated file is a symbolic link. This fixes a potential
8710 inconsistency between the filenames known to GDB and the
8711 filenames it prints in the annotations.
8712 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
8713 to be able to match a filename with either the real filename, or
8714 the name of any symbolic link to this file.
8715 (lookup_partial_symtab): Ditto.
8716
8717 2002-04-04 Michael Snyder <msnyder@redhat.com>
8718
8719 * breakpoint.c: Add support for hardware breakpoints in overlays.
8720 (overlay_events_enabled): New state variable.
8721 (insert_breakpoints): Use overlay_events_enabled to decide
8722 whether to attempt to set a breakpoint at the overlay load addr.
8723 Handle bp_hardware_breakpoint as well as bp_breakpoint.
8724 (remove_breakpoint): Use overlay_events_enabled to decide
8725 whether breakpoints need to be removed from overlay load addr.
8726 Handle bp_hardware_breakpoint as well as bp_breakpoint.
8727 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
8728 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
8729 disable_overlay_breakpoints): Update overlay_events_enabled.
8730
8731 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
8732
8733 * dwarf2read.c (struct function_range): New.
8734 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
8735 (check_cu_functions): New.
8736 (read_file_scope): Initialize global function lists.
8737 Call dwarf_decode_line after processing children.
8738 (read_func_scope): Add to global function list.
8739 (dwarf_decode_lines): Call check_cu_functions everywhere
8740 record_line is called. Call record_line with a linenumber
8741 of 0 to mark sequence ends.
8742
8743 2002-04-04 Michal Ludvig <mludvig@suse.cz>
8744
8745 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
8746 change sync with glibc.
8747
8748 2002-04-03 Jim Blandy <jimb@redhat.com>
8749
8750 * configure.in: Call AC_C_INLINE.
8751 * configure: Regenerated.
8752
8753 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
8754
8755 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
8756 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
8757
8758 2002-03-31 Mark Kettenis <kettenis@gnu.org>
8759
8760 * NEWS: Mention gcore support on FreeBSD/i386.
8761
8762 * fbsd-proc.c: New file.
8763 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
8764 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
8765
8766 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
8767 while statement.
8768
8769 2002-03-29 Jim Blandy <jimb@redhat.com>
8770
8771 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
8772 unescaped newlines in string literals, but newer ones don't. So
8773 escape them.
8774
8775 2002-03-26 Michael Snyder <msnyder@redhat.com>
8776 Andrew Cagney <cagney@redhat.com>
8777
8778 * cli/cli-dump.c: New file. Dump memory to file,
8779 restore file to memory.
8780 * cli/cli-dump.h: New file.
8781 * Makefile.in: Add rules, dependencies for cli-dump.o.
8782 * NEWS: Mention new commands.
8783
8784 2002-03-28 Michael Snyder <msnyder@redhat.com>
8785
8786 * symfile.c (symbol_file_add): Move test for null symbols to later.
8787
8788 2002-03-27 Andrew Cagney <ac131313@redhat.com>
8789
8790 From veksler at il.ibm.com:
8791 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
8792 the xstrduped original path.
8793 Fix PR gdb/417.
8794
8795 2002-03-27 Michael Snyder <msnyder@redhat.com>
8796
8797 * breakpoint.c (_initialize_breakpoint): Clean up help string.
8798 * infcmd.c (_initialize_infcmd): Ditto.
8799 * language.c (_initialize_language): Ditto.
8800 * symfile.c (_initialize_symfile): Ditto.
8801 * top.c (_init_main): Ditto.
8802 * cli/cli-cmds.c (init_cli_cmds): Ditto.
8803
8804 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
8805
8806 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
8807 vector registers handling.
8808 (skip_prologue): Handle new AltiVec instructions. Fill in new
8809 fields of frame data.
8810 (frame_get_saved_regs): Fill in information for AltiVec registers.
8811
8812 2002-03-27 Jim Blandy <jimb@redhat.com>
8813
8814 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
8815 a function; leave this macro here to invoke that function.
8816 (symbol_init_mangled_name): Declaration for that function.
8817 * symtab.c (symbol_init_mangled_name): New function.
8818
8819 2002-03-27 Andrew Cagney <ac131313@redhat.com>
8820
8821 * valarith.c: Replace strerror with safe_strerror.
8822 * tracepoint.c: Ditto.
8823 * lin-lwp.c: Ditto.
8824 * go32-nat.c: Ditto.
8825 * inflow.c: Ditto.
8826 * gnu-nat.c: Ditto.
8827
8828 2002-03-27 Andreas Schwab <schwab@suse.de>
8829
8830 * event-top.c (command_line_handler): Remove useless if.
8831
8832 2002-03-27 Andreas Jaeger <aj@suse.de>
8833
8834 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
8835 comment.
8836
8837 2002-03-27 Michal Ludvig <mludvig@suse.cz>
8838
8839 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
8840 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
8841 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
8842 (x86_64_linux_dr_get_status, supply_gregset),
8843 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
8844 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
8845 (x86_64_register_info_table): Add.
8846 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
8847 (x86_64_register_raw_size, x86_64_register_virtual_type),
8848 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
8849 general x86_64_register_info_table.
8850 (i386_gdbarch_init): gdbarch_register_bytes is now set
8851 dynamicaly during initialization.
8852 * regformats/reg-x86-64.dat: Synced with changes to registers above.
8853 * gdbserver/linux-x86-64-low.c: Ditto.
8854
8855 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
8856
8857 * gdbserver/server.c (main): Call target_signal_to_host_p
8858 and target_signal_to_host on signals received from the remote.
8859 * gdbserver/remote-utils.c (prepare_resume_reply): Call
8860 target_signal_from_host on signals sent to the remote.
8861 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
8862 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
8863
8864 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
8865
8866 * signals/signals.c: Include "server.h" in gdbserver build.
8867 (target_signal_from_name): Don't use STREQ.
8868 (_initialize_signals): Likewise. Don't include function in
8869 gdbserver build.
8870
8871 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
8872
8873 * signals.c: Moved to...
8874 * signals/signals.c: Here.
8875 * Makefile (signals.o): Update.
8876
8877 2002-03-26 Jeff Law (law@redhat.com)
8878
8879 * somread.c (som_symtab_read): Remove some commented out code and
8880 updated related comments. Do not set the minimal symbol table to
8881 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
8882 in a dynamic executable.
8883 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
8884 where we are unable to find the minimal symbol for the given
8885 PC value.
8886
8887 2002-03-25 Jeff Law (law@redhat.com)
8888
8889 * linux-proc.c (read_mapping): Scan up to end of line for filename.
8890
8891 2002-03-25 Michal Ludvig <mludvig@suse.cz>
8892
8893 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
8894
8895 2002-03-23 Andrew Cagney <ac131313@redhat.com>
8896
8897 * command.h: Update copyright.
8898 (struct cmd_list_element): Replace definition with opaque
8899 declaration.
8900 (enum cmd_types): Document that it will eventually be moved to
8901 cli/cli-decode.h
8902 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
8903 (MALLOCED_REPLACEMENT): Delete macro.
8904 * Makefile.in (cli_decode_h): Add $(command_h).
8905 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
8906 * top.c: Include "cli/cli-decode.h".
8907 * completer.c: Include "cli/cli-decode.h".
8908 * maint.c: Include "cli/cli-decode.h".
8909 * cli/cli-decode.h: Include "command.h".
8910 (enum command_class): Delete.
8911 (enum cmd_types): Comment out.
8912 (enum cmd_auto_boolean): Delete.
8913 (enum var_types): Delete.
8914
8915 2002-03-23 Andrew Cagney <ac131313@redhat.com>
8916
8917 * cli/cli-decode.c: Include "gdb_assert.h".
8918 (add_set_or_show_cmd): New static function.
8919 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
8920 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
8921 all fields, such as func, from the set command.
8922
8923 2002-03-23 Andrew Cagney <ac131313@redhat.com>
8924
8925 * MAINTAINERS (sh-elf): Change warning flag to -w.
8926
8927 2002-03-23 Andrew Cagney <cagney@redhat.com>
8928
8929 * defs.h (error): Add printf format attribute.
8930 * thread-db.c (thread_from_lwp): Fix error format string.
8931 * stack.c (parse_frame_specification): Ditto.
8932 * cli/cli-decode.c (undef_cmd_error): Ditto.
8933 * scm-lang.c (scm_lookup_name): Ditto.
8934 * tracepoint.c (trace_error): Ditto.
8935 * remote-utils.c (usage): Ditto.
8936 * remote.c (compare_sections_command): Ditto.
8937 Fix PR gdb/328.
8938
8939 2002-03-22 Andrew Cagney <ac131313@redhat.com>
8940
8941 * gdbtypes.c (append_composite_type_field): New function.
8942 (init_composite_type): New function.
8943 * gdbtypes.h (append_composite_type_field): Declare.
8944 (init_composite_type): Ditto.
8945
8946 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
8947
8948 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
8949 function.
8950 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
8951 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
8952 structure returning convention for SYSV ABI case, but not
8953 for GNU/Linux, FreeBSD, or NetBSD.
8954
8955 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
8956
8957 * symtab.h (lookup_block_symbol): Add mangled_name argument
8958 to prototype.
8959
8960 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
8961 with new mangled_name argument.
8962 * linespec.c (decode_line_1): Likewise.
8963 * valops (value_of_this): Likewise.
8964 * symtab.c (lookup_transparent_type): Likewise.
8965 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
8966 (lookup_symbol): If we are given a mangled name, pass it down
8967 to lookup_symbol_aux.
8968 (lookup_block_symbol): If we are given a mangled name to check
8969 against, only return symbols which match it.
8970
8971 2002-03-22 Christopher Faylor <cgf@redhat.com>
8972
8973 * win32-nat.c (child_create_inferior): Check for proper shell to use
8974 here, in case the user changes it on the fly.
8975 (_initialize_inftarg): Remove shell path considerations.
8976
8977 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
8978
8979 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
8980 for gdbarch_max_register_raw_size and max_register_virtual_size.
8981 Adjust copyright year.
8982
8983 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
8984
8985 * dbxread.c (process_one_symbol): Extend the first N_SLINE
8986 in a function to cover the entire beginning of the function
8987 as well if it does not already.
8988
8989 2002-03-21 Tom Rix <trix@redhat.com>
8990
8991 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
8992 (rs6000_ptrace64): Renamed from ptrace64.
8993
8994 2002-03-20 Martin M. Hunt <hunt@redhat.com>
8995
8996 * gdbserver/remote-utils.c (remote_open): Don't call
8997 getprotobyname, we're all using TCP here so just use
8998 IPPROTO_TCP.
8999 * gdbserver/gdbreplay.c (remote_open): Ditto.
9000
9001 2002-03-20 Martin M. Hunt <hunt@redhat.com>
9002
9003 * regcache.c (_initialize_regcache): No need to call
9004 build_regcache() at this time; it gets called whenever
9005 the gdbarch changes.
9006
9007 2002-03-20 David O'Brien <obrien@FreeBSD.org>
9008
9009 * sparc-nat.c: Include sys/param.h where possible.
9010
9011 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
9012
9013 Fix PR gdb/422.
9014 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
9015 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
9016 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
9017 complex types.
9018 * stabsread.c (rs6000_builtin_type): Likewise.
9019 (read_sun_floating_type): Likewise.
9020
9021 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9022
9023 * stabsread.c (read_member_functions): Remove skip code for duplicate
9024 constructor/destructor methods. Use standard parsing for these
9025 methods and just do not chain them to the list of methods after
9026 parsing.
9027
9028 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
9029
9030 * coffread.c: Remove redundant static declarations. Replace
9031 occurrences of `PTR' with `void *'.
9032 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
9033 * top.h (quit_cover): Likewise.
9034 * defs.h (catch_errors): Likewise.
9035
9036 2002-03-18 Andrew Cagney <ac131313@redhat.com>
9037
9038 * defs.h (XMALLOC): Define.
9039 * gdb-events.sh (XMALLOC): Delete macro.
9040 * gdb-events.c, gdb-events.h: Regenerate.
9041 * gdbarch.sh (XMALLOC): Delete macro.
9042 * gdbarch.c: Regenerate.
9043 * serial.c (XMALLOC): Delete macro.
9044 * ui-file.c (XMALLOC): Ditto.
9045 * ser-unix.h (XMALLOC): Ditto.
9046 * sh-tdep.c (XMALLOC): Ditto.
9047 * ui-out.c (XMALLOC): Ditto.
9048 * utils.c (XMALLOC): Ditto.
9049 * i386-tdep.c (XMALLOC): Ditto.
9050 * gdb-events.c (XMALLOC): Ditto.
9051 * d10v-tdep.c (XMALLOC): Ditto.
9052 * cli-out.c (XMALLOC): Ditto.
9053
9054 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
9055 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
9056 * ui-file.c, ui-out.c: Ditto.
9057
9058 2002-03-18 Andrew Cagney <ac131313@redhat.com>
9059
9060 * command.h (struct cmd_list_element): Add field context.
9061 (set_cmd_context, get_cmd_context): Declare.
9062 * cli/cli-decode.h: Ditto.
9063 * cli/cli-decode.c (get_cmd_context): New function.
9064 (set_cmd_context): New function.
9065 (add_cmd): Initialize context.
9066 Part of fixing PR gdb/145 and PR gdb/146.
9067
9068 2002-03-17 Andrew Cagney <ac131313@redhat.com>
9069
9070 * cli/cli-decode.c (cmd_type): New function.
9071 * command.h (cmd_type): Declare.
9072 * infrun.c (set_schedlock_func): Call function cmd_type.
9073 * kod.c (kod_set_os): Call cmd_type.
9074 * cris-tdep.c (cris_version_update): Use function cmd_type.
9075 (cris_mode_update, cris_abi_update): Ditto.
9076
9077 * command.h: (execute_cmd_post_hook): Declare.
9078 (execute_cmd_pre_hook): Declare.
9079 * cli/cli-script.c (clear_hook_in_cleanup): New function.
9080 (execute_cmd_post_hook, execute_cmd_pre_hook): New
9081 functions. Execute pre/post hook while ensuring that afterwords
9082 hook_in is cleared.
9083 * top.c (execute_command): Use execute_cmd_post_hook, and
9084 execute_cmd_pre_hook to execute pre/post commands.
9085 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
9086 hook_stop_stub.
9087 (hook_stop_stub): Call execute_cmd_pre_hook.
9088
9089 2002-03-17 Andrew Cagney <ac131313@redhat.com>
9090
9091 * kod.c (kod_set_os): Revert previous change. Is called by ``info
9092 set'' and this leads to a core dump. Move xstrdup of
9093 operating_system to after check that it is not NULL.
9094
9095 2002-03-17 Andrew Cagney <ac131313@redhat.com>
9096
9097 * kod.c (kod_set_os): Remove unnecessary check that
9098 ``command->type'' is set_cmd.
9099
9100 * valprint.c (set_input_radix): Use input_radix.
9101 (set_output_radix): Use output_radix.
9102 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
9103 isn't reverted.
9104
9105 2002-03-16 Andrew Cagney <ac131313@redhat.com>
9106
9107 * value.h (struct value): Delete field ``substring_addr''. Change
9108 aligner fields to force_doublest_align, force_longest_align,
9109 force_core_addr_align and force_pointer_aligh.
9110
9111 * value.h (struct value): Fix typo in above change.
9112
9113 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9114
9115 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
9116 to fix internal_error from ``maintenance print architecture''.
9117
9118 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9119
9120 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
9121 for gcc versions after gcc-2.8.1.
9122
9123 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9124
9125 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
9126 for method resolution. Restore adjustment of ``this'' pointer after
9127 calling value_struct_elt, which was accidentally removed during the
9128 HP merge.
9129
9130 2002-03-15 Andrew Cagney <ac131313@redhat.com>
9131
9132 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
9133 value_of_register.
9134 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
9135 get_saved_register.
9136 * value.h (value_of_register): Update.
9137
9138 2002-03-14 Richard Henderson <rth@redhat.com>
9139
9140 * configure.in: Detect declaration for canonicalize_file_name.
9141 * utils.c (canonicalize_file_name): Declare, if needed.
9142 (gdb_realpath): Prefer realpath if available and usable.
9143 * config.in, configure: Rebuild.
9144
9145 2002-03-14 Richard Henderson <rth@redhat.com>
9146
9147 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
9148 a constant array bound.
9149
9150 * MAINTAINERS: Add myself to write-after-approval.
9151
9152 2002-03-14 Michael Snyder <msnyder@redhat.com>
9153
9154 * symfile.c (syms_from_objfile): Return immediately if no syms.
9155 (symbol_file_add): Return immediately if no syms.
9156 (find_sym_fns): Return immediately if no syms.
9157
9158 2002-03-13 Michal Ludvig <mludvig@suse.cz>
9159
9160 * gdbserver/remote-util.c (remote_open): Print remote-side's
9161 IP address when remote debugging over the network.
9162
9163 2002-03-12 David O'Brien <obrien@FreeBSD.org>
9164
9165 * config/sparc/fbsd.mh: Fix copyright.
9166 * config/sparc/fbsd.mt: Likewise.
9167
9168 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
9169
9170 * MAINTAINERS: Fix typo in name of gdb warnings option.
9171 (x86-64): Fix formating so that this can be parsed by awk.
9172
9173 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
9174
9175 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
9176 * defs.h: Include "gdb/signals.h".
9177 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
9178
9179 2002-03-10 Michal Ludvig <mludvig@suse.cz>
9180
9181 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
9182 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
9183 from x86-64-tdep.h
9184
9185 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
9186 Don Howard <dhoward@redhat.com>
9187
9188 * mips-tdep.c (ST0_FR): Define.
9189 (mips2_fp_compat): New function, temporarily disabled.
9190 (mips_read_fp_register_single): New function.
9191 (mips_read_fp_register_double): New function.
9192 (mips_print_register): Use them.
9193 (do_fp_register_row): Likewise.
9194
9195 2002-03-09 Andrew Cagney <ac131313@redhat.com>
9196
9197 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
9198 approval''.
9199
9200 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9201
9202 * stabsread.c (read_member_functions): Fix is_stub test for
9203 static member functions, improve comment.
9204
9205 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
9206
9207 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
9208 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
9209 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
9210 commands that set boolean values.
9211 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
9212 (arm_rdi_resume): Always initialize PC.
9213 (arm_rdi_open): Don't use rslt as a boolean.
9214 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
9215 (arm_rdi_fetch_registers, arm_rdi_store_registers)
9216 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
9217 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
9218
9219 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
9220
9221 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
9222 * configure: Rebuilt.
9223
9224 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9225
9226 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
9227 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
9228
9229 2002-03-06 Andrew Cagney <ac131313@redhat.com>
9230
9231 * cli/cli-decode.c (set_cmd_completer): New function.
9232 * command.h (set_cmd_completer): Declare.
9233 * cli/cli-decode.h (set_cmd_completer): Ditto.
9234
9235 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
9236 * cli/cli-cmds.c (init_cli_cmds): Ditto.
9237 * win32-nat.c (_initialize_inftarg): Ditto.
9238 * remote-rdi.c (_initialize_remote_rdi): Ditto.
9239 * proc-api.c (_initialize_proc_api): Ditto.
9240 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
9241 * source.c (_initialize_source): Ditto.
9242 * exec.c (_initialize_exec): Ditto.
9243 * solib.c (_initialize_solib): Ditto.
9244 * top.c (init_main): Ditto.
9245 * tracepoint.c (_initialize_tracepoint): Ditto.
9246 * symfile.c (_initialize_symfile): Ditto.
9247 * printcmd.c (_initialize_printcmd): Ditto.
9248 * infcmd.c (_initialize_infcmd): Ditto.
9249 * corefile.c (_initialize_core): Ditto.
9250
9251 2002-03-05 Andrew Cagney <ac131313@redhat.com>
9252
9253 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
9254
9255 2002-03-05 Andrew Cagney <ac131313@redhat.com>
9256
9257 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
9258
9259 2002-03-05 Andrew Cagney <ac131313@redhat.com>
9260
9261 * NEWS: Update headings, 5.2 has branched.
9262
9263 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
9264
9265 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
9266 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
9267 (register_addr, REGISTER_RAW_SIZE): Likewise.
9268 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
9269 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
9270
9271 2002-03-03 Michal Ludvig <mludvig@suse.cz>
9272
9273 * MAINTAINERS (x86-64): Add myself.
9274 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
9275 changed value_ptr -> struct value *
9276
9277 2002-03-01 David O'Brien <obrien@FreeBSD.org>
9278
9279 * configure.host (sparc64-*-freebsd): Add.
9280 * configure.tgt: Likewise.
9281 * config/sparc/fbsd.mh: New file.
9282 * config/sparc/fbsd.mt: Likewise.
9283 * config/sparc/nm-fbsd.h: Likewise.
9284 * config/sparc/tm-fbsd.h: Likewise.
9285
9286 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
9287
9288 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
9289 regformats/reg-s390x.dat.
9290
9291 2002-03-01 Andrew Cagney <ac131313@redhat.com>
9292
9293 * utils.c: Add FIXME explaining true/false problem.
9294
9295 2002-02-28 Andrew Cagney <ac131313@redhat.com>
9296
9297 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
9298
9299 2002-02-28 Michael Chastain <mec@shout.net>
9300
9301 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
9302
9303 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
9304
9305 * gdbserver/linux-s390-low.c: New file.
9306 * regformats/reg-s390.dat: New file.
9307 * regformats/reg-s390x.dat: New file.
9308 * gdbserver/configure.srv: Add S/390.
9309 * gdbserver/Makefile.in: Add S/390.
9310 * configure.tgt: Enable gdbserver for S/390.
9311
9312 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
9313
9314 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
9315 first line of the doc string for "info dos", except at the end of
9316 the sentence, since the short help stops at the first period.
9317
9318 2002-02-28 Jason Merrill <jason@redhat.com>
9319
9320 * dwarf2read.c (dwarf_cfi_name): Add new codes.
9321
9322 2002-02-27 Fred Fish <fnf@redhat.com>
9323
9324 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
9325 comment (dumy -> dummy).
9326
9327 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9328
9329 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
9330
9331 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
9332
9333 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
9334
9335 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
9336
9337 * gdbserver/acconfig.h: New file.
9338 * gdbserver/i387-fp.c: New file.
9339 * gdbserver/i387-fp.h: New file.
9340 * gdbserver/linux-x86-64.c: New file.
9341 * regformats/reg-x86-64.dat: New file.
9342 * configure.tgt: Add x86_64-*-linux* gdbserver support.
9343 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
9344 * gdbserver/configure.in: Add support for regsets.
9345 * gdbserver/config.in: Regenerate.
9346 * gdbserver/configure: Regenerate.
9347 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
9348 * gdbserver/linux-low.h: New file.
9349 * gdbserver/linux-low.c: Include "linux-low.h". Add support
9350 for regsets.
9351 * gdbserver/linux-arm-low.c: Include "linux-low.h".
9352 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
9353 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
9354 * gdbserver/linux-mips-low.c: Include "linux-low.h".
9355 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
9356 * gdbserver/linux-sh-low.c: Include "linux-low.h".
9357 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
9358 "i387-fp.h". Add PTRACE_GETREGS and friends.
9359 * gdbserver/regcache.c (supply_register): New function.
9360 (supply_register_by_name): New function.
9361 (collect_register): New function.
9362 (collect_register_by_name): New function.
9363
9364 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
9365
9366 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
9367 (config.status): Add configure.srv dependency.
9368 (server_h): Add config.h dependency.
9369
9370 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
9371
9372 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
9373 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
9374 * gdbserver/configure.srv: Change i386-*-linux* to use
9375 reg-i386-linux.o.
9376
9377 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9378
9379 * x86-64-tdep.c: Re-indent. Update copyright date.
9380
9381 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9382
9383 From Michal Ludvig <mludvig@suse.cz>:
9384 * x86-64-tdep.c (value.h): Delete.
9385 (gdb_assert.h): Include.
9386 (x86_64_register_convert_to_virtual,
9387 x86_64_register_convert_to_raw ): Add check which lets only
9388 floating-point values to be converted.
9389 (value_push): Delete.
9390 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
9391 (i386_gdbarch_init): Number of register_bytes fixed.
9392
9393 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9394
9395 * MAINTAINERS: Add x86-64 target.
9396
9397 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9398
9399 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
9400 * osfsolib.c (solib_map_sections): Ditto.
9401 * irix5-nat.c (solib_map_sections): Ditto.
9402 * corelow.c (gdb_check_format): Ditto.
9403 * symfile.c (symfile_bfd_open): Ditto.
9404 * solib.c (solib_map_sections): Ditto.
9405 Fix PR gdb/354.
9406
9407 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9408
9409 * remote.c (_initialize_remote): By default, disable ``e'' and
9410 ``E'' step out-of-range packets.
9411
9412 2002-02-26 Andreas Schwab <schwab@suse.de>
9413
9414 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
9415 m68k_linux_frame_saved_pc.
9416 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
9417 in_sigtramp.
9418 (SIGCONTEXT_PC_OFFSET): Remove.
9419 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
9420 m68k_linux_sigtramp_saved_pc): New functions.
9421 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
9422 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
9423 (UCONTEXT_PC_OFFSET): Define.
9424 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
9425 non-RT and RT signal trampolines.
9426
9427 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
9428
9429 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
9430 (TARGET_NBPG, STACK_END_ADDR): Delete
9431 (VARIABLES_INSIDE_BLOCK): Delete.
9432
9433 2002-02-25 Andrew Cagney <ac131313@redhat.com>
9434
9435 * utils.c (perror_with_name): Make string parameter constant.
9436 (print_sys_errmsg): Ditto.
9437 (query): Ditto.
9438 * defs.h (perror_with_name): Update.
9439 (print_sys_errmsg): Update.
9440 (query): Update.
9441
9442 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
9443
9444 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
9445 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
9446
9447 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9448
9449 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
9450 if it already matches the current architecture from the exec file.
9451 Include arch-utils.h for gdbarch_info_init prototype.
9452 * Makefile.in (rs6000-nat.o): Update dependencies.
9453
9454 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
9455
9456 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
9457 list of exported variables.
9458
9459 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
9460
9461 * gdbserver/configure.srv: New file.
9462 * gdbserver/configure.in: Use configure.srv instead
9463 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
9464 from it.
9465 * gdbserver/configure: Regenerated.
9466 * gdbserver/terminal.h: New file.
9467 * gdbserver/Makefile.in: Update for configure changes. Remove
9468 more unneeded include paths.
9469
9470 2002-02-24 Andrew Cagney <ac131313@redhat.com>
9471
9472 From wiz at danbala:
9473 * config/sparc/tm-sp64.h: Fix grammar and typos.
9474 Fix PR gdb/287.
9475
9476 2002-02-24 Andrew Cagney <ac131313@redhat.com>
9477
9478 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
9479 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
9480 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
9481 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
9482 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
9483 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
9484 * s390-tdep.c: Ditto.
9485 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
9486 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
9487 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
9488 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
9489 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
9490 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
9491 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
9492 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
9493 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
9494 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
9495 Fix PR gdb/378.
9496
9497 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9498
9499 * lin-thread.c: Delete file.
9500 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
9501 to gdb_proc_service.h.
9502 * configure: Re-generate.
9503
9504 * ocd.c (ocd_open): Do not try to open the "ocd" device.
9505 * serial.c (serial_open): Delete check for "ocd".
9506 Fix PR gdb/349.
9507
9508 * Makefile.in (linux-thread.o): Delete target.
9509 * linux-thread.c: Delete file.
9510
9511 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
9512 renamed SH files to be consistent.
9513
9514 * symtab.c (sort_search_symbols): Use xfree.
9515
9516 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
9517
9518 * arm-linux-tdep.c (arm_linux_init_abi): Register
9519 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
9520 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
9521 definition with undef, since we don't want the sysvr4 definition.
9522 (SKIP_TRAMPOLINE_CODE): Likewise.
9523
9524 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9525
9526 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
9527
9528 * configure.in: (AC_CHECK_FUNCS) Added test for
9529 canonicalize_file_name Regenerated.
9530 * config.in, configure: Regenerated.
9531 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
9532 defined use canonicalize_file_name.
9533
9534 2002-02-23 Michael Chastain <mec@shout.net>
9535
9536 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
9537
9538 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9539
9540 * README: Remove references to cygnus.com.
9541 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
9542 dot com'' form. Remove references to cygnus.com and sourceware.
9543
9544 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9545
9546 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
9547 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
9548 1003.1-2001 no longer allows "head -1".
9549 * gdb/Makefile.in (version.c): Likewise.
9550 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
9551 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
9552 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
9553
9554 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9555
9556 * cli/cli-decode.c (cmd_cfunc_eq): New function.
9557 * command.h (cmd_cfunc_eq): Declare.
9558 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
9559
9560 * cli/cli-cmds.h (is_complete_command): Change parameter to a
9561 ``struct cmd_list_element *''.
9562 * cli/cli-cmds.c (is_complete_command): Update. Use
9563 cmd_cfunc_eq.
9564 * top.c (execute_command): Pass the command to
9565 is_complete_command.
9566 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
9567
9568 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9569
9570 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
9571 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
9572 architecture defines.
9573 * s390-tdep.c (s390_gdbarch_init): Likewise.
9574
9575 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
9576
9577 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
9578 (arm_linux_push_arguments): Likewise.
9579 (arm_linux_init_abi): Register them. Also register linux-specific
9580 call_dummy_words.
9581 (find_minsym_and_objfile): Use strcmp, not STREQ.
9582 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
9583 (arm_linux_call_dummy_words): Delete declaration.
9584 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
9585 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
9586 declarations.
9587 (LOWEST_PC): Delete.
9588
9589 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9590
9591 * maint.c (print_section_info): Do not prepend `0x' to filepos
9592 output, it will be handled by local_hex_string_custom.
9593
9594 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
9595
9596 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
9597 (store_newfpe_double, store_newfpe_extended, store_fpregister)
9598 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
9599
9600 2002-02-22 Jim Blandy <jimb@redhat.com>
9601
9602 Indicate that the bcache functions don't change the strings
9603 they're passed.
9604 * bcache.h (bcache, hash): Add `const' keywords to declarations.
9605 * bcache.c (bcache, hash): Add `const' keywords to definitions.
9606
9607 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
9608
9609 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
9610
9611 2002-02-21 Christopher Faylor <cgf@redhat.com>
9612
9613 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
9614 find the complete path to a loaded DLL.
9615
9616 2002-02-21 Fred Fish <fnf@redhat.com>
9617
9618 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
9619 that marks the end of the range of a function, enter a line number
9620 entry that has a line number of zero and a PC offset that matches
9621 the end of the function. This starts a range of PC's for which no
9622 line number information is known.
9623 * symtab.c (find_pc_sect_line): If our best fit is in a range of
9624 PC's for which no line number info is found (line number is zero)
9625 then we didn't find any valid line information.
9626 * symtab.h: Document use of zero line number entry.
9627
9628 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
9629
9630 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
9631 (have_ptrace_getvrregs): Define for run time checks.
9632 (gdb_vrregset_t): New type for Altivec register handling.
9633 (fetch_register, store_register): Fetch/store altivec register
9634 when needed.
9635 (fetch_altivec_register, store_altivec_register): New functions.
9636 (supply_vrregset, fill_vrregset): New functions.
9637 (fetch_altivec_registers, store_altivec_registers): New functions.
9638 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
9639 registers as well.
9640
9641 2002-02-21 Jiri Smid <smid@suse.cz>
9642
9643 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
9644
9645 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
9646
9647 * Makefile.in (armnbsd-nat.o): Update dependencies.
9648 * armnbsd-nat.c (supply_gregset): New function. Common code to
9649 supply the integer register set.
9650 (supply_fparegset): New function. Similar for FPA registers.
9651 (fetch_regs, fetch_fp_regs): Use them.
9652 (fetch_core_registers): Likewise.
9653 (fetch_elfcore_registers): New function.
9654 (arm_netbsd_elfcore_fns): New core-file type specification.
9655 (_initialize_arm_netbsd_nat): Register it.
9656
9657 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
9658
9659 * armnbsd-nat.c: Include gdbcore.h.
9660 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
9661 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
9662 'void' to declaration, to shut up ARI.
9663 (fetch_core_registers): Make static. Rewrite using supply_register.
9664 (arm_netbsd_core_fns): New core-file type specification.
9665 (_initialize_arm_netbsd_nat): New function.
9666
9667 2002-02-21 Christopher Faylor <cgf@redhat.com>
9668
9669 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
9670 value.
9671
9672 2002-02-20 Christopher Faylor <cgf@redhat.com>
9673
9674 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
9675 fails.
9676
9677 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9678
9679 * jv-exp.y (parse_number): Change type of implicit longs
9680 to builtin_type_uint64.
9681
9682 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9683
9684 * gdbserver/linux-low.c (mywait): Change argument to waitpid
9685 to be an integer instead of a `union wait'.
9686
9687 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9688
9689 * mips-linux-nat.c: Call the operating system GNU/Linux.
9690 * mips-linux-tdep.c: Likewise.
9691 * mips-tdep.c: Likewise.
9692
9693 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9694
9695 Fix PR gdb/265.
9696 * jv-exp.y (parse_number): Handle 64-bit integers.
9697
9698 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9699
9700 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
9701 AC_STDC_HEADERS to AC_HEADER_STDC.
9702 * gdbserver/configure: Regenerated.
9703
9704 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
9705
9706 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
9707 is defined.
9708 * sparc-tdep.c (get_longjmp_target): Likewise.
9709
9710 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
9711
9712 * News: Add news about ARM and Multi-arch. Mention the new target
9713 arm*-*-netbsd*.
9714
9715 2002-02-19 Jim Blandy <jimb@redhat.com>
9716
9717 * stabsread.c (error_type_complaint): Improve error message.
9718
9719 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
9720
9721 * gdbserver/README: Update documentation.
9722 * gdbserver/configure.in: Update configury to match documentation.
9723 * gdbserver/Makefile.in: Likewise.
9724 * gdbserver/configure: Regenerated.
9725 * gdbserver/aclocal.m4: New file, generated by aclocal.
9726 * gdbserver/config.in: New file, generated by autoheader.
9727
9728 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9729
9730 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
9731 armnbsd-nat.c.
9732
9733 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9734
9735 * arm-tdep.h (enum arm_float_model): New enum.
9736 (struct gdbarch_tdep): Add fp_model.
9737 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
9738 up floating-point conversions until we know the floating-point model
9739 in use by the inferior. Don't complain about being unable to
9740 determine the ABI of the inferior when we don't have one.
9741 (arm_extract_return_value): Support different floating-point models.
9742 (arm_store_return_value): Likewise.
9743 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
9744 ARM_FLOAT_SOFT.
9745 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
9746
9747 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9748
9749 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
9750 of ``current_gdbarch''.
9751
9752 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9753
9754 * armnbsd-nat.c : ANSIfy all function declarations.
9755 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
9756 (fetch_inferior_registers): Re-implement in terms of above.
9757 (store_register, store_regs, store_fp_register, store_fp_regs): New.
9758 (store_inferior_registers): Re-implement in terms of above.
9759
9760 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9761
9762 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
9763 kernel.
9764 * arm-linux-tdep.c: Likewise.
9765 * config/arm/tm-linux.h: Likewise.
9766
9767 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9768
9769 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
9770 * config/arm/nbsd.mt (TM_FILE): Delete.
9771 * config/arm/tm-nbsd.h: Delete.
9772
9773 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9774
9775 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
9776 Initialize CALL_DUMMY_LENGTH.
9777
9778 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9779
9780 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
9781 function.
9782 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
9783 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
9784 defines one thing and that is incorrect for this port.
9785 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
9786
9787 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9788
9789 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
9790
9791 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9792
9793 * win32-nat.c (display_selector): New function. Displays information
9794 about the information returned by GetThreadSelectorEntry API function.
9795 (display_selectors): New function. Displays the infomation of
9796 the selector given as argument, or of CS, DS ans FS selectors
9797 if no argument is given.
9798 ( _initialize_inftarg): Add "w32" as info prefix command.
9799 Add "info w32 selector" as command calling display_selectors.
9800
9801 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
9802
9803 * i386-tdep.c (get_longjmp_target): Fix compilation failure
9804 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
9805 if not defined.
9806
9807 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
9808
9809 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
9810
9811 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
9812
9813 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
9814 (arm_fix_call_dummy): Call it.
9815 (arm_call_dummy_breakpoint_offset): Delete.
9816 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
9817 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
9818
9819 2002-02-18 Andrew Cagney <ac131313@redhat.com>
9820
9821 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
9822 Default to func_frame_chain_valid.
9823 * gdbarch.h, gdbarch.c: Re-generate.
9824 * frame.h (FRAME_CHAIN_VALID): Delete definition.
9825
9826 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
9827
9828 * ppc-linux-nat.c: Update copyright.
9829 (fetch_register, store_register): Add tid parameter, don't compute
9830 tid here.
9831 (fetch_ppc_registers, store_ppc_registers): Add tid
9832 parameter. Pass it along to callees.
9833 (fetch_inferior_registers, store_inferior_registers): Compute tid
9834 here, and pass it to calleed functions.
9835 (fill_gregset, supply_fpregset): Clean up formatting.
9836
9837 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
9838
9839 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
9840 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
9841
9842 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
9843
9844 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
9845 * gdbarch.c gdbarch.h: Regenerate.
9846 * breakpoint.c (create_longjmp_breakpoint): Always compile this
9847 function.
9848 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
9849 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
9850 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
9851
9852 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
9853 * arm-tdep.c (arm_get_longjmp_target): New function.
9854 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
9855 this to a positive value register arm_get_longjmp_target as the
9856 longjmp handler.
9857 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
9858 (arm_linux_init_abi): Set up longjmp description in tdep.
9859 * armnbsd-nat.c (get_longjmp_target): Delete.
9860 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
9861 description in tdep.
9862 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
9863 (get_longjmp_target): Delete declaration.
9864 (GET_LONGJMP_TARGET): Delete.
9865 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
9866 (GET_LONGJMP_TARGET): Delete.
9867
9868 2002-02-17 Kevin Buettner <kevinb@redhat.com>
9869
9870 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
9871 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
9872 of ``current_gdbarch''.
9873
9874 2002-02-17 Tom Tromey <tromey@redhat.com>
9875
9876 * cli/cli-cmds.c (compare_strings): New function.
9877 (complete_command): Only print each unique item once.
9878 * completer.h (complete_line): Declare.
9879 * completer.c (complete_line): New function.
9880 (line_completion_function): Use it.
9881
9882 2002-02-16 Andrew Cagney <ac131313@redhat.com>
9883
9884 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
9885 * gdbarch.h, gdbarch.c: Re-generate.
9886
9887 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
9888
9889 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
9890
9891 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
9892
9893 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
9894 * valops.c (value_arg_coerce): Don't take the address of a reference
9895 to convert an argument to a reference.
9896
9897 2002-02-15 Christopher Faylor <cgf@redhat.com>
9898
9899 * win32-nat.c (get_image_name): New function.
9900 (handle_load_dll): Use get_image_name function.
9901 (get_child_debug_event): Avoid registering debug events until possibly
9902 execed process is started.
9903 (child_create_inferior): Allow invocation via shell so that command
9904 line redirection, etc. works ok.
9905 (_initialize_inftarg): Add new command: "set shell" to control whether
9906 a shell is used to start a process.
9907
9908 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
9909
9910 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
9911 instead of find_register_by_number.
9912 (cannot_store_register): Likewise.
9913
9914 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
9915
9916 * dwarf2read.c: Replace fprintf (stderr, ...) by
9917 fprintf_unfiltered (gdb_stderr, ...).
9918
9919 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
9920
9921 * gdbserver/gdbserver.1: Document --attach.
9922
9923 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
9924
9925 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
9926 descriptions.
9927 * arm-tdep.c (arm_default_arm_le_breakpoint)
9928 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
9929 (arm_default_thumb_be_breakpoint): New. Initialize them from
9930 traditional breakpoint defines.
9931 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
9932 (arm_gdbarch_init): Initialize new breakpoint variables.
9933 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
9934 (arm_linux_init_abi): Initialize linux-specific breakpoint.
9935 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
9936 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
9937 code out to ...
9938 (arm_netbsd_init_abi_common): ... here; new function.
9939 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
9940 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
9941 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
9942 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
9943
9944 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
9945
9946 * arm-tdep.h (enum arm_abi): New enum.
9947 (struct gdbarch_tdep): New structure.
9948 (LOWEST_PC): Provide a default.
9949 (arm_gdbarch_register_os_abi): Declare new function.
9950 * arm-tdep.c (arm_abi_names): New array.
9951 (process_note_abi_tag_sections): New function.
9952 (get_elfosabi): New function.
9953 (arm_gdbarch_register_os_abi): New function.
9954 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
9955 support for that ABI has been built in, then call the appropriate
9956 configuration routine. Use gdbarch_num_regs() to get the number
9957 of registers.
9958 (arm_dump_tdep): New function.
9959 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
9960 place-holder functions.
9961 (_initialize_arm_tdep): Register them.
9962 * config/arm/tm-arm.h (LOWEST_PC): Delete.
9963
9964 * armnbsd-tdep.c: New file.
9965 * Makefile.in (armnbsd-tdep.o): Add dependencies.
9966 * config/arm/nbsd.mt (TDEPFILES): Add it.
9967 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
9968
9969 * armnbsd-nat.c: Include regcache.h.
9970 * Makefile.in (armnbsd-nat.o): Update dependency list.
9971
9972 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
9973
9974 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9975
9976 * gdbserver/Makefile.in: Fix typos in target rules.
9977
9978 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9979
9980 Fix part of PR gdb/267.
9981 * linespec.c (find_methods): Handle constructors specially for now.
9982
9983 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
9984
9985 * arm-tdep.c (arm_push_arguments): Eliminate special float type
9986 handling.
9987 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
9988 standard_coerce_float_to_double().
9989
9990 2002-02-14 Christopher Faylor <cgf@redhat.com>
9991
9992 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
9993 GDBINIT_FILENAME.
9994
9995 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
9996
9997 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
9998 find_variant_by_name, because it confuses the multiarch
9999 framework. Return NULL if there isn't an architecture with the
10000 user supplied name, instead of forcing a different one without
10001 recording the change with the multiarch machinery.
10002 (find_variant_by_name): Delete.
10003
10004 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10005
10006 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
10007 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
10008
10009 2002-02-13 Martin M. Hunt <hunt@redhat.com>
10010
10011 * stack.c (print_frame_info_base): When calling
10012 print_frame_info_listing_hook, set current_source_symtab.
10013
10014 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
10015
10016 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
10017 and remove unused $(INCLUDE_DIR).
10018 Add regcache.c to OBS.
10019 Add generated register protocol files to clean target.
10020 Update dependencies for new objects, obsolete old target code.
10021
10022 * gdbserver/linux-low.c: Remove all platform-specific code to
10023 new files. Remove various dead code. Update to use regcache
10024 functionality.
10025 * gdbserver/remote-utils.c (fromhex): Add return statement
10026 to quiet warning.
10027 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
10028 constant.
10029 (input_interrupt): Add integer parameter to match prototype
10030 of a signal handler.
10031 (outreg): Use register_data ().
10032 (prepare_resume_reply): Use gdbserver_expedite_regs.
10033 * gdbserver/server.c (main): Dynamically allocate own_buf because
10034 PBUFSIZ is no longer constant. Use registers_to_string () and
10035 registers_from_string ().
10036 * gdbserver/server.h: No longer include "defs.h". Add prototypes
10037 for error (), fatal (), and warning (). Update definition of
10038 PBUFSIZ to use regcache functionality. Add include guard.
10039 * gdbserver/utils.c (fatal): Add missing ``const''.
10040 (warning): New function.
10041
10042 * regformats/regdat.sh: Include "regcache.h" in generated files.
10043 Provide init_registers () function.
10044 * regformats/regdef.h: Add prototype for set_register_cache ().
10045 Add include guard.
10046
10047 * gdbserver/linux-arm-low.c: New file.
10048 * gdbserver/linux-i386-low.c: New file.
10049 * gdbserver/linux-ia64-low.c: New file.
10050 * gdbserver/linux-m68k-low.c: New file.
10051 * gdbserver/linux-mips-low.c: New file.
10052 * gdbserver/linux-ppc-low.c: New file.
10053 * gdbserver/linux-sh-low.c: New file.
10054
10055 * gdbserver/regcache.c: New file.
10056 * gdbserver/regcache.h: New file.
10057
10058 * gdbserver/low-linux.c: Removed obsolete file.
10059
10060 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
10061
10062 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
10063 * config/i386/linux.mt: Likewise.
10064 * config/ia64/linux.mt: Likewise.
10065 * config/m68k/linux.mh: Likewise.
10066 * config/powerpc/linux.mh: Likewise.
10067 * config/mips/linux.mt: Likewise.
10068
10069 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
10070
10071 * config/i386/i386lynx.mh: Mark gdbserver variables
10072 as (currently) obsolete for this target.
10073 * config/i386/nbsd.mt: Likewise.
10074 * config/i386/nbsdelf.mt: Likewise.
10075 * config/m32r/m32r.mt: Likewise.
10076 * config/m68k/m68klynx.mh: Likewise.
10077 * config/m68k/nbsd.mt: Likewise.
10078 * config/m68k/sun3os4.mh: Likewise.
10079 * config/mips/vr5000.mt: Likewise.
10080 * config/ns32k/nbsd.mt: Likewise.
10081 * config/pa/hppabsd.mh: Likewise.
10082 * config/pa/hppaosf.mh: Likewise.
10083 * config/powerpc/nbsd.mt: Likewise.
10084 * config/rs6000/rs6000lynx.mh: Likewise.
10085 * config/s390/s390.mt: Likewise.
10086 * config/s390/s390x.mt: Likewise.
10087 * config/sparc/sparclynx.mh: Likewise.
10088 * config/sparc/sun4os4.mh: Likewise.
10089 * config/i386/x86-64linux.mt: Likewise.
10090 * config/sparc/linux.mh: Likewise.
10091
10092 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
10093
10094 * configure.tgt: Configure gdbserver only for known working
10095 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
10096 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
10097 SUBDIRS if it is configured. Update comment for ${nativefile}.
10098 * configure: Regenerated.
10099
10100 2002-02-13 Michael Snyder <msnyder@redhat.com>
10101
10102 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
10103
10104 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
10105 (default_gcore_mach): Just return 0, work around a problem in bfd.
10106 (default_gcore_target): OK to return NULL if exec_bfd is null.
10107 (make_mem_sec): Use a cast, avoid a warning.
10108
10109 * procfs.c (find_memory_regions_callback): Use a cast instead of
10110 calling host_pointer_to_address (which complains if
10111 sizeof (host pointer) != sizeof (target pointer)).
10112 (procfs_make_note_section): Avoid overflow in psargs string.
10113
10114 * procfs.c (procfs_make_note_section): Make the default
10115 implementation return an error.
10116
10117 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
10118
10119 * procfs.c (procfs_make_note_section): Provide a default definition
10120 (for alpha-dec-osf4.0f). Fix typos.
10121
10122 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
10123
10124 * linux-proc.c: Add include of regcache.h.
10125 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
10126
10127 2002-02-13 Andrew Cagney <ac131313@redhat.com>
10128
10129 From 2002-01-18 Greg McGary <greg@mcgary.org>:
10130 * memattr.c (create_mem_region): Disallow useless empty region.
10131 Regions are half-open intervals, so allow [A..B) [B..C) as
10132 non-overlapping.
10133
10134 2002-02-13 Michael Chastain <mec@shout.net>
10135
10136 * defs.h: Kill CONST_PTR.
10137 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
10138 * c-lang.c (c_builtin_types): Likewise.
10139 * ch-lang.c (ch_builtin_types): Likewise.
10140 * f-lang.c (f_builtin_types): Likewise.
10141 * language.c (unknown_builtin_types): Likewise.
10142 * m2-lang.c (m2_builtin_types): Likewise.
10143 * p-lang.c (pascal_builtin_types): Likewise.
10144 * scm-lang.c (c_builtin_types): Likewise.
10145
10146 2002-02-13 Keith Seitz <keiths@redhat.com>
10147
10148 * arm-tdep.h (arm_get_next_pc): Add declaration.
10149
10150 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
10151
10152 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
10153 with other related struct-returning functions.
10154 (arm_extract_struct_value_address): New function.
10155 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
10156 initialize float_format, double_format and long_double_format as
10157 appropriate to the endianness of the target.
10158 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
10159 (arm_use_struct_convention): Delete declaration.
10160 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
10161
10162 2002-02-13 Keith Seitz <keiths@redhat.com>
10163
10164 * defs.h (core_addr_to_string_nz): New function.
10165
10166 2002-02-13 Mark Kettenis <kettenis@gnu.org>
10167
10168 Apply missing bits of 2002-01-15 patch.
10169 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
10170 (fill_fpregset): Use i387_fill_fsave.
10171
10172 2002-02-12 Keith Seitz <keiths@redhat.com>
10173
10174 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
10175 (core_addr_to_string_nz): New function.
10176
10177 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
10178
10179 * arm-linux-nat.c: Really include arm-tdep.h.
10180 * config/arm/tm-linux.h (struct type, struct value): Declare.
10181
10182 2002-02-11 Michael Snyder <msnyder@redhat.com>
10183
10184 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
10185 (gcore section): Ifdef for Solaris and Unixware only.
10186 (procfs_do_thread_registers): Unixware needs one lwpstatus
10187 per thread (not one prstatus or pstatus).
10188 (procfs_make_note_section): Iterate only over kernel threads (lwps),
10189 not over all gdb threads. For unixware, call elfcore_write_pstatus
10190 once before iterating over threads.
10191
10192 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
10193
10194 * arm-tdep.h: New file.
10195 * arm-tdep.c: Include arm-tdep.h.
10196 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
10197 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
10198 (arm_print_float_info, arm_register_type, convert_to_extended)
10199 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
10200 (arm_extract_return_value, arm_register_name): Make static.
10201 (arm_software_single_step): Similarly. Fix types in declaration.
10202 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
10203 (arm_store_return_value, arm_store_struct_return): New functions.
10204 (arm_gdbarch_init): Register the above functions. Also register
10205 call_dummy_start_offset, sizeof_call_dummy_words,
10206 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
10207 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
10208 max_register_virtual_size, register_size. Set up
10209 prologue_cache.saved_regs here, rather than ...
10210 (_initialize_arm_tdep): ... here.
10211 * config/arm/tm-arm.h (struct type, struct value): Delete forward
10212 declarations.
10213 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
10214 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
10215 (arm_print_float_info, arm_register_type, convert_to_extended)
10216 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
10217 (arm_extract_return_value, arm_register_name): Delete declarations.
10218 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
10219 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
10220 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
10221 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
10222 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
10223 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
10224 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
10225 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
10226 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
10227 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
10228 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
10229 (arm_get_next_pc): No-longer static -- these are needed by the RDI
10230 interface.
10231 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
10232 * remote-rdi.c remote-rdp.c: Likewise.
10233 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
10234 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
10235 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
10236 definition.
10237
10238 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
10239 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
10240 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
10241 from non-ARM_ prefixed definitions.
10242 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
10243 all uses of above.
10244 * remote-rdi.c remote-rdp.c: Likewise.
10245 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
10246
10247 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
10248
10249 * arm-tdep.c (arm_frameless_function_invocation)
10250 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
10251 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
10252 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
10253 (arm_pop_frame, arm_get_next_pc): Make static.
10254 (arm_gdbarch_init): Register above in gdbarch structure.
10255 (arm_read_fp): Renamed from arm_target_read_fp.
10256 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
10257 * config/arm/tm-arm.h (arm_frameless_function_invocation)
10258 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
10259 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
10260 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
10261 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
10262 (arm_pc_is_thumb_dummy): Delete declarations.
10263 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
10264 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
10265 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
10266 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
10267
10268 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
10269
10270 * symtab.c (compare_search_syms): New function.
10271 (sort_search_symbols): New function.
10272 (search_symbols): Sort symbols after searching rather than
10273 before.
10274
10275 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10276
10277 * NEWS: Linux -> GNU/Linux.
10278
10279 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10280
10281 * gdbarch.sh: For for level one methods, disallow a definition
10282 when partially multi-arched. Add comments explaining rationale.
10283 * gdbarch.h: Re-generate.
10284
10285 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10286
10287 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
10288 multi-arch partial.
10289
10290 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10291
10292 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
10293 field. Use diff -u.
10294 * gdbarch.c: Re-generate.
10295
10296 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10297
10298 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
10299 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
10300 partial.
10301
10302 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10303
10304 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
10305 multi-arch partial.
10306 (PUSH_ARGUMENTS): Switch to using predefault.
10307 * gdbarch.c: Regenerate.
10308
10309 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10310
10311 * valops.c (PUSH_ARGUMENTS): Delete definition.
10312 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
10313 partial. Default to default_push_arguments.
10314 * gdbarch.h, gdbarch.c: Regenerate.
10315
10316 2002-02-09 Andrew Cagney <ac131313@redhat.com>
10317
10318 * defs.h (throw_exception): Rename return_to_top_level. Update
10319 comments.
10320 * utils.c (error_stream, internal_verror, quit): Ditto.
10321 * top.c (throw_exception, catcher): Ditto.
10322 * sparclet-rom.c (sparclet_load): Ditto.
10323 * remote.c (interrupt_query, minitelnet): Ditto.
10324 * remote-sds.c (interrupt_query): Ditto.
10325 * remote-mips.c (mips_error, mips_kill): Ditto.
10326 * ocd.c (interrupt_query): Ditto.
10327 * monitor.c (monitor_interrupt_query): Ditto.
10328 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
10329 * target.h: Update comment.
10330
10331 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
10332
10333 2002-02-09 Andrew Cagney <ac131313@redhat.com>
10334
10335 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
10336 default_double_format.
10337 * gdbarch.h, gdbarch.c: Re-generate.
10338 * findvar.c (floatformat_unknown): Delete variable definition.
10339 * doublest.h (floatformat_unknown): Delete variable declaration.
10340
10341 2002-02-09 Jim Blandy <jimb@redhat.com>
10342
10343 * stabsread.c (read_type): Add code to parse Sun's syntax for
10344 prototyped function types.
10345
10346 2002-02-09 Andrew Cagney <ac131313@redhat.com>
10347
10348 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
10349 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
10350
10351 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10352
10353 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
10354 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
10355 now _initialize_xcoffsolib gets called again and overrides the
10356 commands from solib.c in a native configuration.
10357
10358 2002-02-09 Mark Kettenis <kettenis@gnu.org>
10359
10360 * doublest.c (store_typed_floating): Don't try to return a value.
10361 Fixes PR gdb/290.
10362
10363 2002-02-08 Jim Blandy <jimb@redhat.com>
10364
10365 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
10366 is prototyped and has no arguments, print its argument list as
10367 `(void)'.
10368
10369 2002-02-08 Chris Demetriou <cgd@broadcom.com>
10370
10371 * MAINTAINERS (write-after-approval): Add myself.
10372 (paper-trail): I've escaped!
10373
10374 2002-02-08 Christopher Faylor <cgf@redhat.com>
10375
10376 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
10377 changes.
10378 (_initialize_check_for_gdb_ini): Ditto.
10379
10380 2002-02-08 Martin M. Hunt <hunt@redhat.com>
10381
10382 * win32-nat.c (cygwin_pid_to_str): Fix typo.
10383 xaprintf -> xasprintf.
10384
10385 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
10386
10387 * win32-nat.c: Remove use of printf and sprintf functions.
10388
10389 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
10390
10391 * arm-tdep.c (arm_frame_chain_valid): Make static.
10392 (arm_push_arguments): Likewise.
10393 (arm_gdbarch_init): New function.
10394 (_initialize_arm_tdep): Call it.
10395 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
10396 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
10397 (FRAME_CHAIN_VALID): Delete.
10398 (arm_frame_chain_valid): Delete declaration.
10399 (PUSH_ARGUMENTS): Delete.
10400 (arm_push_arguments): Delete declaration.
10401 (CALL_DUMMY_P): Delete.
10402
10403 2002-02-08 Andrew Cagney <ac131313@redhat.com>
10404 Corinna Vinschen <vinschen@redhat.com>
10405
10406 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
10407 on builtin float types.
10408
10409 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
10410
10411 * utils.c: Include <curses.h> before "bfd.h".
10412 * tui/tui-hooks.c: Likewise.
10413 * tui/tui.c: Likewise.
10414 * tui/tuiCommand.c: Likewise.
10415 * tui/tuiData.c: Likewise.
10416 * tui/tuiDataWin.c: Likewise.
10417 * tui/tuiDisassem.c: Likewise.
10418 * tui/tuiGeneralWin.c: Likewise.
10419 * tui/tuiIO.c: Likewise.
10420 * tui/tuiLayout.c: Likewise.
10421 * tui/tuiRegs.c: Likewise.
10422 * tui/tuiSource.c: Likewise.
10423 * tui/tuiSourceWin.c: Likewise.
10424 * tui/tuiStack.c: Likewise.
10425 * tui/tuiWin.c: Likewise.
10426
10427 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
10428
10429 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
10430 to include space for pseudoregs as well. Update loops accordingly.
10431 (sh_fp_frame_init_saved_regs): Ditto.
10432 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
10433
10434 2002-02-07 Andrew Cagney <ac131313@redhat.com>
10435
10436 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
10437 Add Richard Earnshaw to Arm maintainers.
10438
10439 2002-02-07 Andrew Cagney <ac131313@redhat.com>
10440
10441 * defs.h (warning_begin): Delete declaration.
10442
10443 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
10444 Delete macro.
10445
10446 2002-02-07 Michael Snyder <msnyder@redhat.com>
10447
10448 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
10449 Logic bug, remove misplaced else.
10450
10451 2002-02-07 Klee Dienes <klee@apple.com>
10452
10453 * fork-inferior.c (fork_inferior): Add '!' to the list of
10454 characters that need to be quoted when building a string for the
10455 shell. Quote '!' specifically with a backslash, since CSH chokes
10456 when trying to evaluate "str!str".
10457
10458 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
10459
10460 * rdi-share/host.h: Only provide a typedef for bool if it is not
10461 defined.
10462
10463 2002-02-04 Michael Snyder <msnyder@redhat.com>
10464
10465 * breakpoint.h (enum bptype): Add new overlay event bp type.
10466 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
10467
10468 * breakpoint.c (create_internal_breakpoint): New function.
10469 (internal_breakpoint_number): Moved into create_internal_breakpoint.
10470 (create_longjmp_breakpoint): Use create_internal_breakpoint.
10471 (create_thread_event_breakpoint): Ditto.
10472 (create_solib_event_breakpoint): Ditto.
10473 (create_overlay_event_breakpoint): New function.
10474 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
10475 (update_breakpoints_after_exec): Delete and re-initialize
10476 overlay event breakpoints after an exec. Add FIXME comment
10477 about longjmp breakpoint.
10478 (print_it_typical): Ignore overlay event breakpoints.
10479 (print_one_breakpoint): Ditto.
10480 (mention): Ditto.
10481 (bpstat_what): Do not stop for overlay event breakpoints.
10482 (delete_breakpoint): Don't delete overlay event breakpoints.
10483 (breakpoint_re_set_one): Delete the overlay event breakpoint.
10484 (breakpoint_re_set): Re-create overlay event breakpoint.
10485
10486 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
10487 (overlay_manual_command): Disable overlay breakpoints.
10488 (overlay_off_command): Disable overlay breakpoints.
10489
10490 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
10491
10492 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
10493 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
10494 to here from config/tm-arm.h.
10495 (coff_sym_is_thumb): Make static.
10496 (arm_elf_make_msymbol_special): New function.
10497 (arm_coff_make_msymbol_special): New function.
10498 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
10499 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
10500 (coff_sym_is_thumb): Delete declaration.
10501 (arm_elf_make_msymbol_special): Declare.
10502 (arm_coff_make_msymbol_special): Declare.
10503 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
10504 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
10505
10506 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
10507
10508 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
10509
10510 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
10511
10512 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
10513 * gdbarch.c gdbarch.h: Regenerate.
10514 * arch-utils.c (default_print_float_info): New function.
10515 * arch-utils.h (default_print_float_info): Prototype it.
10516 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
10517 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
10518 (PRINT_FLOAT_INFO): Document it.
10519
10520 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
10521 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
10522 (PRINT_FLOAT_INFO): Define.
10523
10524 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
10525
10526 * win32-nat.c (_initialize_check_for_gdb_ini):
10527 Add typecast to sprintf argument to suppress a warning.
10528
10529 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
10530
10531 * win32-nat.c (last_sig): Changed type of variable to target_signal,
10532 to allow easier handling of pass state.
10533 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
10534 that gives exception name and address.
10535 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
10536 and set last_sig value to ourstatus->value.sig. Some missing
10537 exceptions added.
10538 (child_continue): Correctly report continue_status.
10539 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
10540 TARGET_SIGNAL_0 (new default value).
10541 (child_resume): consider sig argument passed to decide if
10542 the exception should be passed to debuggee or not.
10543
10544 2002-02-05 Michael Snyder <msnyder@redhat.com>
10545
10546 * regcache.c (fetch_register): Call target_fetch_register
10547 only if we don't call FETCH_PSEUDO_REGISTER.
10548 (store_register): Call target_store_register only if we
10549 don't call STORE_PSEUDO_REGISTER.
10550
10551 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
10552
10553 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
10554 ELF_MAKE_MSYMBOL_SPECIAL.
10555 * gdbarch.c, gdbarch.h: Regenerate.
10556 * arch-utils.c (default_make_msymbol_special): New function.
10557 * arch-utils.h (default_make_msymbol_special): Export.
10558 * elfread.c (elf_symtab_read): Compile use of
10559 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
10560 multiarched.
10561 * coffread.c (coff_symtab_read): Ditto, for
10562 COFF_MAKE_MSYMBOL_SPECIAL.
10563
10564 2002-02-05 Jim Blandy <jimb@redhat.com>
10565
10566 * solib-svr4.c (svr4_truncate_ptr): New function.
10567 (svr4_relocate_section_addresses): Do the address arithmetic with
10568 the appropriate truncation for target addresses, even when
10569 CORE_ADDR is larger than a target address.
10570
10571 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10572
10573 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
10574 to (int *).
10575
10576 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10577
10578 * gdbserver/linux-low.c (kill_inferior): Remove commented out
10579 code.
10580
10581 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10582
10583 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
10584
10585 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10586
10587 * gdbserver/linux-low.c: Remove unused include files.
10588
10589 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10590
10591 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
10592 (read_inferior_memory): Use it.
10593 (write_inferior_memory): Likewise.
10594
10595 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10596
10597 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
10598 grubbing through sys_errlist.
10599
10600 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10601
10602 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
10603
10604 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
10605 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
10606
10607 2002-02-04 Andrew Cagney <ac131313@redhat.com>
10608
10609 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
10610 (do_sfunc, set_cmd_sfunc): New functions.
10611
10612 * command.h (struct cmd_list_element): Add field func.
10613 * cli/cli-decode.h (struct cmd_list_element): Ditto.
10614 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
10615 * cli/cli-decode.h: Ditto.
10616
10617 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
10618 (help_all, help_cmd_list): Ditto.
10619 (find_cmd, complete_on_cmdlist): Ditto.
10620 * top.c (execute_command): Ditto.
10621
10622 * cli/cli-setshow.c (do_setshow_command): Call func instead of
10623 function.sfunc.
10624
10625 * infcmd.c (notice_args_read): Fix function signature.
10626
10627 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
10628 * cli/cli-decode.c (add_set_cmd): Ditto.
10629 * utils.c (initialize_utils): Ditto.
10630 * maint.c (_initialize_maint_cmds): Ditto.
10631 * infrun.c (_initialize_infrun): Ditto.
10632 * demangle.c (_initialize_demangler): Ditto.
10633 * remote.c (add_packet_config_cmd): Ditto.
10634 * mips-tdep.c (_initialize_mips_tdep): Ditto.
10635 * cris-tdep.c (_initialize_cris_tdep): Ditto.
10636 * proc-api.c (_initialize_proc_api): Ditto.
10637 * kod.c (_initialize_kod): Ditto.
10638 * valprint.c (_initialize_valprint): Ditto.
10639 * top.c (init_main): Ditto.
10640 * infcmd.c (_initialize_infcmd): Ditto.
10641 * corefile.c (_initialize_core): Ditto.
10642 * arm-tdep.c (_initialize_arm_tdep): Ditto.
10643 * arch-utils.c (initialize_current_architecture): Ditto.
10644 (_initialize_gdbarch_utils): Ditto.
10645 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
10646
10647 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
10648 * wince.c (_initialize_inftarg): Ditto.
10649 * symfile.c (_initialize_symfile): Ditto.
10650 * mips-tdep.c (_initialize_mips_tdep): Ditto.
10651 * language.c (_initialize_language): Ditto.
10652 * arc-tdep.c (_initialize_arc_tdep): Ditto.
10653
10654 2002-02-04 Michael Snyder <msnyder@redhat.com>
10655
10656 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
10657
10658 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
10659
10660 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
10661 Add rules for building the register data files.
10662
10663 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
10664
10665 * regformats/regdat.sh: Add braces to the definition of
10666 expedite_regs_${arch}.
10667
10668 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
10669
10670 * regformats/regdef.h (struct reg): Add comment describing the
10671 requirements for offset and size fields.
10672
10673 2002-02-04 Andreas Schwab <schwab@suse.de>
10674
10675 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
10676 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
10677
10678 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
10679
10680 * gdbarch.sh (copyright): Update years in generated header.
10681 (SMASH_TEXT_ADDRESS): Add rule.
10682 * gdbarch.h, gdbarch.c: Re-generate.
10683 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
10684 * dbxread.c: Likewise.
10685 * dwarfread.c: Likewise.
10686 * elfread.c: Likewise.
10687 * somread.c: Likewise.
10688
10689 * arm-tdep.c (arm_smash_text_address): New function.
10690 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
10691
10692 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
10693
10694 Add support for hardware watchpoints on win32 native.
10695 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
10696 CONTEXT_DEBUG_REGISTERS.
10697 (dr variable): New variable. Static array containing a local copy
10698 of debug registers.
10699 (debug_registers_changed): New variable. Reflects when debug registers
10700 are changed and need to be written to inferior.
10701 (debug_registers_used): New variable. Reflects when any debug register
10702 was set, used when new threads are created.
10703 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
10704 i386-nat code.
10705 (thread_rec): Set dr array if id is the thread of current_event .
10706 (child_continue, child_resume): Change the debug registers for all
10707 threads if debug_registers_changed.
10708 (child_add_thread): Change the debug registers if debug_registers_used.
10709 * config/i386/cygwin.mh: Add use of i386-nat.o file.
10710 Link nm.h to new nm-cygwin.h file.
10711 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
10712 of hardware registers.
10713
10714 2002-02-03 Andrew Cagney <ac131313@redhat.com>
10715
10716 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
10717 Restore behavour broken by 2002-01-20 Andrew Cagney
10718 <ac131313@redhat.com> IEEE_FLOAT removal.
10719
10720 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
10721
10722 * c-valprint.c (c_val_print): Pass a proper valaddr to
10723 cp_print_class_method.
10724 * valops.c (search_struct_method): If there is only one method
10725 and args is NULL, return that method.
10726
10727 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
10728
10729 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
10730 accessing tag_name directly.
10731
10732 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
10733
10734 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
10735 of accessing tag_name directly.
10736
10737 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
10738
10739 PR gdb/280
10740 * gdbtypes.c (replace_type): New function.
10741 * gdbtypes.h (replace_type): Add prototype.
10742 * stabsread.c (read_type): Use replace_type.
10743
10744 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
10745
10746 * Makefile.in (memattr.o): Add missing dependencies rule.
10747
10748 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10749
10750 * breakpoint.c (break_at_finish_command): Really export.
10751 (break_at_finish_at_depth_command): Ditto.
10752 (tbreak_at_finish_command): Ditto.
10753 * hppa-tdep.c: Include completer.h.
10754 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
10755 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
10756
10757 2002-02-01 Andrew Cagney <ac131313@redhat.com>
10758
10759 * utils.c (do_write): New function.
10760 (error_stream): Rewrite combining the code from error_begin and
10761 verror.
10762 (verror): Rewrite using error_stream.
10763 (error_begin): Delete function.
10764
10765 2002-02-01 Andrew Cagney <ac131313@redhat.com>
10766
10767 * utils.c (error_begin): Make static.
10768 * defs.h (error_begin): Delete declaration.
10769
10770 * linespec.c (cplusplus_error): Replace cplusplus_hint.
10771 (decode_line_1): Use cplusplus_error instead of error_begin,
10772 cplusplus_hint and return_to_top_level.
10773 * coffread.c (coff_symfile_read): Use error instead of error_begin
10774 and return_to_top_level.
10775 * infrun.c (default_skip_permanent_breakpoint): Ditto.
10776
10777 2002-02-01 Andrew Cagney <ac131313@redhat.com>
10778
10779 * language.h (type_error, range_error): Make string parameter
10780 constant.
10781 * language.c (warning_pre_print): Delete extern declaration.
10782 * dwarfread.c (warning_pre_print): Ditto.
10783 * language.c (type_error, range_error): Rewrite to use verror and
10784 vwarning instead of warning_begin.
10785
10786 2002-02-01 Michael Snyder <msnyder@redhat.com>
10787
10788 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
10789 (set_ignore_count): Move misplaced comment back where it belongs.
10790
10791 2002-02-01 Andrew Cagney <ac131313@redhat.com>
10792
10793 * command.h (NO_FUNCTION): Delete macro.
10794 * cli/cli-decode.h (NO_FUNCTION): Ditto.
10795 * top.c (execute_command): Replace NO_FUNCTION with NULL.
10796 * tracepoint.c (_initialize_tracepoint): Ditto.
10797 * cli/cli-decode.c (add_set_cmd): Ditto.
10798 * cli/cli-cmds.c (init_cli_cmds): Ditto.
10799
10800 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
10801
10802 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
10803 Update ``this'' pointer when calling virtual functions.
10804
10805 2002-02-01 Michael Snyder <msnyder@redhat.com>
10806
10807 * breakpoint.c (create_temp_exception_breakpoint): Delete.
10808 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
10809
10810 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
10811
10812 * regformats/reg-arm.dat: New file.
10813 * regformats/reg-i386.dat: New file.
10814 * regformats/reg-ia64.dat: New file.
10815 * regformats/reg-m68k.dat: New file.
10816 * regformats/reg-mips.dat: New file.
10817 * regformats/reg-ppc.dat: New file.
10818 * regformats/reg-sh.dat: New file.
10819 * regformats/regdef.h: New file.
10820 * regformats/regdat.sh: New file.
10821
10822 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
10823
10824 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
10825 (arm_frame_args_address, arm_frame_locals_address): New functions.
10826 (arm_frame_num_args): New function.
10827 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
10828 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
10829 (FRMA_NUM_ARGS): Call arm_frame_num_args.
10830
10831 2002-01-31 Michael Snyder <msnyder@redhat.com>
10832
10833 * breakpoint.c (break_at_finish_command): Export.
10834 (break_at_finish_at_depth_command): Export.
10835 (tbreak_at_finish_command): Export.
10836 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
10837 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
10838 "txbreak" commands, which are HPPA specific.
10839
10840 * printcmd.c (disassemble_command): Remove an ancient
10841 artifact of an old merge.
10842
10843 * symfile.h (enum overlay_debugging_state):
10844 Define enum constant values for overlay mode.
10845 * symfile.c (overlay_debugging): Use enums instead of literals.
10846 (overlay_is_mapped, overlay_auto_command,
10847 overlay_manual_command): Ditto.
10848
10849 * breakpoint.c (insert_breakpoints, remove_breakpoint,
10850 breakpoint_here_p, breakpoint_inserted_here_p,
10851 breakpoint_thread_match, bpstat_stop_status,
10852 describe_other_breakpoints, check_duplicates, clear_command):
10853 Coding standard fixes.
10854
10855 * target.c (target_xfer_memory): Add spaces, coding standard.
10856 (do_xfer_memory): Add missing line to trust-readonly
10857 code: check bfd SEC_READONLY flag for section.
10858
10859 2002-01-31 Andrew Cagney <ac131313@redhat.com>
10860
10861 * PROBLEMS: Fix typo, 5.1->5.1.1.
10862
10863 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
10864
10865 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
10866 data symbols, since we search based on textlow and texthigh.
10867 (find_pc_sect_symtab): Likewise.
10868
10869 2002-01-30 Andrew Cagney <ac131313@redhat.com>
10870
10871 * defs.h (vwarning): Declare.
10872 * utils.c (vwarning): New function.
10873 (warning): Call vwarning.
10874 (warning_begin): Delete function.
10875
10876 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
10877 the warning message.
10878 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
10879 warning_begin.
10880
10881 2002-01-30 Michael Snyder <msnyder@redhat.com>
10882
10883 * NEWS: Mention "set trust-readonly-sections" command.
10884 Mention generate-core-file command.
10885
10886 2002-01-15 Michael Snyder <msnyder@redhat.com>
10887
10888 * target.c: New command, "set trust-readonly-sections on".
10889 (do_xfer_memory): Honor the suggestion to trust readonly sections
10890 by reading them from the object file instead of from the target.
10891 (initialize_targets): Register command "set trust-readonly-sections".
10892
10893 2002-01-29 Andrew Cagney <ac131313@redhat.com>
10894
10895 * parse.c (target_map_name_to_register): Simplify, search regs and
10896 pseudo-regs using a single loop.
10897
10898 2002-01-30 Andrew Cagney <ac131313@redhat.com>
10899
10900 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
10901
10902 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
10903
10904 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
10905 * config/i386/i386v42mp.mh: Add i387-nat.o .
10906 * i386v4-nat.c: Include i387-nat.h.
10907 (supply_fpregset): Use i387_supply_fsave.
10908 (fill_fpregset): Use i387_fill_fsave.
10909
10910 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
10911
10912 * arm-tdep.c (arm_call_dummy_words): Define.
10913 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
10914 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
10915 (CALL_DUMMY_WORDS): Define.
10916 (arm_call_dummy_words): Declare.
10917 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
10918 (arm_linux_call_dummy_words): Declare.
10919
10920 2002-01-30 Andreas Schwab <schwab@suse.de>
10921
10922 * m68klinux-nat.c: Fix last change to use regcache_collect
10923 instead of referencing registers[] directly.
10924
10925 2002-01-29 Andrew Cagney <ac131313@redhat.com>
10926
10927 * parse.c (target_map_name_to_register): Delete code wrapped in
10928 #ifdef REGISTER_NAME_ALIAS_HOOK.
10929
10930 2002-01-28 Michael Snyder <msnyder@redhat.com>
10931
10932 * regcache.c (legacy_read_register_gen): Need to be able to
10933 read pseudo-register as well as real register.
10934 (legacy_write_register_gen): Ditto.
10935
10936 2002-01-28 Andrew Cagney <ac131313@redhat.com>
10937
10938 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
10939 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
10940 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
10941 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
10942 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
10943 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
10944 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
10945 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
10946 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
10947 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
10948 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
10949 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
10950 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
10951 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
10952 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
10953 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
10954 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
10955 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
10956 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
10957 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
10958
10959 2002-01-28 Andrew Cagney <ac131313@redhat.com>
10960
10961 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
10962 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
10963 (initialize_current_architecture): Update target_byte_order using
10964 information from BFD.
10965 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
10966 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
10967
10968 2002-01-28 Andrew Cagney <ac131313@redhat.com>
10969
10970 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
10971 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
10972
10973 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
10974 #ifdef INVALID_FLOAT.
10975 * infcmd.c (do_registers_info): Ditto.
10976 * values.c (unpack_double): Ditto. Add comment.
10977
10978 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
10979 already commented out.
10980
10981 2002-01-26 Andreas Schwab <schwab@suse.de>
10982
10983 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
10984 * m68klinux-nat.c: Update ptrace interface for fetching/storing
10985 registers and add support for PTRACE_GETREGS.
10986
10987 2002-01-24 Andrew Cagney <ac131313@redhat.com>
10988
10989 GDB 5.1.1 released from 5.1 branch.
10990 * NEWS: Add 5.1.1 news.
10991 * README: Sync with 5.1 branch.
10992
10993 2002-01-23 Fred Fish <fnf@redhat.com>
10994
10995 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
10996 stabstring on initial malloc. Reallocing will copy it for us,
10997 if necessary.
10998
10999 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
11000
11001 * Makefile.in (hpread_h): Delete.
11002 (HFILES_NO_SRCDIR): Remove hpread.h.
11003 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
11004 (hpread.o): Update dependencies.
11005 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
11006
11007 * hp-psymtab-read.c: Remove file.
11008 * hp-symtab-read.c: Remove file.
11009 * hpread.h: Remove file.
11010
11011 * hpread.c: Merge all contents of hp-psymtab-read.c,
11012 hp-symtab-read.c and hpread.h into this file, as it was prior to
11013 January 1999.
11014
11015 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
11016 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
11017 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
11018 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
11019
11020 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
11021
11022 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
11023 fill_gregset): Call gdbarch_tdep() just once, assign result to
11024 variable and use that, instead of calling the function several
11025 times.
11026
11027 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
11028
11029 * configure.host: Accept sparcv9 as alias for sparc64.
11030 * configure.tgt: Likewise.
11031
11032 2002-01-22 Kevin Buettner <kevinb@redhat.com>
11033
11034 * solib-aix5.c (build_so_list_from_mapfile)
11035 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
11036 arguments is not reversed.
11037 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
11038 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
11039
11040 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
11041
11042 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
11043 modified version of obsolete sh_fetch_pseudo_register.
11044 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
11045 (sh4_register_read): New function.
11046 (sh_pseudo_register_write): New function. Renamed and modified
11047 version of obsolete sh_store_pseudo_register.
11048 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
11049 (sh4_register_write): New function.
11050 (sh_gdbarch_init): Remove setting of gdbarch function
11051 fetch_pseudo_register and store_pseudo_register. Remove setting of
11052 register_convert_to_raw, register_convert_to_virtual,
11053 register_convertible.
11054 (sh_sh4_register_convertible): Delete. No longer needed. All is
11055 taken care by architecture specific functions
11056 register_read/register_write.
11057 (sh_sh4_register_convert_to_virtual): Make static.
11058 (sh_sh4_register_convert_to_raw): Ditto.
11059
11060 2002-01-22 Andrew Cagney <ac131313@redhat.com>
11061
11062 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
11063 (floatformat_is_nan, floatformat_mantissa): Ditto.
11064
11065 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
11066 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
11067 builtin_type_ieee_double_little,
11068 builtin_type_ieee_double_littlebyte_bigword,
11069 builtin_type_m68881_ext, builtin_type_i960_ext,
11070 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
11071 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
11072 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
11073 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
11074
11075 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
11076
11077 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
11078 parameter. Set frameless flag if it exists and depended of
11079 whether the scanned function is frameless or not.
11080 (xstormy16_skip_prologue): If function is frameless, return
11081 result of xstormy16_scan_prologue().
11082 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
11083 call.
11084
11085 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
11086
11087 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
11088 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
11089 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
11090 sh_sh4_register_byte, sh_sh4_register_raw_size,
11091 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
11092 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
11093 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
11094 sh_store_pseudo_register, sh_do_pseudo_register): Call
11095 gdbarch_tdep() just once, assign result to variable and use that,
11096 instead of calling the function several times.
11097
11098 2002-01-20 Mark Kettenis <kettenis@gnu.org>
11099
11100 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
11101 macros instead of LAST_FPU_CTRL_REGNUM.
11102 (store_register): Likewise.
11103
11104 2002-01-21 Jim Blandy <jimb@redhat.com>
11105
11106 * infcmd.c (run_command): Check that the `exec' target layer's BFD
11107 is up-to-date before running the program, not just when a program
11108 exits.
11109
11110 2002-01-21 Fred Fish <fnf@redhat.com>
11111
11112 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
11113 when we have found all instructions we are looking for.
11114
11115 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
11116
11117 * arm-tdep.c (arm_register_name): New function.
11118 (arm_registers_names): Make static.
11119 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
11120 (arm_register_name): Declare.
11121 (REGISTER_NAME): Use it.
11122
11123 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
11124 Kevin Buettner <kevinb@redhat.com>
11125
11126 Convert arm targets to new FRAME interface.
11127 * arm-tdep.c (struct frame_extra_info): Remove fsr.
11128 (arm_frame_find_save_regs): Delete.
11129 (arm_frame_init_saved_regs): New.
11130 (arm_init_extra_frame_info): Alloacte saved_regs as required.
11131 Allocate extra_info as required. Convert all uses of fsr.regs
11132 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
11133 to use extra_info.
11134 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
11135 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
11136 (check_prologue_cache, save_prologue_cache): Likewise.
11137 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
11138 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
11139 (FRAME_FIND_SAVED_REGS): Delete.
11140 (arm_frame_find_saved_regs): Delete prototype.
11141 (arm_frame_init_saved_regs): New prototype.
11142 (FRAME_INIT_SAVED_REGS): Define.
11143
11144 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11145
11146 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
11147
11148 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11149
11150 From Jeff Law <law@redhat.com>:
11151 * infttrace.c: Include <sys/pstat.h>.
11152 (child_pid_to_exec_file): Revamp. Use pstat call to get the
11153 exec file if the ttrace equivalent fails.
11154
11155 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11156
11157 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
11158 (closeLogFile): Ditto.
11159
11160 2002-01-20 Michael Chastain <mec@shout.net>
11161
11162 * top.c (print_gdb_version): Bump copyright year to 2002.
11163
11164 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11165
11166 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
11167 Zannoni and Eli Zaretskii.
11168
11169 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
11170
11171 * buildsym.c: Update copyright years.
11172 * c-typeprint.c: Likewise.
11173 * dwarf2read.c: Likewise.
11174 * f-typeprint.c: Likewise.
11175 * gdbtypes.c: Likewise.
11176 * gdbtypes.h: Likewise.
11177 * hp-symtab-read.c: Likewise.
11178 * hpread.c: Likewise.
11179 * mdebugread.c: Likewise.
11180 * p-typeprint.c: Likewise.
11181
11182 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11183
11184 * remote-sim.c (gdbsim_open): Simplify code testing the macro
11185 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
11186 byte-order selectable.
11187 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
11188 * arch-utils.c: Ditto.
11189 (set_endian): Ditto.
11190 (set_endian_from_file): Ditto.
11191 * gdbserver/low-sim.c (create_inferior): Ditto.
11192 * gdbarch.sh: Ditto.
11193 * gdbarch.h: Re-generate.
11194 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11195 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
11196 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
11197 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11198 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11199 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11200 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
11201 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
11202 macro definition.
11203 * config/mips/tm-wince.h: Remove #undef of macro
11204 TARGET_BYTE_ORDER_SELECTABLE.
11205 * config/sh/tm-wince.h: Ditto.
11206
11207 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
11208
11209 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
11210 member function fields. Add accessor macro
11211 TYPE_FN_FIELD_ARTIFICIAL.
11212 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
11213 * c-typeprint.c (c_type_print_base): Skip artificial member
11214 functions.
11215
11216 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
11217
11218 * f-typeprint.c: Delete unused function f_type_print_args.
11219 * p-typeprint.c: Delete unused function pascal_type_print_args.
11220
11221 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
11222
11223 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
11224 comment. Add ``artificial'' to ``union field_location''.
11225
11226 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
11227
11228 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
11229 * mdebugread.c (parse_symbol): Likewise.
11230 * stabsread.c (define_symbol): Likewise.
11231 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
11232 initializing TYPE_FIELD_BITPOS to n (obsolete).
11233 (hpread_doc_function_type): Likewise.
11234 * hpread.c (hpread_function_type): Likewise.
11235
11236 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11237
11238 * configure.in (host_makefile_frag): Only require a host makefile
11239 fragment when a native build.
11240 * configure: Re-generate.
11241
11242 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11243
11244 * doublest.h (floatformat_from_type): Declare.
11245 * doublest.c (floatformat_from_type): New function.
11246 (convert_typed_floating): Use.
11247
11248 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
11249 call to function floatformat_from_type.
11250
11251 * gdbarch.sh (IEEE_FLOAT): Delete.
11252 * gdbarch.h, gdbarch.c: Re-generate.
11253 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
11254 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
11255 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
11256 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
11257 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
11258 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
11259 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
11260 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
11261 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
11262 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
11263 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
11264 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
11265
11266 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
11267 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
11268 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
11269 * sh-tdep.c (sh_gdbarch_init): Ditto.
11270 * mips-tdep.c (mips_gdbarch_init): Ditto.
11271 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11272 * cris-tdep.c (cris_gdbarch_init): Ditto.
11273
11274 2002-01-20 Jiri Smid <smid@suse.cz>
11275
11276 * configure.host, configure.tgt: Support x86-64.
11277 * NEWS: Note new target x86-64.
11278
11279 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
11280 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
11281 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
11282 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
11283 x86-64-linux-nat.o): Fix dependencies.
11284
11285 2002-01-19 Andrew Cagney <ac131313@redhat.com>
11286
11287 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
11288 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
11289 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
11290 * config/sparc/xm-sun4os4.h: Delete file.
11291 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
11292
11293 2002-01-19 Andrew Cagney <ac131313@redhat.com>
11294
11295 * config/sparc/sparclynx.mh (XM_FILE): Delete.
11296 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
11297 * config/m68k/m68klynx.mh (XM_FILE): Delete.
11298 * config/i386/i386lynx.mh (XM_FILE): Delete.
11299 * config/rs6000/xm-rs6000ly.h: Delete file.
11300 * config/sparc/xm-sparclynx.h: Delete file.
11301 * config/m68k/xm-m68klynx.h: Delete file.
11302 * config/i386/xm-i386lynx.h: Delete file.
11303 * config/xm-lynx.h: Delete file.
11304 * config/djgpp/fnchange.lst: Update.
11305
11306 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11307
11308 * alpha-tdep.c (alpha_register_byte): New function.
11309 (alpha_register_raw_size): Ditto.
11310 (alpha_register_virtual_size): Ditto.
11311 (alpha_skip_prologue_internal): Renamed from
11312 alpha_skip_prologue.
11313 (alpha_skip_prologue): New version that calls
11314 alpha_skip_prologue_internal.
11315 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
11316 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
11317 second argument from alpha_skip_prologue.
11318 (REGISTER_BYTE): Use alpha_register_byte.
11319 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
11320 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
11321 (FRAMELESS_FUNCTION_INVOCATION): Use
11322 generic_frameless_function_invocation_not.
11323 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
11324 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
11325
11326 2002-01-19 Andrew Cagney <ac131313@redhat.com>
11327
11328 * config/mips/xm-news-mips.h: Delete file.
11329 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
11330
11331 * config/m88k/xm-m88k.h: Delete file.
11332 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
11333 * config/m88k/xm-delta88v4.h: Ditto.
11334 * config/m88k/xm-delta88.h: Ditto.
11335
11336 * config/alpha/xm-fbsd.h: Delete file.
11337 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
11338
11339 * config/sparc/xm-sparc.h: Delete file.
11340 * Makefile.in (xm-sun4os4.h): Delete dependency.
11341 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
11342 * config/sparc/xm-sun4os4.h: Ditto.
11343 * config/sparc/xm-linux.h: Ditto.
11344
11345 * config/i386/xm-windows.h: Delete file.
11346
11347 2002-01-19 Andrew Cagney <ac131313@redhat.com>
11348
11349 * utils.c: Include <sys/param.h> for MAXPATHLEN.
11350 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
11351
11352 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11353
11354 * alpha-tdep.c (alpha_call_dummy_words): New.
11355 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
11356 (CALL_DUMMY_P): Define.
11357 (CALL_DUMMY_WORDS): Define.
11358 (SIZEOF_CALL_DUMMY_WORDS): Define.
11359
11360 2002-01-19 Per Bothner <per@bothner.com>
11361
11362 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
11363 isn't NULL, which can happen with some gcj-3.x-produced code.
11364
11365 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11366
11367 * alpha-tdep.c (alpha_register_virtual_type): New function.
11368 (alpha_init_frame_pc_first): Ditto.
11369 (alpha_fix_call_dummy): Ditto.
11370 (alpha_store_struct_return): Ditto.
11371 (alpha_extract_struct_value_address): Ditto.
11372 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
11373 alpha_register_virtual_type.
11374 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
11375 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
11376 alpha_extract_struct_value_address.
11377 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
11378 (INIT_FRAME_PC): Use init_frame_pc_noop.
11379 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
11380
11381 2002-01-19 Mark Kettenis <kettenis@gnu.org>
11382
11383 * i386gnu-nat.c: Include "i386-tdep.h".
11384 (fetch_fpregs): Simplify code dealing with uninitialized floating
11385 point states such that it doesn't require FP7_REGNUM.
11386
11387 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11388
11389 * alpha-tdep.c (frame_extra_info): New.
11390 (alpha_find_saved_regs): Make static. Use
11391 frame->extra_info.
11392 (alpha_frame_init_saved_regs): New function.
11393 (alpha_frame_saved_pc): Use frame->extra_info.
11394 (temp_saved_regs): Don't declare as struct frame_saved_regs.
11395 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
11396 (init_extra_frame_info): Rename to...
11397 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
11398 (alpha_print_extra_frame_info): New function.
11399 (alpha_frame_locals_address): Ditto.
11400 (alpha_frame_args_address): Ditto.
11401 (alpha_pop_frame): Use frame->extra_info.
11402 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
11403 alpha_frame_args_address.
11404 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
11405 (alpha_find_saved_regs): Remove prototype.
11406 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
11407 (EXTRA_FRAME_INFO): Remove.
11408 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
11409 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
11410
11411 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11412
11413 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
11414 (alpha_cannot_fetch_register): Ditto.
11415 (alpha_cannot_store_register): Ditto.
11416 (alpha_register_convertible): Ditto.
11417 (alpha_use_struct_convention): Ditto.
11418 * config/alpha/tm-alpha.h: Update copyright years.
11419 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
11420 (INNER_THAN): Use core_addr_lessthan.
11421 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
11422 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
11423 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
11424 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
11425 (FRAME_CHAIN): Remove unnecessary cast.
11426
11427 2002-01-18 Andrew Cagney <ac131313@redhat.com>
11428
11429 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
11430 obsolete.
11431
11432 2002-01-18 Andrew Cagney <ac131313@redhat.com>
11433
11434 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
11435 * monitor.c, remote-array.c, remote-bug.c: Ditto.
11436 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
11437 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
11438 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
11439 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
11440 * x86-64-linux-nat.c: Ditto.
11441
11442 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11443
11444 * alpha-tdep.c (alpha_register_name): New function.
11445 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
11446 (REGISTER_NAME): Define.
11447
11448 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11449
11450 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
11451
11452 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11453
11454 * alpha-tdep.c: Update copyright years.
11455 (alpha_next_pc): New function.
11456 (alpha_software_single_step): Ditto.
11457 * config/alpha/tm-alpha.h: Add prototype for
11458 alpha_software_single_step.
11459
11460 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11461
11462 * alphabsd-nat.c: Update copyright years.
11463 (fill_gregset): Use regcache_collect.
11464 (fill_fpregset): Likewise.
11465 (fetch_inferior_registers): Only fetch integer registers
11466 if requested to do so.
11467 (store_inferior_registers): Only store integer registers
11468 if requested to do so.
11469
11470 2002-01-17 Andrew Cagney <ac131313@redhat.com>
11471
11472 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
11473 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
11474 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
11475 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
11476 * config/alpha/fbsd.mh (XDEPFILES): Delete.
11477 * config/arm/linux.mh (XDEPFILES): Delete.
11478 * config/arm/nbsd.mh (XDEPFILES): Delete.
11479 * config/i386/i386dgux.mh (XDEPFILES): Delete.
11480 * config/i386/i386sol2.mh (XDEPFILES): Delete.
11481 * config/i386/i386m3.mh (XDEPFILES): Delete.
11482 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
11483 * config/i386/i386gnu.mh (XDEPFILES): Delete.
11484 * config/i386/fbsd.mh (XDEPFILES): Delete.
11485 * config/i386/i386bsd.mh (XDEPFILES): Delete.
11486 * config/i386/i386sco5.mh (XDEPFILES): Delete.
11487 * config/i386/i386v4.mh (XDEPFILES): Delete.
11488 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
11489 * config/i386/i386sco4.mh (XDEPFILES): Delete.
11490 * config/i386/i386aix.mh (XDEPFILES): Delete.
11491 * config/i386/go32.mh (XDEPFILES): Delete.
11492 * config/i386/cygwin.mh (XDEPFILES): Delete.
11493 * config/i386/i386lynx.mh (XDEPFILES): Delete.
11494 * config/i386/i386mach.mh (XDEPFILES): Delete.
11495 * config/i386/i386v32.mh (XDEPFILES): Delete.
11496 * config/i386/linux.mh (XDEPFILES): Delete.
11497 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
11498 * config/i386/ncr3000.mh (XDEPFILES): Delete.
11499 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
11500 * config/i386/i386sco.mh (XDEPFILES): Delete.
11501 * config/i386/i386v.mh (XDEPFILES): Delete.
11502 * config/i386/nbsd.mh (XDEPFILES): Delete.
11503 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
11504 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
11505 * config/i386/symmetry.mh (XDEPFILES): Delete.
11506 * config/i386/obsd.mh (XDEPFILES): Delete.
11507 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
11508 * config/ia64/linux.mh (XDEPFILES): Delete.
11509 * config/ia64/aix.mh (XDEPFILES): Delete.
11510 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
11511 * config/m68k/dpx2.mh (XDEPFILES): Delete.
11512 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
11513 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
11514 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
11515 * config/m68k/linux.mh (XDEPFILES): Delete.
11516 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
11517 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
11518 * config/m68k/nbsd.mh (XDEPFILES): Delete.
11519 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
11520 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
11521 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
11522 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
11523 * config/m88k/delta88.mh (XDEPFILES): Delete.
11524 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
11525 * config/m88k/m88k.mh (XDEPFILES): Delete.
11526 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
11527 * config/mips/linux.mh (XDEPFILES): Delete.
11528 * config/mips/irix6.mh (XDEPFILES): Delete.
11529 * config/mips/irix5.mh (XDEPFILES): Delete.
11530 * config/mips/irix4.mh (XDEPFILES): Delete.
11531 * config/mips/irix3.mh (XDEPFILES): Delete.
11532 * config/mips/decstation.mh (XDEPFILES): Delete.
11533 * config/mips/mipsm3.mh (XDEPFILES): Delete.
11534 (NATDEPFILES): Move core-aout.o to here.
11535 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
11536 * config/pa/hpux1020.mh (XDEPFILES): Delete.
11537 * config/pa/hppabsd.mh (XDEPFILES): Delete.
11538 * config/pa/hppahpux.mh (XDEPFILES): Delete.
11539 * config/pa/hpux11w.mh (XDEPFILES): Delete.
11540 * config/pa/hppaosf.mh (XDEPFILES): Delete.
11541 * config/pa/hpux11.mh (XDEPFILES): Delete.
11542 * config/powerpc/aix.mh (XDEPFILES): Delete.
11543 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
11544 * config/powerpc/linux.mh (XDEPFILES): Delete.
11545 * config/romp/rtbsd.mh: Rename XDEPFILES.
11546 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
11547 * config/rs6000/aix4.mh (XDEPFILES): Delete.
11548 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
11549 * config/s390/s390.mh (XDEPFILES): Delete.
11550 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
11551 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
11552 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
11553 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
11554 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
11555 * config/sparc/nbsd.mh (XDEPFILES): Delete.
11556 * config/sparc/linux.mh (XDEPFILES): Delete.
11557 * config/vax/vaxult.mh (XDEPFILES): Delete.
11558 * config/vax/vaxult2.mh (XDEPFILES): Delete.
11559 * Makefile.in (DEPFILES): Remove XDEPFILES.
11560
11561 2002-01-17 Andrew Cagney <ac131313@redhat.com>
11562
11563 * utils.c (internal_verror): Fix comments, default is yes not no.
11564 Update queries to match. Default to quit and dump core.
11565
11566 2002-01-17 Andrew Cagney <ac131313@redhat.com>
11567
11568 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
11569 copyright.
11570 * defs.h, event-top.c, gdbcmd.h: Ditto.
11571 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
11572 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
11573 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
11574 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
11575 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
11576 * mi/mi-main.c:Ditto.
11577
11578 * stack.c, symfile.c: Update copyright.
11579
11580 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
11581
11582 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
11583 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
11584 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
11585 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
11586
11587 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
11588
11589 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
11590 * gdbserver/low-lynx.c (myattach): Likewise.
11591 * gdbserver/low-nbsd.c (myattach): Likewise.
11592 * gdbserver/low-sim.c (myattach): Likewise.
11593 * gdbserver/low-sparc.c (myattach): Likewise.
11594 * gdbserver/low-sun3.c (myattach): Likewise.
11595
11596 * gdbserver/low-linux.c (myattach): New function.
11597
11598 * gdbserver/server.c (attach_inferior): New function.
11599 (main): Handle "--attach".
11600
11601 2002-01-16 Andrew Cagney <ac131313@redhat.com>
11602
11603 * MAINTAINERS (language support): Daniel Jacobwitz is C++
11604 maintainer.
11605
11606 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
11607
11608 * c-typeprint.c (is_type_conversion_operator): Add additional
11609 check for non-conversion operators.
11610
11611 2002-01-15 Michael Snyder <msnyder@redhat.com>
11612
11613 * linux-proc.c: Add "info proc" command, a la procfs.c.
11614 (read_mapping): New function, abstract and re-use code.
11615 (linux_find_memory_regions): Use new func read_mapping.
11616 (linux_info_proc_cmd): New function, implement "info proc".
11617 (_initialize_linux_proc): Add new command "info proc".
11618
11619 2002-01-15 Michael Snyder <msnyder@redhat.com>
11620
11621 * symfile.c (generic_load): Use bfd_map_over_sections method
11622 instead of manipulating bfd structure members directly.
11623 (add_section_size_callback): New function, bfd sections callback
11624 used by generic_load.
11625 (load_sections_callback): New function, bfd sections callback
11626 used by generic_load.
11627
11628 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
11629
11630 [Based on work by Jim Blandy]
11631 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
11632 (builtin_type_vec128): Export.
11633 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
11634 types.
11635 (builtin_type_vec128): New builtin type for 128 bit vector
11636 registers.
11637 (build_gdbtypes): Initialize builtin_type_v16qi and
11638 builtin_type_v8hi. Create the vec128 register builtin type
11639 structure.
11640 (build_builtin_type_vec128): New function.
11641 (_initialize_gdbtypes): Register builtin_type_v16qi and
11642 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
11643 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
11644 AltiVec register to new builtin type.
11645
11646 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
11647
11648 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
11649 to make_cv_type.
11650
11651 2002-01-14 Andrew Cagney <ac131313@redhat.com>
11652
11653 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
11654 CLEAN_UP_REGISTER_VALUE.
11655 * regcache.c (supply_register): Update only call.
11656
11657 2002-01-14 Andrew Cagney <ac131313@redhat.com>
11658
11659 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
11660 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
11661 a29k-*-vxworks* targets as obsolete.
11662
11663 2002-01-14 Michael Snyder <msnyder@redhat.com>
11664
11665 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
11666 until we can resolve portability issues.
11667 * gregset.h: Remove references to fpxregs.
11668 * gcore.c (gcore_command): Initialize note_sec to NULL.
11669
11670 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11671
11672 * signals.c (target_signal_to_name): Rewrite. Only use
11673 signals[].name when in bounds and non-NULL.
11674
11675 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11676
11677 From Petr Ledvina <ledvinap@kae.zcu.cz>:
11678 * signals.c (target_signal_to_name): Verify that SIG is within the
11679 bounds of the signals array.
11680
11681 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11682
11683 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
11684
11685 2002-01-13 Keith Seitz <keiths@redhat.com>
11686
11687 * stack.c (print_frame_info_base): Print the frame's pc
11688 only if when print_frame_info_listing_hook is not defined.
11689
11690 2002-01-13 Keith Seitz <keiths@redhat.com>
11691
11692 * varobj.c (varobj_set_value): Make sure that there were no
11693 errors evaluating the object before attempting to set its
11694 value.
11695 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
11696 so this offset adjustment is no longer necessary.
11697 (create_child): Don't set the error flag if the child is
11698 a CPLUS_FAKE_CHILD.
11699 (value_of_child): If value_fetch_lazy fails, return NULL
11700 so that callers will be notified that an error occurred.
11701 (c_value_of_variable): Delay check of variable's validity
11702 until later. We actually want all structs and unions to have
11703 the value "{...}".
11704 Do not return "???" for variables which could not be evaluated.
11705 This error condition must be returned to the caller so that it
11706 can get the error condition from gdb.
11707 (cplus_name_of_child): Adjust index for vptr before figuring
11708 out the name of the child.
11709 (cplus_value_of_child): If a child's (real) parent is not valid,
11710 don't even bother trying to give a value for it. Just return
11711 an error. Change all instances in this function.
11712 (cplus_type_of_child): If our parent is one of the "fake"
11713 parents, we need to get at the type of the real parent, and
11714 derive the child's true type using this information.
11715
11716 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11717
11718 From 2002-01-09 John Marshall <johnm@falch.net>:
11719 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
11720 sources.redhat.com, and tweak some related URLs which had
11721 suffered from linkrot.
11722
11723 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11724
11725 From Jeff law:
11726 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
11727 structures passed in registers.
11728
11729 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
11730
11731 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
11732 white space which prevented compilation. Reported by DSK
11733 <dsk@student.unsw.edu.au>.
11734
11735 2002-01-11 Michael Snyder <msnyder@redhat.com>
11736
11737 * symfile.c (build_section_addr_info_from_section_tab):
11738 Use bfd access method instead of manipulating bfd directly.
11739 (syms_from_objfile): Ditto.
11740 (simple_overlay_update_1): Ditto.
11741 (simple_overlay_update): Ditto.
11742 (generic_load): Ditto.
11743 (overlay_unmapped_address): FIXME comment, bfd access methods.
11744 (sections_overlap): FIXME comment, bfd access methods.
11745 (pc_in_mapped_range): FIXME comment, bfd access methods.
11746 (pc_in_unmapped_range): FIXME comment, bfd access methods.
11747 (section_is_mapped): FIXME comment, bfd access methods.
11748 (section_is_overlay): FIXME comment, bfd access methods.
11749
11750 * symfile.c (generic_load): Whitespace and long line cleanups.
11751 Remove duplicate variable, change several local variables to
11752 more appropriate data types.
11753 (print_transfer_performance): Use %lu instead of %ld for ulongs.
11754
11755 2002-01-12 Andrew Cagney <ac131313@redhat.com>
11756
11757 From Peter Schauer:
11758 * language.c (longest_local_hex_string_custom): Use phex_nz to
11759 convert NUM to a hex string.
11760
11761 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
11762
11763 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
11764 the function.
11765 Update Copyright year.
11766
11767 2002-01-12 Andrew Cagney <ac131313@redhat.com>
11768
11769 * language.c (longest_raw_hex_string): Delete unused function.
11770
11771 2002-01-11 Petr Sorfa <petrs@caldera.com>
11772
11773 * MAINTAINERS (write-after-approval): Add myself.
11774 * dwarf2read.c (read_tag_string_type): Handling of
11775 DW_AT_byte_size.
11776 (read_tag_string_type): FORTRAN fix to prevent propagation of
11777 first string size.
11778 (set_cu_language): Handling of DW_LANG_Fortran95
11779
11780 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
11781
11782 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
11783 GETPID(inferior_ptid).
11784 (store_inferior_registers): Likewise.
11785
11786 2002-01-10 Jason Merrill <jason@redhat.com>
11787
11788 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
11789 Fix DW_OP_minus.
11790
11791 2002-01-10 Andrew Cagney <ac131313@redhat.com>
11792
11793 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
11794 and bfd/elf32-sh-nbsd.c.
11795
11796 2002-01-10 Michael Snyder <msnyder@redhat.com>
11797
11798 * NEWS: Mention --pid and corefile/proc-id behavior change.
11799
11800 * Makefile.in: Add rules for gcore.o and linux-proc.o.
11801 * gcore.c: Include cli/cli-decode.h instead of command.h.
11802
11803 * main.c (captured_main): Add new command line option "--pid".
11804 If the second command line argument (following the symbol-file)
11805 begins with a digit, try to attach to it before trying to open
11806 it as a corefile.
11807 (print_gdb_help): Document the "--pid" argument.
11808
11809 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
11810
11811 * completer.c (command_completer): New function.
11812
11813 * completer.h <command_completer>: Add prototype.
11814
11815 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
11816 completer for the "help" command.
11817
11818 2002-01-09 Jason Merrill <jason@redhat.com>
11819
11820 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
11821
11822 2002-01-09 Michael Snyder <msnyder@redhat.com>
11823
11824 * i386-linux-nat.c (fill_fpxregset): Make global.
11825 (store_fpxregset): Ditto.
11826
11827 * gregset.h (gdb_fpxregset_t): Define.
11828 (supply_fpxregset): Prototype.
11829 (fill_fpxregset): Prototype.
11830
11831 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
11832
11833 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
11834
11835 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
11836 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
11837 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
11838
11839 2002-01-09 Andrew Cagney <ac131313@redhat.com>
11840
11841 * MAINTAINERS: Update target maintainer rules so that any
11842 Maintainer can approve a tested patch for a maintenance-only
11843 target.
11844
11845 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
11846
11847 * MAINTAINERS (write-after-approval): Add myself.
11848
11849 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
11850 IN_SIGTRAMP.
11851
11852 2002-01-08 Michael Snyder <msnyder@redhat.com>
11853
11854 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
11855 real name of the executable, rather than the /proc name.
11856
11857 2002-01-03 Michael Snyder <msnyder@redhat.com>
11858
11859 Implement a "generate-core-file" command in gdb, save target state.
11860 * gcore.c: New file. Implement new command 'generate-core-file'.
11861 Save a corefile image of the current state of the inferior.
11862 * linux-proc.c: Add linux-specific code for saving corefiles.
11863 * target.h (struct target_ops): Add new target vectors for saving
11864 corefiles; to_find_memory_regions and to_make_corefile_notes.
11865 (target_find_memory_regions): New macro.
11866 (target_make_corefile_notes): New macro.
11867 * target.c (update_current_target): Inherit new target methods.
11868 (dummy_find_memory_regions): New place-holder method.
11869 (dummy_make_corefile_notes): New place-holder method.
11870 (init_dummy_target): Initialize new dummy target vectors.
11871 * exec.c (exec_set_find_memory_regions): New function.
11872 Allow the exec_ops vector for memory regions to be taken over.
11873 (exec_make_note_section): New function, target vector method.
11874 * defs.h (exec_set_find_memory_regions): Export prototype.
11875 * procfs.c (proc_find_memory_regions): New function, corefile method.
11876 (procfs_make_note_section): New function, corefile method.
11877 (init_procfs_ops): Set new target vector pointers.
11878 (find_memory_regions_callback): New function.
11879 (procfs_do_thread_registers): New function.
11880 (procfs_corefile_thread_callback): New function.
11881 * sol-thread.c (sol_find_memory_regions): New function.
11882 (sol_make_note_section): New function.
11883 (init_sol_thread_ops): Initialize new target vectors.
11884 * inftarg.c (inftarg_set_find_memory_regions): New function.
11885 Allow to_find_memory_regions vector to be taken over.
11886 (inftarg_set_make_corefile_notes): New function.
11887 Allow to_make_corefile_notes vector to be taken over.
11888 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
11889 interface layer if not target_has_execution (may be a corefile).
11890 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
11891 * config/sparc/sun4sol2.mh: Ditto.
11892 * config/alpha/alpha-linux.mh: Ditto.
11893 * config/arm/linux.mh: Ditto.
11894 * config/i386/x86-64linux.mh: Ditto.
11895 * config/ia64/linux.mh: Ditto.
11896 * config/m68k/linux.mh: Ditto.
11897 * config/mips/linux.mh: Ditto.
11898 * config/powerpc/linux.mh: Ditto.
11899 * config/sparc/linux.mh: Ditto.
11900
11901 2002-01-07 Michael Snyder <msnyder@redhat.com>
11902
11903 * arm-linux-nat.c: Remove references to regcache.c internal data
11904 (registers[] and register_valid[]).
11905
11906 2002-01-07 Michael Snyder <msnyder@redhat.com>
11907
11908 * linux-proc.c: New file. Implement child_pid_to_exec_file,
11909 so that attaching to a pid will automatically read the process's
11910 symbol file and shlibs.
11911 * Makefile.in: Add rule for linux-proc.o.
11912 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
11913 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
11914 * config/arm/linux.mh: Ditto.
11915 * config/i386/linux.mh: Ditto.
11916 * config/i386/x86-64linux.mh: Ditto.
11917 * config/ia64/linux.mh: Ditto.
11918 * config/m68k/linux.mh: Ditto.
11919 * config/mips/linux.mh: Ditto.
11920 * config/powerpc/linux.mh: Ditto.
11921 * config/sparc/linux.mh: Ditto.
11922
11923 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
11924
11925 * win32-nat.c: Add i386-tdep.h dependency.
11926
11927 2002-01-07 Michael Snyder <msnyder@redhat.com>
11928
11929 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
11930 instead of bfd_get_arch_size. Don't bail out just because
11931 there's no exec_bfd.
11932
11933 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
11934 * p-valprint.c (pascal_object_print_value): Ditto.
11935 * somread.c (som_symtab_read): Ditto.
11936 * symfile.c (simple_free_overlay_region_table): Ditto.
11937 * valops.c (value_assign): Ditto.
11938
11939 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
11940 use tilde_expand and strerror for opening save-tracepoints file.
11941
11942 * thread-db.c (thread_db_new_objfile): Indendation fix.
11943
11944 * infptrace.c (GDB_MAX_ALLOCA): New define.
11945 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
11946 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
11947 can be overridden with whatever value is appropriate to the host).
11948 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
11949 alloca to allocate potentially large buffer.
11950 * rs6000-nat.c (child_xfer_memory): Ditto.
11951 * symm-nat.c (child_xfer_memory): Ditto.
11952 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
11953
11954 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
11955
11956 From Nick Clifton <nickc@redhat.com>
11957 * d10v-tdep.c: Set STACK_START to 0x200bffe.
11958
11959 2002-01-07 Michael Snyder <msnyder@redhat.com>
11960
11961 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
11962 Don't use exec_bfd if it's NULL.
11963
11964 2002-01-06 Mark Kettenis <kettenis@gnu.org>
11965
11966 * valops.c (value_arg_coerce): Fix formatting.
11967
11968 2002-01-06 Andrew Cagney <ac131313@redhat.com>
11969
11970 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
11971 * gnu-nat.c: Ditto.
11972
11973 2002-01-06 Andrew Cagney <ac131313@redhat.com>
11974
11975 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
11976 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
11977 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
11978 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
11979 z8k-coff have not been multi-arched. Update z8k-coff build
11980 status.
11981
11982 2002-01-06 Andrew Cagney <ac131313@redhat.com>
11983
11984 * MAINTAINERS: Mark a29k target as obsolete.
11985 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
11986 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
11987 comments.
11988 * NEWS: Note that a29k targets are obsolete.
11989 * a29k-tdep.c: Mark as obsolete.
11990 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
11991 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
11992 a29k-*-vxworks* targets as obsolete.
11993 * remote-adapt.c: Obsolete.
11994 * remote-eb.c: Obsolete.
11995 * remote-mm.c: Obsolete.
11996 * remote-udi.c: Obsolete.
11997 * config/a29k/a29k-udi.mt: Obsolete.
11998 * config/a29k/a29k.mt: Obsolete.
11999 * config/a29k/tm-a29k.h: Obsolete.
12000 * config/a29k/tm-vx29k.h: Obsolete.
12001 * config/a29k/vx29k.mt: Obsolete.
12002
12003 2002-01-05 Andrew Cagney <ac131313@redhat.com>
12004
12005 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
12006 with BFD_ENDIAN_BIG.
12007
12008 2002-01-05 Andrew Cagney <ac131313@redhat.com>
12009
12010 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
12011 * configure, config.in: Re-generate.
12012 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
12013 * defs.h: Do not include <endian.h>.
12014
12015 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
12016
12017 * acconfig.h (HAVE_PT_GETXMMREGS): New.
12018 * config.in: Regenerate.
12019 * configure.in: Update copyright years.
12020 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
12021 * configure: Regenerate.
12022 * i386bsd-nat.c: Update copyright years.
12023 (fill_gregset): Use regcache_collect.
12024 (fetch_inferior_registers): Only fetch integer registers
12025 if requested to do so. Add support for XMM registers
12026 using PT_GETXMMREGS.
12027 (store_inferior_registers): Only store integer registers
12028 if requested to do so. Add support for XMM registers
12029 using PT_SETXMMREGS.
12030 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
12031 (store_inferior_registers): Remove.
12032 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
12033 (fetch_elfcore_registers): New function.
12034 (i386nbsd_elfcore_fns): New.
12035 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
12036 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
12037 i386bsd-nat.o.
12038 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
12039 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
12040 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
12041 * config/i386/tm-nbsd.h: Update copyright years.
12042 (HAVE_SSE_REGS): Define.
12043 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
12044 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
12045 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
12046 (SIGCONTEXT_PC_OFFSET): Remove.
12047 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
12048
12049 2002-01-05 Andrew Cagney <ac131313@redhat.com>
12050
12051 * configure.tgt: Remove powerpc-*-macos* target.
12052 * config/m68k/xm-mpw.h: Delete file.
12053 * config/xm-mpw.h: Delete file.
12054 * ser-mac.c: Delete file.
12055 * mpw-make.sed: Delete file.
12056 * mpw-config.in: Delete file.
12057 * mac-xdep.c: Delete file.
12058 * mac-gdb.r: Delete file.
12059 * mac-defs.h: Delete file.
12060 * mac-nat.c: Delete file.
12061 * config/powerpc/macos.mh: Delete file.
12062 * config/powerpc/macos.mt: Delete file.
12063 * config/powerpc/nm-macos.h: Delete file.
12064 * config/powerpc/tm-macos.h: Delete file.
12065 * source.c (openp, open_source_file): Remove obsolete code.
12066 * top.c (gdb_readline): Ditto.
12067 * utils.c (query): Ditto.
12068 * event-top.c (display_gdb_prompt): Ditto.
12069 * Makefile.in (ser-mac.o): Delete obsolete target.
12070 * NEWS: Update.
12071
12072 2002-01-04 Andrew Cagney <ac131313@redhat.com>
12073
12074 * defs.h (BIG_ENDIAN): Delete macro definition.
12075 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
12076 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
12077 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
12078 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
12079 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
12080 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
12081 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
12082 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
12083 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
12084 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
12085 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
12086 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
12087 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
12088 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
12089 * gdbarch.c: Re-generate.
12090
12091 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
12092
12093 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
12094 for core files.
12095
12096 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
12097
12098 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
12099
12100 2002-01-04 Andrew Cagney <ac131313@redhat.com>
12101
12102 * value.h (value_ptr): Delete typedef.
12103
12104 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
12105
12106 * i386nbsd-nat.c: Update copyright years.
12107 Include i386-tdep.h.
12108
12109 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
12110
12111 * stabsread.c: Update copyright years.
12112
12113 From Debashis Mahata <debashis.mahata@wipro.com>:
12114 (read_struct_fields): Deal with Sun C compiler erroneous stab
12115 output for structs and unions.
12116 Fix PR gdb/269.
12117
12118 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
12119
12120 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
12121 prototype.
12122
12123 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
12124
12125 * cp-abi.c: Fix whitespace.
12126 (baseclass_offset): New wrapper function.
12127 * cp-abi.h (baseclass_offset): Add prototype.
12128 (struct cp_abi_ops): Add baseclass_offset pointer.
12129
12130 * valops.c (vb_match): Move to...
12131 * gnu-v2-abi.c (vb_match): here.
12132 * valops.c (baseclass_offset): Move to...
12133 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
12134
12135 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
12136
12137 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
12138 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
12139 * hpacc-abi.c (init_hpacc_ops): Likewise.
12140
12141 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
12142
12143 * valops.c (find_overload_match): Accept obj as a
12144 reference parameter. Update it before returning.
12145 * value.h (find_overload_match): Update prototype.
12146 * eval.c (evaluate_subexp_standard): Pass object to
12147 find_overload_match by reference.
12148
12149 2002-01-03 Andrew Cagney <ac131313@redhat.com>
12150
12151 * valarith.c: Replace value_ptr with struct value pointer. Remove
12152 register attribute from value declarations.
12153 * valops.c: Ditto.
12154 * value.h: Ditto.
12155 * scm-lang.c (scm_lookup_name): Ditto.
12156
12157 2002-01-03 Michael Snyder <msnyder@redhat.com>
12158
12159 Abstract the functionality of iterating over mapped memory
12160 regions into a general purpose iterator function.
12161 * procfs.c (iterate_over_mappings): New function, general purpose
12162 iterator for memory sections.
12163 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
12164 (solib_mappings_callback): New function, callback for above.
12165 (info_proc_mappings): Reimpliment using iterate_over_mappings.
12166 (info_mappings_callback): New function, callback for above.
12167
12168 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
12169
12170 2002-01-01 Mark Kettenis <kettenis@gnu.org>
12171
12172 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
12173 * i386-tdep.c: Include "elf-bfd.h".
12174 (process_note_abi_tag_sections): New function.
12175 (i386_gdbarch_init): Add code to recognize various OS/ABI
12176 combinations.
12177
12178 * maint.c (_initialize_maint_cmds): Add missing \ in
12179 string-literal.
12180
12181 For older changes see ChangeLog-2001
12182 \f
12183 Local Variables:
12184 mode: change-log
12185 left-margin: 8
12186 fill-column: 74
12187 version-control: never
12188 End: