* config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
[binutils-gdb.git] / gdb / ChangeLog
1 2002-10-18 Daniel Jacobowitz <drow@mvista.com>
2
3 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
4 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
5 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
6 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
7
8 2002-10-09 David Carlton <carlton@math.stanford.edu>
9
10 * symfile.h: Add opaque declaration for struct obstack.
11 Declare obsavestring to take a const char *.
12 * symfile.c (obsavestring): Make first argument a const char *.
13
14 2002-10-16 Adam Fedor <fedor@gnu.org>
15
16 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
17 names when matching breakpoints in current file.
18
19 2002-10-16 Kevin Buettner <kevinb@redhat.com>
20
21 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
22 (read_tag_pointer_type): Add address class support.
23 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
24 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
25 New methods.
26 * gdbarch.h, gdbarch.c: Regenerate.
27 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
28 (make_type_with_address_space, recursive_type_dump): Add address
29 class support.
30 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
31 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
32 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
33
34 2002-10-16 Klee Dienes <kdienes@apple.com>
35
36 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
37 to get the last character of a char[] buffer, not
38 name[sizeof(vptr_name)-1].
39
40 2002-10-14 Adam Fedor <fedor@gnu.org>
41
42 * symtab.h: New objc_specific struct.
43 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
44 (SYMBOL_DEMANGLED_NAME): Likewise.
45
46 2002-10-14 Adam Fedor <fedor@gnu.org>
47
48 * symfile.c (init_filename_language_table): Add ObjC file extension.
49
50 2002-10-14 Adam Fedor <fedor@gnu.org>
51
52 * utils.c (puts_filtered_tabular): New function.
53 (fprintf_symbol_filtered): Get ObjC demangled name.
54 * defs.h (puts_filtered_tabular): Declared.
55
56 2002-10-14 Kevin Buettner <kevinb@redhat.com>
57
58 * c-lang.h (c_type_print_varspec_prefix): Delete.
59 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
60 ``need_post_space'' parameter. Adjust all callers.
61
62 2002-10-14 Daniel Jacobowitz <drow@mvista.com>
63
64 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
65 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
66 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
67 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
68
69 2002-10-13 Adam Fedor <fedor@gnu.org>
70
71 * source.c (print_source_lines): Update comments.
72
73 2002-10-13 Adam Fedor <fedor@gnu.org>
74
75 * valops.c (value_of_local): New function.
76 (value_of_this): Use it.
77 * value.h (value_of_local): Declared.
78
79 2002-10-13 Adam Fedor <fedor@gnu.org>
80
81 * parse.c: (length_of_subexp, prefixify_subexp): Handle
82 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
83
84 2002-10-12 Adam Fedor <fedor@gnu.org>
85
86 * language.c (binop_result_type): Add language_objc to case.
87 (integral_type): Likewise.
88 (character_type): Likewise.
89 (string_type): Likewise.
90 (boolean_type): Likewise.
91 (structured_type): Likewise.
92 (binop_type_check): Likewise.
93
94 2002-10-11 Adam Fedor <fedor@gnu.org>
95
96 * printcmd.c (address_info): Print 'self' for ObjC.
97
98 2002-10-11 Adam Fedor <fedor@gnu.org>
99
100 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
101 OP_SELF.
102
103 2002-10-11 Adam Fedor <fedor@gnu.org>
104
105 * language.h (CAST_IS_CONVERSION): Add language_objc.
106
107 2002-10-11 Adam Fedor <fedor@gnu.org>
108
109 * defs.h (enum language): Add language_objc.
110
111 2002-10-11 Klee Dienes <kdienes@apple.com>
112
113 * findvar.c (read_memory_typed_address): New function.
114 * gdbcore.h (read_memory_typed_address): Add prototype.
115 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
116 to read a value destined for a CORE_ADDR, not read_memory_integer.
117 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
118 (f77_get_dynamic_lowerbound): Ditto.
119
120 2002-10-11 Martin M. Hunt <hunt@redhat.com>
121
122 * utils.c (string_to_core_addr): After turning string into
123 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
124 which will do necessary sign-extension, etc.
125
126 2002-10-11 Daniel Jacobowitz <drow@mvista.com>
127
128 * c-exp.y (THIS): Delete token and grammar rule.
129 (yylex): Don't return THIS.
130 * cp-valprint.c (vtbl_ptr_name_old): Delete.
131 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
132 * demangle.c (cplus_markers): Update comment. Put '$'
133 first. Remove CPLUS_MARKER.
134 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
135 * jv-exp.y (THIS): Delete token and grammar rule.
136 (yylex): Don't return THIS.
137 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
138 * objc-exp.y (THIS): Delete token and grammar rule.
139 (yylex): Don't return THIS.
140 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
141 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
142 (read_member_functions): Likewise for opname.
143 (read_tilde_fields): Use is_cplus_marker.
144
145 * defs.h (CPLUS_MARKER): Don't define.
146 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
147 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
148 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
149 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
150 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
151
152 * config/i386/tm-i386v4.h: Delete file.
153 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
154 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
155 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
156 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
157 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
158 * config/i386/i386sco5.mt (TM_FILE): Likewise.
159 * config/i386/i386v4.mt (TM_FILE): Likewise.
160 * config/i386/ncr3000.mt (TM_FILE): Likewise.
161
162 2002-10-10 Marko Mlinar <markom@opencores.org>
163
164 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
165 accidentially not commited 2002-10-09
166 * gdbarch.h, gdbarch.c: Re-generate.
167
168 2002-10-09 Marko Mlinar <markom@opencores.org>
169
170 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
171 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
172 * gdbarch.h, gdbarch.c: Re-generate.
173
174 2002-10-08 Petr Sorfa <petrs@caldera.com>
175
176 Revised and re-submitted by John Wolfe <jlw@caldera.com>
177
178 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
179 so we can work on more than one compilation unit at a time. This
180 helps prepare GDB to handle inter-CU die references.
181 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
182 the code to be defined before struct comp_unit_head.
183 (comp_unit_head): Added new members - offset, cu_head,
184 begin_die, next and dwarf2_abbrevs.
185 (dwarf2_abbrevs): Removed single static var; now member of
186 struct comp_unit_head.
187 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
188 members.
189 (psymtab_to_symtab_1): Changed to work with the new
190 struct comp_unit_head.
191 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
192 constructs the dwarf2_abbrevs[] inside the cu_header.
193 (dwarf2_empty_abbrev_table): Now expects a ptr to a
194 dwarf2_abbrev table to clean up.
195 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
196 handling of dwarf2_abbrevs inside the cu_header.
197 (read_partial_die): Now supports the call to the new
198 dwarf2_lookup_abbrev.
199 (read_full_die): Now supports the call to the new
200 dwarf2_lookup_abbrev.
201
202 2002-10-06 Christopher Faylor <cgf@redhat.com>
203
204 * Makefile.in (install-gdbtk): Add missing continuation backslash to
205 insure that shell variables, such as "transformed_name" are propagated
206 to later shell statements in rule.
207
208 2002-10-06 Mark Kettenis <kettenis@gnu.org>
209
210 * config/i386/nm-i386sco.h: Add protection against
211 multiple-inclusion. Include "i386/nm-i386v.h".
212 (REGISTER_U_ADDR): Remove define.
213 (i386_register_u_addr): Remove prototype.
214
215 2002-10-04 Michael Snyder <msnyder@redhat.com>
216
217 * m32r-stub.c (handle_exception): Make sure exception is "trap"
218 before treating it as a single-step event.
219
220 2002-10-03 Adam Fedor <fedor@gnu.org>
221
222 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
223 (objc_demangle): Remove assignment in if statements, Replace
224 free with xfree.
225 (add_msglist): Likewise.
226 (end_msglist): Likewise.
227 (complare_selectors): Likewise.
228 (selectors_info): Likewise.
229 (compare_classes): Likewise.
230 (classes_info): Likewise.
231 (print_object_command): Likewise.
232 (find_objc_msgcall_submethod): Replace PTR with void *.
233 * objc-lang.h: Remove check for __STDC__.
234
235 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
236
237 * ui-out.h (ui_out_field_fmt_int): New prototype.
238 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
239 of field width and alignment.
240 * stack.c (print_frame_info_base): When printing frame level, use
241 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
242 PR gdb/192
243
244 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
245
246 * MAINTAINERS: Add self to Write After Approval list.
247
248 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
249
250 * infcmd.c (interrupt_target_command_wrapper): Delete.
251 (interrupt_target_command): Make non static.
252 (nofp_registers_info): Make static.
253 * stack.c (return_command_wrapper): Delete.
254 (return_command): Make non static.
255
256 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
257
258 * event-top.c (gdb_setup_readline): New function. Code moved from
259 _initialize_event_loop().
260 (_initialize_event_loop): Call gdb_setup_readline().
261
262 2002-10-02 Andrew Cagney <ac131313@redhat.com>
263
264 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
265 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
266 * gdbarch.h, gdbarch.c: Re-generate.
267
268 2002-10-02 Daniel Jacobowitz <drow@mvista.com>
269
270 Fix PR gdb/778
271 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
272 before recursing.
273 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
274 of fill_in_vptr_fieldno.
275
276 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
277
278 * inferior.h (registers_info, stepi_command, nexti_command,
279 continue_command, interrupt_target_command): Export from infcmd.c.
280 * frame.h (args_info, selected_frame_level_changed_hook,
281 return_command): Export from stack.c.
282 * v850ice.c (stepi_command, nexti_command, continue_command): use
283 prototypes from inferior.h.
284 * tracepoint.c (registers_info, args_info, locals_info): Use
285 prototypes from frame.h and inferior.h.
286 * Makefile.in (mi-main.o): Add dependency on frame.h.
287
288 2002-10-02 Andrew Cagney <ac131313@redhat.com>
289
290 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
291 value in register 3 adjusted by ppc_gp0_regnum.
292
293 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
294
295 2002-10-02 Marko Mlinar <markom@opencores.org>
296
297 * MAINTAINERS: Add myself to the Write After Approval list.
298
299 2002-10-01 Alexandre Oliva <aoliva@redhat.com>
300
301 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
302 of the section for the N64 ABI, fixed.
303
304 * config/mips/tm-irix6.h: Include solib.h.
305
306 2002-10-01 Elena Zannoni <ezannoni@redhat.com>
307
308 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
309 GNU operators.
310
311 2002-10-01 Andrew Cagney <ac131313@redhat.com>
312
313 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
314 and that "mi0" syntax has been removed.
315
316 2002-09-30 David Carlton <carlton@math.stanford.edu>
317
318 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
319 * ppc-sysv-tdep.c: #include "gdb_string.h".
320 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
321 pacify GCC.
322
323 2002-10-01 Andrew Cagney <ac131313@redhat.com>
324
325 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
326 "vrsave"'s register number.
327
328 2002-09-30 Andrew Cagney <ac131313@redhat.com>
329
330 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
331 use frame_unwind_signed_register to obtain the PC.
332 (mips_frame_chain): Handle a generic dummy frame.
333 (mips_init_extra_frame_info): When a generic dummy frame, don't
334 re-compute the frame base.
335 (mips_pop_frame): Handle generic dummy frames.
336 (mips_gdbarch_init): When generic dummy frames, set
337 use_generic_dummy_frames, push_dummy_frame to
338 generic_push_dummy_frame, pc_in_call_dummy to
339 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
340 generic_save_dummy_frame_tos.
341
342 2002-09-30 Andrew Cagney <ac131313@redhat.com>
343
344 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
345 against TOP when TOP was explictly set.
346 (generic_push_dummy_frame): Set TOP to zero.
347
348 2002-09-30 Elena Zannoni <ezannoni@redhat.com>
349
350 * event-loop.c (start_event_loop): Rename variable 'result' to
351 'gdb_result', to avoid conflicts with upcoming intepreters changes.
352
353 2002-09-30 Keith Seitz <keiths@redhat.com>
354
355 * gdb-events.sh (selected_thread_changed): New event.
356 * gdb-events.c: Regenerated.
357 * gdb-events.h: Regenerated.
358
359 2002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
360
361 * MAINTAINERS: Add self to Write After Approval list.
362
363 2002-09-30 Fernando Nasser <fnasser@redhat.com>
364
365 * disasm.c: New file.
366 * disasm.h: New file.
367 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
368 (compare_lines): Ditto.
369 (dump_insns): Ditto.
370 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
371 argument.
372 (do_assembly_only): Ditto.
373 (do_disassembly): Renamed to gdb_disassembly and moved to
374 disasm.c. Sdded uiout argument.
375 * Makefile.in: Add new files. Reorder SFILES list. Update
376 dependencies. Include libgdb.a later in the insight executable.
377
378 2002-09-29 Andrew Cagney <ac131313@redhat.com>
379
380 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
381 bfd/elf64-alpha-fbsd.c.
382
383 2002-09-29 Andrew Cagney <ac131313@redhat.com>
384
385 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
386 i386gnu-tdep.c.
387
388 2002-09-29 Andrew Cagney <ac131313@redhat.com>
389
390 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
391 __FUNCTION__.
392 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
393 function name.
394 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
395 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
396 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
397 (S_msg_sig_post_reply): Ditto.
398
399 2002-09-28 Corinna Vinschen <vinschen@redhat.com>
400
401 * sh-tdep.c (sh_use_struct_convention): Use definition according
402 to ABI.
403 (sh_push_arguments): Store in register with correct endianess.
404 (sh_default_store_return_value): Ditto.
405 (sh_gdbarch_init): Set sizeof long double to 8.
406
407 2002-09-27 Mark Kettenis <kettenis@gnu.org>
408
409 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
410 Fix some whitespace problems.
411
412 2002-09-27 David Carlton <carlton@math.stanford.edu>
413
414 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
415 (mcore-tdep.o): Ditto.
416 (ns32k-tdep.o): Ditto.
417 (ns32knbsd-tdep.o): Ditto.
418 (sh3-rom.o): Ditto.
419 (vax-tdep.o): Ditto.
420 * cris-tdep.c: #include "gdb_string.h"
421 * mcore-tdep.c: Ditto.
422 * ns32k-tdep.c: Ditto.
423 * ns32knbsd-tdep.c: Ditto.
424 * sh3-rom.c: Ditto.
425 * vax-tdep.c: Ditto.
426
427 2002-09-27 David Carlton <carlton@math.stanford.edu>
428
429 * config/djgpp/fnchange.lst: Add entries for
430 gdb/testsuite/gdb.c++/m-static files.
431
432 2002-09-27 Jim Wilson <wilson@redhat.com>
433
434 * MAINTAINERS: Add myself to the Write After Approval list.
435
436 2002-09-26 Martin M. Hunt <hunt@redhat.com>
437
438 * mips-tdep.c (find_proc_desc): Initialize startaddr.
439
440
441 2002-09-26 Andrew Cagney <ac131313@redhat.com>
442
443 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
444 frame.
445
446 2002-09-26 Andrew Cagney <ac131313@redhat.com>
447
448 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
449 (rs6000_struct_return_address): Delete variable.
450 (rs6000_store_struct_return): Update.
451 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
452 deprecated_extract_struct_value_address.
453 (rs6000_frame_align): New function.
454 (rs6000_gdbarch_init): Set frame_align.
455
456 2002-09-26 Andrew Cagney <ac131313@redhat.com>
457
458 From Grace Sainsbury <graces@redhat.com>:
459 * Makefile.in (gdbtk-main.o): New target.
460 (gdb.o): New target.
461 (main_h): Define.
462 (main.o): Update dependencies.
463 (gdb$(EXEEXT)): Add gdb.o.
464 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
465 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
466 (SUBDIR_GDBTK_CLEAN): Set.
467 (install-gdbtk): Install the insight binary.
468 (uninstall-gdbtk): New target.
469 (all-gdbtk, clean-gdbtk): New rule.
470 * top.c (use_windows): Default to zero.
471 * main.c: Include "main.h".
472 (main): Delete.
473 (struct captured_main_args): Delete.
474 (gdb_main): New function.
475 * main.h: New file.
476 * gdb.c: New File.
477
478 2002-09-25 Andrew Cagney <cagney@redhat.com>
479
480 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
481 (frame_map_regnum_to_name): New function.
482 (frame_map_name_to_regnum): New function.
483 * frame.h (frame_map_name_to_regnum): Declare.
484 (frame_map_regnum_to_name): Declare.
485 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
486 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
487 * parse.c: Do not include "builtin-regs.h".
488 (target_map_name_to_register): Delete function.
489 (write_dollar_variable): Use frame_map_name_to_regnum.
490 * parser-defs.h (target_map_name_to_register): Delete declaration.
491 * expprint.c: Include "frame.h".
492 (print_subexp): Use frame_map_regnum_to_name.
493 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
494 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
495
496 2002-09-25 Andrew Cagney <ac131313@redhat.com>
497
498 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
499 wasn't saved, and the next innermost frame is a dummy, return the
500 dummy frame's link register.
501
502 2002-09-24 Jim Blandy <jimb@redhat.com>
503
504 Fix from Paul Breed:
505 * main.c (captured_main): Add a `break' after the case for 'b'.
506
507 2002-09-24 Keith Seitz <keiths@redhat.com>
508
509 * varobj.c (c_type_of_child): Use get_target_type instead
510 of TYPE_TARGET_TYPE.
511
512 2002-09-22 Fernando Nasser <fnasser@redhat.com>
513
514 * source.c (get_current_or_default_source_symtab_and_line): Remove
515 function.
516 (set_default_source_symtab_and_line): New function. Attempts to
517 determine a source file to list lines from if one is not currently
518 defined.
519 (get_current_source_symtab_and_line): Initialize sal.pc and
520 sal.end fields.
521 (set_current_source_symtab_and_line): Mark argument as const.
522 * source.h: Update declarations and comments.
523 * linespec.c (decode_line_1): Replace call to removed routine above.
524 * stack.c (print_frame_info_base): Ditto.
525 * cli/cli-cmds.c (edit_command): Ditto.
526 (list_command): Ditto.
527
528 2002-09-22 Fernando Nasser <fnasser@redhat.com>
529
530 * source.c (get_current_or_default_source_symtab_and_line): Initialize
531 sal.pc and sal.end fields.
532 (get_current_or_default_source_symtab_and_line): Ditto.
533 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
534 so we do not cause a new source symtab to be searched for (reverting an
535 unintentional change from the 2002-09-20 patch).
536 * scm-lang.c (scm_unpac): Ditto.
537
538 2002-09-21 Andrew Cagney <cagney@redhat.com>
539
540 * complaints.c (symfile_explanations): Remove new-line from
541 ``isolated_message''.
542 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
543 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
544
545 2002-09-20 Nick Clifton <nickc@redhat.com>
546
547 * NEWS: Announce that V850EA ISA is no longer supported.
548 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
549
550 2002-09-20 David Carlton <carlton@math.stanford.edu>
551
552 * Makefile.in (c-lang.o): Correct dependencies.
553 (utils.o): Gather dependencies.
554 (charset.o): Move.
555 * c-lang.c: #include "gdb_string.h"
556
557 2002-09-20 Fernando Nasser <fnasser@redhat.com>
558
559 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
560 * cli/cli-cmds.c (list_command): New function. Implements the new
561 cli edit command.
562 (_init_cli_cmds): Add new command definition.
563 * gdb.1: Document edit command.
564 * doc/gdb.texinfo: Document edit command.
565
566 2002-09-20 Fernando Nasser <fnasser@redhat.com>
567
568 * source.c: Make global variables current_source_symtab and
569 current_source_line static.
570 (list_command): Moved to cli/cli-cmds.c.
571 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
572 (get_first_line_listed): New accessor function.
573 (get_lines_to_list): New accessor function.
574 (get_current_source_symtab_and_line): New function. Retrieves the
575 position in the source code that we consider current.
576 (get_current_or_default_source_symtab_and_line): New function.
577 Like the above but attempts to determine a default position if one
578 is not currently defined.
579 (set_current_source_symtab_and_line): New function. Sets the source
580 code position considered current and returns the previously set one.
581 (clear_current_source_symtab_and_line): Reset stored information about
582 a current source line.
583 (_initialize_source): Remove registration for the "list" command and
584 its alias.
585 * source.h: Add declarations for the new functions above.
586 * symtab.h: Remove declarations for the global variables mentioned
587 above.
588 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
589 obtain current source line.
590 * linespec.c (decode_line_1): Ditto.
591 * macroscope.c (default_macro_scope): Ditto.
592 * scm-lang.c (scm_unpac): Ditto.
593 * stack.c (print_frame_info_base): Ditto.
594 * symfile.c (clear_symtab_users): Ditto.
595 * symtab.c (decode_line_spec): Ditto.
596 * cli/cli-cmds.c (list_command): Moved here from source.c.
597 (ambiguous_line_spec): Moved here from source.c.
598 (_init_cli_cmds): Add definition for "list" and its alias.
599 * Makefile.in: Update dependencies.
600
601 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
602
603 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
604 with what gcc thinks is correct.
605
606 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
607
608 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
609 multiple register push instruction.
610
611 2002-09-19 Jim Blandy <jimb@redhat.com>
612
613 Add support for distinct host and target character sets.
614 * charset.c, charset.h: New files.
615 * c-exp.y: #include "charset.h".
616 (yylex): Convert character and string literals to the target
617 character set, before returning them as the semantic value of the
618 token.
619 * c-lang.c: #include "charset.h".
620 (c_emit_char): Use charset-specific methods to recognize
621 characters with backslash escape forms, to decide which characters
622 to print literally and which to print using numeric escape
623 sequences, and to convert target characters to host characters
624 before printing.
625 * utils.c: #include "charset.h".
626 (no_control_char_error): New function.
627 (parse_escape): Use charset-specific methods to recognize
628 backslash escapes, parse `control character' notation, and convert
629 characters from the host character set to the target character set.
630 * configure.in: Set the default host character set.
631 Check where to find iconv, and what its argument types might be.
632 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
633 * Makefile.in (SFILES): List charset.c.
634 (COMMON_OBS): List charset.o.
635 (charset.o): New rule.
636 (charset_h): New header dependency variable.
637 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
638 (LIBICONV): New variable, set by configure.
639 (CLIBS): Include $(LIBICONV) here.
640 * aclocal.m4, config.in, configure: Regenerated.
641
642 2002-09-19 Joel Brobecker <brobecker@gnat.com>
643
644 * ada-exp.y: Add missing semicolons to end rules. Fixes a
645 bison 1.35 warning.
646
647 2002-09-19 Richard Earnshaw <rearnsha@arm.com>
648
649 * gdb_mbuild.sh: New file.
650
651 2002-09-19 Andrew Cagney <ac131313@redhat.com>
652
653 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
654
655 2002-09-18 Andrew Cagney <ac131313@redhat.com>
656
657 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
658 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
659 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
660 valops.c, value.h: Revert previous change.
661
662 2002-09-18 Michael Snyder <msnyder@redhat.com>
663
664 Preliminary support for Objective-C:
665 * defs.h (language_objc): New enum value.
666 (puts_filtered_tabular): Declaration only, exported from utils.c.
667 (skip_quoted): Delete, declared in completer.h.
668 * c-exp.y: Include completer.h.
669 * p-exp.y: Ditto.
670 * jv-exp.y: Ditto.
671 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
672 New operator enum values.
673 * language.h (CAST_IS_CONVERSION): Test for language_objc.
674 * language.c (binop_result_type): Handle language_objc case.
675 (integral_type, character_type, string_type, boolean_type,
676 structured_type, binop_type_check): Ditto.
677 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
678 (struct objc_specific): Add to general_symbol_info.
679 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
680 (SYMBOL_DEMANGLED_NAME): Handle objc case.
681 * parser-defs.h (struct objc_class_str): New struct type.
682 (start_msglist, end_msglist, add_msglist): Declaration only,
683 exported from objc-lang.c.
684 * value.h (value_of_local, value_nsstring,
685 call_function_by_hand_expecting_type): Exported from valops.c.
686 * valops.c (find_function_addr): Export.
687 (call_function_by_hand_expecting_type): New function.
688 (value_of_local): New function.
689 * symfile.c (init_filename_language_table): Add ".m" extension
690 for Objective-C.
691 * utils.c (puts_filtered_tabular): New function.
692 (fprintf_symbol_filtered): Add objc demangling support (disabled).
693 (set/show demangle): Extend help-string to refer to ObjC.
694 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
695 * stabsread.c (symbol_reference_defined): Objective-C symbols
696 may contain colons: make allowances when scanning stabs strings
697 for colons.
698 (objc_find_colon): New function.
699 * printcmd.c (address_info): If language == objc then print
700 "self" instead of "this".
701 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
702 OP_NSSTRING, and OP_SELF.
703 (prefixify_subexp): Ditto.
704 * source.c (print_source_lines): Mention objc in comment.
705 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
706 method names.
707
708 2002-09-18 Andrew Cagney <ac131313@redhat.com>
709
710 * complaints.h: Update copyright.
711 (struct complaints): Declare.
712 (struct complaint): Make `message' constant.
713 (internal_complaint): Declare.
714 (complaint): Declare.
715 (complaint_root): Delete declaration.
716 (symfile_complaints): Delete declaration.
717 (struct complaints): Add opaque declaration.
718 (clear_complaints): Add a complaints parameter.
719 * complaints.c: Update copyright.
720 (enum complaint_series): Define.
721 (complaint_root): Delete.
722 (struct complaints): Define.
723 (complaint_sentinel, symfile_complaint_book): New variables.
724 (symfile_explanations, symfile_complaints): New variables.
725 New variables.
726 (get_complaints): New function.
727 (vcomplaint): New function.
728 (complaint): New function.
729 (internal_complaint): New function.
730 (complain): Call vcomplain with symfile_complaint.
731 (clear_complaints): Rewrite.
732 (_initialize_complaints): Use add_setshow_command.
733 * Makefile.in (complaints.o): Update dependencies.
734 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
735 to call to clear_complaints.
736 (new_symfile_objfile, reread_symbols): Ditto.
737 (oldsyms_complaint): Delete.
738 (empty_symtab_complaint, unknown_option_complaint): Delete.
739 (free_named_symtabs): Use complaint instead of complain.
740
741 2002-09-18 Michael Snyder <msnyder@redhat.com>
742
743 Contributed by Apple Computer, Inc. Merged with current sources
744 by Adam Fedor <fedor@doc.com> [cagney].
745
746 * objc-lang.c: First clean-up round: comments, indentation.
747 * objc-lang.h: Ditto.
748 * objc-lang.y: Ditto.
749
750 2002-09-18 Andrew Cagney <ac131313@redhat.com>
751
752 * maint.c (maintenance_internal_error): Print the parameter as the
753 error message.
754 (maintenance_internal_warning): New function.
755 (_initialize_maint_cmds): Add command `maint internal-warning'.
756
757 * defs.h (internal_warning, internal_vwarning): Declare.
758 * utils.c (struct internal_problem): Define.
759 (internal_vproblem): New function.
760 (internal_warning): New function.
761 (internal_vwarning): New function.
762 (internal_warning_problem, internal_error_problem): New variables.
763 (internal_verror): Just call internal_vproblem.
764
765 2002-09-18 Michael Snyder <msnyder@redhat.com>
766
767 * objc-lang.c: New file, support for Objective-C.
768 Preliminary check-in, not yet integrated into gdb.
769 * objc-lang.h: New file.
770 * objc-exp.y: New file.
771
772 2002-09-18 Andrew Cagney <ac131313@redhat.com>
773
774 * infrun.c (signal_stop_update): Convert definition to ISO C.
775 (signal_print_update): Ditto.
776 (signal_pass_update): Ditto.
777 * inflow.c (terminal_save_ours): Ditto.
778
779 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
780 comments.
781
782 * config/djgpp/fnchange.lst: Handle name clashes between
783 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
784 bfd/coff-tic80.c.
785
786 * i386-linux-tdep.h: Fix tipo.
787
788 2002-09-18 Adam Fedor <fedor@gnu.org>
789
790 * MAINTAINERS: Add myself to the Write After Approval list.
791
792 2002-09-18 Jim Blandy <jimb@redhat.com>
793
794 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
795 texthigh and textlow to reader-specific structs caused
796 objfile_relocate to miss them. This is fixable, but the work that
797 the change was supposed to prepare GDB for never got done anyway.
798
799 2002-09-18 David Carlton <carlton@math.stanford.edu>
800
801 * MAINTAINERS: Alphabetize Write After Approval list.
802
803 2002-09-18 Daniel Jacobowitz <drow@mvista.com>
804
805 Fix PR gdb/709
806 * values.c (value_static_field): Call read_var_value.
807
808 2002-09-18 Andrew Cagney <ac131313@redhat.com>
809
810 * valops.c (hand_function_call): Align the initial stack pointer
811 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
812 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
813 return value.
814 * mips-tdep.c (mips_frame_align): New function.
815 (mips_gdbarch_init): Set frame_align.
816 * gdbarch.sh (FRAME_ALIGN): New method.
817 * gdbarch.h, gdbarch.c: Re-generate.
818
819 2002-09-18 Michal Ludvig <mludvig@suse.cz>
820
821 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
822 registers.
823
824 2002-09-17 Andrew Cagney <ac131313@redhat.com>
825
826 * NEWS: Mention that MIPS $fp behavior changed.
827 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
828 reference to FP_REGNUM.
829 (mipsnbsd_cannot_store_register): Ditto.
830 * mips-linux-nat.c: Update copyright.
831 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
832 (mips_linux_cannot_store_register): Ditto.
833 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
834 * config/mips/tm-mips.h: Update copyright.
835 (FP_REGNUM): Delete macro.
836 (MIPS_REGISTER_NAMES): Replace "fp" with "".
837 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
838 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
839 (mips_r3041_reg_names, mips_r3051_reg_names)
840 (mips_r3081_reg_names): Replace "fp" with "".
841 Fix PR gdb/480.
842
843 2002-09-17 Theodore A. Roth <troth@verinet.com>
844
845 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
846 generic_read_register_dummy() (PR gdb/703).
847 (avr_push_return_address): #if 0 out unused vars.
848 (avr_gdbarch_init): Enable use of avr_push_return_address().
849
850 2002-09-17 Michael Snyder <msnyder@redhat.com>
851
852 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
853 RTE will take care of it.
854
855 2002-09-17 Andrew Cagney <ac131313@redhat.com>
856
857 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
858 invalid, return SP_REGNUM.
859
860 2002-09-17 Michael Snyder <msnyder@redhat.com>
861
862 * mips-tdep.c (mips_pop_frame): Read saved values of floating
863 point registers without sign extension.
864
865 2002-09-17 Andrew Cagney <cagney@redhat.com>
866
867 * blockframe.c (deprecated_read_register_dummy): Rename
868 generic_read_register_dummy.
869 * frame.c (frame_unwind_signed_register): New function.
870 (frame_unwind_unsigned_register): New function.
871 * frame.h (frame_unwind_signed_register): Declare.
872 (frame_unwind_unsigned_register): Declare.
873 (deprecated_read_register_dummy): Rename
874 generic_read_register_dummy.
875
876 * h8300-tdep.c (h8300_frame_chain): Update.
877 (h8300_frame_saved_pc): Update.
878 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
879 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
880 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
881 (s390_frame_chain): Update.
882 * v850-tdep.c (v850_find_callers_reg): Update.
883 (v850_frame_saved_pc): Update.
884 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
885 (m32r_find_callers_reg): Update.
886 (m32r_frame_saved_pc): Update.
887 * sh-tdep.c (sh_find_callers_reg): Update.
888 (sh64_get_saved_pr): Update.
889 (sh_init_extra_frame_info): Update.
890 (sh_init_extra_frame_info): Update.
891 (sh64_init_extra_frame_info): Update.
892 (sh64_init_extra_frame_info): Update.
893 * mcore-tdep.c (mcore_find_callers_reg): Update.
894 (mcore_frame_saved_pc): Update.
895 (mcore_init_extra_frame_info): Update.
896 * i386-tdep.c (i386_frame_saved_pc): Update.
897 * ia64-tdep.c (ia64_frame_saved_pc): Update.
898 (ia64_init_extra_frame_info): Update.
899 (ia64_init_extra_frame_info): Update.
900 * d10v-tdep.c (d10v_frame_saved_pc): Update.
901 * cris-tdep.c (cris_init_extra_frame_info): Update.
902 * avr-tdep.c (avr_frame_chain): Update.
903 (avr_init_extra_frame_info): Update.
904 (avr_frame_saved_pc): Update.
905 * arm-tdep.c (arm_find_callers_reg): Update.
906 (arm_init_extra_frame_info): Update.
907 (arm_frame_saved_pc): Update.
908
909 2002-09-17 Tom Tromey <tromey@redhat.com>
910
911 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
912 is "'".
913
914 2002-09-17 Corinna Vinschen <vinschen@redhat.com>
915
916 * MAINTAINERS: Remove "non multi-arched" text from h8300.
917 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
918 NEXT_PROLOGUE_INSN.
919 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
920 NEXT_PROLOGUE_INSN.
921
922 2002-09-16 Joel Brobecker <brobecker@gnat.com>
923
924 * osfsolib.c: Remove file, replaced by solib-osf.c.
925 * Makefile.in: Remove compilation rules for osfsolib.c.
926
927 2002-09-16 David Carlton <carlton@math.stanford.edu>
928
929 * cp-valprint.c (cp_print_class_method): Correct args to
930 check_stub_method_group.
931
932 2002-09-16 Corinna Vinschen <vinschen@redhat.com>
933
934 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
935 `set architecture'. Unify naming convention of functions.
936 (h8300_skip_prologue): Improve prologue analysis.
937 (h8300_push_arguments): Rewritten to more closely match GCC's
938 bizarre argument-passing behavior, along with the comment describing
939 said behavior.
940 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
941 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
942 sim, remote-e7000.c, remote-hms.c and remote.c
943
944 2002-09-15 Mark Kettenis <kettenis@gnu.org>
945
946 * i386-tdep.c (gdb_print_insn_i386): Removed.
947 (i386_print_insn): New function.
948 (i386_gdbarch_init): Set print_insn to i386_print_insns.
949 (_initialize_i386_tdep): Don't initialize tm_print_insn and
950 tm_print_insn_info.
951
952 2002-09-14 Mark Kettenis <kettenis@gnu.org>
953
954 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
955 zero.
956
957 2002-09-14 Corinna Vinschen <vinschen@redhat.com>
958
959 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
960 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
961 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
962
963 2002-09-13 Christopher Faylor <cgf@redhat.com>
964
965 * win32-nat.c (child_create_inferior): Honor 'tty' command.
966
967 2002-09-13 Daniel Jacobowitz <drow@mvista.com>
968
969 * gdbtypes.c (check_stub_method): Make static.
970 (check_stub_method_group): New function.
971 * gdbtypes.h: Update prototypes.
972 * cp-support.c: New file.
973 * cp-support.h: New file.
974
975 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
976 (update_method_name_from_physname): New function.
977 (read_member_functions): Correct method names for operators
978 and v3 constructors/destructors. Separate v2 constructors and
979 destructors.
980 * Makefile.in (stabsread.o): Update dependencies.
981 (SFILES): Add cp-support.c.
982 (COMMON_OBS): Add cp-support.o.
983 (cp_support_h, cp-support.o): Add.
984
985 * cp-valprint.c (cp_print_class_method): Call
986 check_stub_method_group instead of check_stub_method. Remove
987 extraneous QUITs.
988 * p-valprint.c (pascal_object_print_class_method): Likewise.
989 * valops.c (search_struct_method): Likewise.
990 (find_method_list, value_struct_elt_for_reference): Likewise.
991
992 2002-09-13 Andrew Cagney <cagney@redhat.com>
993
994 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
995 * gdbarch.h, gdbarch.c: Regenerate.
996
997 2002-09-13 Andrew Cagney <ac131313@redhat.com>
998
999 * frame.c (find_saved_register): Delete function.
1000 * frame.h (find_saved_register): Delete declaration.
1001 Fix PR gdb/631.
1002
1003 Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
1004
1005 * mips-tdep.c (read_next_frame_reg): Re-hack using
1006 frame_register_unwind.
1007
1008 Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
1009
1010 * mips-tdep.c (mips_get_saved_register): Re-hack using
1011 frame_register_unwind.
1012
1013 2002-09-12 Joel Brobecker <brobecker@gnat.com>
1014
1015 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
1016 vector. Will be useful for Interix.
1017 * gdbarch.h, gdbarch.c: Regenerate.
1018
1019 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
1020 name of the malloc function by NAME_OF_MALLOC.
1021
1022 2002-09-12 Joel Brobecker <brobecker@gnat.com>
1023
1024 * value.h (find_function_in_inferior): Add const keyword to
1025 one of the parameters. Allows us to invoke this function with
1026 a const char *.
1027 * valops.c (find_function_in_inferior): Likewise.
1028
1029 2002-09-12 Joel Brobecker <brobecker@gnat.com>
1030
1031 * exec.c (xfer_memory): Fix compilation warning with old versions
1032 of GCC.
1033 * tracepoint.c (trace_find_tracepoint_command): Likewise.
1034
1035 2002-09-12 David Carlton <carlton@math.stanford.edu>
1036
1037 * symtab.h: Run through gdb_indent.h.
1038 Add 2002 to Copyright year list.
1039
1040 2002-09-12 Alan Modra <amodra@bigpond.net.au>
1041
1042 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
1043 mach constants.
1044 * MAINTAINERS: Add myself to write after approval list.
1045
1046 2002-09-11 J. Brobecker <brobecker@gnat.com>
1047
1048 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
1049
1050 2002-09-11 J. Brobecker <brobecker@gnat.com>
1051
1052 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
1053 Interix.
1054
1055 2002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
1056
1057 * procfs.c (do_detach): Clear current signal, not just fault.
1058 Corrects problem with breakpoint trap signal leaking to detached
1059 process on Tru64.
1060
1061 2002-09-10 Michael Snyder <msnyder@redhat.com>
1062
1063 * buildsym.c (finish_block): Protect against null pointer.
1064
1065 2002-09-10 Andrew Cagney <cagney@redhat.com>
1066
1067 * infcmd.c (default_print_registers_info): Send all output to
1068 ``file'' instead of ``gdb_stdout''.
1069
1070 2002-09-10 Michael Snyder <msnyder@redhat.com>
1071
1072 * mips-tdep.c (mips_extract_struct_value_address): Make val a
1073 LONGEST, and use signed register read (addresses are sign-
1074 extended for mips).
1075
1076 2002-09-10 Stephane Carrez <stcarrez@nerim.fr>
1077
1078 * event-loop.c (gdb_do_one_event): Make public.
1079 * event-loop.h (gdb_do_one_event): Declare.
1080
1081 2002-09-10 Jeff Law <law@redhat.com>
1082
1083 * infttrace.c (child_resume): Simplify and rework to avoid
1084 TT_PROC_CONTINUE.
1085
1086 2002-09-09 Fred Fish <fnf@intrinsity.com>
1087
1088 * printcmd.c (print_scalar_formatted): "len" is the number of
1089 target bytes, NOT the number of target bits.
1090
1091 2002-09-09 Elena Zannoni <ezannoni@redhat.com>
1092
1093 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
1094 * top.c (init_main): Set rl_terminal_name.
1095
1096 2002-09-08 Aidan Skinner <aidan@velvet.net>
1097
1098 * ada-lang.c (ada_array_bound, ada_type_match,
1099 _initialize_ada_language): Fix K&R definitions.
1100 * ada-tasks.c (get_current_task): Fix K&R definitions.
1101 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
1102
1103 2002-09-07 Christopher Faylor <cgf@redhat.com>
1104
1105 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
1106 Add XP.
1107
1108 2002-09-06 Mark Kettenis <kettenis@gnu.org>
1109
1110 * i386-tdep.c (i386_register_virtual_type,
1111 i386_register_convertible, i386_register_convert_to_virtual,
1112 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
1113 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
1114 (i386_gdbarch_init): Fix comment. Add comments on calls that set
1115 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
1116 Don't set push_arguments twice.
1117
1118 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
1119 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
1120 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
1121 sigtramp_end to NULL.
1122 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
1123 defines.
1124 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
1125
1126 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
1127 whitespace.
1128
1129 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
1130 * gdbarch.h, gdbarch.c: Re-generate.
1131 * blockframe.c (find_pc_sect_partial_function): Convert to use
1132 SIGTRAMP_START_P predicate.
1133
1134 2002-09-05 Michael Snyder <msnyder@redhat.com>
1135
1136 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
1137 generic_dummy_frame method and old method. Also distinguish
1138 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
1139 (arm_extract_return_value): Use new regcache method.
1140
1141 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
1142 adjustment that doesn't conform to the ABI.
1143 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
1144 saved regcache, not from current regcache.
1145
1146 2002-09-05 Andrew Cagney <ac131313@redhat.com>
1147
1148 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
1149 * README: Update.
1150
1151 2002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
1152
1153 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
1154 if arm_apcs_32 is false.
1155
1156 2002-09-04 Andrew Cagney <ac131313@redhat.com>
1157
1158 GDB 5.3 branch created.
1159
1160 2002-09-03 Theodore A. Roth <troth@verinet.com>
1161
1162 * gdb/avr-tdep.c (avr_gdbarch_init): Use
1163 generic_unwind_get_saved_register.
1164
1165 2002-09-03 David Carlton <carlton@math.stanford.edu>
1166
1167 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
1168 argument (PR gdb/653). Update call to smash_to_method_type.
1169 (read_structure_scope): Update call to dwarf2_add_member_fn.
1170
1171 2002-09-03 Michal Ludvig <mludvig@suse.cz>
1172
1173 * x86-64-linux-tdep.c: Include gdb_string.h
1174 * x86-64-linux-nat.c: Ditto.
1175
1176 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1177
1178 * ada-exp.y (yyname, yyrule): Remap global variables that appear
1179 when YYDEBUG is set to 1.
1180 * c-exp.y: Likewise.
1181 * f-exp.y: Likewise.
1182 * jv-exp.y: Likewise.
1183 * m2-exp.y: Likewise.
1184 * p-exp.y: Likewise.
1185
1186 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1187
1188 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
1189 dependency list.
1190 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
1191 solib_svr4_fetch_link_map_offsets to
1192 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
1193 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
1194 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
1195 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
1196 solib-svr4.o, and solib-legacy.o.
1197 * config/i386/tm-nbsd.h: Include solib.h.
1198
1199 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1200
1201 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
1202 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
1203 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
1204 comment noting that this needs its own target configuration.
1205 * config/i386/nbsd.mt: New file.
1206 * config/i386/nbsdaout.mt: Remove.
1207 * config/i386/nbsdelf.mt: Ditto.
1208 * config/i386/tm-nbsdaout.h: Ditto.
1209
1210 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1211
1212 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
1213 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
1214 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
1215 tdep->sigtramp_end.
1216 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
1217 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
1218 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
1219
1220 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1221
1222 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
1223 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
1224 * i386-tdep.h (i386bsd_init_abi): New prototype.
1225 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
1226 function declaration.
1227 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
1228 for NetBSD-a.out or NetBSD-ELF.
1229 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
1230 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
1231 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
1232 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
1233 and nbsd-tdep.h.
1234 (i386nbsd_pc_in_sigtramp): New function.
1235 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1236 i386nbsd_pc_in_sigtramp.
1237 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
1238 and i386nbsdelf_init_abi OS ABI handlers.
1239 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
1240 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
1241
1242 2002-09-02 Mark Kettenis <kettenis@gnu.org>
1243
1244 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
1245 registers if the target really has them.
1246
1247 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1248
1249 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
1250 than nbsd-tdep.h.
1251
1252 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1253
1254 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
1255 list.
1256 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
1257 (alphanbsd_skip_sigtramp_frame): New functions.
1258 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
1259 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
1260 to alphanbsd_sigcontext_addr.
1261
1262 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1263
1264 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
1265 list.
1266 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
1267 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
1268 nbsd_pc_in_sigtramp.
1269 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
1270 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
1271 * nbsd-tdep.c: Include gdb_string.h.
1272 (nbsd_pc_in_sigtramp): New function.
1273 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
1274 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
1275 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1276 ppcnbsd_pc_in_sigtramp.
1277 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
1278 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1279 shnbsd_pc_in_sigtramp.
1280 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
1281 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
1282 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
1283
1284 2002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
1285
1286 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
1287 watchpoints to NULL.
1288 (insert_breakpoints): set val field of watchpoints if NULL.
1289
1290
1291 2002-08-29 Jim Blandy <jimb@redhat.com>
1292
1293 * symtab.c (lookup_symbol_aux): In the cases where we find a
1294 minimal symbol of an appropriate name and use its address to
1295 select a symtab to read and search, use `name' (as passed to us)
1296 as the demangled name when searching the symtab's global and
1297 static blocks, not the minsym's name.
1298
1299 2002-08-29 Keith Seitz <keiths@redhat.com>
1300
1301 * stack.c (print_frame_info_base): Always set current_source_symtab
1302 and current_source_line.
1303
1304 2002-08-29 Donn Terry <donnte@microsoft.com>
1305
1306 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
1307
1308 2002-08-28 Keith Seitz <keiths@redhat.com>
1309
1310 * stack.c (select_frame): Add FIXME concerning selected-frame
1311 events.
1312 (select_frame_command): Send selected-frame-level-changed
1313 event notification, but only if the level actually changed.
1314 (up_silently_base): Add selected-frame-level-changed event
1315 notification.
1316 (down_silently_base): Likewise.
1317
1318 2002-08-28 Andrew Cagney <ac131313@redhat.com>
1319
1320 * Makefile.in: Update dependencies for all gdb/*.c files.
1321
1322 2002-08-27 Tom Tromey <tromey@redhat.com>
1323
1324 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
1325 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
1326 Update dependencies.
1327 * i387-tdep.c: Include gdb_string.h.
1328 * osabi.c: Likewise.
1329 * i386-linux-nat.c: Likewise.
1330 * lin-lwp.c: Likewise.
1331 * ax-gdb.c: Likewise.
1332 * signals/signals.c: Likewise.
1333 * jv-valprint.c: Likewise.
1334 * p-lang.c: Likewise.
1335 * c-valprint.c: Likewise.
1336 * cp-abi.c: Likewise.
1337
1338 2002-08-27 Elena Zannoni <ezannoni@redhat.com>
1339
1340 * cli/cli-script.h (copy_command_lines): Export.
1341 * breakpoint.c: Include cli/cli-script.h.
1342 * Makefile.in (breakpoint.o): Update dependencies.
1343
1344 2002-08-26 Michael Snyder <msnyder@redhat.com>
1345
1346 * breakpoint.c (insert_breakpoints): Protect all references
1347 to 'process_warning'. Shorten long lines.
1348
1349 2002-08-26 Joel Brobecker <brobecker@gnat.com>
1350
1351 * cli/cli-script.c (copy_command_lines): New function.
1352 * defs.h (copy_command_lines): Export.
1353 * testsuite/gdb.base/commands.exp: New tests for commands
1354 attached to a temporary breakpoint, and for commands that
1355 delete the breakpoint they are attached to.
1356
1357 2002-08-26 Michael Snyder <msnyder@redhat.com>
1358
1359 * breakpoint.c (bpstat_stop_status): Instead of copying the
1360 pointer to the breakpoint commands struct, make a new copy
1361 of the struct and point to that.
1362 (bpstat_clear): Free the commands struct.
1363 (bpstat_clear_actions): Free the commands struct.
1364 (bpstat_do_actions): Free the command actions. Also execute
1365 the local cleanups, instead of deleting them.
1366 (delete_breakpoint): Leave the commands field of the bpstat
1367 chain alone -- it will be freed later.
1368
1369 2002-08-26 Kevin Buettner <kevinb@redhat.com>
1370
1371 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
1372 deleted in 2002-08-20 commit. This function is still used by
1373 ppc-linux-nat.c.
1374
1375 2002-08-26 Keith Seitz <keiths@redhat.com>
1376
1377 * gdb-events.sh: Add selected-frame-level-changed event.
1378 * gdb-events.c: Regenerated.
1379 * gdb-events.h: Regenerated.
1380
1381 2002-08-26 Stephane Carrez <stcarrez@nerim.fr>
1382
1383 Fix PR gdb/393:
1384 * inflow.c (terminal_save_ours): New function to save terminal
1385 settings.
1386 * inferior.h (terminal_save_ours): Declare.
1387 * target.c (debug_to_terminal_save_ours): New function.
1388 (cleanup_target): Defaults to_terminal_save_ours.
1389 (update_current_target): Inherit to_terminal_save_ours.
1390 (setup_target_debug): Set to_terminal_save_ours.
1391 * target.h (target_terminal_save_ours): New to save terminal settings.
1392 (target_ops): New member to_terminal_save_ours.
1393 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
1394 * hpux-thread.c (init_hpux_thread_ops): Likewise.
1395 * inftarg.c (init_child_ops): Likewise.
1396 * m3-nat.c (init_m3_ops): Likewise.
1397 * procfs.c (init_procfs_ops): Likewise.
1398 * wince.c (init_child_ops): Likewise.
1399 * win32-nat.c (init_child_ops): Likewise.
1400 * sol-thread.c (init_sol_thread_ops): Likewise.
1401
1402 2002-08-26 Mark Kettenis <kettenis@gnu.org>
1403
1404 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
1405 use regcache_* functions.
1406 (i386_gdbarch_init): Set store_return_value instead of
1407 deprecated_store_return_value.
1408
1409 * regcache.c (regcache_raw_write_signed,
1410 regcache_raw_write_unsigned): New functions.
1411 * regcache.h (regcache_raw_write_signed,
1412 regcache_raw_write_unsigned): New prototypes.
1413
1414 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1415
1416 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
1417 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
1418 source file dependencies. Cleanup corresponding generator rules.
1419
1420 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1421
1422 * regcache.h (register_offset_hack): Declare.
1423 (regcache_cooked_read_using_offset_hack): Declare.
1424 (regcache_cooked_write_using_offset_hack): Declare.
1425
1426 * regcache.c (register_offset_hack): New function.
1427 (regcache_cooked_read_using_offset_hack): New function.
1428 (regcache_cooked_write_using_offset_hack): New function.
1429 (regcache_dump): Check that the registers, according to their
1430 offset, are packed hard against each other.
1431 (cooked_xfer_using_offset_hack): New function.
1432
1433 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1434
1435 * regcache.c (struct regcache_descr): Add field register_type.
1436 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
1437 in as a parameter
1438 (init_regcache_descr): Initialize register_type. Pass the descr
1439 to init_legacy_regcache_descr. Use register_type instead of
1440 REGISTER_VIRTUAL_TYPE.
1441 (register_type): New function.
1442 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
1443 * regcache.h (register_type): Declare.
1444
1445 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1446
1447 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
1448 instead of deprecated_store_return_value. Fix fallout from
1449 2002-08-23 Andrew Cagney <cagney@redhat.com>.
1450
1451 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1452
1453 * regcache.c (max_register_size): New function.
1454 (init_legacy_regcache_descr): Ensure that max_register_size is
1455 large enough for REGISTER_VIRTUAL_SIZE.
1456 * regcache.h (max_register_size): Declare.
1457
1458 2002-08-24 Andrew Cagney <ac131313@redhat.com>
1459
1460 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
1461 store_return_value.
1462 (e500_extract_return_value): Change type of valbuf pointer to
1463 void.
1464
1465 2002-08-24 Mark Kettenis <kettenis@gnu.org>
1466
1467 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
1468 workaround.
1469
1470 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
1471 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
1472 long long) to prevent compiler warning on 64-bit systems.
1473
1474 2002-08-23 Andrew Cagney <cagney@redhat.com>
1475
1476 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
1477 (DEPRECATED_STORE_RETURN_VALUE): New method.
1478 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
1479 * gdbarch.h, gdbarch.c: Re-generate.
1480
1481 * values.c (set_return_value): Pass current_regcache to
1482 STORE_RETURN_VALUE.
1483 * arch-utils.h (legacy_store_return_value): Declare.
1484 * arch-utils.c (legacy_store_return_value): New function.
1485 (legacy_extract_return_value): Update parameters.
1486
1487 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
1488 STORE_RETURN_VALUE.
1489 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1490 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1491 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1492 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1493 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1494 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1495 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1496 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1497 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1498 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1499
1500 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1501 * i386-tdep.c (i386_extract_return_value): Update.
1502 * arch-utils.c (legacy_extract_return_value): Update.
1503 * frv-tdep.c (frv_gdbarch_init): Update.
1504 * cris-tdep.c (cris_gdbarch_init): Update.
1505 * d10v-tdep.c (d10v_gdbarch_init): Update.
1506 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1507 * m68k-tdep.c (m68k_gdbarch_init): Update.
1508 * mcore-tdep.c (mcore_gdbarch_init): Update.
1509 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1510 * s390-tdep.c (s390_gdbarch_init): Update.
1511 * sparc-tdep.c (sparc_gdbarch_init): Update.
1512 * sh-tdep.c (sh_gdbarch_init): Update.
1513 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1514 * v850-tdep.c (v850_gdbarch_init): Update.
1515 * avr-tdep.c (avr_gdbarch_init): Update.
1516 * ia64-tdep.c (ia64_gdbarch_init): Update.
1517 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1518 * vax-tdep.c (vax_gdbarch_init): Update.
1519 * alpha-tdep.c (alpha_gdbarch_init): Update.
1520 * arm-tdep.c (arm_gdbarch_init): Update.
1521 * mips-tdep.c (mips_gdbarch_init): Update.
1522 * i386-tdep.c (i386_gdbarch_init): Update.
1523
1524 2002-08-23 Andrew Cagney <ac131313@redhat.com>
1525
1526 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
1527 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
1528
1529 2002-08-24 Mark Kettenis <kettenis@gnu.org>
1530
1531 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
1532 problems.
1533
1534 2002-08-23 Joel Brobecker <brobecker@gnat.com>
1535
1536 * infrun.c (handle_inferior_event): Move a comment outside of a
1537 function call, in order to avoid indent reformatting this part
1538 of the code in an unreadable way.
1539
1540 2002-08-23 Grace Sainsbury <graces@redhat.com>
1541
1542 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
1543 when breakpoints fail. Move general breakpoint error messages to
1544 insert_breakpoints.
1545 * breakpoint.c (insert_breakpoints): Change warnings when
1546 breakpoints are nto inserted to specify the type. Remove call to
1547 memory_error when hardware breakpoints can't be inserted. Remove
1548 multiple calls to warning so all messages are sent to the user at
1549 once.
1550 (delete_breakpoints): Make insert error messsages more explicit.
1551
1552 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
1553
1554 * ChangeLog: Move gdbserver entries after GDB 5.2 to
1555 gdbserver/ChangeLog.
1556
1557 2002-08-23 Mark Kettenis <kettenis@gnu.org>
1558
1559 * i386-tdep.c: Include "objfiles.h".
1560 (i386_svr4_init_abi): Set in_solib_call_trampoline and
1561 skip_trampoline_code.
1562 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
1563 (CPLUS_MARKER): Define to '.'.
1564
1565 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
1566 member.
1567 (linux_corefile_thread_callback): Increase args->num_notes.
1568 (linux_make_note_section): Initialize thread_args.num_notes, and
1569 use it to determine whether notes for any threads were created.
1570
1571 2002-08-23 Donn Terry <donnte@microsoft.com>
1572
1573 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
1574 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
1575 and PCUNKILL.
1576 (write_with_trace): Conditionalize out the switch branch handling
1577 PCSHOLD if the corresponding macro is not defined. Likewise for
1578 PRSABORT and PRSTOP.
1579 This change will be needed by the Interix port.
1580
1581 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
1582
1583 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
1584 write_register wherever possible instead of manipulating the
1585 register bytes directly.
1586 Assign VALUE_CONTENTS to a variable and use that.
1587 The GPR numbers are now dependent on the architecture.
1588
1589 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
1590
1591 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
1592 ev_offset fields.
1593 (skip_prologue): Add support for BookE/e500 instructions.
1594 (e500_extract_return_value): New function.
1595 (frame_get_saved_regs): Add support for saving ev registers and
1596 pseudo gpr's.
1597 (e500_store_return_value): New function.
1598 (rs6000_gdbarch_init): Move up default intializations of
1599 deprecated_extract_return_value and store_return_value. Overwrite
1600 init of store_return_value with e500 specific version.
1601 Set extract_return_value for e500.
1602
1603 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
1604
1605 * blockframe.c (generic_call_dummy_register_unwind): Use
1606 regcache_cooked_read to catch cases in which the variable is
1607 stored in a pseudo register.
1608
1609 2002-08-22 Andrew Cagney <cagney@redhat.com>
1610
1611 * NEWS: Mention that the i960 has been made obsolete.
1612 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
1613 i960-tdep.c
1614 (remote-nrom.o): Obsolete target.
1615 (remote-nindy.o, i960-tdep.o): Ditto.
1616 * remote-nrom.c: Make file obsolete.
1617 * remote-nindy.c, remote-vx960.c: Ditto.
1618 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
1619 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
1620 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
1621 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
1622 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
1623 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
1624 i960-*-vxworks* obsolete.
1625 * MAINTAINERS: Note that the i960 is obsolete.
1626
1627 2002-08-21 Corinna Vinschen <vinschen@redhat.com
1628
1629 * aix-thread.c (aix_thread_detach): Disable thread debugging on
1630 detach to allow reinitialization.
1631
1632 2002-08-22 Andrew Cagney <ac131313@redhat.com>
1633
1634 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
1635 attempt).
1636
1637 2002-08-22 Jim Blandy <jimb@redhat.com>
1638
1639 * coffread.c (coff_symfile_read): Don't try to read the line
1640 number table from disk if the image file doesn't have a symbol
1641 table; we'll never actually look at the info anyway, and Windows
1642 ships DLL's with bogus file offsets for the line number data.
1643
1644 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
1645
1646 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
1647 an e500 executable.
1648
1649 2002-08-21 Michael Snyder <msnyder@redhat.com>
1650
1651 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
1652 (MSYMBOL_SIZE): Replace macro with function.
1653 (DEFAULT_MIPS_TYPE): Delete unused macro.
1654 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
1655 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
1656
1657 2002-08-21 Jim Blandy <jimb@redhat.com>
1658
1659 * valops.c (value_cast): Simplify and correct logic for doing a
1660 static cast from a pointer to a base class to a pointer to a
1661 derived class.
1662
1663 2002-08-21 Andrew Cagney <ac131313@redhat.com>
1664
1665 * infcmd.c (default_print_registers_info): Replace
1666 do_registers_info.
1667 (registers_info): Use gdbarch_print_registers_info instead of
1668 DO_REGISTERS_INFO.
1669 * inferior.h (default_print_registers_info): Replace
1670 do_registers_info.
1671 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
1672 (DO_REGISTERS_INFO): Change to a predicate function.
1673 * gdbarch.h, gdbarch.c: Regenerate.
1674
1675 2002-08-21 Keith Seitz <keiths@redhat.com>
1676
1677 * gdb-events.sh: Add target-changed event.
1678 * gdb-events.c: Regenerated.
1679 * gdb-events.c: Regenerated.
1680 * valops.c (value_assign): Add target-changed event notification
1681 to inlval_register, lval_memory, and lval_reg_frame_relative.
1682
1683 2002-08-21 Joel Brobecker <brobecker@gnat.com>
1684
1685 * NEWS: Add an entry regarding the improvement of the next/step
1686 operation on Alpha Tru64 multi-processor machines.
1687
1688 2002-08-21 Andrew Cagney <ac131313@redhat.com>
1689
1690 * Makefile.in: Update dependencies for mi/ cli/ and tui/
1691 directores.
1692 * Makefile.in: Update all _h macro definitions.
1693 * Makefile.in (install-gdbtk): Move to install section.
1694 (rdi-share/libangsd.a): Move to end of file.
1695
1696 2002-08-19 Andrew Cagney <ac131313@redhat.com>
1697
1698 * frame.c (frame_register_unwind): When a register, set addrp to
1699 the register's byte.
1700
1701 2002-08-20 Michael Snyder <msnyder@redhat.com>
1702
1703 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
1704 used locally, so move them from the target machine header to here.
1705 (mips_set_processor_type, mips_register_name, mips32_next_pc,
1706 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
1707 Make static.
1708 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
1709
1710 2002-08-20 Andrew Cagney <cagney@redhat.com>
1711
1712 * NEWS: Mention that the Apollo line was made obsolete.
1713 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
1714 m68*-hp-hpux* obsolete.
1715 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
1716 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
1717 * buildsym.c (make_blockvector): Make static.
1718 * buildsym.h (make_blockvector): Make extern declaration obsolete.
1719 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
1720 (ALLDEPFILES): Remove dstread.c.
1721 (dstread.o): Obsolete make rule.
1722 * dstread.c: Makefile obsolete.
1723 * dst.h: Ditto.
1724 * config/m68k/hp300hpux.mt: Ditto.
1725 * config/m68k/hp300hpux.mh: Ditto.
1726 * config/m68k/hp300bsd.mt: Ditto.
1727 * config/m68k/hp300bsd.mh: Ditto.
1728 * config/m68k/apollo68b.mt: Ditto.
1729 * config/m68k/apollo68v.mh: Ditto.
1730 * config/m68k/apollo68b.mh: Ditto.
1731
1732 2002-08-20 Michael Snyder <msnyder@redhat.com>
1733
1734 * mips-tdep.c (mips_in_return_stub): Make static.
1735 (mips_gdbarch_init): Set in_solib_return_trampoline.
1736 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
1737
1738 2002-08-20 Michael Snyder <msnyder@redhat.com>
1739
1740 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
1741 * gdbarch.c, gdbarch.h: Regenerate.
1742 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
1743 Add.
1744 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
1745
1746 2002-08-20 Michael Snyder <msnyder@redhat.com>
1747
1748 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
1749 (mips_gdbarch_init): Set skip_trampoline_code,
1750 in_solib_call_trampoline.
1751 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
1752 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
1753
1754 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1755
1756 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
1757
1758 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
1759 vector type for ev registers.
1760 (e500_pseudo_register_read): New function.
1761 (e500_pseudo_register_write): New function.
1762 (e500_dwarf2_reg_to_regnum): New function.
1763 (PPC_UISA_NOFP_SPRS): New macro.
1764 (PPC_EV_REGS): New macro.
1765 (PPC_GPRS_PSEUDO_REGS): New macro.
1766 (registers_e500): New register set for e500.
1767 (variants): Add e500 variant.
1768 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
1769 before setting architectural dependent variations. Initialize ev
1770 registers numbers. Add case for e500 architecture. Set the
1771 number of pseudo registers.
1772
1773 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1774
1775 * rs6000-tdep.c: Clean up comments.
1776
1777 2002-08-20 Andrew Cagney <cagney@redhat.com>
1778
1779 * h8300-tdep.c: Re-indent file.
1780
1781 2002-08-20 Jim Blandy <jimb@redhat.com>
1782
1783 * Makefile.in (LDFLAGS): Allow the configure script to establish a
1784 default for this.
1785
1786 2002-08-20 Keith Seitz <keiths@redhat.com>
1787
1788 * breakpoints.c (watch_command_1): Use internal breakpoint
1789 when setting a watchpoint_scope breakpoint.
1790
1791 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1792
1793 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
1794 (build_builtin_type_vec64i): Ditto.
1795 (build_builtin_type_vec128): Ditto.
1796 (build_builtin_type_vec128i): Ditto.
1797
1798 2002-08-19 Michael Snyder <msnyder@redhat.com>
1799
1800 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
1801 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
1802 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
1803 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
1804 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
1805 CALL_DUMMY_ADDRESS): Delete.
1806 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
1807 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
1808 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
1809 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
1810 push_return_address.
1811 (mips_register_raw_size, mips_eabi_use_struct_convention,
1812 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
1813 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
1814 mips_init_extra_frame_info, mips_eabi_push_arguments,
1815 mips_n32n64_push_arguments, mips_push_return_address,
1816 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
1817 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
1818
1819 2002-08-19 Michael Snyder <msnyder@redhat.com>
1820
1821 * mips-tdep.c (mips_frame_num_args): New function.
1822 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
1823 frame_saved_pc, frame_args_address, frame_locals_address,
1824 frame_num_args, and frame_args_skip.
1825 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
1826 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
1827 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
1828 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
1829
1830 2002-08-20 Michael Snyder <msnyder@redhat.com>
1831
1832 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
1833 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
1834 * mips-tdep.c (mips_store_struct_return): New function.
1835 (mips_extract_struct_value_address): New function.
1836 (mips_gdbarch_init): Set store_struct_return and
1837 extract_struct_value_address.
1838
1839 2002-08-20 David Carlton <carlton@math.stanford.edu>
1840
1841 * dwarf2read.c (dwarf2_build_psymtabs): Check that
1842 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
1843 (read_file_scope): Check that line_header is nonzero before
1844 decoding macro information.
1845
1846 2002-08-20 Mark Kettenis <kettenis@gnu.org>
1847
1848 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
1849 flag the general-purpose registers as floating-point on targets
1850 that don't support the floating-point registers.
1851
1852 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1853
1854 * rs6000-tdep.c (altivec_register_p): Delete.
1855 (rs6000_do_altivec_registers): Delete.
1856 (rs6000_altivec_registers_info): Delete.
1857 (rs6000_do_registers_info): Delete.
1858 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
1859 (rs6000_gdbarch_init): Remove setting of do_registers_info.
1860
1861 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1862
1863 * infcmd.c (do_registers_info): Print vector registers in hex
1864 format only.
1865 (print_vector_info): Check that printing registers
1866 makes sense.
1867 (print_float_info): Ditto.
1868
1869 2002-08-20 Andrew Cagney <ac131313@redhat.com>
1870
1871 * mips-tdep.c (mips_gdbarch_init): Update.
1872 (mips_o32_extract_return_value): Rewrite.
1873 (mips_o32_store_return_value): Rewrite.
1874 (mips_o32_xfer_return_value): New function.
1875 (mips_xfer_register): Tweak debug print message. Allow for
1876 buf_offset when dumping the value transfered.
1877
1878 2002-08-20 Andrew Cagney <ac131313@redhat.com>
1879
1880 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
1881 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
1882 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
1883 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
1884 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
1885
1886 2002-08-14 Michael Snyder <msnyder@redhat.com>
1887
1888 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
1889
1890 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
1891
1892 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
1893 register.
1894 (P): New macro to define a register as a pseudo register.
1895 (R, R4, R8, R16, FR32, R64, R0): Updated.
1896 (struct variant): Add new fields for number of pseudo registers
1897 and number of total registers.
1898 (tot_num_registers): New macro replacing....
1899 (num_registers): ...deleted macro.
1900 (num_registers): New function.
1901 (num_pseudo_registers): New function.
1902 (variants): Update all variants to intialize new fields correctly.
1903 Postpone initialization of number of pseudo regs and real regs.
1904 (init_variants): New function.
1905 (rs6000_gdbarch_init): Initialize variants. Update calculation of
1906 registers offsets.
1907
1908 2002-08-19 David Carlton <carlton@math.stanford.edu>
1909
1910 * valops.c (search_struct_field): Change error message to treat
1911 return value of 0 from value_static_field as meaning that field is
1912 optimized out.
1913 (value_struct_elt_for_reference): Ditto.
1914 * values.c (value_static_field): Treat an unresolved location the
1915 same as a nonexistent symbol. Fix PR gdb/635.
1916 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
1917 enclosed. Fix PR gdb/574.
1918 * MAINTAINERS: Add self to Write After Approval list.
1919
1920 2002-08-19 Andrew Cagney <ac131313@redhat.com>
1921
1922 * mips-tdep.c (mips_xfer_register): New function.
1923 (mips_n32n64_extract_return_value): Rewrite.
1924 (mips_gdbarch_init): For N32 and N64, set extract_return_value
1925 instead of deprecated_extract_return_value.
1926
1927 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
1928
1929 * rs6000-tdep.c (TDEP): Delete macro.
1930 (branch_dest): Replace use of TDEP macro with its body.
1931 (rs6000_pop_frame): Ditto.
1932 (rs6000_push_arguments): Ditto.
1933 (rs6000_skip_trampoline_code): Ditto.
1934 (rs6000_frame_saved_pc): Ditto.
1935 (rs6000_frame_chain): Ditto.
1936 (rs6000_register_name): Ditto.
1937 (rs6000_register_byte): Ditto.
1938 (rs6000_register_raw_size): Ditto.
1939 (rs6000_register_virtual_type): Ditto.
1940 (rs6000_register_convertible): Ditto.
1941 (rs6000_convert_from_func_ptr_addr): Ditto.
1942
1943 2002-08-19 Daniel Jacobowitz <drow@mvista.com>
1944
1945 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
1946 conditionally.
1947 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
1948 MIPS_LINUX_JB_ELEMENT_SIZE.
1949 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
1950 for MAX_REGISTER_RAW_SIZE arrays.
1951 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
1952 MIPS_LINUX_JB_ELEMENT_SIZE.
1953
1954 2002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
1955
1956 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
1957
1958 2002-08-19 Aidan Skinner <aidan@velvet.net>
1959
1960 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
1961 ada-valprint.c ada-tasks.c.
1962 (YYFILES): Add ada-exp.y.
1963 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
1964 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
1965 (ada-exp.tab.o): New target.
1966
1967 2002-08-18 Andrew Cagney <ac131313@redhat.com>
1968
1969 * regcache.c (regcache_xfer_part): New function.
1970 (regcache_raw_read_part): New function.
1971 (regcache_raw_write_part): New function.
1972 (regcache_cooked_read_part): New function.
1973 (regcache_cooked_write_part): New function.
1974 * regcache.h (regcache_raw_read_part): Declare.
1975 (regcache_raw_write_part): Declare.
1976 (regcache_cooked_read_part): Declare.
1977 (regcache_cooked_write_part): Declare.
1978
1979 2002-08-18 Daniel Jacobowitz <drow@mvista.com>
1980
1981 * remote.c (remote_open_1): Add async_p.
1982 (remote_async_open_1): Delete.
1983 (open_remote_target): Delete.
1984 (remote_open, extended_remote_open): Update calls to remote_open_1.
1985 (remote_async_open, extended_remote_async_open): Call
1986 remote_open_1 instead of remote_async_open_1.
1987
1988 2002-08-19 Mark Kettenis <kettenis@gnu.org>
1989
1990 * blockframe.c: Fix a few coding standard violations.
1991
1992 2002-08-19 Mark Kettenis <kettenis@gnu.org>
1993
1994 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
1995 here from ...
1996 * config/i386/tm-i386sco5.h: ... here. File removed.
1997 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
1998
1999 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
2000 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
2001 (TM_FILE): Set to tm-i386.h.
2002 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
2003 * config/i386/tm-i386v.h: Remove file.
2004 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
2005 instead of "i386/tm-i386v.h".
2006 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
2007 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
2008 "i386/tm-i386v.h".
2009 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
2010 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
2011 "i386/tm-i386.h".
2012
2013 2002-08-18 Mark Kettenis <kettenis@gnu.org>
2014
2015 * config/i386/nm-i386v.h: Add protection against
2016 multiple-inclusion.
2017 (i386_register_u_addr): Remove prototype.
2018 (register_u_addr): New prototype.
2019 (REGISTER_U_ADDR): Redefine accordingly.
2020 * i386v-nat.c: Improve several comments.
2021 (i386_register_u_addr): Change signature and rename to
2022 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
2023 ubase variable.
2024
2025 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2026
2027 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
2028 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
2029 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
2030 deprecated_extract_return_value.
2031 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
2032 rename mips_o32o64_push_arguments.
2033 (mips_gdbarch_init): Update.
2034 (mips_extract_return_value): Delete.
2035 (mips_o32_extract_return_value): Clone mips_extract_return_value.
2036 (mips_o64_extract_return_value): Clone mips_extract_return_value.
2037 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
2038 (mips_n32n64_extract_return_value): Clone
2039 mips_extract_return_value.
2040 (mips_store_return_value): Delete.
2041 (mips_o32_store_return_value): Clone mips_store_return_value.
2042 (mips_o64_store_return_value): Clone mips_store_return_value.
2043 (mips_eabi_store_return_value): Clone mips_store_return_value.
2044 (mips_n32n64_store_return_value): Clone mips_store_return_value.
2045
2046 2002-08-18 Aidan Skinner <aidan@velvet.net>
2047
2048 * ada-lang.c: Use gdb_string.h instead of <string.h>.
2049 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
2050
2051 2002-08-18 Aidan Skinner <aidan@velvet.net>
2052
2053 * ada-lang.c: Run through gdb_indent.sh.
2054 * ada-lang.h: Run through gdb_indent.sh.
2055 * ada-tasks.c: Run through gdb_indent.sh.
2056 * ada-typeprint.c: Run through gdb_indent.sh.
2057 * ada-valprint.c: Run through gdb_indent.sh.
2058
2059 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2060
2061 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
2062 ABI.
2063
2064 2002-08-18 Mark Kettenis <kettenis@gnu.org>
2065
2066 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
2067
2068 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
2069 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
2070
2071 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
2072 write_register_gen instead of write_register_bytes.
2073
2074 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
2075 i[3456]-*-osf1mk* configurations have been made obsolete.
2076 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
2077 i[3456]86-*-osf1mk* hosts obsolete.
2078 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
2079 targets obsolete.
2080 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
2081 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
2082 config/i386/i386m3.mt, config/i386/nm-m3.h,
2083 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
2084 config/i386/i386mk.mh, config/i386/i386mk.mt,
2085 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
2086 obsolete.
2087 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
2088 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
2089 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
2090
2091 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2092
2093 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
2094 (hppa_value_returned_from_stack): Declare.
2095 (hppa_extract_return_value): Declare.
2096 * config/pa/hppa.mt: New file.
2097 * configure.tgt: Recognize hppa*-*-*.
2098 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
2099
2100 2002-08-18 Mark Kettenis <kettenis@gnu.org>
2101
2102 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
2103 comment.
2104
2105 2002-08-17 Mark Kettenis <kettenis@gnu.org>
2106
2107 * top.c (gdb_rl_operate_and_get_next): Make sure
2108 operate-and-get-next functions correctly even when the history
2109 list is completely filled.
2110
2111 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2112
2113 * MAINTAINERS (Target Instruction Set Architectures): Rename
2114 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
2115 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
2116 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
2117 already listed under Host/Native.
2118
2119 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
2120 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
2121 mips*-*-*.
2122
2123 2002-08-17 Andrew Cagney <ac131313@redhat.com>
2124
2125 * config/ia64/ia64.mt: New file.
2126 * config/alpha/alpha.mt: New file.
2127 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
2128 ia64-linux-gnu. Mention that ia64-elf is broken.
2129 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
2130
2131 2002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
2132
2133 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
2134 generic_func_frame_valid instead of func_frame_valid.
2135
2136 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2137
2138 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
2139 procfs appears to be broken when debugging on multi-processor
2140 machines. So enable software single stepping in order to avoid
2141 using the procfs interface to do next/step operations, using
2142 internal breakpoints instead.
2143
2144 * infrun.c (handle_inferior_event): Readjust the stop_pc by
2145 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
2146 make this pc address equal to the value it would have if the
2147 system stepping capability was used. Also set a new flag used
2148 to ensure that we don't readjust the PC one more time later.
2149
2150 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
2151 address by DECR_PC_AFTER_BREAK when software single step is
2152 in use for this architecture, as this has already been taken
2153 care of in handle_inferior_event().
2154
2155 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2156
2157 * infrun.c (handle_inferior_event): Minor reformatting, to make
2158 a rather long condition expression easier to read.
2159
2160 2002-08-16 Andrew Cagney <ac131313@redhat.com>
2161
2162 * Makefile.in (gdbtk.o): Move to end of file.
2163 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
2164 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
2165 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
2166 (gdbtk-wrapper.o, gdbres.o): Ditto.
2167
2168 2002-08-16 Andrew Cagney <ac131313@redhat.com>
2169
2170 * Makefile.in (copying.o): Separate out compile rule.
2171 (hpux-thread.o, procfs.o, signals.o): Ditto.
2172 (v850ice.o, z8k-tdep.o): Ditto.
2173 (tui-file.o): Move to TUI section.
2174 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
2175 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
2176
2177 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2178
2179 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
2180 skip_trampoline_code, for better namespace-proofing.
2181
2182 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
2183
2184 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2185
2186 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
2187
2188 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2189
2190 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
2191 signal, check whether we hit a breakpoint before checking for a
2192 single step breakpoint. Otherwise, GDB fails to notice that a
2193 breakpoint has been hit when stepping onto a breakpoint.
2194
2195 2002-08-16 Keith Seitz <keiths@redhat.com>
2196
2197 * gdb-events.sh (clear_gdb_event_hooks): New function.
2198 * gdb-events.c: Regenerate.
2199 * gdb-events.h: Regenerate.
2200
2201 2002-08-16 Andrew Cagney <ac131313@redhat.com>
2202
2203 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
2204 not_a_sw_breakpoint.
2205 * breakpoint.h (bpstat_stop_status): Add parameter names.
2206
2207 2002-08-16 Grace Sainsbury <graces@redhat.com>
2208
2209 * remote.c (remote_insert_hw_breakpoint)
2210 (remote_remove_hw_breakpoint): Fix calculation of length field
2211 for Z-packet.
2212
2213 2002-08-15 Michael Snyder <msnyder@redhat.com>
2214
2215 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
2216 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
2217 (supply_fpregset): Ditto.
2218
2219 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
2220 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
2221 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
2222 (TARGET_READ_SP): Delete.
2223 (DO_REGISTERS_INFO): Delete.
2224 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
2225 Delete.
2226 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
2227 from macros to functions.
2228
2229 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
2230 (mips_register_convertible, mips_register_convert_to_virtual,
2231 mips_register_convert_to_raw): Make static.
2232 (mips_read_sp): New function.
2233 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
2234 (mips_do_registers_info): Make static.
2235 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
2236 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
2237 (mips_register_convert_from_type, mips_register_convert_to_type):
2238 New functions.
2239 (mips_gdbarch_init): Set up function_start_offset,
2240 register_virtual_size, pc_in_sigtramp.
2241
2242 2002-08-15 Andrew Cagney <ac131313@redhat.com>
2243
2244 * infcmd.c (vector_info): New function.
2245 (_initialize_infcmd): Add command "info vector".
2246 (print_vector_info): New function.
2247
2248 * gdbarch.sh (PRINT_VECTOR_INFO): New method
2249 * gdbarch.h, gdbarch.c: Regenerate.
2250
2251 2002-08-15 Andrew Cagney <ac131313@redhat.com>
2252
2253 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
2254 ``print_all''. Only print vector registers when ``print_all''.
2255
2256 2002-08-15 Andrew Cagney <ac131313@redhat.com>
2257
2258 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
2259 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
2260
2261 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
2262 Add `args' parameter.
2263 * gdbarch.h, gdbarch.c: Regenerate.
2264
2265 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
2266
2267 * infcmd.c (float_info): Call print_float_info.
2268 (print_float_info): New function. By default, print the
2269 floating-point registers.
2270
2271 * arch-utils.h (default_print_float_info): Delete declaration.
2272 * arch-utils.c (default_print_float_info): Delete function.
2273
2274 2002-08-16 Mark Kettenis <kettenis@gnu.org>
2275
2276 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
2277 out define.
2278
2279 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
2280 FRAME.
2281
2282 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
2283 * configure.host: Make i[3456]86-*-aix host obsolete.
2284 * configure.tgt: Make i[3456]86-*-aix target obsolete.
2285 * config/i386/i386aix.mh, config/i386/i386aix.mt,
2286 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
2287 config/i386/xm-i386aix.h: Make files obsolete.
2288 * i386aix-nat.c: Make file obsolete.
2289 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
2290 (i386aix-nat.o): Make target obsolete.
2291
2292 * config/i386/nm-gnu.h: Removed.
2293 * config/i386/nm-i386gnu.h: New file.
2294 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
2295 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
2296 Moved here from ...
2297 * config/i386/tm-i386gnu.h: ... here. Removed.
2298 * config/i386/xm-i386gnu.h: Removed.
2299 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
2300 (NAT_FILE): Set to nm-i386gnu.h.
2301 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
2302 * i386-tdep.c: New file.
2303 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
2304 (i386gnu-tdep.o): Specify dependencies.
2305
2306 2002-08-15 Mark Kettenis <kettenis@gnu.org>
2307
2308 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
2309 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
2310 Adjust a few comments to reflect reality a bit closer.
2311 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
2312 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
2313 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
2314 target_insert_watchpoint, target_remove_watchpoint):
2315 Move defines to ...
2316 * config/i386/nm-i386sco5.h: ... here.
2317 (kernel_u_size): Add prototype. Improve a few comments and add
2318 protection against multiple inclusion.
2319
2320 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
2321 out define.
2322
2323 * uw-thread.c (SP_ARG0): Define if not already defined.
2324 * config/i386/tm-i386.h (SO_ARG0): Remove define.
2325
2326 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
2327
2328 * config/i386/tm-i386.h: Don't include "regcache.h".
2329
2330 * i387-tdep.h (i387_print_float_info): New prototype.
2331 * i387-tdep.c (print_i387_value, print_i387_ext,
2332 print_i387_status_word, print_i387_control_word): Add `struct
2333 ui_file *' argument and use it for output.
2334 (i387_print_float_info): Renamed from i387_float_info. Add
2335 `struct gdbarch *' and `struct ui_file *' arguments and use the
2336 latter for output.
2337 * i386-tdep.c: Include "i387-tdep.h".
2338 (i386_gdbarch_init): Set print_float_info.
2339 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
2340 (FLOAT_INFO): Remove define.
2341
2342 2002-08-13 Michael Snyder <msnyder@redhat.com>
2343
2344 * mips-tdep.c (mips_push_arguments): Rename to
2345 mips_eabi_push_arguments, and tune for EABI.
2346 (MIPS_REGS_HAVE_HOME_P): Delete.
2347 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
2348 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
2349 Delete references to mips_regs_have_home_p.
2350
2351 2002-08-14 Keith Seitz <keiths@redhat.com>
2352
2353 * Makefile.in (install-gdbtk): Create insight plugin directory.
2354 Install plugins.tcl file.
2355
2356 2002-08-14 Keith Seitz <keiths@redhat.com>
2357
2358 * configure.in: Move SUBDIRS to near top of the file so that
2359 --enable options may add things to it.
2360 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
2361 * configure: Regenerate.
2362
2363 2002-08-13 Michael Snyder <msnyder@redhat.com>
2364
2365 * mips-tdep.c (mips_o32o64_push_arguments): New function,
2366 cloned from mips_push_arguments, tuned for o32/o64 ABI.
2367 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
2368
2369 2002-08-13 Andrew Cagney <ac131313@redhat.com>
2370
2371 * vax-tdep.c (vax_get_saved_register): Delete function.
2372 (vax_gdbarch_init): Update.
2373 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
2374 (ns32k_gdbarch_init): Update.
2375 * alpha-tdep.c (alpha_get_saved_register): Delete function.
2376 (alpha_gdbarch_init): Update.
2377
2378 2002-08-13 Andrew Cagney <cagney@redhat.com>
2379
2380 * regcache.c (init_regcache_descr): Overallocate the
2381 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
2382 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
2383 nr_raw_registers.
2384 (set_register_cached): Add range checking assertions. Use
2385 current_regcache.
2386
2387 2002-08-13 Mark Kettenis <kettenis@gnu.org>
2388
2389 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
2390 numbers for MMX registers.
2391
2392 2002-08-13 Andrew Cagney <cagney@redhat.com>
2393
2394 * i386-tdep.c (i386_gdbarch_init): Use
2395 generic_unwind_get_saved_register.
2396
2397 2002-08-13 Kevin Buettner <kevinb@redhat.com>
2398
2399 * procfs.c (procfs_can_use_hw_breakpoint): New function.
2400 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
2401 target vector.
2402 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
2403 Delete. Add comment regarding this now-deleted target method.
2404
2405 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2406
2407 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
2408 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
2409 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
2410 real PC and the page number (if it's within the memory bank window).
2411 (m68hc11_pseudo_register_write): Likewise when saving.
2412 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
2413 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
2414 (m68hc11_register_raw_size): And use 32-bit for it.
2415 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
2416 16K memory bank is used by the prog; also use the virtual pc.
2417
2418 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2419
2420 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
2421 (m68hc11_gdbarch_init): Install it in gdbarch.
2422 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
2423 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
2424 (MSYMBOL_SIZE): New for documentation.
2425 (insn_return_kind): Enum to specify how a function returns.
2426 (frame_extra_info): Cleanup and record the return mode.
2427 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
2428 register in address computation.
2429 (m68hc11_get_return_insn): New to obtain the return instruction used
2430 by the function.
2431 (m68hc11_frame_init_saved_regs): Take into account the return
2432 instruction used by the function for far and interrupt functions.
2433 (m68hc11_init_extra_frame_info): Take into account page register.
2434 (m68hc11_frame_args_address): Adjust according to the return mode.
2435 (show_regs): Print page register only when it's used.
2436
2437 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2438
2439 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
2440 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
2441 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
2442 registers.
2443 (m68hc11_register_raw_size): Likewise.
2444
2445 2002-08-13 Andrew Cagney <cagney@redhat.com>
2446
2447 * i386-tdep.c (i386_register_name): Handle mmx registers.
2448 (mmx_regnum_p): New function.
2449 (i386_mmx_names): New array.
2450 (mmx_num_regs): New variable.
2451 (i386_pseudo_register_read): New function.
2452 (i386_pseudo_register_write): New function.
2453 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
2454
2455 * regcache.c (regcache_raw_read_unsigned): New function.
2456 (regcache_raw_read_signed): New function.
2457 * regcache.h (regcache_raw_read_unsigned): Declare.
2458 (regcache_raw_read_signed): Declare.
2459
2460 2002-08-13 Andrew Cagney <cagney@redhat.com>
2461
2462 * regcache.c (regcache_raw_read_as_address): Delete function.
2463 (regcache_cooked_read_signed): New function.
2464 (regcache_cooked_read_unsigned): New function.
2465 * regcache.h (regcache_cooked_read_signed): Declare.
2466 (regcache_cooked_read_unsigned): Declare.
2467 (regcache_raw_read_as_address): Delete declaration.
2468
2469 * blockframe.c (generic_read_register_dummy): Use
2470 regcache_cooked_read_unsigned.
2471 * i386-tdep.c (i386_extract_struct_value_address): Use
2472 regcache_cooked_read_unsigned.
2473
2474 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2475
2476 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
2477 double sizes according to ELF ABI flags.
2478 (gdbarch_tdep): Record elf_flags.
2479
2480 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2481
2482 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
2483 (m6812_prolog): They can appear in 68HC12 function prologue.
2484 (m68hc11_frame_chain): Cleanup.
2485
2486 2002-08-12 Andrew Cagney <cagney@redhat.com>
2487
2488 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
2489 declarations.
2490 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
2491 (i386_linux_register_raw_size): Delete function.
2492 (i386_linux_init_abi): Update.
2493 * i386-tdep.c (i386_register_raw_size): Delete function.
2494 (i386_register_byte): Delete function.
2495 (i386_gdbarch_init): Update.
2496 (i386_register_size): Delete array.
2497 (i386_register_offset): Delete array.
2498
2499 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
2500 (REGISTER_RAW_SIZE): Delete macro.
2501 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
2502 (REGISTER_BYTE): Delete macro.
2503
2504 2002-08-11 Aidan Skinner <aidan@velvet.net>
2505
2506 * ada-lang.c (ada_lookup_partial_symbol)
2507 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
2508 prototype names so that grep ^func works properly.
2509
2510 * ada-lang.c (ada_array_element_type)
2511 (ada_lookup_partial_symbol): Fix typos in parameter list.
2512
2513 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
2514 Fix prototype names so that grep ^func works properly.
2515
2516 2002-08-10 Andrew Cagney <cagney@redhat.com>
2517 Elena Zannoni <ezannoni@redhat.com>
2518 Martin M. Hunt <hunt@redhat.com>
2519
2520 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
2521 (build_builtin_type_vec128i): Set the vector bit.
2522 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
2523 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
2524 (build_builtin_type_vec64): New function.
2525 (build_builtin_type_vec64i): New function.
2526 (build_gdbtypes): Initialize builtin_type_vec64 and
2527 builtin_type_vec64i.
2528
2529 2002-08-09 Andrew Cagney <cagney@redhat.com>
2530
2531 * regcache.c (regcache_dump): Compare the register offset
2532 with REGISTER_BYTE.
2533 * arch-utils.c (generic_register_byte): New function.
2534 * arch-utils.h (generic_register_byte): Declare.
2535 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
2536 * gdbarch.h, gdbarch.c: Regenerate.
2537
2538 2002-08-09 Andrew Cagney <cagney@redhat.com>
2539
2540 * regcache.c: Include "gdbcmd.h"
2541 (_initialize_regcache): Add commands "maintenance print
2542 registers", "maintenance print raw-registers" and "maintenance
2543 print cooked-registers".
2544 (enum regcache_dump_what): Define.
2545 (dump_endian_bytes): New function.
2546 (regcache_dump): New function.
2547 (regcache_print): New function.
2548 (maintenance_print_registers): New function.
2549 (maintenance_print_raw_registers): New function.
2550 (maintenance_print_cooked_registers): New function.
2551 * Makefile.in (regcache.o): Update dependencies.
2552
2553 2002-08-09 Michael Snyder <msnyder@redhat.com>
2554
2555 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
2556 (mips_push_arguments): Correct some comments. Use paddr_nz
2557 for printing addresses in debug output. Replace static
2558 allocation using MAX_REGISTER_RAW_SIZE with alloca.
2559 (mips_n32n64_push_arguments): New function, cloned from
2560 mips_push_arguments and tuned for the n32/n64 ABI.
2561 (mips_push_register): Buffer needs dynamic allocation.
2562 (mips_print_register): Ditto.
2563 (do_gp_register_row): Ditto.
2564 (mips_store_return_value): Ditto.
2565 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
2566
2567 2002-08-09 Don Howard <dhoward@redhat.com>
2568
2569 * memattr.c (mem_info_command): Print special case of upper bound
2570 as max CORE_ADDR + 1.
2571
2572 2002-08-08 Michael Snyder <msnyder@redhat.com>
2573
2574 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
2575 returns structs by ref if they're too big to fit in two registers.
2576
2577 2002-08-09 Kevin Buettner <kevinb@redhat.com>
2578
2579 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
2580 saved regs value.
2581 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
2582 mips_find_saved_regs().
2583 (mips_pop_frame): Likewise.
2584
2585 2002-08-09 Kevin Buettner <kevinb@redhat.com>
2586
2587 * blockframe.c (frame_saved_regs_register_unwind): Revise
2588 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
2589 frames are in use.
2590
2591 2002-08-09 Grace Sainsbury <graces@redhat.com>
2592
2593 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
2594 T-packets; the 'a' is not taken as a register number.
2595 (remote_check_watch_resources, remote_stopped_by_watchpoint)
2596 (remote_stopped_data_address): New functions; add to target
2597 vector.
2598 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
2599 prototypes to match other implementations of this
2600 function. replace integer argument with pointer -- the length
2601 field in the Z-packet is the length of what is pointed to or 1 if
2602 pointer is null. Add to target vector.
2603 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
2604 target vector.
2605
2606 From Mark Salter:
2607 * remote.c (remote_wait): Add support to extract optional
2608 watchpoint information from T-packet. Ignore unrecognized
2609 optional info in T-packet.
2610 (remote_async_wait): Ditto.
2611
2612 2002-08-09 Corinna Vinschen <vinschen@redhat.com>
2613
2614 * cli/cli-dump.c: Change fopen modes to use binary open modes
2615 as defined in include/fopen-bin.h throughout.
2616
2617 2002-08-08 Michael Snyder <msnyder@redhat.com>
2618
2619 * mips-tdep.c: Minor whitespace and indentation clean-ups.
2620
2621 2002-08-08 Kevin Buettner <kevinb@redhat.com>
2622
2623 * doublest.c (store_floating): Avoid floatformat_from_doublest()
2624 assertion failure by returning early after a warning.
2625
2626 2002-08-08 Kevin Buettner <kevinb@redhat.com>
2627
2628 * mips-tdep.c (mips_find_saved_regs): Make static.
2629 (mips_frame_init_saved_regs): New function.
2630 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
2631 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
2632 (mips_find_saved_regs): Delete declaration.
2633
2634 2002-08-08 Grace Sainsbury <graces@redhat.com>
2635
2636 * remote.c (remote_wait, remote_async_wait): Change
2637 thread_num from int to ULONGEST.
2638 (unpack_varlen_hex): Change result parameter from
2639 int * to ULONGEST *.
2640
2641 2002-08-08 Andrew Cagney <ac131313@redhat.com>
2642
2643 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
2644 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
2645 powerpc*-*-*.
2646 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
2647
2648 2002-08-08 Andrew Cagney <cagney@redhat.com>
2649
2650 * gcore.c (override_derive_stack_segment): Delete variable.
2651 (preempt_derive_stack_segment): Delete function.
2652 (derive_stack_segment): Delete function.
2653 (default_derive_stack_segment): Renamed to derive_stack_segment.
2654 (override_derive_heap_segment): Delete variable.
2655 (preempt_derive_heap_segment): Delete function.
2656 (derive_heap_segment): Delete function.
2657 (default_derive_heap_segment): Rename to derive_heap_segment.
2658
2659 2002-08-06 Michael Snyder <msnyder@redhat.com>
2660
2661 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
2662 * mips-tdep.c (mips_EABI_use_struct_convention,
2663 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
2664 New functions. (mips_use_struct_convention): Delete.
2665 (mips_gdbarch_init): set use_gdbarch_convention.
2666
2667 2002-08-06 Michael Snyder <msnyder@redhat.com>
2668
2669 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
2670 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
2671 mips_o32_reg_struct_has_addr): New functions.
2672 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
2673
2674 2002-08-07 Andrew Cagney <ac131313@redhat.com>
2675
2676 * regcache.c (pseudo_register): Delete function.
2677 (fetch_register): Delete function.
2678 (store_register): Delete function.
2679 (regcache_raw_read, legacy_read_register_gen): Use
2680 target_fetch_registers instead of fetch_register.
2681 (legacy_write_register_gen, regcache_raw_write): Use
2682 target_store_register instead of store_register.
2683 (write_register_bytes): Ditto.
2684
2685 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
2686 (STORE_PSEUDO_REGISTER): Delete.
2687 * gdbarch.h, gdbarch.c: Regenerate.
2688
2689 2002-08-06 Corinna Vinschen <vinschen@redhat.com>
2690
2691 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
2692 write dump file binary.
2693
2694 2002-08-05 Michael Snyder <msnyder@redhat.com>
2695
2696 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
2697 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
2698 (mips_gdbarch_init): Set N32 target to be mips64.
2699
2700 2002-08-06 Kevin Buettner <kevinb@redhat.com>
2701
2702 * frame.c (find_saved_register): Break out of loop once saved
2703 register address is found. Don't mention sparc in loop comment
2704 anymore.
2705
2706 2002-08-06 Kevin Buettner <kevinb@redhat.com>
2707
2708 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
2709 mips_default_saved_regsize to 8.
2710
2711 2002-08-06 Andrew Cagney <ac131313@redhat.com>
2712
2713 * gcore.c: Do not include <sys/procfs.h>.
2714 * Makefile.in (gcore.o): Update dependencies.
2715
2716 2002-08-06 Andrew Cagney <cagney@redhat.com>
2717
2718 * configure.tgt: Make arc-*-* obsolete.
2719 * NEWS: Mention that arc-*-* has been identifed as obsolete.
2720 * MAINTAINERS: Make arc-elf obsolete.
2721 * arc-tdep.c: Make file obsolete.
2722 * config/arc/arc.mt: Ditto.
2723 * config/arc/tm-arc.h: Ditto.
2724
2725 2002-08-05 Theodore A. Roth <troth@verinet.com>
2726
2727 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
2728
2729 2002-08-05 Andrew Cagney <ac131313@redhat.com>
2730
2731 * mcore-tdep.c (mcore_gdbarch_init): Use
2732 generic_unwind_get_saved_register instead of
2733 generic_get_saved_register.
2734 * v850-tdep.c (v850_gdbarch_init): Ditto.
2735 * frv-tdep.c (frv_gdbarch_init): Ditto.
2736 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2737 * s390-tdep.c (s390_gdbarch_init): Ditto.
2738 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2739 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
2740 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
2741
2742 2002-08-05 Joel Brobecker <brobecker@gnat.com>
2743
2744 * objfiles.h: Add missing #include "symfile.h"
2745
2746 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
2747
2748 2002-08-04 Andrew Cagney <ac131313@redhat.com>
2749
2750 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
2751 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
2752 of FIELD_BITSIZE.
2753
2754 2002-08-04 Daniel Jacobowitz <drow@mvista.com>
2755
2756 * NEWS: Cleanup and nitpick.
2757
2758 2002-08-03 Andrew Cagney <ac131313@redhat.com>
2759
2760 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
2761
2762 2002-08-03 Andrew Cagney <ac131313@redhat.com>
2763
2764 * Makefile.in (gdbtk-bp.o): Update dependencies.
2765 (gdbtk-register.o): Ditto.
2766 (gdbtk-varobj.o): Ditto.
2767
2768 2002-08-03 Andrew Cagney <cagney@redhat.com>
2769
2770 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
2771 m68hc11_fetch_pseudo_register.
2772 (m68hc11_pseudo_register_write): Replace
2773 m68hc11_store_pseudo_register.
2774 (m68hc11_gdbarch_init): Update.
2775
2776 Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
2777
2778 * gdbarch.sh: Include "gdb_string.h".
2779 * gdbarch.c: Regenerate.
2780
2781 * regcache.c: Include "gdb_string.h".
2782 * ax-general.c: Ditto.
2783 * varobj.c: Ditto.
2784 * std-regs.c: Ditto.
2785 * fbsd-proc.c: Ditto.
2786 * thread.c: Ditto.
2787
2788 * Makefile.in (regcache.o): Update dependencies.
2789 (thread.o, gdbarch.o): Ditto.
2790 (ax-general.o, gdbarch.o): Ditto.
2791 (varobj.o, std-regs.o): Ditto.
2792 (fbsd-proc.o): Specify dependencies.
2793
2794 2002-08-02 Andrew Cagney <cagney@redhat.com>
2795
2796 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
2797 regnum.
2798 (regcache_cooked_write): Ditto.
2799
2800 2002-08-02 Andrew Cagney <ac131313@redhat.com>
2801
2802 * regcache.c (regcache_cooked_read): New function.
2803 (regcache_cooked_write): New function.
2804 (read_register_gen): Rewrite using regcache_cooked_read.
2805 (write_register_gen): Rewrite using regcache_cooked_write.
2806
2807 * regcache.h (regcache_cooked_read, regcache_cooked_write):
2808 Declare.
2809
2810 2002-08-02 Andrew Cagney <cagney@redhat.com>
2811
2812 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
2813 Replace the architecture methods register_read and register_write.
2814 * gdbarch.h, gdbarch.c: Regenerate.
2815 * regcache.c (init_regcache_descr): Update.
2816 (read_register_gen): Update.
2817 (write_register_gen): Update.
2818 (supply_register): Update comment.
2819
2820 * sh-tdep.c (sh_gdbarch_init): Update.
2821 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
2822 `regcache' and `gdbarch' parameters. Make `buffer' a void
2823 pointer. Update code.
2824 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
2825 `regcache' and `gdbarch' parameters. Make `buffer' a constant
2826 void pointer. Update code.
2827 (sh64_register_write): Delete.
2828 (sh4_register_read): Delete.
2829 (sh64_register_read): Delete.
2830 (sh4_register_write): Delete.
2831 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
2832 void pointer, `to' parameter a void pointer.
2833 (sh_sh64_register_convert_to_raw): Ditto.
2834
2835 2002-08-01 Kevin Buettner <kevinb@redhat.com>
2836
2837 * mips-tdep.c (mips_register_virtual_type): Use architecture
2838 invariant return values.
2839
2840 2002-08-01 Andrew Cagney <cagney@redhat.com>
2841
2842 * linux-proc.c: Include "gdb_string.h".
2843 * Makefile.in (linux-proc.o): Update dependency list.
2844
2845 2002-08-01 Kevin Buettner <kevinb@redhat.com>
2846
2847 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
2848 comment.
2849
2850 2002-08-01 Grace Sainsbury <graces@redhat.com>
2851
2852 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
2853 to_insert_watchpoint, to_remove_watchpoint,
2854 to_stopped_by_watchpoint, to_stopped_data_address,
2855 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
2856 target vecctor. Define their corresponding macros so they call
2857 them.
2858
2859 * target.c: Add default and debug versions of for
2860 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
2861 to_insert_watchpoint, to_remove_watchpoint,
2862 to_stopped_by_watchpoint, to_stopped_data_address,
2863 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
2864
2865 2002-08-01 Kevin Buettner <kevinb@redhat.com>
2866
2867 * mips-tdep.c (mips_register_virtual_type): New function.
2868 (mips_gdbarch_init): Register mips_register_virtual_type()
2869 with gdbarch machinery.
2870 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
2871 this file instead of tm-bigmips.h.
2872 (MIPS_REGSIZE): Delete this macro.
2873 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
2874 multiarch version in mips-tdep.c will be found.
2875
2876 2002-08-01 Andrew Cagney <cagney@redhat.com>
2877
2878 * NEWS: Menion that CHILL has been made obsolete.
2879
2880 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
2881 * stabsread.c (read_range_type): Ditto.
2882 * gdbtypes.h: Ditto.
2883 * language.c (binop_type_check): Ditto.
2884 (binop_result_type): Ditto.
2885 (integral_type): Ditto.
2886 (character_type): Ditto.
2887 (string_type): Ditto.
2888 (boolean_type): Ditto.
2889 (structured_type): Ditto.
2890 (lang_bool_type): Ditto.
2891 (binop_type_check): Ditto.
2892 * language.h (_LANG_chill): Ditto.
2893 * dwarfread.c (set_cu_language): Ditto.
2894 * dwarfread.c (CHILL_PRODUCER): Ditto.
2895 * dwarfread.c (handle_producer): Ditto.
2896 * expression.h (enum exp_opcode): Ditto.
2897 * eval.c: Ditto for comments.
2898 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
2899 * expprint.c (print_subexp): Ditto.
2900 (print_subexp): Ditto.
2901 * valops.c (value_cast): Ditto.
2902 (search_struct_field): Ditto.
2903 * value.h (COERCE_VARYING_ARRAY): Ditto.
2904 * symfile.c (init_filename_language_table): Ditto.
2905 (add_psymbol_with_dem_name_to_list): Ditto.
2906 * valarith.c (value_binop): Ditto.
2907 (value_neg): Ditto.
2908 * valops.c (value_slice): Ditto.
2909 * symtab.h (union language_specific): Ditto.
2910 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
2911 (SYMBOL_DEMANGLED_NAME): Ditto.
2912 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
2913 * defs.h (enum language): Ditto.
2914 * symtab.c (got_symtab): Ditto.
2915 * utils.c (fprintf_symbol_filtered): Ditto.
2916
2917 * ch-typeprint.c: Make file obsolete.
2918 * ch-valprint.c: Make file obsolete.
2919 * ch-lang.h: Make file obsolete.
2920 * ch-exp.c: Make file obsolete.
2921 * ch-lang.c: Make file obsolete.
2922
2923 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
2924 CHILL_LIB.
2925 (TARGET_FLAGS_TO_PASS): Ditto.
2926 (CHILLFLAGS): Obsolete.
2927 (CHILL): Obsolete.
2928 (CHILL_FOR_TARGET): Obsolete.
2929 (CHILL_LIB): Obsolete.
2930 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
2931 ch-valprint.c.
2932 (HFILES_NO_SRCDIR): Remove ch-lang.h.
2933 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
2934 ch-lang.o.
2935 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
2936 targets.
2937
2938 2002-07-31 Joel Brobecker <brobecker@gnat.com>
2939
2940 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
2941 This does not change anything at the moment, but will be helpful
2942 later when full Ada support is integrated.
2943
2944 2002-07-31 Kevin Buettner <kevinb@redhat.com>
2945
2946 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
2947 help message.
2948
2949 2002-07-31 Kevin Buettner <kevinb@redhat.com>
2950
2951 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
2952 and save it in a local variable. Use variable in later test.
2953
2954 2002-07-31 Kevin Buettner <kevinb@redhat.com>
2955
2956 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
2957 test. (Thanks to Daniel Jacobowitz.)
2958
2959 2002-07-31 Kevin Buettner <kevinb@redhat.com>
2960
2961 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
2962 (mips_abi_strings): Add "n64".
2963 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
2964
2965 2002-07-31 Kevin Buettner <kevinb@redhat.com>
2966
2967 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
2968 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
2969
2970 2002-07-31 Kevin Buettner <kevinb@redhat.com>
2971
2972 * utils.c (host_pointer_to_address, address_to_host_pointer):
2973 Use gdb_assert() instead of explicit call to internal_error().
2974
2975 2002-07-30 Kevin Buettner <kevinb@redhat.com>
2976
2977 * Makefile.in (rs6000-nat.o): Update dependencies.
2978
2979 From Nicholas Duffek:
2980 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
2981 (aix-thread.o): New rule.
2982 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
2983 * config/powerpc/aix432.mh: New file.
2984
2985 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
2986
2987 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
2988 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
2989 (fetch_core_registers, ppc_linux_supply_gregset)
2990 (ppc_linux_supply_fpregset): New functions.
2991 (ppc_linux_regset_core_fns): New.
2992 (_initialize_ppc_linux_tdep): Call add_core_fns.
2993 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
2994 and ppc_linux_supply_gregset.
2995 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
2996 (supply_fpregset): Call ppc_linux_supply_fpregset.
2997 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
2998 corelow.o.
2999 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
3000
3001 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
3002
3003 * symtab.c (lookup_symbol): Demangle before lowercasing.
3004
3005 2002-07-30 Andrew Cagney <ac131313@redhat.com>
3006
3007 * symtab.h: Replace #include "gdb_obstack.h" with opaque
3008 declaration.
3009 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
3010 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
3011 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
3012 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
3013 "gdb_string.h".
3014 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
3015 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
3016 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
3017 (avr-tdep.o, mon960-rom.o): Ditto.
3018 (aout_stabs_gnu_h): Define.
3019 (symtab_h): Remove $(gdb_obstack_h).
3020
3021 2002-07-30 Jim Blandy <jimb@redhat.com>
3022
3023 Patch from David Carlton <carlton@math.stanford.edu>:
3024 * gdbinit.in: Move the `dir' commands that add GDB's own source
3025 directory to the search path to the end, so that the `gdb' source
3026 directory will be searched first.
3027
3028 2002-07-29 Andrew Cagney <ac131313@redhat.com>
3029
3030 * gdb_obstack.h: New file.
3031 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
3032 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
3033 * objfiles.h: Include "gdb_obstack.h".
3034 * Makefile.in (gdb_obstack_h): Define.
3035 (symtab_h): Add $(gdb_obstack_h).
3036 (objfiles_h): Add $(gdb_obstack_h).
3037
3038 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
3039 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
3040 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
3041 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
3042 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
3043 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
3044 * symfile.c, coffread.c, c-typeprint.c: Ditto.
3045 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
3046
3047 * Makefile.in (bcache.o): Update dependencies.
3048 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
3049 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
3050 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
3051 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
3052 (stabsread.o, symfile.o, symmisc.o): Ditto.
3053 (symtab.o, typeprint.o, macroexp.o): Ditto.
3054 (macrotab.o, mdebugread.o): Ditto.
3055 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
3056 (coff_ecoff_h, aout_aout64_h): Define.
3057 (aout_stabs_gnu_h, libaout_h): Define.
3058
3059 2002-07-29 Andrew Cagney <cagney@redhat.com>
3060
3061 * regcache.c (struct regcache_descr): Rename nr_registers to
3062 nr_cooked_registers. Revise comments describing the structure
3063 member fields.
3064 (init_regcache_descr): Update.
3065 (init_legacy_regcache_descr): Update.
3066 (read_register_gen, write_register_gen): When a cooked register in
3067 the raw register range, directly access the value from the raw
3068 register cache.
3069
3070 2002-07-29 Andrew Cagney <ac131313@redhat.com>
3071
3072 * z8k-tdep.c: Do not include "obstack.h".
3073 * h8300-tdep.c, h8500-tdep.c: Ditto.
3074 * m68hc11-tdep.c, sh-tdep.c: Ditto.
3075 * valprint.c, v850-tdep.c: Ditto.
3076 * d10v-tdep.c, mn10300-tdep.c: Ditto.
3077 * mn10200-tdep.c: Ditto.
3078
3079 * Makefile.in (z8k-tdep.o): Update dependencies.
3080 (m68hc11-tdep.o, valprint.o): Ditto.
3081 (v850-tdep.o, d10v-tdep.o): Ditto.
3082 (mn10300-tdep.o, sparc-tdep.o): Ditto.
3083 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
3084 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
3085 (sh_opc_h, gdb_sim_sh_h): Define.
3086 (elf_sh_h, elf_bfd_h): Define.
3087 (opcode_m68hc11_h): Define.
3088 (OPCODES_SRC, OPCODES_DIR): define.
3089 (OPCODES): Use $(OPCODES_DIR).
3090 (gdb_sim_d10v_h): Rename sim_d10v_h.
3091 (gdb_sim_arm_h): Rename sim_arm_h.
3092
3093 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3094
3095 * utils.c (host_pointer_to_address, address_to_host_pointer):
3096 Change internal_error() message to indicate function responsible
3097 for the error.
3098
3099 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3100
3101 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
3102 calls to local_hex_string_custom().
3103
3104 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3105
3106 * irix5-nat.c: Move IRIX shared library support from here...
3107 * solib-irix.c: ...to here. Revised substantially to work with
3108 generic solib framework.
3109
3110 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
3111 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
3112 * mips-irix-tdep.c: New file.
3113
3114 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
3115 (mips-irix-tdep.o, solib-irix.o): New rules.
3116 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
3117 solib-irix.o.
3118 * config/mips/irix6.mt (TDEPFILES): Likewise.
3119 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
3120
3121 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3122
3123 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
3124 disabled (via ``#if 0'') includes.
3125
3126 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3127
3128 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
3129 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
3130 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
3131 Add support for the fpscr register.
3132 * rs6000-nat.c (regmap, fetch_inferior_registers)
3133 (store_inferior_registers, fetch_core_registers): Likewise.
3134
3135 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3136
3137 * rs6000-nat.c (language.h): Include.
3138 (special_regs): Delete this array.
3139 (regmap): New function.
3140 (fetch_register, store_register): Use regmap() to map gdb
3141 register numbers to ptrace register numbers. Also, use
3142 outputs from regmap() to make decisions regarding type of
3143 ptrace() call to make. In particular, don't compare against
3144 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
3145 (fetch_inferior_registers, store_inferior_registers): Where
3146 possible, obtain register numbers from tdep struct. Don't
3147 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
3148 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
3149 (LAST_UISA_SP_REGNUM): Delete.
3150
3151 2002-07-25 Kevin Buettner <kevinb@redhat.com>
3152
3153 * rs6000-nat.c (ppc-tdep.h): Include.
3154 (fetch_registers, store_register, fetch_core_registers): Don't
3155 access registers[] directly. Instead, use supply_register() or
3156 regcache_collect() as appropriate.
3157 (find_toc_address): Format hex address with local_hex_string().
3158
3159 2002-07-25 Andrew Cagney <ac131313@redhat.com>
3160
3161 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
3162 bfd/elf32-frv.c.
3163
3164 2002-07-24 Tom Tromey <tromey@redhat.com>
3165
3166 * jv-exp.y: Marked all strings with _().
3167 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
3168 internal_error.
3169 (MethodInvocation, CastExpression, parse_number, yyerror,
3170 java_type_from_name, push_expression_name, yylex): Typo fixes.
3171
3172 2002-07-24 Daniel Jacobowitz <drow@mvista.com>
3173
3174 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
3175 (tee_file_flush, tee_file_write, tee_file_fputs)
3176 (tee_file_isatty): New.
3177 * ui-file.h (tee_file_new): Add prototype.
3178
3179 2002-07-24 Aidan Skinner <aidan@velvet.net>
3180
3181 * ada-lang.c: Change k&r style function definitions to prototyped
3182 form.
3183 * ada-typeprint.c: Change k&r style function definitions to prototyped
3184 form.
3185 * ada-valprint.c: Change k&r style function definitions to prototyped
3186 form.
3187
3188 2002-07-24 Andrew Cagney <cagney@redhat.com>
3189
3190 * README: Remove reference to remote-bug.
3191 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
3192 remote-bug.c.
3193 (m88k-nat.o): Delete rule.
3194 (m88k-tdep.o): Delete rule.
3195 (remote-bug.o): Delete rule.
3196 * MAINTAINERS: Mark as obsolete.
3197 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
3198 * m88k-tdep.c: Make file obsolete.
3199 * config/m88k/m88k.mh: Ditto.
3200 * config/m88k/delta88v4.mh: Ditto.
3201 * config/m88k/delta88v4.mt: Ditto.
3202 * config/m88k/delta88.mt: Ditto.
3203 * config/m88k/delta88.mh: Ditto.
3204 * remote-bug.c: Ditto.
3205 * config/m88k/tm-delta88.h: Ditto.
3206 * config/m88k/nm-delta88v4.h: Ditto.
3207 * config/m88k/xm-delta88.h: Ditto.
3208 * config/m88k/xm-dgux.h: Ditto.
3209 * config/m88k/tm-m88k.h: Ditto.
3210 * config/m88k/nm-m88k.h: Ditto.
3211 * config/m88k/tm-delta88v4.h: Ditto.
3212 * m88k-nat.c: Ditto.
3213 * cxux-nat.c: Ditto.
3214 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
3215 and m88*-*-* obsolete.
3216 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
3217 m88*-*-* obsolete.
3218
3219 2002-07-24 Andrew Cagney <cagney@redhat.com>
3220
3221 * findvar.c (extract_unsigned_integer): Make `addr' parameter
3222 constant. Same for local pointer variables.
3223 (extract_signed_integer): Ditto.
3224 * defs.h (extract_unsigned_integer): Update.
3225 (extract_signed_integer): Update.
3226
3227 2002-07-24 Andrew Cagney <cagney@redhat.com>
3228
3229 * regcache.c (regcache_raw_write): Change buf parameter to a
3230 constant void pointer.
3231 (regcache_raw_read): Change buf parameter to a void pointer.
3232 (legacy_write_register_gen): Change myaddr parameter a constant
3233 void pointer.
3234 (supply_register): Change val parameter to a const void pointer.
3235 * regcache.h (regcache_raw_write): Update declaration.
3236 (regcache_raw_read): Update declaration.
3237 (supply_register): Update declaration.
3238
3239 2002-07-24 Tom Tromey <tromey@redhat.com>
3240
3241 * defs.h (gdb_readline_wrapper): Declare.
3242 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
3243 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
3244 * top.c (gdb_readline_wrapper): New function.
3245 (command_line_input): Use it.
3246
3247 2002-07-24 Andrew Cagney <cagney@redhat.com>
3248
3249 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
3250 regcache_read and regcache_write.
3251 (regcache_raw_read_as_address): Replace regcache_read_as_address.
3252 * regcache.c: Update.
3253 * sh-tdep.c (sh64_push_arguments): Update comment.
3254 (sh_pseudo_register_read): Update.
3255 (sh_pseudo_register_write): Update.
3256 (sh4_register_read): Update.
3257 (sh4_register_write): Update.
3258 (sh64_pseudo_register_read): Update.
3259 (sh64_pseudo_register_write): Update.
3260 (sh64_register_read): Update.
3261 (sh64_register_write): Update.
3262 * i386-tdep.c (i386_extract_return_value): Update.
3263 (i386_extract_struct_value_address): Update.
3264 (i386_extract_return_value): Update.
3265 * blockframe.c (generic_read_register_dummy): Update.
3266 (generic_call_dummy_register_unwind): Update
3267 * infrun.c (write_inferior_status_register): Update.
3268
3269 2002-07-23 Jim Blandy <jimb@redhat.com>
3270
3271 * parser-defs.h (expression_context_pc): Make this extern.
3272 (Thanks to Michael Snyder.)
3273
3274 2002-07-23 Andrew Cagney <ac131313@redhat.com>
3275
3276 GDB 5.2.1 released from 5.2 branch.
3277 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
3278 * README: Update to mention 5.2.1.
3279
3280 2002-07-23 Mark Salter <msalter@redhat.com>
3281
3282 * remote.c (remote_read_bytes): Fix check for error.
3283
3284 2002-07-22 Kevin Buettner <kevinb@redhat.com>
3285
3286 * aix-thread.c (language.h): Include.
3287 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
3288 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
3289 Print newlines at end of debug messages.
3290 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
3291 (pdc_write_data): Use local_hex_string() instead of %llx formats.
3292
3293 2002-07-22 Kevin Buettner <kevinb@redhat.com>
3294
3295 * aix-thread.c (ppc-tdep.h): Include.
3296 (special_register_p): New function.
3297 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
3298 (store_regs_user_thread): Use register number information from
3299 gdbarch_tdep struct instead of hardcoded offsets relative to
3300 FIRST_UISA_SP_REGNUM.
3301 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
3302 special_register_p() instead of using FPLAST_REGNUM and
3303 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
3304 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
3305 will be MQ's register number.
3306
3307 2002-07-22 Michael Snyder <msnyder@redhat.com>
3308
3309 * aix-thread.c (ops): Rename to aix_thread_ops.
3310 (base_ops): Rename to base_target.
3311 (ops_attach): Rename to aix_thread_attach.
3312 (ops_detach): Rename to aix_thread_detach.
3313 (ops_resume): Rename to aix_thread_detach.
3314 (ops_wait): Rename to aix_thread_wait.
3315 (ops_kill): Rename to aix_thread_kill.
3316 (init_ops): Rename to init_aix_thread_ops.
3317 (ops_fetch_register): Rename to aix_thread_fetch_register.
3318 (ops_store_register): Rename to aix_thread_store_register.
3319 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
3320 (ops_thread_alive): Rename to aix_thread_thread_alive.
3321 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
3322 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
3323 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
3324 (fetch_regs_lib): Rename to fetch_regs_user_thread.
3325 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
3326 (store_regs_lib): Rename to store_regs_user_thread.
3327 (store_regs_kern): Rename to store_regs_kernel_thread.
3328
3329 2002-07-22 Michael Snyder <msnyder@redhat.com>
3330
3331 * aix-thread.c (ops_prepare_to_store): Eliminate.
3332 (init_ops): Don't initialize ops.prepare_to_store.
3333 (store_regs_kern): Pre-fetch register buffers from child,
3334 because some registers may not be in the cache. Copy
3335 regs from register cache only if they are cached.
3336 (store_regs_lib): Copy regs from register cache only
3337 if they are cached.
3338 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
3339 fill_gprs64): Ditto.
3340
3341 2002-07-22 Kevin Buettner <kevinb@redhat.com>
3342
3343 * aix-thread.c (gdb_assert.h): Include.
3344 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
3345 register sizes (from register cache) match size of buffer holding
3346 register data.
3347 (fill_sprs32): Change parameter types to match those in the ptrace()
3348 buffer.
3349 (store_regs_lib): Likewise, but for 32-bit temporary variables.
3350 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
3351
3352 2002-07-22 Michael Snyder <msnyder@redhat.com>
3353
3354 * aix-thread.c (supply_sprs64): Cosmetic change.
3355 (supply_sprs32): Cosmetic change.
3356 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
3357 (fill_sprs64): Use regcache_collect instead of read_register.
3358 (store_regs_lib): Use regcache_collect instead of
3359 read_register. Use fill_sprs32 instead of fill_sprs64,
3360 if debugging a 32-bit architecture.
3361 (store_regs_kern): Use fill_gprs64 etc. to pull the values
3362 out of the register cache, instead of passing a pointer into
3363 the register cache directly to ptrace. Use regcache_collect
3364 insteaad of read_register.
3365 (ops_prepare_to_store): Use target_read_registers instead
3366 of read_register_bytes.
3367
3368 2002-07-20 Aidan Skinner <aidan@velvet.net>
3369
3370 * MAINTAINERS: Add self under write after approval.
3371
3372 2002-07-20 Aidan Skinner <aidan@velvet.net>
3373
3374 * ada-tasks.c: Change k&r style function definitions to prototyped
3375 form.
3376
3377 2002-07-19 Andrew Cagney <ac131313@redhat.com>
3378
3379 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
3380 * x86-64-tdep.c: Include "objfiles.h".
3381 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
3382 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
3383
3384 2002-07-17 Michal Ludvig <michal@suse.cz>
3385
3386 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
3387 (update_context): Initialise cfa variable.
3388
3389 2002-07-17 Michael Snyder <msnyder@redhat.com>
3390
3391 * aix-thread.c: Shorten some long lines.
3392 Bring comments into line with code spec.
3393
3394 2002-07-18 Joel Brobecker <brobecker@gnat.com>
3395
3396 * infrun.c: Re-indent using gdb_indent.sh.
3397
3398 2002-07-18 Joel Brobecker <brobecker@gnat.com>
3399
3400 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
3401 Leave the indentation temporarily untouched, to minimize the diffs.
3402
3403 2002-07-18 Elena Zannoni <ezannoni@redhat.com>
3404
3405 * stabsread.c: Make os9k sections of the code obsolete,
3406 for real this time.
3407 * stabsread.h: Make os9k sections of the code obsolete.
3408
3409 2002-07-18 Michal Ludvig <mludvig@suse.cz>
3410
3411 * linux-low.c (regsets_store_inferior_registers): Add free()
3412 at the end of a loop to prevent memory leak.
3413 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
3414 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
3415 * config/sparc/tm-sp64linux.h: Make the rest of #endif
3416 line a comment.
3417 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
3418
3419 2002-07-17 Jim Blandy <jimb@redhat.com>
3420
3421 * macrocmd.c (info_macro_command): Remove newline from error
3422 message.
3423
3424 2002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
3425
3426 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
3427 (sh_gdbarch_init): Use it for sh-dsp.
3428
3429 2002-07-16 Kevin Buettner <kevinb@redhat.com>
3430
3431 * dwarf2read.c (read_initial_length): Handle older, non-standard,
3432 64-bit DWARF2 format.
3433
3434 2002-07-16 Joel Brobecker <brobecker@gnat.com>
3435
3436 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
3437 <sys/proc.h> when not available.
3438
3439 2002-07-16 Andrew Cagney <ac131313@redhat.com>
3440
3441 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
3442 * stabsread.c: Make os9k sections of the code obsolete.
3443 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
3444 * config/i386/i386os9k.mt: Make file obsolete.
3445 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
3446 (COMMON_OBS): Remove os9kread.o
3447 (SFILES): Remove os9kread.c.
3448 (os9kread.o, remote-os9k.o): Make target obsolete.
3449 * remote-os9k.c: Make file obsolete.
3450 * os9kread.c: Make file obsolete.
3451 * Makefile.in
3452
3453 2002-07-16 Andrew Cagney <ac131313@redhat.com>
3454
3455 * NEWS: Mention that the FR30 has been made obsolete.
3456 * fr30-tdep.c: Make file obsolete.
3457 * config/fr30/tm-fr30.h: Ditto.
3458 * config/fr30/fr30.mt: Ditto.
3459 * configure.tgt: Make fr30-*-elf obsolete.
3460 * MAINTAINERS: Make fr30-elf obsolete.
3461
3462 2002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
3463
3464 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
3465 found is not inside a section.
3466
3467 2002-07-15 Kevin Buettner <kevinb@redhat.com>
3468
3469 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
3470 strerror().
3471 (pdc_realloc): Use xrealloc() instead of realloc().
3472
3473 2002-07-15 Kevin Buettner <kevinb@redhat.com>
3474
3475 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
3476 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
3477 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
3478 macros.
3479
3480 2002-07-15 Kevin Buettner <kevinb@redhat.com>
3481
3482 * aix-thread.c (ptrace_check): Eliminate goto.
3483 (sync_threadlists): Eliminate gotos. Also, fix array overrun
3484 problem.
3485
3486 2002-07-15 Kevin Buettner <kevinb@redhat.com>
3487
3488 * aix-thread.c (gdbcmd.h): Include.
3489 (DEBUG, DBG, DBG2, dbg): Eliminate.
3490 (debug_aix_thread): New static global.
3491 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
3492 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
3493 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
3494 invocations to DBG and DBG2 macros to test against
3495 ``debug_aix_thread'' and call fprintf_unfiltered().
3496 (_initialize_aix_thread): Add new command "set debug aix-thread".
3497
3498 2002-07-15 Andrew Cagney <ac131313@redhat.com>
3499
3500 From Gerhard Tonn <TON@de.ibm.com>:
3501 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
3502 instead of supply_register.
3503
3504 2002-07-15 Andrew Cagney <ac131313@redhat.com>
3505
3506 * dwarf2cfi.c: Include "gdb_assert.h".
3507 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
3508 non-NULL.
3509 (update_context): Do not use __func__. Add missing ``break''.
3510 (update_context): Do not use __func__.
3511
3512 2002-07-15 Elena Zannoni <ezannoni@redhat.com>
3513
3514 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
3515 and its setting. Set gdbarch instruction printing functions
3516 directly. For non-rs6000 case use new function
3517 gdb_print_insn_powerpc.
3518 (gdb_print_insn_powerpc): New function.
3519
3520 2002-07-13 Andrew Cagney <ac131313@redhat.com>
3521
3522 * NEWS: Mention that the d30v has been marked obsolete.
3523 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
3524 * configure.tgt: Mark d30v-*-* as obsolete.
3525 * d30v-tdep.c: Mark file as obsolete.
3526 * config/d30v/d30v.mt: Ditto.
3527 * config/d30v/tm-d30v.h: Ditto.
3528
3529 2002-07-13 Aidan Skinner <aidan@velvet.net>
3530
3531 * ada-tasks.c (add_task_entry): replace calls to
3532 malloc() with xmalloc
3533 * ada-tasks.c (init_task_list): replace calls to free with xfree()
3534
3535 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
3536 ada_finish_decode_line_1, all_sals_for_line
3537 ada_breakpoint_rewrite): replace calls to free() with xfree()
3538
3539 2002-07-12 Kevin Buettner <kevinb@redhat.com>
3540
3541 From Nicholas Duffek (with minor changes by Martin Hunt,
3542 Louis Hamilton, and Kevin Buettner):
3543 * aix-thread.c: New file.
3544
3545 2002-07-12 Petr Sorfa <petrs@caldera.com>
3546
3547 * dwarf2read.c (dwarf2_invalid_attrib_class): New
3548 complaint for invalid attribute class or form.
3549 (read_func_scope): DW_AT_frame_base
3550 better handling of DW_AT_block*.
3551 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
3552 better handling of DW_AT_block*.
3553 (read_common_block): DW_AT_location
3554 better handling of DW_AT_block*.
3555 (read_partial_die): DW_AT_location better handling
3556 of DW_AT_block*.
3557 (new_symbol): DW_AT_external better handling of
3558 DW_AT_block*. Proper initialization of variable
3559 "addr".
3560 (attr_form_is_block): New function that returns true
3561 if the attribute's form is of DW_FORM_block*.
3562
3563 2002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
3564
3565 * valops.c (find_method_list): Remove comment about
3566 removed STATIC_MEMFUNCP argument.
3567 (value_find_oload_method_list): Likewise.
3568
3569 2002-07-12 Kevin Buettner <kevinb@redhat.com>
3570
3571 From Nicholas Duffek:
3572 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
3573 target_new_objfile_hook.
3574
3575 2002-07-12 Kevin Buettner <kevinb@redhat.com>
3576
3577 From Nicholas Duffek:
3578 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
3579 csect.
3580
3581 2002-07-12 Andrew Cagney <cagney@redhat.com>
3582
3583 * MAINTAINERS: Mention --enable-sim-build-warnings.
3584 (m68hc11-elf): Disable sim build warnings.
3585 (m32r-elf): Mark as broken obsolete candidate.
3586 (x86_64-linux-gnu): Mark as buildable with -Werror.
3587 (arm-elf): Change -w to ``,'' which enables warnings but not
3588 -Werror.
3589
3590 2002-07-12 Andrew Cagney <ac131313@redhat.com>
3591
3592 * bcache.h: Update copyright.
3593 (struct bstring, struct bcache): Move definition to "bcache.c".
3594 Replaced by opaque declaration.
3595 (bcache_xfree): Replace free_bcache.
3596 (bcache_xmalloc, bcache_memory_used): Declare.
3597
3598 * bcache.c: Update copyright.
3599 (struct bstring, struct bcache): Moved to here from "bcache.h".
3600 Update comments.
3601 (bcache_xmalloc, bcache_memory_used): New functions.
3602 (bcache_xfree): Replace function free_bcache.
3603
3604 * Makefile.in (objfiles.o): Add $(bcache_h).
3605 (objfiles_h): Remove $(bcache_h).
3606 (symfile.o): Add $(bcache_h).
3607
3608 * symmisc.c: Update copyright.
3609 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
3610 (print_objfile_statistics): Use bcache_memory_used.
3611
3612 * symfile.c: Include "bcache.h".
3613 (reread_symbols): Use bcache_xfree.
3614 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
3615 (add_psymbol_to_list): Pass psymbol_cache by value.
3616 (add_psymbol_with_dem_name_to_list): Ditto.
3617
3618 * objfiles.h: Update copyright.
3619 (struct bcache): Declare opaque. Do not include "bcache.h".
3620 (struct objfile): Change psymbol_cache and macro_cache to ``struct
3621 bcache'' pointers.
3622 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
3623
3624 * objfiles.c: Include "bcache.h". Update copyright.
3625 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
3626 macro_cache.
3627 (free_objfile): Use bcache_xfree.
3628
3629 2002-07-11 Grace Sainsbury <graces@redhat.com>
3630
3631 * monitor.c (monitor_fetch_register): Make name a constant.
3632 (monitor_store_register): Same.
3633
3634 2002-07-11 Daniel Jacobowitz <drow@mvista.com>
3635
3636 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
3637 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
3638 (finish_block) For non-function blocks, hash the symbol table. For
3639 function blocks, mark the symbol table as unhashed.
3640 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
3641 (msymbol_hash_iw): Likewise.
3642 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
3643 value.
3644 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
3645 (lookup_minimal_symbol): Likewise for both.
3646 * symtab.h (struct block): Add `hashtable' flag. Comment the
3647 hashtable.
3648 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
3649 (ALL_BLOCK_SYMBOLS): Update.
3650 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
3651 (struct symbol): Add `hash_next' pointer.
3652 * symtab.c (lookup_block_symbol): Search using the hash table when
3653 possible.
3654 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
3655 (search_symbols, find_addr_symbol): Likewise.
3656
3657 * dstread.c (process_dst_block): Clear hashtable bit for new block.
3658 (read_dst_symtab): Likewise.
3659 * jv-lang.c (get_java_class_symtab): Likewise.
3660 * mdebugread.c: Include "gdb_assert.h".
3661 (shrink_block): Assert that the block being modified is not hashed.
3662 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
3663 * symmisc.c (free_symtab_block): Walk the hash table when freeing
3664 symbols.
3665 (dump_symtab): Recognize hashed blocks.
3666 * printcmd.c (print_frame_args): Assert that function blocks do not
3667 have hashed symbol tables.
3668 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
3669 (fill_in_ada_prototype, debug_print_block): Likewise.
3670 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
3671
3672 2002-07-11 Corinna Vinschen <vinschen@redhat.com>
3673
3674 * stack.c (print_frame): Use result of frame_address_in_block()
3675 instead of fi->pc when evaluating symbols.
3676 (backtrace_command_1): Ditto.
3677
3678 2002-07-11 Andrew Cagney <cagney@redhat.com>
3679
3680 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
3681 Make static.
3682
3683 * arm-tdep.c (arm_register_name): Make return type constant.
3684
3685 2002-07-10 Andrew Cagney <ac131313@redhat.com>
3686
3687 * win32-nat.c (has_detach_ability): Convert to strict ISO C
3688 prototype.
3689 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
3690 * s390-tdep.c (s390_fp_regnum): Ditto.
3691 (s390_read_fp): Ditto.
3692 (s390_pop_frame): Ditto.
3693 (_initialize_s390_tdep): Ditto.
3694 * remote.c (get_remote_state): Ditto.
3695 * procfs.c (mappingflags): Ditto.
3696 * memattr.c (_initialize_mem): Ditto.
3697 * mcore-tdep.c (mcore_pop_frame): Ditto.
3698 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
3699 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
3700 * language.c (set_case_str): Ditto.
3701 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
3702 * frv-tdep.c (new_variant): Ditto.
3703 (frv_stopped_data_address): Ditto.
3704 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
3705 (context_alloc): Ditto.
3706 (frame_state_alloc): Ditto.
3707 (unwind_tmp_obstack_init): Ditto.
3708 (unwind_tmp_obstack_free): Ditto.
3709 (cfi_read_fp): Ditto.
3710 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
3711 (cris_pop_frame): Ditto.
3712 * c-lang.c (scanning_macro_expansion): Ditto.
3713 (finished_macro_expansion): Ditto.
3714 (c_preprocess_and_parse): Ditto.
3715 * gdbarch.sh: Ditto.
3716 * gdbarch.h, gdbarch.c: Regenerate.
3717 * config/mn10200/tm-mn10200.h: Adjust indentation.
3718 * target.c: Adjust indentation.
3719 * symtab.h: Adjust indentation.
3720 * stabsread.h: Adjust indentation.
3721 * remote-es.c: Adjust indentation.
3722 * os9kread.c: Adjust indentation.
3723
3724 2002-07-10 Andrew Cagney <ac131313@redhat.com>
3725
3726 * wince.c (_initialize_wince): Rename _initialize_inftarg.
3727 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
3728
3729 2002-07-10 Grace Sainsbury <graces@redhat.com>
3730
3731 * NEWS: Mention m68k, mcore multi-arching.
3732 * MAINTAINERS: Change status of m68k, mcore to reflect
3733 multi-arching.
3734
3735 2002-07-10 Daniel Jacobowitz <drow@mvista.com>
3736
3737 * valops.c (find_overload_match): Free oload_syms.
3738
3739 2002-07-09 Joel Brobecker <brobecker@gnat.com>
3740
3741 Define HAVE_SYS_PROC_H if sys/proc.h exists
3742 * configure.in: Add check for sys/proc.h
3743 * config.in: Regenerate.
3744 * configure: Regenerate.
3745
3746 2002-07-09 Grace Sainsbury <graces@redhat.com>
3747
3748 * config/m68k/tm-m68k.h: Remove macros wrapped in
3749 #if !GDB_MULTI_ARCH.
3750
3751 2002-07-08 Andrew Cagney <ac131313@redhat.com>
3752
3753 * config.in, configure: Regenerate.
3754
3755 2002-07-08 Mark Kettenis <kettenis@gnu.org>
3756
3757 * dwarf2cfi.c: Include "gcore.h".
3758 (execute_stack_op): Fix implementation of the
3759 DW_OP_deref and DW_OP_deref_size operators by letting do their
3760 lookup in the target.
3761
3762 2002-07-07 Mark Kettenis <kettenis@gnu.org>
3763
3764 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
3765 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
3766 tdep->sc_sp_offset.
3767
3768 2002-07-05 Daniel Jacobowitz <drow@mvista.com>
3769
3770 Fix PR gdb/595, gdb/602
3771 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
3772 Don't call value_cast, just read the vtable pointer; update comments
3773 to match.
3774
3775 2002-07-05 Grace Sainsbury <graces@redhat.com>
3776
3777 * config/mcore/tm-mcore.h: Remove file.
3778 * config/mcore/mcore.mt: Remove definition of TM_FILE
3779 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
3780
3781 2002-07-05 Mark Kettenis <kettenis@gnu.org>
3782
3783 * i386bsd-tdep.c: Include "gdb_string.h".
3784
3785 2002-07-04 Grace Sainsbury <graces@redhat.com>
3786
3787 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
3788 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
3789 mcore-tdep.
3790 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
3791 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
3792 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
3793 (RETVAL_REGNUM): Move macros from tm-mcore.h
3794 (mcore_reg_struct_has_addr): New function.
3795 (mcore_gdbarch_init): Added initializations for the macros removed
3796 from tm-mcore.h.
3797
3798 2002-07-04 Mark Kettenis <kettenis@gnu.org>
3799
3800 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
3801 traditonal string branding within the ELF header.
3802
3803 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
3804
3805 * symtab.c (remove_params): New function.
3806 (make_symbol_overload_list): Use it instead of cplus_demangle.
3807 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
3808
3809 2002-07-04 Mark Kettenis <kettenis@gnu.org>
3810
3811 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
3812
3813 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
3814 New variables.
3815 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
3816 and tdep->sigtramp_end.
3817 * i386obsd-nat.c: New file.
3818 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
3819
3820 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
3821 Don't call get_current_frame().
3822
3823 2002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
3824
3825 * i386-nat.c (child_post_startup_inferior): New function
3826 calling i386_cleanup_dregs if
3827 I386_USE_GENERIC_WATCHPOINTS is defined.
3828 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
3829 conditional to acknowledge that i386-nat.c has its
3830 own child_post_startup_inferior function.
3831
3832 2002-07-04 Mark Kettenis <kettenis@gnu.org>
3833
3834 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
3835 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
3836 instead of MAX_REGISTER_RAW_SIZE.
3837 (i386_extract_return_value, i386_extract_struct_value_address):
3838 Convert to use regcache.
3839 (i386_gdbarch_init): Set max_register_raw_size and
3840 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
3841 Set extract_return_value and extract_struct_value_address instead
3842 of their deprecated variants.
3843
3844 Convert i386 target to generic dummy frames.
3845 * i386-tdep.c: Include "symfile.h".
3846 (i386_frameless_signal_p): Consider a function to be frameless if
3847 the pc points at the first instruction of the function.
3848 (i386_frame_chain): Handle (generic) call dummies.
3849 (i386_frame_saved_pc): Likewise.
3850 (i386_frame_init_saved_regs): Remove code dealing with call
3851 dummies on the stack.
3852 (i386_push_dummy_frame): Removed.
3853 (i386_call_dummy_words): Removed.
3854 (i386_fix_call_dummy): Removed.
3855 (i386_push_return_address): New function.
3856 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
3857 parameter, and don't call get_current_frame.
3858 (i386_pop_frame): New function.
3859 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
3860 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
3861 entry_point_address, set call_dummy_breakpoint_offset to 0, set
3862 call_dummy_length to 0, set call_dummy_words to NULL, set
3863 sizeof_call_dummy_words to 0, set fix_call_dummy to
3864 generic_fix_call_dummy, set pc_in_call_dummy to
3865 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
3866 generic_push_dummy_frame, set push_return_address to
3867 i386_push_return_address and set frame_chain_valid to
3868 generic_file_frame_chain_valid.
3869
3870 2002-07-03 Andrew Cagney <ac131313@redhat.com>
3871
3872 * gdbarch.sh (struct regcache): Add opaque declaration.
3873 (EXTRACT_RETURN_VALUE): New architecture method.
3874 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
3875 * gdbarch.h, gdbarch.c: Regenerate.
3876 * arch-utils.c (legacy_extract_return_value): New function.
3877 * arch-utils.h (legacy_extract_return_value): Declare.
3878 * values.c (value_being_returned): Re-enable code handling
3879 EXTRACT_STRUCT_VALUE_ADDRESS. Move
3880 deprecated_grub_regcache_for_registers call to block handling
3881 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
3882 (EXTRACT_RETURN_VALUE): Do not define.
3883
3884 2002-07-03 Grace Sainsbury <graces@redhat.com>
3885
3886 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
3887 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
3888 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
3889 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
3890 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
3891 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
3892 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
3893 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
3894 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
3895 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
3896 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
3897 argument so the function fits the prototype in the architecture
3898 vector.
3899 (mcore_pop_frame): Remove argument so the function fits the
3900 prototype. Use get_current_frame instead of the argument.
3901 (mcore_push_arguments): Change type of struct_return so the
3902 function can be used in the architecture vector.
3903 (mcore_store_struct_return): Add.
3904 (mcore_frame_init_saved_regs): Add.
3905 (mcore_gdbarch_init): Add function calls to replace the macros
3906 removed from tm-mcore.h
3907
3908 2002-07-03 Andrew Cagney <ac131313@redhat.com>
3909
3910 * infcmd.c (print_return_value): Remove compatibility code calling
3911 deprecated_grub_regcache_for_registers.
3912
3913 * values.c: Include "regcache.h".
3914 (value_being_returned): Update. Use
3915 deprecated_grub_regcache_for_registers to extract the register
3916 buffer address.
3917 * value.h (value_being_returned): Change ``retbuf'' parameter to a
3918 ``struct regcache''.
3919 * Makefile.in (values.o): Add dependency on $(regcache_h).
3920
3921 * inferior.h (run_stack_dummy): Change type of second parameter to
3922 a ``struct regcache''.
3923 * valops.c (hand_function_call): Change type of retbuf to ``struct
3924 regcache''. Allocate using regcache_xmalloc, clean using
3925 make_cleanup_regcache_xfree.
3926 * infcmd.c (run_stack_dummy): Update. Use
3927 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
3928
3929 * regcache.c (do_regcache_xfree): New function.
3930 (make_cleanup_regcache_xfree): New function.
3931 * regcache.h (make_cleanup_regcache_xfree): Declare.
3932
3933 2002-07-03 Martin M. Hunt <hunt@redhat.com>
3934
3935 * event-top.c (command_line_handler): Don't read past
3936 beginning of buffer.
3937
3938 2002-07-03 Martin M. Hunt <hunt@redhat.com>
3939
3940 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
3941 struct frame_id.
3942 (varobj_create): Store frame_id for root.
3943 (varobj_gen_name): Use xasprintf.
3944 (varobj_update): Save and restore frame using get_frame_id() and
3945 frame_find_by_id().
3946 (create_child): Use xasprintf.
3947 (new_root_variable): Initialize frame_id.
3948 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
3949 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
3950 to prevent memory leak.
3951
3952 2002-07-03 Andrew Cagney <ac131313@redhat.com>
3953
3954 * valops.c (hand_function_call): Move declaration of retbuf to
3955 start of function, allocate using malloc, add a cleanup but before
3956 the inf_status cleanup, cleanup the buffer. Rename local variable
3957 old_chain to inf_status_cleanup.
3958
3959 2002-07-03 Martin M. Hunt <hunt@redhat.com>
3960
3961 * top.c (execute_command): Use cmd_func() and cmd_func_p().
3962
3963 * cli/cli-decode.c (cmd_func_p): New function.
3964 (cmd_func): New function.
3965
3966 * command.h: Add cmd_func() and cmd_func_p().
3967
3968 2002-07-03 Grace Sainsbury <graces@redhat.com>
3969
3970 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
3971 (REGISTER_SIZE): Remove.
3972 (MAX_REGISTER_RAW_SIZE): Remove.
3973 (REGISTER_VIRTUAL_TYPE): Remove.
3974 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
3975 (REGISTER_NAME): Remove.
3976 (USE_GENERIC_DUMMY_FRAMES): Remove.
3977 (CALL_DUMMY): Remove.
3978 (CALL_DUMMY_START_OFFSET): Remove.
3979 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
3980 (CALL_DUMMY_LOCATION): Remove.
3981 (FIX_CALL_DUMMY): Remove.
3982 (CALL_DUMMY_ADDRESS): Remove.
3983 (SIZEOF_CALL_DUMMY_WORDS): Remove.
3984 (SAVE_DUMMY_FRAME_TOS): Remove.
3985 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
3986 (mcore_register_virtual_type): New function.
3987 (mcore_register_byte): New function.
3988 (mcore_register_size): New function.
3989 (mcore_register_name): New function.
3990 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
3991 macros removed from tm-mcore.h.
3992 (mcore_dump_tdep): Add.
3993 (_initialize_mcore_tdep): Add gdbarch_register call.
3994
3995 2002-07-03 Mark Kettenis <kettenis@gnu.org>
3996
3997 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
3998 frameless_look_for_prologue, such that we actually call this
3999 function.
4000
4001 2002-07-02 Joel Brobecker <brobecker@gnat.com>
4002
4003 * frame.h (frame_address_in_block): New function.
4004
4005 * blockframe.c (frame_address_in_block): New function extracted
4006 from get_frame_block().
4007 (get_frame_block): Use frame_address_in_block().
4008 (block_innermost_frame): Use frame_address_in_block() to match
4009 the frame pc address against the block boundaries rather than
4010 the frame pc directly. This prevents a failure when a frame pc
4011 is actually a return-address pointing immediately after the end
4012 of the given block.
4013
4014 2002-07-02 Grace Sainsbury <graces@redhat.com>
4015
4016 * MAINTAINERS: Add self under write after approval.
4017
4018 2002-07-02 Grace Sainsbury <graces@redhat.com>
4019
4020 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
4021 used in architecture vector. The default is
4022 m68k_local_breakpoint_from_pc.
4023 (m68k_local_breakpoint_from_pc): Add.
4024 (enum): Add register numbers from tm-m68k.h.
4025 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
4026 vector.
4027 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
4028 GDB_MULTI_ARCH_PARTIAL.
4029 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
4030 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
4031 m68k-tdep.c.
4032 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
4033 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
4034 to enum in m68k-tdep.c
4035
4036 2002-07-02 Joel Brobecker <brobecker@gnat.com>
4037
4038 * solib-osf.c (open_map): Compute the list of shared libraries
4039 loaded by the inferior, rather than the list of libraries loaded
4040 by GDB itself. Otherwise, GDB ends up reading the symbols from
4041 the wrong shared libraries...
4042
4043 2002-07-02 Mark Kettenis <kettenis@gnu.org>
4044
4045 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
4046 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
4047 macros.
4048 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
4049 Remove functions.
4050 (FRAMELESS_SIGNAL): Remove function.
4051 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
4052 i386_linux_saved_pc_after_call): Removed.
4053 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
4054 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
4055 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
4056
4057 * i386-tdep.c (i386_frameless_signal_p): New function.
4058 (i386_frame_chain): Deal with frameless signals.
4059 (i386_sigtramp_saved_sp): New function.
4060 (i386_frame_saved_pc): Deal with frameless signals.
4061 (i386_saved_pc_after_call): Make sure the correct value is
4062 returned just after entry into a sigtramp.
4063 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
4064 i386fbsd4_sc_sp_offset): New variables.
4065 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
4066 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
4067 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
4068 similiar to what we already did for sc_pc_offset.
4069 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
4070 tdep->sc_sp_offset.
4071
4072 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
4073
4074 2002-07-02 Michal Ludvig <mludvig@suse.cz>
4075
4076 * config/i386/tm-x86-64linux.h: New.
4077 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
4078 definitions.
4079 * config/i386/nm-x86-64.h: Rename to ...
4080 * config/i386/nm-x86-64linux.h: ... this one.
4081 * config/i386/x86-64linux.mh: Reflect the above change.
4082
4083 2002-07-01 Mark Kettenis <kettenis@gnu.org>
4084
4085 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
4086 with sigcontext_addr. Add sc_sp_offset.
4087 (i386bsd_sigtramp_saved_pc): Remove prototype.
4088 (i386bsd_sicontext_addr): Add prototype.
4089 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
4090 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
4091 (i386_svr4_sigtramp_saved_pc): Removed.
4092 (i386_svr4_sigcontext_addr): New function.
4093 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
4094 Initialize tdep->sigcontext_addr instead. Initialize
4095 tdep->sc_pc_offset and tdep->sc_sp_offset.
4096 (i386_gdbarch_init): Likewise.
4097 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
4098 any more.
4099 (i386bsd_sigtramp_saved_pc): Remove function.
4100 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
4101 Initialize tdep->sigcontext_addr instead. Initialize
4102 tdep->sc_pc_offset.
4103 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
4104 of tdep->sigtramp_saved_pc.
4105 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
4106 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
4107 instead.
4108
4109 * i386-tdep.c (i386_frameless_function_invocation,
4110 i386_frame_num_args, i386_frame_init_saved_regs,
4111 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
4112 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
4113 i386_extract_return_value, i386_store_return_value,
4114 i386_extract_struct_value_address, i386_register_virtual_type,
4115 i386_register_convertible, i386_register_convert_to_virtual,
4116 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
4117 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
4118 static.
4119
4120 2002-07-01 Mark Kettenis <kettenis@gnu.org>
4121
4122 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
4123
4124 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
4125 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
4126 this macro. Include "value.h".
4127
4128 2002-06-30 Aidan Skinner <aidan@velvet.net>
4129
4130 * ada-exp.tab.c: remove as it's a generated file
4131 * ada-lex.c: remove as it's a generated file
4132
4133 2002-06-30 Mark Kettenis <kettenis@gnu.org>
4134
4135 * config/i386/tm-i386.h (struct frame_info, struct
4136 frame_saved_regs, struct value, struct type): Remove forward
4137 declarations.
4138
4139 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
4140 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
4141 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
4142 (FILL_FPXREGSET): Define.
4143
4144 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
4145
4146 * configure.tgt (i[3456]86-*-openbsd*): Fold into
4147 i[3456]86-*-netbsd* case.
4148 * config/i386/tm-obsd.h: Removed.
4149 * config/i386/obsd.mt: Removed.
4150 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
4151 core-aout.o.
4152 (MH_CFLAGS): Add -DYYDEBUG=0.
4153
4154 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
4155 i386nbsd_sc_pc_offset on OpenBSD too.
4156
4157 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
4158 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
4159 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
4160 define.
4161 * i386bsd-tdep.c: Include "arch-utils.h".
4162 (i386bsd_aout_in_solib_call_trampoline): New function.
4163 (i386bsd_init_abi): Set in_solib_call_trampoline to
4164 i386bsd_aout_in_solib_call_trampoline.
4165 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
4166 in_solib_call_trampoline to generic_in_solib_call_trampoline.
4167
4168 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4169
4170 * macrotab.h: Do not include "obstack.h" or "bcache.h".
4171 (struct obstack, struct bcache): Add opaque declarations.
4172 * Makefile.in (macrotab_h): Update
4173
4174 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4175
4176 * blockframe.c (generic_find_dummy_frame): Change return type to
4177 ``struct regcache''.
4178 (struct dummy_frame): Replace field ``registers'' with regcache, a
4179 struct regcache object.
4180 (generic_find_dummy_frame): Update.
4181 (generic_push_dummy_frame): Update. Use regcache_xfree,
4182 regcache_xmalloc and regcache_cpy.
4183 (generic_pop_dummy_frame): Update. Use regcache_cpy and
4184 regcache_xfree.
4185 (deprecated_generic_find_dummy_frame): Update.
4186 (generic_read_register_dummy): Update. Use
4187 regcache_read_as_address.
4188 (generic_call_dummy_register_unwind): Update. Use regcache_read.
4189 (generic_get_saved_register): Update. Use regcache_read.
4190
4191 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4192
4193 * Makefile.in (objfiles_h): Add $(bcache_h).
4194 * objfiles.h: Include "bcache.h".
4195
4196 * Makefile.in (symtab_h): Remove $(bcache_h).
4197 * symtab.h: Do not include "bcache.h".
4198
4199 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4200
4201 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
4202 generic_func_frame_chain_valid.
4203
4204 2002-06-28 David O'Brien <obrien@FreeBSD.org>
4205
4206 * config/i386/nm-fbsd.h: Include <sys/param.h>.
4207 * config/i386/tm-fbsd.h: Likewise.
4208
4209 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4210
4211 * rs6000-tdep.c (rs6000_gdbarch_init): Use
4212 generic_unwind_get_saved_register.
4213
4214 2002-06-27 Andrew Cagney <ac131313@redhat.com>
4215
4216 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
4217 * regcache.c (supply_register): Add missing argument to
4218 register_buffer call.
4219
4220 2002-06-27 Andrew Cagney <ac131313@redhat.com>
4221
4222 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
4223 Solaris /bin/grep does not not like it. From Peter Schauer.
4224
4225 2002-06-26 Tom Tromey <tromey@redhat.com>
4226
4227 * command.h (add_setshow_cmd): Declare.
4228 (add_setshow_cmd_full): Declare.
4229 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
4230 returns void. Use add_setshow_cmd_full.
4231 (add_setshow_cmd_full): New function.
4232 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
4233 (add_setshow_boolean_cmd): Likewise.
4234
4235 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4236
4237 * config/vax/tm-vax.h: Protect from multiple inclusion.
4238 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
4239 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
4240 * config/vax/tm-vaxbsd.h: ...here. New file.
4241 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
4242
4243 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4244
4245 * config/vax/tm-vax.h (BREAKPOINT): Remove.
4246 (BELIEVE_PCC_PROMOTION): Remove.
4247 (AP_REGNUM): Move to...
4248 * config/vax/nm-vax.h: ...here.
4249 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
4250 (vax_breakpoint_from_pc): New function.
4251 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
4252 and gdbarch_believe_pcc_promotion.
4253
4254 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4255
4256 * Makefile.in (vax_tdep_h): Define.
4257 (vax-tdep.o): Use $(vax_tdep_h).
4258 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
4259 (vax_dump_tdep): New function.
4260 (_initialize_vax_tdep): Register vax_dump_tdep.
4261 * vax-tdep.h: Include osabi.h.
4262 (struct gdbarch_tdep): New.
4263
4264 2002-06-26 Andrew Cagney <cagney@redhat.com>
4265
4266 * frame.h (deprecated_generic_find_dummy_frame): Rename
4267 generic_find_dummy_frame.
4268 * blockframe.c (generic_find_dummy_frame): Make static.
4269 (deprecated_generic_find_dummy_frame): New function.
4270 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
4271 generic_find_dummy_frame with deprecated_find_dummy_frame.
4272 (sh64_nofp_frame_init_saved_regs): Ditto.
4273 (sh_fp_frame_init_saved_regs): Ditto.
4274 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
4275 (s390_frame_chain): Ditto.
4276 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
4277
4278 2002-06-26 Grace Sainsbury <graces@redhat.com>
4279
4280 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
4281 gdbarch vector are at the top.
4282 (NUM_REGS): Remove.
4283 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
4284 (FRAME_ARGS_ADDRESS): Remove.
4285 (FRAME_LOCALS_ADDRESS): Remove.
4286 (FRAME_NUM_ARGS): Remove.
4287 (FRAME_ARGS_SKIP): Remove.
4288 * m68k-tdep.c (enum): Add eumeration of special register numbers.
4289 (m68k_gdbarch_init): Add gdbarch initializations for macros
4290 undefined in tm-m68k.h
4291
4292 2002-06-26 Grace Sainsbury <graces@redhat.com>
4293
4294 * monitor.h: Add the function regname to monitor_ops
4295 structure. This way NUM_REGS does not have to be a constant.
4296 * monitor.c (monitor_fetch_register): Added support for regname
4297 function. The function is called if the array regnames is NULL.
4298 (monitor_store_register): Same.
4299 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
4300 regnames array.
4301 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
4302 cpu32bug_cmds.regname to point to new function.
4303 * abug-rom.c (abug_regname): Same as above.
4304 (init_abug_cmds): Same.
4305 * dbug-rom.c (dbug_regname): Same as above.
4306 (init_dbug_cmds): Same.
4307 * remote-est.c (est_regname): Same.
4308 (init_est_cmds): Same.
4309 * rom68k-rom.c (rom68k_regname): Same.
4310 (init_rom68k_cmds): Same.
4311
4312 2002-06-25 Tom Tromey <tromey@redhat.com>
4313
4314 * breakpoint.c (delete_command): Don't repeat `delete' commands.
4315
4316 2002-06-25 Andrew Cagney <cagney@redhat.com>
4317
4318 * infrun.c (stop_registers): Change variable's type to ``struct
4319 regcache'''.
4320 (xmalloc_inferior_status): Delete function.
4321 (free_inferior_status): Delete function.
4322 (normal_stop): Use regcache_cpy.
4323 (struct inferior_status): Change type of fields ``stop_registers''
4324 and ``registers'' to ``struct regcache''.
4325 (write_inferior_status_register): Use regcache_write.
4326 (save_inferior_status): Instead of calling
4327 xmalloc_inferior_status, allocate the inf_status buffer directly.
4328 Use regcache_dup_no_passthrough and regcache_dup to save the
4329 buffers.
4330 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
4331 Replace the stop_registers regcache instead of overriding it. Use
4332 regcache_xfree. Instead of calling free_inferior_status, xfree
4333 the buffer directly.
4334 (discard_inferior_status): Use regcache_xfree. Instead of calling
4335 free_inferior_status, xfree the buffer directly.
4336 (build_infrun): Use regcache_xmalloc.
4337 (_initialize_infrun): Delete redundant call to build_infrun.
4338
4339 * Makefile.in (infcmd.o): Add $(regcache_h).
4340
4341 * infcmd.c: Include "regcache.h".
4342 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
4343 obtain the address of `stop_registers' register buffer.
4344 (print_return_value): Ditto.
4345
4346 * inferior.h (struct regcache): Add opaque declaration.
4347 (stop_registers): Change variable's declared type to ``struct
4348 regcache''.
4349
4350 2002-06-24 Tom Tromey <tromey@redhat.com>
4351
4352 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
4353 * target.c (initialize_targets): Fixed typo in
4354 trust-readonly-sections `show' documentation.
4355
4356 * main.c: Marked all strings with _().
4357
4358 2002-06-24 Don Howard <dhoward@redhat.com>
4359
4360 * memattr.c (create_mem_region): Treat hi == 0 as a special case
4361 that means max CORE_ADDR+1.
4362 (lookup_mem_region): Ditto.
4363 (mem_info_command): Ditto.
4364
4365 2002-06-24 Grace Sainsbury <graces@redhat.com>
4366
4367 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
4368 (REGISTER_BYTES_OK): Remove.
4369 (REGISTER_BYTES): Remove.
4370 (STORE_STRUCT_RETURN): Remove.
4371 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
4372 (STORE_RETURN_VALUE): Remove.
4373 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
4374 (FRAME_CHAIN): Remove.
4375 (FRAMELESS_FUNCTION_INVOCATION): Remove.
4376 (FRAME_SAVED_PC): Remove.
4377 * m68k-tdep.c (m68k_register_bytes_ok):Add.
4378 (m68k_store_struct_return): Add.
4379 (m68k_deprecated_extract_return_value): Add.
4380 (m68k_deprecated_extract_struct_value_address): Add.
4381 (m68k_store_return_value): Add.
4382 (m68k_frame_chain): Add.
4383 (m68k_frameless_function_invocation): Add.
4384 (m68k_frame_saved_pc): Add.
4385 (m68k_gdbarch_init): added set_gdbarch calls for new
4386 functions and deleted macros.
4387
4388 2002-06-23 Tom Tromey <tromey@redhat.com>
4389
4390 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
4391 (ALLDEPFILES): Likewise.
4392 (udiheaders): Removed.
4393 (udip2soc.o): Likewise.
4394 (udi2go32.o): Likewise.
4395 (udr.o): Likewise.
4396 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
4397
4398 2002-06-22 Andrew Cagney <ac131313@redhat.com>
4399
4400 * infrun.c (_initialize_infrun): Delete unnecessary call to
4401 build_infrun.
4402
4403 * regcache.h: Update comments describing the regcache_cpy family
4404 of functions.
4405 (regcache_save, regcache_restore): Delete declaration.
4406 (regcache_save_no_passthrough): Delete declaration.
4407 (regcache_restore_no_passthrough): Delete declaration.
4408 * regcache.c (regcache_save): Delete function.
4409 (regcache_save_no_passthrough): Delete function.
4410 (regcache_restore): Delete function.
4411 (regcache_restore_no_passthrough): Delete function.
4412
4413 2002-06-21 Andrew Cagney <ac131313@redhat.com>
4414
4415 * config/m68k/tm-m68k.h: Fix typo.
4416 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
4417 (m68k_frame_init_saved_regs): Declare.
4418
4419 2002-06-21 Jim Blandy <jimb@redhat.com>
4420
4421 Remove some vestiges of Harris 88k support.
4422 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
4423 register numbering quirk.
4424 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
4425 odd symbols occurring in Harris 88k ELF targets.
4426
4427 2002-06-21 Tom Tromey <tromey@redhat.com>
4428
4429 * gdb_locale.h: New file.
4430 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
4431 (defs_h): Added gdb_locale.h.
4432 * configure, config.in: Rebuilt.
4433 * configure.in (PACKAGE): Define.
4434 * defs.h: Include gdb_locale.h.
4435 * main.c (captured_main): Call setlocale, bindtextdomain,
4436 textdomain.
4437
4438 2002-06-21 Dave Brolley <brolley@redhat.com>
4439
4440 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
4441 * config/frv/frv.mt: New file.
4442 * config/frv/tm-frv.h: New file.
4443 * configure.tgt: Support frv-*-*.
4444 * Makefile.in (frv-tdep.o): New target.
4445 * frv-tdep.c: New file.
4446 * NEWS: Mention frv.
4447
4448 2002-06-21 Dave Brolley <brolley@redhat.com>
4449
4450 * MAINTAINERS: Add self to "Write After Approval" list.
4451
4452 2002-06-21 Grace Sainsbury <graces@redhat.com>
4453
4454 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
4455 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
4456 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
4457 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
4458 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
4459
4460 * m68k-tdep.c: Include arch-utils.h
4461 (m68k_register_raw_size): Add.
4462 (m68k_register_virtual_size): Add.
4463 (m68k_register_virtual_type): Add.
4464 (m68k_register_name): Add.
4465 (m68k_stack_align): Add.
4466 (m68k_register_byte): Add.
4467 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
4468 tm-m68k.h.
4469
4470 2002-06-21 Grace Sainsbury <graces@redhat.com>
4471
4472 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
4473 m68k_find_saved_regs.
4474 (m68k_pop_frame): Removed saved_regs structure, and replaced
4475 references to it with frame->saved_regs.
4476 (m68k_gdbarch_init): Added function calls to initialize the
4477 gdbarch structure.
4478 (m68k_fix_call_dummy): Add.
4479 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
4480 (CALL_DUMMY): Remove.
4481 (CALL_DUMMY_LENGTH): Remove.
4482 (CALL_DUMMY_START_OFFSET): Remove.
4483 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
4484 (FIX_CALL_DUMMY): Remove.
4485 (PUSH_DUMMY_FRAME): Remove.
4486 (POP_FRAME): Remove.
4487
4488 2002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
4489
4490 * parse.c (parse_fprintf): New function used to avoid calls to
4491 fprintf in bison parser generated debug code.
4492 * parser-defs.h: Declaration of new parse_fprintf function.
4493 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
4494 Set YYDEBUG to 1 by default.
4495 Set YYFPRINTF as parse_fprintf.
4496
4497 2002-06-21 Michal Ludvig <mludvig@suse.cz>
4498
4499 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
4500 encoding anymore.
4501 (pointer_encoding, enum ptr_encoding): New.
4502 (execute_cfa_program): Take care about pointer encoding.
4503 (dwarf2_build_frame_info): Only call parse_frame_info for
4504 .debug_frame and .eh_frame.
4505 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
4506 fixed augmentation handling, added relative addressing,
4507 ignore duplicate FDEs. Added comments.
4508 * dwarf2cfi.c: Reindented.
4509
4510 2002-06-20 Elena Zannoni <ezannoni@redhat.com>
4511
4512 * event-top.c (command_handler): Don't use space_at_cmd_start
4513 unless there is sbrk() on the host. Assign time and space data
4514 to union fields of the appropriate length.
4515
4516 2002-06-20 Michal Ludvig <mludvig@suse.cz>
4517
4518 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
4519 x86_64_register_name. Return type changed to 'const char *'.
4520 (x86_64_register_name2nr): Rename to x86_64_register_number.
4521 (x86_64_gdbarch_init): Update to reflect the change.
4522 * x86-64-tdep.h: Ditto.
4523 * x86-64-linux-nat.c (x86_64_fxsave_offset)
4524 (supply_fpregset): Ditto.
4525
4526 2002-06-19 Andrew Cagney <cagney@redhat.com>
4527
4528 * regcache.h: Update copyright.
4529 (struct regcache, struct gdbarch): Add opaque declarations.
4530 (current_regcache): Declare global variable.
4531 (regcache_read, regcache_write): Add gdbarch parameter.
4532 (regcache_save, regcache_save_no_passthrough)
4533 (regcache_restore, regcache_restore_no_passthrough)
4534 (regcache_dup, regcache_dup_no_passthrough)
4535 (regcache_cpy, regcache_cpy_no_passthrough)
4536 (deprecated_grub_regcache_for_registers)
4537 (deprecated_grub_regcache_for_register_valid)
4538 (regcache_valid_p): Add function declarations.
4539
4540 * regcache.c: Update copyright.
4541 (regcache_descr_handle): New global variable.
4542 (struct regcache_descr): Define.
4543 (init_legacy_regcache_descr, init_regcache_descr): New functions.
4544 (regcache_descr, xfree_regcache_descr): New functions.
4545 (struct regcache): Define.
4546 (regcache_xmalloc, regcache_xfree): New functions.
4547 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
4548 (regcache_dup, regcache_dup_no_passthrough): New functions.
4549 (regcache_valid_p, regcache_read_as_address): New functions.
4550 (deprecated_grub_regcache_for_registers): New function.
4551 (deprecated_grub_regcache_for_register_valid): New function.
4552 (current_regcache): New global variable.
4553 (register_buffer): Add regcache parameter. Update calls.
4554 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
4555 (read_register_gen, write_register_gen): Update register_buffer
4556 call. Test for legacy_p instead of gdbarch_register_read_p or
4557 gdbarch_register_write_p.
4558 (regcache_collect): Update register_buffer call.
4559 (build_regcache): Rewrite. Use deprecated grub functions.
4560 (regcache_save, regcache_save_no_passthrough): New functions.
4561 (regcache_restore, regcache_restore_no_passthrough): New
4562 functions.
4563 (_initialize_regcache): Create the regcache_data_handle. Swap
4564 current_regcache global variable.
4565
4566 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
4567 parameter to regcache_read and regcache_write calls.
4568 (sh4_register_read): Ditto.
4569 (sh64_pseudo_register_read): Ditto.
4570 (sh64_register_read): Ditto.
4571 (sh_pseudo_register_write): Ditto.
4572 (sh4_register_write): Ditto.
4573 (sh64_pseudo_register_write): Ditto.
4574 (sh64_register_write): Ditto.
4575
4576 * defs.h (XCALLOC): Define.
4577
4578 2002-06-19 Grace Sainsbury <graces@redhat.com>
4579
4580 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
4581 * m68k-tdep.c (m68k_gdbarch_init): Added.
4582 (m68k_dump_tdep): Added.
4583
4584 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
4585
4586 * ada-lang.c (fill_in_ada_prototype): Update comment.
4587
4588 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
4589
4590 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
4591 MIPS_ABI_LAST.
4592 (mips_abi_string, mips_abi_strings): New.
4593 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
4594 (mips_gdbarch_init): Set tdep->found_abi. Don't set
4595 tdep->mips_abi_string. Honor mips_abi_string. Default to
4596 O32 if no ABI is found.
4597 (mips_dump_tdep): Use mips_abi_strings.
4598 (mips_abi_update): New function.
4599 (_initialize_mips_tdep): Initialize mips_abi_string. Add
4600 ``set mips abi'' and ``show mips abi''. Check the size of
4601 mips_abi_strings.
4602
4603 2002-06-19 Andrew Cagney <cagney@redhat.com>
4604
4605 * i386-linux-tdep.c (i386_linux_register_name): Make return type
4606 constant.
4607
4608 2002-06-18 Joel Brobecker <brobecker@gnat.com>
4609
4610 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
4611 current frame using only the first stack size adjustment. All
4612 subsequent size adjustments are not considered to be part of
4613 the "static" part of the current frame.
4614 Compute the address of the saved registers relative to the
4615 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
4616 in use in this frame.
4617
4618 2002-06-18 Don Howard <dhoward@redhat.com>
4619
4620 * valops.c (value_ind): Use value_at_lazy() when dereferencing
4621 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
4622 suggesting this solution.
4623
4624 2002-06-18 Andrew Cagney <ac131313@redhat.com>
4625
4626 * config/romp/xm-rtbsd.h: Delete file.
4627 * config/romp/rtbsd.mh: Delete file.
4628
4629 2002-06-18 Keith Seitz <keiths@redhat.com>
4630
4631 * breakpoint.c (condition_command): Post breakpoint_modify
4632 when a condition is added to an existing breakpoint.
4633 (commands_command): Likewise for commands.
4634 (set_ignore_count): Likewise for ignore counts.
4635 If no tty, do not simply return, still need to send event
4636 notification.
4637 (ignore_command): Only print a newline if the command came
4638 from a tty.
4639 Don't call breakpoints_changed, since this is now properly
4640 handled by set_ignore_count.
4641
4642 2002-06-18 Andrew Cagney <cagney@redhat.com>
4643
4644 * MAINTAINERS: Note that cris-elf target can be compiled with
4645 -Werror.
4646 * cris-tdep.c (cris_register_name): Make return type constant.
4647 (cris_breakpoint_from_pc): Ditto.
4648
4649 2002-06-18 Michal Ludvig <mludvig@suse.cz>
4650
4651 * frame.h (struct frame_info): Change type of context to
4652 'struct context'.
4653
4654 2002-06-17 Andrew Cagney <cagney@redhat.com>
4655
4656 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
4657 pointer.
4658 * gdbarch.h, gdbarch.c: Regenerate.
4659 * config/mips/tm-mips.h (mips_register_name): Update.
4660 * i386-tdep.h (i386_register_name): Update.
4661 * mips-tdep.c (mips_register_name): Update
4662 * alpha-tdep.c (alpha_register_name): Update.
4663 * arch-utils.c (legacy_register_name): Update.
4664 * arch-utils.h (legacy_register_name): Update.
4665 * avr-tdep.c (avr_register_name): Update.
4666 * ia64-tdep.c (ia64_register_name): Update.
4667 * i386-tdep.c (i386_register_name): Update.
4668 * sparc-tdep.c (sparc32_register_name): Update.
4669 (sparc64_register_name): Update.
4670 (sparclite_register_name): Update.
4671 (sparclet_register_name): Update.
4672 * sh-tdep.c (sh_generic_register_name): Update.
4673 (sh_sh_register_name): Update.
4674 (sh_sh3_register_name): Update.
4675 (sh_sh3e_register_name): Update.
4676 (sh_sh_dsp_register_name): Update.
4677 (sh_sh3_dsp_register_name): Update.
4678 (sh_sh4_register_name): Update.
4679 (sh_sh64_register_name): Update.
4680 * s390-tdep.c (s390_register_name): Update.
4681 * rs6000-tdep.c (rs6000_register_name): Update.
4682 * ns32k-tdep.c (ns32k_register_name_32082): Update.
4683 (ns32k_register_name_32382): Update.
4684 * d10v-tdep.c (d10v_ts2_register_name): Update.
4685 (d10v_ts3_register_name): Update.
4686 * xstormy16-tdep.c (xstormy16_register_name): Update.
4687 * vax-tdep.c (vax_register_name): Update.
4688 * v850-tdep.c (v850_register_name): Update.
4689 * m68hc11-tdep.c (m68hc11_register_name): Update.
4690 * mn10300-tdep.c (mn10300_generic_register_name): Update.
4691 (am33_register_name): Update.
4692
4693 2002-06-17 Grace Sainsbury <graces@redhat.com>
4694
4695 * m68k-tdep.c: Reindented.
4696
4697 2002-06-17 Andrew Cagney <ac131313@redhat.com>
4698
4699 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
4700 list of predefined types.
4701
4702 2002-06-16 Mark Kettenis <kettenis@gnu.org>
4703
4704 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
4705 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
4706 REGISTER_CONVERT_TO_RAW): Remove defines.
4707 (i386_register_virtual_type, i386_register_convertible,
4708 i386_register_convert_to_virtual, i386_register_convert_to_raw):
4709 Remove prototypes.
4710 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4711 macros mentioned above.
4712
4713 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
4714 (i386lynx_saved_pc_after_call): Remove prototype.
4715 * i386ly-tdep.c: Include "i386-tdep.h".
4716 (i386lynx_saved_pc_after_call): Make static. Use
4717 read_memory_nobpt instead of read_memory. Use
4718 read_memory_unsigned_integer instead of read_memory_integer.
4719 (i386lynx_init_abi): New function.
4720 (i386lynx_coff_osabi_sniffer): New function.
4721 (_initialize_i386bsd_tdep): New function.
4722
4723 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
4724 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
4725 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
4726 (i386_fix_call_dummy): Remove prototype.
4727 * i386-tdep.c (i386_call_dummy_words): New variable.
4728 (i386_gdbarch_init): Adjust for removal of the
4729 macros mentioned above.
4730
4731 2002-06-15 Andrew Cagney <ac131313@redhat.com>
4732
4733 * command.h (add_setshow_auto_boolean_cmd): Replace
4734 add_set_auto_boolean_cmd.
4735 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
4736 add_set_auto_boolean_cmd.
4737 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
4738 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
4739 mask-address'' command.
4740 (show_mask_address): Add cmd parameter.
4741 * remote.c (add_packet_config_cmd): Update. Change type of
4742 set_func and show_func to cmd_sfunc_ftype.
4743 (_initialize_remote): Update `set remote Z-packet'
4744 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
4745 (show_remote_protocol_e_packet_cmd): Ditto.
4746 (show_remote_protocol_E_packet_cmd): Ditto.
4747 (show_remote_protocol_P_packet_cmd): Ditto.
4748 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
4749 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
4750 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
4751 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
4752 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
4753 (show_remote_protocol_Z_packet_cmd): Ditto.
4754 (show_remote_protocol_binary_download_cmd): Ditto.
4755 (show_remote_cmd): Pass NULL to all of above.
4756
4757 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4758
4759 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
4760 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
4761 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
4762 POP_FRAME): Remove defines.
4763 (i386_push_arguments, i386_store_struct_return,
4764 i386_extract_return_value, i386_store_return_value,
4765 i386_extract_struct_value_address, i386_push_dummy_frame,
4766 i386_pop_frame): Renove prototypes.
4767 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4768 macros mentioned above.
4769
4770 2002-06-15 Andrew Cagney <ac131313@redhat.com>
4771
4772 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
4773 add_set_boolean_cmd.
4774 (add_setshow_cmd): New function.
4775 * command.h (add_setshow_boolean_cmd): Replace
4776 add_set_boolean_cmd.
4777 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
4778 and ``set rdiromatzero''.
4779 * maint.c (_initialize_maint_cmds): Update commented out code.
4780 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
4781 * target.c (initialize_targets): Update `set
4782 trust-readonly-sections'.
4783 * remote.c (_initialize_remote): Update `set remotebreak'.
4784
4785 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4786
4787 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
4788 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
4789 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
4790 fit into multi-arch framework.
4791 (i386_breakpoint_from_pc): New function.
4792 (i386_gdbarch_init): Adjust for removal of the macros mentioned
4793 above.
4794
4795 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
4796 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
4797 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
4798 (i386_frameless_function_invocation, i386_frame_num_args,
4799 i386_frame_init_saved_regs): Remove prototypes.
4800 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4801 macros mentioned above.
4802
4803 2002-06-15 Andrew Cagney <ac131313@redhat.com>
4804
4805 * cli/cli-decode.c (set_cmd_cfunc): Update.
4806 (set_cmd_sfunc): Update.
4807 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
4808 (set_cmd_sfunc, set_cmd_cfunc): Update.
4809 * cli/cli-decode.h: Update.
4810
4811 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4812
4813 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
4814 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
4815
4816 2002-06-15 Andrew Cagney <ac131313@redhat.com>
4817
4818 * defs.h (auto_boolean): Declare enum.
4819 * command.h (cmd_auto_boolean): Delete enum.
4820 * mips-tdep.c (mask_address_var): Update.
4821 (mips_mask_address_p): Update.
4822 (show_mask_address): Update.
4823 * remote.c (struct packet_config): Update.
4824 (update_packet_config): Update.
4825 (show_packet_config_cmd): Update.
4826 (packet_ok): Update.
4827 (add_packet_config_cmd): Update.
4828 (_initialize_remote):
4829 * command.h: Update.
4830 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
4831 (do_setshow_command): Update.
4832 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
4833 * cli/cli-decode.h: Update.
4834
4835 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4836
4837 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
4838 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
4839 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
4840 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
4841 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
4842 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
4843
4844 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
4845 list of DJGPP COFF targets.
4846
4847 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
4848 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
4849 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
4850 (FP0_REGNUM): Remove define.
4851 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
4852 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
4853 (i386_register_virtual_size): Remove protoype.
4854 * i386-tdep.c (i386_register_virtual_size): Removed.
4855 (i386_extract_return_value, i386_store_return_value): Use
4856 FP0_REGNUM instead of NUM_FREGS to determine whether the
4857 floating-point registers are available.
4858 (i386_gdbarch_init): Tweak FIXME about FPU registers.
4859 Adjust for removal of macros mentioned above.
4860
4861 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4862
4863 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
4864 comments.
4865 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
4866 Remove prototypes.
4867 (supply_gregset, fill_gregset): Remove use of register keyword and
4868 remove declaration for regmap. Use I386_NUM_GREGS instead of
4869 NUM_REGS and NUM_FREGS.
4870 (FPREGSET_FSAVE_OFFSET): Remove.
4871 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
4872 NUM_FREGS to determine whether the floating-point registers are
4873 available.
4874
4875 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
4876 gnu_store_registers): Replace usage of NUM_GREGS with
4877 I386_NUM_GREGS.
4878
4879 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
4880 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
4881 usage of NUM_GREGS with I386_NUM_GREGS.
4882
4883 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
4884
4885 * i386bsd-nat.c: Include "i386-tdep.h".
4886 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
4887 I386_NUM_GREGS.
4888
4889 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
4890 and associated comment. They no longer make any sense, since we
4891 don't use this file anymore on Linux.
4892
4893 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
4894 * i386-tdep.c (i386_register_offset, i386_register_size): Use
4895 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
4896 elements in these arrays.
4897 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
4898 MAX_NUM_REGS.
4899
4900 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4901
4902 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
4903 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
4904
4905 2002-06-14 Andrew Cagney <cagney@redhat.com>
4906
4907 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
4908 EXTRACT_RETURN_VALUE.
4909 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
4910 EXTRACT_STRUCT_VALUE_ADDRESS.
4911 * gdbarch.h, gdbarch.c: Regenerate.
4912
4913 * values.c (value_being_returned): Handle
4914 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
4915 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
4916
4917 * arm-linux-tdep.c (arm_linux_init_abi): Update.
4918 * arm-tdep.c (arm_gdbarch_init): Update.
4919 * avr-tdep.c (avr_gdbarch_init): Update.
4920 * cris-tdep.c (cris_gdbarch_init): Update.
4921 * d10v-tdep.c (d10v_gdbarch_init): Update.
4922 * ia64-tdep.c (ia64_gdbarch_init): Update.
4923 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4924 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4925 * s390-tdep.c (s390_gdbarch_init): Update.
4926 * sh-tdep.c (sh_gdbarch_init): Update.
4927 * s390-tdep.c (s390_gdbarch_init): Update.
4928 * sparc-tdep.c (sparc_gdbarch_init): Update.
4929 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4930 * v850-tdep.c (v850_gdbarch_init): Update.
4931 * vax-tdep.c (vax_gdbarch_init): Update.
4932 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
4933 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4934
4935 * config/arc/tm-arc.h: Update.
4936 * config/d30v/tm-d30v.h: Update.
4937 * config/fr30/tm-fr30.h: Update.
4938 * config/h8300/tm-h8300.h: Update.
4939 * config/h8500/tm-h8500.h: Update.
4940 * config/i386/tm-i386.h: Update.
4941 * config/i386/tm-ptx.h: Update.
4942 * config/i386/tm-symmetry.h: Update.
4943 * config/i960/tm-i960.h: Update.
4944 * config/m32r/tm-m32r.h: Update.
4945 * config/m68k/tm-delta68.h: Update.
4946 * config/m68k/tm-linux.h: Update.
4947 * config/m68k/tm-m68k.h: Update.
4948 * config/m88k/tm-m88k.h: Update.
4949 * config/mcore/tm-mcore.h: Update.
4950 * config/mips/tm-mips.h: Update.
4951 * config/mn10200/tm-mn10200.h: Update.
4952 * config/pa/tm-hppa.h: Update.
4953 * config/pa/tm-hppa64.h: Update.
4954 * config/sparc/tm-sp64.h: Update.
4955 * config/sparc/tm-sparc.h: Update.
4956 * config/sparc/tm-sparclet.h: Update.
4957 * config/z8k/tm-z8k.h: Update.
4958
4959 2002-06-14 Andrew Cagney <cagney@redhat.com>
4960
4961 * Makefile.in (i386_linux_tdep_h): Define.
4962 (i386_tdep_h, i387_tdep_h): Define.
4963 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
4964 $(i386_tdep_h) and $(i387_tdep_h).
4965 * i386-linux-nat.c: Include "i386-linux-tdep.h".
4966
4967 2002-06-14 Mark Kettenis <kettenis@gnu.org>
4968
4969 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
4970 Already covered by the default.
4971
4972 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
4973 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
4974 (i386_gdbarch_init): Initialize long_double_format and long_double
4975 bit.
4976
4977 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
4978 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
4979 Move these to ...
4980 * config/i386/i386sol2.mh: ... here.
4981 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
4982 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
4983 (SIGCONTEXT_PC_OFFSET): Remove define.
4984 (IN_SIGTRAMP): Remove define.
4985 * i386-sol2-tdep.c: New file.
4986
4987 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
4988 * config/i386/tm-i386nw.h: Removed.
4989
4990 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
4991 USE_STRUCT_CONVENTION): Remove defines.
4992 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
4993 (get_longjmp_target): Remove prototype.
4994 (IN_SIGTRAMP): Remove define.
4995 (i386bsd_in_sigtramp): Remove prototype.
4996 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
4997 function. Update comment accordingly
4998 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
4999 (FRAME_SAVED_PC): Remove define.
5000 (i386bsd_frame_saved_pc): Remove prototype.
5001 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
5002 GET_LONGJMP_TARGET): Remove defines.
5003 (get_longjmp_target): Remove prototype.
5004 (IN_SIGTRAMP): Remove define.
5005 (i386bsd_in_sigtramp): Remove prototype.
5006 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
5007 function. Update comment accordingly
5008 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
5009 (FRAME_SAVED_PC): Remove define.
5010 (i386bsd_frame_saved_pc): Remove prototype.
5011 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
5012 Remove prototype.
5013 (USE_STRUCT_CONVENTION): Remove prototype.
5014 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
5015 declaration.
5016 (_initialize_i386bsd_nat): Revise logic to determine some
5017 constants at compile time when compiling a native GDB. Warn if
5018 things don't match up with what we expect.
5019 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
5020 Remove variables.
5021 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
5022 to use date stored in `struct gdbarch_tdep'.
5023 (i386bsd_sigcontext_offset): Remove varaible.
5024 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
5025 stored in `struct gdbarch_tdep'.
5026 (i386bsd_frame_saved_pc): Make static.
5027 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
5028 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
5029 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
5030 i386fbsd4_sc_pc_offset): New variables.
5031 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
5032 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
5033 functions.
5034 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
5035 functions.
5036 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
5037 Modify the value of i386fbsd_sigtramp_start and
5038 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
5039 i386fbsd_sigtramp_end.
5040 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
5041 function.
5042
5043 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
5044 define to i386-linux-tdep.h.
5045 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
5046 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
5047 defines.
5048 (i386_linux_register_name, i386_linux_register_byte,
5049 i386_linux_register_raw_size): Remove prototypes.
5050 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
5051 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
5052 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
5053 TARGET_WRITE_PC): Remove defines.
5054 (i386_linux_in_sigtramp, i386_linux_frame_chain,
5055 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
5056 i386_linux_write_pc): Remove prototypes.
5057 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5058 (get_longjmp_target): Remove prototype.
5059 * i386-linux-tdep.h: New file.
5060 * i386-linux-nat.c: Include "i386-linux-tdep.h".
5061 * i386-linux-tdep.c: Include "i386-tdep.h" and
5062 "i386-linux-tdep.h".
5063 (i386_linux_register_name, i386_linux_register_byte,
5064 i386_linux_register_raw_size, i386_linux_in_sigtramp,
5065 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
5066 Make static.
5067 (i386_linux_init_abi): New function.
5068 (_initialize_i386_linux_tdep): New function.
5069
5070 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
5071 (i386_saved_pc_after_call): Remove prototype.
5072 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
5073 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
5074 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
5075 (i386_register_name, i386_stab_reg_to_regnum,
5076 i386_dwarf_reg_to_regnum): Remove prototypes.
5077 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
5078 SIZEOF_SSE_REGS): Remove defines.
5079 (REGISTER_BYTES): Remove define.
5080 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
5081 (i386_register_byte, i386_register_raw_size): Remove prototypes.
5082 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
5083 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
5084 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
5085 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
5086 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
5087 (get_longjmp_target): Remove prototype.
5088 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
5089 (sigtramp_saved_pc): Remove define.
5090 (i386v4_sigtramp_saved_pc): Remove prototype.
5091 * config/i386/tm-go32.h (FRAME_CHAIN,
5092 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
5093 (i386go32_frame_saved_pc): Remove prototype.
5094 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5095 (get_longjmp_target): Remove prototype.
5096 * i386-tdep.h: Include "osabi.h".
5097 (enum i386_abi): Removed.
5098 (enum struct_return): New enum.
5099 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
5100 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
5101 sc_pc_offset members.
5102 (i386_gdbarch_register_os_abi): Remove prototype.
5103 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
5104 I386_SSE_NUM_REGS): New defines.
5105 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
5106 I386_SSE_SIZEOF_REGS): New defines.
5107 (i386_register_name, i386_register_byte, i386_register_raw_size):
5108 New prototypes.
5109 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
5110 (i386bsd_sigtramp_saved_pc): New prototype.
5111 * i386-tdep.c: Don't include "elf-bfd.h".
5112 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
5113 i386_frame_chain, i386_saved_pc_after_call): Make static.
5114 (i386_frame_saved_pc): Rewrite to call architecture dependent
5115 function to deal with signal handlers. Make static.
5116 (i386go32_frame_saved_pc): Removed.
5117 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
5118 Removed.
5119 (i386_get_longjmp_target): New function.
5120 (default_struct_convention, pcc_struct_convention,
5121 reg_struct_convention, valid_conventions, struct_convention): New
5122 variables.
5123 (i386_use_struct_convention): New function.
5124 (i386v4_sigtramp_saved_pc): Renamed to
5125 i386_svr4_sigtramp_saved_pc. Made static. Moved.
5126 (i386_pc_in_sigtramp): New function.
5127 (i386_abi_names): Removed.
5128 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
5129 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
5130 Removed.
5131 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
5132 i386_gdbarch_register_os_abi): Removed.
5133 (struct i386_abi_handler): Removed.
5134 (i386_abi_handler_list): Removed.
5135 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
5136 functions.
5137 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
5138 i386_nw_init_abi): New functions.
5139 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
5140 Use set_gdbarch_xxx() calls instead of relying on macros for a
5141 number of calls.
5142 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
5143 (_initialize_i386_tdep): Add new 'struct-convcention' command.
5144 Register the various architecture variants defined in this file.
5145
5146 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
5147
5148 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
5149 (struct main_type): Remove arg_types member. Update comments for
5150 struct field.
5151 (TYPE_ARG_TYPES): Remove.
5152 (TYPE_FN_FIELD_ARGS): Update.
5153 (smash_to_method_type): Update prototype.
5154
5155 * c-typeprint.c (cp_type_print_method_args): Take method type
5156 instead of argument list. Use new argument layout. Simplify.
5157 (c_type_print_args): Use new argument layout. Simplify.
5158 (c_type_print_base): Update call to cp_type_print_method_args.
5159 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
5160 argument; use die->type instead. Update call to
5161 smash_to_method_type.
5162 (read_structure_scope): Update call to dwarf2_add_member_fn.
5163 * gdbtypes.c (allocate_stub_method): Update comment.
5164 (smash_to_method_type): Take new NARGS and VARARGS arguments.
5165 Use new argument layout.
5166 (check_stub_method): Use new argument layout. Don't count
5167 void as an argument.
5168 (print_arg_types): Update comments. Use new argument layout.
5169 (recursive_dump_type): Don't print arg_types member.
5170 * hpread.c (hpread_read_struct_type): Use new argument layout.
5171 (fixup_class_method_type): Likewise.
5172 (hpread_type_lookup): Likewise.
5173 * stabsread.c (read_type): Update calls to read_args and
5174 smash_to_method_type.
5175 (read_args): Use new argument layout. Simplify.
5176 * valops.c (typecmp): Use new argument layout. Update parameters
5177 and comments. Simplify.
5178 (hand_function_call): Use new argument layout.
5179 (search_struct_method): Update call to typecmp.
5180 (find_overload_match): Use new argument layout.
5181
5182 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
5183
5184 * NEWS: Mention multithreaded debug support for gdbserver.
5185
5186 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
5187
5188 * MAINTAINERS: Mention NEWS.
5189
5190 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
5191
5192 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
5193 (struct mips_objfile_private, compare_pdr_entries): New.
5194 (non_heuristic_proc_desc): Read the ".pdr" section if it
5195 is present.
5196
5197 2002-06-12 Andrew Cagney <ac131313@redhat.com>
5198
5199 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
5200 (arm_debug): New static variable.
5201 (_initialize_arm_tdep): Add ``set debug arm'' command.
5202
5203 2002-06-12 Andrew Cagney <ac131313@redhat.com>
5204
5205 * Makefile.in (sim_arm_h): Define.
5206 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
5207 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
5208 (arm_register_sim_regno): New function, map an internal REGNUM
5209 onto a simulator register number.
5210 (arm_gdbarch_init): Set register_sim_regno.
5211
5212 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
5213
5214 * MAINTAINERS: Add self.
5215
5216 2002-06-11 Jim Blandy <jimb@redhat.com>
5217
5218 * source.c (source_info): Mention whether the symtab has
5219 information about preprocessor macros.
5220
5221 Call the command `info macro', not `show macro'.
5222 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
5223 Fix error message.
5224 (_initialize_macrocmd): Register `info_macro_command' in
5225 `infolist', not `showlist'.
5226
5227 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
5228
5229 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
5230 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
5231 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
5232 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
5233 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
5234 unconditionally.
5235 (set_mipsfpu_single_command, set_mipsfpu_double_command)
5236 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
5237 (_initialize_mips_tdep): Remove dead code.
5238 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
5239 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
5240 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
5241 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
5242 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
5243 MIPS_LAST_FP_ARG_REGNUM): Remove.
5244
5245 2002-06-11 Michal Ludvig <mludvig@suse.cz>
5246
5247 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
5248 (unwind_tmp_obstack_free, parse_frame_info)
5249 (update_context, cfi_read_fp, cfi_write_fp)
5250 (cfi_frame_chain, cfi_init_extra_frame_info)
5251 (cfi_virtual_frame_pointer): Use the above function.
5252 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
5253
5254 2002-06-11 Corinna Vinschen <vinschen@redhat.com>
5255
5256 * v850-tdep.c (v850_type_is_scalar): New function.
5257 (v850_use_struct_convention): Match current gcc implementation
5258 as close as possible.
5259 (v850_push_arguments): Fix stack_offset handling. Don't write
5260 struct_addr into register. This is done by v850_store_struct_return.
5261 (v850_extract_return_value): Care for structs.
5262 (v850_store_return_value): Ditto.
5263 (v850_store_struct_return): Actually write address.
5264
5265 2002-06-11 Michal Ludvig <mludvig@suse.cz>
5266
5267 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
5268 without debug information too.
5269
5270 2002-06-10 Andrew Cagney <ac131313@redhat.com>
5271
5272 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
5273 Make multi-arch pure.
5274 * gdbarch.h, gdbarch.c: Re-generate.
5275 * arm-tdep.c (arm_print_float_info): Update.
5276 * arch-utils.h (default_print_float_info): Update.
5277 * arch-utils.c (default_print_float_info): Update.
5278 * infcmd.c (float_info): Update call.
5279
5280 2002-06-10 Andrew Cagney <ac131313@redhat.com>
5281
5282 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
5283 the front of the initialize list.
5284
5285 2002-06-10 Andrew Cagney <ac131313@redhat.com>
5286
5287 * infrun.c (struct inferior_status): Replace fields
5288 selected_frame_address and selected_level with field
5289 selected_frame_id.
5290 (save_inferior_status): Update. Use get_frame_id.
5291 (struct restore_selected_frame_args): Delete.
5292 (restore_selected_frame): Update. Use frame_find_by_id.
5293 (restore_inferior_status): Update.
5294
5295 * breakpoint.h (struct breakpoint): Change type of
5296 watchpoint_frame to frame_id.
5297 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
5298 call to get_current_frame.
5299 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
5300 get_current_frame.
5301 (watchpoint_check): Use frame_find_by_id.
5302
5303 * frame.h (record_selected_frame): Delete declaration.
5304 * stack.c (record_selected_frame): Delete function.
5305
5306 * frame.h (struct frame_id): Define.
5307 (get_frame_id): Declare.
5308 (frame_find_by_id): Declare.
5309 * frame.c (frame_find_by_id): New function.
5310 (get_frame_id): New function.
5311
5312 2002-06-10 Andrey Volkov <avolkov@transas.com>
5313
5314 * ser-e7kpc.c: Fix duplicated define and call of
5315 _initialize_ser_e7000pc
5316
5317 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
5318
5319 * signals/signals.c (target_signal_from_host): Fix #ifdef
5320 SIGRTMIN case.
5321 (do_target_signal_to_host): Likewise.
5322
5323 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
5324
5325 * mips-tdep.c (mips_find_abi_section): New function.
5326 (mips_gdbarch_init): Call it.
5327
5328 2002-06-09 Mark Kettenis <kettenis@gnu.org>
5329
5330 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
5331 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
5332 after Andrew's 2002-06-08 gdbarch change.
5333
5334 2002-06-09 Mark Kettenis <kettenis@gnu.org>
5335
5336 * i386-linux-nat.c (suppy_gregset): Don't supply
5337 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
5338 register cache.
5339 (fill_gregset): Don't fetch it under the same circumstances.
5340
5341 2002-06-09 Andrew Cagney <cagney@redhat.com>
5342
5343 * Makefile.in (callback_h): Define.
5344 (remote_sim_h): Update path to remote-sim.h.
5345 (remote-rdp.o): Add $(callback_h).
5346 (remote-sim.o): Use $(callback_h).
5347 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
5348 * remote-rdp.c: Include "gdb/callback.h".
5349
5350 2002-06-09 Mark Kettenis <kettenis@gnu.org>
5351
5352 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
5353 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
5354
5355 2002-06-08 Andrew Cagney <ac131313@redhat.com>
5356
5357 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
5358 * rdi-share/serpardr.c: Ditto.
5359 * rdi-share/unixcomm.c: Ditto.
5360 * rdi-share/serdrv.c: Ditto.
5361 * rdi-share/hostchan.h: Ditto.
5362 * rdi-share/hostchan.c: Ditto.
5363 * rdi-share/host.h: Ditto.
5364 * rdi-share/devsw.c: Ditto.
5365
5366 * objfiles.h: Change type of obj_private to void pointer.
5367 * pa64solib.c: Update copyright. Don't include "assert.h", use
5368 strcmp instead of STREQ, use LONGEST, do not use PTR
5369 * somsolib.c: Ditto.
5370
5371 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
5372 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
5373 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
5374
5375 2002-06-08 Andrew Cagney <ac131313@redhat.com>
5376
5377 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
5378 (default_get_saved_register): Delete function.
5379 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
5380 generic_unwind_get_saved_register.
5381 * gdbarch.h, gdbarch.c: Re-generate.
5382
5383 2002-06-08 Andrew Cagney <ac131313@redhat.com>
5384
5385 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
5386 generic_func_frame_chain_valid.
5387 * gdbarch.h, gdbarch.c: Re-generate.
5388 * blockframe.c (generic_func_frame_chain_valid): Only check
5389 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
5390 passing FP to PC_IN_CALL_DUMMY.
5391 Fix PR gdb/360.
5392
5393 2002-06-08 Andrew Cagney <ac131313@redhat.com>
5394
5395 * gdbarch.sh (struct gdbarch_data): Add field init_p.
5396 (register_gdbarch_data): Initialize init_p.
5397 (gdbarch_data): Initialize data pointer using the init function.
5398 (init_gdbarch_data): Delete function.
5399 (gdbarch_update_p): Update.
5400 (initialize_non_multiarch): Update.
5401 (struct gdbarch): Add field initialized_p.
5402 * gdbarch.h, gdbarch.c: Re-generate.
5403
5404 2002-06-07 Michal Ludvig <mludvig@suse.cz>
5405
5406 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
5407 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
5408 better do the things actually here.
5409 * x86-64-tdep.c (x86_64_register_name2nr): New.
5410 (x86_64_register_name): Renamed to x86_64_register_nr2name.
5411 (x86_64_gdbarch_init): Respect the above change.
5412 * x86-64-tdep.h (x86_64_register_name2nr)
5413 (x86_64_register_nr2name): Add prototypes.
5414 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
5415
5416 2002-06-06 Michael Snyder <msnyder@redhat.com>
5417
5418 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
5419 Delete extra braces and re-indent.
5420 (d10v_store_return_value): Char return values
5421 must be shifted over by one byte in R0.
5422 (d10v_extract_return_value): Delete extra braces, re-indent.
5423
5424 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
5425
5426 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
5427 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
5428 (d10v_integer_to_address): Rewrite.
5429 (d10v_frame_init_saved_regs): When reading fp and sp registers use
5430 the d10v specific functions which take care of converting to the
5431 correct space.
5432
5433 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
5434
5435 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
5436 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
5437
5438 2002-06-02 Andrew Cagney <ac131313@redhat.com>
5439
5440 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
5441 includes.
5442 * config/tm-linux.h: Ditto.
5443 * config/alpha/tm-alphalinux.h: Ditto.
5444 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
5445 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
5446 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
5447 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
5448 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
5449 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
5450 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
5451 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
5452 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
5453 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
5454 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
5455 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
5456 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
5457 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
5458 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
5459 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
5460 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
5461 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
5462 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
5463 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
5464 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
5465 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
5466 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
5467 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
5468 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
5469 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
5470 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
5471 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
5472 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
5473 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
5474 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
5475 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
5476 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
5477 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
5478 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
5479 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
5480 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
5481
5482 2002-05-04 Aidan Skinner <aidan@velvet.net>
5483
5484 * ada-exp.tab.c: New file
5485 * ada-exp.y: New file
5486 * ada-lang.c: New file
5487 * ada-lang.h: New file
5488 * ada-lex.c: New file
5489 * ada-lex.l: New file
5490 * ada-tasks.c: New file
5491 * ada-typeprint.c: New file
5492 * ada-valprint.c: New file
5493
5494 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
5495
5496 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
5497 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
5498
5499 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
5500
5501 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
5502 insetead of ppc-linux-tdep.o.
5503 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
5504 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
5505
5506 2002-06-02 Andrew Cagney <ac131313@redhat.com>
5507
5508 2002-05-07 Christian Groessler <chris@groessler.org>
5509 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
5510 bit register contents for little endian hosts.
5511
5512 2002-06-01 Andrew Cagney <ac131313@redhat.com>
5513
5514 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
5515 any maintainer.
5516
5517 2002-06-01 Andrew Cagney <ac131313@redhat.com>
5518
5519 * gdbarch.h: Regenerate.
5520
5521 2002-06-01 Andrew Cagney <ac131313@redhat.com>
5522
5523 * MAINTAINERS: Add everyone to write-after-approval list.
5524
5525 2002-06-01 Andrew Cagney <ac131313@redhat.com>
5526
5527 * stack.c (frame_info): Use frame_register_unwind instead of
5528 saved_regs. Mention when the SP is on the stack or in a register.
5529
5530 * frame.h (frame_register_unwind_ftype): Define. Document.
5531 (struct frame_info): Add field register_unwind and
5532 register_unwind_cache.
5533 (frame_register_unwind): Declare.
5534 (generic_unwind_get_saved_register): Declare.
5535
5536 * frame.c (frame_register_unwind): New function.
5537 (generic_unwind_get_saved_register): New function.
5538
5539 * blockframe.c (generic_call_dummy_register_unwind): New function.
5540 (frame_saved_regs_register_unwind): New function.
5541 (set_unwind_by_pc): New function.
5542 (create_new_frame): New function.
5543 (get_prev_frame): New function.
5544
5545 2002-05-30 Andrew Cagney <ac131313@redhat.com>
5546
5547 * a29k-share/: Delete directory.
5548 * remote-vx29k.c: Delete file.
5549
5550 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5551
5552 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
5553 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
5554
5555 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5556
5557 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
5558 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
5559 (sparc64nbsd-nat.o)
5560 (sparcnbsd-nat.o)
5561 (sparcnbsd-tdep.o): New dependency lists.
5562 * NEWS: Note new UltraSPARC NetBSD native configuration.
5563 * configure.host (sparc64-*-netbsd*): New host.
5564 * configure.tgt (sparc-*-netbsdelf*)
5565 (sparc-*-netbsd*): Set gdb_target to nbsd.
5566 (sparc64-*-netbsd*): New target.
5567 * sparc64nbsd-nat.c: New file.
5568 * sparcnbsd-nat.c: New file.
5569 * sparcnbsd-tdep.c: New file.
5570 * sparcnbsd-tdep.h: New file.
5571 * config/sparc/nbsd.mt: New file.
5572 * config/sparc/nbsd64.mh: New file.
5573 * config/sparc/nbsd64.mt: New file.
5574 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
5575 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
5576 (HOST_IPC): Remove.
5577 * config/sparc/nbsdaout.mt: Remove.
5578 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
5579 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
5580 (HOST_IPC): Remove.
5581 * config/sparc/nbsdelf.mt: Remove.
5582 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
5583 sparc-nat.c compatiblity defines.
5584 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
5585 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
5586 * config/sparc/tm-nbsd64.h: New file.
5587 * config/sparc/tm-nbsdaout.h: Remove.
5588 * config/sparc/xm-nbsd.h: Remove.
5589
5590 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5591
5592 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
5593 * sparc-tdep.c: Include osabi.h.
5594 (gdbarch_tdep): Add osabi member.
5595 (_initialize_sparc_tdep): Use gdbarch_register.
5596 (sparc_gdbarch_init): Use generic OS ABI framework.
5597 (sparc_dump_tdep): New function.
5598
5599 2002-05-30 Kevin Buettner <kevinb@redhat.com>
5600
5601 * corefile.c (do_captured_read_memory_integer): Return non-zero
5602 result.
5603 (safe_read_memory_integer): Copy result of memory read when
5604 status is non-zero. Also, add comments.
5605
5606 2002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
5607
5608 * Makefile.in (ppc_tdep_h): Define.
5609 (ppc-linux-nat.o)
5610 (ppc-linux-tdep.o)
5611 (rs6000-tdep.o): Use $(ppc_tdep_h).
5612 (ppc-sysv-tdep.o)
5613 (ppcnbsd-nat.o)
5614 (ppcnbsd-tdep.o): New dependency lists.
5615 * ppc-tdep.h: Use generic OS ABI framework.
5616 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
5617 (ppc_linux_init_abi): New functions.
5618 (ppc_sysv_abi_broken_use_struct_convention)
5619 (ppc_sysv_abi_use_struct_convention)
5620 (ppc_sysv_abi_push_arguments): Move to...
5621 * ppc-sysv-tdep.c: ...here.
5622 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
5623 * rs6000-tdep.c (process_note_abi_tag_sections)
5624 (get_elfosabi): Remove.
5625 (rs6000_gdbarch_init): Use generic OS ABI framework.
5626 (rs6000_dump_tdep): New function.
5627 (_initialize_rs6000_tdep): Use gdbarch_register.
5628 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
5629 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
5630 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
5631 of ppc-linux-tdep.o.
5632 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
5633 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
5634 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
5635 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
5636 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
5637 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
5638
5639 2002-05-29 Jim Blandy <jimb@redhat.com>
5640
5641 * macroscope.c (default_macro_scope): Put `void' in empty argument
5642 list.
5643
5644 2002-05-29 Andrew Cagney <ac131313@redhat.com>
5645
5646 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
5647 * arch-utils.c: Include "sim-regno.h".
5648 * gdbarch.sh: Don't include "sim-regno.h".
5649 * gdbarch.h, gdbarch.c: Regenerate.
5650 * sim-regno.h (legacy_register_sim_regno): Move declaration from
5651 here.
5652 * arch-utils.h (legacy_register_sim_regno): To here.
5653 * remote-sim.c (legacy_register_sim_regno): Move function from
5654 here.
5655 * arch-utils.c (legacy_register_sim_regno): To here.
5656
5657 2002-05-28 Andrew Cagney <ac131313@redhat.com>
5658
5659 * sim-regno.h: New file.
5660 * Makefile.in (sim_regno_h): Define.
5661 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
5662 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
5663 (legacy_register_sim_regno): New function.
5664 (one2one_register_sim_regno): New function.
5665 (gdbsim_fetch_register): Rewrite.
5666 (gdbsim_store_register): Only store a register when
5667 REGISTER_SIM_REGNO is valid.
5668 * d10v-tdep.c: Include "sim-regno.h".
5669 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
5670 (d10v_ts3_register_sim_regno): Ditto.
5671 * gdbarch.sh: Include "sim-regno.h".
5672 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
5673 * gdbarch.h, gdbarch.c: Regenerate.
5674 * arch-utils.h (default_register_sim_regno): Delete declaration.
5675 * arch-utils.c (default_register_sim_regno): Delete function.
5676
5677 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
5678
5679 * ppcnbsd-nat.c: Rewrite.
5680 * ppcnbsd-tdep.c: New file.
5681 * ppcnbsd-tdep.h: New file.
5682 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
5683 solib.o, and solib-svr4.o.
5684 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
5685 nbsd-tdep.o, and corelow.o.
5686
5687 2002-05-28 Andrew Cagney <ac131313@redhat.com>
5688
5689 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
5690 `tr' and `sed'. Mention that `broken' targets are not expected to
5691 build.
5692
5693 2002-05-27 Michal Ludvig <mludvig@suse.cz>
5694
5695 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
5696 Let PC point right after the prologue before looking up symbols.
5697
5698 2002-05-27 Martin M. Hunt <hunt@redhat.com>
5699
5700 * i386-tdep.c (i386_register_virtual_type): Return
5701 builtin_type_vec128i for SSE registers.
5702
5703 * gdbtypes.h (builtin_type_vec128i): Declare.
5704
5705 * gdbtypes.c (build_builtin_type_vec128i): New function.
5706 (builtin_type_v2_double, builtin_type_v4_int64): New types.
5707 (builtin_type_vec128i): New type for SSE2 128-bit registers.
5708 (build_gdbtypes): Initialize new builtin vector types.
5709 (_initialize_gdbtypes): Register new vector types with gdbarch.
5710
5711 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5712
5713 * MAINTAINERS: ns32k is not longer an obsolete candidate,
5714 since it has been multi-arch'd.
5715 * NEWS: Note that ns32k-*-* is now partial multi-arch.
5716 Move Alpha and VAX multi-arch news entries to same section
5717 as other multi-arch news.
5718
5719 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5720
5721 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
5722 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
5723 static. Rename some register numbers to put them in ns32k-tdep
5724 private namespace.
5725 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
5726 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
5727 functions.
5728 (_initialize_ns32k_tdep): Use gdbarch_register.
5729 * ns32k-tdep.h: New file.
5730 * ns32knbsd-tdep.c: New file.
5731 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
5732 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
5733 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
5734 REGISTER_BYTES, REGISTER_BYTE): Remove.
5735 * config/ns32k/tm-ns32k.h: New file.
5736 * config/ns32k/tm-umax.h: Remove.
5737
5738 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5739
5740 * ns32k-tdep.c (ns32k_saved_pc_after_call,
5741 ns32k_store_struct_return, ns32k_extract_return_value,
5742 ns32k_store_return_value, ns32k_extract_struct_value_address): New
5743 functions.
5744 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
5745 ns32k_saved_pc_after_call.
5746 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
5747 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
5748 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
5749 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
5750 ns32k_extract_struct_value_address.
5751
5752 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5753
5754 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
5755 ns32k_fix_call_dummy): New.
5756 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
5757 ns32k_call_dummy_words.
5758 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
5759 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
5760 CALL_DUMMY_NARGS): Remove.
5761 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
5762
5763 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5764
5765 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
5766 ns32k_frame_saved_pc, ns32k_frame_args_address,
5767 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
5768 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
5769 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
5770 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
5771 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
5772 (BREAKPOINT): Remove..
5773 (FRAME_CHAIN): Define as ns32k_frame_chain.
5774 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
5775 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
5776 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
5777 (FRAME_FIND_SAVED_REGS): Remove.
5778 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
5779 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
5780 (POP_FRAME): Define as ns32k_pop_frame.
5781
5782 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5783
5784 * ns32k-tdep.c (ns32k_register_byte_32082,
5785 ns32k_register_byte_32382, ns32k_register_raw_size,
5786 ns32k_register_virtual_size, ns32k_register_virtual_type): New
5787 functions.
5788 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
5789 ns32k_register_byte_32382.
5790 * config/ns32k/tm-umax.h: Update copyright years.
5791 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
5792 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
5793 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
5794 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
5795 (ns32k_get_enter_addr): Fix prototype.
5796
5797 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5798
5799 * ns32k-tdep.c: Update copyright years.
5800 (ns32k_register_name_32082): New function.
5801 (ns32k_register_name_32382): Ditto.
5802 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
5803 (REGISTER_NAME): Define as ns32k_register_name_32382.
5804 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
5805 (REGISTER_NAME): Define as ns32k_register_name_32082.
5806
5807 2002-05-24 Jim Blandy <jimb@redhat.com>
5808
5809 * dwarf2read.c (free_line_header): Use xfree, not free.
5810
5811 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
5812
5813 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
5814 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
5815
5816 2002-05-23 Andrew Cagney <ac131313@redhat.com>
5817
5818 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
5819
5820 2002-05-23 Andrew Cagney <ac131313@redhat.com>
5821
5822 From Ross Alexander at NEC Europe:
5823 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
5824
5825 2002-05-23 Michael Snyder <msnyder@redhat.com>
5826
5827 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
5828 for input, rather than parse_and_eval_address.
5829
5830 2002-05-23 Andrew Cagney <ac131313@redhat.com>
5831
5832 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
5833 * Makefile.in (sim_d10v_h): Update definition.
5834
5835 2002-05-24 Andrew Cagney <cagney@redhat.com>
5836
5837 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
5838 change `2002-05-22 Michael Snyder' below.
5839 (d10v_push_arguments): Ditto.
5840 (d10v_extract_return_value): Ditto.
5841
5842 2002-05-23 Jim Blandy <jimb@redhat.com>
5843
5844 * macrotab.c (check_for_redefinition): Don't complain if the new
5845 definition is the same as the previous one. Take more arguments
5846 to allow the comparison.
5847 (macro_define_object, macro_define_function): Pass more arguments
5848 to check_for_redefinition.
5849
5850 2002-05-22 Michael Snyder <msnyder@redhat.com>
5851
5852 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
5853 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
5854 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
5855 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
5856 Don't bail if return_pc is PC_IN_CALL_DUMMY.
5857 Add a temp variable to save a call (and a memory read).
5858 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
5859 if possible (so that PC_IN_CALL_DUMMY will work).
5860
5861 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
5862
5863 * MAINTAINERS: Remove status `OBSOLETE' from v850.
5864
5865 2002-05-22 Michal Ludvig <mludvig@suse.cz>
5866
5867 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
5868 fde->cie_ptr.
5869 (dwarf2_build_frame_info): Corrected handling of eh_frame.
5870 (dwarf2_build_frame_info): Add offset to fde->initial_location
5871 so that frames of shared libraries are mapped correctly.
5872 (execute_stack_op): Change type of 'result' from ULONGEST to
5873 CORE_ADDR.
5874
5875 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5876
5877 * config/alpha/tm-nbsd.h: Include solib.h.
5878
5879 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5880
5881 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
5882 assumptions about the host's byte order.
5883
5884 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5885
5886 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
5887 to dependency list.
5888 * alphanbsd-tdep.c: Include solib-svr4.h.
5889 * shnbsd-tdep.c: Ditto.
5890
5891 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5892
5893 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
5894 nbsd-tdep.h to dependency list.
5895 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
5896 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
5897 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
5898 nbsdaout.mh and nbsdelf.mh consistently.
5899 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
5900 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
5901 nbsdaout.mt and nbsdelf.mh consistently.
5902 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
5903 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
5904 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
5905 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
5906 a.out shared library stuff from here...
5907 * config/nm-nbsdaout.h: ...to here.
5908 * config/tm-nbsd.h: Remove.
5909 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
5910 * config/arm/nbsd.mh: Remove.
5911 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
5912 nbsd-tdep.o.
5913 * config/arm/nbsdaout.mh: New file.
5914 * config/arm/nbsdelf.mh: New file.
5915 * config/arm/nm-nbsdaout.h: New file.
5916 * config/i386/nbsd.mh: Remove.
5917 * config/i386/nbsd.mt: Remove.
5918 * config/i386/nbsdaout.mh: New file.
5919 * config/i386/nbsdaout.mt: New file.
5920 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
5921 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
5922 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
5923 i386_register_u_addr): Remove.
5924 * config/i386/nm-nbsdaout.h: New file.
5925 * config/i386/nm-nbsdelf.h: Remove.
5926 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
5927 (USE_STRUCT_CONVENTION): Remove.
5928 * config/i386/tm-nbsdaout.h: New file.
5929 * config/i386/tm-nbsdelf.h: Remove.
5930 * config/m68k/nbsd.mh: Remove.
5931 * config/m68k/nbsd.mt: Remove.
5932 * config/m68k/nbsdaout.mh: New file.
5933 * config/m68k/nbsdaout.mt: New file.
5934 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
5935 * config/m68k/nm-nbsdaout.h: New file.
5936 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
5937 (IN_SOLIB_CALL_TRAMPOLINE): Define.
5938 * config/ns32k/nbsd.mh: Remove.
5939 * config/ns32k/nbsd.mt: Remove.
5940 * config/ns32k/nbsdaout.mh: New file.
5941 * config/ns32k/nbsdaout.mt: New file.
5942 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
5943 * config/ns32k/nm-nbsdaout.h: New file.
5944 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
5945 (IN_SOLIB_CALL_TRAMPOLINE): Define.
5946 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
5947 (SVR4_SHARED_LIBS): Remove.
5948 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
5949 * config/sparc/nbsd.mh: Remove.
5950 * config/sparc/nbsd.mt: Remove.
5951 * config/sparc/nbsdaout.mh: New file.
5952 * config/sparc/nbsdaout.mt: New file.
5953 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
5954 * config/sparc/nbsdelf.mt: New file.
5955 * config/sparc/nm-nbsdaout.h: New file.
5956 * config/sparc/nm-nbsdelf.h: Remove.
5957 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
5958 * config/sparc/tm-nbsdaout.h: New file.
5959
5960 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5961
5962 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
5963 mipsnbsd-tdep.c
5964 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
5965
5966 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5967
5968 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
5969 shnbsd-nat.c.
5970 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
5971
5972 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5973
5974 * NEWS: Note new MIPS NetBSD native configuration.
5975 * configure.host (mips*-*-netbsd*): New host.
5976 * configure.tgt (mips*-*-netbsd*): New target.
5977 * mipsnbsd-nat.c: New file.
5978 * mipsnbsd-tdep.c: New file.
5979 * mipsnbsd-tdep.h: New file.
5980 * config/mips/nbsd.mh: New file.
5981 * config/mips/nbsd.mt: New file.
5982 * config/mips/nm-nbsd.h: New file.
5983 * config/mips/tm-nbsd.h: New file.
5984
5985 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5986
5987 * Makefile.in (SFILES): Add osabi.c.
5988 (COMMON_OBS): Add osabi.o.
5989 (osabi.o): New dependency list.
5990 * osabi.c: New file.
5991 * osabi.h: New file.
5992 * doc/gdbint.texinfo: Document new generic OS ABI framework.
5993
5994 * Makefile.in (alpha_tdep_h): Define and use instead of
5995 alpha-tdep.h.
5996 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
5997 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
5998 Remove.
5999 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
6000 * alpha-tdep.h: Include osabi.h.
6001 (alpha_abi): Remove.
6002 (gdbarch_tdep): Use generic OS ABI framework.
6003 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
6004 gdbarch_register_osabi.
6005 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
6006 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
6007 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
6008
6009 * Makefile.in (sh_tdep_h): Add osabi.h.
6010 * sh-tdep.h (sh_osabi): Remove.
6011 (gdbarch_tdep): Use generic OS ABI framework.
6012 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
6013 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
6014 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
6015 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
6016
6017 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
6018 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
6019 gdbarch_register_osabi.
6020 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
6021 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
6022 (get_elfosabi): Rename to...
6023 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
6024 ABI framework support routines.
6025 (arm_gdbarch_init): Use generic OS ABI framework.
6026 (arm_dump_tdep): Likewise.
6027 (_initialize_arm_tdep): Likewise.
6028 * arm-tdep.h: Include osabi.h.
6029 (arm_abi): Remove.
6030 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
6031 osabi member.
6032 (arm_gdbarch_register_os_abi): Remove prototype.
6033 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
6034 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
6035
6036 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
6037 * mips-tdep.c: Include osabi.h.
6038 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
6039 OS ABI framework.
6040
6041 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
6042
6043 * h8300-tdep.c: Fix formatting.
6044
6045 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
6046
6047 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
6048 printing vector registers.
6049
6050 2002-05-19 Andrew Cagney <ac131313@redhat.com>
6051
6052 From Fernando Nasser:
6053 * remote.c (remote_async_open_1): Re-throw the exception when the
6054 connection fails.
6055 (remote_cisco_open): Ditto.
6056 (remote_open_1): Ditto.
6057
6058 2002-05-19 Andrew Cagney <ac131313@redhat.com>
6059
6060 * remote.c (remote_start_remote_dummy): Add uiout parameter.
6061 (remote_start_remote): Add uiout parameter. Pass through to
6062 remote_start_remote_dummy.
6063 (remote_open_1): Use catch_exception instead of catch_errors.
6064 (remote_async_open_1): Ditto.
6065 (remote_cisco_open): Ditto.
6066
6067 2002-05-19 Andrew Cagney <ac131313@redhat.com>
6068
6069 * remote.c (remote_start_remote): Replace PTR with void pointer.
6070 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
6071 static.
6072
6073 2002-05-18 Andrew Cagney <ac131313@redhat.com>
6074
6075 * gdb_indent.sh: Allow the script to be run in the sim directory.
6076
6077 2002-05-18 Mark Kettenis <kettenis@gnu.org>
6078
6079 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
6080 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
6081
6082 * corelow.c (core_open): Only call set_gdbarch_from_file if
6083 exec_bfd is NULL.
6084
6085 2002-05-17 Andrey Volkov <avolkov@transas.com>
6086
6087 * h8300-tdep.c: Add support of EXR register
6088 * config/h8300/tm-h8300.h: Ditto.
6089
6090 2002-05-17 Andrey Volkov <avolkov@transas.com>
6091
6092 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
6093
6094 2002-05-17 Andrey Volkov <avolkov@transas.com>
6095
6096 * h8300-tdep.c: Change literal regnums to REGNO.
6097
6098 2002-05-17 Jim Blandy <jimb@redhat.com>
6099
6100 * NEWS: Note addition of macro support.
6101
6102 Expand preprocessor macros in C expressions.
6103 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
6104 (scan_macro_expansion, scanning_macro_expansion,
6105 finished_macro_expansion): New function declarations.
6106 (expression_macro_lookup_func, expression_macro_lookup_baton): New
6107 variable declarations.
6108 * parser-defs.h (expression_context_pc): New declaration.
6109 * parse.c (expression_context_pc): New variable.
6110 (parse_exp_1): Set expression_context_pc, as well as
6111 expression_context_block.
6112 * c-exp.y (yylex): If we're not already reading the result of a
6113 macro expansion, try to macro-expand the next token. When we're
6114 done scanning a macro expansion, switch back to the mainline text.
6115 Commas and `if's in a macro's expansion don't terminate the input.
6116 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
6117 (macro_original_text, macro_expanded_text,
6118 expression_macro_lookup_func, expression_macro_lookup_baton): New
6119 variables.
6120 (scan_macro_expansion, scanning_macro_expansion,
6121 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
6122 c_preprocess_and_parse): New functions.
6123 (c_language_defn, cplus_language_defn, asm_language_defn): Call
6124 c_preprocess_and_parse, instead of c_parse.
6125 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
6126 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
6127
6128 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
6129
6130 * sh-tdep.c (gdb_print_insn_sh64): Delete.
6131 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
6132 (sh_gdbarch_init): Always use gdb_print_insn_sh.
6133
6134 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
6135
6136 * NEWS: Add section for multi-arched targets. Add v850 to that section.
6137
6138 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
6139
6140 * Makefile.in (sh_tdep_h): Define and use.
6141 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
6142 register enum): Move to...
6143 * * sh-tdep.h: ...here.
6144 * sh-tdep.c: Include sh-tdep.h.
6145 * sh3-rom.c: Likewise.
6146 * shnbsd-tdep.c: Likewise.
6147
6148 2002-05-16 Michael Snyder <msnyder@redhat.com>
6149
6150 * arm-tdep.c: Spelling fix in comment.
6151
6152 2002-05-16 Jim Blandy <jimb@redhat.com>
6153
6154 Add commands for manually expanding macros and showing their
6155 definitions.
6156 * macrocmd.c, macroscope.c, macroscope.h: New files.
6157 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
6158 (macroscope_h): New variable.
6159 (HFILES_NO_SRCDIR): Add macroscope.h.
6160 (COMMON_OBS): Add macrocmd.o, macroscope.o.
6161 (macroscope.o, macrocmd.o): New rules.
6162
6163 Teach the Dwarf 2 reader to read macro information.
6164 * dwarf2read.c: #include "macrotab.h".
6165 (dwarf_macinfo_buffer): New variable.
6166 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
6167 dwarf_macinfo_size.
6168 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
6169 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
6170 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
6171 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
6172 dwarf2_macro_spaces_in_definition): New complaints.
6173 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
6174 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
6175 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
6176 the partial symbol table.
6177 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
6178 from what's recorded in the partial symbol table.
6179 (read_file_scope): If the compilation unit has a
6180 `DW_AT_macro_info' attribute, read its macro information.
6181 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
6182
6183 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
6184
6185 Fix PR gdb/546
6186 * ser-tcp.c: Don't include <netinet/udp.h>.
6187
6188 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
6189
6190 * MAINTAINERS: Update my email address.
6191
6192 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
6193
6194 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
6195 include file of the same name.
6196
6197 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
6198
6199 * configure.tgt: Mark v850 as multi-arched.
6200 * config/v850/tm-v850.h: Remove file.
6201 * config/v850/v850.mt: Eliminate TM_FILE.
6202
6203 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
6204
6205 * v850-tdep.c: Full multi-arch.
6206 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
6207 Define GDB_MULTI_ARCH to 2.
6208
6209 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
6210
6211 * p-exp.y (current_type): New static variable.
6212 Carries the type of the expression at the position that is parsed.
6213 (push_current_type, pop_current_type): Two new functions. Used
6214 to store/restore current_type in expression on specific tokens.
6215 (search_field): New static variable. Set to one after parsing a point
6216 as at that point only a FIELDNAME token should be searched.
6217 (FIELDNAME): New token. After a point only a token belonging to
6218 current_type type definition is allowed.
6219 (all over token rules): reset and change current_type according
6220 to rules.
6221 (exp '[' rule): insert implicit array index field if
6222 exp is a pascal string type.
6223
6224 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
6225
6226 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
6227 frame info. Use frame_info's saved_regs instead of matching member
6228 in extra_frame_info throughout.
6229 (v850_frame_init_saved_regs): New function.
6230 (v850_init_extra_frame_info): Move most functionality into
6231 v850_frame_init_saved_regs().
6232 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
6233 (v850_frame_find_saved_regs): Remove declaration.
6234 (FRAME_FIND_SAVED_REGS): Remove definition.
6235 (v850_frame_init_saved_regs): Add declaration.
6236 (FRAME_INIT_SAVED_REGS): Add definition.
6237
6238 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
6239
6240 * v850-tdep.c: Begin multi-arch'ing v850.
6241 (v850_target_architecture_hook): Remove function.
6242 (v850_gdbarch_init): New function. Add code previously in
6243 v850_target_architecture_hook().
6244 (_initialize_v850_tdep): Don't set target_architecture_hook.
6245 Call register_gdbarch_init() instead.
6246
6247 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
6248
6249 * gdbtypes.h (struct cplus_struct_type): Remove args field.
6250 * hpread.c (hpread_read_struct_type): Remove assignments to args.
6251 (fixup_class_method_type): Likewise.
6252
6253 2002-05-15 Jim Blandy <jimb@redhat.com>
6254
6255 Add macro structures to GDB's symbol tables. Nobody puts anything
6256 in them yet.
6257 * symtab.h (struct symtab): New member: `macro_table'.
6258 * buildsym.h (pending_macros): New global variable.
6259 * buildsym.c: #include "macrotab.h".
6260 (buildsym_init): Initialize `pending_macros'.
6261 (end_symtab): If we found macro information while reading a CU's
6262 debugging info, do build a symtab structure for it. Make the
6263 symtab point to the macro information, and clear the
6264 `pending_macros' pointer which held it while we were reading the
6265 debug info.
6266 (really_free_pendings): Free any pending macro table.
6267 * objfiles.h (struct objfile): New member: `macro_cache'.
6268 * objfiles.c (allocate_objfile): Set allocate and free functions
6269 for the macro cache's objstack.
6270 (free_objfile): Empty the macro cache's obstack.
6271 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
6272 set new allocate and free functions for it.
6273 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
6274 free functions for the macro cache's objstack. (Why is this
6275 function building its own objfile?)
6276 * symmisc.c (print_objfile_statistics): Print statistics on the
6277 macro bcache.
6278 * Makefile.in: Note that buildsym.o depends on macrotab.h.
6279
6280 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
6281
6282 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
6283 (REGISTER_U_ADDR): Delete definition.
6284 (arm_register_u_addr): Delete declaration.
6285
6286 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
6287
6288 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
6289 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
6290
6291 2002-05-14 Andrew Cagney <ac131313@redhat.com>
6292
6293 * regcache.c (register_valid): Revise comments refering to "Not
6294 available" and "unavailable".
6295 * frame.c (frame_register_read): Ditto.
6296 * findvar.c (value_of_register): Ditto.
6297
6298 2002-05-15 Andrew Cagney <cagney@redhat.com>
6299
6300 * Makefile.in (remote_sim_h): Replace remote-sim_h.
6301 (remote-sim.o): Update dependencies.
6302 (d10v-tdep.o): Specify dependencies.
6303 (sim_d10v_h): Define.
6304
6305 2002-05-14 Jim Blandy <jimb@redhat.com>
6306
6307 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
6308 * macrotab.c (macro_lookup_inclusion, find_definition,
6309 new_macro_table): Same.
6310
6311 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
6312 not `! strcmp ()'. This is a dubious improvement.
6313 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
6314
6315 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
6316 although it's not necessary, to avoid a warning.
6317
6318 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
6319
6320 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
6321 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
6322 TYPE_INSTANCE_FLAGS.
6323 (struct main_type): New.
6324 (struct type): Move most members to struct main_type. Change
6325 cv_type and as_type to new type_chain member. Add instance_flags.
6326 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
6327 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
6328 (finish_cv_type): Remove prototype.
6329 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
6330 Set TYPE_CHAIN.
6331 (alloc_type_instance): New function.
6332 (smash_type): New function.
6333 (make_pointer_type, make_reference_type, make_function_type)
6334 (smash_to_member_type, smash_to_method_type): Call smash_type.
6335 (make_qualified_type): New function.
6336 (make_type_with_address_space): Call make_qualified_type.
6337 (make_cv_type): Likewise.
6338 (finish_cv_type): Remove unnecessary function.
6339 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
6340 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
6341 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
6342 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
6343 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
6344 * hpread.c (hpread_read_struct_type): Likewise.
6345 * stabsread.c (read_struct_type): Likewise.
6346
6347 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
6348
6349 * configure.tgt: Add a catch all sh* target, for cases like
6350 sh[2,3,4]-elf and sh-hms.
6351
6352 2002-05-14 Keith Seitz <keiths@redhat.com>
6353
6354 * event-loop.c (create_file_handler): Don't do anything but
6355 update data when we are given a fd which we are already
6356 monitoring.
6357
6358 2002-05-14 Michal Ludvig <mludvig@suse.cz>
6359
6360 * dwarf2cfi.c (context_cpy): Copy registers correctly.
6361 (update_context): Use __func__ in warnings.
6362
6363 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
6364
6365 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
6366 and tcp_close to net_open and net_close.
6367 (net_open): Accept "udp:" and "tcp:" specifications. Connect
6368 using UDP if requested. Don't try to disable Nagle on UDP
6369 sockets.
6370 * remote.c (remote_serial_open): New function. Warn about UDP.
6371 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
6372
6373 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
6374
6375 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
6376
6377 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
6378
6379 * configure.tgt: Remove sh-hms target.
6380 * MAINTAINERS: Don't list sh-hms as a separate target.
6381
6382 2002-05-13 Jim Blandy <jimb@redhat.com>
6383
6384 Add first preprocessor macro-expansion files.
6385 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
6386 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
6387 (splay_tree_h, macroexp_h, macrotab_h): New variable.
6388 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
6389 (COMMON_OBS): Add macrotab.o, macroexp.o.
6390 (macroexp.o, macrotab.o): New rules.
6391
6392 2002-05-13 Andrew Cagney <ac131313@redhat.com>
6393
6394 * config/m88k/tm-m88k.h: Update copyright.
6395 (m88k_target_write_pc): Declare
6396 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
6397 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
6398 (SHIFT_INST_REGS): Update definition.
6399 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
6400 using old definition of TARGET_WRITE_PC.
6401 * regcache.c (generic_target_write_pc): Delete code handling
6402 NNPC_REGNUM.
6403 * gdbarch.sh (NNPC_REGNUM): Delete.
6404 * gdbarch.h, gdbarch.c: Regenerate.
6405
6406 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
6407
6408 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
6409 builtin reg number.
6410
6411 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
6412
6413 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
6414 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
6415 (gen_address_of, gen_struct_ref, gen_repeat): Use type
6416 access macros.
6417 * c-typeprint.c (cp_type_print_method_args): Likewise.
6418 (c_type_print_args): Likewise.
6419 * d10v-tdep.c (d10v_push_arguments): Likewise.
6420 (d10v_extract_return_value): Likewise.
6421 * expprint.c (print_subexp): Likewise.
6422 * gdbtypes.c (lookup_primitive_typename): Likewise.
6423 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
6424 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
6425 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
6426 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
6427 (TYPE_VECTOR): Likewise.
6428 * hpread.c (hpread_read_struct_type)
6429 (fix_static_member_physnames, fixup_class_method_type)
6430 (hpread_type_lookup): Likewise.
6431 * mdebugread.c (parse_symbol, parse_type): Likewise.
6432 * p-lang.c (is_pascal_string_type): Likewise.
6433 * valops.c (hand_function_call): Likewise.
6434 * x86-64-tdep.c (classify_argument): Likewise.
6435
6436 * hpread.c (hpread_read_function_type)
6437 (hpread_read_doc_function_type): Call replace_type.
6438 * dstread.c (create_new_type): Delete.
6439 (decode_dst_structure, process_dst_function): Call alloc_type.
6440 Use type access macros.
6441
6442 2002-05-12 Mark Kettenis <kettenis@gnu.org>
6443
6444 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
6445 the're not supported by the current architecture.
6446 (i387_fill_fxsave): Likewise.
6447
6448 2002-05-12 Fred Fish <fnf@redhat.com>
6449
6450 * symfile.c (default_symfile_offsets): Arrange for uninitialized
6451 sect_index_xxx members to index the first slot in section_offsets
6452 if all of the section_offsets are zero.
6453
6454 2002-05-12 Mark Kettenis <kettenis@gnu.org>
6455
6456 * configure.tgt (sparc-*openbsd): Remove entry accidentially
6457 checked in with last change.
6458
6459 2002-05-12 Mark Kettenis <kettenis@gnu.org>
6460
6461 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
6462 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
6463 config.sub.
6464
6465 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
6466
6467 * Makefile.in: Update dependencies.
6468
6469 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6470
6471 * language.c (local_hex_string_custom): Simplify. Do not depend
6472 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
6473
6474 * memattr.c (mem_info_command): Replace calls to
6475 longest_local_hex_string and longest_local_hex_string_custom.
6476 * buildsym.c (make_blockvector): Ditto.
6477 * solib.c (info_sharedlibrary_command): Ditto.
6478 * tracepoint.c (tracepoints_info): Ditto.
6479 * symtab.c (print_msymbol_info): Ditto.
6480
6481 * language.c (local_hex_string): Delete.
6482 (local_hex_string_custom): Delete.
6483 (longest_local_hex_string): Rename to local_hex_string.
6484 (longest_local_hex_string_custom): Rename to
6485 local_hex_string_custom.
6486 * language.h (local_hex_string): Change parameter type to LONGEST.
6487 (local_hex_string_custom): Ditto.
6488 (longest_local_hex_string): Delete declaration.
6489 (longest_local_hex_string_custom): Ditto.
6490
6491 * solib.c: Update copyright.
6492 * memattr.c: Update copyright.
6493
6494 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6495
6496 * arch-utils.h (legacy_register_to_value): Declare.
6497 (legacy_value_to_register): Declare.
6498 (legacy_convert_register_p): Declare.
6499 * arch-utils.c (legacy_register_to_value): New function.
6500 (legacy_value_to_register): New function.
6501 (legacy_convert_register_p): New function.
6502
6503 * gdbarch.sh (REGISTER_TO_VALUE): Define.
6504 (VALUE_TO_REGISTER): Define.
6505 (CONVERT_REGISTER_P): Define.
6506 * gdbarch.h, gdbarch.c: Regenerate.
6507
6508 * valops.c (value_assign): Use CONVERT_REGISTER_P and
6509 VALUE_TO_REGISTER.
6510 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
6511 CONVERT_REGISTER_P.
6512
6513 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
6514 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
6515
6516 * Makefile.in: Update dependencies for valops.c.
6517 * valops.c: Include "gdb_assert.h".
6518 (typecmp): Skip THIS parameter to methods.
6519 (find_method_list): Remove static_memfuncp argument,
6520 update callers. Check for stub methods.
6521 (find_value_oload_method_list): Don't set *static_memfuncp.
6522 (find_overload_match): Don't check for stub methods. Assert
6523 that methods are not stubbed. Handle static methods.
6524 (value_find_oload_method_list): Remove static_memfuncp argument.
6525 * gdbtypes.c (check_stub_method): Do not add THIS pointer
6526 to the argument list for static stub methods.
6527 * value.h (value_find_oload_method_list): Update prototype.
6528
6529 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6530
6531 * arch-utils.h (generic_register_size): Declare.
6532 (generic_register_raw_size, generic_register_virtual_size): Delete
6533 declarations.
6534 * arch-utils.c (generic_register_raw_size): Delete.
6535 (generic_register_size): New function.
6536 (generic_register_virtual_size): Delete.
6537
6538 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
6539 default generic_register_size.
6540 * gdbarch.h, gdbarch.c: Re-generate.
6541
6542 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
6543 register_virtual_size.
6544 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
6545 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6546
6547 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6548
6549 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
6550 * gdbarch.h, gdbarch.c: Regenerate.
6551 * gnu-v3-abi.c: Update copyright.
6552 (vtable_address_point_offset): Update.
6553 (gnuv3_rtti_type): Update.
6554 (gnuv3_baseclass_offset): Update.
6555 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
6556 (init_fetch_link_map_offsets): Update.
6557 * remote.c (get_remote_state): Update.
6558
6559 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
6560
6561 * TODO: Remove value_headof/value_from_vtable_info comment.
6562 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
6563 * values.c (value_headof, value_from_vtable_info): Delete.
6564 * value.h (value_from_vtable_info): Delete prototype.
6565
6566 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6567
6568 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
6569 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
6570 $(gdb_regex_h).
6571 (gdb_assert_h): Define.
6572 (gdb_wait_h): Define.
6573 (gdb_regex_h): Define.
6574
6575 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
6576
6577 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
6578 * linespec.c (find_methods): Handle GCC 3.x template constructors.
6579
6580 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6581
6582 * nbsd-tdep.c: Fix comment.
6583
6584 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6585
6586 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
6587 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
6588 (nbsd-tdep.o): New dependency list.
6589 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
6590 nbsd-tdep.h.
6591 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
6592 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
6593 * nbsd-tdep.c: New file.
6594 * nbsd-tdep.h: New file.
6595 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
6596 nbsd-tdep.h.
6597 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
6598 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
6599 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
6600 * config/sh/nbsd.mt (TDEPFILES): Ditto.
6601
6602 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6603
6604 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
6605 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
6606 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
6607 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
6608 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
6609 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
6610
6611 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6612
6613 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
6614 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6615 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
6616 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
6617 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
6618 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
6619 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
6620
6621 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6622
6623 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
6624 fetch_elfcore_registers to...
6625 * i386nbsd-tdep.c: ...here.
6626 (i386nbsd_use_struct_convention): Rename to...
6627 (i386nbsd_aout_use_struct_convention): ...this.
6628 (i386nbsd_supply_reg): New function.
6629 (i386nbsd_fill_reg): New function.
6630 (fetch_core_registers): Use i386nbsd_supply_reg.
6631 (fetch_elfcore_registers): Likewise.
6632 (_initialize_i386nbsd_tdep): New function.
6633 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
6634 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6635 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
6636 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
6637 (i386nbsd_aout_use_struct_convention): ...this.
6638
6639 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6640
6641 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
6642 (store_inferior_registers): Use shnbsd_fill_reg.
6643 * shnbsd-tdep.c (sh_nbsd_supply_registers,
6644 sh_nbsd_supply_register): Collapse into...
6645 (shnbsd_supply_reg): ...this.
6646 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
6647 (shnbsd_fill_reg): ...this.
6648 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
6649 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
6650 (fetch_core_registers): Use shnbsd_supply_reg.
6651 (fetch_elfcore_registers): Use shnbsd_supply_reg.
6652 (sh_nbsd_core_fns): Rename to...
6653 (shnbsd_core_fns): ...this.
6654 (sh_nbsd_elfcore_fns): Rename to...
6655 (shnbsd_elfcore_fns): ...this.
6656 (sh_nbsd_init_abi): Rename to...
6657 (shnbsd_init_abi): ...this.
6658 (_initialize_sh_nbsd_tdep): Rename to...
6659 (_initialize_shnbsd_tdep): ...this.
6660 * shnbsd-tdep.h (sh_nbsd_supply_registers,
6661 sh_nbsd_supply_register, sh_nbsd_fill_registers,
6662 sh_nbsd_fill_register): Remove prototypes.
6663 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
6664
6665 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6666
6667 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
6668 (i387-nat.o): Delete dependency list.
6669 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
6670 (x86-64-linux-nat.o): Likewise.
6671 * i387-nat.c: Delete file, moving contents to...
6672 * i387-tdep.c: ...here.
6673 * i387-nat.h: Rename...
6674 * i387-tdep.h: ...to this.
6675 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
6676 * i386-linux-nat.c: Likewise.
6677 * i386bsd-nat.c: Likewise.
6678 * i386gnu-nat.c: Likewise.
6679 * i386nbsd-nat.c: Likewise.
6680 * i386v4-nat.c: Likewise.
6681 * x86-64-linux-nat.c: Likewise.
6682 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
6683 * config/i386/go32.mh (NATDEPFILES): Likewise.
6684 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
6685 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
6686 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
6687 * config/i386/linux.mh (NATDEPFILES): Likewise.
6688 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
6689 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6690 * config/i386/obsd.mh (NATDEPFILES): Likewise.
6691 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
6692
6693 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6694
6695 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
6696 (alphanbsd-nat.o): Remove dependency list.
6697 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
6698 * alphanbsd-nat.c: Delete. Contents moved to...
6699 * alphanbsd-tdep.c: ...here.
6700 (_initialize_alphanbsd_tdep): Register core functions.
6701 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
6702
6703 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6704
6705 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
6706 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
6707 (alphanbsd-nat.o): Likewise.
6708 (alphabsd-tdep.o): New dependency list.
6709 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
6710 (fill_gregset): Use alphabsd_fill_reg.
6711 (supply_fpregset): Use alphabsd_supply_fpreg.
6712 (fill_fpregset): Use alphabsd_fill_fpreg.
6713 (fetch_inferior_registers): Use struct reg and struct fpreg
6714 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
6715 and alphabsd_supply_fpreg.
6716 (store_inferior_registers): Use struct reg and struct fpreg
6717 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
6718 and alphabsd_fill_fpreg.
6719 * alphabsd-tdep.c: New file.
6720 * alphabsd-tdep.h: New file.
6721 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
6722 (fetch_elfcore_registers): Use alphabsd_supply_reg and
6723 alphabsd_supply_fpreg.
6724 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
6725 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
6726
6727 2002-05-11 Eric Christopher <echristo@redhat.com>
6728
6729 * mips-tdep.c (mips_double_register_type): Fix thinko.
6730 (mips_single_register_type): Ditto.
6731 * MAINTAINERS: Add self.
6732
6733 2002-05-11 Mark Kettenis <kettenis@gnu.org>
6734
6735 * i387-nat.c (i387_supply_register, i387_fill_fsave,
6736 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
6737 right thing on architectures with different endianness and/or
6738 integer sizes.
6739
6740 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
6741
6742 From Christian Limpach <chris@Pin.LU>
6743 * configure.in: Change sed expression which comments out
6744 NATDEPFILES to also comment out continuation lines.
6745 * configure: Regenerate.
6746
6747 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
6748
6749 * sh-tdep.c: Clean up code erroneously reintroduced by previous
6750 big patch.
6751
6752 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
6753
6754 * sh-tdep.c: Include correct file.
6755
6756 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
6757
6758 New support for sh64-elf (sh5) target.
6759
6760 * configure.tgt: For sh64-elf target, default to sh-elf.
6761
6762 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
6763 (struct gdbarch_tdep): Add new fields for new registers and ABI
6764 info.
6765
6766 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
6767 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
6768 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
6769 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
6770 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
6771 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
6772 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
6773 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
6774 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
6775 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
6776 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
6777 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
6778 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
6779 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
6780 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
6781 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
6782 sh64_get_gdb_regnum, sh64_media_reg_base_num,
6783 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
6784 sign_extend, sh64_nofp_frame_init_saved_regs,
6785 sh64_init_extra_frame_info, sh64_get_saved_register,
6786 sh64_extract_struct_value_address, sh64_pop_frame,
6787 sh64_push_arguments, sh64_extract_return_value,
6788 sh64_store_return_value, sh64_show_media_regs,
6789 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
6790 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
6791 sh_sh64_register_virtual_type,
6792 sh_sh64_register_convert_to_virtual,
6793 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
6794 sh64_register_read, sh64_pseudo_register_write,
6795 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
6796 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
6797 sh64_do_pseudo_register, sh_compact_do_registers_info,
6798 sh64_do_registers_info, sh_gdbarch_init): New functions.
6799
6800 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
6801
6802 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
6803
6804 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
6805
6806 * linespec.c (decode_line_1): Check for a double quote after
6807 a filename correctly.
6808
6809 2002-05-10 Jim Blandy <jimb@redhat.com>
6810
6811 Properly track the size of the current objfile's .debug_line section.
6812 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
6813 (DWARF_LINE_SIZE): New macro.
6814 (dwarf2_build_psymtabs_hard): Record the line section's size in
6815 the partial symbol table.
6816 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
6817 symbol table.
6818
6819 2002-05-10 Petr Sorfa <petrs@caldera.com>
6820
6821 * ia64-tdep.c: Handle breakpoints on L instruction type
6822 in MLX instruction bundle by moving the breakpoint to
6823 the third slot (X instruction type) as L holds only data.
6824
6825 2002-05-10 Kevin Buettner <kevinb@redhat.com>
6826
6827 * dbxread.c (discarding_local_symbols_complaint): New complaint.
6828 (process_one_symbol): Complain about discarding local symbols
6829 due to a misplaced N_LBRAC entry.
6830
6831 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
6832
6833 From Daniel Berlin <dan@cgsoftware.com>
6834 * linespec.c (find_toplevel_char): '<' and '>' also increase and
6835 decrease the depth we are at, in the case of templates.
6836
6837 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
6838
6839 * mips-tdep.c (mips_float_register_type): New function.
6840 (mips_double_register_type): New function.
6841 (mips_print_register): Use them.
6842 (do_fp_register_row): Likewise.
6843
6844 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
6845
6846 * signals/signals.c (signals): Remove conditional compilation around
6847 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
6848 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
6849
6850 2002-05-09 Michael Snyder <msnyder@redhat.com>
6851
6852 * remote-rdp.c (remote_rdp_can_run): Remove.
6853
6854 2002-05-09 Tom Tromey <tromey@redhat.com>
6855
6856 * jv-valprint.c (java_val_print): Handle `char' as a special case
6857 of TYPE_CODE_INT.
6858
6859 2002-05-09 Michael Snyder <msnyder@redhat.com>
6860
6861 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
6862 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
6863 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
6864 str r(0123),[sp,#nn].
6865 (arm_skip_prologue): Ditto. Also make disassembly
6866 order-independent by placing it in a loop.
6867
6868 2002-05-06 Michael Snyder <msnyder@redhat.com>
6869
6870 * stabsread.c (read_type): Add recognition for new attribute:
6871 "@V;" means that an array type is actually a vector.
6872 This is analogous to the vector flag that's been added to dwarf2.
6873
6874 2002-05-09 Mark Kettenis <kettenis@gnu.org>
6875
6876 * i386-tdep.h (i386_abi): New enum.
6877 (struct gdbarch_tdep): Replace os_ident member with abi.
6878 (i386_gdbarch_register_os_abi): New prototype.
6879 * i386-tdep.c (i386_abi_names): New array.
6880 (process_note_abi_tag_sections): Removed.
6881 (process_note_sections): New function.
6882 (i386_elf_abi_from_note, i386_elf_abi): New functions.
6883 (struct i386_abi_handler): New struct.
6884 (i386_abi_handler_list): New variable.
6885 (i386_gdbarch_register_os_abi): New function.
6886 (i386_gdbarch_init): Adapt for the changes given above.
6887
6888 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
6889
6890 * gregset.h: Say "GNU/Linux".
6891
6892 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
6893
6894 * gdbtypes.c : Add new builtin type for 64 bit vectors.
6895 (build_gdbtypes): Build builtin_type_v2_float.
6896 (_initialize_gdbtypes): Register new builtin type.
6897
6898 2002-05-08 Andrew Cagney <ac131313@redhat.com>
6899
6900 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
6901 (clear_gdbarch_swap): New function.
6902 (initialize_non_multiarch): Call.
6903 (gdbarch_update_p): Before calling init(), swap out and clear the
6904 existing architecture.
6905 * gdbarch.c: Regenerate.
6906
6907 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6908
6909 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
6910 alphanbsd-tdep.c.
6911
6912 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6913
6914 * sh-nbsd-nat.c: Rename to...
6915 * shnbsd-nat.c: ...this.
6916 * sh-nbsd-tdep.c: Rename to...
6917 * shnbsd-tdep.c: ...this.
6918 * sh-nbsd-tdep.h: Rename to...
6919 * shnbsd-tdep.h: ...this.
6920 * config/sh/nbsd.mh: Use shnbsd-nat.o.
6921 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
6922
6923 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
6924
6925 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
6926 concatenation for command help messages.
6927
6928 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6929
6930 * NEWS: Note new sh*-*-netbsdelf* configuration.
6931 * configure.host: Set gdb_host_cpu to sh for all sh*.
6932 (sh*-*-netbsdelf*): New host.
6933 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
6934 (sh*-*-netbsdelf*): New target.
6935 * sh-nbsd-nat.c: New file.
6936 * sh-nbsd-tdep.c: New file.
6937 * sh-nbsd-tdep.h: New file.
6938 * config/sh/nbsd.mh: New file.
6939 * config/sh/nbsd.mt: New file.
6940 * config/sh/nm-nbsd.h: New file.
6941 * config/sh/tm-nbsd.h: New file.
6942
6943 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6944
6945 * sh-tdep.c (sh_osabi_names): Declare.
6946 (process_note_abi_tag_sections): New function.
6947 (get_elfosabi): Ditto.
6948 (sh_gdbarch_register_os_abi): Ditto.
6949 (sh_dump_tdep): Ditto.
6950 _initialize_sh_tdep): Use gdbarch_register to register
6951 sh_gdbarch_init and sh_dump_tdep.
6952 * config/sh/tm-sh.h (sh_osabi): Declare.
6953 (gdbarch_tdep): Add sh_osabi and osabi_name members.
6954
6955 2002-05-07 Andrew Cagney <ac131313@redhat.com>
6956
6957 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
6958 (thumb_scan_prologue): Ditto.
6959 (arm_find_callers_reg): Ditto.
6960 (arm_frame_chain): Ditto.
6961 (arm_init_extra_frame_info): Ditto.
6962 (arm_frame_saved_pc): Ditto.
6963 (arm_pop_frame): Ditto.
6964 (arm_push_return_address): New function.
6965 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
6966 call_dummy_location, call_dummy_breakpoint_offset_p,
6967 call_dummy_breakpoint_offset, call_dummy_p,
6968 call_dummy_stack_adjust_p, call_dummy_words,
6969 sizeof_call_dummy_words, call_dummy_start_offset,
6970 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
6971 call_dummy_address, push_return_address and push_dummy_frame for
6972 generic dummy frames.
6973
6974 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
6975
6976 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
6977 size computation for alloca.
6978 (sh_fp_frame_init_saved_regs): Likewise.
6979
6980 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
6981
6982 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
6983 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
6984 * arm-tdep.c (arm_store_return_value): Use them.
6985 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
6986 * remote-rdp.c (remote_rdp_fetch_register): Use
6987 ARM_MAX_REGISTER_RAW_SIZE.
6988 (remote_rdp_store_register): Likewise.
6989
6990 2002-05-07 Michal Ludvig <mludvig@suse.cz>
6991
6992 * dwarf2cfi.c: Code cleanup, removed unused variables,
6993 added default labels to switch {} statements.
6994 * x86-64-tdep.c: Ditto.
6995 * x86-64-linux-nat.c: Ditto.
6996
6997 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
6998
6999 * solib.h: Protect against multiple inclusion.
7000
7001 2002-05-06 Jim Blandy <jimb@redhat.com>
7002
7003 Add first preprocessor macro-expansion files.
7004 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
7005 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
7006 (splay_tree_h, macroexp_h, macrotab_h): New variable.
7007 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
7008 (COMMON_OBS): Add macrotab.o, macroexp.o.
7009 (macroexp.o, macrotab.o): New rules.
7010
7011 Separate the job of reading the line number info statement program
7012 header (...expialidocious) out into its own function.
7013 * dwarf2read.c (struct line_head, struct filenames, struct
7014 directories): Replace with...
7015 (struct line_header): New structure, containing the full
7016 contents of the statement program header, including the
7017 include directory and file name tables.
7018 (read_file_scope): If we have line number info, instead of just
7019 calling dwarf_decode_lines to do all the work, call
7020 dwarf_decode_line_header first to get a `struct line_header'
7021 containing the data in the statement program header, and then
7022 pass that to dwarf_decode_lines, which will pick up where that
7023 left off. Be sure to clean up the `struct line_header' object.
7024 (dwarf_decode_line_header, free_line_header, add_include_dir,
7025 add_file_name): New functions.
7026 (dwarf_decode_lines): Move all the code to read the statement
7027 program header into dwarf_decode_line_header. Take the line
7028 header it built as the first argument, instead of the offset to
7029 the compilation unit's line number info. Use the new `struct
7030 line_header' type instead of the old structures. No need to do
7031 cleanups here now, since we don't allocate anything.
7032 (dwarf2_statement_list_fits_in_line_number_section,
7033 dwarf2_line_header_too_long): New complaints.
7034
7035 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
7036
7037 * gdbtypes.c (init_vector_type): New function.
7038 (build_builtin_type_vec128): Simplify the representation of SIMD
7039 registers.
7040 (build_gdbtypes): Initialize new builtin vector types.
7041 (_initialize_gdbtypes): Register new vector types with gdbarch.
7042 (builtin_type_v4_float, builtin_type_v4_int32,
7043 builtin_type_v8_int16, builtin_type_v16_int8,
7044 builtin_type_v2_int32, builtin_type_v4_int16,
7045 builtin_type_v8_int8): New (renamed) SIMD types.
7046
7047 2002-05-06 Mark Kettenis <kettenis@gnu.org>
7048
7049 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
7050 (i387_fill_fxsave): Likewise.
7051
7052 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
7053
7054 * alpha-tdep.c (alpha_extract_return_value): Don't use
7055 non-constant array size in prototype.
7056
7057 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7058
7059 From Brian Taylor <briant at model dot com>:
7060 * ui-out.c (ui_out_field_core_addr): Use the function
7061 longest_local_hex_string_custom'to format addresses > 32 bits
7062 wide.
7063
7064 * ui-out.c (ui_out_field_core_addr): Update comment.
7065
7066 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7067
7068 * stack.c (select_and_print_frame): Make static. Delete the
7069 parameter `level'.
7070 (func_command): Update call.
7071 (select_frame_command): Delete code computing the frame level.
7072 * frame.h (select_and_print_frame): Delete declaration.
7073
7074 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7075
7076 * sparc-tdep.c (sparc_get_saved_register): Comment why
7077 get_prev_frame call is safe.
7078
7079 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7080
7081 * frame.h (select_frame): Delete level parameter.
7082 * stack.c (select_frame): Update. Use frame_relative_level to
7083 obtain the frame's level.
7084 (select_and_print_frame): Update call.
7085 (select_frame_command): Ditto.
7086 (up_silently_base): Ditto.
7087 (down_silently_base): Ditto.
7088 * ocd.c (ocd_start_remote): Ditto.
7089 * remote-rdp.c (remote_rdp_open): Ditto.
7090 * remote-mips.c (mips_initialize): Ditto.
7091 (common_open): Ditto.
7092 * remote-e7000.c (e7000_start_remote): Ditto.
7093 * m3-nat.c (select_thread): Ditto.
7094 * hppa-tdep.c (child_get_current_exception_event): Ditto.
7095 (child_get_current_exception_event): Ditto.
7096 * varobj.c (varobj_create): Ditto.
7097 (varobj_update): Ditto.
7098 (c_value_of_root): Ditto.
7099 * tracepoint.c (finish_tfind_command): Ditto.
7100 * corelow.c (core_open): Ditto.
7101 * arch-utils.c (generic_prepare_to_proceed): Ditto.
7102 * thread.c (info_threads_command): Ditto.
7103 (switch_to_thread): Ditto.
7104 * infrun.c (normal_stop): Ditto.
7105 (restore_selected_frame): Ditto.
7106 (restore_inferior_status): Ditto.
7107 * breakpoint.c (insert_breakpoints): Ditto.
7108 (watchpoint_check): Ditto.
7109 (bpstat_stop_status): Ditto.
7110 (do_enable_breakpoint): Ditto.
7111 * blockframe.c (flush_cached_frames): Ditto.
7112 (reinit_frame_cache): Ditto.
7113
7114 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7115
7116 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
7117 maintainer.
7118
7119 2002-05-04 Jim Blandy <jimb@redhat.com>
7120
7121 * gdbtypes.c (replace_type): Doc fix.
7122
7123 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7124
7125 * valprint.c (strcat_longest): Delete commented out function.
7126 Update copyright.
7127
7128 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7129
7130 * MAINTAINERS: Mark a29k as deleted.
7131 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
7132 Move new configurations to the top.
7133 * configure.tgt: Remove a29k.
7134 * config/a29k/tm-vx29k.h: Delete.
7135 * config/a29k/vx29k.mt: Delete.
7136 * config/a29k/tm-a29k.h: Delete.
7137 * config/a29k/a29k-udi.mt: Delete.
7138 * config/a29k/a29k.mt: Delete.
7139 * a29k-tdep.c: Delete.
7140 * remote-udi.c: Delete.
7141 * remote-mm.c: Delete.
7142 * remote-eb.c: Delete.
7143 * remote-adapt.c: Delete.
7144 * Makefile.in: Remove obsolete code.
7145 * config/s390/s390x.mt: Ditto.
7146 * config/s390/s390.mt: Ditto.
7147 * config/sparc/sparclynx.mh: Ditto.
7148 * config/sparc/linux.mh: Ditto.
7149 * config/pa/hppaosf.mh: Ditto.
7150 * config/pa/hppabsd.mh: Ditto.
7151 * config/ns32k/nbsd.mt: Ditto.
7152 * config/mips/vr5000.mt: Ditto.
7153 * config/m68k/sun3os4.mh: Ditto.
7154 * config/m68k/nbsd.mt: Ditto.
7155 * config/m68k/m68klynx.mh: Ditto.
7156 * config/m32r/m32r.mt: Ditto.
7157 * config/i386/x86-64linux.mt: Ditto.
7158 * config/i386/nbsdelf.mt: Ditto.
7159 * config/i386/nbsd.mt: Ditto.
7160 * config/i386/i386lynx.mh: Ditto.
7161
7162 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7163
7164 * target.c (debug_print_register): New function. Handle oversize
7165 registers.
7166 (debug_to_fetch_registers): Call.
7167 (debug_to_store_registers): Call.
7168
7169 2002-05-03 Jim Blandy <jimb@redhat.com>
7170
7171 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
7172 (read_type): Doc fix.
7173 * gdbtypes.c (replace_type): Doc fix.
7174
7175 * stabsread.c (multiply_defined_struct): New complaint.
7176 (read_struct_type): If the type we were passed isn't empty, or
7177 incomplete, don't read the new struct type into it; complain,
7178 and return the original type unchanged. Take a new `type_code'
7179 argument, which is the type code for the new type.
7180 (read_type): Rather than storing the type's type code here, pass
7181 it as an argument to read_struct_type, and let that take care of
7182 storing it. That way, we don't overwrite the original type code,
7183 so read_struct_type can use it to decide whether we're overwriting
7184 something we shouldn't.
7185 (complain_about_struct_wipeout): New function.
7186
7187 2002-05-03 Andrew Cagney <ac131313@redhat.com>
7188
7189 * gdbarch.sh: Assert that gdbarch is non-NULL.
7190 * gdbarch.c: Regenerate.
7191
7192 2002-05-03 Jason Merrill <jason@redhat.com>
7193
7194 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
7195 and return NULL.
7196
7197 2002-05-03 Michal Ludvig <mludvig@suse.cz>
7198
7199 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
7200 (x86_64_dwarf2gdb_regno_map_length),
7201 (x86_64_dwarf2_reg_to_regnum): Added.
7202 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
7203 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
7204 (_initialize_x86_64_tdep): Synced with the change above.
7205 (x86_64_skip_prologue): Reformulated message.
7206
7207 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
7208
7209 * f-exp.y: Also use new prev_lexptr variable
7210 to improve error reporting. Based on Michael Snyder
7211 2002-04-24 dated patch to c-exp.y.
7212 * jv-exp.y: Likewise.
7213 * m2-exp.y: Likewise.
7214
7215 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
7216
7217 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
7218 we are dealing with vectors.
7219
7220 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7221
7222 * config/m68k/tm-nbsd.h: Obvious fix,
7223 correct machine name.
7224
7225 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7226
7227 * p-typeprint.c (pascal_type_print_base): Add support
7228 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
7229
7230 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7231
7232 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
7233 for fondamental pascal 'char' type.
7234
7235 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7236
7237 * p-lang.h (is_pascal_string_type): Declaration changed,
7238 new sixth argument of type char ** added.
7239 * p-lang.c (is_pascal_string_type): Implementation
7240 changed. Args length_pos, length_size, string_pos, char_size
7241 can now be NULL. New argument arrayname set to the field
7242 name of the char array. Return value set to char array
7243 field index plus one.
7244 * p-valprint.c (pascal_val_print): Adapt to new declaration of
7245 is_pascal_string_type function.
7246
7247 2002-05-02 Andrew Cagney <cagney@redhat.com>
7248
7249 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
7250 <cagney@redhat.com> change.
7251 * gdbarch.c: Regenerate.
7252
7253 2002-05-02 Andrew Cagney <cagney@redhat.com>
7254
7255 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
7256 before probing for a new one. Detect errorenous gdbarch_init
7257 functions.
7258 * gdbarch.c: Regenerate.
7259
7260 2002-05-01 Andrew Cagney <cagney@redhat.com>
7261
7262 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
7263 * config/mcore/tm-mcore.h: Ditto. Update copyright.
7264 * config/v850/tm-v850.h: Ditto. Update copyright.
7265
7266 2002-04-30 Andrew Cagney <ac131313@redhat.com>
7267
7268 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
7269 current_gdbarch.
7270
7271 2002-04-30 Michael Snyder <msnyder@redhat.com>
7272
7273 * arm-tdep.c: Whitespace clean-ups.
7274 (arm_skip_prologue): Fix thinko; two lines
7275 should have been removed as part of 4/24 change.
7276
7277 2002-04-30 Kevin Buettner <kevinb@redhat.com>
7278
7279 * rs6000-tdep.c: Added comment describing how fpscr register
7280 numbers were chosen.
7281
7282 2002-04-30 Michael Snyder <msnyder@redhat.com>
7283
7284 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
7285
7286 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
7287
7288 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
7289 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
7290 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
7291
7292 2002-04-29 Kevin Buettner <kevinb@redhat.com>
7293
7294 From Louis Hamilton <hamilton@redhat.com>:
7295 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
7296 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
7297 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
7298 not bfd-private xcoff data, to determine wordsize.
7299 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
7300
7301 2002-04-29 Andrew Cagney <ac131313@redhat.com>
7302
7303 GDB 5.2 released from 5.2 branch.
7304
7305 2002-04-29 Michal Ludvig <mludvig@suse.cz>
7306
7307 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
7308 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
7309 (x86_64_register_info_table): Added comments with register numbers.
7310
7311 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
7312
7313 * rs6000-tdep.c (rs6000_extract_return_value,
7314 rs6000_store_return_value): Handle returning vectors.
7315 (rs6000_gdbarch_init): Use
7316 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
7317 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
7318 New function.
7319 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
7320 vectors.
7321 (ppc_sysv_abi_push_arguments): Handle vector parameters.
7322 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
7323
7324 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
7325
7326 * hpread.c (hpread_psymtab_to_symtab_1,
7327 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
7328 with fprintf_unfiltered (gdb_stderr,...).
7329
7330 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
7331
7332 * remote-array.c (printf_monitor, write_monitor,
7333 array_insert_breakpoint, array_remove_breakpoint ):
7334 Replace fprintf (stderr,...
7335 with fprintf_unfiltered (gdb_stderr,....
7336 * remote-es.c: Likewise.
7337 * remote-os9k.c: Likewise.
7338 * remote-st.c: Likewise.
7339
7340 2002-04-28 Andreas Schwab <schwab@suse.de>
7341
7342 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
7343 linux-proc.o and gcore.o.
7344
7345 2002-04-26 Michal Ludvig <mludvig@suse.cz>
7346
7347 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
7348 code without frame pointers.
7349
7350 2002-04-26 Andrew Cagney <ac131313@redhat.com>
7351
7352 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
7353 ON_STACK is needed.
7354
7355 2002-04-26 Ben Elliston <bje@redhat.com>
7356
7357 * target.c (do_xfer_memory): Correct reference to the new option
7358 "trust-readonly-sections".
7359
7360 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
7361
7362 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
7363 * gdbtypes.c (recursive_dump_type): Output the vector flag.
7364 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
7365 vectors.
7366 (read_array_type): Record the fact that this array type is really a
7367 vector (i.e. are passed in by value).
7368
7369 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
7370
7371 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
7372 * alpha-tdep.c (alpha_sigcontext_addr): New function.
7373 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
7374 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
7375 * alpha-linux-tdep.c: Include frame.h.
7376 (alpha_linux_sigcontext_addr): New function.
7377 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
7378 alpha_linux_sigcontext_addr.
7379 * alpha-osf1-tdep.c: Include gdbcore.h.
7380 (alpha_osf1_sigcontext_addr): New function.
7381 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
7382 alpha_osf1_sigcontext_addr.
7383 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
7384 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
7385
7386 2002-04-26 Andrew Cagney <ac131313@redhat.com>
7387
7388 * stack.c (selected_frame_level):
7389 (select_frame): Do not set selected_frame_level.
7390 * frame.h (selected_frame_level): Delete declaration.
7391
7392 2002-04-26 Andrew Cagney <ac131313@redhat.com>
7393
7394 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
7395 convert_from_func_ptr-addr when AIX / PowerOpen.
7396
7397 2002-04-25 Andrew Cagney <ac131313@redhat.com>
7398
7399 * valops.c (hand_function_call): Call
7400 generic_save_call_dummy_addr.
7401 * frame.h (generic_save_call_dummy_addr): Declare.
7402 * blockframe.c (struct dummy_frame): Add fields call_lo and
7403 call_hi.
7404 (generic_find_dummy_frame): Check for PC in range call_lo to
7405 call_hi instead of entry_point_address.
7406 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
7407 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
7408 (generic_save_call_dummy_addr): New function.
7409
7410 2002-04-24 David S. Miller <davem@redhat.com>
7411
7412 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
7413 sparc_skip_prologue.
7414 (sparc_skip_prologue): Kill frameless_p arg, and use line number
7415 information to find prologue when possible.
7416 (sparc_prologue_frameless_p): Call examine_prologue directly.
7417 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
7418 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
7419 second argument.
7420 (SKIP_PROLOGUE): Likewise.
7421
7422 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7423
7424 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
7425 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
7426 indicate that the condition it was testing is always true.
7427 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
7428 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
7429 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
7430
7431 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7432
7433 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
7434 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
7435 tdep->jb_pc and tdep->jb_elt_size.
7436 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
7437 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
7438 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
7439 * alpha-nat.c (get_longjmp_target): Remove.
7440 (JB_ELEMENT_SIZE): Ditto.
7441 (JB_PC): Ditto.
7442 * alpha-tdep.c (alpha_get_longjmp_target): New function.
7443 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
7444 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
7445 to alpha_get_longjmp_target.
7446 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
7447 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
7448 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
7449
7450 2002-04-25 Andrew Cagney <ac131313@redhat.com>
7451
7452 * README: Update to GDB 5.2.
7453
7454 2002-04-25 Andrew Cagney <ac131313@redhat.com>
7455
7456 * gdbarch.sh (LC_ALL): Set to `c'.
7457
7458 2002-04-25 Theodore A. Roth <troth@verinet.com>
7459
7460 * avr-tdep.c: Ran through gdb_indent.sh.
7461
7462 2002-04-25 Theodore A. Roth <troth@verinet.com>
7463
7464 * MAINTAINERS: Add myself as AVR maintainer.
7465 * NEWS: Note new target avr.
7466
7467 2002-04-25 Theodore A. Roth <troth@verinet.com>
7468
7469 * Makefile.in: Add support for AVR target.
7470 * configure.tgt: Add support for AVR target.
7471 * avr-tdep.c: New file
7472 * config/avr/avr.mt: New file.
7473
7474 2002-04-25 Theodore A. Roth <troth@verinet.com>
7475
7476 * MAINTAINERS: Add myself to write-after-approval.
7477
7478 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
7479
7480 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
7481 with fprintf_unfiltered (gdb_stderr,....
7482
7483 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
7484
7485 Fix PR gdb/508.
7486 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
7487
7488 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
7489
7490 * p-exp.y: Also use new prev_lexptr variable
7491 to improve error reporting. Based on Michael Snyder
7492 2002-04-24 dated patch to c-exp.y.
7493
7494 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7495
7496 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
7497 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
7498 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
7499 to 0.
7500 * config/alpha/tm-alpha.h: Remove forward decls of struct type
7501 and struct value.
7502 (FUNCTION_START_OFFSET): Remove.
7503 (BREAKPOINT): Ditto.
7504
7505 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7506
7507 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
7508 * NEWS: Ditto.
7509
7510 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7511
7512 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
7513 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
7514 alpha_linux_pc_in_sigtramp.
7515 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
7516 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
7517 alpha_osf1_pc_in_sigtramp.
7518 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
7519 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
7520 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
7521 alphafbsd_pc_in_sigtramp.
7522 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
7523 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
7524 alphanbsd_pc_in_sigtramp.
7525 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
7526 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
7527
7528 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7529
7530 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
7531
7532 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7533
7534 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
7535 alphanbsd-tdep.c.
7536 (alphanbsd-nat.o): New dependency list.
7537 (alphanbsd-tdep.o): Ditto.
7538 * NEWS: Note new native NetBSD/alpha configuration.
7539 * alphanbsd-nat.c: New file.
7540 * alphanbsd-tdep.c: Ditto.
7541 * configure.host (alpha*-*-netbsd*): New host.
7542 * configure.tgt (alpha*-*-netbsd*): New target.
7543 * config/alpha/nbsd.mh: New file.
7544 * config/alpha/nbsd.mt: Ditto.
7545 * config/alpha/nm-nbsd.h: Ditto.
7546 * config/alpha/tm-nbsd.h: Ditto.
7547
7548 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7549
7550 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
7551 (alpha-osf1-tdep.o): New dependency list.
7552 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
7553 and skip_sigtramp_frame members.
7554 * alpha-linux-tdep.c: Include gdbcore.h.
7555 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
7556 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
7557 * alpha-osf1-tdep.c: New file.
7558 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
7559 alpha-osf1-dep.c.
7560 (alpha_frame_past_sigtramp_frame): New function.
7561 (alpha_dynamic_sigtramp_offset): Ditto.
7562 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
7563 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
7564 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
7565 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
7566 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
7567 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
7568 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
7569 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
7570 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
7571 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
7572 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
7573 to find_solib_trampoline_target.
7574 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
7575 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
7576 (SKIP_TRAMPOLINE_CODE): Remove.
7577 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7578 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7579 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
7580 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
7581 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
7582 (PROC_SIGTRAMP_MAGIC): Ditto.
7583 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7584 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7585 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7586 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
7587 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
7588
7589 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7590
7591 * NEWS: Note that Alpha targets are now multi-arch.
7592
7593 2002-04-24 Michael Snyder <msnyder@redhat.com>
7594
7595 * parser-defs.h (prev_lexptr): New external variable.
7596 * parse.c (parse_exp_1): Set prev_lexptr to null before
7597 calling the language-specific parser.
7598 * c-exp.y (yylex): Set prev_lexptr to start of current token.
7599 (yyerror): Use prev_lexptr in error reporting.
7600
7601 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
7602
7603 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
7604 * gregset.h: If FILL_FPXREGSET is defined, provide
7605 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
7606 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
7607 is defined, call fill_fpxregset.
7608
7609 2002-04-24 Roland McGrath <roland@frob.com>
7610
7611 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
7612 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
7613 (supply_gregset, supply_fpregset): New functions.
7614
7615 * gnu-nat.c (gnu_find_memory_regions): New function.
7616 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
7617 (gnu_xfer_memory): Add a cast.
7618
7619 2002-04-24 Michael Snyder <msnyder@redhat.com>
7620
7621 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
7622 loop. Add handling for "str lr, [sp, #-4]!" and for saves
7623 of argument regs ("str r(0123), [r11, #-nn"]).
7624 (arm_skip_prologue): Better handling for frameless functions.
7625 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
7626 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
7627
7628 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
7629
7630 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
7631 NUM_PSEUDO_REGS can be used.
7632
7633 2002-04-24 Andrew Cagney <ac131313@redhat.com>
7634
7635 * arch-utils.h: Update copyright.
7636
7637 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
7638 * gdbarch.h, gdbarch.c: Re-generate.
7639
7640 * inferior.h (IN_SIGTRAMP): Delete definition.
7641 * arch-utils.c (legacy_pc_in_sigtramp): New function.
7642 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
7643
7644 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
7645 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
7646 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
7647 (find_proc_framesize): Ditto.
7648 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
7649 (alpha_init_extra_frame_info): Ditto.
7650 * infrun.c (handle_inferior_event): Ditto.
7651 (handle_inferior_event): Ditto.
7652 (check_sigtramp2): Ditto.
7653 * blockframe.c (create_new_frame): Ditto.
7654 (get_prev_frame): Ditto.
7655 * ppc-linux-tdep.c: Update comments.
7656 * i386-linux-tdep.c: Update comments.
7657 * breakpoint.c (bpstat_what): Update comment.
7658
7659 2002-04-24 David S. Miller <davem@redhat.com>
7660
7661 * i960-tdep.c (register_in_window_p): New function.
7662 (i960_find_saved_register): Use it instead of
7663 REGISTER_IN_WINDOW_P.
7664 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
7665
7666 * symtab.h (find_stab_function_addr): Kill extern.
7667 * minsyms.c (find_stab_function_addr): Remove from here...
7668 * dbxread.c: ... to here, and mark it static.
7669
7670 2002-04-20 David S. Miller <davem@redhat.com>
7671
7672 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
7673 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
7674
7675 2002-04-21 David S. Miller <davem@redhat.com>
7676
7677 * remote-vxsparc.c (vx_read_register): Fix typo, we want
7678 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
7679 (vx_write_register): Likewise.
7680
7681 2002-04-23 J. Brobecker <brobecker@gnat.com>
7682
7683 * source.c (is_regular_file): New function.
7684 (openp): Check wether file to open is a regular file
7685 to avoid opening directories.
7686
7687 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7688
7689 * findvar.c (extract_signed_integer): Cast printf argument
7690 to suppress format warning.
7691 (extract_unsigned_integer): Likewise.
7692 * infcmd.c (registers_info): Likewise.
7693 * top.c (get_prompt_1): Likewise.
7694 * valops.c (value_assign): Likewise.
7695 * valprint.c (print_decimal): Likewise.
7696
7697 2002-04-22 H.J. Lu (hjl@gnu.org)
7698
7699 * c-exp.y (typebase): Support
7700
7701 [long|long long|short] [signed|unsigned] [int|]
7702
7703 and
7704
7705 signed [long|long long|short] int
7706
7707 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7708
7709 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
7710 and vax-tdep.h.
7711 * vax-tdep.h: New file.
7712 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
7713 Make several routines static.
7714 (vax_get_saved_register): New function.
7715 (vax_gdbarch_init): New function.
7716 (_initialize_vax_tdep): Register vax_gdbarch_init.
7717 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
7718 Remove macros now under the control of gdbarch.
7719
7720 2002-04-22 Michael Snyder <msnyder@redhat.com>
7721
7722 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
7723 Some whitespace and coding standards tweaks.
7724
7725 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7726
7727 * vax-tdep.c: Include regcache.h.
7728 (vax_call_dummy_words): New.
7729 (sizeof_vax_call_dummy_words): New.
7730 (vax_fix_call_dummy): New function.
7731 (vax_saved_pc_after_call): Ditto.
7732 * config/vax/tm-vax.h: Don't include regcache.h.
7733 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
7734 (CALL_DUMMY): Remove.
7735 (CALL_DUMMY_WORDS): Define.
7736 (SIZEOF_CALL_DUMMY_WORDS): Define.
7737 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
7738
7739 2002-04-18 Michael Snyder <msnyder@redhat.com>
7740
7741 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
7742
7743 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7744
7745 * vax-tdep.c (vax_frame_chain): New function.
7746 (vax_push_dummy_frame): Ditto.
7747 (vax_pop_frame): Ditto.
7748 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
7749 (FRAMELESS_FUNCTION_INVOCATION): Use
7750 generic_frameless_function_invocation_not.
7751 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
7752 (POP_FRAME): Use vax_pop_frame.
7753
7754 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7755
7756 * vax-tdep.c (vax_store_struct_return): New function.
7757 (vax_extract_return_value): Ditto.
7758 (vax_store_return_value): Ditto.
7759 (vax_extract_struct_value_address): Ditto.
7760 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
7761 vax_store_struct_return.
7762 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
7763 (STORE_RETURN_VALUE): Use vax_store_return_value.
7764 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
7765
7766 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7767
7768 * vax-tdep.c (vax_frame_saved_pc): New function.
7769 (vax_frame_args_address_correct): Ditto.
7770 (vax_frame_args_address): Ditto.
7771 (vax_frame_locals_address): Ditto.
7772 (vax_frame_num_args): Move code to be in proximity to
7773 other frame-related functions.
7774 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
7775 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
7776 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
7777 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
7778 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
7779
7780 2002-04-22 H.J. Lu (hjl@gnu.org)
7781
7782 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
7783 includedir.
7784
7785 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7786
7787 * vax-tdep.c (vax_frame_init_saved_regs): New function.
7788 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
7789 (FRAME_INIT_SAVED_REGS): New macro.
7790
7791 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7792
7793 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
7794
7795 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7796
7797 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
7798 where needed.
7799 (fetch_osf_core_registers): Likewise.
7800 (supply_gregset): Likewise.
7801
7802 2002-04-22 J. Brobecker <brobecker@gnat.com>
7803
7804 * symfile.h (get_section_index): Define.
7805 * symfile.c (get_section_index): New function.
7806 * mdebugread.c (SC_IS_SBSS): New macro.
7807 (SC_IS_BSS): Return true for the scBss storage class only, as
7808 the scSBss storage class refers to the .sbss section.
7809 (parse_partial_symbols): Discard the symbols which associated
7810 section does not exist.
7811 Make sure to use the .sbss section index for symbols which
7812 storage class is scBss, rather than using the .bss section index.
7813
7814 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7815
7816 * vax-tdep.c: Update copyright years.
7817 (vax_register_name): New function.
7818 (vax_register_byte): Ditto.
7819 (vax_register_raw_size): Ditto.
7820 (vax_register_virtual_size): Ditto.
7821 (vax_register_virtual_type): Ditto.
7822 * config/vax/tm-vax.h: Update copyright years.
7823 (REGISTER_NAMES): Remove.
7824 (REGISTER_NAME): Define.
7825 (REGISTER_BYTE): Use vax_register_byte.
7826 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
7827 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
7828 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
7829
7830 2002-04-21 Andrew Cagney <ac131313@redhat.com>
7831
7832 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
7833 declaration
7834 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
7835
7836 2002-04-21 David S. Miller <davem@redhat.com>
7837
7838 * arch-utils.c (generic_prologue_frameless_p): Kill
7839 SKIP_PROLOGUE_FRAMELESS_P code.
7840 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
7841 references.
7842 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
7843 * arc-tdep.c (arc_prologue_frameless_p): Implement.
7844 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
7845 references.
7846 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
7847 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
7848 (sparc_gdbarch_init): Pass it to
7849 set_gdbarch_prologue_frameless_p.
7850
7851 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7852
7853 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
7854 (alphabsd-nat.o): New dependency list.
7855
7856 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7857
7858 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
7859 alphafbsd-tdep.c.
7860 (alpha-linux-tdep.o): New dependency list.
7861 (alphafbsd-tdep.o): Likewise.
7862
7863 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7864
7865 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
7866 to here...
7867 * alpha-tdep.c: ...from here.
7868 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
7869
7870 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7871
7872 * config/alpha/tm-alpha.h: Move alpha_software_single_step
7873 prototype from here...
7874 * alpha-tdep.h: ...to here.
7875
7876 2002-04-21 Andrew Cagney <ac131313@redhat.com>
7877
7878 * frame.h (selected_frame_level): Document as deprecated.
7879 (frame_relative_level): Declare.
7880 * stack.c (frame_relative_level): New function.
7881 (selected_frame_level): Document as deprecated.
7882 (select_frame): Do not set the selected_frame_level.
7883
7884 * stack.c (frame_info, record_selected_frame): Update.
7885 (frame_command, current_frame_command): Update.
7886 (up_silently_base, up_command, down_silently_base): Update.
7887 (down_command): Update.
7888 * inflow.c (kill_command): Update.
7889 * tracepoint.c (finish_tfind_command): Update.
7890 * corelow.c (core_open): Update.
7891 * thread.c (info_threads_command): Update.
7892 (do_captured_thread_select): Update.
7893 * infcmd.c (finish_command): Update.
7894 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
7895
7896 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7897
7898 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
7899
7900 2002-04-21 Andrew Cagney <ac131313@redhat.com>
7901
7902 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
7903 type const.
7904
7905 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7906
7907 * alphafbsd-tdep.c: Update copyright years. Include
7908 alpha-tdep.h.
7909 (alphafbsd_use_struct_convention): Make static.
7910 (alphafbsd_init_abi): New function.
7911 (_initialize_alphafbsd_tdep): New function.
7912 * config/alpha/tm-fbsd.h: Update copyright years.
7913 (USE_STRUCT_CONVENTION): Remove.
7914
7915 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7916
7917 * alpha-tdep.c (alpha_abi_handler): New structure to describe
7918 an Alpha ABI variant.
7919 (alpha_abi_handler_list): Declare.
7920 (alpha_gdbarch_register_os_abi): New function.
7921 (alpha_gdbarch_init): Give registered ABI variant handlers a
7922 chance to tweak the gdbarch once we have set up defaults.
7923 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
7924
7925 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7926
7927 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
7928 to standard_coerce_float_to_double.
7929 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
7930
7931 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7932
7933 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
7934 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
7935 from gdbarch_tdep rather than a constant.
7936 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
7937 the default text address for all Alpha Unix ABIs.
7938 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
7939 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
7940
7941 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7942
7943 * alpha-tdep.h: New file. Includes several Alpha target constants
7944 taken from...
7945 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
7946 let gdbarch deal with.
7947 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
7948 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
7949 to dependency list.
7950 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
7951 Alpha target register names.
7952 * alphabsd-nat.c: Likewise.
7953 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
7954 Alpha target register names. Make serveral routines static.
7955 (alpha_get_saved_register): New function.
7956 (alpha_abi_names): New.
7957 (process_note_abi_tag_sections): New function.
7958 (get_elfosabi): New function.
7959 (alpha_gdbarch_init): New function.
7960 (alpha_dump_tdep): New function.
7961 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
7962
7963 2002-04-21 Andrew Cagney <ac131313@redhat.com>
7964
7965 * frame.c (find_saved_register): Delete #ifdef
7966 HAVE_REGISTER_WINDOWS code.
7967 * config/sparc/tm-sparc.h: Update comments.
7968 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
7969
7970 2002-04-21 Andrew Cagney <ac131313@redhat.com>
7971
7972 * i960-tdep.c (i960_find_saved_register): New function.
7973 (i960_get_saved_register): New function.
7974 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
7975 (i960_get_saved_register): Declare.
7976 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
7977
7978 2002-04-20 David S. Miller <davem@redhat.com>
7979
7980 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
7981
7982 2002-04-20 Andrew Cagney <ac131313@redhat.com>
7983
7984 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
7985 instead of NUM_PSEUDO_REGS.
7986
7987 2002-04-20 David S. Miller <davem@redhat.com>
7988
7989 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
7990 GDB_MULTI_ARCH_PARTIAL
7991 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
7992 define, let tm-sp64.h do it.
7993
7994 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
7995
7996 * frame.c (find_saved_register): Avoid a NULL pointer
7997 dereference and actually walk the frame list.
7998
7999 2002-04-20 Andrew Cagney <ac131313@redhat.com>
8000
8001 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
8002 sorted in most most-recent-used order. Document.
8003 * gdbarch.h, gdbarch.c: Regenerate.
8004
8005 2002-04-19 Andrew Cagney <ac131313@redhat.com>
8006
8007 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
8008 instead of ->prev.
8009 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
8010 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
8011 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
8012 instead of ->prev.
8013
8014 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
8015
8016 Fix PR gdb/471.
8017 * gdbtypes.c (init_simd_type): Rewrite using new functions.
8018 (build_builtin_type_vec128): Ditto.
8019 (append_composite_type_field): Fix calculation of type length in
8020 union case.
8021
8022 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
8023
8024 * config/djgpp/README: Update.
8025
8026 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
8027 compiler warnings.
8028
8029 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
8030
8031 * alpha-tdep.c (setup_arbitrary_frame): Rename...
8032 (alpha_setup_arbitrary_frame): ...to this.
8033 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
8034 for alpha_setup_arbitrary_frame.
8035
8036 2002-04-18 Andrew Cagney <cagney@redhat.com>
8037
8038 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
8039 * gdbarch.h, gdbarch.c: Regenerate.
8040
8041 * defs.h (breakpoint_from_pc_fn): Delete type definition.
8042 * target.h (memory_breakpoint_from_pc): Update declaration.
8043 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
8044
8045 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
8046 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
8047 * mem-break.c (memory_breakpoint_from_pc): Ditto.
8048 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
8049 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
8050 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
8051 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
8052 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
8053 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
8054 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
8055 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
8056 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
8057
8058 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
8059 const pointer.
8060 * monitor.c (monitor_insert_breakpoint): Ditto.
8061 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
8062
8063 * config/mcore/tm-mcore.h: Update copyright.
8064 * mem-break.c: Ditto.
8065 * xstormy16-tdep.c: Ditto.
8066
8067 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
8068
8069 * p-exp.y: Add precedence rule for '^' token.
8070 This removes the shift/reduce conflicts.
8071 Remove the comment concerning these shift/reduce conflicts.
8072
8073 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
8074
8075 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
8076 (registers_powerpc_nofp): New register set for processors
8077 without floating point unit.
8078
8079 2002-04-18 David S. Miller <davem@redhat.com>
8080
8081 * MAINTAINERS: Add myself to write-after-approval.
8082
8083 2002-04-17 Michael Snyder <msnyder@redhat.com>
8084
8085 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
8086
8087 2002-04-17 Andrew Cagney <ac131313@redhat.com>
8088
8089 * rs6000-tdep.c (frame_initial_stack_address): Use
8090 frame_register_read to read the alloca_reg.
8091
8092 2002-04-17 Andrew Cagney <ac131313@redhat.com>
8093
8094 * frame.c (find_saved_register): Find saved registers in the next
8095 not prev frame.
8096 Fix PR gdb/365.
8097
8098 2002-04-17 Andrew Cagney <ac131313@redhat.com>
8099
8100 * gdbarch.sh (LANG): Set to ``c''.
8101
8102 2002-04-15 Andrew Cagney <ac131313@redhat.com>
8103
8104 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
8105
8106 2002-04-15 Andrew Cagney <ac131313@redhat.com>
8107
8108 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
8109 Update copyright.
8110
8111 * hpread.c (hpread_get_lntt): Add declaration.
8112 Also fix PR gdb/391.
8113
8114 2002-04-14 Andrew Cagney <ac131313@redhat.com>
8115
8116 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
8117 * aclocal.m4, configure: Re-generate.
8118 Fix PR gdb/391.
8119
8120 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
8121
8122 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
8123 instead of tm_print_insn.
8124
8125 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
8126
8127 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
8128
8129 2002-04-14 Andrew Cagney <ac131313@redhat.com>
8130
8131 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
8132 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
8133 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
8134
8135 2002-04-12 Don Howard <dhoward@redhat.com>
8136
8137 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
8138 max_user_call_depth.
8139 (init_cmd_lists): Initialize the new value;
8140 * cli/cli-script.c (execute_user_command): Limit the call depth of
8141 user defined commands. This avoids a core-dump when user commands
8142 are infinitly recursive.
8143
8144 2002-04-12 Kevin Buettner <kevinb@redhat.com>
8145
8146 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
8147 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
8148 from tdep struct instead of DEFAULT_LR_SAVE.
8149 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
8150 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
8151 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
8152
8153 2002-04-12 Michael Snyder <msnyder@redhat.com>
8154
8155 * Remote.c: Spelling fix.
8156 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
8157 If no symbol found for "sbrk", try "_sbrk".
8158 (make_output_phdrs): Use bfd_section_name.
8159 (gcore_copy_callback): Use bfd_section_name.
8160 * eval.c: Indentation fix-ups.
8161 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
8162 in case it gets applied to an address that is already
8163 in the instruction space.
8164 * cli/cli-decode.c (help_list): Allow long lines to wrap.
8165 * symfile.c: Fix indentation, long lines.
8166 * source.c: White space fix-up.
8167
8168 2002-04-12 Andrew Cagney <cagney@redhat.com>
8169
8170 * defs.h (read_relative_register_raw_bytes): Delete declaration.
8171 * frame.c (frame_register_read): New function. Return non-zero on
8172 success.
8173 (read_relative_register_raw_bytes_for_frame): Delete.
8174 (read_relative_register_raw_bytes): Delete.
8175 * frame.h (frame_register_read): Declare.
8176 * d30v-tdep.c: Update Copyright. Use frame_register_read.
8177 * sh-tdep.c: Ditto.
8178 * infcmd.c (do_registers_info): Ditto.
8179 * hppa-tdep.c: Ditto.
8180 * rs6000-tdep.c: Ditto.
8181 * h8500-tdep.c: Ditto.
8182 * mips-tdep.c: Ditto.
8183 * h8300-tdep.c: Ditto.
8184 * z8k-tdep.c: Ditto.
8185
8186 2002-04-12 Kevin Buettner <kevinb@redhat.com>
8187
8188 From Jimi X <jimix@watson.ibm.com>:
8189 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
8190 64-bit SysV ABI.
8191
8192 2002-04-12 Kevin Buettner <kevinb@redhat.com>
8193
8194 From Jimi X <jimix@watson.ibm.com>:
8195 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
8196 bfd info.
8197
8198 2002-04-12 Kevin Buettner <kevinb@redhat.com>
8199
8200 From Jimi X <jimix@watson.ibm.com>:
8201 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
8202 register sets for these processor variants.
8203
8204 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
8205
8206 * regformats/reg-ppc.dat: Support FPSCR.
8207
8208 2002-04-11 Kevin Buettner <kevinb@redhat.com>
8209
8210 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
8211 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
8212 Add fpscr as an invalid/unfetchable register.
8213 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
8214 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
8215 (fill_fpregset): Add support for register fpscr.
8216 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
8217 (fill_gregset): Account for the fact that register ``mq'' might
8218 not exist.
8219 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
8220 (registers_power): Add fpscr to register set at slot 71.
8221 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
8222 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
8223
8224 2002-04-11 Michael Snyder <msnyder@redhat.com>
8225
8226 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
8227 * configure: Regenerate.
8228 * config.in: Regenerate.
8229 * acconfig.h: Add define for _SYSCALL32.
8230 * core-sol2.c: Remove #define _SYSCALL32.
8231 * solib-legacy.c: Remove #define _SYSCALL32.
8232
8233 2002-04-10 Andrew Cagney <ac131313@redhat.com>
8234
8235 * stack.c (select_frame): Cleanup internal error message, do not
8236 use %p.
8237
8238 2002-04-10 Andrew Cagney <ac131313@redhat.com>
8239
8240 * stack.c (select_frame): Check that selected_frame and the
8241 specified level are as expected.
8242 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
8243 Update copyright.
8244 * frame.h (struct frame_info): Add field `level'. Update
8245 copyright.
8246 Work-in-progress PR gdb/464.
8247
8248 2002-04-10 Andrew Cagney <ac131313@redhat.com>
8249
8250 * maint.c (maint_print_section_info): Rename print_section_info.
8251 (print_bfd_section_info, print_objfile_section_info): Update.
8252 * inferior.h (struct gdbarch): Add opaque declaration.
8253 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
8254 * gdbarch.h: Regenerate.
8255
8256 2002-04-10 Michal Ludvig <mludvig@suse.cz>
8257
8258 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
8259 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
8260 (kernel_u_size): Added.
8261 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
8262 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
8263
8264 2002-04-04 Jim Ingham <jingham@apple.com>
8265
8266 * valarith.c (find_size_for_pointer_math): New function, either returns
8267 the size for a pointer's target, returns 1 for void *, or errors for
8268 incomplete types.
8269 (value_add, value_sub): use find_size_for_pointer_math.
8270
8271 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
8272
8273 * linux-low.c (linux_look_up_symbols): New hook.
8274 (linux_target_ops): Add linux_look_up_symbols.
8275 * remote-utils.c (decode_address): New function.
8276 (look_up_one_symbol): New function.
8277 * server.c (handle_query): Call target look_up_symbols hook.
8278 * server.h (look_up_one_symbol): Add prototype.
8279 * target.h (struct target_ops): Add look_up_symbols hook.
8280
8281 2002-04-09 Andrew Cagney <ac131313@redhat.com>
8282
8283 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
8284 override FP_REGNUM with frame->fp. Update copyright.
8285 * parse.c (num_std_regs, std_regs): Delete.
8286 (target_map_name_to_register): Do not search std_regs. Update
8287 function description.
8288 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
8289 declarations. Update copyright.
8290 Fix PR gdb/251.
8291
8292 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
8293
8294 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
8295 after the last symbol in a block.
8296
8297 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
8298
8299 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
8300 is non zero as a found symbol.
8301
8302 2002-04-08 Andrew Cagney <ac131313@redhat.com>
8303
8304 * findvar.c: Include "builtin-regs.h".
8305 (value_of_register): Call value_of_builtin_reg when applicable.
8306 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
8307 (target_map_name_to_register): Call
8308 builtin_reg_map_name_to_regnum.
8309 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
8310 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
8311 (builtin_regs_h): Define.
8312 (builtin-regs.o): New target.
8313 (findvar.o): Add $(builtin_regs_h).
8314 * builtin-regs.c, builtin-regs.h: New files.
8315 * std-regs.c: New file.
8316 Partial fix for PR gdb/251.
8317
8318 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8319
8320 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
8321 it's no longer required.
8322
8323 2002-04-08 Andrew Cagney <ac131313@redhat.com>
8324
8325 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
8326
8327 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8328
8329 From Jimi X <jimix@watson.ibm.com>:
8330 * rs6000-tdep.c (rs6000_software_single_step): Use
8331 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
8332 and size. Use target_insert_breakpoint() and
8333 target_remove_breakpoint() to insert and remove breakpoints
8334 instead of explicit memory reads and writes.
8335
8336 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8337
8338 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
8339 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
8340 ELF_OBJECT_FORMAT ifdef.
8341
8342 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8343
8344 From Jimi X <jimix@watson.ibm.com>:
8345 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
8346
8347 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8348
8349 From Jimi X <jimix@watson.ibm.com>:
8350 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
8351 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
8352
8353 2002-04-07 Mark Kettenis <kettenis@gnu.org>
8354
8355 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
8356 s/asprintf/xasprintf/.
8357 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
8358
8359 2002-04-07 Andrew Cagney <ac131313@redhat.com>
8360
8361 I believe Jeff Law denies responsability for this one:
8362 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
8363 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
8364 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
8365 Work-around for PR gdb/366.
8366
8367 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
8368
8369 * remote-e7000.c (write_small, e7000_read_inferior_memory,
8370 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
8371 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
8372
8373 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
8374
8375 * sh-tdep.c (sh_fp_frame_init_saved_regs,
8376 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
8377 information.
8378
8379 2002-04-07 Andrew Cagney <ac131313@redhat.com>
8380
8381 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
8382 maintainer.
8383
8384 2002-04-07 Andrew Cagney <ac131313@redhat.com>
8385
8386 * README (Reporting Bugs in GDB): Document the bug web page as the
8387 prefered way of submitting bugs.
8388 Fix PR gdb/402.
8389
8390 2002-04-06 Andrew Cagney <ac131313@redhat.com>
8391
8392 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
8393 -1. Update comment.
8394 * gdbarch.h, gdbarch.c: Re-generate.
8395
8396 2002-04-07 Andreas Schwab <schwab@suse.de>
8397
8398 * m68klinux-nat.c (fill_fpregset): Properly pass address of
8399 buffer to regcache_collect.
8400
8401 2002-04-06 Andrew Cagney <ac131313@redhat.com>
8402
8403 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
8404 * gdbarch.c, gdbarch.h: Re-generate.
8405
8406 2002-04-06 Andrew Cagney <ac131313@redhat.com>
8407
8408 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
8409 declaration. Fix -Werror.
8410
8411 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
8412
8413 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
8414 * gdbarch.c: Regenerate.
8415
8416 2002-04-05 Michael Snyder <msnyder@redhat.com>
8417
8418 * breakpoint.c (clear_command): Rewrite middle section to
8419 combine two loops with identical control conditions.
8420 Add a cleanup to eliminate a memory leak.
8421 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
8422
8423 2002-04-05 H.J. Lu (hjl@gnu.org)
8424
8425 * solib-svr4.c (bkpt_names): Add "__start".
8426
8427 2002-04-04 Andrew Cagney <ac131313@redhat.com>
8428
8429 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
8430 as test for 64 bit target.
8431
8432 2002-04-05 Andrew Cagney <ac131313@redhat.com>
8433
8434 * h8500-tdep.c (h8500_write_fp): Delete function.
8435 * dwarf2cfi.c (cfi_write_fp): Document as not used.
8436 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
8437 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
8438 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
8439 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
8440 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
8441 (s390_write_fp):
8442 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
8443 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
8444 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
8445 (d10v_write_fp): Delete function.
8446 * inferior.h (write_fp, generic_target_write_fp): Delete
8447 declarations.
8448 * regcache.c (generic_target_write_fp): Delete function.
8449 (write_fp): Delete function.
8450 * gdbarch.sh (TARGET_WRITE_FP): Delete.
8451 * gdbarch.h, gdbarch.c: Regenerate.
8452 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
8453 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
8454 (sparc64_write_fp): Delete declaration.
8455 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
8456 (h8500_write_fp): Delete declaration.
8457
8458 2002-04-04 Andrew Cagney <ac131313@redhat.com>
8459
8460 * sparc-tdep.c (sparc64_write_fp): Delete.
8461 (sparc_push_dummy_frame): Replace write_fp call with code to store
8462 the FP directly.
8463 (sparc_gdbarch_init): Do not initialize write_fp.
8464
8465 2002-04-05 Kevin Buettner <kevinb@redhat.com>
8466
8467 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
8468 clause.
8469
8470 2002-03-29 Jim Blandy <jimb@redhat.com>
8471
8472 * stack.c (get_selected_block): Add new argument `addr_in_block',
8473 used to return the exact code address we used to select the block,
8474 not just the block.
8475 * blockframe.c (get_frame_block, get_current_block): Same.
8476 * frame.h (get_frame_block, get_current_block,
8477 get_selected_block): Update declarations.
8478 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
8479 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
8480
8481 2002-04-05 Michael Snyder <msnyder@redhat.com>
8482
8483 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
8484 warning message.
8485
8486 2002-04-05 J. Brobecker <brobecker@gnat.com>
8487
8488 * utils.c (xfullpath): New function.
8489 * defs.h (xfullpath): Add declaration.
8490 * source.c (openp): Use xfullpath in place of gdb_realpath to
8491 avoid resolving the basename part of filenames when the
8492 associated file is a symbolic link. This fixes a potential
8493 inconsistency between the filenames known to GDB and the
8494 filenames it prints in the annotations.
8495 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
8496 to be able to match a filename with either the real filename, or
8497 the name of any symbolic link to this file.
8498 (lookup_partial_symtab): Ditto.
8499
8500 2002-04-04 Michael Snyder <msnyder@redhat.com>
8501
8502 * breakpoint.c: Add support for hardware breakpoints in overlays.
8503 (overlay_events_enabled): New state variable.
8504 (insert_breakpoints): Use overlay_events_enabled to decide
8505 whether to attempt to set a breakpoint at the overlay load addr.
8506 Handle bp_hardware_breakpoint as well as bp_breakpoint.
8507 (remove_breakpoint): Use overlay_events_enabled to decide
8508 whether breakpoints need to be removed from overlay load addr.
8509 Handle bp_hardware_breakpoint as well as bp_breakpoint.
8510 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
8511 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
8512 disable_overlay_breakpoints): Update overlay_events_enabled.
8513
8514 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
8515
8516 * dwarf2read.c (struct function_range): New.
8517 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
8518 (check_cu_functions): New.
8519 (read_file_scope): Initialize global function lists.
8520 Call dwarf_decode_line after processing children.
8521 (read_func_scope): Add to global function list.
8522 (dwarf_decode_lines): Call check_cu_functions everywhere
8523 record_line is called. Call record_line with a linenumber
8524 of 0 to mark sequence ends.
8525
8526 2002-04-04 Michal Ludvig <mludvig@suse.cz>
8527
8528 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
8529 change sync with glibc.
8530
8531 2002-04-03 Jim Blandy <jimb@redhat.com>
8532
8533 * configure.in: Call AC_C_INLINE.
8534 * configure: Regenerated.
8535
8536 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
8537
8538 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
8539 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
8540
8541 2002-03-31 Mark Kettenis <kettenis@gnu.org>
8542
8543 * NEWS: Mention gcore support on FreeBSD/i386.
8544
8545 * fbsd-proc.c: New file.
8546 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
8547 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
8548
8549 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
8550 while statement.
8551
8552 2002-03-29 Jim Blandy <jimb@redhat.com>
8553
8554 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
8555 unescaped newlines in string literals, but newer ones don't. So
8556 escape them.
8557
8558 2002-03-26 Michael Snyder <msnyder@redhat.com>
8559 Andrew Cagney <cagney@redhat.com>
8560
8561 * cli/cli-dump.c: New file. Dump memory to file,
8562 restore file to memory.
8563 * cli/cli-dump.h: New file.
8564 * Makefile.in: Add rules, dependencies for cli-dump.o.
8565 * NEWS: Mention new commands.
8566
8567 2002-03-28 Michael Snyder <msnyder@redhat.com>
8568
8569 * symfile.c (symbol_file_add): Move test for null symbols to later.
8570
8571 2002-03-27 Andrew Cagney <ac131313@redhat.com>
8572
8573 From veksler at il.ibm.com:
8574 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
8575 the xstrduped original path.
8576 Fix PR gdb/417.
8577
8578 2002-03-27 Michael Snyder <msnyder@redhat.com>
8579
8580 * breakpoint.c (_initialize_breakpoint): Clean up help string.
8581 * infcmd.c (_initialize_infcmd): Ditto.
8582 * language.c (_initialize_language): Ditto.
8583 * symfile.c (_initialize_symfile): Ditto.
8584 * top.c (_init_main): Ditto.
8585 * cli/cli-cmds.c (init_cli_cmds): Ditto.
8586
8587 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
8588
8589 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
8590 vector registers handling.
8591 (skip_prologue): Handle new AltiVec instructions. Fill in new
8592 fields of frame data.
8593 (frame_get_saved_regs): Fill in information for AltiVec registers.
8594
8595 2002-03-27 Jim Blandy <jimb@redhat.com>
8596
8597 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
8598 a function; leave this macro here to invoke that function.
8599 (symbol_init_mangled_name): Declaration for that function.
8600 * symtab.c (symbol_init_mangled_name): New function.
8601
8602 2002-03-27 Andrew Cagney <ac131313@redhat.com>
8603
8604 * valarith.c: Replace strerror with safe_strerror.
8605 * tracepoint.c: Ditto.
8606 * lin-lwp.c: Ditto.
8607 * go32-nat.c: Ditto.
8608 * inflow.c: Ditto.
8609 * gnu-nat.c: Ditto.
8610
8611 2002-03-27 Andreas Schwab <schwab@suse.de>
8612
8613 * event-top.c (command_line_handler): Remove useless if.
8614
8615 2002-03-27 Andreas Jaeger <aj@suse.de>
8616
8617 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
8618 comment.
8619
8620 2002-03-27 Michal Ludvig <mludvig@suse.cz>
8621
8622 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
8623 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
8624 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
8625 (x86_64_linux_dr_get_status, supply_gregset),
8626 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
8627 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
8628 (x86_64_register_info_table): Add.
8629 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
8630 (x86_64_register_raw_size, x86_64_register_virtual_type),
8631 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
8632 general x86_64_register_info_table.
8633 (i386_gdbarch_init): gdbarch_register_bytes is now set
8634 dynamicaly during initialization.
8635 * regformats/reg-x86-64.dat: Synced with changes to registers above.
8636 * gdbserver/linux-x86-64-low.c: Ditto.
8637
8638 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
8639
8640 * gdbserver/server.c (main): Call target_signal_to_host_p
8641 and target_signal_to_host on signals received from the remote.
8642 * gdbserver/remote-utils.c (prepare_resume_reply): Call
8643 target_signal_from_host on signals sent to the remote.
8644 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
8645 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
8646
8647 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
8648
8649 * signals/signals.c: Include "server.h" in gdbserver build.
8650 (target_signal_from_name): Don't use STREQ.
8651 (_initialize_signals): Likewise. Don't include function in
8652 gdbserver build.
8653
8654 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
8655
8656 * signals.c: Moved to...
8657 * signals/signals.c: Here.
8658 * Makefile (signals.o): Update.
8659
8660 2002-03-26 Jeff Law (law@redhat.com)
8661
8662 * somread.c (som_symtab_read): Remove some commented out code and
8663 updated related comments. Do not set the minimal symbol table to
8664 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
8665 in a dynamic executable.
8666 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
8667 where we are unable to find the minimal symbol for the given
8668 PC value.
8669
8670 2002-03-25 Jeff Law (law@redhat.com)
8671
8672 * linux-proc.c (read_mapping): Scan up to end of line for filename.
8673
8674 2002-03-25 Michal Ludvig <mludvig@suse.cz>
8675
8676 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
8677
8678 2002-03-23 Andrew Cagney <ac131313@redhat.com>
8679
8680 * command.h: Update copyright.
8681 (struct cmd_list_element): Replace definition with opaque
8682 declaration.
8683 (enum cmd_types): Document that it will eventually be moved to
8684 cli/cli-decode.h
8685 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
8686 (MALLOCED_REPLACEMENT): Delete macro.
8687 * Makefile.in (cli_decode_h): Add $(command_h).
8688 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
8689 * top.c: Include "cli/cli-decode.h".
8690 * completer.c: Include "cli/cli-decode.h".
8691 * maint.c: Include "cli/cli-decode.h".
8692 * cli/cli-decode.h: Include "command.h".
8693 (enum command_class): Delete.
8694 (enum cmd_types): Comment out.
8695 (enum cmd_auto_boolean): Delete.
8696 (enum var_types): Delete.
8697
8698 2002-03-23 Andrew Cagney <ac131313@redhat.com>
8699
8700 * cli/cli-decode.c: Include "gdb_assert.h".
8701 (add_set_or_show_cmd): New static function.
8702 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
8703 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
8704 all fields, such as func, from the set command.
8705
8706 2002-03-23 Andrew Cagney <ac131313@redhat.com>
8707
8708 * MAINTAINERS (sh-elf): Change warning flag to -w.
8709
8710 2002-03-23 Andrew Cagney <cagney@redhat.com>
8711
8712 * defs.h (error): Add printf format attribute.
8713 * thread-db.c (thread_from_lwp): Fix error format string.
8714 * stack.c (parse_frame_specification): Ditto.
8715 * cli/cli-decode.c (undef_cmd_error): Ditto.
8716 * scm-lang.c (scm_lookup_name): Ditto.
8717 * tracepoint.c (trace_error): Ditto.
8718 * remote-utils.c (usage): Ditto.
8719 * remote.c (compare_sections_command): Ditto.
8720 Fix PR gdb/328.
8721
8722 2002-03-22 Andrew Cagney <ac131313@redhat.com>
8723
8724 * gdbtypes.c (append_composite_type_field): New function.
8725 (init_composite_type): New function.
8726 * gdbtypes.h (append_composite_type_field): Declare.
8727 (init_composite_type): Ditto.
8728
8729 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
8730
8731 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
8732 function.
8733 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
8734 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
8735 structure returning convention for SYSV ABI case, but not
8736 for GNU/Linux, FreeBSD, or NetBSD.
8737
8738 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
8739
8740 * symtab.h (lookup_block_symbol): Add mangled_name argument
8741 to prototype.
8742
8743 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
8744 with new mangled_name argument.
8745 * linespec.c (decode_line_1): Likewise.
8746 * valops (value_of_this): Likewise.
8747 * symtab.c (lookup_transparent_type): Likewise.
8748 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
8749 (lookup_symbol): If we are given a mangled name, pass it down
8750 to lookup_symbol_aux.
8751 (lookup_block_symbol): If we are given a mangled name to check
8752 against, only return symbols which match it.
8753
8754 2002-03-22 Christopher Faylor <cgf@redhat.com>
8755
8756 * win32-nat.c (child_create_inferior): Check for proper shell to use
8757 here, in case the user changes it on the fly.
8758 (_initialize_inftarg): Remove shell path considerations.
8759
8760 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
8761
8762 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
8763 for gdbarch_max_register_raw_size and max_register_virtual_size.
8764 Adjust copyright year.
8765
8766 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
8767
8768 * dbxread.c (process_one_symbol): Extend the first N_SLINE
8769 in a function to cover the entire beginning of the function
8770 as well if it does not already.
8771
8772 2002-03-21 Tom Rix <trix@redhat.com>
8773
8774 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
8775 (rs6000_ptrace64): Renamed from ptrace64.
8776
8777 2002-03-20 Martin M. Hunt <hunt@redhat.com>
8778
8779 * gdbserver/remote-utils.c (remote_open): Don't call
8780 getprotobyname, we're all using TCP here so just use
8781 IPPROTO_TCP.
8782 * gdbserver/gdbreplay.c (remote_open): Ditto.
8783
8784 2002-03-20 Martin M. Hunt <hunt@redhat.com>
8785
8786 * regcache.c (_initialize_regcache): No need to call
8787 build_regcache() at this time; it gets called whenever
8788 the gdbarch changes.
8789
8790 2002-03-20 David O'Brien <obrien@FreeBSD.org>
8791
8792 * sparc-nat.c: Include sys/param.h where possible.
8793
8794 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
8795
8796 Fix PR gdb/422.
8797 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
8798 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
8799 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
8800 complex types.
8801 * stabsread.c (rs6000_builtin_type): Likewise.
8802 (read_sun_floating_type): Likewise.
8803
8804 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8805
8806 * stabsread.c (read_member_functions): Remove skip code for duplicate
8807 constructor/destructor methods. Use standard parsing for these
8808 methods and just do not chain them to the list of methods after
8809 parsing.
8810
8811 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
8812
8813 * coffread.c: Remove redundant static declarations. Replace
8814 occurrences of `PTR' with `void *'.
8815 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
8816 * top.h (quit_cover): Likewise.
8817 * defs.h (catch_errors): Likewise.
8818
8819 2002-03-18 Andrew Cagney <ac131313@redhat.com>
8820
8821 * defs.h (XMALLOC): Define.
8822 * gdb-events.sh (XMALLOC): Delete macro.
8823 * gdb-events.c, gdb-events.h: Regenerate.
8824 * gdbarch.sh (XMALLOC): Delete macro.
8825 * gdbarch.c: Regenerate.
8826 * serial.c (XMALLOC): Delete macro.
8827 * ui-file.c (XMALLOC): Ditto.
8828 * ser-unix.h (XMALLOC): Ditto.
8829 * sh-tdep.c (XMALLOC): Ditto.
8830 * ui-out.c (XMALLOC): Ditto.
8831 * utils.c (XMALLOC): Ditto.
8832 * i386-tdep.c (XMALLOC): Ditto.
8833 * gdb-events.c (XMALLOC): Ditto.
8834 * d10v-tdep.c (XMALLOC): Ditto.
8835 * cli-out.c (XMALLOC): Ditto.
8836
8837 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
8838 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
8839 * ui-file.c, ui-out.c: Ditto.
8840
8841 2002-03-18 Andrew Cagney <ac131313@redhat.com>
8842
8843 * command.h (struct cmd_list_element): Add field context.
8844 (set_cmd_context, get_cmd_context): Declare.
8845 * cli/cli-decode.h: Ditto.
8846 * cli/cli-decode.c (get_cmd_context): New function.
8847 (set_cmd_context): New function.
8848 (add_cmd): Initialize context.
8849 Part of fixing PR gdb/145 and PR gdb/146.
8850
8851 2002-03-17 Andrew Cagney <ac131313@redhat.com>
8852
8853 * cli/cli-decode.c (cmd_type): New function.
8854 * command.h (cmd_type): Declare.
8855 * infrun.c (set_schedlock_func): Call function cmd_type.
8856 * kod.c (kod_set_os): Call cmd_type.
8857 * cris-tdep.c (cris_version_update): Use function cmd_type.
8858 (cris_mode_update, cris_abi_update): Ditto.
8859
8860 * command.h: (execute_cmd_post_hook): Declare.
8861 (execute_cmd_pre_hook): Declare.
8862 * cli/cli-script.c (clear_hook_in_cleanup): New function.
8863 (execute_cmd_post_hook, execute_cmd_pre_hook): New
8864 functions. Execute pre/post hook while ensuring that afterwords
8865 hook_in is cleared.
8866 * top.c (execute_command): Use execute_cmd_post_hook, and
8867 execute_cmd_pre_hook to execute pre/post commands.
8868 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
8869 hook_stop_stub.
8870 (hook_stop_stub): Call execute_cmd_pre_hook.
8871
8872 2002-03-17 Andrew Cagney <ac131313@redhat.com>
8873
8874 * kod.c (kod_set_os): Revert previous change. Is called by ``info
8875 set'' and this leads to a core dump. Move xstrdup of
8876 operating_system to after check that it is not NULL.
8877
8878 2002-03-17 Andrew Cagney <ac131313@redhat.com>
8879
8880 * kod.c (kod_set_os): Remove unnecessary check that
8881 ``command->type'' is set_cmd.
8882
8883 * valprint.c (set_input_radix): Use input_radix.
8884 (set_output_radix): Use output_radix.
8885 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
8886 isn't reverted.
8887
8888 2002-03-16 Andrew Cagney <ac131313@redhat.com>
8889
8890 * value.h (struct value): Delete field ``substring_addr''. Change
8891 aligner fields to force_doublest_align, force_longest_align,
8892 force_core_addr_align and force_pointer_aligh.
8893
8894 * value.h (struct value): Fix typo in above change.
8895
8896 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8897
8898 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
8899 to fix internal_error from ``maintenance print architecture''.
8900
8901 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8902
8903 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
8904 for gcc versions after gcc-2.8.1.
8905
8906 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8907
8908 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
8909 for method resolution. Restore adjustment of ``this'' pointer after
8910 calling value_struct_elt, which was accidentally removed during the
8911 HP merge.
8912
8913 2002-03-15 Andrew Cagney <ac131313@redhat.com>
8914
8915 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
8916 value_of_register.
8917 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
8918 get_saved_register.
8919 * value.h (value_of_register): Update.
8920
8921 2002-03-14 Richard Henderson <rth@redhat.com>
8922
8923 * configure.in: Detect declaration for canonicalize_file_name.
8924 * utils.c (canonicalize_file_name): Declare, if needed.
8925 (gdb_realpath): Prefer realpath if available and usable.
8926 * config.in, configure: Rebuild.
8927
8928 2002-03-14 Richard Henderson <rth@redhat.com>
8929
8930 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
8931 a constant array bound.
8932
8933 * MAINTAINERS: Add myself to write-after-approval.
8934
8935 2002-03-14 Michael Snyder <msnyder@redhat.com>
8936
8937 * symfile.c (syms_from_objfile): Return immediately if no syms.
8938 (symbol_file_add): Return immediately if no syms.
8939 (find_sym_fns): Return immediately if no syms.
8940
8941 2002-03-13 Michal Ludvig <mludvig@suse.cz>
8942
8943 * gdbserver/remote-util.c (remote_open): Print remote-side's
8944 IP address when remote debugging over the network.
8945
8946 2002-03-12 David O'Brien <obrien@FreeBSD.org>
8947
8948 * config/sparc/fbsd.mh: Fix copyright.
8949 * config/sparc/fbsd.mt: Likewise.
8950
8951 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
8952
8953 * MAINTAINERS: Fix typo in name of gdb warnings option.
8954 (x86-64): Fix formating so that this can be parsed by awk.
8955
8956 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
8957
8958 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
8959 * defs.h: Include "gdb/signals.h".
8960 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
8961
8962 2002-03-10 Michal Ludvig <mludvig@suse.cz>
8963
8964 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
8965 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
8966 from x86-64-tdep.h
8967
8968 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
8969 Don Howard <dhoward@redhat.com>
8970
8971 * mips-tdep.c (ST0_FR): Define.
8972 (mips2_fp_compat): New function, temporarily disabled.
8973 (mips_read_fp_register_single): New function.
8974 (mips_read_fp_register_double): New function.
8975 (mips_print_register): Use them.
8976 (do_fp_register_row): Likewise.
8977
8978 2002-03-09 Andrew Cagney <ac131313@redhat.com>
8979
8980 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
8981 approval''.
8982
8983 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8984
8985 * stabsread.c (read_member_functions): Fix is_stub test for
8986 static member functions, improve comment.
8987
8988 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
8989
8990 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
8991 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
8992 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
8993 commands that set boolean values.
8994 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
8995 (arm_rdi_resume): Always initialize PC.
8996 (arm_rdi_open): Don't use rslt as a boolean.
8997 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
8998 (arm_rdi_fetch_registers, arm_rdi_store_registers)
8999 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
9000 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
9001
9002 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
9003
9004 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
9005 * configure: Rebuilt.
9006
9007 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9008
9009 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
9010 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
9011
9012 2002-03-06 Andrew Cagney <ac131313@redhat.com>
9013
9014 * cli/cli-decode.c (set_cmd_completer): New function.
9015 * command.h (set_cmd_completer): Declare.
9016 * cli/cli-decode.h (set_cmd_completer): Ditto.
9017
9018 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
9019 * cli/cli-cmds.c (init_cli_cmds): Ditto.
9020 * win32-nat.c (_initialize_inftarg): Ditto.
9021 * remote-rdi.c (_initialize_remote_rdi): Ditto.
9022 * proc-api.c (_initialize_proc_api): Ditto.
9023 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
9024 * source.c (_initialize_source): Ditto.
9025 * exec.c (_initialize_exec): Ditto.
9026 * solib.c (_initialize_solib): Ditto.
9027 * top.c (init_main): Ditto.
9028 * tracepoint.c (_initialize_tracepoint): Ditto.
9029 * symfile.c (_initialize_symfile): Ditto.
9030 * printcmd.c (_initialize_printcmd): Ditto.
9031 * infcmd.c (_initialize_infcmd): Ditto.
9032 * corefile.c (_initialize_core): Ditto.
9033
9034 2002-03-05 Andrew Cagney <ac131313@redhat.com>
9035
9036 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
9037
9038 2002-03-05 Andrew Cagney <ac131313@redhat.com>
9039
9040 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
9041
9042 2002-03-05 Andrew Cagney <ac131313@redhat.com>
9043
9044 * NEWS: Update headings, 5.2 has branched.
9045
9046 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
9047
9048 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
9049 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
9050 (register_addr, REGISTER_RAW_SIZE): Likewise.
9051 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
9052 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
9053
9054 2002-03-03 Michal Ludvig <mludvig@suse.cz>
9055
9056 * MAINTAINERS (x86-64): Add myself.
9057 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
9058 changed value_ptr -> struct value *
9059
9060 2002-03-01 David O'Brien <obrien@FreeBSD.org>
9061
9062 * configure.host (sparc64-*-freebsd): Add.
9063 * configure.tgt: Likewise.
9064 * config/sparc/fbsd.mh: New file.
9065 * config/sparc/fbsd.mt: Likewise.
9066 * config/sparc/nm-fbsd.h: Likewise.
9067 * config/sparc/tm-fbsd.h: Likewise.
9068
9069 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
9070
9071 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
9072 regformats/reg-s390x.dat.
9073
9074 2002-03-01 Andrew Cagney <ac131313@redhat.com>
9075
9076 * utils.c: Add FIXME explaining true/false problem.
9077
9078 2002-02-28 Andrew Cagney <ac131313@redhat.com>
9079
9080 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
9081
9082 2002-02-28 Michael Chastain <mec@shout.net>
9083
9084 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
9085
9086 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
9087
9088 * gdbserver/linux-s390-low.c: New file.
9089 * regformats/reg-s390.dat: New file.
9090 * regformats/reg-s390x.dat: New file.
9091 * gdbserver/configure.srv: Add S/390.
9092 * gdbserver/Makefile.in: Add S/390.
9093 * configure.tgt: Enable gdbserver for S/390.
9094
9095 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
9096
9097 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
9098 first line of the doc string for "info dos", except at the end of
9099 the sentence, since the short help stops at the first period.
9100
9101 2002-02-28 Jason Merrill <jason@redhat.com>
9102
9103 * dwarf2read.c (dwarf_cfi_name): Add new codes.
9104
9105 2002-02-27 Fred Fish <fnf@redhat.com>
9106
9107 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
9108 comment (dumy -> dummy).
9109
9110 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9111
9112 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
9113
9114 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
9115
9116 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
9117
9118 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
9119
9120 * gdbserver/acconfig.h: New file.
9121 * gdbserver/i387-fp.c: New file.
9122 * gdbserver/i387-fp.h: New file.
9123 * gdbserver/linux-x86-64.c: New file.
9124 * regformats/reg-x86-64.dat: New file.
9125 * configure.tgt: Add x86_64-*-linux* gdbserver support.
9126 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
9127 * gdbserver/configure.in: Add support for regsets.
9128 * gdbserver/config.in: Regenerate.
9129 * gdbserver/configure: Regenerate.
9130 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
9131 * gdbserver/linux-low.h: New file.
9132 * gdbserver/linux-low.c: Include "linux-low.h". Add support
9133 for regsets.
9134 * gdbserver/linux-arm-low.c: Include "linux-low.h".
9135 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
9136 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
9137 * gdbserver/linux-mips-low.c: Include "linux-low.h".
9138 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
9139 * gdbserver/linux-sh-low.c: Include "linux-low.h".
9140 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
9141 "i387-fp.h". Add PTRACE_GETREGS and friends.
9142 * gdbserver/regcache.c (supply_register): New function.
9143 (supply_register_by_name): New function.
9144 (collect_register): New function.
9145 (collect_register_by_name): New function.
9146
9147 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
9148
9149 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
9150 (config.status): Add configure.srv dependency.
9151 (server_h): Add config.h dependency.
9152
9153 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
9154
9155 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
9156 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
9157 * gdbserver/configure.srv: Change i386-*-linux* to use
9158 reg-i386-linux.o.
9159
9160 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9161
9162 * x86-64-tdep.c: Re-indent. Update copyright date.
9163
9164 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9165
9166 From Michal Ludvig <mludvig@suse.cz>:
9167 * x86-64-tdep.c (value.h): Delete.
9168 (gdb_assert.h): Include.
9169 (x86_64_register_convert_to_virtual,
9170 x86_64_register_convert_to_raw ): Add check which lets only
9171 floating-point values to be converted.
9172 (value_push): Delete.
9173 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
9174 (i386_gdbarch_init): Number of register_bytes fixed.
9175
9176 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9177
9178 * MAINTAINERS: Add x86-64 target.
9179
9180 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9181
9182 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
9183 * osfsolib.c (solib_map_sections): Ditto.
9184 * irix5-nat.c (solib_map_sections): Ditto.
9185 * corelow.c (gdb_check_format): Ditto.
9186 * symfile.c (symfile_bfd_open): Ditto.
9187 * solib.c (solib_map_sections): Ditto.
9188 Fix PR gdb/354.
9189
9190 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9191
9192 * remote.c (_initialize_remote): By default, disable ``e'' and
9193 ``E'' step out-of-range packets.
9194
9195 2002-02-26 Andreas Schwab <schwab@suse.de>
9196
9197 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
9198 m68k_linux_frame_saved_pc.
9199 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
9200 in_sigtramp.
9201 (SIGCONTEXT_PC_OFFSET): Remove.
9202 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
9203 m68k_linux_sigtramp_saved_pc): New functions.
9204 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
9205 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
9206 (UCONTEXT_PC_OFFSET): Define.
9207 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
9208 non-RT and RT signal trampolines.
9209
9210 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
9211
9212 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
9213 (TARGET_NBPG, STACK_END_ADDR): Delete
9214 (VARIABLES_INSIDE_BLOCK): Delete.
9215
9216 2002-02-25 Andrew Cagney <ac131313@redhat.com>
9217
9218 * utils.c (perror_with_name): Make string parameter constant.
9219 (print_sys_errmsg): Ditto.
9220 (query): Ditto.
9221 * defs.h (perror_with_name): Update.
9222 (print_sys_errmsg): Update.
9223 (query): Update.
9224
9225 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
9226
9227 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
9228 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
9229
9230 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9231
9232 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
9233 if it already matches the current architecture from the exec file.
9234 Include arch-utils.h for gdbarch_info_init prototype.
9235 * Makefile.in (rs6000-nat.o): Update dependencies.
9236
9237 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
9238
9239 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
9240 list of exported variables.
9241
9242 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
9243
9244 * gdbserver/configure.srv: New file.
9245 * gdbserver/configure.in: Use configure.srv instead
9246 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
9247 from it.
9248 * gdbserver/configure: Regenerated.
9249 * gdbserver/terminal.h: New file.
9250 * gdbserver/Makefile.in: Update for configure changes. Remove
9251 more unneeded include paths.
9252
9253 2002-02-24 Andrew Cagney <ac131313@redhat.com>
9254
9255 From wiz at danbala:
9256 * config/sparc/tm-sp64.h: Fix grammar and typos.
9257 Fix PR gdb/287.
9258
9259 2002-02-24 Andrew Cagney <ac131313@redhat.com>
9260
9261 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
9262 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
9263 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
9264 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
9265 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
9266 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
9267 * s390-tdep.c: Ditto.
9268 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
9269 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
9270 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
9271 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
9272 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
9273 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
9274 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
9275 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
9276 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
9277 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
9278 Fix PR gdb/378.
9279
9280 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9281
9282 * lin-thread.c: Delete file.
9283 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
9284 to gdb_proc_service.h.
9285 * configure: Re-generate.
9286
9287 * ocd.c (ocd_open): Do not try to open the "ocd" device.
9288 * serial.c (serial_open): Delete check for "ocd".
9289 Fix PR gdb/349.
9290
9291 * Makefile.in (linux-thread.o): Delete target.
9292 * linux-thread.c: Delete file.
9293
9294 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
9295 renamed SH files to be consistent.
9296
9297 * symtab.c (sort_search_symbols): Use xfree.
9298
9299 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
9300
9301 * arm-linux-tdep.c (arm_linux_init_abi): Register
9302 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
9303 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
9304 definition with undef, since we don't want the sysvr4 definition.
9305 (SKIP_TRAMPOLINE_CODE): Likewise.
9306
9307 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9308
9309 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
9310
9311 * configure.in: (AC_CHECK_FUNCS) Added test for
9312 canonicalize_file_name Regenerated.
9313 * config.in, configure: Regenerated.
9314 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
9315 defined use canonicalize_file_name.
9316
9317 2002-02-23 Michael Chastain <mec@shout.net>
9318
9319 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
9320
9321 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9322
9323 * README: Remove references to cygnus.com.
9324 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
9325 dot com'' form. Remove references to cygnus.com and sourceware.
9326
9327 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9328
9329 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
9330 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
9331 1003.1-2001 no longer allows "head -1".
9332 * gdb/Makefile.in (version.c): Likewise.
9333 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
9334 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
9335 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
9336
9337 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9338
9339 * cli/cli-decode.c (cmd_cfunc_eq): New function.
9340 * command.h (cmd_cfunc_eq): Declare.
9341 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
9342
9343 * cli/cli-cmds.h (is_complete_command): Change parameter to a
9344 ``struct cmd_list_element *''.
9345 * cli/cli-cmds.c (is_complete_command): Update. Use
9346 cmd_cfunc_eq.
9347 * top.c (execute_command): Pass the command to
9348 is_complete_command.
9349 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
9350
9351 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9352
9353 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
9354 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
9355 architecture defines.
9356 * s390-tdep.c (s390_gdbarch_init): Likewise.
9357
9358 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
9359
9360 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
9361 (arm_linux_push_arguments): Likewise.
9362 (arm_linux_init_abi): Register them. Also register linux-specific
9363 call_dummy_words.
9364 (find_minsym_and_objfile): Use strcmp, not STREQ.
9365 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
9366 (arm_linux_call_dummy_words): Delete declaration.
9367 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
9368 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
9369 declarations.
9370 (LOWEST_PC): Delete.
9371
9372 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9373
9374 * maint.c (print_section_info): Do not prepend `0x' to filepos
9375 output, it will be handled by local_hex_string_custom.
9376
9377 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
9378
9379 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
9380 (store_newfpe_double, store_newfpe_extended, store_fpregister)
9381 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
9382
9383 2002-02-22 Jim Blandy <jimb@redhat.com>
9384
9385 Indicate that the bcache functions don't change the strings
9386 they're passed.
9387 * bcache.h (bcache, hash): Add `const' keywords to declarations.
9388 * bcache.c (bcache, hash): Add `const' keywords to definitions.
9389
9390 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
9391
9392 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
9393
9394 2002-02-21 Christopher Faylor <cgf@redhat.com>
9395
9396 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
9397 find the complete path to a loaded DLL.
9398
9399 2002-02-21 Fred Fish <fnf@redhat.com>
9400
9401 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
9402 that marks the end of the range of a function, enter a line number
9403 entry that has a line number of zero and a PC offset that matches
9404 the end of the function. This starts a range of PC's for which no
9405 line number information is known.
9406 * symtab.c (find_pc_sect_line): If our best fit is in a range of
9407 PC's for which no line number info is found (line number is zero)
9408 then we didn't find any valid line information.
9409 * symtab.h: Document use of zero line number entry.
9410
9411 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
9412
9413 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
9414 (have_ptrace_getvrregs): Define for run time checks.
9415 (gdb_vrregset_t): New type for Altivec register handling.
9416 (fetch_register, store_register): Fetch/store altivec register
9417 when needed.
9418 (fetch_altivec_register, store_altivec_register): New functions.
9419 (supply_vrregset, fill_vrregset): New functions.
9420 (fetch_altivec_registers, store_altivec_registers): New functions.
9421 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
9422 registers as well.
9423
9424 2002-02-21 Jiri Smid <smid@suse.cz>
9425
9426 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
9427
9428 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
9429
9430 * Makefile.in (armnbsd-nat.o): Update dependencies.
9431 * armnbsd-nat.c (supply_gregset): New function. Common code to
9432 supply the integer register set.
9433 (supply_fparegset): New function. Similar for FPA registers.
9434 (fetch_regs, fetch_fp_regs): Use them.
9435 (fetch_core_registers): Likewise.
9436 (fetch_elfcore_registers): New function.
9437 (arm_netbsd_elfcore_fns): New core-file type specification.
9438 (_initialize_arm_netbsd_nat): Register it.
9439
9440 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
9441
9442 * armnbsd-nat.c: Include gdbcore.h.
9443 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
9444 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
9445 'void' to declaration, to shut up ARI.
9446 (fetch_core_registers): Make static. Rewrite using supply_register.
9447 (arm_netbsd_core_fns): New core-file type specification.
9448 (_initialize_arm_netbsd_nat): New function.
9449
9450 2002-02-21 Christopher Faylor <cgf@redhat.com>
9451
9452 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
9453 value.
9454
9455 2002-02-20 Christopher Faylor <cgf@redhat.com>
9456
9457 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
9458 fails.
9459
9460 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9461
9462 * jv-exp.y (parse_number): Change type of implicit longs
9463 to builtin_type_uint64.
9464
9465 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9466
9467 * gdbserver/linux-low.c (mywait): Change argument to waitpid
9468 to be an integer instead of a `union wait'.
9469
9470 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9471
9472 * mips-linux-nat.c: Call the operating system GNU/Linux.
9473 * mips-linux-tdep.c: Likewise.
9474 * mips-tdep.c: Likewise.
9475
9476 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9477
9478 Fix PR gdb/265.
9479 * jv-exp.y (parse_number): Handle 64-bit integers.
9480
9481 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9482
9483 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
9484 AC_STDC_HEADERS to AC_HEADER_STDC.
9485 * gdbserver/configure: Regenerated.
9486
9487 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
9488
9489 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
9490 is defined.
9491 * sparc-tdep.c (get_longjmp_target): Likewise.
9492
9493 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
9494
9495 * News: Add news about ARM and Multi-arch. Mention the new target
9496 arm*-*-netbsd*.
9497
9498 2002-02-19 Jim Blandy <jimb@redhat.com>
9499
9500 * stabsread.c (error_type_complaint): Improve error message.
9501
9502 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
9503
9504 * gdbserver/README: Update documentation.
9505 * gdbserver/configure.in: Update configury to match documentation.
9506 * gdbserver/Makefile.in: Likewise.
9507 * gdbserver/configure: Regenerated.
9508 * gdbserver/aclocal.m4: New file, generated by aclocal.
9509 * gdbserver/config.in: New file, generated by autoheader.
9510
9511 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9512
9513 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
9514 armnbsd-nat.c.
9515
9516 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9517
9518 * arm-tdep.h (enum arm_float_model): New enum.
9519 (struct gdbarch_tdep): Add fp_model.
9520 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
9521 up floating-point conversions until we know the floating-point model
9522 in use by the inferior. Don't complain about being unable to
9523 determine the ABI of the inferior when we don't have one.
9524 (arm_extract_return_value): Support different floating-point models.
9525 (arm_store_return_value): Likewise.
9526 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
9527 ARM_FLOAT_SOFT.
9528 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
9529
9530 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9531
9532 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
9533 of ``current_gdbarch''.
9534
9535 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9536
9537 * armnbsd-nat.c : ANSIfy all function declarations.
9538 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
9539 (fetch_inferior_registers): Re-implement in terms of above.
9540 (store_register, store_regs, store_fp_register, store_fp_regs): New.
9541 (store_inferior_registers): Re-implement in terms of above.
9542
9543 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9544
9545 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
9546 kernel.
9547 * arm-linux-tdep.c: Likewise.
9548 * config/arm/tm-linux.h: Likewise.
9549
9550 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9551
9552 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
9553 * config/arm/nbsd.mt (TM_FILE): Delete.
9554 * config/arm/tm-nbsd.h: Delete.
9555
9556 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9557
9558 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
9559 Initialize CALL_DUMMY_LENGTH.
9560
9561 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9562
9563 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
9564 function.
9565 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
9566 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
9567 defines one thing and that is incorrect for this port.
9568 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
9569
9570 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9571
9572 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
9573
9574 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9575
9576 * win32-nat.c (display_selector): New function. Displays information
9577 about the information returned by GetThreadSelectorEntry API function.
9578 (display_selectors): New function. Displays the infomation of
9579 the selector given as argument, or of CS, DS ans FS selectors
9580 if no argument is given.
9581 ( _initialize_inftarg): Add "w32" as info prefix command.
9582 Add "info w32 selector" as command calling display_selectors.
9583
9584 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
9585
9586 * i386-tdep.c (get_longjmp_target): Fix compilation failure
9587 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
9588 if not defined.
9589
9590 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
9591
9592 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
9593
9594 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
9595
9596 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
9597 (arm_fix_call_dummy): Call it.
9598 (arm_call_dummy_breakpoint_offset): Delete.
9599 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
9600 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
9601
9602 2002-02-18 Andrew Cagney <ac131313@redhat.com>
9603
9604 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
9605 Default to func_frame_chain_valid.
9606 * gdbarch.h, gdbarch.c: Re-generate.
9607 * frame.h (FRAME_CHAIN_VALID): Delete definition.
9608
9609 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
9610
9611 * ppc-linux-nat.c: Update copyright.
9612 (fetch_register, store_register): Add tid parameter, don't compute
9613 tid here.
9614 (fetch_ppc_registers, store_ppc_registers): Add tid
9615 parameter. Pass it along to callees.
9616 (fetch_inferior_registers, store_inferior_registers): Compute tid
9617 here, and pass it to calleed functions.
9618 (fill_gregset, supply_fpregset): Clean up formatting.
9619
9620 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
9621
9622 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
9623 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
9624
9625 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
9626
9627 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
9628 * gdbarch.c gdbarch.h: Regenerate.
9629 * breakpoint.c (create_longjmp_breakpoint): Always compile this
9630 function.
9631 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
9632 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
9633 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
9634
9635 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
9636 * arm-tdep.c (arm_get_longjmp_target): New function.
9637 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
9638 this to a positive value register arm_get_longjmp_target as the
9639 longjmp handler.
9640 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
9641 (arm_linux_init_abi): Set up longjmp description in tdep.
9642 * armnbsd-nat.c (get_longjmp_target): Delete.
9643 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
9644 description in tdep.
9645 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
9646 (get_longjmp_target): Delete declaration.
9647 (GET_LONGJMP_TARGET): Delete.
9648 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
9649 (GET_LONGJMP_TARGET): Delete.
9650
9651 2002-02-17 Kevin Buettner <kevinb@redhat.com>
9652
9653 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
9654 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
9655 of ``current_gdbarch''.
9656
9657 2002-02-17 Tom Tromey <tromey@redhat.com>
9658
9659 * cli/cli-cmds.c (compare_strings): New function.
9660 (complete_command): Only print each unique item once.
9661 * completer.h (complete_line): Declare.
9662 * completer.c (complete_line): New function.
9663 (line_completion_function): Use it.
9664
9665 2002-02-16 Andrew Cagney <ac131313@redhat.com>
9666
9667 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
9668 * gdbarch.h, gdbarch.c: Re-generate.
9669
9670 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
9671
9672 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
9673
9674 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
9675
9676 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
9677 * valops.c (value_arg_coerce): Don't take the address of a reference
9678 to convert an argument to a reference.
9679
9680 2002-02-15 Christopher Faylor <cgf@redhat.com>
9681
9682 * win32-nat.c (get_image_name): New function.
9683 (handle_load_dll): Use get_image_name function.
9684 (get_child_debug_event): Avoid registering debug events until possibly
9685 execed process is started.
9686 (child_create_inferior): Allow invocation via shell so that command
9687 line redirection, etc. works ok.
9688 (_initialize_inftarg): Add new command: "set shell" to control whether
9689 a shell is used to start a process.
9690
9691 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
9692
9693 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
9694 instead of find_register_by_number.
9695 (cannot_store_register): Likewise.
9696
9697 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
9698
9699 * dwarf2read.c: Replace fprintf (stderr, ...) by
9700 fprintf_unfiltered (gdb_stderr, ...).
9701
9702 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
9703
9704 * gdbserver/gdbserver.1: Document --attach.
9705
9706 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
9707
9708 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
9709 descriptions.
9710 * arm-tdep.c (arm_default_arm_le_breakpoint)
9711 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
9712 (arm_default_thumb_be_breakpoint): New. Initialize them from
9713 traditional breakpoint defines.
9714 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
9715 (arm_gdbarch_init): Initialize new breakpoint variables.
9716 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
9717 (arm_linux_init_abi): Initialize linux-specific breakpoint.
9718 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
9719 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
9720 code out to ...
9721 (arm_netbsd_init_abi_common): ... here; new function.
9722 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
9723 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
9724 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
9725 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
9726
9727 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
9728
9729 * arm-tdep.h (enum arm_abi): New enum.
9730 (struct gdbarch_tdep): New structure.
9731 (LOWEST_PC): Provide a default.
9732 (arm_gdbarch_register_os_abi): Declare new function.
9733 * arm-tdep.c (arm_abi_names): New array.
9734 (process_note_abi_tag_sections): New function.
9735 (get_elfosabi): New function.
9736 (arm_gdbarch_register_os_abi): New function.
9737 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
9738 support for that ABI has been built in, then call the appropriate
9739 configuration routine. Use gdbarch_num_regs() to get the number
9740 of registers.
9741 (arm_dump_tdep): New function.
9742 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
9743 place-holder functions.
9744 (_initialize_arm_tdep): Register them.
9745 * config/arm/tm-arm.h (LOWEST_PC): Delete.
9746
9747 * armnbsd-tdep.c: New file.
9748 * Makefile.in (armnbsd-tdep.o): Add dependencies.
9749 * config/arm/nbsd.mt (TDEPFILES): Add it.
9750 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
9751
9752 * armnbsd-nat.c: Include regcache.h.
9753 * Makefile.in (armnbsd-nat.o): Update dependency list.
9754
9755 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
9756
9757 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9758
9759 * gdbserver/Makefile.in: Fix typos in target rules.
9760
9761 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9762
9763 Fix part of PR gdb/267.
9764 * linespec.c (find_methods): Handle constructors specially for now.
9765
9766 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
9767
9768 * arm-tdep.c (arm_push_arguments): Eliminate special float type
9769 handling.
9770 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
9771 standard_coerce_float_to_double().
9772
9773 2002-02-14 Christopher Faylor <cgf@redhat.com>
9774
9775 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
9776 GDBINIT_FILENAME.
9777
9778 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
9779
9780 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
9781 find_variant_by_name, because it confuses the multiarch
9782 framework. Return NULL if there isn't an architecture with the
9783 user supplied name, instead of forcing a different one without
9784 recording the change with the multiarch machinery.
9785 (find_variant_by_name): Delete.
9786
9787 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9788
9789 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
9790 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
9791
9792 2002-02-13 Martin M. Hunt <hunt@redhat.com>
9793
9794 * stack.c (print_frame_info_base): When calling
9795 print_frame_info_listing_hook, set current_source_symtab.
9796
9797 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9798
9799 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
9800 and remove unused $(INCLUDE_DIR).
9801 Add regcache.c to OBS.
9802 Add generated register protocol files to clean target.
9803 Update dependencies for new objects, obsolete old target code.
9804
9805 * gdbserver/linux-low.c: Remove all platform-specific code to
9806 new files. Remove various dead code. Update to use regcache
9807 functionality.
9808 * gdbserver/remote-utils.c (fromhex): Add return statement
9809 to quiet warning.
9810 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
9811 constant.
9812 (input_interrupt): Add integer parameter to match prototype
9813 of a signal handler.
9814 (outreg): Use register_data ().
9815 (prepare_resume_reply): Use gdbserver_expedite_regs.
9816 * gdbserver/server.c (main): Dynamically allocate own_buf because
9817 PBUFSIZ is no longer constant. Use registers_to_string () and
9818 registers_from_string ().
9819 * gdbserver/server.h: No longer include "defs.h". Add prototypes
9820 for error (), fatal (), and warning (). Update definition of
9821 PBUFSIZ to use regcache functionality. Add include guard.
9822 * gdbserver/utils.c (fatal): Add missing ``const''.
9823 (warning): New function.
9824
9825 * regformats/regdat.sh: Include "regcache.h" in generated files.
9826 Provide init_registers () function.
9827 * regformats/regdef.h: Add prototype for set_register_cache ().
9828 Add include guard.
9829
9830 * gdbserver/linux-arm-low.c: New file.
9831 * gdbserver/linux-i386-low.c: New file.
9832 * gdbserver/linux-ia64-low.c: New file.
9833 * gdbserver/linux-m68k-low.c: New file.
9834 * gdbserver/linux-mips-low.c: New file.
9835 * gdbserver/linux-ppc-low.c: New file.
9836 * gdbserver/linux-sh-low.c: New file.
9837
9838 * gdbserver/regcache.c: New file.
9839 * gdbserver/regcache.h: New file.
9840
9841 * gdbserver/low-linux.c: Removed obsolete file.
9842
9843 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9844
9845 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
9846 * config/i386/linux.mt: Likewise.
9847 * config/ia64/linux.mt: Likewise.
9848 * config/m68k/linux.mh: Likewise.
9849 * config/powerpc/linux.mh: Likewise.
9850 * config/mips/linux.mt: Likewise.
9851
9852 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
9853
9854 * config/i386/i386lynx.mh: Mark gdbserver variables
9855 as (currently) obsolete for this target.
9856 * config/i386/nbsd.mt: Likewise.
9857 * config/i386/nbsdelf.mt: Likewise.
9858 * config/m32r/m32r.mt: Likewise.
9859 * config/m68k/m68klynx.mh: Likewise.
9860 * config/m68k/nbsd.mt: Likewise.
9861 * config/m68k/sun3os4.mh: Likewise.
9862 * config/mips/vr5000.mt: Likewise.
9863 * config/ns32k/nbsd.mt: Likewise.
9864 * config/pa/hppabsd.mh: Likewise.
9865 * config/pa/hppaosf.mh: Likewise.
9866 * config/powerpc/nbsd.mt: Likewise.
9867 * config/rs6000/rs6000lynx.mh: Likewise.
9868 * config/s390/s390.mt: Likewise.
9869 * config/s390/s390x.mt: Likewise.
9870 * config/sparc/sparclynx.mh: Likewise.
9871 * config/sparc/sun4os4.mh: Likewise.
9872 * config/i386/x86-64linux.mt: Likewise.
9873 * config/sparc/linux.mh: Likewise.
9874
9875 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9876
9877 * configure.tgt: Configure gdbserver only for known working
9878 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
9879 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
9880 SUBDIRS if it is configured. Update comment for ${nativefile}.
9881 * configure: Regenerated.
9882
9883 2002-02-13 Michael Snyder <msnyder@redhat.com>
9884
9885 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
9886
9887 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
9888 (default_gcore_mach): Just return 0, work around a problem in bfd.
9889 (default_gcore_target): OK to return NULL if exec_bfd is null.
9890 (make_mem_sec): Use a cast, avoid a warning.
9891
9892 * procfs.c (find_memory_regions_callback): Use a cast instead of
9893 calling host_pointer_to_address (which complains if
9894 sizeof (host pointer) != sizeof (target pointer)).
9895 (procfs_make_note_section): Avoid overflow in psargs string.
9896
9897 * procfs.c (procfs_make_note_section): Make the default
9898 implementation return an error.
9899
9900 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
9901
9902 * procfs.c (procfs_make_note_section): Provide a default definition
9903 (for alpha-dec-osf4.0f). Fix typos.
9904
9905 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
9906
9907 * linux-proc.c: Add include of regcache.h.
9908 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
9909
9910 2002-02-13 Andrew Cagney <ac131313@redhat.com>
9911
9912 From 2002-01-18 Greg McGary <greg@mcgary.org>:
9913 * memattr.c (create_mem_region): Disallow useless empty region.
9914 Regions are half-open intervals, so allow [A..B) [B..C) as
9915 non-overlapping.
9916
9917 2002-02-13 Michael Chastain <mec@shout.net>
9918
9919 * defs.h: Kill CONST_PTR.
9920 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
9921 * c-lang.c (c_builtin_types): Likewise.
9922 * ch-lang.c (ch_builtin_types): Likewise.
9923 * f-lang.c (f_builtin_types): Likewise.
9924 * language.c (unknown_builtin_types): Likewise.
9925 * m2-lang.c (m2_builtin_types): Likewise.
9926 * p-lang.c (pascal_builtin_types): Likewise.
9927 * scm-lang.c (c_builtin_types): Likewise.
9928
9929 2002-02-13 Keith Seitz <keiths@redhat.com>
9930
9931 * arm-tdep.h (arm_get_next_pc): Add declaration.
9932
9933 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
9934
9935 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
9936 with other related struct-returning functions.
9937 (arm_extract_struct_value_address): New function.
9938 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
9939 initialize float_format, double_format and long_double_format as
9940 appropriate to the endianness of the target.
9941 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
9942 (arm_use_struct_convention): Delete declaration.
9943 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
9944
9945 2002-02-13 Keith Seitz <keiths@redhat.com>
9946
9947 * defs.h (core_addr_to_string_nz): New function.
9948
9949 2002-02-13 Mark Kettenis <kettenis@gnu.org>
9950
9951 Apply missing bits of 2002-01-15 patch.
9952 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
9953 (fill_fpregset): Use i387_fill_fsave.
9954
9955 2002-02-12 Keith Seitz <keiths@redhat.com>
9956
9957 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
9958 (core_addr_to_string_nz): New function.
9959
9960 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
9961
9962 * arm-linux-nat.c: Really include arm-tdep.h.
9963 * config/arm/tm-linux.h (struct type, struct value): Declare.
9964
9965 2002-02-11 Michael Snyder <msnyder@redhat.com>
9966
9967 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
9968 (gcore section): Ifdef for Solaris and Unixware only.
9969 (procfs_do_thread_registers): Unixware needs one lwpstatus
9970 per thread (not one prstatus or pstatus).
9971 (procfs_make_note_section): Iterate only over kernel threads (lwps),
9972 not over all gdb threads. For unixware, call elfcore_write_pstatus
9973 once before iterating over threads.
9974
9975 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
9976
9977 * arm-tdep.h: New file.
9978 * arm-tdep.c: Include arm-tdep.h.
9979 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
9980 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
9981 (arm_print_float_info, arm_register_type, convert_to_extended)
9982 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
9983 (arm_extract_return_value, arm_register_name): Make static.
9984 (arm_software_single_step): Similarly. Fix types in declaration.
9985 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
9986 (arm_store_return_value, arm_store_struct_return): New functions.
9987 (arm_gdbarch_init): Register the above functions. Also register
9988 call_dummy_start_offset, sizeof_call_dummy_words,
9989 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
9990 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
9991 max_register_virtual_size, register_size. Set up
9992 prologue_cache.saved_regs here, rather than ...
9993 (_initialize_arm_tdep): ... here.
9994 * config/arm/tm-arm.h (struct type, struct value): Delete forward
9995 declarations.
9996 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
9997 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
9998 (arm_print_float_info, arm_register_type, convert_to_extended)
9999 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
10000 (arm_extract_return_value, arm_register_name): Delete declarations.
10001 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
10002 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
10003 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
10004 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
10005 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
10006 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
10007 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
10008 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
10009 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
10010 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
10011 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
10012 (arm_get_next_pc): No-longer static -- these are needed by the RDI
10013 interface.
10014 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
10015 * remote-rdi.c remote-rdp.c: Likewise.
10016 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
10017 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
10018 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
10019 definition.
10020
10021 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
10022 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
10023 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
10024 from non-ARM_ prefixed definitions.
10025 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
10026 all uses of above.
10027 * remote-rdi.c remote-rdp.c: Likewise.
10028 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
10029
10030 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
10031
10032 * arm-tdep.c (arm_frameless_function_invocation)
10033 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
10034 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
10035 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
10036 (arm_pop_frame, arm_get_next_pc): Make static.
10037 (arm_gdbarch_init): Register above in gdbarch structure.
10038 (arm_read_fp): Renamed from arm_target_read_fp.
10039 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
10040 * config/arm/tm-arm.h (arm_frameless_function_invocation)
10041 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
10042 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
10043 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
10044 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
10045 (arm_pc_is_thumb_dummy): Delete declarations.
10046 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
10047 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
10048 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
10049 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
10050
10051 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
10052
10053 * symtab.c (compare_search_syms): New function.
10054 (sort_search_symbols): New function.
10055 (search_symbols): Sort symbols after searching rather than
10056 before.
10057
10058 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10059
10060 * NEWS: Linux -> GNU/Linux.
10061
10062 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10063
10064 * gdbarch.sh: For for level one methods, disallow a definition
10065 when partially multi-arched. Add comments explaining rationale.
10066 * gdbarch.h: Re-generate.
10067
10068 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10069
10070 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
10071 multi-arch partial.
10072
10073 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10074
10075 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
10076 field. Use diff -u.
10077 * gdbarch.c: Re-generate.
10078
10079 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10080
10081 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
10082 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
10083 partial.
10084
10085 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10086
10087 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
10088 multi-arch partial.
10089 (PUSH_ARGUMENTS): Switch to using predefault.
10090 * gdbarch.c: Regenerate.
10091
10092 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10093
10094 * valops.c (PUSH_ARGUMENTS): Delete definition.
10095 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
10096 partial. Default to default_push_arguments.
10097 * gdbarch.h, gdbarch.c: Regenerate.
10098
10099 2002-02-09 Andrew Cagney <ac131313@redhat.com>
10100
10101 * defs.h (throw_exception): Rename return_to_top_level. Update
10102 comments.
10103 * utils.c (error_stream, internal_verror, quit): Ditto.
10104 * top.c (throw_exception, catcher): Ditto.
10105 * sparclet-rom.c (sparclet_load): Ditto.
10106 * remote.c (interrupt_query, minitelnet): Ditto.
10107 * remote-sds.c (interrupt_query): Ditto.
10108 * remote-mips.c (mips_error, mips_kill): Ditto.
10109 * ocd.c (interrupt_query): Ditto.
10110 * monitor.c (monitor_interrupt_query): Ditto.
10111 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
10112 * target.h: Update comment.
10113
10114 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
10115
10116 2002-02-09 Andrew Cagney <ac131313@redhat.com>
10117
10118 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
10119 default_double_format.
10120 * gdbarch.h, gdbarch.c: Re-generate.
10121 * findvar.c (floatformat_unknown): Delete variable definition.
10122 * doublest.h (floatformat_unknown): Delete variable declaration.
10123
10124 2002-02-09 Jim Blandy <jimb@redhat.com>
10125
10126 * stabsread.c (read_type): Add code to parse Sun's syntax for
10127 prototyped function types.
10128
10129 2002-02-09 Andrew Cagney <ac131313@redhat.com>
10130
10131 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
10132 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
10133
10134 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10135
10136 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
10137 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
10138 now _initialize_xcoffsolib gets called again and overrides the
10139 commands from solib.c in a native configuration.
10140
10141 2002-02-09 Mark Kettenis <kettenis@gnu.org>
10142
10143 * doublest.c (store_typed_floating): Don't try to return a value.
10144 Fixes PR gdb/290.
10145
10146 2002-02-08 Jim Blandy <jimb@redhat.com>
10147
10148 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
10149 is prototyped and has no arguments, print its argument list as
10150 `(void)'.
10151
10152 2002-02-08 Chris Demetriou <cgd@broadcom.com>
10153
10154 * MAINTAINERS (write-after-approval): Add myself.
10155 (paper-trail): I've escaped!
10156
10157 2002-02-08 Christopher Faylor <cgf@redhat.com>
10158
10159 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
10160 changes.
10161 (_initialize_check_for_gdb_ini): Ditto.
10162
10163 2002-02-08 Martin M. Hunt <hunt@redhat.com>
10164
10165 * win32-nat.c (cygwin_pid_to_str): Fix typo.
10166 xaprintf -> xasprintf.
10167
10168 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
10169
10170 * win32-nat.c: Remove use of printf and sprintf functions.
10171
10172 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
10173
10174 * arm-tdep.c (arm_frame_chain_valid): Make static.
10175 (arm_push_arguments): Likewise.
10176 (arm_gdbarch_init): New function.
10177 (_initialize_arm_tdep): Call it.
10178 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
10179 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
10180 (FRAME_CHAIN_VALID): Delete.
10181 (arm_frame_chain_valid): Delete declaration.
10182 (PUSH_ARGUMENTS): Delete.
10183 (arm_push_arguments): Delete declaration.
10184 (CALL_DUMMY_P): Delete.
10185
10186 2002-02-08 Andrew Cagney <ac131313@redhat.com>
10187 Corinna Vinschen <vinschen@redhat.com>
10188
10189 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
10190 on builtin float types.
10191
10192 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
10193
10194 * utils.c: Include <curses.h> before "bfd.h".
10195 * tui/tui-hooks.c: Likewise.
10196 * tui/tui.c: Likewise.
10197 * tui/tuiCommand.c: Likewise.
10198 * tui/tuiData.c: Likewise.
10199 * tui/tuiDataWin.c: Likewise.
10200 * tui/tuiDisassem.c: Likewise.
10201 * tui/tuiGeneralWin.c: Likewise.
10202 * tui/tuiIO.c: Likewise.
10203 * tui/tuiLayout.c: Likewise.
10204 * tui/tuiRegs.c: Likewise.
10205 * tui/tuiSource.c: Likewise.
10206 * tui/tuiSourceWin.c: Likewise.
10207 * tui/tuiStack.c: Likewise.
10208 * tui/tuiWin.c: Likewise.
10209
10210 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
10211
10212 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
10213 to include space for pseudoregs as well. Update loops accordingly.
10214 (sh_fp_frame_init_saved_regs): Ditto.
10215 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
10216
10217 2002-02-07 Andrew Cagney <ac131313@redhat.com>
10218
10219 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
10220 Add Richard Earnshaw to Arm maintainers.
10221
10222 2002-02-07 Andrew Cagney <ac131313@redhat.com>
10223
10224 * defs.h (warning_begin): Delete declaration.
10225
10226 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
10227 Delete macro.
10228
10229 2002-02-07 Michael Snyder <msnyder@redhat.com>
10230
10231 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
10232 Logic bug, remove misplaced else.
10233
10234 2002-02-07 Klee Dienes <klee@apple.com>
10235
10236 * fork-inferior.c (fork_inferior): Add '!' to the list of
10237 characters that need to be quoted when building a string for the
10238 shell. Quote '!' specifically with a backslash, since CSH chokes
10239 when trying to evaluate "str!str".
10240
10241 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
10242
10243 * rdi-share/host.h: Only provide a typedef for bool if it is not
10244 defined.
10245
10246 2002-02-04 Michael Snyder <msnyder@redhat.com>
10247
10248 * breakpoint.h (enum bptype): Add new overlay event bp type.
10249 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
10250
10251 * breakpoint.c (create_internal_breakpoint): New function.
10252 (internal_breakpoint_number): Moved into create_internal_breakpoint.
10253 (create_longjmp_breakpoint): Use create_internal_breakpoint.
10254 (create_thread_event_breakpoint): Ditto.
10255 (create_solib_event_breakpoint): Ditto.
10256 (create_overlay_event_breakpoint): New function.
10257 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
10258 (update_breakpoints_after_exec): Delete and re-initialize
10259 overlay event breakpoints after an exec. Add FIXME comment
10260 about longjmp breakpoint.
10261 (print_it_typical): Ignore overlay event breakpoints.
10262 (print_one_breakpoint): Ditto.
10263 (mention): Ditto.
10264 (bpstat_what): Do not stop for overlay event breakpoints.
10265 (delete_breakpoint): Don't delete overlay event breakpoints.
10266 (breakpoint_re_set_one): Delete the overlay event breakpoint.
10267 (breakpoint_re_set): Re-create overlay event breakpoint.
10268
10269 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
10270 (overlay_manual_command): Disable overlay breakpoints.
10271 (overlay_off_command): Disable overlay breakpoints.
10272
10273 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
10274
10275 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
10276 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
10277 to here from config/tm-arm.h.
10278 (coff_sym_is_thumb): Make static.
10279 (arm_elf_make_msymbol_special): New function.
10280 (arm_coff_make_msymbol_special): New function.
10281 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
10282 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
10283 (coff_sym_is_thumb): Delete declaration.
10284 (arm_elf_make_msymbol_special): Declare.
10285 (arm_coff_make_msymbol_special): Declare.
10286 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
10287 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
10288
10289 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
10290
10291 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
10292
10293 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
10294
10295 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
10296 * gdbarch.c gdbarch.h: Regenerate.
10297 * arch-utils.c (default_print_float_info): New function.
10298 * arch-utils.h (default_print_float_info): Prototype it.
10299 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
10300 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
10301 (PRINT_FLOAT_INFO): Document it.
10302
10303 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
10304 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
10305 (PRINT_FLOAT_INFO): Define.
10306
10307 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
10308
10309 * win32-nat.c (_initialize_check_for_gdb_ini):
10310 Add typecast to sprintf argument to suppress a warning.
10311
10312 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
10313
10314 * win32-nat.c (last_sig): Changed type of variable to target_signal,
10315 to allow easier handling of pass state.
10316 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
10317 that gives exception name and address.
10318 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
10319 and set last_sig value to ourstatus->value.sig. Some missing
10320 exceptions added.
10321 (child_continue): Correctly report continue_status.
10322 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
10323 TARGET_SIGNAL_0 (new default value).
10324 (child_resume): consider sig argument passed to decide if
10325 the exception should be passed to debuggee or not.
10326
10327 2002-02-05 Michael Snyder <msnyder@redhat.com>
10328
10329 * regcache.c (fetch_register): Call target_fetch_register
10330 only if we don't call FETCH_PSEUDO_REGISTER.
10331 (store_register): Call target_store_register only if we
10332 don't call STORE_PSEUDO_REGISTER.
10333
10334 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
10335
10336 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
10337 ELF_MAKE_MSYMBOL_SPECIAL.
10338 * gdbarch.c, gdbarch.h: Regenerate.
10339 * arch-utils.c (default_make_msymbol_special): New function.
10340 * arch-utils.h (default_make_msymbol_special): Export.
10341 * elfread.c (elf_symtab_read): Compile use of
10342 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
10343 multiarched.
10344 * coffread.c (coff_symtab_read): Ditto, for
10345 COFF_MAKE_MSYMBOL_SPECIAL.
10346
10347 2002-02-05 Jim Blandy <jimb@redhat.com>
10348
10349 * solib-svr4.c (svr4_truncate_ptr): New function.
10350 (svr4_relocate_section_addresses): Do the address arithmetic with
10351 the appropriate truncation for target addresses, even when
10352 CORE_ADDR is larger than a target address.
10353
10354 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10355
10356 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
10357 to (int *).
10358
10359 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10360
10361 * gdbserver/linux-low.c (kill_inferior): Remove commented out
10362 code.
10363
10364 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10365
10366 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
10367
10368 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10369
10370 * gdbserver/linux-low.c: Remove unused include files.
10371
10372 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10373
10374 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
10375 (read_inferior_memory): Use it.
10376 (write_inferior_memory): Likewise.
10377
10378 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10379
10380 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
10381 grubbing through sys_errlist.
10382
10383 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10384
10385 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
10386
10387 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
10388 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
10389
10390 2002-02-04 Andrew Cagney <ac131313@redhat.com>
10391
10392 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
10393 (do_sfunc, set_cmd_sfunc): New functions.
10394
10395 * command.h (struct cmd_list_element): Add field func.
10396 * cli/cli-decode.h (struct cmd_list_element): Ditto.
10397 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
10398 * cli/cli-decode.h: Ditto.
10399
10400 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
10401 (help_all, help_cmd_list): Ditto.
10402 (find_cmd, complete_on_cmdlist): Ditto.
10403 * top.c (execute_command): Ditto.
10404
10405 * cli/cli-setshow.c (do_setshow_command): Call func instead of
10406 function.sfunc.
10407
10408 * infcmd.c (notice_args_read): Fix function signature.
10409
10410 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
10411 * cli/cli-decode.c (add_set_cmd): Ditto.
10412 * utils.c (initialize_utils): Ditto.
10413 * maint.c (_initialize_maint_cmds): Ditto.
10414 * infrun.c (_initialize_infrun): Ditto.
10415 * demangle.c (_initialize_demangler): Ditto.
10416 * remote.c (add_packet_config_cmd): Ditto.
10417 * mips-tdep.c (_initialize_mips_tdep): Ditto.
10418 * cris-tdep.c (_initialize_cris_tdep): Ditto.
10419 * proc-api.c (_initialize_proc_api): Ditto.
10420 * kod.c (_initialize_kod): Ditto.
10421 * valprint.c (_initialize_valprint): Ditto.
10422 * top.c (init_main): Ditto.
10423 * infcmd.c (_initialize_infcmd): Ditto.
10424 * corefile.c (_initialize_core): Ditto.
10425 * arm-tdep.c (_initialize_arm_tdep): Ditto.
10426 * arch-utils.c (initialize_current_architecture): Ditto.
10427 (_initialize_gdbarch_utils): Ditto.
10428 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
10429
10430 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
10431 * wince.c (_initialize_inftarg): Ditto.
10432 * symfile.c (_initialize_symfile): Ditto.
10433 * mips-tdep.c (_initialize_mips_tdep): Ditto.
10434 * language.c (_initialize_language): Ditto.
10435 * arc-tdep.c (_initialize_arc_tdep): Ditto.
10436
10437 2002-02-04 Michael Snyder <msnyder@redhat.com>
10438
10439 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
10440
10441 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
10442
10443 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
10444 Add rules for building the register data files.
10445
10446 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
10447
10448 * regformats/regdat.sh: Add braces to the definition of
10449 expedite_regs_${arch}.
10450
10451 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
10452
10453 * regformats/regdef.h (struct reg): Add comment describing the
10454 requirements for offset and size fields.
10455
10456 2002-02-04 Andreas Schwab <schwab@suse.de>
10457
10458 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
10459 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
10460
10461 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
10462
10463 * gdbarch.sh (copyright): Update years in generated header.
10464 (SMASH_TEXT_ADDRESS): Add rule.
10465 * gdbarch.h, gdbarch.c: Re-generate.
10466 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
10467 * dbxread.c: Likewise.
10468 * dwarfread.c: Likewise.
10469 * elfread.c: Likewise.
10470 * somread.c: Likewise.
10471
10472 * arm-tdep.c (arm_smash_text_address): New function.
10473 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
10474
10475 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
10476
10477 Add support for hardware watchpoints on win32 native.
10478 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
10479 CONTEXT_DEBUG_REGISTERS.
10480 (dr variable): New variable. Static array containing a local copy
10481 of debug registers.
10482 (debug_registers_changed): New variable. Reflects when debug registers
10483 are changed and need to be written to inferior.
10484 (debug_registers_used): New variable. Reflects when any debug register
10485 was set, used when new threads are created.
10486 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
10487 i386-nat code.
10488 (thread_rec): Set dr array if id is the thread of current_event .
10489 (child_continue, child_resume): Change the debug registers for all
10490 threads if debug_registers_changed.
10491 (child_add_thread): Change the debug registers if debug_registers_used.
10492 * config/i386/cygwin.mh: Add use of i386-nat.o file.
10493 Link nm.h to new nm-cygwin.h file.
10494 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
10495 of hardware registers.
10496
10497 2002-02-03 Andrew Cagney <ac131313@redhat.com>
10498
10499 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
10500 Restore behavour broken by 2002-01-20 Andrew Cagney
10501 <ac131313@redhat.com> IEEE_FLOAT removal.
10502
10503 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
10504
10505 * c-valprint.c (c_val_print): Pass a proper valaddr to
10506 cp_print_class_method.
10507 * valops.c (search_struct_method): If there is only one method
10508 and args is NULL, return that method.
10509
10510 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
10511
10512 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
10513 accessing tag_name directly.
10514
10515 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
10516
10517 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
10518 of accessing tag_name directly.
10519
10520 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
10521
10522 PR gdb/280
10523 * gdbtypes.c (replace_type): New function.
10524 * gdbtypes.h (replace_type): Add prototype.
10525 * stabsread.c (read_type): Use replace_type.
10526
10527 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
10528
10529 * Makefile.in (memattr.o): Add missing dependencies rule.
10530
10531 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10532
10533 * breakpoint.c (break_at_finish_command): Really export.
10534 (break_at_finish_at_depth_command): Ditto.
10535 (tbreak_at_finish_command): Ditto.
10536 * hppa-tdep.c: Include completer.h.
10537 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
10538 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
10539
10540 2002-02-01 Andrew Cagney <ac131313@redhat.com>
10541
10542 * utils.c (do_write): New function.
10543 (error_stream): Rewrite combining the code from error_begin and
10544 verror.
10545 (verror): Rewrite using error_stream.
10546 (error_begin): Delete function.
10547
10548 2002-02-01 Andrew Cagney <ac131313@redhat.com>
10549
10550 * utils.c (error_begin): Make static.
10551 * defs.h (error_begin): Delete declaration.
10552
10553 * linespec.c (cplusplus_error): Replace cplusplus_hint.
10554 (decode_line_1): Use cplusplus_error instead of error_begin,
10555 cplusplus_hint and return_to_top_level.
10556 * coffread.c (coff_symfile_read): Use error instead of error_begin
10557 and return_to_top_level.
10558 * infrun.c (default_skip_permanent_breakpoint): Ditto.
10559
10560 2002-02-01 Andrew Cagney <ac131313@redhat.com>
10561
10562 * language.h (type_error, range_error): Make string parameter
10563 constant.
10564 * language.c (warning_pre_print): Delete extern declaration.
10565 * dwarfread.c (warning_pre_print): Ditto.
10566 * language.c (type_error, range_error): Rewrite to use verror and
10567 vwarning instead of warning_begin.
10568
10569 2002-02-01 Michael Snyder <msnyder@redhat.com>
10570
10571 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
10572 (set_ignore_count): Move misplaced comment back where it belongs.
10573
10574 2002-02-01 Andrew Cagney <ac131313@redhat.com>
10575
10576 * command.h (NO_FUNCTION): Delete macro.
10577 * cli/cli-decode.h (NO_FUNCTION): Ditto.
10578 * top.c (execute_command): Replace NO_FUNCTION with NULL.
10579 * tracepoint.c (_initialize_tracepoint): Ditto.
10580 * cli/cli-decode.c (add_set_cmd): Ditto.
10581 * cli/cli-cmds.c (init_cli_cmds): Ditto.
10582
10583 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
10584
10585 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
10586 Update ``this'' pointer when calling virtual functions.
10587
10588 2002-02-01 Michael Snyder <msnyder@redhat.com>
10589
10590 * breakpoint.c (create_temp_exception_breakpoint): Delete.
10591 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
10592
10593 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
10594
10595 * regformats/reg-arm.dat: New file.
10596 * regformats/reg-i386.dat: New file.
10597 * regformats/reg-ia64.dat: New file.
10598 * regformats/reg-m68k.dat: New file.
10599 * regformats/reg-mips.dat: New file.
10600 * regformats/reg-ppc.dat: New file.
10601 * regformats/reg-sh.dat: New file.
10602 * regformats/regdef.h: New file.
10603 * regformats/regdat.sh: New file.
10604
10605 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
10606
10607 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
10608 (arm_frame_args_address, arm_frame_locals_address): New functions.
10609 (arm_frame_num_args): New function.
10610 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
10611 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
10612 (FRMA_NUM_ARGS): Call arm_frame_num_args.
10613
10614 2002-01-31 Michael Snyder <msnyder@redhat.com>
10615
10616 * breakpoint.c (break_at_finish_command): Export.
10617 (break_at_finish_at_depth_command): Export.
10618 (tbreak_at_finish_command): Export.
10619 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
10620 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
10621 "txbreak" commands, which are HPPA specific.
10622
10623 * printcmd.c (disassemble_command): Remove an ancient
10624 artifact of an old merge.
10625
10626 * symfile.h (enum overlay_debugging_state):
10627 Define enum constant values for overlay mode.
10628 * symfile.c (overlay_debugging): Use enums instead of literals.
10629 (overlay_is_mapped, overlay_auto_command,
10630 overlay_manual_command): Ditto.
10631
10632 * breakpoint.c (insert_breakpoints, remove_breakpoint,
10633 breakpoint_here_p, breakpoint_inserted_here_p,
10634 breakpoint_thread_match, bpstat_stop_status,
10635 describe_other_breakpoints, check_duplicates, clear_command):
10636 Coding standard fixes.
10637
10638 * target.c (target_xfer_memory): Add spaces, coding standard.
10639 (do_xfer_memory): Add missing line to trust-readonly
10640 code: check bfd SEC_READONLY flag for section.
10641
10642 2002-01-31 Andrew Cagney <ac131313@redhat.com>
10643
10644 * PROBLEMS: Fix typo, 5.1->5.1.1.
10645
10646 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
10647
10648 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
10649 data symbols, since we search based on textlow and texthigh.
10650 (find_pc_sect_symtab): Likewise.
10651
10652 2002-01-30 Andrew Cagney <ac131313@redhat.com>
10653
10654 * defs.h (vwarning): Declare.
10655 * utils.c (vwarning): New function.
10656 (warning): Call vwarning.
10657 (warning_begin): Delete function.
10658
10659 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
10660 the warning message.
10661 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
10662 warning_begin.
10663
10664 2002-01-30 Michael Snyder <msnyder@redhat.com>
10665
10666 * NEWS: Mention "set trust-readonly-sections" command.
10667 Mention generate-core-file command.
10668
10669 2002-01-15 Michael Snyder <msnyder@redhat.com>
10670
10671 * target.c: New command, "set trust-readonly-sections on".
10672 (do_xfer_memory): Honor the suggestion to trust readonly sections
10673 by reading them from the object file instead of from the target.
10674 (initialize_targets): Register command "set trust-readonly-sections".
10675
10676 2002-01-29 Andrew Cagney <ac131313@redhat.com>
10677
10678 * parse.c (target_map_name_to_register): Simplify, search regs and
10679 pseudo-regs using a single loop.
10680
10681 2002-01-30 Andrew Cagney <ac131313@redhat.com>
10682
10683 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
10684
10685 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
10686
10687 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
10688 * config/i386/i386v42mp.mh: Add i387-nat.o .
10689 * i386v4-nat.c: Include i387-nat.h.
10690 (supply_fpregset): Use i387_supply_fsave.
10691 (fill_fpregset): Use i387_fill_fsave.
10692
10693 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
10694
10695 * arm-tdep.c (arm_call_dummy_words): Define.
10696 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
10697 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
10698 (CALL_DUMMY_WORDS): Define.
10699 (arm_call_dummy_words): Declare.
10700 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
10701 (arm_linux_call_dummy_words): Declare.
10702
10703 2002-01-30 Andreas Schwab <schwab@suse.de>
10704
10705 * m68klinux-nat.c: Fix last change to use regcache_collect
10706 instead of referencing registers[] directly.
10707
10708 2002-01-29 Andrew Cagney <ac131313@redhat.com>
10709
10710 * parse.c (target_map_name_to_register): Delete code wrapped in
10711 #ifdef REGISTER_NAME_ALIAS_HOOK.
10712
10713 2002-01-28 Michael Snyder <msnyder@redhat.com>
10714
10715 * regcache.c (legacy_read_register_gen): Need to be able to
10716 read pseudo-register as well as real register.
10717 (legacy_write_register_gen): Ditto.
10718
10719 2002-01-28 Andrew Cagney <ac131313@redhat.com>
10720
10721 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
10722 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
10723 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
10724 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
10725 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
10726 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
10727 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
10728 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
10729 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
10730 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
10731 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
10732 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
10733 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
10734 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
10735 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
10736 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
10737 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
10738 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
10739 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
10740 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
10741
10742 2002-01-28 Andrew Cagney <ac131313@redhat.com>
10743
10744 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
10745 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
10746 (initialize_current_architecture): Update target_byte_order using
10747 information from BFD.
10748 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
10749 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
10750
10751 2002-01-28 Andrew Cagney <ac131313@redhat.com>
10752
10753 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
10754 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
10755
10756 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
10757 #ifdef INVALID_FLOAT.
10758 * infcmd.c (do_registers_info): Ditto.
10759 * values.c (unpack_double): Ditto. Add comment.
10760
10761 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
10762 already commented out.
10763
10764 2002-01-26 Andreas Schwab <schwab@suse.de>
10765
10766 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
10767 * m68klinux-nat.c: Update ptrace interface for fetching/storing
10768 registers and add support for PTRACE_GETREGS.
10769
10770 2002-01-24 Andrew Cagney <ac131313@redhat.com>
10771
10772 GDB 5.1.1 released from 5.1 branch.
10773 * NEWS: Add 5.1.1 news.
10774 * README: Sync with 5.1 branch.
10775
10776 2002-01-23 Fred Fish <fnf@redhat.com>
10777
10778 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
10779 stabstring on initial malloc. Reallocing will copy it for us,
10780 if necessary.
10781
10782 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
10783
10784 * Makefile.in (hpread_h): Delete.
10785 (HFILES_NO_SRCDIR): Remove hpread.h.
10786 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
10787 (hpread.o): Update dependencies.
10788 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
10789
10790 * hp-psymtab-read.c: Remove file.
10791 * hp-symtab-read.c: Remove file.
10792 * hpread.h: Remove file.
10793
10794 * hpread.c: Merge all contents of hp-psymtab-read.c,
10795 hp-symtab-read.c and hpread.h into this file, as it was prior to
10796 January 1999.
10797
10798 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
10799 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
10800 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
10801 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
10802
10803 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
10804
10805 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
10806 fill_gregset): Call gdbarch_tdep() just once, assign result to
10807 variable and use that, instead of calling the function several
10808 times.
10809
10810 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
10811
10812 * configure.host: Accept sparcv9 as alias for sparc64.
10813 * configure.tgt: Likewise.
10814
10815 2002-01-22 Kevin Buettner <kevinb@redhat.com>
10816
10817 * solib-aix5.c (build_so_list_from_mapfile)
10818 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
10819 arguments is not reversed.
10820 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
10821 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
10822
10823 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
10824
10825 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
10826 modified version of obsolete sh_fetch_pseudo_register.
10827 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
10828 (sh4_register_read): New function.
10829 (sh_pseudo_register_write): New function. Renamed and modified
10830 version of obsolete sh_store_pseudo_register.
10831 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
10832 (sh4_register_write): New function.
10833 (sh_gdbarch_init): Remove setting of gdbarch function
10834 fetch_pseudo_register and store_pseudo_register. Remove setting of
10835 register_convert_to_raw, register_convert_to_virtual,
10836 register_convertible.
10837 (sh_sh4_register_convertible): Delete. No longer needed. All is
10838 taken care by architecture specific functions
10839 register_read/register_write.
10840 (sh_sh4_register_convert_to_virtual): Make static.
10841 (sh_sh4_register_convert_to_raw): Ditto.
10842
10843 2002-01-22 Andrew Cagney <ac131313@redhat.com>
10844
10845 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
10846 (floatformat_is_nan, floatformat_mantissa): Ditto.
10847
10848 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
10849 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
10850 builtin_type_ieee_double_little,
10851 builtin_type_ieee_double_littlebyte_bigword,
10852 builtin_type_m68881_ext, builtin_type_i960_ext,
10853 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
10854 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
10855 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
10856 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
10857
10858 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
10859
10860 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
10861 parameter. Set frameless flag if it exists and depended of
10862 whether the scanned function is frameless or not.
10863 (xstormy16_skip_prologue): If function is frameless, return
10864 result of xstormy16_scan_prologue().
10865 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
10866 call.
10867
10868 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
10869
10870 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
10871 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
10872 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
10873 sh_sh4_register_byte, sh_sh4_register_raw_size,
10874 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
10875 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
10876 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
10877 sh_store_pseudo_register, sh_do_pseudo_register): Call
10878 gdbarch_tdep() just once, assign result to variable and use that,
10879 instead of calling the function several times.
10880
10881 2002-01-20 Mark Kettenis <kettenis@gnu.org>
10882
10883 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
10884 macros instead of LAST_FPU_CTRL_REGNUM.
10885 (store_register): Likewise.
10886
10887 2002-01-21 Jim Blandy <jimb@redhat.com>
10888
10889 * infcmd.c (run_command): Check that the `exec' target layer's BFD
10890 is up-to-date before running the program, not just when a program
10891 exits.
10892
10893 2002-01-21 Fred Fish <fnf@redhat.com>
10894
10895 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
10896 when we have found all instructions we are looking for.
10897
10898 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
10899
10900 * arm-tdep.c (arm_register_name): New function.
10901 (arm_registers_names): Make static.
10902 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
10903 (arm_register_name): Declare.
10904 (REGISTER_NAME): Use it.
10905
10906 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
10907 Kevin Buettner <kevinb@redhat.com>
10908
10909 Convert arm targets to new FRAME interface.
10910 * arm-tdep.c (struct frame_extra_info): Remove fsr.
10911 (arm_frame_find_save_regs): Delete.
10912 (arm_frame_init_saved_regs): New.
10913 (arm_init_extra_frame_info): Alloacte saved_regs as required.
10914 Allocate extra_info as required. Convert all uses of fsr.regs
10915 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
10916 to use extra_info.
10917 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
10918 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
10919 (check_prologue_cache, save_prologue_cache): Likewise.
10920 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
10921 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
10922 (FRAME_FIND_SAVED_REGS): Delete.
10923 (arm_frame_find_saved_regs): Delete prototype.
10924 (arm_frame_init_saved_regs): New prototype.
10925 (FRAME_INIT_SAVED_REGS): Define.
10926
10927 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10928
10929 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
10930
10931 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10932
10933 From Jeff Law <law@redhat.com>:
10934 * infttrace.c: Include <sys/pstat.h>.
10935 (child_pid_to_exec_file): Revamp. Use pstat call to get the
10936 exec file if the ttrace equivalent fails.
10937
10938 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10939
10940 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
10941 (closeLogFile): Ditto.
10942
10943 2002-01-20 Michael Chastain <mec@shout.net>
10944
10945 * top.c (print_gdb_version): Bump copyright year to 2002.
10946
10947 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10948
10949 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
10950 Zannoni and Eli Zaretskii.
10951
10952 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
10953
10954 * buildsym.c: Update copyright years.
10955 * c-typeprint.c: Likewise.
10956 * dwarf2read.c: Likewise.
10957 * f-typeprint.c: Likewise.
10958 * gdbtypes.c: Likewise.
10959 * gdbtypes.h: Likewise.
10960 * hp-symtab-read.c: Likewise.
10961 * hpread.c: Likewise.
10962 * mdebugread.c: Likewise.
10963 * p-typeprint.c: Likewise.
10964
10965 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10966
10967 * remote-sim.c (gdbsim_open): Simplify code testing the macro
10968 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
10969 byte-order selectable.
10970 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
10971 * arch-utils.c: Ditto.
10972 (set_endian): Ditto.
10973 (set_endian_from_file): Ditto.
10974 * gdbserver/low-sim.c (create_inferior): Ditto.
10975 * gdbarch.sh: Ditto.
10976 * gdbarch.h: Re-generate.
10977 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10978 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
10979 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
10980 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10981 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10982 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10983 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
10984 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
10985 macro definition.
10986 * config/mips/tm-wince.h: Remove #undef of macro
10987 TARGET_BYTE_ORDER_SELECTABLE.
10988 * config/sh/tm-wince.h: Ditto.
10989
10990 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
10991
10992 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
10993 member function fields. Add accessor macro
10994 TYPE_FN_FIELD_ARTIFICIAL.
10995 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
10996 * c-typeprint.c (c_type_print_base): Skip artificial member
10997 functions.
10998
10999 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
11000
11001 * f-typeprint.c: Delete unused function f_type_print_args.
11002 * p-typeprint.c: Delete unused function pascal_type_print_args.
11003
11004 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
11005
11006 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
11007 comment. Add ``artificial'' to ``union field_location''.
11008
11009 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
11010
11011 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
11012 * mdebugread.c (parse_symbol): Likewise.
11013 * stabsread.c (define_symbol): Likewise.
11014 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
11015 initializing TYPE_FIELD_BITPOS to n (obsolete).
11016 (hpread_doc_function_type): Likewise.
11017 * hpread.c (hpread_function_type): Likewise.
11018
11019 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11020
11021 * configure.in (host_makefile_frag): Only require a host makefile
11022 fragment when a native build.
11023 * configure: Re-generate.
11024
11025 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11026
11027 * doublest.h (floatformat_from_type): Declare.
11028 * doublest.c (floatformat_from_type): New function.
11029 (convert_typed_floating): Use.
11030
11031 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
11032 call to function floatformat_from_type.
11033
11034 * gdbarch.sh (IEEE_FLOAT): Delete.
11035 * gdbarch.h, gdbarch.c: Re-generate.
11036 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
11037 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
11038 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
11039 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
11040 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
11041 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
11042 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
11043 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
11044 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
11045 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
11046 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
11047 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
11048
11049 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
11050 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
11051 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
11052 * sh-tdep.c (sh_gdbarch_init): Ditto.
11053 * mips-tdep.c (mips_gdbarch_init): Ditto.
11054 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11055 * cris-tdep.c (cris_gdbarch_init): Ditto.
11056
11057 2002-01-20 Jiri Smid <smid@suse.cz>
11058
11059 * configure.host, configure.tgt: Support x86-64.
11060 * NEWS: Note new target x86-64.
11061
11062 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
11063 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
11064 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
11065 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
11066 x86-64-linux-nat.o): Fix dependencies.
11067
11068 2002-01-19 Andrew Cagney <ac131313@redhat.com>
11069
11070 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
11071 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
11072 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
11073 * config/sparc/xm-sun4os4.h: Delete file.
11074 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
11075
11076 2002-01-19 Andrew Cagney <ac131313@redhat.com>
11077
11078 * config/sparc/sparclynx.mh (XM_FILE): Delete.
11079 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
11080 * config/m68k/m68klynx.mh (XM_FILE): Delete.
11081 * config/i386/i386lynx.mh (XM_FILE): Delete.
11082 * config/rs6000/xm-rs6000ly.h: Delete file.
11083 * config/sparc/xm-sparclynx.h: Delete file.
11084 * config/m68k/xm-m68klynx.h: Delete file.
11085 * config/i386/xm-i386lynx.h: Delete file.
11086 * config/xm-lynx.h: Delete file.
11087 * config/djgpp/fnchange.lst: Update.
11088
11089 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11090
11091 * alpha-tdep.c (alpha_register_byte): New function.
11092 (alpha_register_raw_size): Ditto.
11093 (alpha_register_virtual_size): Ditto.
11094 (alpha_skip_prologue_internal): Renamed from
11095 alpha_skip_prologue.
11096 (alpha_skip_prologue): New version that calls
11097 alpha_skip_prologue_internal.
11098 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
11099 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
11100 second argument from alpha_skip_prologue.
11101 (REGISTER_BYTE): Use alpha_register_byte.
11102 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
11103 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
11104 (FRAMELESS_FUNCTION_INVOCATION): Use
11105 generic_frameless_function_invocation_not.
11106 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
11107 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
11108
11109 2002-01-19 Andrew Cagney <ac131313@redhat.com>
11110
11111 * config/mips/xm-news-mips.h: Delete file.
11112 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
11113
11114 * config/m88k/xm-m88k.h: Delete file.
11115 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
11116 * config/m88k/xm-delta88v4.h: Ditto.
11117 * config/m88k/xm-delta88.h: Ditto.
11118
11119 * config/alpha/xm-fbsd.h: Delete file.
11120 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
11121
11122 * config/sparc/xm-sparc.h: Delete file.
11123 * Makefile.in (xm-sun4os4.h): Delete dependency.
11124 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
11125 * config/sparc/xm-sun4os4.h: Ditto.
11126 * config/sparc/xm-linux.h: Ditto.
11127
11128 * config/i386/xm-windows.h: Delete file.
11129
11130 2002-01-19 Andrew Cagney <ac131313@redhat.com>
11131
11132 * utils.c: Include <sys/param.h> for MAXPATHLEN.
11133 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
11134
11135 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11136
11137 * alpha-tdep.c (alpha_call_dummy_words): New.
11138 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
11139 (CALL_DUMMY_P): Define.
11140 (CALL_DUMMY_WORDS): Define.
11141 (SIZEOF_CALL_DUMMY_WORDS): Define.
11142
11143 2002-01-19 Per Bothner <per@bothner.com>
11144
11145 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
11146 isn't NULL, which can happen with some gcj-3.x-produced code.
11147
11148 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11149
11150 * alpha-tdep.c (alpha_register_virtual_type): New function.
11151 (alpha_init_frame_pc_first): Ditto.
11152 (alpha_fix_call_dummy): Ditto.
11153 (alpha_store_struct_return): Ditto.
11154 (alpha_extract_struct_value_address): Ditto.
11155 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
11156 alpha_register_virtual_type.
11157 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
11158 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
11159 alpha_extract_struct_value_address.
11160 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
11161 (INIT_FRAME_PC): Use init_frame_pc_noop.
11162 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
11163
11164 2002-01-19 Mark Kettenis <kettenis@gnu.org>
11165
11166 * i386gnu-nat.c: Include "i386-tdep.h".
11167 (fetch_fpregs): Simplify code dealing with uninitialized floating
11168 point states such that it doesn't require FP7_REGNUM.
11169
11170 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11171
11172 * alpha-tdep.c (frame_extra_info): New.
11173 (alpha_find_saved_regs): Make static. Use
11174 frame->extra_info.
11175 (alpha_frame_init_saved_regs): New function.
11176 (alpha_frame_saved_pc): Use frame->extra_info.
11177 (temp_saved_regs): Don't declare as struct frame_saved_regs.
11178 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
11179 (init_extra_frame_info): Rename to...
11180 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
11181 (alpha_print_extra_frame_info): New function.
11182 (alpha_frame_locals_address): Ditto.
11183 (alpha_frame_args_address): Ditto.
11184 (alpha_pop_frame): Use frame->extra_info.
11185 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
11186 alpha_frame_args_address.
11187 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
11188 (alpha_find_saved_regs): Remove prototype.
11189 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
11190 (EXTRA_FRAME_INFO): Remove.
11191 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
11192 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
11193
11194 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11195
11196 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
11197 (alpha_cannot_fetch_register): Ditto.
11198 (alpha_cannot_store_register): Ditto.
11199 (alpha_register_convertible): Ditto.
11200 (alpha_use_struct_convention): Ditto.
11201 * config/alpha/tm-alpha.h: Update copyright years.
11202 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
11203 (INNER_THAN): Use core_addr_lessthan.
11204 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
11205 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
11206 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
11207 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
11208 (FRAME_CHAIN): Remove unnecessary cast.
11209
11210 2002-01-18 Andrew Cagney <ac131313@redhat.com>
11211
11212 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
11213 obsolete.
11214
11215 2002-01-18 Andrew Cagney <ac131313@redhat.com>
11216
11217 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
11218 * monitor.c, remote-array.c, remote-bug.c: Ditto.
11219 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
11220 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
11221 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
11222 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
11223 * x86-64-linux-nat.c: Ditto.
11224
11225 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11226
11227 * alpha-tdep.c (alpha_register_name): New function.
11228 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
11229 (REGISTER_NAME): Define.
11230
11231 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11232
11233 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
11234
11235 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11236
11237 * alpha-tdep.c: Update copyright years.
11238 (alpha_next_pc): New function.
11239 (alpha_software_single_step): Ditto.
11240 * config/alpha/tm-alpha.h: Add prototype for
11241 alpha_software_single_step.
11242
11243 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11244
11245 * alphabsd-nat.c: Update copyright years.
11246 (fill_gregset): Use regcache_collect.
11247 (fill_fpregset): Likewise.
11248 (fetch_inferior_registers): Only fetch integer registers
11249 if requested to do so.
11250 (store_inferior_registers): Only store integer registers
11251 if requested to do so.
11252
11253 2002-01-17 Andrew Cagney <ac131313@redhat.com>
11254
11255 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
11256 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
11257 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
11258 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
11259 * config/alpha/fbsd.mh (XDEPFILES): Delete.
11260 * config/arm/linux.mh (XDEPFILES): Delete.
11261 * config/arm/nbsd.mh (XDEPFILES): Delete.
11262 * config/i386/i386dgux.mh (XDEPFILES): Delete.
11263 * config/i386/i386sol2.mh (XDEPFILES): Delete.
11264 * config/i386/i386m3.mh (XDEPFILES): Delete.
11265 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
11266 * config/i386/i386gnu.mh (XDEPFILES): Delete.
11267 * config/i386/fbsd.mh (XDEPFILES): Delete.
11268 * config/i386/i386bsd.mh (XDEPFILES): Delete.
11269 * config/i386/i386sco5.mh (XDEPFILES): Delete.
11270 * config/i386/i386v4.mh (XDEPFILES): Delete.
11271 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
11272 * config/i386/i386sco4.mh (XDEPFILES): Delete.
11273 * config/i386/i386aix.mh (XDEPFILES): Delete.
11274 * config/i386/go32.mh (XDEPFILES): Delete.
11275 * config/i386/cygwin.mh (XDEPFILES): Delete.
11276 * config/i386/i386lynx.mh (XDEPFILES): Delete.
11277 * config/i386/i386mach.mh (XDEPFILES): Delete.
11278 * config/i386/i386v32.mh (XDEPFILES): Delete.
11279 * config/i386/linux.mh (XDEPFILES): Delete.
11280 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
11281 * config/i386/ncr3000.mh (XDEPFILES): Delete.
11282 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
11283 * config/i386/i386sco.mh (XDEPFILES): Delete.
11284 * config/i386/i386v.mh (XDEPFILES): Delete.
11285 * config/i386/nbsd.mh (XDEPFILES): Delete.
11286 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
11287 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
11288 * config/i386/symmetry.mh (XDEPFILES): Delete.
11289 * config/i386/obsd.mh (XDEPFILES): Delete.
11290 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
11291 * config/ia64/linux.mh (XDEPFILES): Delete.
11292 * config/ia64/aix.mh (XDEPFILES): Delete.
11293 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
11294 * config/m68k/dpx2.mh (XDEPFILES): Delete.
11295 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
11296 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
11297 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
11298 * config/m68k/linux.mh (XDEPFILES): Delete.
11299 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
11300 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
11301 * config/m68k/nbsd.mh (XDEPFILES): Delete.
11302 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
11303 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
11304 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
11305 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
11306 * config/m88k/delta88.mh (XDEPFILES): Delete.
11307 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
11308 * config/m88k/m88k.mh (XDEPFILES): Delete.
11309 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
11310 * config/mips/linux.mh (XDEPFILES): Delete.
11311 * config/mips/irix6.mh (XDEPFILES): Delete.
11312 * config/mips/irix5.mh (XDEPFILES): Delete.
11313 * config/mips/irix4.mh (XDEPFILES): Delete.
11314 * config/mips/irix3.mh (XDEPFILES): Delete.
11315 * config/mips/decstation.mh (XDEPFILES): Delete.
11316 * config/mips/mipsm3.mh (XDEPFILES): Delete.
11317 (NATDEPFILES): Move core-aout.o to here.
11318 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
11319 * config/pa/hpux1020.mh (XDEPFILES): Delete.
11320 * config/pa/hppabsd.mh (XDEPFILES): Delete.
11321 * config/pa/hppahpux.mh (XDEPFILES): Delete.
11322 * config/pa/hpux11w.mh (XDEPFILES): Delete.
11323 * config/pa/hppaosf.mh (XDEPFILES): Delete.
11324 * config/pa/hpux11.mh (XDEPFILES): Delete.
11325 * config/powerpc/aix.mh (XDEPFILES): Delete.
11326 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
11327 * config/powerpc/linux.mh (XDEPFILES): Delete.
11328 * config/romp/rtbsd.mh: Rename XDEPFILES.
11329 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
11330 * config/rs6000/aix4.mh (XDEPFILES): Delete.
11331 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
11332 * config/s390/s390.mh (XDEPFILES): Delete.
11333 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
11334 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
11335 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
11336 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
11337 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
11338 * config/sparc/nbsd.mh (XDEPFILES): Delete.
11339 * config/sparc/linux.mh (XDEPFILES): Delete.
11340 * config/vax/vaxult.mh (XDEPFILES): Delete.
11341 * config/vax/vaxult2.mh (XDEPFILES): Delete.
11342 * Makefile.in (DEPFILES): Remove XDEPFILES.
11343
11344 2002-01-17 Andrew Cagney <ac131313@redhat.com>
11345
11346 * utils.c (internal_verror): Fix comments, default is yes not no.
11347 Update queries to match. Default to quit and dump core.
11348
11349 2002-01-17 Andrew Cagney <ac131313@redhat.com>
11350
11351 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
11352 copyright.
11353 * defs.h, event-top.c, gdbcmd.h: Ditto.
11354 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
11355 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
11356 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
11357 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
11358 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
11359 * mi/mi-main.c:Ditto.
11360
11361 * stack.c, symfile.c: Update copyright.
11362
11363 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
11364
11365 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
11366 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
11367 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
11368 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
11369
11370 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
11371
11372 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
11373 * gdbserver/low-lynx.c (myattach): Likewise.
11374 * gdbserver/low-nbsd.c (myattach): Likewise.
11375 * gdbserver/low-sim.c (myattach): Likewise.
11376 * gdbserver/low-sparc.c (myattach): Likewise.
11377 * gdbserver/low-sun3.c (myattach): Likewise.
11378
11379 * gdbserver/low-linux.c (myattach): New function.
11380
11381 * gdbserver/server.c (attach_inferior): New function.
11382 (main): Handle "--attach".
11383
11384 2002-01-16 Andrew Cagney <ac131313@redhat.com>
11385
11386 * MAINTAINERS (language support): Daniel Jacobwitz is C++
11387 maintainer.
11388
11389 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
11390
11391 * c-typeprint.c (is_type_conversion_operator): Add additional
11392 check for non-conversion operators.
11393
11394 2002-01-15 Michael Snyder <msnyder@redhat.com>
11395
11396 * linux-proc.c: Add "info proc" command, a la procfs.c.
11397 (read_mapping): New function, abstract and re-use code.
11398 (linux_find_memory_regions): Use new func read_mapping.
11399 (linux_info_proc_cmd): New function, implement "info proc".
11400 (_initialize_linux_proc): Add new command "info proc".
11401
11402 2002-01-15 Michael Snyder <msnyder@redhat.com>
11403
11404 * symfile.c (generic_load): Use bfd_map_over_sections method
11405 instead of manipulating bfd structure members directly.
11406 (add_section_size_callback): New function, bfd sections callback
11407 used by generic_load.
11408 (load_sections_callback): New function, bfd sections callback
11409 used by generic_load.
11410
11411 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
11412
11413 [Based on work by Jim Blandy]
11414 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
11415 (builtin_type_vec128): Export.
11416 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
11417 types.
11418 (builtin_type_vec128): New builtin type for 128 bit vector
11419 registers.
11420 (build_gdbtypes): Initialize builtin_type_v16qi and
11421 builtin_type_v8hi. Create the vec128 register builtin type
11422 structure.
11423 (build_builtin_type_vec128): New function.
11424 (_initialize_gdbtypes): Register builtin_type_v16qi and
11425 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
11426 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
11427 AltiVec register to new builtin type.
11428
11429 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
11430
11431 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
11432 to make_cv_type.
11433
11434 2002-01-14 Andrew Cagney <ac131313@redhat.com>
11435
11436 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
11437 CLEAN_UP_REGISTER_VALUE.
11438 * regcache.c (supply_register): Update only call.
11439
11440 2002-01-14 Andrew Cagney <ac131313@redhat.com>
11441
11442 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
11443 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
11444 a29k-*-vxworks* targets as obsolete.
11445
11446 2002-01-14 Michael Snyder <msnyder@redhat.com>
11447
11448 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
11449 until we can resolve portability issues.
11450 * gregset.h: Remove references to fpxregs.
11451 * gcore.c (gcore_command): Initialize note_sec to NULL.
11452
11453 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11454
11455 * signals.c (target_signal_to_name): Rewrite. Only use
11456 signals[].name when in bounds and non-NULL.
11457
11458 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11459
11460 From Petr Ledvina <ledvinap@kae.zcu.cz>:
11461 * signals.c (target_signal_to_name): Verify that SIG is within the
11462 bounds of the signals array.
11463
11464 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11465
11466 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
11467
11468 2002-01-13 Keith Seitz <keiths@redhat.com>
11469
11470 * stack.c (print_frame_info_base): Print the frame's pc
11471 only if when print_frame_info_listing_hook is not defined.
11472
11473 2002-01-13 Keith Seitz <keiths@redhat.com>
11474
11475 * varobj.c (varobj_set_value): Make sure that there were no
11476 errors evaluating the object before attempting to set its
11477 value.
11478 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
11479 so this offset adjustment is no longer necessary.
11480 (create_child): Don't set the error flag if the child is
11481 a CPLUS_FAKE_CHILD.
11482 (value_of_child): If value_fetch_lazy fails, return NULL
11483 so that callers will be notified that an error occurred.
11484 (c_value_of_variable): Delay check of variable's validity
11485 until later. We actually want all structs and unions to have
11486 the value "{...}".
11487 Do not return "???" for variables which could not be evaluated.
11488 This error condition must be returned to the caller so that it
11489 can get the error condition from gdb.
11490 (cplus_name_of_child): Adjust index for vptr before figuring
11491 out the name of the child.
11492 (cplus_value_of_child): If a child's (real) parent is not valid,
11493 don't even bother trying to give a value for it. Just return
11494 an error. Change all instances in this function.
11495 (cplus_type_of_child): If our parent is one of the "fake"
11496 parents, we need to get at the type of the real parent, and
11497 derive the child's true type using this information.
11498
11499 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11500
11501 From 2002-01-09 John Marshall <johnm@falch.net>:
11502 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
11503 sources.redhat.com, and tweak some related URLs which had
11504 suffered from linkrot.
11505
11506 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11507
11508 From Jeff law:
11509 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
11510 structures passed in registers.
11511
11512 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
11513
11514 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
11515 white space which prevented compilation. Reported by DSK
11516 <dsk@student.unsw.edu.au>.
11517
11518 2002-01-11 Michael Snyder <msnyder@redhat.com>
11519
11520 * symfile.c (build_section_addr_info_from_section_tab):
11521 Use bfd access method instead of manipulating bfd directly.
11522 (syms_from_objfile): Ditto.
11523 (simple_overlay_update_1): Ditto.
11524 (simple_overlay_update): Ditto.
11525 (generic_load): Ditto.
11526 (overlay_unmapped_address): FIXME comment, bfd access methods.
11527 (sections_overlap): FIXME comment, bfd access methods.
11528 (pc_in_mapped_range): FIXME comment, bfd access methods.
11529 (pc_in_unmapped_range): FIXME comment, bfd access methods.
11530 (section_is_mapped): FIXME comment, bfd access methods.
11531 (section_is_overlay): FIXME comment, bfd access methods.
11532
11533 * symfile.c (generic_load): Whitespace and long line cleanups.
11534 Remove duplicate variable, change several local variables to
11535 more appropriate data types.
11536 (print_transfer_performance): Use %lu instead of %ld for ulongs.
11537
11538 2002-01-12 Andrew Cagney <ac131313@redhat.com>
11539
11540 From Peter Schauer:
11541 * language.c (longest_local_hex_string_custom): Use phex_nz to
11542 convert NUM to a hex string.
11543
11544 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
11545
11546 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
11547 the function.
11548 Update Copyright year.
11549
11550 2002-01-12 Andrew Cagney <ac131313@redhat.com>
11551
11552 * language.c (longest_raw_hex_string): Delete unused function.
11553
11554 2002-01-11 Petr Sorfa <petrs@caldera.com>
11555
11556 * MAINTAINERS (write-after-approval): Add myself.
11557 * dwarf2read.c (read_tag_string_type): Handling of
11558 DW_AT_byte_size.
11559 (read_tag_string_type): FORTRAN fix to prevent propagation of
11560 first string size.
11561 (set_cu_language): Handling of DW_LANG_Fortran95
11562
11563 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
11564
11565 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
11566 GETPID(inferior_ptid).
11567 (store_inferior_registers): Likewise.
11568
11569 2002-01-10 Jason Merrill <jason@redhat.com>
11570
11571 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
11572 Fix DW_OP_minus.
11573
11574 2002-01-10 Andrew Cagney <ac131313@redhat.com>
11575
11576 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
11577 and bfd/elf32-sh-nbsd.c.
11578
11579 2002-01-10 Michael Snyder <msnyder@redhat.com>
11580
11581 * NEWS: Mention --pid and corefile/proc-id behavior change.
11582
11583 * Makefile.in: Add rules for gcore.o and linux-proc.o.
11584 * gcore.c: Include cli/cli-decode.h instead of command.h.
11585
11586 * main.c (captured_main): Add new command line option "--pid".
11587 If the second command line argument (following the symbol-file)
11588 begins with a digit, try to attach to it before trying to open
11589 it as a corefile.
11590 (print_gdb_help): Document the "--pid" argument.
11591
11592 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
11593
11594 * completer.c (command_completer): New function.
11595
11596 * completer.h <command_completer>: Add prototype.
11597
11598 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
11599 completer for the "help" command.
11600
11601 2002-01-09 Jason Merrill <jason@redhat.com>
11602
11603 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
11604
11605 2002-01-09 Michael Snyder <msnyder@redhat.com>
11606
11607 * i386-linux-nat.c (fill_fpxregset): Make global.
11608 (store_fpxregset): Ditto.
11609
11610 * gregset.h (gdb_fpxregset_t): Define.
11611 (supply_fpxregset): Prototype.
11612 (fill_fpxregset): Prototype.
11613
11614 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
11615
11616 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
11617
11618 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
11619 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
11620 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
11621
11622 2002-01-09 Andrew Cagney <ac131313@redhat.com>
11623
11624 * MAINTAINERS: Update target maintainer rules so that any
11625 Maintainer can approve a tested patch for a maintenance-only
11626 target.
11627
11628 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
11629
11630 * MAINTAINERS (write-after-approval): Add myself.
11631
11632 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
11633 IN_SIGTRAMP.
11634
11635 2002-01-08 Michael Snyder <msnyder@redhat.com>
11636
11637 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
11638 real name of the executable, rather than the /proc name.
11639
11640 2002-01-03 Michael Snyder <msnyder@redhat.com>
11641
11642 Implement a "generate-core-file" command in gdb, save target state.
11643 * gcore.c: New file. Implement new command 'generate-core-file'.
11644 Save a corefile image of the current state of the inferior.
11645 * linux-proc.c: Add linux-specific code for saving corefiles.
11646 * target.h (struct target_ops): Add new target vectors for saving
11647 corefiles; to_find_memory_regions and to_make_corefile_notes.
11648 (target_find_memory_regions): New macro.
11649 (target_make_corefile_notes): New macro.
11650 * target.c (update_current_target): Inherit new target methods.
11651 (dummy_find_memory_regions): New place-holder method.
11652 (dummy_make_corefile_notes): New place-holder method.
11653 (init_dummy_target): Initialize new dummy target vectors.
11654 * exec.c (exec_set_find_memory_regions): New function.
11655 Allow the exec_ops vector for memory regions to be taken over.
11656 (exec_make_note_section): New function, target vector method.
11657 * defs.h (exec_set_find_memory_regions): Export prototype.
11658 * procfs.c (proc_find_memory_regions): New function, corefile method.
11659 (procfs_make_note_section): New function, corefile method.
11660 (init_procfs_ops): Set new target vector pointers.
11661 (find_memory_regions_callback): New function.
11662 (procfs_do_thread_registers): New function.
11663 (procfs_corefile_thread_callback): New function.
11664 * sol-thread.c (sol_find_memory_regions): New function.
11665 (sol_make_note_section): New function.
11666 (init_sol_thread_ops): Initialize new target vectors.
11667 * inftarg.c (inftarg_set_find_memory_regions): New function.
11668 Allow to_find_memory_regions vector to be taken over.
11669 (inftarg_set_make_corefile_notes): New function.
11670 Allow to_make_corefile_notes vector to be taken over.
11671 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
11672 interface layer if not target_has_execution (may be a corefile).
11673 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
11674 * config/sparc/sun4sol2.mh: Ditto.
11675 * config/alpha/alpha-linux.mh: Ditto.
11676 * config/arm/linux.mh: Ditto.
11677 * config/i386/x86-64linux.mh: Ditto.
11678 * config/ia64/linux.mh: Ditto.
11679 * config/m68k/linux.mh: Ditto.
11680 * config/mips/linux.mh: Ditto.
11681 * config/powerpc/linux.mh: Ditto.
11682 * config/sparc/linux.mh: Ditto.
11683
11684 2002-01-07 Michael Snyder <msnyder@redhat.com>
11685
11686 * arm-linux-nat.c: Remove references to regcache.c internal data
11687 (registers[] and register_valid[]).
11688
11689 2002-01-07 Michael Snyder <msnyder@redhat.com>
11690
11691 * linux-proc.c: New file. Implement child_pid_to_exec_file,
11692 so that attaching to a pid will automatically read the process's
11693 symbol file and shlibs.
11694 * Makefile.in: Add rule for linux-proc.o.
11695 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
11696 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
11697 * config/arm/linux.mh: Ditto.
11698 * config/i386/linux.mh: Ditto.
11699 * config/i386/x86-64linux.mh: Ditto.
11700 * config/ia64/linux.mh: Ditto.
11701 * config/m68k/linux.mh: Ditto.
11702 * config/mips/linux.mh: Ditto.
11703 * config/powerpc/linux.mh: Ditto.
11704 * config/sparc/linux.mh: Ditto.
11705
11706 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
11707
11708 * win32-nat.c: Add i386-tdep.h dependency.
11709
11710 2002-01-07 Michael Snyder <msnyder@redhat.com>
11711
11712 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
11713 instead of bfd_get_arch_size. Don't bail out just because
11714 there's no exec_bfd.
11715
11716 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
11717 * p-valprint.c (pascal_object_print_value): Ditto.
11718 * somread.c (som_symtab_read): Ditto.
11719 * symfile.c (simple_free_overlay_region_table): Ditto.
11720 * valops.c (value_assign): Ditto.
11721
11722 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
11723 use tilde_expand and strerror for opening save-tracepoints file.
11724
11725 * thread-db.c (thread_db_new_objfile): Indendation fix.
11726
11727 * infptrace.c (GDB_MAX_ALLOCA): New define.
11728 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
11729 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
11730 can be overridden with whatever value is appropriate to the host).
11731 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
11732 alloca to allocate potentially large buffer.
11733 * rs6000-nat.c (child_xfer_memory): Ditto.
11734 * symm-nat.c (child_xfer_memory): Ditto.
11735 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
11736
11737 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
11738
11739 From Nick Clifton <nickc@redhat.com>
11740 * d10v-tdep.c: Set STACK_START to 0x200bffe.
11741
11742 2002-01-07 Michael Snyder <msnyder@redhat.com>
11743
11744 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
11745 Don't use exec_bfd if it's NULL.
11746
11747 2002-01-06 Mark Kettenis <kettenis@gnu.org>
11748
11749 * valops.c (value_arg_coerce): Fix formatting.
11750
11751 2002-01-06 Andrew Cagney <ac131313@redhat.com>
11752
11753 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
11754 * gnu-nat.c: Ditto.
11755
11756 2002-01-06 Andrew Cagney <ac131313@redhat.com>
11757
11758 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
11759 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
11760 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
11761 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
11762 z8k-coff have not been multi-arched. Update z8k-coff build
11763 status.
11764
11765 2002-01-06 Andrew Cagney <ac131313@redhat.com>
11766
11767 * MAINTAINERS: Mark a29k target as obsolete.
11768 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
11769 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
11770 comments.
11771 * NEWS: Note that a29k targets are obsolete.
11772 * a29k-tdep.c: Mark as obsolete.
11773 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
11774 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
11775 a29k-*-vxworks* targets as obsolete.
11776 * remote-adapt.c: Obsolete.
11777 * remote-eb.c: Obsolete.
11778 * remote-mm.c: Obsolete.
11779 * remote-udi.c: Obsolete.
11780 * config/a29k/a29k-udi.mt: Obsolete.
11781 * config/a29k/a29k.mt: Obsolete.
11782 * config/a29k/tm-a29k.h: Obsolete.
11783 * config/a29k/tm-vx29k.h: Obsolete.
11784 * config/a29k/vx29k.mt: Obsolete.
11785
11786 2002-01-05 Andrew Cagney <ac131313@redhat.com>
11787
11788 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
11789 with BFD_ENDIAN_BIG.
11790
11791 2002-01-05 Andrew Cagney <ac131313@redhat.com>
11792
11793 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
11794 * configure, config.in: Re-generate.
11795 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
11796 * defs.h: Do not include <endian.h>.
11797
11798 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
11799
11800 * acconfig.h (HAVE_PT_GETXMMREGS): New.
11801 * config.in: Regenerate.
11802 * configure.in: Update copyright years.
11803 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
11804 * configure: Regenerate.
11805 * i386bsd-nat.c: Update copyright years.
11806 (fill_gregset): Use regcache_collect.
11807 (fetch_inferior_registers): Only fetch integer registers
11808 if requested to do so. Add support for XMM registers
11809 using PT_GETXMMREGS.
11810 (store_inferior_registers): Only store integer registers
11811 if requested to do so. Add support for XMM registers
11812 using PT_SETXMMREGS.
11813 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
11814 (store_inferior_registers): Remove.
11815 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
11816 (fetch_elfcore_registers): New function.
11817 (i386nbsd_elfcore_fns): New.
11818 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
11819 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
11820 i386bsd-nat.o.
11821 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
11822 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
11823 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
11824 * config/i386/tm-nbsd.h: Update copyright years.
11825 (HAVE_SSE_REGS): Define.
11826 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
11827 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
11828 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
11829 (SIGCONTEXT_PC_OFFSET): Remove.
11830 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
11831
11832 2002-01-05 Andrew Cagney <ac131313@redhat.com>
11833
11834 * configure.tgt: Remove powerpc-*-macos* target.
11835 * config/m68k/xm-mpw.h: Delete file.
11836 * config/xm-mpw.h: Delete file.
11837 * ser-mac.c: Delete file.
11838 * mpw-make.sed: Delete file.
11839 * mpw-config.in: Delete file.
11840 * mac-xdep.c: Delete file.
11841 * mac-gdb.r: Delete file.
11842 * mac-defs.h: Delete file.
11843 * mac-nat.c: Delete file.
11844 * config/powerpc/macos.mh: Delete file.
11845 * config/powerpc/macos.mt: Delete file.
11846 * config/powerpc/nm-macos.h: Delete file.
11847 * config/powerpc/tm-macos.h: Delete file.
11848 * source.c (openp, open_source_file): Remove obsolete code.
11849 * top.c (gdb_readline): Ditto.
11850 * utils.c (query): Ditto.
11851 * event-top.c (display_gdb_prompt): Ditto.
11852 * Makefile.in (ser-mac.o): Delete obsolete target.
11853 * NEWS: Update.
11854
11855 2002-01-04 Andrew Cagney <ac131313@redhat.com>
11856
11857 * defs.h (BIG_ENDIAN): Delete macro definition.
11858 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
11859 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
11860 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
11861 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
11862 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
11863 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
11864 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
11865 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
11866 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
11867 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
11868 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
11869 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
11870 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
11871 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
11872 * gdbarch.c: Re-generate.
11873
11874 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
11875
11876 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
11877 for core files.
11878
11879 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
11880
11881 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
11882
11883 2002-01-04 Andrew Cagney <ac131313@redhat.com>
11884
11885 * value.h (value_ptr): Delete typedef.
11886
11887 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
11888
11889 * i386nbsd-nat.c: Update copyright years.
11890 Include i386-tdep.h.
11891
11892 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
11893
11894 * stabsread.c: Update copyright years.
11895
11896 From Debashis Mahata <debashis.mahata@wipro.com>:
11897 (read_struct_fields): Deal with Sun C compiler erroneous stab
11898 output for structs and unions.
11899 Fix PR gdb/269.
11900
11901 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
11902
11903 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
11904 prototype.
11905
11906 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
11907
11908 * cp-abi.c: Fix whitespace.
11909 (baseclass_offset): New wrapper function.
11910 * cp-abi.h (baseclass_offset): Add prototype.
11911 (struct cp_abi_ops): Add baseclass_offset pointer.
11912
11913 * valops.c (vb_match): Move to...
11914 * gnu-v2-abi.c (vb_match): here.
11915 * valops.c (baseclass_offset): Move to...
11916 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
11917
11918 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
11919
11920 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
11921 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
11922 * hpacc-abi.c (init_hpacc_ops): Likewise.
11923
11924 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
11925
11926 * valops.c (find_overload_match): Accept obj as a
11927 reference parameter. Update it before returning.
11928 * value.h (find_overload_match): Update prototype.
11929 * eval.c (evaluate_subexp_standard): Pass object to
11930 find_overload_match by reference.
11931
11932 2002-01-03 Andrew Cagney <ac131313@redhat.com>
11933
11934 * valarith.c: Replace value_ptr with struct value pointer. Remove
11935 register attribute from value declarations.
11936 * valops.c: Ditto.
11937 * value.h: Ditto.
11938 * scm-lang.c (scm_lookup_name): Ditto.
11939
11940 2002-01-03 Michael Snyder <msnyder@redhat.com>
11941
11942 Abstract the functionality of iterating over mapped memory
11943 regions into a general purpose iterator function.
11944 * procfs.c (iterate_over_mappings): New function, general purpose
11945 iterator for memory sections.
11946 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
11947 (solib_mappings_callback): New function, callback for above.
11948 (info_proc_mappings): Reimpliment using iterate_over_mappings.
11949 (info_mappings_callback): New function, callback for above.
11950
11951 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
11952
11953 2002-01-01 Mark Kettenis <kettenis@gnu.org>
11954
11955 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
11956 * i386-tdep.c: Include "elf-bfd.h".
11957 (process_note_abi_tag_sections): New function.
11958 (i386_gdbarch_init): Add code to recognize various OS/ABI
11959 combinations.
11960
11961 * maint.c (_initialize_maint_cmds): Add missing \ in
11962 string-literal.
11963
11964 For older changes see ChangeLog-2001
11965 \f
11966 Local Variables:
11967 mode: change-log
11968 left-margin: 8
11969 fill-column: 74
11970 version-control: never
11971 End: