(parse_breakpoint_sals): Ignore ObjC method
[binutils-gdb.git] / gdb / ChangeLog
1 2002-10-16 Adam Fedor <fedor@gnu.org>
2
3 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
4 names when matching breakpoints in current file.
5
6 2002-10-16 Kevin Buettner <kevinb@redhat.com>
7
8 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
9 (read_tag_pointer_type): Add address class support.
10 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
11 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
12 New methods.
13 * gdbarch.h, gdbarch.c: Regenerate.
14 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
15 (make_type_with_address_space, recursive_type_dump): Add address
16 class support.
17 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
18 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
19 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
20
21 2002-10-16 Klee Dienes <kdienes@apple.com>
22
23 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
24 to get the last character of a char[] buffer, not
25 name[sizeof(vptr_name)-1].
26
27 2002-10-14 Adam Fedor <fedor@gnu.org>
28
29 * symtab.h: New objc_specific struct.
30 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
31 (SYMBOL_DEMANGLED_NAME): Likewise.
32
33 2002-10-14 Adam Fedor <fedor@gnu.org>
34
35 * symfile.c (init_filename_language_table): Add ObjC file extension.
36
37 2002-10-14 Adam Fedor <fedor@gnu.org>
38
39 * utils.c (puts_filtered_tabular): New function.
40 (fprintf_symbol_filtered): Get ObjC demangled name.
41 * defs.h (puts_filtered_tabular): Declared.
42
43 2002-10-14 Kevin Buettner <kevinb@redhat.com>
44
45 * c-lang.h (c_type_print_varspec_prefix): Delete.
46 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
47 ``need_post_space'' parameter. Adjust all callers.
48
49 2002-10-14 Daniel Jacobowitz <drow@mvista.com>
50
51 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
52 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
53 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
54 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
55
56 2002-10-13 Adam Fedor <fedor@gnu.org>
57
58 * source.c (print_source_lines): Update comments.
59
60 2002-10-13 Adam Fedor <fedor@gnu.org>
61
62 * valops.c (value_of_local): New function.
63 (value_of_this): Use it.
64 * value.h (value_of_local): Declared.
65
66 2002-10-13 Adam Fedor <fedor@gnu.org>
67
68 * parse.c: (length_of_subexp, prefixify_subexp): Handle
69 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
70
71 2002-10-12 Adam Fedor <fedor@gnu.org>
72
73 * language.c (binop_result_type): Add language_objc to case.
74 (integral_type): Likewise.
75 (character_type): Likewise.
76 (string_type): Likewise.
77 (boolean_type): Likewise.
78 (structured_type): Likewise.
79 (binop_type_check): Likewise.
80
81 2002-10-11 Adam Fedor <fedor@gnu.org>
82
83 * printcmd.c (address_info): Print 'self' for ObjC.
84
85 2002-10-11 Adam Fedor <fedor@gnu.org>
86
87 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
88 OP_SELF.
89
90 2002-10-11 Adam Fedor <fedor@gnu.org>
91
92 * language.h (CAST_IS_CONVERSION): Add language_objc.
93
94 2002-10-11 Adam Fedor <fedor@gnu.org>
95
96 * defs.h (enum language): Add language_objc.
97
98 2002-10-11 Klee Dienes <kdienes@apple.com>
99
100 * findvar.c (read_memory_typed_address): New function.
101 * gdbcore.h (read_memory_typed_address): Add prototype.
102 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
103 to read a value destined for a CORE_ADDR, not read_memory_integer.
104 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
105 (f77_get_dynamic_lowerbound): Ditto.
106
107 2002-10-11 Martin M. Hunt <hunt@redhat.com>
108
109 * utils.c (string_to_core_addr): After turning string into
110 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
111 which will do necessary sign-extension, etc.
112
113 2002-10-11 Daniel Jacobowitz <drow@mvista.com>
114
115 * c-exp.y (THIS): Delete token and grammar rule.
116 (yylex): Don't return THIS.
117 * cp-valprint.c (vtbl_ptr_name_old): Delete.
118 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
119 * demangle.c (cplus_markers): Update comment. Put '$'
120 first. Remove CPLUS_MARKER.
121 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
122 * jv-exp.y (THIS): Delete token and grammar rule.
123 (yylex): Don't return THIS.
124 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
125 * objc-exp.y (THIS): Delete token and grammar rule.
126 (yylex): Don't return THIS.
127 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
128 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
129 (read_member_functions): Likewise for opname.
130 (read_tilde_fields): Use is_cplus_marker.
131
132 * defs.h (CPLUS_MARKER): Don't define.
133 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
134 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
135 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
136 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
137 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
138
139 * config/i386/tm-i386v4.h: Delete file.
140 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
141 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
142 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
143 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
144 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
145 * config/i386/i386sco5.mt (TM_FILE): Likewise.
146 * config/i386/i386v4.mt (TM_FILE): Likewise.
147 * config/i386/ncr3000.mt (TM_FILE): Likewise.
148
149 2002-10-10 Marko Mlinar <markom@opencores.org>
150
151 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
152 accidentially not commited 2002-10-09
153 * gdbarch.h, gdbarch.c: Re-generate.
154
155 2002-10-09 Marko Mlinar <markom@opencores.org>
156
157 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
158 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
159 * gdbarch.h, gdbarch.c: Re-generate.
160
161 2002-10-08 Petr Sorfa <petrs@caldera.com>
162
163 Revised and re-submitted by John Wolfe <jlw@caldera.com>
164
165 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
166 so we can work on more than one compilation unit at a time. This
167 helps prepare GDB to handle inter-CU die references.
168 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
169 the code to be defined before struct comp_unit_head.
170 (comp_unit_head): Added new members - offset, cu_head,
171 begin_die, next and dwarf2_abbrevs.
172 (dwarf2_abbrevs): Removed single static var; now member of
173 struct comp_unit_head.
174 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
175 members.
176 (psymtab_to_symtab_1): Changed to work with the new
177 struct comp_unit_head.
178 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
179 constructs the dwarf2_abbrevs[] inside the cu_header.
180 (dwarf2_empty_abbrev_table): Now expects a ptr to a
181 dwarf2_abbrev table to clean up.
182 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
183 handling of dwarf2_abbrevs inside the cu_header.
184 (read_partial_die): Now supports the call to the new
185 dwarf2_lookup_abbrev.
186 (read_full_die): Now supports the call to the new
187 dwarf2_lookup_abbrev.
188
189 2002-10-06 Christopher Faylor <cgf@redhat.com>
190
191 * Makefile.in (install-gdbtk): Add missing continuation backslash to
192 insure that shell variables, such as "transformed_name" are propagated
193 to later shell statements in rule.
194
195 2002-10-06 Mark Kettenis <kettenis@gnu.org>
196
197 * config/i386/nm-i386sco.h: Add protection against
198 multiple-inclusion. Include "i386/nm-i386v.h".
199 (REGISTER_U_ADDR): Remove define.
200 (i386_register_u_addr): Remove prototype.
201
202 2002-10-04 Michael Snyder <msnyder@redhat.com>
203
204 * m32r-stub.c (handle_exception): Make sure exception is "trap"
205 before treating it as a single-step event.
206
207 2002-10-03 Adam Fedor <fedor@gnu.org>
208
209 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
210 (objc_demangle): Remove assignment in if statements, Replace
211 free with xfree.
212 (add_msglist): Likewise.
213 (end_msglist): Likewise.
214 (complare_selectors): Likewise.
215 (selectors_info): Likewise.
216 (compare_classes): Likewise.
217 (classes_info): Likewise.
218 (print_object_command): Likewise.
219 (find_objc_msgcall_submethod): Replace PTR with void *.
220 * objc-lang.h: Remove check for __STDC__.
221
222 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
223
224 * ui-out.h (ui_out_field_fmt_int): New prototype.
225 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
226 of field width and alignment.
227 * stack.c (print_frame_info_base): When printing frame level, use
228 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
229 PR gdb/192
230
231 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
232
233 * MAINTAINERS: Add self to Write After Approval list.
234
235 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
236
237 * infcmd.c (interrupt_target_command_wrapper): Delete.
238 (interrupt_target_command): Make non static.
239 (nofp_registers_info): Make static.
240 * stack.c (return_command_wrapper): Delete.
241 (return_command): Make non static.
242
243 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
244
245 * event-top.c (gdb_setup_readline): New function. Code moved from
246 _initialize_event_loop().
247 (_initialize_event_loop): Call gdb_setup_readline().
248
249 2002-10-02 Andrew Cagney <ac131313@redhat.com>
250
251 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
252 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
253 * gdbarch.h, gdbarch.c: Re-generate.
254
255 2002-10-02 Daniel Jacobowitz <drow@mvista.com>
256
257 Fix PR gdb/778
258 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
259 before recursing.
260 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
261 of fill_in_vptr_fieldno.
262
263 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
264
265 * inferior.h (registers_info, stepi_command, nexti_command,
266 continue_command, interrupt_target_command): Export from infcmd.c.
267 * frame.h (args_info, selected_frame_level_changed_hook,
268 return_command): Export from stack.c.
269 * v850ice.c (stepi_command, nexti_command, continue_command): use
270 prototypes from inferior.h.
271 * tracepoint.c (registers_info, args_info, locals_info): Use
272 prototypes from frame.h and inferior.h.
273 * Makefile.in (mi-main.o): Add dependency on frame.h.
274
275 2002-10-02 Andrew Cagney <ac131313@redhat.com>
276
277 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
278 value in register 3 adjusted by ppc_gp0_regnum.
279
280 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
281
282 2002-10-02 Marko Mlinar <markom@opencores.org>
283
284 * MAINTAINERS: Add myself to the Write After Approval list.
285
286 2002-10-01 Alexandre Oliva <aoliva@redhat.com>
287
288 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
289 of the section for the N64 ABI, fixed.
290
291 * config/mips/tm-irix6.h: Include solib.h.
292
293 2002-10-01 Elena Zannoni <ezannoni@redhat.com>
294
295 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
296 GNU operators.
297
298 2002-10-01 Andrew Cagney <ac131313@redhat.com>
299
300 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
301 and that "mi0" syntax has been removed.
302
303 2002-09-30 David Carlton <carlton@math.stanford.edu>
304
305 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
306 * ppc-sysv-tdep.c: #include "gdb_string.h".
307 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
308 pacify GCC.
309
310 2002-10-01 Andrew Cagney <ac131313@redhat.com>
311
312 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
313 "vrsave"'s register number.
314
315 2002-09-30 Andrew Cagney <ac131313@redhat.com>
316
317 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
318 use frame_unwind_signed_register to obtain the PC.
319 (mips_frame_chain): Handle a generic dummy frame.
320 (mips_init_extra_frame_info): When a generic dummy frame, don't
321 re-compute the frame base.
322 (mips_pop_frame): Handle generic dummy frames.
323 (mips_gdbarch_init): When generic dummy frames, set
324 use_generic_dummy_frames, push_dummy_frame to
325 generic_push_dummy_frame, pc_in_call_dummy to
326 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
327 generic_save_dummy_frame_tos.
328
329 2002-09-30 Andrew Cagney <ac131313@redhat.com>
330
331 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
332 against TOP when TOP was explictly set.
333 (generic_push_dummy_frame): Set TOP to zero.
334
335 2002-09-30 Elena Zannoni <ezannoni@redhat.com>
336
337 * event-loop.c (start_event_loop): Rename variable 'result' to
338 'gdb_result', to avoid conflicts with upcoming intepreters changes.
339
340 2002-09-30 Keith Seitz <keiths@redhat.com>
341
342 * gdb-events.sh (selected_thread_changed): New event.
343 * gdb-events.c: Regenerated.
344 * gdb-events.h: Regenerated.
345
346 2002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
347
348 * MAINTAINERS: Add self to Write After Approval list.
349
350 2002-09-30 Fernando Nasser <fnasser@redhat.com>
351
352 * disasm.c: New file.
353 * disasm.h: New file.
354 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
355 (compare_lines): Ditto.
356 (dump_insns): Ditto.
357 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
358 argument.
359 (do_assembly_only): Ditto.
360 (do_disassembly): Renamed to gdb_disassembly and moved to
361 disasm.c. Sdded uiout argument.
362 * Makefile.in: Add new files. Reorder SFILES list. Update
363 dependencies. Include libgdb.a later in the insight executable.
364
365 2002-09-29 Andrew Cagney <ac131313@redhat.com>
366
367 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
368 bfd/elf64-alpha-fbsd.c.
369
370 2002-09-29 Andrew Cagney <ac131313@redhat.com>
371
372 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
373 i386gnu-tdep.c.
374
375 2002-09-29 Andrew Cagney <ac131313@redhat.com>
376
377 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
378 __FUNCTION__.
379 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
380 function name.
381 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
382 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
383 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
384 (S_msg_sig_post_reply): Ditto.
385
386 2002-09-28 Corinna Vinschen <vinschen@redhat.com>
387
388 * sh-tdep.c (sh_use_struct_convention): Use definition according
389 to ABI.
390 (sh_push_arguments): Store in register with correct endianess.
391 (sh_default_store_return_value): Ditto.
392 (sh_gdbarch_init): Set sizeof long double to 8.
393
394 2002-09-27 Mark Kettenis <kettenis@gnu.org>
395
396 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
397 Fix some whitespace problems.
398
399 2002-09-27 David Carlton <carlton@math.stanford.edu>
400
401 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
402 (mcore-tdep.o): Ditto.
403 (ns32k-tdep.o): Ditto.
404 (ns32knbsd-tdep.o): Ditto.
405 (sh3-rom.o): Ditto.
406 (vax-tdep.o): Ditto.
407 * cris-tdep.c: #include "gdb_string.h"
408 * mcore-tdep.c: Ditto.
409 * ns32k-tdep.c: Ditto.
410 * ns32knbsd-tdep.c: Ditto.
411 * sh3-rom.c: Ditto.
412 * vax-tdep.c: Ditto.
413
414 2002-09-27 David Carlton <carlton@math.stanford.edu>
415
416 * config/djgpp/fnchange.lst: Add entries for
417 gdb/testsuite/gdb.c++/m-static files.
418
419 2002-09-27 Jim Wilson <wilson@redhat.com>
420
421 * MAINTAINERS: Add myself to the Write After Approval list.
422
423 2002-09-26 Martin M. Hunt <hunt@redhat.com>
424
425 * mips-tdep.c (find_proc_desc): Initialize startaddr.
426
427
428 2002-09-26 Andrew Cagney <ac131313@redhat.com>
429
430 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
431 frame.
432
433 2002-09-26 Andrew Cagney <ac131313@redhat.com>
434
435 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
436 (rs6000_struct_return_address): Delete variable.
437 (rs6000_store_struct_return): Update.
438 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
439 deprecated_extract_struct_value_address.
440 (rs6000_frame_align): New function.
441 (rs6000_gdbarch_init): Set frame_align.
442
443 2002-09-26 Andrew Cagney <ac131313@redhat.com>
444
445 From Grace Sainsbury <graces@redhat.com>:
446 * Makefile.in (gdbtk-main.o): New target.
447 (gdb.o): New target.
448 (main_h): Define.
449 (main.o): Update dependencies.
450 (gdb$(EXEEXT)): Add gdb.o.
451 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
452 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
453 (SUBDIR_GDBTK_CLEAN): Set.
454 (install-gdbtk): Install the insight binary.
455 (uninstall-gdbtk): New target.
456 (all-gdbtk, clean-gdbtk): New rule.
457 * top.c (use_windows): Default to zero.
458 * main.c: Include "main.h".
459 (main): Delete.
460 (struct captured_main_args): Delete.
461 (gdb_main): New function.
462 * main.h: New file.
463 * gdb.c: New File.
464
465 2002-09-25 Andrew Cagney <cagney@redhat.com>
466
467 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
468 (frame_map_regnum_to_name): New function.
469 (frame_map_name_to_regnum): New function.
470 * frame.h (frame_map_name_to_regnum): Declare.
471 (frame_map_regnum_to_name): Declare.
472 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
473 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
474 * parse.c: Do not include "builtin-regs.h".
475 (target_map_name_to_register): Delete function.
476 (write_dollar_variable): Use frame_map_name_to_regnum.
477 * parser-defs.h (target_map_name_to_register): Delete declaration.
478 * expprint.c: Include "frame.h".
479 (print_subexp): Use frame_map_regnum_to_name.
480 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
481 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
482
483 2002-09-25 Andrew Cagney <ac131313@redhat.com>
484
485 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
486 wasn't saved, and the next innermost frame is a dummy, return the
487 dummy frame's link register.
488
489 2002-09-24 Jim Blandy <jimb@redhat.com>
490
491 Fix from Paul Breed:
492 * main.c (captured_main): Add a `break' after the case for 'b'.
493
494 2002-09-24 Keith Seitz <keiths@redhat.com>
495
496 * varobj.c (c_type_of_child): Use get_target_type instead
497 of TYPE_TARGET_TYPE.
498
499 2002-09-22 Fernando Nasser <fnasser@redhat.com>
500
501 * source.c (get_current_or_default_source_symtab_and_line): Remove
502 function.
503 (set_default_source_symtab_and_line): New function. Attempts to
504 determine a source file to list lines from if one is not currently
505 defined.
506 (get_current_source_symtab_and_line): Initialize sal.pc and
507 sal.end fields.
508 (set_current_source_symtab_and_line): Mark argument as const.
509 * source.h: Update declarations and comments.
510 * linespec.c (decode_line_1): Replace call to removed routine above.
511 * stack.c (print_frame_info_base): Ditto.
512 * cli/cli-cmds.c (edit_command): Ditto.
513 (list_command): Ditto.
514
515 2002-09-22 Fernando Nasser <fnasser@redhat.com>
516
517 * source.c (get_current_or_default_source_symtab_and_line): Initialize
518 sal.pc and sal.end fields.
519 (get_current_or_default_source_symtab_and_line): Ditto.
520 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
521 so we do not cause a new source symtab to be searched for (reverting an
522 unintentional change from the 2002-09-20 patch).
523 * scm-lang.c (scm_unpac): Ditto.
524
525 2002-09-21 Andrew Cagney <cagney@redhat.com>
526
527 * complaints.c (symfile_explanations): Remove new-line from
528 ``isolated_message''.
529 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
530 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
531
532 2002-09-20 Nick Clifton <nickc@redhat.com>
533
534 * NEWS: Announce that V850EA ISA is no longer supported.
535 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
536
537 2002-09-20 David Carlton <carlton@math.stanford.edu>
538
539 * Makefile.in (c-lang.o): Correct dependencies.
540 (utils.o): Gather dependencies.
541 (charset.o): Move.
542 * c-lang.c: #include "gdb_string.h"
543
544 2002-09-20 Fernando Nasser <fnasser@redhat.com>
545
546 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
547 * cli/cli-cmds.c (list_command): New function. Implements the new
548 cli edit command.
549 (_init_cli_cmds): Add new command definition.
550 * gdb.1: Document edit command.
551 * doc/gdb.texinfo: Document edit command.
552
553 2002-09-20 Fernando Nasser <fnasser@redhat.com>
554
555 * source.c: Make global variables current_source_symtab and
556 current_source_line static.
557 (list_command): Moved to cli/cli-cmds.c.
558 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
559 (get_first_line_listed): New accessor function.
560 (get_lines_to_list): New accessor function.
561 (get_current_source_symtab_and_line): New function. Retrieves the
562 position in the source code that we consider current.
563 (get_current_or_default_source_symtab_and_line): New function.
564 Like the above but attempts to determine a default position if one
565 is not currently defined.
566 (set_current_source_symtab_and_line): New function. Sets the source
567 code position considered current and returns the previously set one.
568 (clear_current_source_symtab_and_line): Reset stored information about
569 a current source line.
570 (_initialize_source): Remove registration for the "list" command and
571 its alias.
572 * source.h: Add declarations for the new functions above.
573 * symtab.h: Remove declarations for the global variables mentioned
574 above.
575 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
576 obtain current source line.
577 * linespec.c (decode_line_1): Ditto.
578 * macroscope.c (default_macro_scope): Ditto.
579 * scm-lang.c (scm_unpac): Ditto.
580 * stack.c (print_frame_info_base): Ditto.
581 * symfile.c (clear_symtab_users): Ditto.
582 * symtab.c (decode_line_spec): Ditto.
583 * cli/cli-cmds.c (list_command): Moved here from source.c.
584 (ambiguous_line_spec): Moved here from source.c.
585 (_init_cli_cmds): Add definition for "list" and its alias.
586 * Makefile.in: Update dependencies.
587
588 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
589
590 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
591 with what gcc thinks is correct.
592
593 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
594
595 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
596 multiple register push instruction.
597
598 2002-09-19 Jim Blandy <jimb@redhat.com>
599
600 Add support for distinct host and target character sets.
601 * charset.c, charset.h: New files.
602 * c-exp.y: #include "charset.h".
603 (yylex): Convert character and string literals to the target
604 character set, before returning them as the semantic value of the
605 token.
606 * c-lang.c: #include "charset.h".
607 (c_emit_char): Use charset-specific methods to recognize
608 characters with backslash escape forms, to decide which characters
609 to print literally and which to print using numeric escape
610 sequences, and to convert target characters to host characters
611 before printing.
612 * utils.c: #include "charset.h".
613 (no_control_char_error): New function.
614 (parse_escape): Use charset-specific methods to recognize
615 backslash escapes, parse `control character' notation, and convert
616 characters from the host character set to the target character set.
617 * configure.in: Set the default host character set.
618 Check where to find iconv, and what its argument types might be.
619 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
620 * Makefile.in (SFILES): List charset.c.
621 (COMMON_OBS): List charset.o.
622 (charset.o): New rule.
623 (charset_h): New header dependency variable.
624 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
625 (LIBICONV): New variable, set by configure.
626 (CLIBS): Include $(LIBICONV) here.
627 * aclocal.m4, config.in, configure: Regenerated.
628
629 2002-09-19 Joel Brobecker <brobecker@gnat.com>
630
631 * ada-exp.y: Add missing semicolons to end rules. Fixes a
632 bison 1.35 warning.
633
634 2002-09-19 Richard Earnshaw <rearnsha@arm.com>
635
636 * gdb_mbuild.sh: New file.
637
638 2002-09-19 Andrew Cagney <ac131313@redhat.com>
639
640 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
641
642 2002-09-18 Andrew Cagney <ac131313@redhat.com>
643
644 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
645 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
646 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
647 valops.c, value.h: Revert previous change.
648
649 2002-09-18 Michael Snyder <msnyder@redhat.com>
650
651 Preliminary support for Objective-C:
652 * defs.h (language_objc): New enum value.
653 (puts_filtered_tabular): Declaration only, exported from utils.c.
654 (skip_quoted): Delete, declared in completer.h.
655 * c-exp.y: Include completer.h.
656 * p-exp.y: Ditto.
657 * jv-exp.y: Ditto.
658 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
659 New operator enum values.
660 * language.h (CAST_IS_CONVERSION): Test for language_objc.
661 * language.c (binop_result_type): Handle language_objc case.
662 (integral_type, character_type, string_type, boolean_type,
663 structured_type, binop_type_check): Ditto.
664 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
665 (struct objc_specific): Add to general_symbol_info.
666 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
667 (SYMBOL_DEMANGLED_NAME): Handle objc case.
668 * parser-defs.h (struct objc_class_str): New struct type.
669 (start_msglist, end_msglist, add_msglist): Declaration only,
670 exported from objc-lang.c.
671 * value.h (value_of_local, value_nsstring,
672 call_function_by_hand_expecting_type): Exported from valops.c.
673 * valops.c (find_function_addr): Export.
674 (call_function_by_hand_expecting_type): New function.
675 (value_of_local): New function.
676 * symfile.c (init_filename_language_table): Add ".m" extension
677 for Objective-C.
678 * utils.c (puts_filtered_tabular): New function.
679 (fprintf_symbol_filtered): Add objc demangling support (disabled).
680 (set/show demangle): Extend help-string to refer to ObjC.
681 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
682 * stabsread.c (symbol_reference_defined): Objective-C symbols
683 may contain colons: make allowances when scanning stabs strings
684 for colons.
685 (objc_find_colon): New function.
686 * printcmd.c (address_info): If language == objc then print
687 "self" instead of "this".
688 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
689 OP_NSSTRING, and OP_SELF.
690 (prefixify_subexp): Ditto.
691 * source.c (print_source_lines): Mention objc in comment.
692 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
693 method names.
694
695 2002-09-18 Andrew Cagney <ac131313@redhat.com>
696
697 * complaints.h: Update copyright.
698 (struct complaints): Declare.
699 (struct complaint): Make `message' constant.
700 (internal_complaint): Declare.
701 (complaint): Declare.
702 (complaint_root): Delete declaration.
703 (symfile_complaints): Delete declaration.
704 (struct complaints): Add opaque declaration.
705 (clear_complaints): Add a complaints parameter.
706 * complaints.c: Update copyright.
707 (enum complaint_series): Define.
708 (complaint_root): Delete.
709 (struct complaints): Define.
710 (complaint_sentinel, symfile_complaint_book): New variables.
711 (symfile_explanations, symfile_complaints): New variables.
712 New variables.
713 (get_complaints): New function.
714 (vcomplaint): New function.
715 (complaint): New function.
716 (internal_complaint): New function.
717 (complain): Call vcomplain with symfile_complaint.
718 (clear_complaints): Rewrite.
719 (_initialize_complaints): Use add_setshow_command.
720 * Makefile.in (complaints.o): Update dependencies.
721 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
722 to call to clear_complaints.
723 (new_symfile_objfile, reread_symbols): Ditto.
724 (oldsyms_complaint): Delete.
725 (empty_symtab_complaint, unknown_option_complaint): Delete.
726 (free_named_symtabs): Use complaint instead of complain.
727
728 2002-09-18 Michael Snyder <msnyder@redhat.com>
729
730 Contributed by Apple Computer, Inc. Merged with current sources
731 by Adam Fedor <fedor@doc.com> [cagney].
732
733 * objc-lang.c: First clean-up round: comments, indentation.
734 * objc-lang.h: Ditto.
735 * objc-lang.y: Ditto.
736
737 2002-09-18 Andrew Cagney <ac131313@redhat.com>
738
739 * maint.c (maintenance_internal_error): Print the parameter as the
740 error message.
741 (maintenance_internal_warning): New function.
742 (_initialize_maint_cmds): Add command `maint internal-warning'.
743
744 * defs.h (internal_warning, internal_vwarning): Declare.
745 * utils.c (struct internal_problem): Define.
746 (internal_vproblem): New function.
747 (internal_warning): New function.
748 (internal_vwarning): New function.
749 (internal_warning_problem, internal_error_problem): New variables.
750 (internal_verror): Just call internal_vproblem.
751
752 2002-09-18 Michael Snyder <msnyder@redhat.com>
753
754 * objc-lang.c: New file, support for Objective-C.
755 Preliminary check-in, not yet integrated into gdb.
756 * objc-lang.h: New file.
757 * objc-exp.y: New file.
758
759 2002-09-18 Andrew Cagney <ac131313@redhat.com>
760
761 * infrun.c (signal_stop_update): Convert definition to ISO C.
762 (signal_print_update): Ditto.
763 (signal_pass_update): Ditto.
764 * inflow.c (terminal_save_ours): Ditto.
765
766 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
767 comments.
768
769 * config/djgpp/fnchange.lst: Handle name clashes between
770 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
771 bfd/coff-tic80.c.
772
773 * i386-linux-tdep.h: Fix tipo.
774
775 2002-09-18 Adam Fedor <fedor@gnu.org>
776
777 * MAINTAINERS: Add myself to the Write After Approval list.
778
779 2002-09-18 Jim Blandy <jimb@redhat.com>
780
781 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
782 texthigh and textlow to reader-specific structs caused
783 objfile_relocate to miss them. This is fixable, but the work that
784 the change was supposed to prepare GDB for never got done anyway.
785
786 2002-09-18 David Carlton <carlton@math.stanford.edu>
787
788 * MAINTAINERS: Alphabetize Write After Approval list.
789
790 2002-09-18 Daniel Jacobowitz <drow@mvista.com>
791
792 Fix PR gdb/709
793 * values.c (value_static_field): Call read_var_value.
794
795 2002-09-18 Andrew Cagney <ac131313@redhat.com>
796
797 * valops.c (hand_function_call): Align the initial stack pointer
798 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
799 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
800 return value.
801 * mips-tdep.c (mips_frame_align): New function.
802 (mips_gdbarch_init): Set frame_align.
803 * gdbarch.sh (FRAME_ALIGN): New method.
804 * gdbarch.h, gdbarch.c: Re-generate.
805
806 2002-09-18 Michal Ludvig <mludvig@suse.cz>
807
808 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
809 registers.
810
811 2002-09-17 Andrew Cagney <ac131313@redhat.com>
812
813 * NEWS: Mention that MIPS $fp behavior changed.
814 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
815 reference to FP_REGNUM.
816 (mipsnbsd_cannot_store_register): Ditto.
817 * mips-linux-nat.c: Update copyright.
818 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
819 (mips_linux_cannot_store_register): Ditto.
820 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
821 * config/mips/tm-mips.h: Update copyright.
822 (FP_REGNUM): Delete macro.
823 (MIPS_REGISTER_NAMES): Replace "fp" with "".
824 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
825 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
826 (mips_r3041_reg_names, mips_r3051_reg_names)
827 (mips_r3081_reg_names): Replace "fp" with "".
828 Fix PR gdb/480.
829
830 2002-09-17 Theodore A. Roth <troth@verinet.com>
831
832 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
833 generic_read_register_dummy() (PR gdb/703).
834 (avr_push_return_address): #if 0 out unused vars.
835 (avr_gdbarch_init): Enable use of avr_push_return_address().
836
837 2002-09-17 Michael Snyder <msnyder@redhat.com>
838
839 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
840 RTE will take care of it.
841
842 2002-09-17 Andrew Cagney <ac131313@redhat.com>
843
844 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
845 invalid, return SP_REGNUM.
846
847 2002-09-17 Michael Snyder <msnyder@redhat.com>
848
849 * mips-tdep.c (mips_pop_frame): Read saved values of floating
850 point registers without sign extension.
851
852 2002-09-17 Andrew Cagney <cagney@redhat.com>
853
854 * blockframe.c (deprecated_read_register_dummy): Rename
855 generic_read_register_dummy.
856 * frame.c (frame_unwind_signed_register): New function.
857 (frame_unwind_unsigned_register): New function.
858 * frame.h (frame_unwind_signed_register): Declare.
859 (frame_unwind_unsigned_register): Declare.
860 (deprecated_read_register_dummy): Rename
861 generic_read_register_dummy.
862
863 * h8300-tdep.c (h8300_frame_chain): Update.
864 (h8300_frame_saved_pc): Update.
865 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
866 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
867 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
868 (s390_frame_chain): Update.
869 * v850-tdep.c (v850_find_callers_reg): Update.
870 (v850_frame_saved_pc): Update.
871 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
872 (m32r_find_callers_reg): Update.
873 (m32r_frame_saved_pc): Update.
874 * sh-tdep.c (sh_find_callers_reg): Update.
875 (sh64_get_saved_pr): Update.
876 (sh_init_extra_frame_info): Update.
877 (sh_init_extra_frame_info): Update.
878 (sh64_init_extra_frame_info): Update.
879 (sh64_init_extra_frame_info): Update.
880 * mcore-tdep.c (mcore_find_callers_reg): Update.
881 (mcore_frame_saved_pc): Update.
882 (mcore_init_extra_frame_info): Update.
883 * i386-tdep.c (i386_frame_saved_pc): Update.
884 * ia64-tdep.c (ia64_frame_saved_pc): Update.
885 (ia64_init_extra_frame_info): Update.
886 (ia64_init_extra_frame_info): Update.
887 * d10v-tdep.c (d10v_frame_saved_pc): Update.
888 * cris-tdep.c (cris_init_extra_frame_info): Update.
889 * avr-tdep.c (avr_frame_chain): Update.
890 (avr_init_extra_frame_info): Update.
891 (avr_frame_saved_pc): Update.
892 * arm-tdep.c (arm_find_callers_reg): Update.
893 (arm_init_extra_frame_info): Update.
894 (arm_frame_saved_pc): Update.
895
896 2002-09-17 Tom Tromey <tromey@redhat.com>
897
898 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
899 is "'".
900
901 2002-09-17 Corinna Vinschen <vinschen@redhat.com>
902
903 * MAINTAINERS: Remove "non multi-arched" text from h8300.
904 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
905 NEXT_PROLOGUE_INSN.
906 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
907 NEXT_PROLOGUE_INSN.
908
909 2002-09-16 Joel Brobecker <brobecker@gnat.com>
910
911 * osfsolib.c: Remove file, replaced by solib-osf.c.
912 * Makefile.in: Remove compilation rules for osfsolib.c.
913
914 2002-09-16 David Carlton <carlton@math.stanford.edu>
915
916 * cp-valprint.c (cp_print_class_method): Correct args to
917 check_stub_method_group.
918
919 2002-09-16 Corinna Vinschen <vinschen@redhat.com>
920
921 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
922 `set architecture'. Unify naming convention of functions.
923 (h8300_skip_prologue): Improve prologue analysis.
924 (h8300_push_arguments): Rewritten to more closely match GCC's
925 bizarre argument-passing behavior, along with the comment describing
926 said behavior.
927 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
928 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
929 sim, remote-e7000.c, remote-hms.c and remote.c
930
931 2002-09-15 Mark Kettenis <kettenis@gnu.org>
932
933 * i386-tdep.c (gdb_print_insn_i386): Removed.
934 (i386_print_insn): New function.
935 (i386_gdbarch_init): Set print_insn to i386_print_insns.
936 (_initialize_i386_tdep): Don't initialize tm_print_insn and
937 tm_print_insn_info.
938
939 2002-09-14 Mark Kettenis <kettenis@gnu.org>
940
941 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
942 zero.
943
944 2002-09-14 Corinna Vinschen <vinschen@redhat.com>
945
946 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
947 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
948 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
949
950 2002-09-13 Christopher Faylor <cgf@redhat.com>
951
952 * win32-nat.c (child_create_inferior): Honor 'tty' command.
953
954 2002-09-13 Daniel Jacobowitz <drow@mvista.com>
955
956 * gdbtypes.c (check_stub_method): Make static.
957 (check_stub_method_group): New function.
958 * gdbtypes.h: Update prototypes.
959 * cp-support.c: New file.
960 * cp-support.h: New file.
961
962 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
963 (update_method_name_from_physname): New function.
964 (read_member_functions): Correct method names for operators
965 and v3 constructors/destructors. Separate v2 constructors and
966 destructors.
967 * Makefile.in (stabsread.o): Update dependencies.
968 (SFILES): Add cp-support.c.
969 (COMMON_OBS): Add cp-support.o.
970 (cp_support_h, cp-support.o): Add.
971
972 * cp-valprint.c (cp_print_class_method): Call
973 check_stub_method_group instead of check_stub_method. Remove
974 extraneous QUITs.
975 * p-valprint.c (pascal_object_print_class_method): Likewise.
976 * valops.c (search_struct_method): Likewise.
977 (find_method_list, value_struct_elt_for_reference): Likewise.
978
979 2002-09-13 Andrew Cagney <cagney@redhat.com>
980
981 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
982 * gdbarch.h, gdbarch.c: Regenerate.
983
984 2002-09-13 Andrew Cagney <ac131313@redhat.com>
985
986 * frame.c (find_saved_register): Delete function.
987 * frame.h (find_saved_register): Delete declaration.
988 Fix PR gdb/631.
989
990 Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
991
992 * mips-tdep.c (read_next_frame_reg): Re-hack using
993 frame_register_unwind.
994
995 Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
996
997 * mips-tdep.c (mips_get_saved_register): Re-hack using
998 frame_register_unwind.
999
1000 2002-09-12 Joel Brobecker <brobecker@gnat.com>
1001
1002 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
1003 vector. Will be useful for Interix.
1004 * gdbarch.h, gdbarch.c: Regenerate.
1005
1006 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
1007 name of the malloc function by NAME_OF_MALLOC.
1008
1009 2002-09-12 Joel Brobecker <brobecker@gnat.com>
1010
1011 * value.h (find_function_in_inferior): Add const keyword to
1012 one of the parameters. Allows us to invoke this function with
1013 a const char *.
1014 * valops.c (find_function_in_inferior): Likewise.
1015
1016 2002-09-12 Joel Brobecker <brobecker@gnat.com>
1017
1018 * exec.c (xfer_memory): Fix compilation warning with old versions
1019 of GCC.
1020 * tracepoint.c (trace_find_tracepoint_command): Likewise.
1021
1022 2002-09-12 David Carlton <carlton@math.stanford.edu>
1023
1024 * symtab.h: Run through gdb_indent.h.
1025 Add 2002 to Copyright year list.
1026
1027 2002-09-12 Alan Modra <amodra@bigpond.net.au>
1028
1029 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
1030 mach constants.
1031 * MAINTAINERS: Add myself to write after approval list.
1032
1033 2002-09-11 J. Brobecker <brobecker@gnat.com>
1034
1035 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
1036
1037 2002-09-11 J. Brobecker <brobecker@gnat.com>
1038
1039 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
1040 Interix.
1041
1042 2002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
1043
1044 * procfs.c (do_detach): Clear current signal, not just fault.
1045 Corrects problem with breakpoint trap signal leaking to detached
1046 process on Tru64.
1047
1048 2002-09-10 Michael Snyder <msnyder@redhat.com>
1049
1050 * buildsym.c (finish_block): Protect against null pointer.
1051
1052 2002-09-10 Andrew Cagney <cagney@redhat.com>
1053
1054 * infcmd.c (default_print_registers_info): Send all output to
1055 ``file'' instead of ``gdb_stdout''.
1056
1057 2002-09-10 Michael Snyder <msnyder@redhat.com>
1058
1059 * mips-tdep.c (mips_extract_struct_value_address): Make val a
1060 LONGEST, and use signed register read (addresses are sign-
1061 extended for mips).
1062
1063 2002-09-10 Stephane Carrez <stcarrez@nerim.fr>
1064
1065 * event-loop.c (gdb_do_one_event): Make public.
1066 * event-loop.h (gdb_do_one_event): Declare.
1067
1068 2002-09-10 Jeff Law <law@redhat.com>
1069
1070 * infttrace.c (child_resume): Simplify and rework to avoid
1071 TT_PROC_CONTINUE.
1072
1073 2002-09-09 Fred Fish <fnf@intrinsity.com>
1074
1075 * printcmd.c (print_scalar_formatted): "len" is the number of
1076 target bytes, NOT the number of target bits.
1077
1078 2002-09-09 Elena Zannoni <ezannoni@redhat.com>
1079
1080 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
1081 * top.c (init_main): Set rl_terminal_name.
1082
1083 2002-09-08 Aidan Skinner <aidan@velvet.net>
1084
1085 * ada-lang.c (ada_array_bound, ada_type_match,
1086 _initialize_ada_language): Fix K&R definitions.
1087 * ada-tasks.c (get_current_task): Fix K&R definitions.
1088 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
1089
1090 2002-09-07 Christopher Faylor <cgf@redhat.com>
1091
1092 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
1093 Add XP.
1094
1095 2002-09-06 Mark Kettenis <kettenis@gnu.org>
1096
1097 * i386-tdep.c (i386_register_virtual_type,
1098 i386_register_convertible, i386_register_convert_to_virtual,
1099 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
1100 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
1101 (i386_gdbarch_init): Fix comment. Add comments on calls that set
1102 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
1103 Don't set push_arguments twice.
1104
1105 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
1106 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
1107 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
1108 sigtramp_end to NULL.
1109 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
1110 defines.
1111 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
1112
1113 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
1114 whitespace.
1115
1116 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
1117 * gdbarch.h, gdbarch.c: Re-generate.
1118 * blockframe.c (find_pc_sect_partial_function): Convert to use
1119 SIGTRAMP_START_P predicate.
1120
1121 2002-09-05 Michael Snyder <msnyder@redhat.com>
1122
1123 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
1124 generic_dummy_frame method and old method. Also distinguish
1125 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
1126 (arm_extract_return_value): Use new regcache method.
1127
1128 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
1129 adjustment that doesn't conform to the ABI.
1130 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
1131 saved regcache, not from current regcache.
1132
1133 2002-09-05 Andrew Cagney <ac131313@redhat.com>
1134
1135 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
1136 * README: Update.
1137
1138 2002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
1139
1140 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
1141 if arm_apcs_32 is false.
1142
1143 2002-09-04 Andrew Cagney <ac131313@redhat.com>
1144
1145 GDB 5.3 branch created.
1146
1147 2002-09-03 Theodore A. Roth <troth@verinet.com>
1148
1149 * gdb/avr-tdep.c (avr_gdbarch_init): Use
1150 generic_unwind_get_saved_register.
1151
1152 2002-09-03 David Carlton <carlton@math.stanford.edu>
1153
1154 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
1155 argument (PR gdb/653). Update call to smash_to_method_type.
1156 (read_structure_scope): Update call to dwarf2_add_member_fn.
1157
1158 2002-09-03 Michal Ludvig <mludvig@suse.cz>
1159
1160 * x86-64-linux-tdep.c: Include gdb_string.h
1161 * x86-64-linux-nat.c: Ditto.
1162
1163 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1164
1165 * ada-exp.y (yyname, yyrule): Remap global variables that appear
1166 when YYDEBUG is set to 1.
1167 * c-exp.y: Likewise.
1168 * f-exp.y: Likewise.
1169 * jv-exp.y: Likewise.
1170 * m2-exp.y: Likewise.
1171 * p-exp.y: Likewise.
1172
1173 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1174
1175 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
1176 dependency list.
1177 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
1178 solib_svr4_fetch_link_map_offsets to
1179 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
1180 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
1181 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
1182 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
1183 solib-svr4.o, and solib-legacy.o.
1184 * config/i386/tm-nbsd.h: Include solib.h.
1185
1186 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1187
1188 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
1189 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
1190 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
1191 comment noting that this needs its own target configuration.
1192 * config/i386/nbsd.mt: New file.
1193 * config/i386/nbsdaout.mt: Remove.
1194 * config/i386/nbsdelf.mt: Ditto.
1195 * config/i386/tm-nbsdaout.h: Ditto.
1196
1197 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1198
1199 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
1200 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
1201 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
1202 tdep->sigtramp_end.
1203 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
1204 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
1205 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
1206
1207 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1208
1209 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
1210 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
1211 * i386-tdep.h (i386bsd_init_abi): New prototype.
1212 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
1213 function declaration.
1214 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
1215 for NetBSD-a.out or NetBSD-ELF.
1216 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
1217 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
1218 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
1219 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
1220 and nbsd-tdep.h.
1221 (i386nbsd_pc_in_sigtramp): New function.
1222 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1223 i386nbsd_pc_in_sigtramp.
1224 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
1225 and i386nbsdelf_init_abi OS ABI handlers.
1226 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
1227 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
1228
1229 2002-09-02 Mark Kettenis <kettenis@gnu.org>
1230
1231 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
1232 registers if the target really has them.
1233
1234 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1235
1236 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
1237 than nbsd-tdep.h.
1238
1239 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1240
1241 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
1242 list.
1243 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
1244 (alphanbsd_skip_sigtramp_frame): New functions.
1245 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
1246 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
1247 to alphanbsd_sigcontext_addr.
1248
1249 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1250
1251 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
1252 list.
1253 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
1254 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
1255 nbsd_pc_in_sigtramp.
1256 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
1257 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
1258 * nbsd-tdep.c: Include gdb_string.h.
1259 (nbsd_pc_in_sigtramp): New function.
1260 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
1261 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
1262 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1263 ppcnbsd_pc_in_sigtramp.
1264 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
1265 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1266 shnbsd_pc_in_sigtramp.
1267 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
1268 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
1269 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
1270
1271 2002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
1272
1273 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
1274 watchpoints to NULL.
1275 (insert_breakpoints): set val field of watchpoints if NULL.
1276
1277
1278 2002-08-29 Jim Blandy <jimb@redhat.com>
1279
1280 * symtab.c (lookup_symbol_aux): In the cases where we find a
1281 minimal symbol of an appropriate name and use its address to
1282 select a symtab to read and search, use `name' (as passed to us)
1283 as the demangled name when searching the symtab's global and
1284 static blocks, not the minsym's name.
1285
1286 2002-08-29 Keith Seitz <keiths@redhat.com>
1287
1288 * stack.c (print_frame_info_base): Always set current_source_symtab
1289 and current_source_line.
1290
1291 2002-08-29 Donn Terry <donnte@microsoft.com>
1292
1293 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
1294
1295 2002-08-28 Keith Seitz <keiths@redhat.com>
1296
1297 * stack.c (select_frame): Add FIXME concerning selected-frame
1298 events.
1299 (select_frame_command): Send selected-frame-level-changed
1300 event notification, but only if the level actually changed.
1301 (up_silently_base): Add selected-frame-level-changed event
1302 notification.
1303 (down_silently_base): Likewise.
1304
1305 2002-08-28 Andrew Cagney <ac131313@redhat.com>
1306
1307 * Makefile.in: Update dependencies for all gdb/*.c files.
1308
1309 2002-08-27 Tom Tromey <tromey@redhat.com>
1310
1311 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
1312 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
1313 Update dependencies.
1314 * i387-tdep.c: Include gdb_string.h.
1315 * osabi.c: Likewise.
1316 * i386-linux-nat.c: Likewise.
1317 * lin-lwp.c: Likewise.
1318 * ax-gdb.c: Likewise.
1319 * signals/signals.c: Likewise.
1320 * jv-valprint.c: Likewise.
1321 * p-lang.c: Likewise.
1322 * c-valprint.c: Likewise.
1323 * cp-abi.c: Likewise.
1324
1325 2002-08-27 Elena Zannoni <ezannoni@redhat.com>
1326
1327 * cli/cli-script.h (copy_command_lines): Export.
1328 * breakpoint.c: Include cli/cli-script.h.
1329 * Makefile.in (breakpoint.o): Update dependencies.
1330
1331 2002-08-26 Michael Snyder <msnyder@redhat.com>
1332
1333 * breakpoint.c (insert_breakpoints): Protect all references
1334 to 'process_warning'. Shorten long lines.
1335
1336 2002-08-26 Joel Brobecker <brobecker@gnat.com>
1337
1338 * cli/cli-script.c (copy_command_lines): New function.
1339 * defs.h (copy_command_lines): Export.
1340 * testsuite/gdb.base/commands.exp: New tests for commands
1341 attached to a temporary breakpoint, and for commands that
1342 delete the breakpoint they are attached to.
1343
1344 2002-08-26 Michael Snyder <msnyder@redhat.com>
1345
1346 * breakpoint.c (bpstat_stop_status): Instead of copying the
1347 pointer to the breakpoint commands struct, make a new copy
1348 of the struct and point to that.
1349 (bpstat_clear): Free the commands struct.
1350 (bpstat_clear_actions): Free the commands struct.
1351 (bpstat_do_actions): Free the command actions. Also execute
1352 the local cleanups, instead of deleting them.
1353 (delete_breakpoint): Leave the commands field of the bpstat
1354 chain alone -- it will be freed later.
1355
1356 2002-08-26 Kevin Buettner <kevinb@redhat.com>
1357
1358 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
1359 deleted in 2002-08-20 commit. This function is still used by
1360 ppc-linux-nat.c.
1361
1362 2002-08-26 Keith Seitz <keiths@redhat.com>
1363
1364 * gdb-events.sh: Add selected-frame-level-changed event.
1365 * gdb-events.c: Regenerated.
1366 * gdb-events.h: Regenerated.
1367
1368 2002-08-26 Stephane Carrez <stcarrez@nerim.fr>
1369
1370 Fix PR gdb/393:
1371 * inflow.c (terminal_save_ours): New function to save terminal
1372 settings.
1373 * inferior.h (terminal_save_ours): Declare.
1374 * target.c (debug_to_terminal_save_ours): New function.
1375 (cleanup_target): Defaults to_terminal_save_ours.
1376 (update_current_target): Inherit to_terminal_save_ours.
1377 (setup_target_debug): Set to_terminal_save_ours.
1378 * target.h (target_terminal_save_ours): New to save terminal settings.
1379 (target_ops): New member to_terminal_save_ours.
1380 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
1381 * hpux-thread.c (init_hpux_thread_ops): Likewise.
1382 * inftarg.c (init_child_ops): Likewise.
1383 * m3-nat.c (init_m3_ops): Likewise.
1384 * procfs.c (init_procfs_ops): Likewise.
1385 * wince.c (init_child_ops): Likewise.
1386 * win32-nat.c (init_child_ops): Likewise.
1387 * sol-thread.c (init_sol_thread_ops): Likewise.
1388
1389 2002-08-26 Mark Kettenis <kettenis@gnu.org>
1390
1391 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
1392 use regcache_* functions.
1393 (i386_gdbarch_init): Set store_return_value instead of
1394 deprecated_store_return_value.
1395
1396 * regcache.c (regcache_raw_write_signed,
1397 regcache_raw_write_unsigned): New functions.
1398 * regcache.h (regcache_raw_write_signed,
1399 regcache_raw_write_unsigned): New prototypes.
1400
1401 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1402
1403 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
1404 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
1405 source file dependencies. Cleanup corresponding generator rules.
1406
1407 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1408
1409 * regcache.h (register_offset_hack): Declare.
1410 (regcache_cooked_read_using_offset_hack): Declare.
1411 (regcache_cooked_write_using_offset_hack): Declare.
1412
1413 * regcache.c (register_offset_hack): New function.
1414 (regcache_cooked_read_using_offset_hack): New function.
1415 (regcache_cooked_write_using_offset_hack): New function.
1416 (regcache_dump): Check that the registers, according to their
1417 offset, are packed hard against each other.
1418 (cooked_xfer_using_offset_hack): New function.
1419
1420 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1421
1422 * regcache.c (struct regcache_descr): Add field register_type.
1423 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
1424 in as a parameter
1425 (init_regcache_descr): Initialize register_type. Pass the descr
1426 to init_legacy_regcache_descr. Use register_type instead of
1427 REGISTER_VIRTUAL_TYPE.
1428 (register_type): New function.
1429 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
1430 * regcache.h (register_type): Declare.
1431
1432 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1433
1434 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
1435 instead of deprecated_store_return_value. Fix fallout from
1436 2002-08-23 Andrew Cagney <cagney@redhat.com>.
1437
1438 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1439
1440 * regcache.c (max_register_size): New function.
1441 (init_legacy_regcache_descr): Ensure that max_register_size is
1442 large enough for REGISTER_VIRTUAL_SIZE.
1443 * regcache.h (max_register_size): Declare.
1444
1445 2002-08-24 Andrew Cagney <ac131313@redhat.com>
1446
1447 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
1448 store_return_value.
1449 (e500_extract_return_value): Change type of valbuf pointer to
1450 void.
1451
1452 2002-08-24 Mark Kettenis <kettenis@gnu.org>
1453
1454 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
1455 workaround.
1456
1457 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
1458 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
1459 long long) to prevent compiler warning on 64-bit systems.
1460
1461 2002-08-23 Andrew Cagney <cagney@redhat.com>
1462
1463 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
1464 (DEPRECATED_STORE_RETURN_VALUE): New method.
1465 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
1466 * gdbarch.h, gdbarch.c: Re-generate.
1467
1468 * values.c (set_return_value): Pass current_regcache to
1469 STORE_RETURN_VALUE.
1470 * arch-utils.h (legacy_store_return_value): Declare.
1471 * arch-utils.c (legacy_store_return_value): New function.
1472 (legacy_extract_return_value): Update parameters.
1473
1474 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
1475 STORE_RETURN_VALUE.
1476 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1477 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1478 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1479 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1480 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1481 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1482 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1483 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1484 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1485 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1486
1487 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1488 * i386-tdep.c (i386_extract_return_value): Update.
1489 * arch-utils.c (legacy_extract_return_value): Update.
1490 * frv-tdep.c (frv_gdbarch_init): Update.
1491 * cris-tdep.c (cris_gdbarch_init): Update.
1492 * d10v-tdep.c (d10v_gdbarch_init): Update.
1493 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1494 * m68k-tdep.c (m68k_gdbarch_init): Update.
1495 * mcore-tdep.c (mcore_gdbarch_init): Update.
1496 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1497 * s390-tdep.c (s390_gdbarch_init): Update.
1498 * sparc-tdep.c (sparc_gdbarch_init): Update.
1499 * sh-tdep.c (sh_gdbarch_init): Update.
1500 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1501 * v850-tdep.c (v850_gdbarch_init): Update.
1502 * avr-tdep.c (avr_gdbarch_init): Update.
1503 * ia64-tdep.c (ia64_gdbarch_init): Update.
1504 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1505 * vax-tdep.c (vax_gdbarch_init): Update.
1506 * alpha-tdep.c (alpha_gdbarch_init): Update.
1507 * arm-tdep.c (arm_gdbarch_init): Update.
1508 * mips-tdep.c (mips_gdbarch_init): Update.
1509 * i386-tdep.c (i386_gdbarch_init): Update.
1510
1511 2002-08-23 Andrew Cagney <ac131313@redhat.com>
1512
1513 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
1514 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
1515
1516 2002-08-24 Mark Kettenis <kettenis@gnu.org>
1517
1518 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
1519 problems.
1520
1521 2002-08-23 Joel Brobecker <brobecker@gnat.com>
1522
1523 * infrun.c (handle_inferior_event): Move a comment outside of a
1524 function call, in order to avoid indent reformatting this part
1525 of the code in an unreadable way.
1526
1527 2002-08-23 Grace Sainsbury <graces@redhat.com>
1528
1529 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
1530 when breakpoints fail. Move general breakpoint error messages to
1531 insert_breakpoints.
1532 * breakpoint.c (insert_breakpoints): Change warnings when
1533 breakpoints are nto inserted to specify the type. Remove call to
1534 memory_error when hardware breakpoints can't be inserted. Remove
1535 multiple calls to warning so all messages are sent to the user at
1536 once.
1537 (delete_breakpoints): Make insert error messsages more explicit.
1538
1539 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
1540
1541 * ChangeLog: Move gdbserver entries after GDB 5.2 to
1542 gdbserver/ChangeLog.
1543
1544 2002-08-23 Mark Kettenis <kettenis@gnu.org>
1545
1546 * i386-tdep.c: Include "objfiles.h".
1547 (i386_svr4_init_abi): Set in_solib_call_trampoline and
1548 skip_trampoline_code.
1549 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
1550 (CPLUS_MARKER): Define to '.'.
1551
1552 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
1553 member.
1554 (linux_corefile_thread_callback): Increase args->num_notes.
1555 (linux_make_note_section): Initialize thread_args.num_notes, and
1556 use it to determine whether notes for any threads were created.
1557
1558 2002-08-23 Donn Terry <donnte@microsoft.com>
1559
1560 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
1561 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
1562 and PCUNKILL.
1563 (write_with_trace): Conditionalize out the switch branch handling
1564 PCSHOLD if the corresponding macro is not defined. Likewise for
1565 PRSABORT and PRSTOP.
1566 This change will be needed by the Interix port.
1567
1568 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
1569
1570 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
1571 write_register wherever possible instead of manipulating the
1572 register bytes directly.
1573 Assign VALUE_CONTENTS to a variable and use that.
1574 The GPR numbers are now dependent on the architecture.
1575
1576 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
1577
1578 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
1579 ev_offset fields.
1580 (skip_prologue): Add support for BookE/e500 instructions.
1581 (e500_extract_return_value): New function.
1582 (frame_get_saved_regs): Add support for saving ev registers and
1583 pseudo gpr's.
1584 (e500_store_return_value): New function.
1585 (rs6000_gdbarch_init): Move up default intializations of
1586 deprecated_extract_return_value and store_return_value. Overwrite
1587 init of store_return_value with e500 specific version.
1588 Set extract_return_value for e500.
1589
1590 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
1591
1592 * blockframe.c (generic_call_dummy_register_unwind): Use
1593 regcache_cooked_read to catch cases in which the variable is
1594 stored in a pseudo register.
1595
1596 2002-08-22 Andrew Cagney <cagney@redhat.com>
1597
1598 * NEWS: Mention that the i960 has been made obsolete.
1599 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
1600 i960-tdep.c
1601 (remote-nrom.o): Obsolete target.
1602 (remote-nindy.o, i960-tdep.o): Ditto.
1603 * remote-nrom.c: Make file obsolete.
1604 * remote-nindy.c, remote-vx960.c: Ditto.
1605 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
1606 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
1607 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
1608 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
1609 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
1610 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
1611 i960-*-vxworks* obsolete.
1612 * MAINTAINERS: Note that the i960 is obsolete.
1613
1614 2002-08-21 Corinna Vinschen <vinschen@redhat.com
1615
1616 * aix-thread.c (aix_thread_detach): Disable thread debugging on
1617 detach to allow reinitialization.
1618
1619 2002-08-22 Andrew Cagney <ac131313@redhat.com>
1620
1621 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
1622 attempt).
1623
1624 2002-08-22 Jim Blandy <jimb@redhat.com>
1625
1626 * coffread.c (coff_symfile_read): Don't try to read the line
1627 number table from disk if the image file doesn't have a symbol
1628 table; we'll never actually look at the info anyway, and Windows
1629 ships DLL's with bogus file offsets for the line number data.
1630
1631 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
1632
1633 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
1634 an e500 executable.
1635
1636 2002-08-21 Michael Snyder <msnyder@redhat.com>
1637
1638 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
1639 (MSYMBOL_SIZE): Replace macro with function.
1640 (DEFAULT_MIPS_TYPE): Delete unused macro.
1641 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
1642 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
1643
1644 2002-08-21 Jim Blandy <jimb@redhat.com>
1645
1646 * valops.c (value_cast): Simplify and correct logic for doing a
1647 static cast from a pointer to a base class to a pointer to a
1648 derived class.
1649
1650 2002-08-21 Andrew Cagney <ac131313@redhat.com>
1651
1652 * infcmd.c (default_print_registers_info): Replace
1653 do_registers_info.
1654 (registers_info): Use gdbarch_print_registers_info instead of
1655 DO_REGISTERS_INFO.
1656 * inferior.h (default_print_registers_info): Replace
1657 do_registers_info.
1658 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
1659 (DO_REGISTERS_INFO): Change to a predicate function.
1660 * gdbarch.h, gdbarch.c: Regenerate.
1661
1662 2002-08-21 Keith Seitz <keiths@redhat.com>
1663
1664 * gdb-events.sh: Add target-changed event.
1665 * gdb-events.c: Regenerated.
1666 * gdb-events.c: Regenerated.
1667 * valops.c (value_assign): Add target-changed event notification
1668 to inlval_register, lval_memory, and lval_reg_frame_relative.
1669
1670 2002-08-21 Joel Brobecker <brobecker@gnat.com>
1671
1672 * NEWS: Add an entry regarding the improvement of the next/step
1673 operation on Alpha Tru64 multi-processor machines.
1674
1675 2002-08-21 Andrew Cagney <ac131313@redhat.com>
1676
1677 * Makefile.in: Update dependencies for mi/ cli/ and tui/
1678 directores.
1679 * Makefile.in: Update all _h macro definitions.
1680 * Makefile.in (install-gdbtk): Move to install section.
1681 (rdi-share/libangsd.a): Move to end of file.
1682
1683 2002-08-19 Andrew Cagney <ac131313@redhat.com>
1684
1685 * frame.c (frame_register_unwind): When a register, set addrp to
1686 the register's byte.
1687
1688 2002-08-20 Michael Snyder <msnyder@redhat.com>
1689
1690 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
1691 used locally, so move them from the target machine header to here.
1692 (mips_set_processor_type, mips_register_name, mips32_next_pc,
1693 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
1694 Make static.
1695 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
1696
1697 2002-08-20 Andrew Cagney <cagney@redhat.com>
1698
1699 * NEWS: Mention that the Apollo line was made obsolete.
1700 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
1701 m68*-hp-hpux* obsolete.
1702 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
1703 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
1704 * buildsym.c (make_blockvector): Make static.
1705 * buildsym.h (make_blockvector): Make extern declaration obsolete.
1706 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
1707 (ALLDEPFILES): Remove dstread.c.
1708 (dstread.o): Obsolete make rule.
1709 * dstread.c: Makefile obsolete.
1710 * dst.h: Ditto.
1711 * config/m68k/hp300hpux.mt: Ditto.
1712 * config/m68k/hp300hpux.mh: Ditto.
1713 * config/m68k/hp300bsd.mt: Ditto.
1714 * config/m68k/hp300bsd.mh: Ditto.
1715 * config/m68k/apollo68b.mt: Ditto.
1716 * config/m68k/apollo68v.mh: Ditto.
1717 * config/m68k/apollo68b.mh: Ditto.
1718
1719 2002-08-20 Michael Snyder <msnyder@redhat.com>
1720
1721 * mips-tdep.c (mips_in_return_stub): Make static.
1722 (mips_gdbarch_init): Set in_solib_return_trampoline.
1723 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
1724
1725 2002-08-20 Michael Snyder <msnyder@redhat.com>
1726
1727 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
1728 * gdbarch.c, gdbarch.h: Regenerate.
1729 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
1730 Add.
1731 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
1732
1733 2002-08-20 Michael Snyder <msnyder@redhat.com>
1734
1735 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
1736 (mips_gdbarch_init): Set skip_trampoline_code,
1737 in_solib_call_trampoline.
1738 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
1739 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
1740
1741 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1742
1743 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
1744
1745 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
1746 vector type for ev registers.
1747 (e500_pseudo_register_read): New function.
1748 (e500_pseudo_register_write): New function.
1749 (e500_dwarf2_reg_to_regnum): New function.
1750 (PPC_UISA_NOFP_SPRS): New macro.
1751 (PPC_EV_REGS): New macro.
1752 (PPC_GPRS_PSEUDO_REGS): New macro.
1753 (registers_e500): New register set for e500.
1754 (variants): Add e500 variant.
1755 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
1756 before setting architectural dependent variations. Initialize ev
1757 registers numbers. Add case for e500 architecture. Set the
1758 number of pseudo registers.
1759
1760 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1761
1762 * rs6000-tdep.c: Clean up comments.
1763
1764 2002-08-20 Andrew Cagney <cagney@redhat.com>
1765
1766 * h8300-tdep.c: Re-indent file.
1767
1768 2002-08-20 Jim Blandy <jimb@redhat.com>
1769
1770 * Makefile.in (LDFLAGS): Allow the configure script to establish a
1771 default for this.
1772
1773 2002-08-20 Keith Seitz <keiths@redhat.com>
1774
1775 * breakpoints.c (watch_command_1): Use internal breakpoint
1776 when setting a watchpoint_scope breakpoint.
1777
1778 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1779
1780 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
1781 (build_builtin_type_vec64i): Ditto.
1782 (build_builtin_type_vec128): Ditto.
1783 (build_builtin_type_vec128i): Ditto.
1784
1785 2002-08-19 Michael Snyder <msnyder@redhat.com>
1786
1787 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
1788 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
1789 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
1790 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
1791 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
1792 CALL_DUMMY_ADDRESS): Delete.
1793 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
1794 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
1795 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
1796 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
1797 push_return_address.
1798 (mips_register_raw_size, mips_eabi_use_struct_convention,
1799 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
1800 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
1801 mips_init_extra_frame_info, mips_eabi_push_arguments,
1802 mips_n32n64_push_arguments, mips_push_return_address,
1803 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
1804 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
1805
1806 2002-08-19 Michael Snyder <msnyder@redhat.com>
1807
1808 * mips-tdep.c (mips_frame_num_args): New function.
1809 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
1810 frame_saved_pc, frame_args_address, frame_locals_address,
1811 frame_num_args, and frame_args_skip.
1812 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
1813 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
1814 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
1815 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
1816
1817 2002-08-20 Michael Snyder <msnyder@redhat.com>
1818
1819 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
1820 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
1821 * mips-tdep.c (mips_store_struct_return): New function.
1822 (mips_extract_struct_value_address): New function.
1823 (mips_gdbarch_init): Set store_struct_return and
1824 extract_struct_value_address.
1825
1826 2002-08-20 David Carlton <carlton@math.stanford.edu>
1827
1828 * dwarf2read.c (dwarf2_build_psymtabs): Check that
1829 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
1830 (read_file_scope): Check that line_header is nonzero before
1831 decoding macro information.
1832
1833 2002-08-20 Mark Kettenis <kettenis@gnu.org>
1834
1835 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
1836 flag the general-purpose registers as floating-point on targets
1837 that don't support the floating-point registers.
1838
1839 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1840
1841 * rs6000-tdep.c (altivec_register_p): Delete.
1842 (rs6000_do_altivec_registers): Delete.
1843 (rs6000_altivec_registers_info): Delete.
1844 (rs6000_do_registers_info): Delete.
1845 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
1846 (rs6000_gdbarch_init): Remove setting of do_registers_info.
1847
1848 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1849
1850 * infcmd.c (do_registers_info): Print vector registers in hex
1851 format only.
1852 (print_vector_info): Check that printing registers
1853 makes sense.
1854 (print_float_info): Ditto.
1855
1856 2002-08-20 Andrew Cagney <ac131313@redhat.com>
1857
1858 * mips-tdep.c (mips_gdbarch_init): Update.
1859 (mips_o32_extract_return_value): Rewrite.
1860 (mips_o32_store_return_value): Rewrite.
1861 (mips_o32_xfer_return_value): New function.
1862 (mips_xfer_register): Tweak debug print message. Allow for
1863 buf_offset when dumping the value transfered.
1864
1865 2002-08-20 Andrew Cagney <ac131313@redhat.com>
1866
1867 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
1868 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
1869 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
1870 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
1871 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
1872
1873 2002-08-14 Michael Snyder <msnyder@redhat.com>
1874
1875 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
1876
1877 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
1878
1879 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
1880 register.
1881 (P): New macro to define a register as a pseudo register.
1882 (R, R4, R8, R16, FR32, R64, R0): Updated.
1883 (struct variant): Add new fields for number of pseudo registers
1884 and number of total registers.
1885 (tot_num_registers): New macro replacing....
1886 (num_registers): ...deleted macro.
1887 (num_registers): New function.
1888 (num_pseudo_registers): New function.
1889 (variants): Update all variants to intialize new fields correctly.
1890 Postpone initialization of number of pseudo regs and real regs.
1891 (init_variants): New function.
1892 (rs6000_gdbarch_init): Initialize variants. Update calculation of
1893 registers offsets.
1894
1895 2002-08-19 David Carlton <carlton@math.stanford.edu>
1896
1897 * valops.c (search_struct_field): Change error message to treat
1898 return value of 0 from value_static_field as meaning that field is
1899 optimized out.
1900 (value_struct_elt_for_reference): Ditto.
1901 * values.c (value_static_field): Treat an unresolved location the
1902 same as a nonexistent symbol. Fix PR gdb/635.
1903 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
1904 enclosed. Fix PR gdb/574.
1905 * MAINTAINERS: Add self to Write After Approval list.
1906
1907 2002-08-19 Andrew Cagney <ac131313@redhat.com>
1908
1909 * mips-tdep.c (mips_xfer_register): New function.
1910 (mips_n32n64_extract_return_value): Rewrite.
1911 (mips_gdbarch_init): For N32 and N64, set extract_return_value
1912 instead of deprecated_extract_return_value.
1913
1914 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
1915
1916 * rs6000-tdep.c (TDEP): Delete macro.
1917 (branch_dest): Replace use of TDEP macro with its body.
1918 (rs6000_pop_frame): Ditto.
1919 (rs6000_push_arguments): Ditto.
1920 (rs6000_skip_trampoline_code): Ditto.
1921 (rs6000_frame_saved_pc): Ditto.
1922 (rs6000_frame_chain): Ditto.
1923 (rs6000_register_name): Ditto.
1924 (rs6000_register_byte): Ditto.
1925 (rs6000_register_raw_size): Ditto.
1926 (rs6000_register_virtual_type): Ditto.
1927 (rs6000_register_convertible): Ditto.
1928 (rs6000_convert_from_func_ptr_addr): Ditto.
1929
1930 2002-08-19 Daniel Jacobowitz <drow@mvista.com>
1931
1932 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
1933 conditionally.
1934 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
1935 MIPS_LINUX_JB_ELEMENT_SIZE.
1936 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
1937 for MAX_REGISTER_RAW_SIZE arrays.
1938 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
1939 MIPS_LINUX_JB_ELEMENT_SIZE.
1940
1941 2002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
1942
1943 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
1944
1945 2002-08-19 Aidan Skinner <aidan@velvet.net>
1946
1947 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
1948 ada-valprint.c ada-tasks.c.
1949 (YYFILES): Add ada-exp.y.
1950 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
1951 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
1952 (ada-exp.tab.o): New target.
1953
1954 2002-08-18 Andrew Cagney <ac131313@redhat.com>
1955
1956 * regcache.c (regcache_xfer_part): New function.
1957 (regcache_raw_read_part): New function.
1958 (regcache_raw_write_part): New function.
1959 (regcache_cooked_read_part): New function.
1960 (regcache_cooked_write_part): New function.
1961 * regcache.h (regcache_raw_read_part): Declare.
1962 (regcache_raw_write_part): Declare.
1963 (regcache_cooked_read_part): Declare.
1964 (regcache_cooked_write_part): Declare.
1965
1966 2002-08-18 Daniel Jacobowitz <drow@mvista.com>
1967
1968 * remote.c (remote_open_1): Add async_p.
1969 (remote_async_open_1): Delete.
1970 (open_remote_target): Delete.
1971 (remote_open, extended_remote_open): Update calls to remote_open_1.
1972 (remote_async_open, extended_remote_async_open): Call
1973 remote_open_1 instead of remote_async_open_1.
1974
1975 2002-08-19 Mark Kettenis <kettenis@gnu.org>
1976
1977 * blockframe.c: Fix a few coding standard violations.
1978
1979 2002-08-19 Mark Kettenis <kettenis@gnu.org>
1980
1981 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
1982 here from ...
1983 * config/i386/tm-i386sco5.h: ... here. File removed.
1984 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
1985
1986 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
1987 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
1988 (TM_FILE): Set to tm-i386.h.
1989 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
1990 * config/i386/tm-i386v.h: Remove file.
1991 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
1992 instead of "i386/tm-i386v.h".
1993 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
1994 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
1995 "i386/tm-i386v.h".
1996 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
1997 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
1998 "i386/tm-i386.h".
1999
2000 2002-08-18 Mark Kettenis <kettenis@gnu.org>
2001
2002 * config/i386/nm-i386v.h: Add protection against
2003 multiple-inclusion.
2004 (i386_register_u_addr): Remove prototype.
2005 (register_u_addr): New prototype.
2006 (REGISTER_U_ADDR): Redefine accordingly.
2007 * i386v-nat.c: Improve several comments.
2008 (i386_register_u_addr): Change signature and rename to
2009 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
2010 ubase variable.
2011
2012 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2013
2014 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
2015 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
2016 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
2017 deprecated_extract_return_value.
2018 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
2019 rename mips_o32o64_push_arguments.
2020 (mips_gdbarch_init): Update.
2021 (mips_extract_return_value): Delete.
2022 (mips_o32_extract_return_value): Clone mips_extract_return_value.
2023 (mips_o64_extract_return_value): Clone mips_extract_return_value.
2024 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
2025 (mips_n32n64_extract_return_value): Clone
2026 mips_extract_return_value.
2027 (mips_store_return_value): Delete.
2028 (mips_o32_store_return_value): Clone mips_store_return_value.
2029 (mips_o64_store_return_value): Clone mips_store_return_value.
2030 (mips_eabi_store_return_value): Clone mips_store_return_value.
2031 (mips_n32n64_store_return_value): Clone mips_store_return_value.
2032
2033 2002-08-18 Aidan Skinner <aidan@velvet.net>
2034
2035 * ada-lang.c: Use gdb_string.h instead of <string.h>.
2036 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
2037
2038 2002-08-18 Aidan Skinner <aidan@velvet.net>
2039
2040 * ada-lang.c: Run through gdb_indent.sh.
2041 * ada-lang.h: Run through gdb_indent.sh.
2042 * ada-tasks.c: Run through gdb_indent.sh.
2043 * ada-typeprint.c: Run through gdb_indent.sh.
2044 * ada-valprint.c: Run through gdb_indent.sh.
2045
2046 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2047
2048 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
2049 ABI.
2050
2051 2002-08-18 Mark Kettenis <kettenis@gnu.org>
2052
2053 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
2054
2055 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
2056 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
2057
2058 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
2059 write_register_gen instead of write_register_bytes.
2060
2061 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
2062 i[3456]-*-osf1mk* configurations have been made obsolete.
2063 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
2064 i[3456]86-*-osf1mk* hosts obsolete.
2065 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
2066 targets obsolete.
2067 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
2068 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
2069 config/i386/i386m3.mt, config/i386/nm-m3.h,
2070 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
2071 config/i386/i386mk.mh, config/i386/i386mk.mt,
2072 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
2073 obsolete.
2074 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
2075 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
2076 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
2077
2078 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2079
2080 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
2081 (hppa_value_returned_from_stack): Declare.
2082 (hppa_extract_return_value): Declare.
2083 * config/pa/hppa.mt: New file.
2084 * configure.tgt: Recognize hppa*-*-*.
2085 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
2086
2087 2002-08-18 Mark Kettenis <kettenis@gnu.org>
2088
2089 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
2090 comment.
2091
2092 2002-08-17 Mark Kettenis <kettenis@gnu.org>
2093
2094 * top.c (gdb_rl_operate_and_get_next): Make sure
2095 operate-and-get-next functions correctly even when the history
2096 list is completely filled.
2097
2098 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2099
2100 * MAINTAINERS (Target Instruction Set Architectures): Rename
2101 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
2102 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
2103 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
2104 already listed under Host/Native.
2105
2106 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
2107 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
2108 mips*-*-*.
2109
2110 2002-08-17 Andrew Cagney <ac131313@redhat.com>
2111
2112 * config/ia64/ia64.mt: New file.
2113 * config/alpha/alpha.mt: New file.
2114 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
2115 ia64-linux-gnu. Mention that ia64-elf is broken.
2116 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
2117
2118 2002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
2119
2120 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
2121 generic_func_frame_valid instead of func_frame_valid.
2122
2123 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2124
2125 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
2126 procfs appears to be broken when debugging on multi-processor
2127 machines. So enable software single stepping in order to avoid
2128 using the procfs interface to do next/step operations, using
2129 internal breakpoints instead.
2130
2131 * infrun.c (handle_inferior_event): Readjust the stop_pc by
2132 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
2133 make this pc address equal to the value it would have if the
2134 system stepping capability was used. Also set a new flag used
2135 to ensure that we don't readjust the PC one more time later.
2136
2137 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
2138 address by DECR_PC_AFTER_BREAK when software single step is
2139 in use for this architecture, as this has already been taken
2140 care of in handle_inferior_event().
2141
2142 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2143
2144 * infrun.c (handle_inferior_event): Minor reformatting, to make
2145 a rather long condition expression easier to read.
2146
2147 2002-08-16 Andrew Cagney <ac131313@redhat.com>
2148
2149 * Makefile.in (gdbtk.o): Move to end of file.
2150 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
2151 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
2152 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
2153 (gdbtk-wrapper.o, gdbres.o): Ditto.
2154
2155 2002-08-16 Andrew Cagney <ac131313@redhat.com>
2156
2157 * Makefile.in (copying.o): Separate out compile rule.
2158 (hpux-thread.o, procfs.o, signals.o): Ditto.
2159 (v850ice.o, z8k-tdep.o): Ditto.
2160 (tui-file.o): Move to TUI section.
2161 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
2162 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
2163
2164 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2165
2166 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
2167 skip_trampoline_code, for better namespace-proofing.
2168
2169 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
2170
2171 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2172
2173 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
2174
2175 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2176
2177 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
2178 signal, check whether we hit a breakpoint before checking for a
2179 single step breakpoint. Otherwise, GDB fails to notice that a
2180 breakpoint has been hit when stepping onto a breakpoint.
2181
2182 2002-08-16 Keith Seitz <keiths@redhat.com>
2183
2184 * gdb-events.sh (clear_gdb_event_hooks): New function.
2185 * gdb-events.c: Regenerate.
2186 * gdb-events.h: Regenerate.
2187
2188 2002-08-16 Andrew Cagney <ac131313@redhat.com>
2189
2190 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
2191 not_a_sw_breakpoint.
2192 * breakpoint.h (bpstat_stop_status): Add parameter names.
2193
2194 2002-08-16 Grace Sainsbury <graces@redhat.com>
2195
2196 * remote.c (remote_insert_hw_breakpoint)
2197 (remote_remove_hw_breakpoint): Fix calculation of length field
2198 for Z-packet.
2199
2200 2002-08-15 Michael Snyder <msnyder@redhat.com>
2201
2202 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
2203 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
2204 (supply_fpregset): Ditto.
2205
2206 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
2207 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
2208 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
2209 (TARGET_READ_SP): Delete.
2210 (DO_REGISTERS_INFO): Delete.
2211 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
2212 Delete.
2213 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
2214 from macros to functions.
2215
2216 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
2217 (mips_register_convertible, mips_register_convert_to_virtual,
2218 mips_register_convert_to_raw): Make static.
2219 (mips_read_sp): New function.
2220 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
2221 (mips_do_registers_info): Make static.
2222 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
2223 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
2224 (mips_register_convert_from_type, mips_register_convert_to_type):
2225 New functions.
2226 (mips_gdbarch_init): Set up function_start_offset,
2227 register_virtual_size, pc_in_sigtramp.
2228
2229 2002-08-15 Andrew Cagney <ac131313@redhat.com>
2230
2231 * infcmd.c (vector_info): New function.
2232 (_initialize_infcmd): Add command "info vector".
2233 (print_vector_info): New function.
2234
2235 * gdbarch.sh (PRINT_VECTOR_INFO): New method
2236 * gdbarch.h, gdbarch.c: Regenerate.
2237
2238 2002-08-15 Andrew Cagney <ac131313@redhat.com>
2239
2240 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
2241 ``print_all''. Only print vector registers when ``print_all''.
2242
2243 2002-08-15 Andrew Cagney <ac131313@redhat.com>
2244
2245 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
2246 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
2247
2248 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
2249 Add `args' parameter.
2250 * gdbarch.h, gdbarch.c: Regenerate.
2251
2252 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
2253
2254 * infcmd.c (float_info): Call print_float_info.
2255 (print_float_info): New function. By default, print the
2256 floating-point registers.
2257
2258 * arch-utils.h (default_print_float_info): Delete declaration.
2259 * arch-utils.c (default_print_float_info): Delete function.
2260
2261 2002-08-16 Mark Kettenis <kettenis@gnu.org>
2262
2263 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
2264 out define.
2265
2266 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
2267 FRAME.
2268
2269 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
2270 * configure.host: Make i[3456]86-*-aix host obsolete.
2271 * configure.tgt: Make i[3456]86-*-aix target obsolete.
2272 * config/i386/i386aix.mh, config/i386/i386aix.mt,
2273 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
2274 config/i386/xm-i386aix.h: Make files obsolete.
2275 * i386aix-nat.c: Make file obsolete.
2276 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
2277 (i386aix-nat.o): Make target obsolete.
2278
2279 * config/i386/nm-gnu.h: Removed.
2280 * config/i386/nm-i386gnu.h: New file.
2281 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
2282 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
2283 Moved here from ...
2284 * config/i386/tm-i386gnu.h: ... here. Removed.
2285 * config/i386/xm-i386gnu.h: Removed.
2286 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
2287 (NAT_FILE): Set to nm-i386gnu.h.
2288 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
2289 * i386-tdep.c: New file.
2290 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
2291 (i386gnu-tdep.o): Specify dependencies.
2292
2293 2002-08-15 Mark Kettenis <kettenis@gnu.org>
2294
2295 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
2296 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
2297 Adjust a few comments to reflect reality a bit closer.
2298 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
2299 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
2300 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
2301 target_insert_watchpoint, target_remove_watchpoint):
2302 Move defines to ...
2303 * config/i386/nm-i386sco5.h: ... here.
2304 (kernel_u_size): Add prototype. Improve a few comments and add
2305 protection against multiple inclusion.
2306
2307 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
2308 out define.
2309
2310 * uw-thread.c (SP_ARG0): Define if not already defined.
2311 * config/i386/tm-i386.h (SO_ARG0): Remove define.
2312
2313 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
2314
2315 * config/i386/tm-i386.h: Don't include "regcache.h".
2316
2317 * i387-tdep.h (i387_print_float_info): New prototype.
2318 * i387-tdep.c (print_i387_value, print_i387_ext,
2319 print_i387_status_word, print_i387_control_word): Add `struct
2320 ui_file *' argument and use it for output.
2321 (i387_print_float_info): Renamed from i387_float_info. Add
2322 `struct gdbarch *' and `struct ui_file *' arguments and use the
2323 latter for output.
2324 * i386-tdep.c: Include "i387-tdep.h".
2325 (i386_gdbarch_init): Set print_float_info.
2326 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
2327 (FLOAT_INFO): Remove define.
2328
2329 2002-08-13 Michael Snyder <msnyder@redhat.com>
2330
2331 * mips-tdep.c (mips_push_arguments): Rename to
2332 mips_eabi_push_arguments, and tune for EABI.
2333 (MIPS_REGS_HAVE_HOME_P): Delete.
2334 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
2335 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
2336 Delete references to mips_regs_have_home_p.
2337
2338 2002-08-14 Keith Seitz <keiths@redhat.com>
2339
2340 * Makefile.in (install-gdbtk): Create insight plugin directory.
2341 Install plugins.tcl file.
2342
2343 2002-08-14 Keith Seitz <keiths@redhat.com>
2344
2345 * configure.in: Move SUBDIRS to near top of the file so that
2346 --enable options may add things to it.
2347 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
2348 * configure: Regenerate.
2349
2350 2002-08-13 Michael Snyder <msnyder@redhat.com>
2351
2352 * mips-tdep.c (mips_o32o64_push_arguments): New function,
2353 cloned from mips_push_arguments, tuned for o32/o64 ABI.
2354 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
2355
2356 2002-08-13 Andrew Cagney <ac131313@redhat.com>
2357
2358 * vax-tdep.c (vax_get_saved_register): Delete function.
2359 (vax_gdbarch_init): Update.
2360 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
2361 (ns32k_gdbarch_init): Update.
2362 * alpha-tdep.c (alpha_get_saved_register): Delete function.
2363 (alpha_gdbarch_init): Update.
2364
2365 2002-08-13 Andrew Cagney <cagney@redhat.com>
2366
2367 * regcache.c (init_regcache_descr): Overallocate the
2368 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
2369 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
2370 nr_raw_registers.
2371 (set_register_cached): Add range checking assertions. Use
2372 current_regcache.
2373
2374 2002-08-13 Mark Kettenis <kettenis@gnu.org>
2375
2376 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
2377 numbers for MMX registers.
2378
2379 2002-08-13 Andrew Cagney <cagney@redhat.com>
2380
2381 * i386-tdep.c (i386_gdbarch_init): Use
2382 generic_unwind_get_saved_register.
2383
2384 2002-08-13 Kevin Buettner <kevinb@redhat.com>
2385
2386 * procfs.c (procfs_can_use_hw_breakpoint): New function.
2387 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
2388 target vector.
2389 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
2390 Delete. Add comment regarding this now-deleted target method.
2391
2392 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2393
2394 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
2395 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
2396 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
2397 real PC and the page number (if it's within the memory bank window).
2398 (m68hc11_pseudo_register_write): Likewise when saving.
2399 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
2400 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
2401 (m68hc11_register_raw_size): And use 32-bit for it.
2402 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
2403 16K memory bank is used by the prog; also use the virtual pc.
2404
2405 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2406
2407 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
2408 (m68hc11_gdbarch_init): Install it in gdbarch.
2409 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
2410 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
2411 (MSYMBOL_SIZE): New for documentation.
2412 (insn_return_kind): Enum to specify how a function returns.
2413 (frame_extra_info): Cleanup and record the return mode.
2414 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
2415 register in address computation.
2416 (m68hc11_get_return_insn): New to obtain the return instruction used
2417 by the function.
2418 (m68hc11_frame_init_saved_regs): Take into account the return
2419 instruction used by the function for far and interrupt functions.
2420 (m68hc11_init_extra_frame_info): Take into account page register.
2421 (m68hc11_frame_args_address): Adjust according to the return mode.
2422 (show_regs): Print page register only when it's used.
2423
2424 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2425
2426 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
2427 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
2428 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
2429 registers.
2430 (m68hc11_register_raw_size): Likewise.
2431
2432 2002-08-13 Andrew Cagney <cagney@redhat.com>
2433
2434 * i386-tdep.c (i386_register_name): Handle mmx registers.
2435 (mmx_regnum_p): New function.
2436 (i386_mmx_names): New array.
2437 (mmx_num_regs): New variable.
2438 (i386_pseudo_register_read): New function.
2439 (i386_pseudo_register_write): New function.
2440 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
2441
2442 * regcache.c (regcache_raw_read_unsigned): New function.
2443 (regcache_raw_read_signed): New function.
2444 * regcache.h (regcache_raw_read_unsigned): Declare.
2445 (regcache_raw_read_signed): Declare.
2446
2447 2002-08-13 Andrew Cagney <cagney@redhat.com>
2448
2449 * regcache.c (regcache_raw_read_as_address): Delete function.
2450 (regcache_cooked_read_signed): New function.
2451 (regcache_cooked_read_unsigned): New function.
2452 * regcache.h (regcache_cooked_read_signed): Declare.
2453 (regcache_cooked_read_unsigned): Declare.
2454 (regcache_raw_read_as_address): Delete declaration.
2455
2456 * blockframe.c (generic_read_register_dummy): Use
2457 regcache_cooked_read_unsigned.
2458 * i386-tdep.c (i386_extract_struct_value_address): Use
2459 regcache_cooked_read_unsigned.
2460
2461 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2462
2463 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
2464 double sizes according to ELF ABI flags.
2465 (gdbarch_tdep): Record elf_flags.
2466
2467 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2468
2469 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
2470 (m6812_prolog): They can appear in 68HC12 function prologue.
2471 (m68hc11_frame_chain): Cleanup.
2472
2473 2002-08-12 Andrew Cagney <cagney@redhat.com>
2474
2475 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
2476 declarations.
2477 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
2478 (i386_linux_register_raw_size): Delete function.
2479 (i386_linux_init_abi): Update.
2480 * i386-tdep.c (i386_register_raw_size): Delete function.
2481 (i386_register_byte): Delete function.
2482 (i386_gdbarch_init): Update.
2483 (i386_register_size): Delete array.
2484 (i386_register_offset): Delete array.
2485
2486 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
2487 (REGISTER_RAW_SIZE): Delete macro.
2488 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
2489 (REGISTER_BYTE): Delete macro.
2490
2491 2002-08-11 Aidan Skinner <aidan@velvet.net>
2492
2493 * ada-lang.c (ada_lookup_partial_symbol)
2494 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
2495 prototype names so that grep ^func works properly.
2496
2497 * ada-lang.c (ada_array_element_type)
2498 (ada_lookup_partial_symbol): Fix typos in parameter list.
2499
2500 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
2501 Fix prototype names so that grep ^func works properly.
2502
2503 2002-08-10 Andrew Cagney <cagney@redhat.com>
2504 Elena Zannoni <ezannoni@redhat.com>
2505 Martin M. Hunt <hunt@redhat.com>
2506
2507 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
2508 (build_builtin_type_vec128i): Set the vector bit.
2509 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
2510 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
2511 (build_builtin_type_vec64): New function.
2512 (build_builtin_type_vec64i): New function.
2513 (build_gdbtypes): Initialize builtin_type_vec64 and
2514 builtin_type_vec64i.
2515
2516 2002-08-09 Andrew Cagney <cagney@redhat.com>
2517
2518 * regcache.c (regcache_dump): Compare the register offset
2519 with REGISTER_BYTE.
2520 * arch-utils.c (generic_register_byte): New function.
2521 * arch-utils.h (generic_register_byte): Declare.
2522 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
2523 * gdbarch.h, gdbarch.c: Regenerate.
2524
2525 2002-08-09 Andrew Cagney <cagney@redhat.com>
2526
2527 * regcache.c: Include "gdbcmd.h"
2528 (_initialize_regcache): Add commands "maintenance print
2529 registers", "maintenance print raw-registers" and "maintenance
2530 print cooked-registers".
2531 (enum regcache_dump_what): Define.
2532 (dump_endian_bytes): New function.
2533 (regcache_dump): New function.
2534 (regcache_print): New function.
2535 (maintenance_print_registers): New function.
2536 (maintenance_print_raw_registers): New function.
2537 (maintenance_print_cooked_registers): New function.
2538 * Makefile.in (regcache.o): Update dependencies.
2539
2540 2002-08-09 Michael Snyder <msnyder@redhat.com>
2541
2542 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
2543 (mips_push_arguments): Correct some comments. Use paddr_nz
2544 for printing addresses in debug output. Replace static
2545 allocation using MAX_REGISTER_RAW_SIZE with alloca.
2546 (mips_n32n64_push_arguments): New function, cloned from
2547 mips_push_arguments and tuned for the n32/n64 ABI.
2548 (mips_push_register): Buffer needs dynamic allocation.
2549 (mips_print_register): Ditto.
2550 (do_gp_register_row): Ditto.
2551 (mips_store_return_value): Ditto.
2552 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
2553
2554 2002-08-09 Don Howard <dhoward@redhat.com>
2555
2556 * memattr.c (mem_info_command): Print special case of upper bound
2557 as max CORE_ADDR + 1.
2558
2559 2002-08-08 Michael Snyder <msnyder@redhat.com>
2560
2561 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
2562 returns structs by ref if they're too big to fit in two registers.
2563
2564 2002-08-09 Kevin Buettner <kevinb@redhat.com>
2565
2566 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
2567 saved regs value.
2568 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
2569 mips_find_saved_regs().
2570 (mips_pop_frame): Likewise.
2571
2572 2002-08-09 Kevin Buettner <kevinb@redhat.com>
2573
2574 * blockframe.c (frame_saved_regs_register_unwind): Revise
2575 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
2576 frames are in use.
2577
2578 2002-08-09 Grace Sainsbury <graces@redhat.com>
2579
2580 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
2581 T-packets; the 'a' is not taken as a register number.
2582 (remote_check_watch_resources, remote_stopped_by_watchpoint)
2583 (remote_stopped_data_address): New functions; add to target
2584 vector.
2585 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
2586 prototypes to match other implementations of this
2587 function. replace integer argument with pointer -- the length
2588 field in the Z-packet is the length of what is pointed to or 1 if
2589 pointer is null. Add to target vector.
2590 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
2591 target vector.
2592
2593 From Mark Salter:
2594 * remote.c (remote_wait): Add support to extract optional
2595 watchpoint information from T-packet. Ignore unrecognized
2596 optional info in T-packet.
2597 (remote_async_wait): Ditto.
2598
2599 2002-08-09 Corinna Vinschen <vinschen@redhat.com>
2600
2601 * cli/cli-dump.c: Change fopen modes to use binary open modes
2602 as defined in include/fopen-bin.h throughout.
2603
2604 2002-08-08 Michael Snyder <msnyder@redhat.com>
2605
2606 * mips-tdep.c: Minor whitespace and indentation clean-ups.
2607
2608 2002-08-08 Kevin Buettner <kevinb@redhat.com>
2609
2610 * doublest.c (store_floating): Avoid floatformat_from_doublest()
2611 assertion failure by returning early after a warning.
2612
2613 2002-08-08 Kevin Buettner <kevinb@redhat.com>
2614
2615 * mips-tdep.c (mips_find_saved_regs): Make static.
2616 (mips_frame_init_saved_regs): New function.
2617 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
2618 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
2619 (mips_find_saved_regs): Delete declaration.
2620
2621 2002-08-08 Grace Sainsbury <graces@redhat.com>
2622
2623 * remote.c (remote_wait, remote_async_wait): Change
2624 thread_num from int to ULONGEST.
2625 (unpack_varlen_hex): Change result parameter from
2626 int * to ULONGEST *.
2627
2628 2002-08-08 Andrew Cagney <ac131313@redhat.com>
2629
2630 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
2631 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
2632 powerpc*-*-*.
2633 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
2634
2635 2002-08-08 Andrew Cagney <cagney@redhat.com>
2636
2637 * gcore.c (override_derive_stack_segment): Delete variable.
2638 (preempt_derive_stack_segment): Delete function.
2639 (derive_stack_segment): Delete function.
2640 (default_derive_stack_segment): Renamed to derive_stack_segment.
2641 (override_derive_heap_segment): Delete variable.
2642 (preempt_derive_heap_segment): Delete function.
2643 (derive_heap_segment): Delete function.
2644 (default_derive_heap_segment): Rename to derive_heap_segment.
2645
2646 2002-08-06 Michael Snyder <msnyder@redhat.com>
2647
2648 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
2649 * mips-tdep.c (mips_EABI_use_struct_convention,
2650 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
2651 New functions. (mips_use_struct_convention): Delete.
2652 (mips_gdbarch_init): set use_gdbarch_convention.
2653
2654 2002-08-06 Michael Snyder <msnyder@redhat.com>
2655
2656 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
2657 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
2658 mips_o32_reg_struct_has_addr): New functions.
2659 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
2660
2661 2002-08-07 Andrew Cagney <ac131313@redhat.com>
2662
2663 * regcache.c (pseudo_register): Delete function.
2664 (fetch_register): Delete function.
2665 (store_register): Delete function.
2666 (regcache_raw_read, legacy_read_register_gen): Use
2667 target_fetch_registers instead of fetch_register.
2668 (legacy_write_register_gen, regcache_raw_write): Use
2669 target_store_register instead of store_register.
2670 (write_register_bytes): Ditto.
2671
2672 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
2673 (STORE_PSEUDO_REGISTER): Delete.
2674 * gdbarch.h, gdbarch.c: Regenerate.
2675
2676 2002-08-06 Corinna Vinschen <vinschen@redhat.com>
2677
2678 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
2679 write dump file binary.
2680
2681 2002-08-05 Michael Snyder <msnyder@redhat.com>
2682
2683 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
2684 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
2685 (mips_gdbarch_init): Set N32 target to be mips64.
2686
2687 2002-08-06 Kevin Buettner <kevinb@redhat.com>
2688
2689 * frame.c (find_saved_register): Break out of loop once saved
2690 register address is found. Don't mention sparc in loop comment
2691 anymore.
2692
2693 2002-08-06 Kevin Buettner <kevinb@redhat.com>
2694
2695 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
2696 mips_default_saved_regsize to 8.
2697
2698 2002-08-06 Andrew Cagney <ac131313@redhat.com>
2699
2700 * gcore.c: Do not include <sys/procfs.h>.
2701 * Makefile.in (gcore.o): Update dependencies.
2702
2703 2002-08-06 Andrew Cagney <cagney@redhat.com>
2704
2705 * configure.tgt: Make arc-*-* obsolete.
2706 * NEWS: Mention that arc-*-* has been identifed as obsolete.
2707 * MAINTAINERS: Make arc-elf obsolete.
2708 * arc-tdep.c: Make file obsolete.
2709 * config/arc/arc.mt: Ditto.
2710 * config/arc/tm-arc.h: Ditto.
2711
2712 2002-08-05 Theodore A. Roth <troth@verinet.com>
2713
2714 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
2715
2716 2002-08-05 Andrew Cagney <ac131313@redhat.com>
2717
2718 * mcore-tdep.c (mcore_gdbarch_init): Use
2719 generic_unwind_get_saved_register instead of
2720 generic_get_saved_register.
2721 * v850-tdep.c (v850_gdbarch_init): Ditto.
2722 * frv-tdep.c (frv_gdbarch_init): Ditto.
2723 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2724 * s390-tdep.c (s390_gdbarch_init): Ditto.
2725 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2726 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
2727 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
2728
2729 2002-08-05 Joel Brobecker <brobecker@gnat.com>
2730
2731 * objfiles.h: Add missing #include "symfile.h"
2732
2733 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
2734
2735 2002-08-04 Andrew Cagney <ac131313@redhat.com>
2736
2737 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
2738 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
2739 of FIELD_BITSIZE.
2740
2741 2002-08-04 Daniel Jacobowitz <drow@mvista.com>
2742
2743 * NEWS: Cleanup and nitpick.
2744
2745 2002-08-03 Andrew Cagney <ac131313@redhat.com>
2746
2747 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
2748
2749 2002-08-03 Andrew Cagney <ac131313@redhat.com>
2750
2751 * Makefile.in (gdbtk-bp.o): Update dependencies.
2752 (gdbtk-register.o): Ditto.
2753 (gdbtk-varobj.o): Ditto.
2754
2755 2002-08-03 Andrew Cagney <cagney@redhat.com>
2756
2757 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
2758 m68hc11_fetch_pseudo_register.
2759 (m68hc11_pseudo_register_write): Replace
2760 m68hc11_store_pseudo_register.
2761 (m68hc11_gdbarch_init): Update.
2762
2763 Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
2764
2765 * gdbarch.sh: Include "gdb_string.h".
2766 * gdbarch.c: Regenerate.
2767
2768 * regcache.c: Include "gdb_string.h".
2769 * ax-general.c: Ditto.
2770 * varobj.c: Ditto.
2771 * std-regs.c: Ditto.
2772 * fbsd-proc.c: Ditto.
2773 * thread.c: Ditto.
2774
2775 * Makefile.in (regcache.o): Update dependencies.
2776 (thread.o, gdbarch.o): Ditto.
2777 (ax-general.o, gdbarch.o): Ditto.
2778 (varobj.o, std-regs.o): Ditto.
2779 (fbsd-proc.o): Specify dependencies.
2780
2781 2002-08-02 Andrew Cagney <cagney@redhat.com>
2782
2783 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
2784 regnum.
2785 (regcache_cooked_write): Ditto.
2786
2787 2002-08-02 Andrew Cagney <ac131313@redhat.com>
2788
2789 * regcache.c (regcache_cooked_read): New function.
2790 (regcache_cooked_write): New function.
2791 (read_register_gen): Rewrite using regcache_cooked_read.
2792 (write_register_gen): Rewrite using regcache_cooked_write.
2793
2794 * regcache.h (regcache_cooked_read, regcache_cooked_write):
2795 Declare.
2796
2797 2002-08-02 Andrew Cagney <cagney@redhat.com>
2798
2799 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
2800 Replace the architecture methods register_read and register_write.
2801 * gdbarch.h, gdbarch.c: Regenerate.
2802 * regcache.c (init_regcache_descr): Update.
2803 (read_register_gen): Update.
2804 (write_register_gen): Update.
2805 (supply_register): Update comment.
2806
2807 * sh-tdep.c (sh_gdbarch_init): Update.
2808 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
2809 `regcache' and `gdbarch' parameters. Make `buffer' a void
2810 pointer. Update code.
2811 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
2812 `regcache' and `gdbarch' parameters. Make `buffer' a constant
2813 void pointer. Update code.
2814 (sh64_register_write): Delete.
2815 (sh4_register_read): Delete.
2816 (sh64_register_read): Delete.
2817 (sh4_register_write): Delete.
2818 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
2819 void pointer, `to' parameter a void pointer.
2820 (sh_sh64_register_convert_to_raw): Ditto.
2821
2822 2002-08-01 Kevin Buettner <kevinb@redhat.com>
2823
2824 * mips-tdep.c (mips_register_virtual_type): Use architecture
2825 invariant return values.
2826
2827 2002-08-01 Andrew Cagney <cagney@redhat.com>
2828
2829 * linux-proc.c: Include "gdb_string.h".
2830 * Makefile.in (linux-proc.o): Update dependency list.
2831
2832 2002-08-01 Kevin Buettner <kevinb@redhat.com>
2833
2834 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
2835 comment.
2836
2837 2002-08-01 Grace Sainsbury <graces@redhat.com>
2838
2839 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
2840 to_insert_watchpoint, to_remove_watchpoint,
2841 to_stopped_by_watchpoint, to_stopped_data_address,
2842 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
2843 target vecctor. Define their corresponding macros so they call
2844 them.
2845
2846 * target.c: Add default and debug versions of for
2847 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
2848 to_insert_watchpoint, to_remove_watchpoint,
2849 to_stopped_by_watchpoint, to_stopped_data_address,
2850 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
2851
2852 2002-08-01 Kevin Buettner <kevinb@redhat.com>
2853
2854 * mips-tdep.c (mips_register_virtual_type): New function.
2855 (mips_gdbarch_init): Register mips_register_virtual_type()
2856 with gdbarch machinery.
2857 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
2858 this file instead of tm-bigmips.h.
2859 (MIPS_REGSIZE): Delete this macro.
2860 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
2861 multiarch version in mips-tdep.c will be found.
2862
2863 2002-08-01 Andrew Cagney <cagney@redhat.com>
2864
2865 * NEWS: Menion that CHILL has been made obsolete.
2866
2867 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
2868 * stabsread.c (read_range_type): Ditto.
2869 * gdbtypes.h: Ditto.
2870 * language.c (binop_type_check): Ditto.
2871 (binop_result_type): Ditto.
2872 (integral_type): Ditto.
2873 (character_type): Ditto.
2874 (string_type): Ditto.
2875 (boolean_type): Ditto.
2876 (structured_type): Ditto.
2877 (lang_bool_type): Ditto.
2878 (binop_type_check): Ditto.
2879 * language.h (_LANG_chill): Ditto.
2880 * dwarfread.c (set_cu_language): Ditto.
2881 * dwarfread.c (CHILL_PRODUCER): Ditto.
2882 * dwarfread.c (handle_producer): Ditto.
2883 * expression.h (enum exp_opcode): Ditto.
2884 * eval.c: Ditto for comments.
2885 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
2886 * expprint.c (print_subexp): Ditto.
2887 (print_subexp): Ditto.
2888 * valops.c (value_cast): Ditto.
2889 (search_struct_field): Ditto.
2890 * value.h (COERCE_VARYING_ARRAY): Ditto.
2891 * symfile.c (init_filename_language_table): Ditto.
2892 (add_psymbol_with_dem_name_to_list): Ditto.
2893 * valarith.c (value_binop): Ditto.
2894 (value_neg): Ditto.
2895 * valops.c (value_slice): Ditto.
2896 * symtab.h (union language_specific): Ditto.
2897 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
2898 (SYMBOL_DEMANGLED_NAME): Ditto.
2899 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
2900 * defs.h (enum language): Ditto.
2901 * symtab.c (got_symtab): Ditto.
2902 * utils.c (fprintf_symbol_filtered): Ditto.
2903
2904 * ch-typeprint.c: Make file obsolete.
2905 * ch-valprint.c: Make file obsolete.
2906 * ch-lang.h: Make file obsolete.
2907 * ch-exp.c: Make file obsolete.
2908 * ch-lang.c: Make file obsolete.
2909
2910 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
2911 CHILL_LIB.
2912 (TARGET_FLAGS_TO_PASS): Ditto.
2913 (CHILLFLAGS): Obsolete.
2914 (CHILL): Obsolete.
2915 (CHILL_FOR_TARGET): Obsolete.
2916 (CHILL_LIB): Obsolete.
2917 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
2918 ch-valprint.c.
2919 (HFILES_NO_SRCDIR): Remove ch-lang.h.
2920 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
2921 ch-lang.o.
2922 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
2923 targets.
2924
2925 2002-07-31 Joel Brobecker <brobecker@gnat.com>
2926
2927 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
2928 This does not change anything at the moment, but will be helpful
2929 later when full Ada support is integrated.
2930
2931 2002-07-31 Kevin Buettner <kevinb@redhat.com>
2932
2933 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
2934 help message.
2935
2936 2002-07-31 Kevin Buettner <kevinb@redhat.com>
2937
2938 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
2939 and save it in a local variable. Use variable in later test.
2940
2941 2002-07-31 Kevin Buettner <kevinb@redhat.com>
2942
2943 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
2944 test. (Thanks to Daniel Jacobowitz.)
2945
2946 2002-07-31 Kevin Buettner <kevinb@redhat.com>
2947
2948 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
2949 (mips_abi_strings): Add "n64".
2950 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
2951
2952 2002-07-31 Kevin Buettner <kevinb@redhat.com>
2953
2954 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
2955 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
2956
2957 2002-07-31 Kevin Buettner <kevinb@redhat.com>
2958
2959 * utils.c (host_pointer_to_address, address_to_host_pointer):
2960 Use gdb_assert() instead of explicit call to internal_error().
2961
2962 2002-07-30 Kevin Buettner <kevinb@redhat.com>
2963
2964 * Makefile.in (rs6000-nat.o): Update dependencies.
2965
2966 From Nicholas Duffek:
2967 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
2968 (aix-thread.o): New rule.
2969 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
2970 * config/powerpc/aix432.mh: New file.
2971
2972 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
2973
2974 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
2975 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
2976 (fetch_core_registers, ppc_linux_supply_gregset)
2977 (ppc_linux_supply_fpregset): New functions.
2978 (ppc_linux_regset_core_fns): New.
2979 (_initialize_ppc_linux_tdep): Call add_core_fns.
2980 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
2981 and ppc_linux_supply_gregset.
2982 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
2983 (supply_fpregset): Call ppc_linux_supply_fpregset.
2984 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
2985 corelow.o.
2986 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
2987
2988 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
2989
2990 * symtab.c (lookup_symbol): Demangle before lowercasing.
2991
2992 2002-07-30 Andrew Cagney <ac131313@redhat.com>
2993
2994 * symtab.h: Replace #include "gdb_obstack.h" with opaque
2995 declaration.
2996 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
2997 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
2998 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
2999 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
3000 "gdb_string.h".
3001 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
3002 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
3003 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
3004 (avr-tdep.o, mon960-rom.o): Ditto.
3005 (aout_stabs_gnu_h): Define.
3006 (symtab_h): Remove $(gdb_obstack_h).
3007
3008 2002-07-30 Jim Blandy <jimb@redhat.com>
3009
3010 Patch from David Carlton <carlton@math.stanford.edu>:
3011 * gdbinit.in: Move the `dir' commands that add GDB's own source
3012 directory to the search path to the end, so that the `gdb' source
3013 directory will be searched first.
3014
3015 2002-07-29 Andrew Cagney <ac131313@redhat.com>
3016
3017 * gdb_obstack.h: New file.
3018 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
3019 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
3020 * objfiles.h: Include "gdb_obstack.h".
3021 * Makefile.in (gdb_obstack_h): Define.
3022 (symtab_h): Add $(gdb_obstack_h).
3023 (objfiles_h): Add $(gdb_obstack_h).
3024
3025 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
3026 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
3027 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
3028 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
3029 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
3030 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
3031 * symfile.c, coffread.c, c-typeprint.c: Ditto.
3032 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
3033
3034 * Makefile.in (bcache.o): Update dependencies.
3035 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
3036 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
3037 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
3038 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
3039 (stabsread.o, symfile.o, symmisc.o): Ditto.
3040 (symtab.o, typeprint.o, macroexp.o): Ditto.
3041 (macrotab.o, mdebugread.o): Ditto.
3042 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
3043 (coff_ecoff_h, aout_aout64_h): Define.
3044 (aout_stabs_gnu_h, libaout_h): Define.
3045
3046 2002-07-29 Andrew Cagney <cagney@redhat.com>
3047
3048 * regcache.c (struct regcache_descr): Rename nr_registers to
3049 nr_cooked_registers. Revise comments describing the structure
3050 member fields.
3051 (init_regcache_descr): Update.
3052 (init_legacy_regcache_descr): Update.
3053 (read_register_gen, write_register_gen): When a cooked register in
3054 the raw register range, directly access the value from the raw
3055 register cache.
3056
3057 2002-07-29 Andrew Cagney <ac131313@redhat.com>
3058
3059 * z8k-tdep.c: Do not include "obstack.h".
3060 * h8300-tdep.c, h8500-tdep.c: Ditto.
3061 * m68hc11-tdep.c, sh-tdep.c: Ditto.
3062 * valprint.c, v850-tdep.c: Ditto.
3063 * d10v-tdep.c, mn10300-tdep.c: Ditto.
3064 * mn10200-tdep.c: Ditto.
3065
3066 * Makefile.in (z8k-tdep.o): Update dependencies.
3067 (m68hc11-tdep.o, valprint.o): Ditto.
3068 (v850-tdep.o, d10v-tdep.o): Ditto.
3069 (mn10300-tdep.o, sparc-tdep.o): Ditto.
3070 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
3071 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
3072 (sh_opc_h, gdb_sim_sh_h): Define.
3073 (elf_sh_h, elf_bfd_h): Define.
3074 (opcode_m68hc11_h): Define.
3075 (OPCODES_SRC, OPCODES_DIR): define.
3076 (OPCODES): Use $(OPCODES_DIR).
3077 (gdb_sim_d10v_h): Rename sim_d10v_h.
3078 (gdb_sim_arm_h): Rename sim_arm_h.
3079
3080 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3081
3082 * utils.c (host_pointer_to_address, address_to_host_pointer):
3083 Change internal_error() message to indicate function responsible
3084 for the error.
3085
3086 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3087
3088 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
3089 calls to local_hex_string_custom().
3090
3091 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3092
3093 * irix5-nat.c: Move IRIX shared library support from here...
3094 * solib-irix.c: ...to here. Revised substantially to work with
3095 generic solib framework.
3096
3097 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
3098 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
3099 * mips-irix-tdep.c: New file.
3100
3101 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
3102 (mips-irix-tdep.o, solib-irix.o): New rules.
3103 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
3104 solib-irix.o.
3105 * config/mips/irix6.mt (TDEPFILES): Likewise.
3106 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
3107
3108 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3109
3110 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
3111 disabled (via ``#if 0'') includes.
3112
3113 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3114
3115 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
3116 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
3117 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
3118 Add support for the fpscr register.
3119 * rs6000-nat.c (regmap, fetch_inferior_registers)
3120 (store_inferior_registers, fetch_core_registers): Likewise.
3121
3122 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3123
3124 * rs6000-nat.c (language.h): Include.
3125 (special_regs): Delete this array.
3126 (regmap): New function.
3127 (fetch_register, store_register): Use regmap() to map gdb
3128 register numbers to ptrace register numbers. Also, use
3129 outputs from regmap() to make decisions regarding type of
3130 ptrace() call to make. In particular, don't compare against
3131 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
3132 (fetch_inferior_registers, store_inferior_registers): Where
3133 possible, obtain register numbers from tdep struct. Don't
3134 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
3135 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
3136 (LAST_UISA_SP_REGNUM): Delete.
3137
3138 2002-07-25 Kevin Buettner <kevinb@redhat.com>
3139
3140 * rs6000-nat.c (ppc-tdep.h): Include.
3141 (fetch_registers, store_register, fetch_core_registers): Don't
3142 access registers[] directly. Instead, use supply_register() or
3143 regcache_collect() as appropriate.
3144 (find_toc_address): Format hex address with local_hex_string().
3145
3146 2002-07-25 Andrew Cagney <ac131313@redhat.com>
3147
3148 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
3149 bfd/elf32-frv.c.
3150
3151 2002-07-24 Tom Tromey <tromey@redhat.com>
3152
3153 * jv-exp.y: Marked all strings with _().
3154 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
3155 internal_error.
3156 (MethodInvocation, CastExpression, parse_number, yyerror,
3157 java_type_from_name, push_expression_name, yylex): Typo fixes.
3158
3159 2002-07-24 Daniel Jacobowitz <drow@mvista.com>
3160
3161 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
3162 (tee_file_flush, tee_file_write, tee_file_fputs)
3163 (tee_file_isatty): New.
3164 * ui-file.h (tee_file_new): Add prototype.
3165
3166 2002-07-24 Aidan Skinner <aidan@velvet.net>
3167
3168 * ada-lang.c: Change k&r style function definitions to prototyped
3169 form.
3170 * ada-typeprint.c: Change k&r style function definitions to prototyped
3171 form.
3172 * ada-valprint.c: Change k&r style function definitions to prototyped
3173 form.
3174
3175 2002-07-24 Andrew Cagney <cagney@redhat.com>
3176
3177 * README: Remove reference to remote-bug.
3178 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
3179 remote-bug.c.
3180 (m88k-nat.o): Delete rule.
3181 (m88k-tdep.o): Delete rule.
3182 (remote-bug.o): Delete rule.
3183 * MAINTAINERS: Mark as obsolete.
3184 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
3185 * m88k-tdep.c: Make file obsolete.
3186 * config/m88k/m88k.mh: Ditto.
3187 * config/m88k/delta88v4.mh: Ditto.
3188 * config/m88k/delta88v4.mt: Ditto.
3189 * config/m88k/delta88.mt: Ditto.
3190 * config/m88k/delta88.mh: Ditto.
3191 * remote-bug.c: Ditto.
3192 * config/m88k/tm-delta88.h: Ditto.
3193 * config/m88k/nm-delta88v4.h: Ditto.
3194 * config/m88k/xm-delta88.h: Ditto.
3195 * config/m88k/xm-dgux.h: Ditto.
3196 * config/m88k/tm-m88k.h: Ditto.
3197 * config/m88k/nm-m88k.h: Ditto.
3198 * config/m88k/tm-delta88v4.h: Ditto.
3199 * m88k-nat.c: Ditto.
3200 * cxux-nat.c: Ditto.
3201 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
3202 and m88*-*-* obsolete.
3203 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
3204 m88*-*-* obsolete.
3205
3206 2002-07-24 Andrew Cagney <cagney@redhat.com>
3207
3208 * findvar.c (extract_unsigned_integer): Make `addr' parameter
3209 constant. Same for local pointer variables.
3210 (extract_signed_integer): Ditto.
3211 * defs.h (extract_unsigned_integer): Update.
3212 (extract_signed_integer): Update.
3213
3214 2002-07-24 Andrew Cagney <cagney@redhat.com>
3215
3216 * regcache.c (regcache_raw_write): Change buf parameter to a
3217 constant void pointer.
3218 (regcache_raw_read): Change buf parameter to a void pointer.
3219 (legacy_write_register_gen): Change myaddr parameter a constant
3220 void pointer.
3221 (supply_register): Change val parameter to a const void pointer.
3222 * regcache.h (regcache_raw_write): Update declaration.
3223 (regcache_raw_read): Update declaration.
3224 (supply_register): Update declaration.
3225
3226 2002-07-24 Tom Tromey <tromey@redhat.com>
3227
3228 * defs.h (gdb_readline_wrapper): Declare.
3229 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
3230 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
3231 * top.c (gdb_readline_wrapper): New function.
3232 (command_line_input): Use it.
3233
3234 2002-07-24 Andrew Cagney <cagney@redhat.com>
3235
3236 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
3237 regcache_read and regcache_write.
3238 (regcache_raw_read_as_address): Replace regcache_read_as_address.
3239 * regcache.c: Update.
3240 * sh-tdep.c (sh64_push_arguments): Update comment.
3241 (sh_pseudo_register_read): Update.
3242 (sh_pseudo_register_write): Update.
3243 (sh4_register_read): Update.
3244 (sh4_register_write): Update.
3245 (sh64_pseudo_register_read): Update.
3246 (sh64_pseudo_register_write): Update.
3247 (sh64_register_read): Update.
3248 (sh64_register_write): Update.
3249 * i386-tdep.c (i386_extract_return_value): Update.
3250 (i386_extract_struct_value_address): Update.
3251 (i386_extract_return_value): Update.
3252 * blockframe.c (generic_read_register_dummy): Update.
3253 (generic_call_dummy_register_unwind): Update
3254 * infrun.c (write_inferior_status_register): Update.
3255
3256 2002-07-23 Jim Blandy <jimb@redhat.com>
3257
3258 * parser-defs.h (expression_context_pc): Make this extern.
3259 (Thanks to Michael Snyder.)
3260
3261 2002-07-23 Andrew Cagney <ac131313@redhat.com>
3262
3263 GDB 5.2.1 released from 5.2 branch.
3264 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
3265 * README: Update to mention 5.2.1.
3266
3267 2002-07-23 Mark Salter <msalter@redhat.com>
3268
3269 * remote.c (remote_read_bytes): Fix check for error.
3270
3271 2002-07-22 Kevin Buettner <kevinb@redhat.com>
3272
3273 * aix-thread.c (language.h): Include.
3274 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
3275 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
3276 Print newlines at end of debug messages.
3277 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
3278 (pdc_write_data): Use local_hex_string() instead of %llx formats.
3279
3280 2002-07-22 Kevin Buettner <kevinb@redhat.com>
3281
3282 * aix-thread.c (ppc-tdep.h): Include.
3283 (special_register_p): New function.
3284 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
3285 (store_regs_user_thread): Use register number information from
3286 gdbarch_tdep struct instead of hardcoded offsets relative to
3287 FIRST_UISA_SP_REGNUM.
3288 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
3289 special_register_p() instead of using FPLAST_REGNUM and
3290 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
3291 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
3292 will be MQ's register number.
3293
3294 2002-07-22 Michael Snyder <msnyder@redhat.com>
3295
3296 * aix-thread.c (ops): Rename to aix_thread_ops.
3297 (base_ops): Rename to base_target.
3298 (ops_attach): Rename to aix_thread_attach.
3299 (ops_detach): Rename to aix_thread_detach.
3300 (ops_resume): Rename to aix_thread_detach.
3301 (ops_wait): Rename to aix_thread_wait.
3302 (ops_kill): Rename to aix_thread_kill.
3303 (init_ops): Rename to init_aix_thread_ops.
3304 (ops_fetch_register): Rename to aix_thread_fetch_register.
3305 (ops_store_register): Rename to aix_thread_store_register.
3306 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
3307 (ops_thread_alive): Rename to aix_thread_thread_alive.
3308 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
3309 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
3310 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
3311 (fetch_regs_lib): Rename to fetch_regs_user_thread.
3312 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
3313 (store_regs_lib): Rename to store_regs_user_thread.
3314 (store_regs_kern): Rename to store_regs_kernel_thread.
3315
3316 2002-07-22 Michael Snyder <msnyder@redhat.com>
3317
3318 * aix-thread.c (ops_prepare_to_store): Eliminate.
3319 (init_ops): Don't initialize ops.prepare_to_store.
3320 (store_regs_kern): Pre-fetch register buffers from child,
3321 because some registers may not be in the cache. Copy
3322 regs from register cache only if they are cached.
3323 (store_regs_lib): Copy regs from register cache only
3324 if they are cached.
3325 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
3326 fill_gprs64): Ditto.
3327
3328 2002-07-22 Kevin Buettner <kevinb@redhat.com>
3329
3330 * aix-thread.c (gdb_assert.h): Include.
3331 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
3332 register sizes (from register cache) match size of buffer holding
3333 register data.
3334 (fill_sprs32): Change parameter types to match those in the ptrace()
3335 buffer.
3336 (store_regs_lib): Likewise, but for 32-bit temporary variables.
3337 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
3338
3339 2002-07-22 Michael Snyder <msnyder@redhat.com>
3340
3341 * aix-thread.c (supply_sprs64): Cosmetic change.
3342 (supply_sprs32): Cosmetic change.
3343 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
3344 (fill_sprs64): Use regcache_collect instead of read_register.
3345 (store_regs_lib): Use regcache_collect instead of
3346 read_register. Use fill_sprs32 instead of fill_sprs64,
3347 if debugging a 32-bit architecture.
3348 (store_regs_kern): Use fill_gprs64 etc. to pull the values
3349 out of the register cache, instead of passing a pointer into
3350 the register cache directly to ptrace. Use regcache_collect
3351 insteaad of read_register.
3352 (ops_prepare_to_store): Use target_read_registers instead
3353 of read_register_bytes.
3354
3355 2002-07-20 Aidan Skinner <aidan@velvet.net>
3356
3357 * MAINTAINERS: Add self under write after approval.
3358
3359 2002-07-20 Aidan Skinner <aidan@velvet.net>
3360
3361 * ada-tasks.c: Change k&r style function definitions to prototyped
3362 form.
3363
3364 2002-07-19 Andrew Cagney <ac131313@redhat.com>
3365
3366 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
3367 * x86-64-tdep.c: Include "objfiles.h".
3368 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
3369 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
3370
3371 2002-07-17 Michal Ludvig <michal@suse.cz>
3372
3373 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
3374 (update_context): Initialise cfa variable.
3375
3376 2002-07-17 Michael Snyder <msnyder@redhat.com>
3377
3378 * aix-thread.c: Shorten some long lines.
3379 Bring comments into line with code spec.
3380
3381 2002-07-18 Joel Brobecker <brobecker@gnat.com>
3382
3383 * infrun.c: Re-indent using gdb_indent.sh.
3384
3385 2002-07-18 Joel Brobecker <brobecker@gnat.com>
3386
3387 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
3388 Leave the indentation temporarily untouched, to minimize the diffs.
3389
3390 2002-07-18 Elena Zannoni <ezannoni@redhat.com>
3391
3392 * stabsread.c: Make os9k sections of the code obsolete,
3393 for real this time.
3394 * stabsread.h: Make os9k sections of the code obsolete.
3395
3396 2002-07-18 Michal Ludvig <mludvig@suse.cz>
3397
3398 * linux-low.c (regsets_store_inferior_registers): Add free()
3399 at the end of a loop to prevent memory leak.
3400 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
3401 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
3402 * config/sparc/tm-sp64linux.h: Make the rest of #endif
3403 line a comment.
3404 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
3405
3406 2002-07-17 Jim Blandy <jimb@redhat.com>
3407
3408 * macrocmd.c (info_macro_command): Remove newline from error
3409 message.
3410
3411 2002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
3412
3413 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
3414 (sh_gdbarch_init): Use it for sh-dsp.
3415
3416 2002-07-16 Kevin Buettner <kevinb@redhat.com>
3417
3418 * dwarf2read.c (read_initial_length): Handle older, non-standard,
3419 64-bit DWARF2 format.
3420
3421 2002-07-16 Joel Brobecker <brobecker@gnat.com>
3422
3423 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
3424 <sys/proc.h> when not available.
3425
3426 2002-07-16 Andrew Cagney <ac131313@redhat.com>
3427
3428 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
3429 * stabsread.c: Make os9k sections of the code obsolete.
3430 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
3431 * config/i386/i386os9k.mt: Make file obsolete.
3432 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
3433 (COMMON_OBS): Remove os9kread.o
3434 (SFILES): Remove os9kread.c.
3435 (os9kread.o, remote-os9k.o): Make target obsolete.
3436 * remote-os9k.c: Make file obsolete.
3437 * os9kread.c: Make file obsolete.
3438 * Makefile.in
3439
3440 2002-07-16 Andrew Cagney <ac131313@redhat.com>
3441
3442 * NEWS: Mention that the FR30 has been made obsolete.
3443 * fr30-tdep.c: Make file obsolete.
3444 * config/fr30/tm-fr30.h: Ditto.
3445 * config/fr30/fr30.mt: Ditto.
3446 * configure.tgt: Make fr30-*-elf obsolete.
3447 * MAINTAINERS: Make fr30-elf obsolete.
3448
3449 2002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
3450
3451 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
3452 found is not inside a section.
3453
3454 2002-07-15 Kevin Buettner <kevinb@redhat.com>
3455
3456 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
3457 strerror().
3458 (pdc_realloc): Use xrealloc() instead of realloc().
3459
3460 2002-07-15 Kevin Buettner <kevinb@redhat.com>
3461
3462 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
3463 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
3464 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
3465 macros.
3466
3467 2002-07-15 Kevin Buettner <kevinb@redhat.com>
3468
3469 * aix-thread.c (ptrace_check): Eliminate goto.
3470 (sync_threadlists): Eliminate gotos. Also, fix array overrun
3471 problem.
3472
3473 2002-07-15 Kevin Buettner <kevinb@redhat.com>
3474
3475 * aix-thread.c (gdbcmd.h): Include.
3476 (DEBUG, DBG, DBG2, dbg): Eliminate.
3477 (debug_aix_thread): New static global.
3478 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
3479 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
3480 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
3481 invocations to DBG and DBG2 macros to test against
3482 ``debug_aix_thread'' and call fprintf_unfiltered().
3483 (_initialize_aix_thread): Add new command "set debug aix-thread".
3484
3485 2002-07-15 Andrew Cagney <ac131313@redhat.com>
3486
3487 From Gerhard Tonn <TON@de.ibm.com>:
3488 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
3489 instead of supply_register.
3490
3491 2002-07-15 Andrew Cagney <ac131313@redhat.com>
3492
3493 * dwarf2cfi.c: Include "gdb_assert.h".
3494 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
3495 non-NULL.
3496 (update_context): Do not use __func__. Add missing ``break''.
3497 (update_context): Do not use __func__.
3498
3499 2002-07-15 Elena Zannoni <ezannoni@redhat.com>
3500
3501 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
3502 and its setting. Set gdbarch instruction printing functions
3503 directly. For non-rs6000 case use new function
3504 gdb_print_insn_powerpc.
3505 (gdb_print_insn_powerpc): New function.
3506
3507 2002-07-13 Andrew Cagney <ac131313@redhat.com>
3508
3509 * NEWS: Mention that the d30v has been marked obsolete.
3510 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
3511 * configure.tgt: Mark d30v-*-* as obsolete.
3512 * d30v-tdep.c: Mark file as obsolete.
3513 * config/d30v/d30v.mt: Ditto.
3514 * config/d30v/tm-d30v.h: Ditto.
3515
3516 2002-07-13 Aidan Skinner <aidan@velvet.net>
3517
3518 * ada-tasks.c (add_task_entry): replace calls to
3519 malloc() with xmalloc
3520 * ada-tasks.c (init_task_list): replace calls to free with xfree()
3521
3522 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
3523 ada_finish_decode_line_1, all_sals_for_line
3524 ada_breakpoint_rewrite): replace calls to free() with xfree()
3525
3526 2002-07-12 Kevin Buettner <kevinb@redhat.com>
3527
3528 From Nicholas Duffek (with minor changes by Martin Hunt,
3529 Louis Hamilton, and Kevin Buettner):
3530 * aix-thread.c: New file.
3531
3532 2002-07-12 Petr Sorfa <petrs@caldera.com>
3533
3534 * dwarf2read.c (dwarf2_invalid_attrib_class): New
3535 complaint for invalid attribute class or form.
3536 (read_func_scope): DW_AT_frame_base
3537 better handling of DW_AT_block*.
3538 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
3539 better handling of DW_AT_block*.
3540 (read_common_block): DW_AT_location
3541 better handling of DW_AT_block*.
3542 (read_partial_die): DW_AT_location better handling
3543 of DW_AT_block*.
3544 (new_symbol): DW_AT_external better handling of
3545 DW_AT_block*. Proper initialization of variable
3546 "addr".
3547 (attr_form_is_block): New function that returns true
3548 if the attribute's form is of DW_FORM_block*.
3549
3550 2002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
3551
3552 * valops.c (find_method_list): Remove comment about
3553 removed STATIC_MEMFUNCP argument.
3554 (value_find_oload_method_list): Likewise.
3555
3556 2002-07-12 Kevin Buettner <kevinb@redhat.com>
3557
3558 From Nicholas Duffek:
3559 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
3560 target_new_objfile_hook.
3561
3562 2002-07-12 Kevin Buettner <kevinb@redhat.com>
3563
3564 From Nicholas Duffek:
3565 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
3566 csect.
3567
3568 2002-07-12 Andrew Cagney <cagney@redhat.com>
3569
3570 * MAINTAINERS: Mention --enable-sim-build-warnings.
3571 (m68hc11-elf): Disable sim build warnings.
3572 (m32r-elf): Mark as broken obsolete candidate.
3573 (x86_64-linux-gnu): Mark as buildable with -Werror.
3574 (arm-elf): Change -w to ``,'' which enables warnings but not
3575 -Werror.
3576
3577 2002-07-12 Andrew Cagney <ac131313@redhat.com>
3578
3579 * bcache.h: Update copyright.
3580 (struct bstring, struct bcache): Move definition to "bcache.c".
3581 Replaced by opaque declaration.
3582 (bcache_xfree): Replace free_bcache.
3583 (bcache_xmalloc, bcache_memory_used): Declare.
3584
3585 * bcache.c: Update copyright.
3586 (struct bstring, struct bcache): Moved to here from "bcache.h".
3587 Update comments.
3588 (bcache_xmalloc, bcache_memory_used): New functions.
3589 (bcache_xfree): Replace function free_bcache.
3590
3591 * Makefile.in (objfiles.o): Add $(bcache_h).
3592 (objfiles_h): Remove $(bcache_h).
3593 (symfile.o): Add $(bcache_h).
3594
3595 * symmisc.c: Update copyright.
3596 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
3597 (print_objfile_statistics): Use bcache_memory_used.
3598
3599 * symfile.c: Include "bcache.h".
3600 (reread_symbols): Use bcache_xfree.
3601 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
3602 (add_psymbol_to_list): Pass psymbol_cache by value.
3603 (add_psymbol_with_dem_name_to_list): Ditto.
3604
3605 * objfiles.h: Update copyright.
3606 (struct bcache): Declare opaque. Do not include "bcache.h".
3607 (struct objfile): Change psymbol_cache and macro_cache to ``struct
3608 bcache'' pointers.
3609 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
3610
3611 * objfiles.c: Include "bcache.h". Update copyright.
3612 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
3613 macro_cache.
3614 (free_objfile): Use bcache_xfree.
3615
3616 2002-07-11 Grace Sainsbury <graces@redhat.com>
3617
3618 * monitor.c (monitor_fetch_register): Make name a constant.
3619 (monitor_store_register): Same.
3620
3621 2002-07-11 Daniel Jacobowitz <drow@mvista.com>
3622
3623 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
3624 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
3625 (finish_block) For non-function blocks, hash the symbol table. For
3626 function blocks, mark the symbol table as unhashed.
3627 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
3628 (msymbol_hash_iw): Likewise.
3629 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
3630 value.
3631 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
3632 (lookup_minimal_symbol): Likewise for both.
3633 * symtab.h (struct block): Add `hashtable' flag. Comment the
3634 hashtable.
3635 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
3636 (ALL_BLOCK_SYMBOLS): Update.
3637 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
3638 (struct symbol): Add `hash_next' pointer.
3639 * symtab.c (lookup_block_symbol): Search using the hash table when
3640 possible.
3641 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
3642 (search_symbols, find_addr_symbol): Likewise.
3643
3644 * dstread.c (process_dst_block): Clear hashtable bit for new block.
3645 (read_dst_symtab): Likewise.
3646 * jv-lang.c (get_java_class_symtab): Likewise.
3647 * mdebugread.c: Include "gdb_assert.h".
3648 (shrink_block): Assert that the block being modified is not hashed.
3649 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
3650 * symmisc.c (free_symtab_block): Walk the hash table when freeing
3651 symbols.
3652 (dump_symtab): Recognize hashed blocks.
3653 * printcmd.c (print_frame_args): Assert that function blocks do not
3654 have hashed symbol tables.
3655 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
3656 (fill_in_ada_prototype, debug_print_block): Likewise.
3657 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
3658
3659 2002-07-11 Corinna Vinschen <vinschen@redhat.com>
3660
3661 * stack.c (print_frame): Use result of frame_address_in_block()
3662 instead of fi->pc when evaluating symbols.
3663 (backtrace_command_1): Ditto.
3664
3665 2002-07-11 Andrew Cagney <cagney@redhat.com>
3666
3667 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
3668 Make static.
3669
3670 * arm-tdep.c (arm_register_name): Make return type constant.
3671
3672 2002-07-10 Andrew Cagney <ac131313@redhat.com>
3673
3674 * win32-nat.c (has_detach_ability): Convert to strict ISO C
3675 prototype.
3676 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
3677 * s390-tdep.c (s390_fp_regnum): Ditto.
3678 (s390_read_fp): Ditto.
3679 (s390_pop_frame): Ditto.
3680 (_initialize_s390_tdep): Ditto.
3681 * remote.c (get_remote_state): Ditto.
3682 * procfs.c (mappingflags): Ditto.
3683 * memattr.c (_initialize_mem): Ditto.
3684 * mcore-tdep.c (mcore_pop_frame): Ditto.
3685 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
3686 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
3687 * language.c (set_case_str): Ditto.
3688 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
3689 * frv-tdep.c (new_variant): Ditto.
3690 (frv_stopped_data_address): Ditto.
3691 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
3692 (context_alloc): Ditto.
3693 (frame_state_alloc): Ditto.
3694 (unwind_tmp_obstack_init): Ditto.
3695 (unwind_tmp_obstack_free): Ditto.
3696 (cfi_read_fp): Ditto.
3697 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
3698 (cris_pop_frame): Ditto.
3699 * c-lang.c (scanning_macro_expansion): Ditto.
3700 (finished_macro_expansion): Ditto.
3701 (c_preprocess_and_parse): Ditto.
3702 * gdbarch.sh: Ditto.
3703 * gdbarch.h, gdbarch.c: Regenerate.
3704 * config/mn10200/tm-mn10200.h: Adjust indentation.
3705 * target.c: Adjust indentation.
3706 * symtab.h: Adjust indentation.
3707 * stabsread.h: Adjust indentation.
3708 * remote-es.c: Adjust indentation.
3709 * os9kread.c: Adjust indentation.
3710
3711 2002-07-10 Andrew Cagney <ac131313@redhat.com>
3712
3713 * wince.c (_initialize_wince): Rename _initialize_inftarg.
3714 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
3715
3716 2002-07-10 Grace Sainsbury <graces@redhat.com>
3717
3718 * NEWS: Mention m68k, mcore multi-arching.
3719 * MAINTAINERS: Change status of m68k, mcore to reflect
3720 multi-arching.
3721
3722 2002-07-10 Daniel Jacobowitz <drow@mvista.com>
3723
3724 * valops.c (find_overload_match): Free oload_syms.
3725
3726 2002-07-09 Joel Brobecker <brobecker@gnat.com>
3727
3728 Define HAVE_SYS_PROC_H if sys/proc.h exists
3729 * configure.in: Add check for sys/proc.h
3730 * config.in: Regenerate.
3731 * configure: Regenerate.
3732
3733 2002-07-09 Grace Sainsbury <graces@redhat.com>
3734
3735 * config/m68k/tm-m68k.h: Remove macros wrapped in
3736 #if !GDB_MULTI_ARCH.
3737
3738 2002-07-08 Andrew Cagney <ac131313@redhat.com>
3739
3740 * config.in, configure: Regenerate.
3741
3742 2002-07-08 Mark Kettenis <kettenis@gnu.org>
3743
3744 * dwarf2cfi.c: Include "gcore.h".
3745 (execute_stack_op): Fix implementation of the
3746 DW_OP_deref and DW_OP_deref_size operators by letting do their
3747 lookup in the target.
3748
3749 2002-07-07 Mark Kettenis <kettenis@gnu.org>
3750
3751 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
3752 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
3753 tdep->sc_sp_offset.
3754
3755 2002-07-05 Daniel Jacobowitz <drow@mvista.com>
3756
3757 Fix PR gdb/595, gdb/602
3758 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
3759 Don't call value_cast, just read the vtable pointer; update comments
3760 to match.
3761
3762 2002-07-05 Grace Sainsbury <graces@redhat.com>
3763
3764 * config/mcore/tm-mcore.h: Remove file.
3765 * config/mcore/mcore.mt: Remove definition of TM_FILE
3766 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
3767
3768 2002-07-05 Mark Kettenis <kettenis@gnu.org>
3769
3770 * i386bsd-tdep.c: Include "gdb_string.h".
3771
3772 2002-07-04 Grace Sainsbury <graces@redhat.com>
3773
3774 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
3775 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
3776 mcore-tdep.
3777 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
3778 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
3779 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
3780 (RETVAL_REGNUM): Move macros from tm-mcore.h
3781 (mcore_reg_struct_has_addr): New function.
3782 (mcore_gdbarch_init): Added initializations for the macros removed
3783 from tm-mcore.h.
3784
3785 2002-07-04 Mark Kettenis <kettenis@gnu.org>
3786
3787 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
3788 traditonal string branding within the ELF header.
3789
3790 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
3791
3792 * symtab.c (remove_params): New function.
3793 (make_symbol_overload_list): Use it instead of cplus_demangle.
3794 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
3795
3796 2002-07-04 Mark Kettenis <kettenis@gnu.org>
3797
3798 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
3799
3800 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
3801 New variables.
3802 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
3803 and tdep->sigtramp_end.
3804 * i386obsd-nat.c: New file.
3805 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
3806
3807 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
3808 Don't call get_current_frame().
3809
3810 2002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
3811
3812 * i386-nat.c (child_post_startup_inferior): New function
3813 calling i386_cleanup_dregs if
3814 I386_USE_GENERIC_WATCHPOINTS is defined.
3815 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
3816 conditional to acknowledge that i386-nat.c has its
3817 own child_post_startup_inferior function.
3818
3819 2002-07-04 Mark Kettenis <kettenis@gnu.org>
3820
3821 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
3822 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
3823 instead of MAX_REGISTER_RAW_SIZE.
3824 (i386_extract_return_value, i386_extract_struct_value_address):
3825 Convert to use regcache.
3826 (i386_gdbarch_init): Set max_register_raw_size and
3827 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
3828 Set extract_return_value and extract_struct_value_address instead
3829 of their deprecated variants.
3830
3831 Convert i386 target to generic dummy frames.
3832 * i386-tdep.c: Include "symfile.h".
3833 (i386_frameless_signal_p): Consider a function to be frameless if
3834 the pc points at the first instruction of the function.
3835 (i386_frame_chain): Handle (generic) call dummies.
3836 (i386_frame_saved_pc): Likewise.
3837 (i386_frame_init_saved_regs): Remove code dealing with call
3838 dummies on the stack.
3839 (i386_push_dummy_frame): Removed.
3840 (i386_call_dummy_words): Removed.
3841 (i386_fix_call_dummy): Removed.
3842 (i386_push_return_address): New function.
3843 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
3844 parameter, and don't call get_current_frame.
3845 (i386_pop_frame): New function.
3846 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
3847 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
3848 entry_point_address, set call_dummy_breakpoint_offset to 0, set
3849 call_dummy_length to 0, set call_dummy_words to NULL, set
3850 sizeof_call_dummy_words to 0, set fix_call_dummy to
3851 generic_fix_call_dummy, set pc_in_call_dummy to
3852 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
3853 generic_push_dummy_frame, set push_return_address to
3854 i386_push_return_address and set frame_chain_valid to
3855 generic_file_frame_chain_valid.
3856
3857 2002-07-03 Andrew Cagney <ac131313@redhat.com>
3858
3859 * gdbarch.sh (struct regcache): Add opaque declaration.
3860 (EXTRACT_RETURN_VALUE): New architecture method.
3861 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
3862 * gdbarch.h, gdbarch.c: Regenerate.
3863 * arch-utils.c (legacy_extract_return_value): New function.
3864 * arch-utils.h (legacy_extract_return_value): Declare.
3865 * values.c (value_being_returned): Re-enable code handling
3866 EXTRACT_STRUCT_VALUE_ADDRESS. Move
3867 deprecated_grub_regcache_for_registers call to block handling
3868 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
3869 (EXTRACT_RETURN_VALUE): Do not define.
3870
3871 2002-07-03 Grace Sainsbury <graces@redhat.com>
3872
3873 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
3874 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
3875 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
3876 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
3877 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
3878 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
3879 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
3880 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
3881 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
3882 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
3883 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
3884 argument so the function fits the prototype in the architecture
3885 vector.
3886 (mcore_pop_frame): Remove argument so the function fits the
3887 prototype. Use get_current_frame instead of the argument.
3888 (mcore_push_arguments): Change type of struct_return so the
3889 function can be used in the architecture vector.
3890 (mcore_store_struct_return): Add.
3891 (mcore_frame_init_saved_regs): Add.
3892 (mcore_gdbarch_init): Add function calls to replace the macros
3893 removed from tm-mcore.h
3894
3895 2002-07-03 Andrew Cagney <ac131313@redhat.com>
3896
3897 * infcmd.c (print_return_value): Remove compatibility code calling
3898 deprecated_grub_regcache_for_registers.
3899
3900 * values.c: Include "regcache.h".
3901 (value_being_returned): Update. Use
3902 deprecated_grub_regcache_for_registers to extract the register
3903 buffer address.
3904 * value.h (value_being_returned): Change ``retbuf'' parameter to a
3905 ``struct regcache''.
3906 * Makefile.in (values.o): Add dependency on $(regcache_h).
3907
3908 * inferior.h (run_stack_dummy): Change type of second parameter to
3909 a ``struct regcache''.
3910 * valops.c (hand_function_call): Change type of retbuf to ``struct
3911 regcache''. Allocate using regcache_xmalloc, clean using
3912 make_cleanup_regcache_xfree.
3913 * infcmd.c (run_stack_dummy): Update. Use
3914 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
3915
3916 * regcache.c (do_regcache_xfree): New function.
3917 (make_cleanup_regcache_xfree): New function.
3918 * regcache.h (make_cleanup_regcache_xfree): Declare.
3919
3920 2002-07-03 Martin M. Hunt <hunt@redhat.com>
3921
3922 * event-top.c (command_line_handler): Don't read past
3923 beginning of buffer.
3924
3925 2002-07-03 Martin M. Hunt <hunt@redhat.com>
3926
3927 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
3928 struct frame_id.
3929 (varobj_create): Store frame_id for root.
3930 (varobj_gen_name): Use xasprintf.
3931 (varobj_update): Save and restore frame using get_frame_id() and
3932 frame_find_by_id().
3933 (create_child): Use xasprintf.
3934 (new_root_variable): Initialize frame_id.
3935 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
3936 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
3937 to prevent memory leak.
3938
3939 2002-07-03 Andrew Cagney <ac131313@redhat.com>
3940
3941 * valops.c (hand_function_call): Move declaration of retbuf to
3942 start of function, allocate using malloc, add a cleanup but before
3943 the inf_status cleanup, cleanup the buffer. Rename local variable
3944 old_chain to inf_status_cleanup.
3945
3946 2002-07-03 Martin M. Hunt <hunt@redhat.com>
3947
3948 * top.c (execute_command): Use cmd_func() and cmd_func_p().
3949
3950 * cli/cli-decode.c (cmd_func_p): New function.
3951 (cmd_func): New function.
3952
3953 * command.h: Add cmd_func() and cmd_func_p().
3954
3955 2002-07-03 Grace Sainsbury <graces@redhat.com>
3956
3957 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
3958 (REGISTER_SIZE): Remove.
3959 (MAX_REGISTER_RAW_SIZE): Remove.
3960 (REGISTER_VIRTUAL_TYPE): Remove.
3961 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
3962 (REGISTER_NAME): Remove.
3963 (USE_GENERIC_DUMMY_FRAMES): Remove.
3964 (CALL_DUMMY): Remove.
3965 (CALL_DUMMY_START_OFFSET): Remove.
3966 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
3967 (CALL_DUMMY_LOCATION): Remove.
3968 (FIX_CALL_DUMMY): Remove.
3969 (CALL_DUMMY_ADDRESS): Remove.
3970 (SIZEOF_CALL_DUMMY_WORDS): Remove.
3971 (SAVE_DUMMY_FRAME_TOS): Remove.
3972 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
3973 (mcore_register_virtual_type): New function.
3974 (mcore_register_byte): New function.
3975 (mcore_register_size): New function.
3976 (mcore_register_name): New function.
3977 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
3978 macros removed from tm-mcore.h.
3979 (mcore_dump_tdep): Add.
3980 (_initialize_mcore_tdep): Add gdbarch_register call.
3981
3982 2002-07-03 Mark Kettenis <kettenis@gnu.org>
3983
3984 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
3985 frameless_look_for_prologue, such that we actually call this
3986 function.
3987
3988 2002-07-02 Joel Brobecker <brobecker@gnat.com>
3989
3990 * frame.h (frame_address_in_block): New function.
3991
3992 * blockframe.c (frame_address_in_block): New function extracted
3993 from get_frame_block().
3994 (get_frame_block): Use frame_address_in_block().
3995 (block_innermost_frame): Use frame_address_in_block() to match
3996 the frame pc address against the block boundaries rather than
3997 the frame pc directly. This prevents a failure when a frame pc
3998 is actually a return-address pointing immediately after the end
3999 of the given block.
4000
4001 2002-07-02 Grace Sainsbury <graces@redhat.com>
4002
4003 * MAINTAINERS: Add self under write after approval.
4004
4005 2002-07-02 Grace Sainsbury <graces@redhat.com>
4006
4007 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
4008 used in architecture vector. The default is
4009 m68k_local_breakpoint_from_pc.
4010 (m68k_local_breakpoint_from_pc): Add.
4011 (enum): Add register numbers from tm-m68k.h.
4012 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
4013 vector.
4014 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
4015 GDB_MULTI_ARCH_PARTIAL.
4016 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
4017 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
4018 m68k-tdep.c.
4019 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
4020 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
4021 to enum in m68k-tdep.c
4022
4023 2002-07-02 Joel Brobecker <brobecker@gnat.com>
4024
4025 * solib-osf.c (open_map): Compute the list of shared libraries
4026 loaded by the inferior, rather than the list of libraries loaded
4027 by GDB itself. Otherwise, GDB ends up reading the symbols from
4028 the wrong shared libraries...
4029
4030 2002-07-02 Mark Kettenis <kettenis@gnu.org>
4031
4032 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
4033 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
4034 macros.
4035 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
4036 Remove functions.
4037 (FRAMELESS_SIGNAL): Remove function.
4038 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
4039 i386_linux_saved_pc_after_call): Removed.
4040 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
4041 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
4042 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
4043
4044 * i386-tdep.c (i386_frameless_signal_p): New function.
4045 (i386_frame_chain): Deal with frameless signals.
4046 (i386_sigtramp_saved_sp): New function.
4047 (i386_frame_saved_pc): Deal with frameless signals.
4048 (i386_saved_pc_after_call): Make sure the correct value is
4049 returned just after entry into a sigtramp.
4050 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
4051 i386fbsd4_sc_sp_offset): New variables.
4052 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
4053 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
4054 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
4055 similiar to what we already did for sc_pc_offset.
4056 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
4057 tdep->sc_sp_offset.
4058
4059 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
4060
4061 2002-07-02 Michal Ludvig <mludvig@suse.cz>
4062
4063 * config/i386/tm-x86-64linux.h: New.
4064 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
4065 definitions.
4066 * config/i386/nm-x86-64.h: Rename to ...
4067 * config/i386/nm-x86-64linux.h: ... this one.
4068 * config/i386/x86-64linux.mh: Reflect the above change.
4069
4070 2002-07-01 Mark Kettenis <kettenis@gnu.org>
4071
4072 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
4073 with sigcontext_addr. Add sc_sp_offset.
4074 (i386bsd_sigtramp_saved_pc): Remove prototype.
4075 (i386bsd_sicontext_addr): Add prototype.
4076 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
4077 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
4078 (i386_svr4_sigtramp_saved_pc): Removed.
4079 (i386_svr4_sigcontext_addr): New function.
4080 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
4081 Initialize tdep->sigcontext_addr instead. Initialize
4082 tdep->sc_pc_offset and tdep->sc_sp_offset.
4083 (i386_gdbarch_init): Likewise.
4084 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
4085 any more.
4086 (i386bsd_sigtramp_saved_pc): Remove function.
4087 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
4088 Initialize tdep->sigcontext_addr instead. Initialize
4089 tdep->sc_pc_offset.
4090 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
4091 of tdep->sigtramp_saved_pc.
4092 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
4093 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
4094 instead.
4095
4096 * i386-tdep.c (i386_frameless_function_invocation,
4097 i386_frame_num_args, i386_frame_init_saved_regs,
4098 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
4099 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
4100 i386_extract_return_value, i386_store_return_value,
4101 i386_extract_struct_value_address, i386_register_virtual_type,
4102 i386_register_convertible, i386_register_convert_to_virtual,
4103 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
4104 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
4105 static.
4106
4107 2002-07-01 Mark Kettenis <kettenis@gnu.org>
4108
4109 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
4110
4111 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
4112 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
4113 this macro. Include "value.h".
4114
4115 2002-06-30 Aidan Skinner <aidan@velvet.net>
4116
4117 * ada-exp.tab.c: remove as it's a generated file
4118 * ada-lex.c: remove as it's a generated file
4119
4120 2002-06-30 Mark Kettenis <kettenis@gnu.org>
4121
4122 * config/i386/tm-i386.h (struct frame_info, struct
4123 frame_saved_regs, struct value, struct type): Remove forward
4124 declarations.
4125
4126 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
4127 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
4128 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
4129 (FILL_FPXREGSET): Define.
4130
4131 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
4132
4133 * configure.tgt (i[3456]86-*-openbsd*): Fold into
4134 i[3456]86-*-netbsd* case.
4135 * config/i386/tm-obsd.h: Removed.
4136 * config/i386/obsd.mt: Removed.
4137 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
4138 core-aout.o.
4139 (MH_CFLAGS): Add -DYYDEBUG=0.
4140
4141 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
4142 i386nbsd_sc_pc_offset on OpenBSD too.
4143
4144 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
4145 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
4146 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
4147 define.
4148 * i386bsd-tdep.c: Include "arch-utils.h".
4149 (i386bsd_aout_in_solib_call_trampoline): New function.
4150 (i386bsd_init_abi): Set in_solib_call_trampoline to
4151 i386bsd_aout_in_solib_call_trampoline.
4152 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
4153 in_solib_call_trampoline to generic_in_solib_call_trampoline.
4154
4155 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4156
4157 * macrotab.h: Do not include "obstack.h" or "bcache.h".
4158 (struct obstack, struct bcache): Add opaque declarations.
4159 * Makefile.in (macrotab_h): Update
4160
4161 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4162
4163 * blockframe.c (generic_find_dummy_frame): Change return type to
4164 ``struct regcache''.
4165 (struct dummy_frame): Replace field ``registers'' with regcache, a
4166 struct regcache object.
4167 (generic_find_dummy_frame): Update.
4168 (generic_push_dummy_frame): Update. Use regcache_xfree,
4169 regcache_xmalloc and regcache_cpy.
4170 (generic_pop_dummy_frame): Update. Use regcache_cpy and
4171 regcache_xfree.
4172 (deprecated_generic_find_dummy_frame): Update.
4173 (generic_read_register_dummy): Update. Use
4174 regcache_read_as_address.
4175 (generic_call_dummy_register_unwind): Update. Use regcache_read.
4176 (generic_get_saved_register): Update. Use regcache_read.
4177
4178 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4179
4180 * Makefile.in (objfiles_h): Add $(bcache_h).
4181 * objfiles.h: Include "bcache.h".
4182
4183 * Makefile.in (symtab_h): Remove $(bcache_h).
4184 * symtab.h: Do not include "bcache.h".
4185
4186 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4187
4188 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
4189 generic_func_frame_chain_valid.
4190
4191 2002-06-28 David O'Brien <obrien@FreeBSD.org>
4192
4193 * config/i386/nm-fbsd.h: Include <sys/param.h>.
4194 * config/i386/tm-fbsd.h: Likewise.
4195
4196 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4197
4198 * rs6000-tdep.c (rs6000_gdbarch_init): Use
4199 generic_unwind_get_saved_register.
4200
4201 2002-06-27 Andrew Cagney <ac131313@redhat.com>
4202
4203 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
4204 * regcache.c (supply_register): Add missing argument to
4205 register_buffer call.
4206
4207 2002-06-27 Andrew Cagney <ac131313@redhat.com>
4208
4209 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
4210 Solaris /bin/grep does not not like it. From Peter Schauer.
4211
4212 2002-06-26 Tom Tromey <tromey@redhat.com>
4213
4214 * command.h (add_setshow_cmd): Declare.
4215 (add_setshow_cmd_full): Declare.
4216 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
4217 returns void. Use add_setshow_cmd_full.
4218 (add_setshow_cmd_full): New function.
4219 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
4220 (add_setshow_boolean_cmd): Likewise.
4221
4222 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4223
4224 * config/vax/tm-vax.h: Protect from multiple inclusion.
4225 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
4226 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
4227 * config/vax/tm-vaxbsd.h: ...here. New file.
4228 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
4229
4230 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4231
4232 * config/vax/tm-vax.h (BREAKPOINT): Remove.
4233 (BELIEVE_PCC_PROMOTION): Remove.
4234 (AP_REGNUM): Move to...
4235 * config/vax/nm-vax.h: ...here.
4236 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
4237 (vax_breakpoint_from_pc): New function.
4238 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
4239 and gdbarch_believe_pcc_promotion.
4240
4241 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4242
4243 * Makefile.in (vax_tdep_h): Define.
4244 (vax-tdep.o): Use $(vax_tdep_h).
4245 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
4246 (vax_dump_tdep): New function.
4247 (_initialize_vax_tdep): Register vax_dump_tdep.
4248 * vax-tdep.h: Include osabi.h.
4249 (struct gdbarch_tdep): New.
4250
4251 2002-06-26 Andrew Cagney <cagney@redhat.com>
4252
4253 * frame.h (deprecated_generic_find_dummy_frame): Rename
4254 generic_find_dummy_frame.
4255 * blockframe.c (generic_find_dummy_frame): Make static.
4256 (deprecated_generic_find_dummy_frame): New function.
4257 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
4258 generic_find_dummy_frame with deprecated_find_dummy_frame.
4259 (sh64_nofp_frame_init_saved_regs): Ditto.
4260 (sh_fp_frame_init_saved_regs): Ditto.
4261 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
4262 (s390_frame_chain): Ditto.
4263 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
4264
4265 2002-06-26 Grace Sainsbury <graces@redhat.com>
4266
4267 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
4268 gdbarch vector are at the top.
4269 (NUM_REGS): Remove.
4270 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
4271 (FRAME_ARGS_ADDRESS): Remove.
4272 (FRAME_LOCALS_ADDRESS): Remove.
4273 (FRAME_NUM_ARGS): Remove.
4274 (FRAME_ARGS_SKIP): Remove.
4275 * m68k-tdep.c (enum): Add eumeration of special register numbers.
4276 (m68k_gdbarch_init): Add gdbarch initializations for macros
4277 undefined in tm-m68k.h
4278
4279 2002-06-26 Grace Sainsbury <graces@redhat.com>
4280
4281 * monitor.h: Add the function regname to monitor_ops
4282 structure. This way NUM_REGS does not have to be a constant.
4283 * monitor.c (monitor_fetch_register): Added support for regname
4284 function. The function is called if the array regnames is NULL.
4285 (monitor_store_register): Same.
4286 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
4287 regnames array.
4288 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
4289 cpu32bug_cmds.regname to point to new function.
4290 * abug-rom.c (abug_regname): Same as above.
4291 (init_abug_cmds): Same.
4292 * dbug-rom.c (dbug_regname): Same as above.
4293 (init_dbug_cmds): Same.
4294 * remote-est.c (est_regname): Same.
4295 (init_est_cmds): Same.
4296 * rom68k-rom.c (rom68k_regname): Same.
4297 (init_rom68k_cmds): Same.
4298
4299 2002-06-25 Tom Tromey <tromey@redhat.com>
4300
4301 * breakpoint.c (delete_command): Don't repeat `delete' commands.
4302
4303 2002-06-25 Andrew Cagney <cagney@redhat.com>
4304
4305 * infrun.c (stop_registers): Change variable's type to ``struct
4306 regcache'''.
4307 (xmalloc_inferior_status): Delete function.
4308 (free_inferior_status): Delete function.
4309 (normal_stop): Use regcache_cpy.
4310 (struct inferior_status): Change type of fields ``stop_registers''
4311 and ``registers'' to ``struct regcache''.
4312 (write_inferior_status_register): Use regcache_write.
4313 (save_inferior_status): Instead of calling
4314 xmalloc_inferior_status, allocate the inf_status buffer directly.
4315 Use regcache_dup_no_passthrough and regcache_dup to save the
4316 buffers.
4317 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
4318 Replace the stop_registers regcache instead of overriding it. Use
4319 regcache_xfree. Instead of calling free_inferior_status, xfree
4320 the buffer directly.
4321 (discard_inferior_status): Use regcache_xfree. Instead of calling
4322 free_inferior_status, xfree the buffer directly.
4323 (build_infrun): Use regcache_xmalloc.
4324 (_initialize_infrun): Delete redundant call to build_infrun.
4325
4326 * Makefile.in (infcmd.o): Add $(regcache_h).
4327
4328 * infcmd.c: Include "regcache.h".
4329 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
4330 obtain the address of `stop_registers' register buffer.
4331 (print_return_value): Ditto.
4332
4333 * inferior.h (struct regcache): Add opaque declaration.
4334 (stop_registers): Change variable's declared type to ``struct
4335 regcache''.
4336
4337 2002-06-24 Tom Tromey <tromey@redhat.com>
4338
4339 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
4340 * target.c (initialize_targets): Fixed typo in
4341 trust-readonly-sections `show' documentation.
4342
4343 * main.c: Marked all strings with _().
4344
4345 2002-06-24 Don Howard <dhoward@redhat.com>
4346
4347 * memattr.c (create_mem_region): Treat hi == 0 as a special case
4348 that means max CORE_ADDR+1.
4349 (lookup_mem_region): Ditto.
4350 (mem_info_command): Ditto.
4351
4352 2002-06-24 Grace Sainsbury <graces@redhat.com>
4353
4354 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
4355 (REGISTER_BYTES_OK): Remove.
4356 (REGISTER_BYTES): Remove.
4357 (STORE_STRUCT_RETURN): Remove.
4358 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
4359 (STORE_RETURN_VALUE): Remove.
4360 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
4361 (FRAME_CHAIN): Remove.
4362 (FRAMELESS_FUNCTION_INVOCATION): Remove.
4363 (FRAME_SAVED_PC): Remove.
4364 * m68k-tdep.c (m68k_register_bytes_ok):Add.
4365 (m68k_store_struct_return): Add.
4366 (m68k_deprecated_extract_return_value): Add.
4367 (m68k_deprecated_extract_struct_value_address): Add.
4368 (m68k_store_return_value): Add.
4369 (m68k_frame_chain): Add.
4370 (m68k_frameless_function_invocation): Add.
4371 (m68k_frame_saved_pc): Add.
4372 (m68k_gdbarch_init): added set_gdbarch calls for new
4373 functions and deleted macros.
4374
4375 2002-06-23 Tom Tromey <tromey@redhat.com>
4376
4377 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
4378 (ALLDEPFILES): Likewise.
4379 (udiheaders): Removed.
4380 (udip2soc.o): Likewise.
4381 (udi2go32.o): Likewise.
4382 (udr.o): Likewise.
4383 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
4384
4385 2002-06-22 Andrew Cagney <ac131313@redhat.com>
4386
4387 * infrun.c (_initialize_infrun): Delete unnecessary call to
4388 build_infrun.
4389
4390 * regcache.h: Update comments describing the regcache_cpy family
4391 of functions.
4392 (regcache_save, regcache_restore): Delete declaration.
4393 (regcache_save_no_passthrough): Delete declaration.
4394 (regcache_restore_no_passthrough): Delete declaration.
4395 * regcache.c (regcache_save): Delete function.
4396 (regcache_save_no_passthrough): Delete function.
4397 (regcache_restore): Delete function.
4398 (regcache_restore_no_passthrough): Delete function.
4399
4400 2002-06-21 Andrew Cagney <ac131313@redhat.com>
4401
4402 * config/m68k/tm-m68k.h: Fix typo.
4403 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
4404 (m68k_frame_init_saved_regs): Declare.
4405
4406 2002-06-21 Jim Blandy <jimb@redhat.com>
4407
4408 Remove some vestiges of Harris 88k support.
4409 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
4410 register numbering quirk.
4411 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
4412 odd symbols occurring in Harris 88k ELF targets.
4413
4414 2002-06-21 Tom Tromey <tromey@redhat.com>
4415
4416 * gdb_locale.h: New file.
4417 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
4418 (defs_h): Added gdb_locale.h.
4419 * configure, config.in: Rebuilt.
4420 * configure.in (PACKAGE): Define.
4421 * defs.h: Include gdb_locale.h.
4422 * main.c (captured_main): Call setlocale, bindtextdomain,
4423 textdomain.
4424
4425 2002-06-21 Dave Brolley <brolley@redhat.com>
4426
4427 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
4428 * config/frv/frv.mt: New file.
4429 * config/frv/tm-frv.h: New file.
4430 * configure.tgt: Support frv-*-*.
4431 * Makefile.in (frv-tdep.o): New target.
4432 * frv-tdep.c: New file.
4433 * NEWS: Mention frv.
4434
4435 2002-06-21 Dave Brolley <brolley@redhat.com>
4436
4437 * MAINTAINERS: Add self to "Write After Approval" list.
4438
4439 2002-06-21 Grace Sainsbury <graces@redhat.com>
4440
4441 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
4442 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
4443 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
4444 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
4445 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
4446
4447 * m68k-tdep.c: Include arch-utils.h
4448 (m68k_register_raw_size): Add.
4449 (m68k_register_virtual_size): Add.
4450 (m68k_register_virtual_type): Add.
4451 (m68k_register_name): Add.
4452 (m68k_stack_align): Add.
4453 (m68k_register_byte): Add.
4454 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
4455 tm-m68k.h.
4456
4457 2002-06-21 Grace Sainsbury <graces@redhat.com>
4458
4459 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
4460 m68k_find_saved_regs.
4461 (m68k_pop_frame): Removed saved_regs structure, and replaced
4462 references to it with frame->saved_regs.
4463 (m68k_gdbarch_init): Added function calls to initialize the
4464 gdbarch structure.
4465 (m68k_fix_call_dummy): Add.
4466 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
4467 (CALL_DUMMY): Remove.
4468 (CALL_DUMMY_LENGTH): Remove.
4469 (CALL_DUMMY_START_OFFSET): Remove.
4470 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
4471 (FIX_CALL_DUMMY): Remove.
4472 (PUSH_DUMMY_FRAME): Remove.
4473 (POP_FRAME): Remove.
4474
4475 2002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
4476
4477 * parse.c (parse_fprintf): New function used to avoid calls to
4478 fprintf in bison parser generated debug code.
4479 * parser-defs.h: Declaration of new parse_fprintf function.
4480 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
4481 Set YYDEBUG to 1 by default.
4482 Set YYFPRINTF as parse_fprintf.
4483
4484 2002-06-21 Michal Ludvig <mludvig@suse.cz>
4485
4486 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
4487 encoding anymore.
4488 (pointer_encoding, enum ptr_encoding): New.
4489 (execute_cfa_program): Take care about pointer encoding.
4490 (dwarf2_build_frame_info): Only call parse_frame_info for
4491 .debug_frame and .eh_frame.
4492 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
4493 fixed augmentation handling, added relative addressing,
4494 ignore duplicate FDEs. Added comments.
4495 * dwarf2cfi.c: Reindented.
4496
4497 2002-06-20 Elena Zannoni <ezannoni@redhat.com>
4498
4499 * event-top.c (command_handler): Don't use space_at_cmd_start
4500 unless there is sbrk() on the host. Assign time and space data
4501 to union fields of the appropriate length.
4502
4503 2002-06-20 Michal Ludvig <mludvig@suse.cz>
4504
4505 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
4506 x86_64_register_name. Return type changed to 'const char *'.
4507 (x86_64_register_name2nr): Rename to x86_64_register_number.
4508 (x86_64_gdbarch_init): Update to reflect the change.
4509 * x86-64-tdep.h: Ditto.
4510 * x86-64-linux-nat.c (x86_64_fxsave_offset)
4511 (supply_fpregset): Ditto.
4512
4513 2002-06-19 Andrew Cagney <cagney@redhat.com>
4514
4515 * regcache.h: Update copyright.
4516 (struct regcache, struct gdbarch): Add opaque declarations.
4517 (current_regcache): Declare global variable.
4518 (regcache_read, regcache_write): Add gdbarch parameter.
4519 (regcache_save, regcache_save_no_passthrough)
4520 (regcache_restore, regcache_restore_no_passthrough)
4521 (regcache_dup, regcache_dup_no_passthrough)
4522 (regcache_cpy, regcache_cpy_no_passthrough)
4523 (deprecated_grub_regcache_for_registers)
4524 (deprecated_grub_regcache_for_register_valid)
4525 (regcache_valid_p): Add function declarations.
4526
4527 * regcache.c: Update copyright.
4528 (regcache_descr_handle): New global variable.
4529 (struct regcache_descr): Define.
4530 (init_legacy_regcache_descr, init_regcache_descr): New functions.
4531 (regcache_descr, xfree_regcache_descr): New functions.
4532 (struct regcache): Define.
4533 (regcache_xmalloc, regcache_xfree): New functions.
4534 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
4535 (regcache_dup, regcache_dup_no_passthrough): New functions.
4536 (regcache_valid_p, regcache_read_as_address): New functions.
4537 (deprecated_grub_regcache_for_registers): New function.
4538 (deprecated_grub_regcache_for_register_valid): New function.
4539 (current_regcache): New global variable.
4540 (register_buffer): Add regcache parameter. Update calls.
4541 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
4542 (read_register_gen, write_register_gen): Update register_buffer
4543 call. Test for legacy_p instead of gdbarch_register_read_p or
4544 gdbarch_register_write_p.
4545 (regcache_collect): Update register_buffer call.
4546 (build_regcache): Rewrite. Use deprecated grub functions.
4547 (regcache_save, regcache_save_no_passthrough): New functions.
4548 (regcache_restore, regcache_restore_no_passthrough): New
4549 functions.
4550 (_initialize_regcache): Create the regcache_data_handle. Swap
4551 current_regcache global variable.
4552
4553 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
4554 parameter to regcache_read and regcache_write calls.
4555 (sh4_register_read): Ditto.
4556 (sh64_pseudo_register_read): Ditto.
4557 (sh64_register_read): Ditto.
4558 (sh_pseudo_register_write): Ditto.
4559 (sh4_register_write): Ditto.
4560 (sh64_pseudo_register_write): Ditto.
4561 (sh64_register_write): Ditto.
4562
4563 * defs.h (XCALLOC): Define.
4564
4565 2002-06-19 Grace Sainsbury <graces@redhat.com>
4566
4567 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
4568 * m68k-tdep.c (m68k_gdbarch_init): Added.
4569 (m68k_dump_tdep): Added.
4570
4571 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
4572
4573 * ada-lang.c (fill_in_ada_prototype): Update comment.
4574
4575 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
4576
4577 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
4578 MIPS_ABI_LAST.
4579 (mips_abi_string, mips_abi_strings): New.
4580 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
4581 (mips_gdbarch_init): Set tdep->found_abi. Don't set
4582 tdep->mips_abi_string. Honor mips_abi_string. Default to
4583 O32 if no ABI is found.
4584 (mips_dump_tdep): Use mips_abi_strings.
4585 (mips_abi_update): New function.
4586 (_initialize_mips_tdep): Initialize mips_abi_string. Add
4587 ``set mips abi'' and ``show mips abi''. Check the size of
4588 mips_abi_strings.
4589
4590 2002-06-19 Andrew Cagney <cagney@redhat.com>
4591
4592 * i386-linux-tdep.c (i386_linux_register_name): Make return type
4593 constant.
4594
4595 2002-06-18 Joel Brobecker <brobecker@gnat.com>
4596
4597 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
4598 current frame using only the first stack size adjustment. All
4599 subsequent size adjustments are not considered to be part of
4600 the "static" part of the current frame.
4601 Compute the address of the saved registers relative to the
4602 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
4603 in use in this frame.
4604
4605 2002-06-18 Don Howard <dhoward@redhat.com>
4606
4607 * valops.c (value_ind): Use value_at_lazy() when dereferencing
4608 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
4609 suggesting this solution.
4610
4611 2002-06-18 Andrew Cagney <ac131313@redhat.com>
4612
4613 * config/romp/xm-rtbsd.h: Delete file.
4614 * config/romp/rtbsd.mh: Delete file.
4615
4616 2002-06-18 Keith Seitz <keiths@redhat.com>
4617
4618 * breakpoint.c (condition_command): Post breakpoint_modify
4619 when a condition is added to an existing breakpoint.
4620 (commands_command): Likewise for commands.
4621 (set_ignore_count): Likewise for ignore counts.
4622 If no tty, do not simply return, still need to send event
4623 notification.
4624 (ignore_command): Only print a newline if the command came
4625 from a tty.
4626 Don't call breakpoints_changed, since this is now properly
4627 handled by set_ignore_count.
4628
4629 2002-06-18 Andrew Cagney <cagney@redhat.com>
4630
4631 * MAINTAINERS: Note that cris-elf target can be compiled with
4632 -Werror.
4633 * cris-tdep.c (cris_register_name): Make return type constant.
4634 (cris_breakpoint_from_pc): Ditto.
4635
4636 2002-06-18 Michal Ludvig <mludvig@suse.cz>
4637
4638 * frame.h (struct frame_info): Change type of context to
4639 'struct context'.
4640
4641 2002-06-17 Andrew Cagney <cagney@redhat.com>
4642
4643 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
4644 pointer.
4645 * gdbarch.h, gdbarch.c: Regenerate.
4646 * config/mips/tm-mips.h (mips_register_name): Update.
4647 * i386-tdep.h (i386_register_name): Update.
4648 * mips-tdep.c (mips_register_name): Update
4649 * alpha-tdep.c (alpha_register_name): Update.
4650 * arch-utils.c (legacy_register_name): Update.
4651 * arch-utils.h (legacy_register_name): Update.
4652 * avr-tdep.c (avr_register_name): Update.
4653 * ia64-tdep.c (ia64_register_name): Update.
4654 * i386-tdep.c (i386_register_name): Update.
4655 * sparc-tdep.c (sparc32_register_name): Update.
4656 (sparc64_register_name): Update.
4657 (sparclite_register_name): Update.
4658 (sparclet_register_name): Update.
4659 * sh-tdep.c (sh_generic_register_name): Update.
4660 (sh_sh_register_name): Update.
4661 (sh_sh3_register_name): Update.
4662 (sh_sh3e_register_name): Update.
4663 (sh_sh_dsp_register_name): Update.
4664 (sh_sh3_dsp_register_name): Update.
4665 (sh_sh4_register_name): Update.
4666 (sh_sh64_register_name): Update.
4667 * s390-tdep.c (s390_register_name): Update.
4668 * rs6000-tdep.c (rs6000_register_name): Update.
4669 * ns32k-tdep.c (ns32k_register_name_32082): Update.
4670 (ns32k_register_name_32382): Update.
4671 * d10v-tdep.c (d10v_ts2_register_name): Update.
4672 (d10v_ts3_register_name): Update.
4673 * xstormy16-tdep.c (xstormy16_register_name): Update.
4674 * vax-tdep.c (vax_register_name): Update.
4675 * v850-tdep.c (v850_register_name): Update.
4676 * m68hc11-tdep.c (m68hc11_register_name): Update.
4677 * mn10300-tdep.c (mn10300_generic_register_name): Update.
4678 (am33_register_name): Update.
4679
4680 2002-06-17 Grace Sainsbury <graces@redhat.com>
4681
4682 * m68k-tdep.c: Reindented.
4683
4684 2002-06-17 Andrew Cagney <ac131313@redhat.com>
4685
4686 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
4687 list of predefined types.
4688
4689 2002-06-16 Mark Kettenis <kettenis@gnu.org>
4690
4691 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
4692 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
4693 REGISTER_CONVERT_TO_RAW): Remove defines.
4694 (i386_register_virtual_type, i386_register_convertible,
4695 i386_register_convert_to_virtual, i386_register_convert_to_raw):
4696 Remove prototypes.
4697 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4698 macros mentioned above.
4699
4700 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
4701 (i386lynx_saved_pc_after_call): Remove prototype.
4702 * i386ly-tdep.c: Include "i386-tdep.h".
4703 (i386lynx_saved_pc_after_call): Make static. Use
4704 read_memory_nobpt instead of read_memory. Use
4705 read_memory_unsigned_integer instead of read_memory_integer.
4706 (i386lynx_init_abi): New function.
4707 (i386lynx_coff_osabi_sniffer): New function.
4708 (_initialize_i386bsd_tdep): New function.
4709
4710 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
4711 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
4712 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
4713 (i386_fix_call_dummy): Remove prototype.
4714 * i386-tdep.c (i386_call_dummy_words): New variable.
4715 (i386_gdbarch_init): Adjust for removal of the
4716 macros mentioned above.
4717
4718 2002-06-15 Andrew Cagney <ac131313@redhat.com>
4719
4720 * command.h (add_setshow_auto_boolean_cmd): Replace
4721 add_set_auto_boolean_cmd.
4722 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
4723 add_set_auto_boolean_cmd.
4724 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
4725 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
4726 mask-address'' command.
4727 (show_mask_address): Add cmd parameter.
4728 * remote.c (add_packet_config_cmd): Update. Change type of
4729 set_func and show_func to cmd_sfunc_ftype.
4730 (_initialize_remote): Update `set remote Z-packet'
4731 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
4732 (show_remote_protocol_e_packet_cmd): Ditto.
4733 (show_remote_protocol_E_packet_cmd): Ditto.
4734 (show_remote_protocol_P_packet_cmd): Ditto.
4735 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
4736 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
4737 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
4738 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
4739 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
4740 (show_remote_protocol_Z_packet_cmd): Ditto.
4741 (show_remote_protocol_binary_download_cmd): Ditto.
4742 (show_remote_cmd): Pass NULL to all of above.
4743
4744 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4745
4746 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
4747 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
4748 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
4749 POP_FRAME): Remove defines.
4750 (i386_push_arguments, i386_store_struct_return,
4751 i386_extract_return_value, i386_store_return_value,
4752 i386_extract_struct_value_address, i386_push_dummy_frame,
4753 i386_pop_frame): Renove prototypes.
4754 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4755 macros mentioned above.
4756
4757 2002-06-15 Andrew Cagney <ac131313@redhat.com>
4758
4759 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
4760 add_set_boolean_cmd.
4761 (add_setshow_cmd): New function.
4762 * command.h (add_setshow_boolean_cmd): Replace
4763 add_set_boolean_cmd.
4764 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
4765 and ``set rdiromatzero''.
4766 * maint.c (_initialize_maint_cmds): Update commented out code.
4767 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
4768 * target.c (initialize_targets): Update `set
4769 trust-readonly-sections'.
4770 * remote.c (_initialize_remote): Update `set remotebreak'.
4771
4772 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4773
4774 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
4775 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
4776 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
4777 fit into multi-arch framework.
4778 (i386_breakpoint_from_pc): New function.
4779 (i386_gdbarch_init): Adjust for removal of the macros mentioned
4780 above.
4781
4782 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
4783 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
4784 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
4785 (i386_frameless_function_invocation, i386_frame_num_args,
4786 i386_frame_init_saved_regs): Remove prototypes.
4787 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4788 macros mentioned above.
4789
4790 2002-06-15 Andrew Cagney <ac131313@redhat.com>
4791
4792 * cli/cli-decode.c (set_cmd_cfunc): Update.
4793 (set_cmd_sfunc): Update.
4794 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
4795 (set_cmd_sfunc, set_cmd_cfunc): Update.
4796 * cli/cli-decode.h: Update.
4797
4798 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4799
4800 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
4801 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
4802
4803 2002-06-15 Andrew Cagney <ac131313@redhat.com>
4804
4805 * defs.h (auto_boolean): Declare enum.
4806 * command.h (cmd_auto_boolean): Delete enum.
4807 * mips-tdep.c (mask_address_var): Update.
4808 (mips_mask_address_p): Update.
4809 (show_mask_address): Update.
4810 * remote.c (struct packet_config): Update.
4811 (update_packet_config): Update.
4812 (show_packet_config_cmd): Update.
4813 (packet_ok): Update.
4814 (add_packet_config_cmd): Update.
4815 (_initialize_remote):
4816 * command.h: Update.
4817 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
4818 (do_setshow_command): Update.
4819 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
4820 * cli/cli-decode.h: Update.
4821
4822 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4823
4824 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
4825 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
4826 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
4827 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
4828 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
4829 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
4830
4831 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
4832 list of DJGPP COFF targets.
4833
4834 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
4835 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
4836 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
4837 (FP0_REGNUM): Remove define.
4838 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
4839 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
4840 (i386_register_virtual_size): Remove protoype.
4841 * i386-tdep.c (i386_register_virtual_size): Removed.
4842 (i386_extract_return_value, i386_store_return_value): Use
4843 FP0_REGNUM instead of NUM_FREGS to determine whether the
4844 floating-point registers are available.
4845 (i386_gdbarch_init): Tweak FIXME about FPU registers.
4846 Adjust for removal of macros mentioned above.
4847
4848 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4849
4850 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
4851 comments.
4852 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
4853 Remove prototypes.
4854 (supply_gregset, fill_gregset): Remove use of register keyword and
4855 remove declaration for regmap. Use I386_NUM_GREGS instead of
4856 NUM_REGS and NUM_FREGS.
4857 (FPREGSET_FSAVE_OFFSET): Remove.
4858 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
4859 NUM_FREGS to determine whether the floating-point registers are
4860 available.
4861
4862 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
4863 gnu_store_registers): Replace usage of NUM_GREGS with
4864 I386_NUM_GREGS.
4865
4866 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
4867 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
4868 usage of NUM_GREGS with I386_NUM_GREGS.
4869
4870 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
4871
4872 * i386bsd-nat.c: Include "i386-tdep.h".
4873 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
4874 I386_NUM_GREGS.
4875
4876 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
4877 and associated comment. They no longer make any sense, since we
4878 don't use this file anymore on Linux.
4879
4880 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
4881 * i386-tdep.c (i386_register_offset, i386_register_size): Use
4882 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
4883 elements in these arrays.
4884 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
4885 MAX_NUM_REGS.
4886
4887 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4888
4889 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
4890 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
4891
4892 2002-06-14 Andrew Cagney <cagney@redhat.com>
4893
4894 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
4895 EXTRACT_RETURN_VALUE.
4896 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
4897 EXTRACT_STRUCT_VALUE_ADDRESS.
4898 * gdbarch.h, gdbarch.c: Regenerate.
4899
4900 * values.c (value_being_returned): Handle
4901 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
4902 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
4903
4904 * arm-linux-tdep.c (arm_linux_init_abi): Update.
4905 * arm-tdep.c (arm_gdbarch_init): Update.
4906 * avr-tdep.c (avr_gdbarch_init): Update.
4907 * cris-tdep.c (cris_gdbarch_init): Update.
4908 * d10v-tdep.c (d10v_gdbarch_init): Update.
4909 * ia64-tdep.c (ia64_gdbarch_init): Update.
4910 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4911 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4912 * s390-tdep.c (s390_gdbarch_init): Update.
4913 * sh-tdep.c (sh_gdbarch_init): Update.
4914 * s390-tdep.c (s390_gdbarch_init): Update.
4915 * sparc-tdep.c (sparc_gdbarch_init): Update.
4916 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4917 * v850-tdep.c (v850_gdbarch_init): Update.
4918 * vax-tdep.c (vax_gdbarch_init): Update.
4919 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
4920 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4921
4922 * config/arc/tm-arc.h: Update.
4923 * config/d30v/tm-d30v.h: Update.
4924 * config/fr30/tm-fr30.h: Update.
4925 * config/h8300/tm-h8300.h: Update.
4926 * config/h8500/tm-h8500.h: Update.
4927 * config/i386/tm-i386.h: Update.
4928 * config/i386/tm-ptx.h: Update.
4929 * config/i386/tm-symmetry.h: Update.
4930 * config/i960/tm-i960.h: Update.
4931 * config/m32r/tm-m32r.h: Update.
4932 * config/m68k/tm-delta68.h: Update.
4933 * config/m68k/tm-linux.h: Update.
4934 * config/m68k/tm-m68k.h: Update.
4935 * config/m88k/tm-m88k.h: Update.
4936 * config/mcore/tm-mcore.h: Update.
4937 * config/mips/tm-mips.h: Update.
4938 * config/mn10200/tm-mn10200.h: Update.
4939 * config/pa/tm-hppa.h: Update.
4940 * config/pa/tm-hppa64.h: Update.
4941 * config/sparc/tm-sp64.h: Update.
4942 * config/sparc/tm-sparc.h: Update.
4943 * config/sparc/tm-sparclet.h: Update.
4944 * config/z8k/tm-z8k.h: Update.
4945
4946 2002-06-14 Andrew Cagney <cagney@redhat.com>
4947
4948 * Makefile.in (i386_linux_tdep_h): Define.
4949 (i386_tdep_h, i387_tdep_h): Define.
4950 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
4951 $(i386_tdep_h) and $(i387_tdep_h).
4952 * i386-linux-nat.c: Include "i386-linux-tdep.h".
4953
4954 2002-06-14 Mark Kettenis <kettenis@gnu.org>
4955
4956 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
4957 Already covered by the default.
4958
4959 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
4960 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
4961 (i386_gdbarch_init): Initialize long_double_format and long_double
4962 bit.
4963
4964 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
4965 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
4966 Move these to ...
4967 * config/i386/i386sol2.mh: ... here.
4968 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
4969 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
4970 (SIGCONTEXT_PC_OFFSET): Remove define.
4971 (IN_SIGTRAMP): Remove define.
4972 * i386-sol2-tdep.c: New file.
4973
4974 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
4975 * config/i386/tm-i386nw.h: Removed.
4976
4977 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
4978 USE_STRUCT_CONVENTION): Remove defines.
4979 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
4980 (get_longjmp_target): Remove prototype.
4981 (IN_SIGTRAMP): Remove define.
4982 (i386bsd_in_sigtramp): Remove prototype.
4983 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
4984 function. Update comment accordingly
4985 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
4986 (FRAME_SAVED_PC): Remove define.
4987 (i386bsd_frame_saved_pc): Remove prototype.
4988 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
4989 GET_LONGJMP_TARGET): Remove defines.
4990 (get_longjmp_target): Remove prototype.
4991 (IN_SIGTRAMP): Remove define.
4992 (i386bsd_in_sigtramp): Remove prototype.
4993 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
4994 function. Update comment accordingly
4995 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
4996 (FRAME_SAVED_PC): Remove define.
4997 (i386bsd_frame_saved_pc): Remove prototype.
4998 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
4999 Remove prototype.
5000 (USE_STRUCT_CONVENTION): Remove prototype.
5001 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
5002 declaration.
5003 (_initialize_i386bsd_nat): Revise logic to determine some
5004 constants at compile time when compiling a native GDB. Warn if
5005 things don't match up with what we expect.
5006 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
5007 Remove variables.
5008 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
5009 to use date stored in `struct gdbarch_tdep'.
5010 (i386bsd_sigcontext_offset): Remove varaible.
5011 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
5012 stored in `struct gdbarch_tdep'.
5013 (i386bsd_frame_saved_pc): Make static.
5014 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
5015 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
5016 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
5017 i386fbsd4_sc_pc_offset): New variables.
5018 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
5019 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
5020 functions.
5021 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
5022 functions.
5023 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
5024 Modify the value of i386fbsd_sigtramp_start and
5025 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
5026 i386fbsd_sigtramp_end.
5027 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
5028 function.
5029
5030 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
5031 define to i386-linux-tdep.h.
5032 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
5033 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
5034 defines.
5035 (i386_linux_register_name, i386_linux_register_byte,
5036 i386_linux_register_raw_size): Remove prototypes.
5037 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
5038 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
5039 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
5040 TARGET_WRITE_PC): Remove defines.
5041 (i386_linux_in_sigtramp, i386_linux_frame_chain,
5042 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
5043 i386_linux_write_pc): Remove prototypes.
5044 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5045 (get_longjmp_target): Remove prototype.
5046 * i386-linux-tdep.h: New file.
5047 * i386-linux-nat.c: Include "i386-linux-tdep.h".
5048 * i386-linux-tdep.c: Include "i386-tdep.h" and
5049 "i386-linux-tdep.h".
5050 (i386_linux_register_name, i386_linux_register_byte,
5051 i386_linux_register_raw_size, i386_linux_in_sigtramp,
5052 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
5053 Make static.
5054 (i386_linux_init_abi): New function.
5055 (_initialize_i386_linux_tdep): New function.
5056
5057 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
5058 (i386_saved_pc_after_call): Remove prototype.
5059 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
5060 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
5061 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
5062 (i386_register_name, i386_stab_reg_to_regnum,
5063 i386_dwarf_reg_to_regnum): Remove prototypes.
5064 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
5065 SIZEOF_SSE_REGS): Remove defines.
5066 (REGISTER_BYTES): Remove define.
5067 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
5068 (i386_register_byte, i386_register_raw_size): Remove prototypes.
5069 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
5070 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
5071 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
5072 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
5073 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
5074 (get_longjmp_target): Remove prototype.
5075 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
5076 (sigtramp_saved_pc): Remove define.
5077 (i386v4_sigtramp_saved_pc): Remove prototype.
5078 * config/i386/tm-go32.h (FRAME_CHAIN,
5079 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
5080 (i386go32_frame_saved_pc): Remove prototype.
5081 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5082 (get_longjmp_target): Remove prototype.
5083 * i386-tdep.h: Include "osabi.h".
5084 (enum i386_abi): Removed.
5085 (enum struct_return): New enum.
5086 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
5087 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
5088 sc_pc_offset members.
5089 (i386_gdbarch_register_os_abi): Remove prototype.
5090 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
5091 I386_SSE_NUM_REGS): New defines.
5092 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
5093 I386_SSE_SIZEOF_REGS): New defines.
5094 (i386_register_name, i386_register_byte, i386_register_raw_size):
5095 New prototypes.
5096 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
5097 (i386bsd_sigtramp_saved_pc): New prototype.
5098 * i386-tdep.c: Don't include "elf-bfd.h".
5099 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
5100 i386_frame_chain, i386_saved_pc_after_call): Make static.
5101 (i386_frame_saved_pc): Rewrite to call architecture dependent
5102 function to deal with signal handlers. Make static.
5103 (i386go32_frame_saved_pc): Removed.
5104 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
5105 Removed.
5106 (i386_get_longjmp_target): New function.
5107 (default_struct_convention, pcc_struct_convention,
5108 reg_struct_convention, valid_conventions, struct_convention): New
5109 variables.
5110 (i386_use_struct_convention): New function.
5111 (i386v4_sigtramp_saved_pc): Renamed to
5112 i386_svr4_sigtramp_saved_pc. Made static. Moved.
5113 (i386_pc_in_sigtramp): New function.
5114 (i386_abi_names): Removed.
5115 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
5116 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
5117 Removed.
5118 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
5119 i386_gdbarch_register_os_abi): Removed.
5120 (struct i386_abi_handler): Removed.
5121 (i386_abi_handler_list): Removed.
5122 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
5123 functions.
5124 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
5125 i386_nw_init_abi): New functions.
5126 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
5127 Use set_gdbarch_xxx() calls instead of relying on macros for a
5128 number of calls.
5129 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
5130 (_initialize_i386_tdep): Add new 'struct-convcention' command.
5131 Register the various architecture variants defined in this file.
5132
5133 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
5134
5135 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
5136 (struct main_type): Remove arg_types member. Update comments for
5137 struct field.
5138 (TYPE_ARG_TYPES): Remove.
5139 (TYPE_FN_FIELD_ARGS): Update.
5140 (smash_to_method_type): Update prototype.
5141
5142 * c-typeprint.c (cp_type_print_method_args): Take method type
5143 instead of argument list. Use new argument layout. Simplify.
5144 (c_type_print_args): Use new argument layout. Simplify.
5145 (c_type_print_base): Update call to cp_type_print_method_args.
5146 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
5147 argument; use die->type instead. Update call to
5148 smash_to_method_type.
5149 (read_structure_scope): Update call to dwarf2_add_member_fn.
5150 * gdbtypes.c (allocate_stub_method): Update comment.
5151 (smash_to_method_type): Take new NARGS and VARARGS arguments.
5152 Use new argument layout.
5153 (check_stub_method): Use new argument layout. Don't count
5154 void as an argument.
5155 (print_arg_types): Update comments. Use new argument layout.
5156 (recursive_dump_type): Don't print arg_types member.
5157 * hpread.c (hpread_read_struct_type): Use new argument layout.
5158 (fixup_class_method_type): Likewise.
5159 (hpread_type_lookup): Likewise.
5160 * stabsread.c (read_type): Update calls to read_args and
5161 smash_to_method_type.
5162 (read_args): Use new argument layout. Simplify.
5163 * valops.c (typecmp): Use new argument layout. Update parameters
5164 and comments. Simplify.
5165 (hand_function_call): Use new argument layout.
5166 (search_struct_method): Update call to typecmp.
5167 (find_overload_match): Use new argument layout.
5168
5169 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
5170
5171 * NEWS: Mention multithreaded debug support for gdbserver.
5172
5173 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
5174
5175 * MAINTAINERS: Mention NEWS.
5176
5177 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
5178
5179 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
5180 (struct mips_objfile_private, compare_pdr_entries): New.
5181 (non_heuristic_proc_desc): Read the ".pdr" section if it
5182 is present.
5183
5184 2002-06-12 Andrew Cagney <ac131313@redhat.com>
5185
5186 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
5187 (arm_debug): New static variable.
5188 (_initialize_arm_tdep): Add ``set debug arm'' command.
5189
5190 2002-06-12 Andrew Cagney <ac131313@redhat.com>
5191
5192 * Makefile.in (sim_arm_h): Define.
5193 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
5194 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
5195 (arm_register_sim_regno): New function, map an internal REGNUM
5196 onto a simulator register number.
5197 (arm_gdbarch_init): Set register_sim_regno.
5198
5199 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
5200
5201 * MAINTAINERS: Add self.
5202
5203 2002-06-11 Jim Blandy <jimb@redhat.com>
5204
5205 * source.c (source_info): Mention whether the symtab has
5206 information about preprocessor macros.
5207
5208 Call the command `info macro', not `show macro'.
5209 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
5210 Fix error message.
5211 (_initialize_macrocmd): Register `info_macro_command' in
5212 `infolist', not `showlist'.
5213
5214 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
5215
5216 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
5217 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
5218 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
5219 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
5220 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
5221 unconditionally.
5222 (set_mipsfpu_single_command, set_mipsfpu_double_command)
5223 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
5224 (_initialize_mips_tdep): Remove dead code.
5225 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
5226 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
5227 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
5228 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
5229 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
5230 MIPS_LAST_FP_ARG_REGNUM): Remove.
5231
5232 2002-06-11 Michal Ludvig <mludvig@suse.cz>
5233
5234 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
5235 (unwind_tmp_obstack_free, parse_frame_info)
5236 (update_context, cfi_read_fp, cfi_write_fp)
5237 (cfi_frame_chain, cfi_init_extra_frame_info)
5238 (cfi_virtual_frame_pointer): Use the above function.
5239 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
5240
5241 2002-06-11 Corinna Vinschen <vinschen@redhat.com>
5242
5243 * v850-tdep.c (v850_type_is_scalar): New function.
5244 (v850_use_struct_convention): Match current gcc implementation
5245 as close as possible.
5246 (v850_push_arguments): Fix stack_offset handling. Don't write
5247 struct_addr into register. This is done by v850_store_struct_return.
5248 (v850_extract_return_value): Care for structs.
5249 (v850_store_return_value): Ditto.
5250 (v850_store_struct_return): Actually write address.
5251
5252 2002-06-11 Michal Ludvig <mludvig@suse.cz>
5253
5254 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
5255 without debug information too.
5256
5257 2002-06-10 Andrew Cagney <ac131313@redhat.com>
5258
5259 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
5260 Make multi-arch pure.
5261 * gdbarch.h, gdbarch.c: Re-generate.
5262 * arm-tdep.c (arm_print_float_info): Update.
5263 * arch-utils.h (default_print_float_info): Update.
5264 * arch-utils.c (default_print_float_info): Update.
5265 * infcmd.c (float_info): Update call.
5266
5267 2002-06-10 Andrew Cagney <ac131313@redhat.com>
5268
5269 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
5270 the front of the initialize list.
5271
5272 2002-06-10 Andrew Cagney <ac131313@redhat.com>
5273
5274 * infrun.c (struct inferior_status): Replace fields
5275 selected_frame_address and selected_level with field
5276 selected_frame_id.
5277 (save_inferior_status): Update. Use get_frame_id.
5278 (struct restore_selected_frame_args): Delete.
5279 (restore_selected_frame): Update. Use frame_find_by_id.
5280 (restore_inferior_status): Update.
5281
5282 * breakpoint.h (struct breakpoint): Change type of
5283 watchpoint_frame to frame_id.
5284 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
5285 call to get_current_frame.
5286 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
5287 get_current_frame.
5288 (watchpoint_check): Use frame_find_by_id.
5289
5290 * frame.h (record_selected_frame): Delete declaration.
5291 * stack.c (record_selected_frame): Delete function.
5292
5293 * frame.h (struct frame_id): Define.
5294 (get_frame_id): Declare.
5295 (frame_find_by_id): Declare.
5296 * frame.c (frame_find_by_id): New function.
5297 (get_frame_id): New function.
5298
5299 2002-06-10 Andrey Volkov <avolkov@transas.com>
5300
5301 * ser-e7kpc.c: Fix duplicated define and call of
5302 _initialize_ser_e7000pc
5303
5304 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
5305
5306 * signals/signals.c (target_signal_from_host): Fix #ifdef
5307 SIGRTMIN case.
5308 (do_target_signal_to_host): Likewise.
5309
5310 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
5311
5312 * mips-tdep.c (mips_find_abi_section): New function.
5313 (mips_gdbarch_init): Call it.
5314
5315 2002-06-09 Mark Kettenis <kettenis@gnu.org>
5316
5317 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
5318 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
5319 after Andrew's 2002-06-08 gdbarch change.
5320
5321 2002-06-09 Mark Kettenis <kettenis@gnu.org>
5322
5323 * i386-linux-nat.c (suppy_gregset): Don't supply
5324 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
5325 register cache.
5326 (fill_gregset): Don't fetch it under the same circumstances.
5327
5328 2002-06-09 Andrew Cagney <cagney@redhat.com>
5329
5330 * Makefile.in (callback_h): Define.
5331 (remote_sim_h): Update path to remote-sim.h.
5332 (remote-rdp.o): Add $(callback_h).
5333 (remote-sim.o): Use $(callback_h).
5334 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
5335 * remote-rdp.c: Include "gdb/callback.h".
5336
5337 2002-06-09 Mark Kettenis <kettenis@gnu.org>
5338
5339 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
5340 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
5341
5342 2002-06-08 Andrew Cagney <ac131313@redhat.com>
5343
5344 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
5345 * rdi-share/serpardr.c: Ditto.
5346 * rdi-share/unixcomm.c: Ditto.
5347 * rdi-share/serdrv.c: Ditto.
5348 * rdi-share/hostchan.h: Ditto.
5349 * rdi-share/hostchan.c: Ditto.
5350 * rdi-share/host.h: Ditto.
5351 * rdi-share/devsw.c: Ditto.
5352
5353 * objfiles.h: Change type of obj_private to void pointer.
5354 * pa64solib.c: Update copyright. Don't include "assert.h", use
5355 strcmp instead of STREQ, use LONGEST, do not use PTR
5356 * somsolib.c: Ditto.
5357
5358 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
5359 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
5360 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
5361
5362 2002-06-08 Andrew Cagney <ac131313@redhat.com>
5363
5364 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
5365 (default_get_saved_register): Delete function.
5366 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
5367 generic_unwind_get_saved_register.
5368 * gdbarch.h, gdbarch.c: Re-generate.
5369
5370 2002-06-08 Andrew Cagney <ac131313@redhat.com>
5371
5372 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
5373 generic_func_frame_chain_valid.
5374 * gdbarch.h, gdbarch.c: Re-generate.
5375 * blockframe.c (generic_func_frame_chain_valid): Only check
5376 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
5377 passing FP to PC_IN_CALL_DUMMY.
5378 Fix PR gdb/360.
5379
5380 2002-06-08 Andrew Cagney <ac131313@redhat.com>
5381
5382 * gdbarch.sh (struct gdbarch_data): Add field init_p.
5383 (register_gdbarch_data): Initialize init_p.
5384 (gdbarch_data): Initialize data pointer using the init function.
5385 (init_gdbarch_data): Delete function.
5386 (gdbarch_update_p): Update.
5387 (initialize_non_multiarch): Update.
5388 (struct gdbarch): Add field initialized_p.
5389 * gdbarch.h, gdbarch.c: Re-generate.
5390
5391 2002-06-07 Michal Ludvig <mludvig@suse.cz>
5392
5393 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
5394 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
5395 better do the things actually here.
5396 * x86-64-tdep.c (x86_64_register_name2nr): New.
5397 (x86_64_register_name): Renamed to x86_64_register_nr2name.
5398 (x86_64_gdbarch_init): Respect the above change.
5399 * x86-64-tdep.h (x86_64_register_name2nr)
5400 (x86_64_register_nr2name): Add prototypes.
5401 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
5402
5403 2002-06-06 Michael Snyder <msnyder@redhat.com>
5404
5405 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
5406 Delete extra braces and re-indent.
5407 (d10v_store_return_value): Char return values
5408 must be shifted over by one byte in R0.
5409 (d10v_extract_return_value): Delete extra braces, re-indent.
5410
5411 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
5412
5413 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
5414 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
5415 (d10v_integer_to_address): Rewrite.
5416 (d10v_frame_init_saved_regs): When reading fp and sp registers use
5417 the d10v specific functions which take care of converting to the
5418 correct space.
5419
5420 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
5421
5422 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
5423 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
5424
5425 2002-06-02 Andrew Cagney <ac131313@redhat.com>
5426
5427 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
5428 includes.
5429 * config/tm-linux.h: Ditto.
5430 * config/alpha/tm-alphalinux.h: Ditto.
5431 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
5432 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
5433 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
5434 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
5435 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
5436 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
5437 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
5438 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
5439 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
5440 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
5441 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
5442 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
5443 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
5444 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
5445 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
5446 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
5447 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
5448 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
5449 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
5450 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
5451 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
5452 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
5453 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
5454 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
5455 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
5456 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
5457 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
5458 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
5459 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
5460 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
5461 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
5462 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
5463 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
5464 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
5465 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
5466 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
5467 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
5468
5469 2002-05-04 Aidan Skinner <aidan@velvet.net>
5470
5471 * ada-exp.tab.c: New file
5472 * ada-exp.y: New file
5473 * ada-lang.c: New file
5474 * ada-lang.h: New file
5475 * ada-lex.c: New file
5476 * ada-lex.l: New file
5477 * ada-tasks.c: New file
5478 * ada-typeprint.c: New file
5479 * ada-valprint.c: New file
5480
5481 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
5482
5483 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
5484 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
5485
5486 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
5487
5488 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
5489 insetead of ppc-linux-tdep.o.
5490 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
5491 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
5492
5493 2002-06-02 Andrew Cagney <ac131313@redhat.com>
5494
5495 2002-05-07 Christian Groessler <chris@groessler.org>
5496 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
5497 bit register contents for little endian hosts.
5498
5499 2002-06-01 Andrew Cagney <ac131313@redhat.com>
5500
5501 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
5502 any maintainer.
5503
5504 2002-06-01 Andrew Cagney <ac131313@redhat.com>
5505
5506 * gdbarch.h: Regenerate.
5507
5508 2002-06-01 Andrew Cagney <ac131313@redhat.com>
5509
5510 * MAINTAINERS: Add everyone to write-after-approval list.
5511
5512 2002-06-01 Andrew Cagney <ac131313@redhat.com>
5513
5514 * stack.c (frame_info): Use frame_register_unwind instead of
5515 saved_regs. Mention when the SP is on the stack or in a register.
5516
5517 * frame.h (frame_register_unwind_ftype): Define. Document.
5518 (struct frame_info): Add field register_unwind and
5519 register_unwind_cache.
5520 (frame_register_unwind): Declare.
5521 (generic_unwind_get_saved_register): Declare.
5522
5523 * frame.c (frame_register_unwind): New function.
5524 (generic_unwind_get_saved_register): New function.
5525
5526 * blockframe.c (generic_call_dummy_register_unwind): New function.
5527 (frame_saved_regs_register_unwind): New function.
5528 (set_unwind_by_pc): New function.
5529 (create_new_frame): New function.
5530 (get_prev_frame): New function.
5531
5532 2002-05-30 Andrew Cagney <ac131313@redhat.com>
5533
5534 * a29k-share/: Delete directory.
5535 * remote-vx29k.c: Delete file.
5536
5537 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5538
5539 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
5540 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
5541
5542 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5543
5544 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
5545 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
5546 (sparc64nbsd-nat.o)
5547 (sparcnbsd-nat.o)
5548 (sparcnbsd-tdep.o): New dependency lists.
5549 * NEWS: Note new UltraSPARC NetBSD native configuration.
5550 * configure.host (sparc64-*-netbsd*): New host.
5551 * configure.tgt (sparc-*-netbsdelf*)
5552 (sparc-*-netbsd*): Set gdb_target to nbsd.
5553 (sparc64-*-netbsd*): New target.
5554 * sparc64nbsd-nat.c: New file.
5555 * sparcnbsd-nat.c: New file.
5556 * sparcnbsd-tdep.c: New file.
5557 * sparcnbsd-tdep.h: New file.
5558 * config/sparc/nbsd.mt: New file.
5559 * config/sparc/nbsd64.mh: New file.
5560 * config/sparc/nbsd64.mt: New file.
5561 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
5562 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
5563 (HOST_IPC): Remove.
5564 * config/sparc/nbsdaout.mt: Remove.
5565 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
5566 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
5567 (HOST_IPC): Remove.
5568 * config/sparc/nbsdelf.mt: Remove.
5569 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
5570 sparc-nat.c compatiblity defines.
5571 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
5572 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
5573 * config/sparc/tm-nbsd64.h: New file.
5574 * config/sparc/tm-nbsdaout.h: Remove.
5575 * config/sparc/xm-nbsd.h: Remove.
5576
5577 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5578
5579 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
5580 * sparc-tdep.c: Include osabi.h.
5581 (gdbarch_tdep): Add osabi member.
5582 (_initialize_sparc_tdep): Use gdbarch_register.
5583 (sparc_gdbarch_init): Use generic OS ABI framework.
5584 (sparc_dump_tdep): New function.
5585
5586 2002-05-30 Kevin Buettner <kevinb@redhat.com>
5587
5588 * corefile.c (do_captured_read_memory_integer): Return non-zero
5589 result.
5590 (safe_read_memory_integer): Copy result of memory read when
5591 status is non-zero. Also, add comments.
5592
5593 2002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
5594
5595 * Makefile.in (ppc_tdep_h): Define.
5596 (ppc-linux-nat.o)
5597 (ppc-linux-tdep.o)
5598 (rs6000-tdep.o): Use $(ppc_tdep_h).
5599 (ppc-sysv-tdep.o)
5600 (ppcnbsd-nat.o)
5601 (ppcnbsd-tdep.o): New dependency lists.
5602 * ppc-tdep.h: Use generic OS ABI framework.
5603 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
5604 (ppc_linux_init_abi): New functions.
5605 (ppc_sysv_abi_broken_use_struct_convention)
5606 (ppc_sysv_abi_use_struct_convention)
5607 (ppc_sysv_abi_push_arguments): Move to...
5608 * ppc-sysv-tdep.c: ...here.
5609 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
5610 * rs6000-tdep.c (process_note_abi_tag_sections)
5611 (get_elfosabi): Remove.
5612 (rs6000_gdbarch_init): Use generic OS ABI framework.
5613 (rs6000_dump_tdep): New function.
5614 (_initialize_rs6000_tdep): Use gdbarch_register.
5615 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
5616 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
5617 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
5618 of ppc-linux-tdep.o.
5619 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
5620 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
5621 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
5622 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
5623 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
5624 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
5625
5626 2002-05-29 Jim Blandy <jimb@redhat.com>
5627
5628 * macroscope.c (default_macro_scope): Put `void' in empty argument
5629 list.
5630
5631 2002-05-29 Andrew Cagney <ac131313@redhat.com>
5632
5633 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
5634 * arch-utils.c: Include "sim-regno.h".
5635 * gdbarch.sh: Don't include "sim-regno.h".
5636 * gdbarch.h, gdbarch.c: Regenerate.
5637 * sim-regno.h (legacy_register_sim_regno): Move declaration from
5638 here.
5639 * arch-utils.h (legacy_register_sim_regno): To here.
5640 * remote-sim.c (legacy_register_sim_regno): Move function from
5641 here.
5642 * arch-utils.c (legacy_register_sim_regno): To here.
5643
5644 2002-05-28 Andrew Cagney <ac131313@redhat.com>
5645
5646 * sim-regno.h: New file.
5647 * Makefile.in (sim_regno_h): Define.
5648 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
5649 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
5650 (legacy_register_sim_regno): New function.
5651 (one2one_register_sim_regno): New function.
5652 (gdbsim_fetch_register): Rewrite.
5653 (gdbsim_store_register): Only store a register when
5654 REGISTER_SIM_REGNO is valid.
5655 * d10v-tdep.c: Include "sim-regno.h".
5656 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
5657 (d10v_ts3_register_sim_regno): Ditto.
5658 * gdbarch.sh: Include "sim-regno.h".
5659 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
5660 * gdbarch.h, gdbarch.c: Regenerate.
5661 * arch-utils.h (default_register_sim_regno): Delete declaration.
5662 * arch-utils.c (default_register_sim_regno): Delete function.
5663
5664 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
5665
5666 * ppcnbsd-nat.c: Rewrite.
5667 * ppcnbsd-tdep.c: New file.
5668 * ppcnbsd-tdep.h: New file.
5669 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
5670 solib.o, and solib-svr4.o.
5671 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
5672 nbsd-tdep.o, and corelow.o.
5673
5674 2002-05-28 Andrew Cagney <ac131313@redhat.com>
5675
5676 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
5677 `tr' and `sed'. Mention that `broken' targets are not expected to
5678 build.
5679
5680 2002-05-27 Michal Ludvig <mludvig@suse.cz>
5681
5682 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
5683 Let PC point right after the prologue before looking up symbols.
5684
5685 2002-05-27 Martin M. Hunt <hunt@redhat.com>
5686
5687 * i386-tdep.c (i386_register_virtual_type): Return
5688 builtin_type_vec128i for SSE registers.
5689
5690 * gdbtypes.h (builtin_type_vec128i): Declare.
5691
5692 * gdbtypes.c (build_builtin_type_vec128i): New function.
5693 (builtin_type_v2_double, builtin_type_v4_int64): New types.
5694 (builtin_type_vec128i): New type for SSE2 128-bit registers.
5695 (build_gdbtypes): Initialize new builtin vector types.
5696 (_initialize_gdbtypes): Register new vector types with gdbarch.
5697
5698 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5699
5700 * MAINTAINERS: ns32k is not longer an obsolete candidate,
5701 since it has been multi-arch'd.
5702 * NEWS: Note that ns32k-*-* is now partial multi-arch.
5703 Move Alpha and VAX multi-arch news entries to same section
5704 as other multi-arch news.
5705
5706 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5707
5708 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
5709 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
5710 static. Rename some register numbers to put them in ns32k-tdep
5711 private namespace.
5712 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
5713 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
5714 functions.
5715 (_initialize_ns32k_tdep): Use gdbarch_register.
5716 * ns32k-tdep.h: New file.
5717 * ns32knbsd-tdep.c: New file.
5718 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
5719 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
5720 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
5721 REGISTER_BYTES, REGISTER_BYTE): Remove.
5722 * config/ns32k/tm-ns32k.h: New file.
5723 * config/ns32k/tm-umax.h: Remove.
5724
5725 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5726
5727 * ns32k-tdep.c (ns32k_saved_pc_after_call,
5728 ns32k_store_struct_return, ns32k_extract_return_value,
5729 ns32k_store_return_value, ns32k_extract_struct_value_address): New
5730 functions.
5731 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
5732 ns32k_saved_pc_after_call.
5733 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
5734 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
5735 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
5736 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
5737 ns32k_extract_struct_value_address.
5738
5739 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5740
5741 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
5742 ns32k_fix_call_dummy): New.
5743 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
5744 ns32k_call_dummy_words.
5745 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
5746 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
5747 CALL_DUMMY_NARGS): Remove.
5748 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
5749
5750 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5751
5752 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
5753 ns32k_frame_saved_pc, ns32k_frame_args_address,
5754 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
5755 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
5756 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
5757 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
5758 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
5759 (BREAKPOINT): Remove..
5760 (FRAME_CHAIN): Define as ns32k_frame_chain.
5761 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
5762 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
5763 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
5764 (FRAME_FIND_SAVED_REGS): Remove.
5765 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
5766 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
5767 (POP_FRAME): Define as ns32k_pop_frame.
5768
5769 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5770
5771 * ns32k-tdep.c (ns32k_register_byte_32082,
5772 ns32k_register_byte_32382, ns32k_register_raw_size,
5773 ns32k_register_virtual_size, ns32k_register_virtual_type): New
5774 functions.
5775 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
5776 ns32k_register_byte_32382.
5777 * config/ns32k/tm-umax.h: Update copyright years.
5778 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
5779 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
5780 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
5781 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
5782 (ns32k_get_enter_addr): Fix prototype.
5783
5784 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5785
5786 * ns32k-tdep.c: Update copyright years.
5787 (ns32k_register_name_32082): New function.
5788 (ns32k_register_name_32382): Ditto.
5789 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
5790 (REGISTER_NAME): Define as ns32k_register_name_32382.
5791 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
5792 (REGISTER_NAME): Define as ns32k_register_name_32082.
5793
5794 2002-05-24 Jim Blandy <jimb@redhat.com>
5795
5796 * dwarf2read.c (free_line_header): Use xfree, not free.
5797
5798 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
5799
5800 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
5801 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
5802
5803 2002-05-23 Andrew Cagney <ac131313@redhat.com>
5804
5805 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
5806
5807 2002-05-23 Andrew Cagney <ac131313@redhat.com>
5808
5809 From Ross Alexander at NEC Europe:
5810 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
5811
5812 2002-05-23 Michael Snyder <msnyder@redhat.com>
5813
5814 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
5815 for input, rather than parse_and_eval_address.
5816
5817 2002-05-23 Andrew Cagney <ac131313@redhat.com>
5818
5819 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
5820 * Makefile.in (sim_d10v_h): Update definition.
5821
5822 2002-05-24 Andrew Cagney <cagney@redhat.com>
5823
5824 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
5825 change `2002-05-22 Michael Snyder' below.
5826 (d10v_push_arguments): Ditto.
5827 (d10v_extract_return_value): Ditto.
5828
5829 2002-05-23 Jim Blandy <jimb@redhat.com>
5830
5831 * macrotab.c (check_for_redefinition): Don't complain if the new
5832 definition is the same as the previous one. Take more arguments
5833 to allow the comparison.
5834 (macro_define_object, macro_define_function): Pass more arguments
5835 to check_for_redefinition.
5836
5837 2002-05-22 Michael Snyder <msnyder@redhat.com>
5838
5839 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
5840 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
5841 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
5842 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
5843 Don't bail if return_pc is PC_IN_CALL_DUMMY.
5844 Add a temp variable to save a call (and a memory read).
5845 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
5846 if possible (so that PC_IN_CALL_DUMMY will work).
5847
5848 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
5849
5850 * MAINTAINERS: Remove status `OBSOLETE' from v850.
5851
5852 2002-05-22 Michal Ludvig <mludvig@suse.cz>
5853
5854 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
5855 fde->cie_ptr.
5856 (dwarf2_build_frame_info): Corrected handling of eh_frame.
5857 (dwarf2_build_frame_info): Add offset to fde->initial_location
5858 so that frames of shared libraries are mapped correctly.
5859 (execute_stack_op): Change type of 'result' from ULONGEST to
5860 CORE_ADDR.
5861
5862 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5863
5864 * config/alpha/tm-nbsd.h: Include solib.h.
5865
5866 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5867
5868 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
5869 assumptions about the host's byte order.
5870
5871 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5872
5873 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
5874 to dependency list.
5875 * alphanbsd-tdep.c: Include solib-svr4.h.
5876 * shnbsd-tdep.c: Ditto.
5877
5878 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5879
5880 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
5881 nbsd-tdep.h to dependency list.
5882 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
5883 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
5884 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
5885 nbsdaout.mh and nbsdelf.mh consistently.
5886 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
5887 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
5888 nbsdaout.mt and nbsdelf.mh consistently.
5889 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
5890 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
5891 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
5892 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
5893 a.out shared library stuff from here...
5894 * config/nm-nbsdaout.h: ...to here.
5895 * config/tm-nbsd.h: Remove.
5896 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
5897 * config/arm/nbsd.mh: Remove.
5898 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
5899 nbsd-tdep.o.
5900 * config/arm/nbsdaout.mh: New file.
5901 * config/arm/nbsdelf.mh: New file.
5902 * config/arm/nm-nbsdaout.h: New file.
5903 * config/i386/nbsd.mh: Remove.
5904 * config/i386/nbsd.mt: Remove.
5905 * config/i386/nbsdaout.mh: New file.
5906 * config/i386/nbsdaout.mt: New file.
5907 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
5908 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
5909 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
5910 i386_register_u_addr): Remove.
5911 * config/i386/nm-nbsdaout.h: New file.
5912 * config/i386/nm-nbsdelf.h: Remove.
5913 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
5914 (USE_STRUCT_CONVENTION): Remove.
5915 * config/i386/tm-nbsdaout.h: New file.
5916 * config/i386/tm-nbsdelf.h: Remove.
5917 * config/m68k/nbsd.mh: Remove.
5918 * config/m68k/nbsd.mt: Remove.
5919 * config/m68k/nbsdaout.mh: New file.
5920 * config/m68k/nbsdaout.mt: New file.
5921 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
5922 * config/m68k/nm-nbsdaout.h: New file.
5923 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
5924 (IN_SOLIB_CALL_TRAMPOLINE): Define.
5925 * config/ns32k/nbsd.mh: Remove.
5926 * config/ns32k/nbsd.mt: Remove.
5927 * config/ns32k/nbsdaout.mh: New file.
5928 * config/ns32k/nbsdaout.mt: New file.
5929 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
5930 * config/ns32k/nm-nbsdaout.h: New file.
5931 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
5932 (IN_SOLIB_CALL_TRAMPOLINE): Define.
5933 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
5934 (SVR4_SHARED_LIBS): Remove.
5935 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
5936 * config/sparc/nbsd.mh: Remove.
5937 * config/sparc/nbsd.mt: Remove.
5938 * config/sparc/nbsdaout.mh: New file.
5939 * config/sparc/nbsdaout.mt: New file.
5940 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
5941 * config/sparc/nbsdelf.mt: New file.
5942 * config/sparc/nm-nbsdaout.h: New file.
5943 * config/sparc/nm-nbsdelf.h: Remove.
5944 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
5945 * config/sparc/tm-nbsdaout.h: New file.
5946
5947 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5948
5949 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
5950 mipsnbsd-tdep.c
5951 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
5952
5953 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5954
5955 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
5956 shnbsd-nat.c.
5957 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
5958
5959 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5960
5961 * NEWS: Note new MIPS NetBSD native configuration.
5962 * configure.host (mips*-*-netbsd*): New host.
5963 * configure.tgt (mips*-*-netbsd*): New target.
5964 * mipsnbsd-nat.c: New file.
5965 * mipsnbsd-tdep.c: New file.
5966 * mipsnbsd-tdep.h: New file.
5967 * config/mips/nbsd.mh: New file.
5968 * config/mips/nbsd.mt: New file.
5969 * config/mips/nm-nbsd.h: New file.
5970 * config/mips/tm-nbsd.h: New file.
5971
5972 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5973
5974 * Makefile.in (SFILES): Add osabi.c.
5975 (COMMON_OBS): Add osabi.o.
5976 (osabi.o): New dependency list.
5977 * osabi.c: New file.
5978 * osabi.h: New file.
5979 * doc/gdbint.texinfo: Document new generic OS ABI framework.
5980
5981 * Makefile.in (alpha_tdep_h): Define and use instead of
5982 alpha-tdep.h.
5983 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
5984 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
5985 Remove.
5986 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
5987 * alpha-tdep.h: Include osabi.h.
5988 (alpha_abi): Remove.
5989 (gdbarch_tdep): Use generic OS ABI framework.
5990 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
5991 gdbarch_register_osabi.
5992 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
5993 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
5994 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
5995
5996 * Makefile.in (sh_tdep_h): Add osabi.h.
5997 * sh-tdep.h (sh_osabi): Remove.
5998 (gdbarch_tdep): Use generic OS ABI framework.
5999 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
6000 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
6001 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
6002 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
6003
6004 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
6005 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
6006 gdbarch_register_osabi.
6007 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
6008 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
6009 (get_elfosabi): Rename to...
6010 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
6011 ABI framework support routines.
6012 (arm_gdbarch_init): Use generic OS ABI framework.
6013 (arm_dump_tdep): Likewise.
6014 (_initialize_arm_tdep): Likewise.
6015 * arm-tdep.h: Include osabi.h.
6016 (arm_abi): Remove.
6017 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
6018 osabi member.
6019 (arm_gdbarch_register_os_abi): Remove prototype.
6020 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
6021 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
6022
6023 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
6024 * mips-tdep.c: Include osabi.h.
6025 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
6026 OS ABI framework.
6027
6028 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
6029
6030 * h8300-tdep.c: Fix formatting.
6031
6032 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
6033
6034 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
6035 printing vector registers.
6036
6037 2002-05-19 Andrew Cagney <ac131313@redhat.com>
6038
6039 From Fernando Nasser:
6040 * remote.c (remote_async_open_1): Re-throw the exception when the
6041 connection fails.
6042 (remote_cisco_open): Ditto.
6043 (remote_open_1): Ditto.
6044
6045 2002-05-19 Andrew Cagney <ac131313@redhat.com>
6046
6047 * remote.c (remote_start_remote_dummy): Add uiout parameter.
6048 (remote_start_remote): Add uiout parameter. Pass through to
6049 remote_start_remote_dummy.
6050 (remote_open_1): Use catch_exception instead of catch_errors.
6051 (remote_async_open_1): Ditto.
6052 (remote_cisco_open): Ditto.
6053
6054 2002-05-19 Andrew Cagney <ac131313@redhat.com>
6055
6056 * remote.c (remote_start_remote): Replace PTR with void pointer.
6057 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
6058 static.
6059
6060 2002-05-18 Andrew Cagney <ac131313@redhat.com>
6061
6062 * gdb_indent.sh: Allow the script to be run in the sim directory.
6063
6064 2002-05-18 Mark Kettenis <kettenis@gnu.org>
6065
6066 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
6067 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
6068
6069 * corelow.c (core_open): Only call set_gdbarch_from_file if
6070 exec_bfd is NULL.
6071
6072 2002-05-17 Andrey Volkov <avolkov@transas.com>
6073
6074 * h8300-tdep.c: Add support of EXR register
6075 * config/h8300/tm-h8300.h: Ditto.
6076
6077 2002-05-17 Andrey Volkov <avolkov@transas.com>
6078
6079 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
6080
6081 2002-05-17 Andrey Volkov <avolkov@transas.com>
6082
6083 * h8300-tdep.c: Change literal regnums to REGNO.
6084
6085 2002-05-17 Jim Blandy <jimb@redhat.com>
6086
6087 * NEWS: Note addition of macro support.
6088
6089 Expand preprocessor macros in C expressions.
6090 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
6091 (scan_macro_expansion, scanning_macro_expansion,
6092 finished_macro_expansion): New function declarations.
6093 (expression_macro_lookup_func, expression_macro_lookup_baton): New
6094 variable declarations.
6095 * parser-defs.h (expression_context_pc): New declaration.
6096 * parse.c (expression_context_pc): New variable.
6097 (parse_exp_1): Set expression_context_pc, as well as
6098 expression_context_block.
6099 * c-exp.y (yylex): If we're not already reading the result of a
6100 macro expansion, try to macro-expand the next token. When we're
6101 done scanning a macro expansion, switch back to the mainline text.
6102 Commas and `if's in a macro's expansion don't terminate the input.
6103 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
6104 (macro_original_text, macro_expanded_text,
6105 expression_macro_lookup_func, expression_macro_lookup_baton): New
6106 variables.
6107 (scan_macro_expansion, scanning_macro_expansion,
6108 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
6109 c_preprocess_and_parse): New functions.
6110 (c_language_defn, cplus_language_defn, asm_language_defn): Call
6111 c_preprocess_and_parse, instead of c_parse.
6112 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
6113 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
6114
6115 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
6116
6117 * sh-tdep.c (gdb_print_insn_sh64): Delete.
6118 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
6119 (sh_gdbarch_init): Always use gdb_print_insn_sh.
6120
6121 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
6122
6123 * NEWS: Add section for multi-arched targets. Add v850 to that section.
6124
6125 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
6126
6127 * Makefile.in (sh_tdep_h): Define and use.
6128 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
6129 register enum): Move to...
6130 * * sh-tdep.h: ...here.
6131 * sh-tdep.c: Include sh-tdep.h.
6132 * sh3-rom.c: Likewise.
6133 * shnbsd-tdep.c: Likewise.
6134
6135 2002-05-16 Michael Snyder <msnyder@redhat.com>
6136
6137 * arm-tdep.c: Spelling fix in comment.
6138
6139 2002-05-16 Jim Blandy <jimb@redhat.com>
6140
6141 Add commands for manually expanding macros and showing their
6142 definitions.
6143 * macrocmd.c, macroscope.c, macroscope.h: New files.
6144 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
6145 (macroscope_h): New variable.
6146 (HFILES_NO_SRCDIR): Add macroscope.h.
6147 (COMMON_OBS): Add macrocmd.o, macroscope.o.
6148 (macroscope.o, macrocmd.o): New rules.
6149
6150 Teach the Dwarf 2 reader to read macro information.
6151 * dwarf2read.c: #include "macrotab.h".
6152 (dwarf_macinfo_buffer): New variable.
6153 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
6154 dwarf_macinfo_size.
6155 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
6156 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
6157 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
6158 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
6159 dwarf2_macro_spaces_in_definition): New complaints.
6160 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
6161 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
6162 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
6163 the partial symbol table.
6164 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
6165 from what's recorded in the partial symbol table.
6166 (read_file_scope): If the compilation unit has a
6167 `DW_AT_macro_info' attribute, read its macro information.
6168 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
6169
6170 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
6171
6172 Fix PR gdb/546
6173 * ser-tcp.c: Don't include <netinet/udp.h>.
6174
6175 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
6176
6177 * MAINTAINERS: Update my email address.
6178
6179 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
6180
6181 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
6182 include file of the same name.
6183
6184 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
6185
6186 * configure.tgt: Mark v850 as multi-arched.
6187 * config/v850/tm-v850.h: Remove file.
6188 * config/v850/v850.mt: Eliminate TM_FILE.
6189
6190 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
6191
6192 * v850-tdep.c: Full multi-arch.
6193 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
6194 Define GDB_MULTI_ARCH to 2.
6195
6196 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
6197
6198 * p-exp.y (current_type): New static variable.
6199 Carries the type of the expression at the position that is parsed.
6200 (push_current_type, pop_current_type): Two new functions. Used
6201 to store/restore current_type in expression on specific tokens.
6202 (search_field): New static variable. Set to one after parsing a point
6203 as at that point only a FIELDNAME token should be searched.
6204 (FIELDNAME): New token. After a point only a token belonging to
6205 current_type type definition is allowed.
6206 (all over token rules): reset and change current_type according
6207 to rules.
6208 (exp '[' rule): insert implicit array index field if
6209 exp is a pascal string type.
6210
6211 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
6212
6213 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
6214 frame info. Use frame_info's saved_regs instead of matching member
6215 in extra_frame_info throughout.
6216 (v850_frame_init_saved_regs): New function.
6217 (v850_init_extra_frame_info): Move most functionality into
6218 v850_frame_init_saved_regs().
6219 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
6220 (v850_frame_find_saved_regs): Remove declaration.
6221 (FRAME_FIND_SAVED_REGS): Remove definition.
6222 (v850_frame_init_saved_regs): Add declaration.
6223 (FRAME_INIT_SAVED_REGS): Add definition.
6224
6225 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
6226
6227 * v850-tdep.c: Begin multi-arch'ing v850.
6228 (v850_target_architecture_hook): Remove function.
6229 (v850_gdbarch_init): New function. Add code previously in
6230 v850_target_architecture_hook().
6231 (_initialize_v850_tdep): Don't set target_architecture_hook.
6232 Call register_gdbarch_init() instead.
6233
6234 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
6235
6236 * gdbtypes.h (struct cplus_struct_type): Remove args field.
6237 * hpread.c (hpread_read_struct_type): Remove assignments to args.
6238 (fixup_class_method_type): Likewise.
6239
6240 2002-05-15 Jim Blandy <jimb@redhat.com>
6241
6242 Add macro structures to GDB's symbol tables. Nobody puts anything
6243 in them yet.
6244 * symtab.h (struct symtab): New member: `macro_table'.
6245 * buildsym.h (pending_macros): New global variable.
6246 * buildsym.c: #include "macrotab.h".
6247 (buildsym_init): Initialize `pending_macros'.
6248 (end_symtab): If we found macro information while reading a CU's
6249 debugging info, do build a symtab structure for it. Make the
6250 symtab point to the macro information, and clear the
6251 `pending_macros' pointer which held it while we were reading the
6252 debug info.
6253 (really_free_pendings): Free any pending macro table.
6254 * objfiles.h (struct objfile): New member: `macro_cache'.
6255 * objfiles.c (allocate_objfile): Set allocate and free functions
6256 for the macro cache's objstack.
6257 (free_objfile): Empty the macro cache's obstack.
6258 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
6259 set new allocate and free functions for it.
6260 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
6261 free functions for the macro cache's objstack. (Why is this
6262 function building its own objfile?)
6263 * symmisc.c (print_objfile_statistics): Print statistics on the
6264 macro bcache.
6265 * Makefile.in: Note that buildsym.o depends on macrotab.h.
6266
6267 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
6268
6269 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
6270 (REGISTER_U_ADDR): Delete definition.
6271 (arm_register_u_addr): Delete declaration.
6272
6273 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
6274
6275 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
6276 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
6277
6278 2002-05-14 Andrew Cagney <ac131313@redhat.com>
6279
6280 * regcache.c (register_valid): Revise comments refering to "Not
6281 available" and "unavailable".
6282 * frame.c (frame_register_read): Ditto.
6283 * findvar.c (value_of_register): Ditto.
6284
6285 2002-05-15 Andrew Cagney <cagney@redhat.com>
6286
6287 * Makefile.in (remote_sim_h): Replace remote-sim_h.
6288 (remote-sim.o): Update dependencies.
6289 (d10v-tdep.o): Specify dependencies.
6290 (sim_d10v_h): Define.
6291
6292 2002-05-14 Jim Blandy <jimb@redhat.com>
6293
6294 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
6295 * macrotab.c (macro_lookup_inclusion, find_definition,
6296 new_macro_table): Same.
6297
6298 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
6299 not `! strcmp ()'. This is a dubious improvement.
6300 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
6301
6302 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
6303 although it's not necessary, to avoid a warning.
6304
6305 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
6306
6307 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
6308 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
6309 TYPE_INSTANCE_FLAGS.
6310 (struct main_type): New.
6311 (struct type): Move most members to struct main_type. Change
6312 cv_type and as_type to new type_chain member. Add instance_flags.
6313 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
6314 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
6315 (finish_cv_type): Remove prototype.
6316 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
6317 Set TYPE_CHAIN.
6318 (alloc_type_instance): New function.
6319 (smash_type): New function.
6320 (make_pointer_type, make_reference_type, make_function_type)
6321 (smash_to_member_type, smash_to_method_type): Call smash_type.
6322 (make_qualified_type): New function.
6323 (make_type_with_address_space): Call make_qualified_type.
6324 (make_cv_type): Likewise.
6325 (finish_cv_type): Remove unnecessary function.
6326 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
6327 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
6328 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
6329 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
6330 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
6331 * hpread.c (hpread_read_struct_type): Likewise.
6332 * stabsread.c (read_struct_type): Likewise.
6333
6334 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
6335
6336 * configure.tgt: Add a catch all sh* target, for cases like
6337 sh[2,3,4]-elf and sh-hms.
6338
6339 2002-05-14 Keith Seitz <keiths@redhat.com>
6340
6341 * event-loop.c (create_file_handler): Don't do anything but
6342 update data when we are given a fd which we are already
6343 monitoring.
6344
6345 2002-05-14 Michal Ludvig <mludvig@suse.cz>
6346
6347 * dwarf2cfi.c (context_cpy): Copy registers correctly.
6348 (update_context): Use __func__ in warnings.
6349
6350 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
6351
6352 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
6353 and tcp_close to net_open and net_close.
6354 (net_open): Accept "udp:" and "tcp:" specifications. Connect
6355 using UDP if requested. Don't try to disable Nagle on UDP
6356 sockets.
6357 * remote.c (remote_serial_open): New function. Warn about UDP.
6358 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
6359
6360 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
6361
6362 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
6363
6364 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
6365
6366 * configure.tgt: Remove sh-hms target.
6367 * MAINTAINERS: Don't list sh-hms as a separate target.
6368
6369 2002-05-13 Jim Blandy <jimb@redhat.com>
6370
6371 Add first preprocessor macro-expansion files.
6372 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
6373 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
6374 (splay_tree_h, macroexp_h, macrotab_h): New variable.
6375 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
6376 (COMMON_OBS): Add macrotab.o, macroexp.o.
6377 (macroexp.o, macrotab.o): New rules.
6378
6379 2002-05-13 Andrew Cagney <ac131313@redhat.com>
6380
6381 * config/m88k/tm-m88k.h: Update copyright.
6382 (m88k_target_write_pc): Declare
6383 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
6384 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
6385 (SHIFT_INST_REGS): Update definition.
6386 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
6387 using old definition of TARGET_WRITE_PC.
6388 * regcache.c (generic_target_write_pc): Delete code handling
6389 NNPC_REGNUM.
6390 * gdbarch.sh (NNPC_REGNUM): Delete.
6391 * gdbarch.h, gdbarch.c: Regenerate.
6392
6393 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
6394
6395 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
6396 builtin reg number.
6397
6398 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
6399
6400 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
6401 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
6402 (gen_address_of, gen_struct_ref, gen_repeat): Use type
6403 access macros.
6404 * c-typeprint.c (cp_type_print_method_args): Likewise.
6405 (c_type_print_args): Likewise.
6406 * d10v-tdep.c (d10v_push_arguments): Likewise.
6407 (d10v_extract_return_value): Likewise.
6408 * expprint.c (print_subexp): Likewise.
6409 * gdbtypes.c (lookup_primitive_typename): Likewise.
6410 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
6411 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
6412 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
6413 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
6414 (TYPE_VECTOR): Likewise.
6415 * hpread.c (hpread_read_struct_type)
6416 (fix_static_member_physnames, fixup_class_method_type)
6417 (hpread_type_lookup): Likewise.
6418 * mdebugread.c (parse_symbol, parse_type): Likewise.
6419 * p-lang.c (is_pascal_string_type): Likewise.
6420 * valops.c (hand_function_call): Likewise.
6421 * x86-64-tdep.c (classify_argument): Likewise.
6422
6423 * hpread.c (hpread_read_function_type)
6424 (hpread_read_doc_function_type): Call replace_type.
6425 * dstread.c (create_new_type): Delete.
6426 (decode_dst_structure, process_dst_function): Call alloc_type.
6427 Use type access macros.
6428
6429 2002-05-12 Mark Kettenis <kettenis@gnu.org>
6430
6431 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
6432 the're not supported by the current architecture.
6433 (i387_fill_fxsave): Likewise.
6434
6435 2002-05-12 Fred Fish <fnf@redhat.com>
6436
6437 * symfile.c (default_symfile_offsets): Arrange for uninitialized
6438 sect_index_xxx members to index the first slot in section_offsets
6439 if all of the section_offsets are zero.
6440
6441 2002-05-12 Mark Kettenis <kettenis@gnu.org>
6442
6443 * configure.tgt (sparc-*openbsd): Remove entry accidentially
6444 checked in with last change.
6445
6446 2002-05-12 Mark Kettenis <kettenis@gnu.org>
6447
6448 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
6449 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
6450 config.sub.
6451
6452 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
6453
6454 * Makefile.in: Update dependencies.
6455
6456 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6457
6458 * language.c (local_hex_string_custom): Simplify. Do not depend
6459 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
6460
6461 * memattr.c (mem_info_command): Replace calls to
6462 longest_local_hex_string and longest_local_hex_string_custom.
6463 * buildsym.c (make_blockvector): Ditto.
6464 * solib.c (info_sharedlibrary_command): Ditto.
6465 * tracepoint.c (tracepoints_info): Ditto.
6466 * symtab.c (print_msymbol_info): Ditto.
6467
6468 * language.c (local_hex_string): Delete.
6469 (local_hex_string_custom): Delete.
6470 (longest_local_hex_string): Rename to local_hex_string.
6471 (longest_local_hex_string_custom): Rename to
6472 local_hex_string_custom.
6473 * language.h (local_hex_string): Change parameter type to LONGEST.
6474 (local_hex_string_custom): Ditto.
6475 (longest_local_hex_string): Delete declaration.
6476 (longest_local_hex_string_custom): Ditto.
6477
6478 * solib.c: Update copyright.
6479 * memattr.c: Update copyright.
6480
6481 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6482
6483 * arch-utils.h (legacy_register_to_value): Declare.
6484 (legacy_value_to_register): Declare.
6485 (legacy_convert_register_p): Declare.
6486 * arch-utils.c (legacy_register_to_value): New function.
6487 (legacy_value_to_register): New function.
6488 (legacy_convert_register_p): New function.
6489
6490 * gdbarch.sh (REGISTER_TO_VALUE): Define.
6491 (VALUE_TO_REGISTER): Define.
6492 (CONVERT_REGISTER_P): Define.
6493 * gdbarch.h, gdbarch.c: Regenerate.
6494
6495 * valops.c (value_assign): Use CONVERT_REGISTER_P and
6496 VALUE_TO_REGISTER.
6497 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
6498 CONVERT_REGISTER_P.
6499
6500 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
6501 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
6502
6503 * Makefile.in: Update dependencies for valops.c.
6504 * valops.c: Include "gdb_assert.h".
6505 (typecmp): Skip THIS parameter to methods.
6506 (find_method_list): Remove static_memfuncp argument,
6507 update callers. Check for stub methods.
6508 (find_value_oload_method_list): Don't set *static_memfuncp.
6509 (find_overload_match): Don't check for stub methods. Assert
6510 that methods are not stubbed. Handle static methods.
6511 (value_find_oload_method_list): Remove static_memfuncp argument.
6512 * gdbtypes.c (check_stub_method): Do not add THIS pointer
6513 to the argument list for static stub methods.
6514 * value.h (value_find_oload_method_list): Update prototype.
6515
6516 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6517
6518 * arch-utils.h (generic_register_size): Declare.
6519 (generic_register_raw_size, generic_register_virtual_size): Delete
6520 declarations.
6521 * arch-utils.c (generic_register_raw_size): Delete.
6522 (generic_register_size): New function.
6523 (generic_register_virtual_size): Delete.
6524
6525 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
6526 default generic_register_size.
6527 * gdbarch.h, gdbarch.c: Re-generate.
6528
6529 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
6530 register_virtual_size.
6531 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
6532 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6533
6534 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6535
6536 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
6537 * gdbarch.h, gdbarch.c: Regenerate.
6538 * gnu-v3-abi.c: Update copyright.
6539 (vtable_address_point_offset): Update.
6540 (gnuv3_rtti_type): Update.
6541 (gnuv3_baseclass_offset): Update.
6542 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
6543 (init_fetch_link_map_offsets): Update.
6544 * remote.c (get_remote_state): Update.
6545
6546 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
6547
6548 * TODO: Remove value_headof/value_from_vtable_info comment.
6549 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
6550 * values.c (value_headof, value_from_vtable_info): Delete.
6551 * value.h (value_from_vtable_info): Delete prototype.
6552
6553 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6554
6555 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
6556 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
6557 $(gdb_regex_h).
6558 (gdb_assert_h): Define.
6559 (gdb_wait_h): Define.
6560 (gdb_regex_h): Define.
6561
6562 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
6563
6564 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
6565 * linespec.c (find_methods): Handle GCC 3.x template constructors.
6566
6567 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6568
6569 * nbsd-tdep.c: Fix comment.
6570
6571 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6572
6573 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
6574 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
6575 (nbsd-tdep.o): New dependency list.
6576 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
6577 nbsd-tdep.h.
6578 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
6579 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
6580 * nbsd-tdep.c: New file.
6581 * nbsd-tdep.h: New file.
6582 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
6583 nbsd-tdep.h.
6584 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
6585 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
6586 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
6587 * config/sh/nbsd.mt (TDEPFILES): Ditto.
6588
6589 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6590
6591 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
6592 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
6593 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
6594 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
6595 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
6596 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
6597
6598 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6599
6600 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
6601 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6602 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
6603 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
6604 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
6605 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
6606 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
6607
6608 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6609
6610 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
6611 fetch_elfcore_registers to...
6612 * i386nbsd-tdep.c: ...here.
6613 (i386nbsd_use_struct_convention): Rename to...
6614 (i386nbsd_aout_use_struct_convention): ...this.
6615 (i386nbsd_supply_reg): New function.
6616 (i386nbsd_fill_reg): New function.
6617 (fetch_core_registers): Use i386nbsd_supply_reg.
6618 (fetch_elfcore_registers): Likewise.
6619 (_initialize_i386nbsd_tdep): New function.
6620 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
6621 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6622 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
6623 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
6624 (i386nbsd_aout_use_struct_convention): ...this.
6625
6626 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6627
6628 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
6629 (store_inferior_registers): Use shnbsd_fill_reg.
6630 * shnbsd-tdep.c (sh_nbsd_supply_registers,
6631 sh_nbsd_supply_register): Collapse into...
6632 (shnbsd_supply_reg): ...this.
6633 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
6634 (shnbsd_fill_reg): ...this.
6635 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
6636 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
6637 (fetch_core_registers): Use shnbsd_supply_reg.
6638 (fetch_elfcore_registers): Use shnbsd_supply_reg.
6639 (sh_nbsd_core_fns): Rename to...
6640 (shnbsd_core_fns): ...this.
6641 (sh_nbsd_elfcore_fns): Rename to...
6642 (shnbsd_elfcore_fns): ...this.
6643 (sh_nbsd_init_abi): Rename to...
6644 (shnbsd_init_abi): ...this.
6645 (_initialize_sh_nbsd_tdep): Rename to...
6646 (_initialize_shnbsd_tdep): ...this.
6647 * shnbsd-tdep.h (sh_nbsd_supply_registers,
6648 sh_nbsd_supply_register, sh_nbsd_fill_registers,
6649 sh_nbsd_fill_register): Remove prototypes.
6650 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
6651
6652 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6653
6654 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
6655 (i387-nat.o): Delete dependency list.
6656 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
6657 (x86-64-linux-nat.o): Likewise.
6658 * i387-nat.c: Delete file, moving contents to...
6659 * i387-tdep.c: ...here.
6660 * i387-nat.h: Rename...
6661 * i387-tdep.h: ...to this.
6662 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
6663 * i386-linux-nat.c: Likewise.
6664 * i386bsd-nat.c: Likewise.
6665 * i386gnu-nat.c: Likewise.
6666 * i386nbsd-nat.c: Likewise.
6667 * i386v4-nat.c: Likewise.
6668 * x86-64-linux-nat.c: Likewise.
6669 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
6670 * config/i386/go32.mh (NATDEPFILES): Likewise.
6671 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
6672 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
6673 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
6674 * config/i386/linux.mh (NATDEPFILES): Likewise.
6675 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
6676 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6677 * config/i386/obsd.mh (NATDEPFILES): Likewise.
6678 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
6679
6680 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6681
6682 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
6683 (alphanbsd-nat.o): Remove dependency list.
6684 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
6685 * alphanbsd-nat.c: Delete. Contents moved to...
6686 * alphanbsd-tdep.c: ...here.
6687 (_initialize_alphanbsd_tdep): Register core functions.
6688 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
6689
6690 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6691
6692 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
6693 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
6694 (alphanbsd-nat.o): Likewise.
6695 (alphabsd-tdep.o): New dependency list.
6696 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
6697 (fill_gregset): Use alphabsd_fill_reg.
6698 (supply_fpregset): Use alphabsd_supply_fpreg.
6699 (fill_fpregset): Use alphabsd_fill_fpreg.
6700 (fetch_inferior_registers): Use struct reg and struct fpreg
6701 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
6702 and alphabsd_supply_fpreg.
6703 (store_inferior_registers): Use struct reg and struct fpreg
6704 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
6705 and alphabsd_fill_fpreg.
6706 * alphabsd-tdep.c: New file.
6707 * alphabsd-tdep.h: New file.
6708 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
6709 (fetch_elfcore_registers): Use alphabsd_supply_reg and
6710 alphabsd_supply_fpreg.
6711 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
6712 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
6713
6714 2002-05-11 Eric Christopher <echristo@redhat.com>
6715
6716 * mips-tdep.c (mips_double_register_type): Fix thinko.
6717 (mips_single_register_type): Ditto.
6718 * MAINTAINERS: Add self.
6719
6720 2002-05-11 Mark Kettenis <kettenis@gnu.org>
6721
6722 * i387-nat.c (i387_supply_register, i387_fill_fsave,
6723 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
6724 right thing on architectures with different endianness and/or
6725 integer sizes.
6726
6727 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
6728
6729 From Christian Limpach <chris@Pin.LU>
6730 * configure.in: Change sed expression which comments out
6731 NATDEPFILES to also comment out continuation lines.
6732 * configure: Regenerate.
6733
6734 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
6735
6736 * sh-tdep.c: Clean up code erroneously reintroduced by previous
6737 big patch.
6738
6739 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
6740
6741 * sh-tdep.c: Include correct file.
6742
6743 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
6744
6745 New support for sh64-elf (sh5) target.
6746
6747 * configure.tgt: For sh64-elf target, default to sh-elf.
6748
6749 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
6750 (struct gdbarch_tdep): Add new fields for new registers and ABI
6751 info.
6752
6753 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
6754 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
6755 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
6756 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
6757 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
6758 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
6759 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
6760 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
6761 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
6762 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
6763 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
6764 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
6765 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
6766 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
6767 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
6768 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
6769 sh64_get_gdb_regnum, sh64_media_reg_base_num,
6770 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
6771 sign_extend, sh64_nofp_frame_init_saved_regs,
6772 sh64_init_extra_frame_info, sh64_get_saved_register,
6773 sh64_extract_struct_value_address, sh64_pop_frame,
6774 sh64_push_arguments, sh64_extract_return_value,
6775 sh64_store_return_value, sh64_show_media_regs,
6776 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
6777 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
6778 sh_sh64_register_virtual_type,
6779 sh_sh64_register_convert_to_virtual,
6780 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
6781 sh64_register_read, sh64_pseudo_register_write,
6782 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
6783 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
6784 sh64_do_pseudo_register, sh_compact_do_registers_info,
6785 sh64_do_registers_info, sh_gdbarch_init): New functions.
6786
6787 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
6788
6789 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
6790
6791 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
6792
6793 * linespec.c (decode_line_1): Check for a double quote after
6794 a filename correctly.
6795
6796 2002-05-10 Jim Blandy <jimb@redhat.com>
6797
6798 Properly track the size of the current objfile's .debug_line section.
6799 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
6800 (DWARF_LINE_SIZE): New macro.
6801 (dwarf2_build_psymtabs_hard): Record the line section's size in
6802 the partial symbol table.
6803 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
6804 symbol table.
6805
6806 2002-05-10 Petr Sorfa <petrs@caldera.com>
6807
6808 * ia64-tdep.c: Handle breakpoints on L instruction type
6809 in MLX instruction bundle by moving the breakpoint to
6810 the third slot (X instruction type) as L holds only data.
6811
6812 2002-05-10 Kevin Buettner <kevinb@redhat.com>
6813
6814 * dbxread.c (discarding_local_symbols_complaint): New complaint.
6815 (process_one_symbol): Complain about discarding local symbols
6816 due to a misplaced N_LBRAC entry.
6817
6818 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
6819
6820 From Daniel Berlin <dan@cgsoftware.com>
6821 * linespec.c (find_toplevel_char): '<' and '>' also increase and
6822 decrease the depth we are at, in the case of templates.
6823
6824 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
6825
6826 * mips-tdep.c (mips_float_register_type): New function.
6827 (mips_double_register_type): New function.
6828 (mips_print_register): Use them.
6829 (do_fp_register_row): Likewise.
6830
6831 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
6832
6833 * signals/signals.c (signals): Remove conditional compilation around
6834 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
6835 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
6836
6837 2002-05-09 Michael Snyder <msnyder@redhat.com>
6838
6839 * remote-rdp.c (remote_rdp_can_run): Remove.
6840
6841 2002-05-09 Tom Tromey <tromey@redhat.com>
6842
6843 * jv-valprint.c (java_val_print): Handle `char' as a special case
6844 of TYPE_CODE_INT.
6845
6846 2002-05-09 Michael Snyder <msnyder@redhat.com>
6847
6848 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
6849 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
6850 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
6851 str r(0123),[sp,#nn].
6852 (arm_skip_prologue): Ditto. Also make disassembly
6853 order-independent by placing it in a loop.
6854
6855 2002-05-06 Michael Snyder <msnyder@redhat.com>
6856
6857 * stabsread.c (read_type): Add recognition for new attribute:
6858 "@V;" means that an array type is actually a vector.
6859 This is analogous to the vector flag that's been added to dwarf2.
6860
6861 2002-05-09 Mark Kettenis <kettenis@gnu.org>
6862
6863 * i386-tdep.h (i386_abi): New enum.
6864 (struct gdbarch_tdep): Replace os_ident member with abi.
6865 (i386_gdbarch_register_os_abi): New prototype.
6866 * i386-tdep.c (i386_abi_names): New array.
6867 (process_note_abi_tag_sections): Removed.
6868 (process_note_sections): New function.
6869 (i386_elf_abi_from_note, i386_elf_abi): New functions.
6870 (struct i386_abi_handler): New struct.
6871 (i386_abi_handler_list): New variable.
6872 (i386_gdbarch_register_os_abi): New function.
6873 (i386_gdbarch_init): Adapt for the changes given above.
6874
6875 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
6876
6877 * gregset.h: Say "GNU/Linux".
6878
6879 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
6880
6881 * gdbtypes.c : Add new builtin type for 64 bit vectors.
6882 (build_gdbtypes): Build builtin_type_v2_float.
6883 (_initialize_gdbtypes): Register new builtin type.
6884
6885 2002-05-08 Andrew Cagney <ac131313@redhat.com>
6886
6887 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
6888 (clear_gdbarch_swap): New function.
6889 (initialize_non_multiarch): Call.
6890 (gdbarch_update_p): Before calling init(), swap out and clear the
6891 existing architecture.
6892 * gdbarch.c: Regenerate.
6893
6894 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6895
6896 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
6897 alphanbsd-tdep.c.
6898
6899 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6900
6901 * sh-nbsd-nat.c: Rename to...
6902 * shnbsd-nat.c: ...this.
6903 * sh-nbsd-tdep.c: Rename to...
6904 * shnbsd-tdep.c: ...this.
6905 * sh-nbsd-tdep.h: Rename to...
6906 * shnbsd-tdep.h: ...this.
6907 * config/sh/nbsd.mh: Use shnbsd-nat.o.
6908 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
6909
6910 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
6911
6912 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
6913 concatenation for command help messages.
6914
6915 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6916
6917 * NEWS: Note new sh*-*-netbsdelf* configuration.
6918 * configure.host: Set gdb_host_cpu to sh for all sh*.
6919 (sh*-*-netbsdelf*): New host.
6920 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
6921 (sh*-*-netbsdelf*): New target.
6922 * sh-nbsd-nat.c: New file.
6923 * sh-nbsd-tdep.c: New file.
6924 * sh-nbsd-tdep.h: New file.
6925 * config/sh/nbsd.mh: New file.
6926 * config/sh/nbsd.mt: New file.
6927 * config/sh/nm-nbsd.h: New file.
6928 * config/sh/tm-nbsd.h: New file.
6929
6930 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6931
6932 * sh-tdep.c (sh_osabi_names): Declare.
6933 (process_note_abi_tag_sections): New function.
6934 (get_elfosabi): Ditto.
6935 (sh_gdbarch_register_os_abi): Ditto.
6936 (sh_dump_tdep): Ditto.
6937 _initialize_sh_tdep): Use gdbarch_register to register
6938 sh_gdbarch_init and sh_dump_tdep.
6939 * config/sh/tm-sh.h (sh_osabi): Declare.
6940 (gdbarch_tdep): Add sh_osabi and osabi_name members.
6941
6942 2002-05-07 Andrew Cagney <ac131313@redhat.com>
6943
6944 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
6945 (thumb_scan_prologue): Ditto.
6946 (arm_find_callers_reg): Ditto.
6947 (arm_frame_chain): Ditto.
6948 (arm_init_extra_frame_info): Ditto.
6949 (arm_frame_saved_pc): Ditto.
6950 (arm_pop_frame): Ditto.
6951 (arm_push_return_address): New function.
6952 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
6953 call_dummy_location, call_dummy_breakpoint_offset_p,
6954 call_dummy_breakpoint_offset, call_dummy_p,
6955 call_dummy_stack_adjust_p, call_dummy_words,
6956 sizeof_call_dummy_words, call_dummy_start_offset,
6957 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
6958 call_dummy_address, push_return_address and push_dummy_frame for
6959 generic dummy frames.
6960
6961 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
6962
6963 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
6964 size computation for alloca.
6965 (sh_fp_frame_init_saved_regs): Likewise.
6966
6967 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
6968
6969 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
6970 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
6971 * arm-tdep.c (arm_store_return_value): Use them.
6972 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
6973 * remote-rdp.c (remote_rdp_fetch_register): Use
6974 ARM_MAX_REGISTER_RAW_SIZE.
6975 (remote_rdp_store_register): Likewise.
6976
6977 2002-05-07 Michal Ludvig <mludvig@suse.cz>
6978
6979 * dwarf2cfi.c: Code cleanup, removed unused variables,
6980 added default labels to switch {} statements.
6981 * x86-64-tdep.c: Ditto.
6982 * x86-64-linux-nat.c: Ditto.
6983
6984 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
6985
6986 * solib.h: Protect against multiple inclusion.
6987
6988 2002-05-06 Jim Blandy <jimb@redhat.com>
6989
6990 Add first preprocessor macro-expansion files.
6991 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
6992 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
6993 (splay_tree_h, macroexp_h, macrotab_h): New variable.
6994 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
6995 (COMMON_OBS): Add macrotab.o, macroexp.o.
6996 (macroexp.o, macrotab.o): New rules.
6997
6998 Separate the job of reading the line number info statement program
6999 header (...expialidocious) out into its own function.
7000 * dwarf2read.c (struct line_head, struct filenames, struct
7001 directories): Replace with...
7002 (struct line_header): New structure, containing the full
7003 contents of the statement program header, including the
7004 include directory and file name tables.
7005 (read_file_scope): If we have line number info, instead of just
7006 calling dwarf_decode_lines to do all the work, call
7007 dwarf_decode_line_header first to get a `struct line_header'
7008 containing the data in the statement program header, and then
7009 pass that to dwarf_decode_lines, which will pick up where that
7010 left off. Be sure to clean up the `struct line_header' object.
7011 (dwarf_decode_line_header, free_line_header, add_include_dir,
7012 add_file_name): New functions.
7013 (dwarf_decode_lines): Move all the code to read the statement
7014 program header into dwarf_decode_line_header. Take the line
7015 header it built as the first argument, instead of the offset to
7016 the compilation unit's line number info. Use the new `struct
7017 line_header' type instead of the old structures. No need to do
7018 cleanups here now, since we don't allocate anything.
7019 (dwarf2_statement_list_fits_in_line_number_section,
7020 dwarf2_line_header_too_long): New complaints.
7021
7022 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
7023
7024 * gdbtypes.c (init_vector_type): New function.
7025 (build_builtin_type_vec128): Simplify the representation of SIMD
7026 registers.
7027 (build_gdbtypes): Initialize new builtin vector types.
7028 (_initialize_gdbtypes): Register new vector types with gdbarch.
7029 (builtin_type_v4_float, builtin_type_v4_int32,
7030 builtin_type_v8_int16, builtin_type_v16_int8,
7031 builtin_type_v2_int32, builtin_type_v4_int16,
7032 builtin_type_v8_int8): New (renamed) SIMD types.
7033
7034 2002-05-06 Mark Kettenis <kettenis@gnu.org>
7035
7036 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
7037 (i387_fill_fxsave): Likewise.
7038
7039 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
7040
7041 * alpha-tdep.c (alpha_extract_return_value): Don't use
7042 non-constant array size in prototype.
7043
7044 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7045
7046 From Brian Taylor <briant at model dot com>:
7047 * ui-out.c (ui_out_field_core_addr): Use the function
7048 longest_local_hex_string_custom'to format addresses > 32 bits
7049 wide.
7050
7051 * ui-out.c (ui_out_field_core_addr): Update comment.
7052
7053 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7054
7055 * stack.c (select_and_print_frame): Make static. Delete the
7056 parameter `level'.
7057 (func_command): Update call.
7058 (select_frame_command): Delete code computing the frame level.
7059 * frame.h (select_and_print_frame): Delete declaration.
7060
7061 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7062
7063 * sparc-tdep.c (sparc_get_saved_register): Comment why
7064 get_prev_frame call is safe.
7065
7066 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7067
7068 * frame.h (select_frame): Delete level parameter.
7069 * stack.c (select_frame): Update. Use frame_relative_level to
7070 obtain the frame's level.
7071 (select_and_print_frame): Update call.
7072 (select_frame_command): Ditto.
7073 (up_silently_base): Ditto.
7074 (down_silently_base): Ditto.
7075 * ocd.c (ocd_start_remote): Ditto.
7076 * remote-rdp.c (remote_rdp_open): Ditto.
7077 * remote-mips.c (mips_initialize): Ditto.
7078 (common_open): Ditto.
7079 * remote-e7000.c (e7000_start_remote): Ditto.
7080 * m3-nat.c (select_thread): Ditto.
7081 * hppa-tdep.c (child_get_current_exception_event): Ditto.
7082 (child_get_current_exception_event): Ditto.
7083 * varobj.c (varobj_create): Ditto.
7084 (varobj_update): Ditto.
7085 (c_value_of_root): Ditto.
7086 * tracepoint.c (finish_tfind_command): Ditto.
7087 * corelow.c (core_open): Ditto.
7088 * arch-utils.c (generic_prepare_to_proceed): Ditto.
7089 * thread.c (info_threads_command): Ditto.
7090 (switch_to_thread): Ditto.
7091 * infrun.c (normal_stop): Ditto.
7092 (restore_selected_frame): Ditto.
7093 (restore_inferior_status): Ditto.
7094 * breakpoint.c (insert_breakpoints): Ditto.
7095 (watchpoint_check): Ditto.
7096 (bpstat_stop_status): Ditto.
7097 (do_enable_breakpoint): Ditto.
7098 * blockframe.c (flush_cached_frames): Ditto.
7099 (reinit_frame_cache): Ditto.
7100
7101 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7102
7103 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
7104 maintainer.
7105
7106 2002-05-04 Jim Blandy <jimb@redhat.com>
7107
7108 * gdbtypes.c (replace_type): Doc fix.
7109
7110 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7111
7112 * valprint.c (strcat_longest): Delete commented out function.
7113 Update copyright.
7114
7115 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7116
7117 * MAINTAINERS: Mark a29k as deleted.
7118 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
7119 Move new configurations to the top.
7120 * configure.tgt: Remove a29k.
7121 * config/a29k/tm-vx29k.h: Delete.
7122 * config/a29k/vx29k.mt: Delete.
7123 * config/a29k/tm-a29k.h: Delete.
7124 * config/a29k/a29k-udi.mt: Delete.
7125 * config/a29k/a29k.mt: Delete.
7126 * a29k-tdep.c: Delete.
7127 * remote-udi.c: Delete.
7128 * remote-mm.c: Delete.
7129 * remote-eb.c: Delete.
7130 * remote-adapt.c: Delete.
7131 * Makefile.in: Remove obsolete code.
7132 * config/s390/s390x.mt: Ditto.
7133 * config/s390/s390.mt: Ditto.
7134 * config/sparc/sparclynx.mh: Ditto.
7135 * config/sparc/linux.mh: Ditto.
7136 * config/pa/hppaosf.mh: Ditto.
7137 * config/pa/hppabsd.mh: Ditto.
7138 * config/ns32k/nbsd.mt: Ditto.
7139 * config/mips/vr5000.mt: Ditto.
7140 * config/m68k/sun3os4.mh: Ditto.
7141 * config/m68k/nbsd.mt: Ditto.
7142 * config/m68k/m68klynx.mh: Ditto.
7143 * config/m32r/m32r.mt: Ditto.
7144 * config/i386/x86-64linux.mt: Ditto.
7145 * config/i386/nbsdelf.mt: Ditto.
7146 * config/i386/nbsd.mt: Ditto.
7147 * config/i386/i386lynx.mh: Ditto.
7148
7149 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7150
7151 * target.c (debug_print_register): New function. Handle oversize
7152 registers.
7153 (debug_to_fetch_registers): Call.
7154 (debug_to_store_registers): Call.
7155
7156 2002-05-03 Jim Blandy <jimb@redhat.com>
7157
7158 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
7159 (read_type): Doc fix.
7160 * gdbtypes.c (replace_type): Doc fix.
7161
7162 * stabsread.c (multiply_defined_struct): New complaint.
7163 (read_struct_type): If the type we were passed isn't empty, or
7164 incomplete, don't read the new struct type into it; complain,
7165 and return the original type unchanged. Take a new `type_code'
7166 argument, which is the type code for the new type.
7167 (read_type): Rather than storing the type's type code here, pass
7168 it as an argument to read_struct_type, and let that take care of
7169 storing it. That way, we don't overwrite the original type code,
7170 so read_struct_type can use it to decide whether we're overwriting
7171 something we shouldn't.
7172 (complain_about_struct_wipeout): New function.
7173
7174 2002-05-03 Andrew Cagney <ac131313@redhat.com>
7175
7176 * gdbarch.sh: Assert that gdbarch is non-NULL.
7177 * gdbarch.c: Regenerate.
7178
7179 2002-05-03 Jason Merrill <jason@redhat.com>
7180
7181 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
7182 and return NULL.
7183
7184 2002-05-03 Michal Ludvig <mludvig@suse.cz>
7185
7186 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
7187 (x86_64_dwarf2gdb_regno_map_length),
7188 (x86_64_dwarf2_reg_to_regnum): Added.
7189 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
7190 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
7191 (_initialize_x86_64_tdep): Synced with the change above.
7192 (x86_64_skip_prologue): Reformulated message.
7193
7194 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
7195
7196 * f-exp.y: Also use new prev_lexptr variable
7197 to improve error reporting. Based on Michael Snyder
7198 2002-04-24 dated patch to c-exp.y.
7199 * jv-exp.y: Likewise.
7200 * m2-exp.y: Likewise.
7201
7202 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
7203
7204 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
7205 we are dealing with vectors.
7206
7207 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7208
7209 * config/m68k/tm-nbsd.h: Obvious fix,
7210 correct machine name.
7211
7212 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7213
7214 * p-typeprint.c (pascal_type_print_base): Add support
7215 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
7216
7217 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7218
7219 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
7220 for fondamental pascal 'char' type.
7221
7222 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7223
7224 * p-lang.h (is_pascal_string_type): Declaration changed,
7225 new sixth argument of type char ** added.
7226 * p-lang.c (is_pascal_string_type): Implementation
7227 changed. Args length_pos, length_size, string_pos, char_size
7228 can now be NULL. New argument arrayname set to the field
7229 name of the char array. Return value set to char array
7230 field index plus one.
7231 * p-valprint.c (pascal_val_print): Adapt to new declaration of
7232 is_pascal_string_type function.
7233
7234 2002-05-02 Andrew Cagney <cagney@redhat.com>
7235
7236 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
7237 <cagney@redhat.com> change.
7238 * gdbarch.c: Regenerate.
7239
7240 2002-05-02 Andrew Cagney <cagney@redhat.com>
7241
7242 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
7243 before probing for a new one. Detect errorenous gdbarch_init
7244 functions.
7245 * gdbarch.c: Regenerate.
7246
7247 2002-05-01 Andrew Cagney <cagney@redhat.com>
7248
7249 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
7250 * config/mcore/tm-mcore.h: Ditto. Update copyright.
7251 * config/v850/tm-v850.h: Ditto. Update copyright.
7252
7253 2002-04-30 Andrew Cagney <ac131313@redhat.com>
7254
7255 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
7256 current_gdbarch.
7257
7258 2002-04-30 Michael Snyder <msnyder@redhat.com>
7259
7260 * arm-tdep.c: Whitespace clean-ups.
7261 (arm_skip_prologue): Fix thinko; two lines
7262 should have been removed as part of 4/24 change.
7263
7264 2002-04-30 Kevin Buettner <kevinb@redhat.com>
7265
7266 * rs6000-tdep.c: Added comment describing how fpscr register
7267 numbers were chosen.
7268
7269 2002-04-30 Michael Snyder <msnyder@redhat.com>
7270
7271 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
7272
7273 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
7274
7275 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
7276 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
7277 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
7278
7279 2002-04-29 Kevin Buettner <kevinb@redhat.com>
7280
7281 From Louis Hamilton <hamilton@redhat.com>:
7282 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
7283 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
7284 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
7285 not bfd-private xcoff data, to determine wordsize.
7286 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
7287
7288 2002-04-29 Andrew Cagney <ac131313@redhat.com>
7289
7290 GDB 5.2 released from 5.2 branch.
7291
7292 2002-04-29 Michal Ludvig <mludvig@suse.cz>
7293
7294 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
7295 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
7296 (x86_64_register_info_table): Added comments with register numbers.
7297
7298 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
7299
7300 * rs6000-tdep.c (rs6000_extract_return_value,
7301 rs6000_store_return_value): Handle returning vectors.
7302 (rs6000_gdbarch_init): Use
7303 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
7304 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
7305 New function.
7306 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
7307 vectors.
7308 (ppc_sysv_abi_push_arguments): Handle vector parameters.
7309 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
7310
7311 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
7312
7313 * hpread.c (hpread_psymtab_to_symtab_1,
7314 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
7315 with fprintf_unfiltered (gdb_stderr,...).
7316
7317 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
7318
7319 * remote-array.c (printf_monitor, write_monitor,
7320 array_insert_breakpoint, array_remove_breakpoint ):
7321 Replace fprintf (stderr,...
7322 with fprintf_unfiltered (gdb_stderr,....
7323 * remote-es.c: Likewise.
7324 * remote-os9k.c: Likewise.
7325 * remote-st.c: Likewise.
7326
7327 2002-04-28 Andreas Schwab <schwab@suse.de>
7328
7329 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
7330 linux-proc.o and gcore.o.
7331
7332 2002-04-26 Michal Ludvig <mludvig@suse.cz>
7333
7334 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
7335 code without frame pointers.
7336
7337 2002-04-26 Andrew Cagney <ac131313@redhat.com>
7338
7339 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
7340 ON_STACK is needed.
7341
7342 2002-04-26 Ben Elliston <bje@redhat.com>
7343
7344 * target.c (do_xfer_memory): Correct reference to the new option
7345 "trust-readonly-sections".
7346
7347 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
7348
7349 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
7350 * gdbtypes.c (recursive_dump_type): Output the vector flag.
7351 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
7352 vectors.
7353 (read_array_type): Record the fact that this array type is really a
7354 vector (i.e. are passed in by value).
7355
7356 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
7357
7358 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
7359 * alpha-tdep.c (alpha_sigcontext_addr): New function.
7360 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
7361 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
7362 * alpha-linux-tdep.c: Include frame.h.
7363 (alpha_linux_sigcontext_addr): New function.
7364 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
7365 alpha_linux_sigcontext_addr.
7366 * alpha-osf1-tdep.c: Include gdbcore.h.
7367 (alpha_osf1_sigcontext_addr): New function.
7368 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
7369 alpha_osf1_sigcontext_addr.
7370 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
7371 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
7372
7373 2002-04-26 Andrew Cagney <ac131313@redhat.com>
7374
7375 * stack.c (selected_frame_level):
7376 (select_frame): Do not set selected_frame_level.
7377 * frame.h (selected_frame_level): Delete declaration.
7378
7379 2002-04-26 Andrew Cagney <ac131313@redhat.com>
7380
7381 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
7382 convert_from_func_ptr-addr when AIX / PowerOpen.
7383
7384 2002-04-25 Andrew Cagney <ac131313@redhat.com>
7385
7386 * valops.c (hand_function_call): Call
7387 generic_save_call_dummy_addr.
7388 * frame.h (generic_save_call_dummy_addr): Declare.
7389 * blockframe.c (struct dummy_frame): Add fields call_lo and
7390 call_hi.
7391 (generic_find_dummy_frame): Check for PC in range call_lo to
7392 call_hi instead of entry_point_address.
7393 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
7394 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
7395 (generic_save_call_dummy_addr): New function.
7396
7397 2002-04-24 David S. Miller <davem@redhat.com>
7398
7399 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
7400 sparc_skip_prologue.
7401 (sparc_skip_prologue): Kill frameless_p arg, and use line number
7402 information to find prologue when possible.
7403 (sparc_prologue_frameless_p): Call examine_prologue directly.
7404 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
7405 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
7406 second argument.
7407 (SKIP_PROLOGUE): Likewise.
7408
7409 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7410
7411 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
7412 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
7413 indicate that the condition it was testing is always true.
7414 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
7415 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
7416 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
7417
7418 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7419
7420 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
7421 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
7422 tdep->jb_pc and tdep->jb_elt_size.
7423 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
7424 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
7425 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
7426 * alpha-nat.c (get_longjmp_target): Remove.
7427 (JB_ELEMENT_SIZE): Ditto.
7428 (JB_PC): Ditto.
7429 * alpha-tdep.c (alpha_get_longjmp_target): New function.
7430 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
7431 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
7432 to alpha_get_longjmp_target.
7433 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
7434 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
7435 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
7436
7437 2002-04-25 Andrew Cagney <ac131313@redhat.com>
7438
7439 * README: Update to GDB 5.2.
7440
7441 2002-04-25 Andrew Cagney <ac131313@redhat.com>
7442
7443 * gdbarch.sh (LC_ALL): Set to `c'.
7444
7445 2002-04-25 Theodore A. Roth <troth@verinet.com>
7446
7447 * avr-tdep.c: Ran through gdb_indent.sh.
7448
7449 2002-04-25 Theodore A. Roth <troth@verinet.com>
7450
7451 * MAINTAINERS: Add myself as AVR maintainer.
7452 * NEWS: Note new target avr.
7453
7454 2002-04-25 Theodore A. Roth <troth@verinet.com>
7455
7456 * Makefile.in: Add support for AVR target.
7457 * configure.tgt: Add support for AVR target.
7458 * avr-tdep.c: New file
7459 * config/avr/avr.mt: New file.
7460
7461 2002-04-25 Theodore A. Roth <troth@verinet.com>
7462
7463 * MAINTAINERS: Add myself to write-after-approval.
7464
7465 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
7466
7467 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
7468 with fprintf_unfiltered (gdb_stderr,....
7469
7470 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
7471
7472 Fix PR gdb/508.
7473 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
7474
7475 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
7476
7477 * p-exp.y: Also use new prev_lexptr variable
7478 to improve error reporting. Based on Michael Snyder
7479 2002-04-24 dated patch to c-exp.y.
7480
7481 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7482
7483 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
7484 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
7485 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
7486 to 0.
7487 * config/alpha/tm-alpha.h: Remove forward decls of struct type
7488 and struct value.
7489 (FUNCTION_START_OFFSET): Remove.
7490 (BREAKPOINT): Ditto.
7491
7492 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7493
7494 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
7495 * NEWS: Ditto.
7496
7497 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7498
7499 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
7500 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
7501 alpha_linux_pc_in_sigtramp.
7502 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
7503 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
7504 alpha_osf1_pc_in_sigtramp.
7505 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
7506 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
7507 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
7508 alphafbsd_pc_in_sigtramp.
7509 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
7510 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
7511 alphanbsd_pc_in_sigtramp.
7512 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
7513 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
7514
7515 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7516
7517 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
7518
7519 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7520
7521 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
7522 alphanbsd-tdep.c.
7523 (alphanbsd-nat.o): New dependency list.
7524 (alphanbsd-tdep.o): Ditto.
7525 * NEWS: Note new native NetBSD/alpha configuration.
7526 * alphanbsd-nat.c: New file.
7527 * alphanbsd-tdep.c: Ditto.
7528 * configure.host (alpha*-*-netbsd*): New host.
7529 * configure.tgt (alpha*-*-netbsd*): New target.
7530 * config/alpha/nbsd.mh: New file.
7531 * config/alpha/nbsd.mt: Ditto.
7532 * config/alpha/nm-nbsd.h: Ditto.
7533 * config/alpha/tm-nbsd.h: Ditto.
7534
7535 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7536
7537 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
7538 (alpha-osf1-tdep.o): New dependency list.
7539 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
7540 and skip_sigtramp_frame members.
7541 * alpha-linux-tdep.c: Include gdbcore.h.
7542 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
7543 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
7544 * alpha-osf1-tdep.c: New file.
7545 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
7546 alpha-osf1-dep.c.
7547 (alpha_frame_past_sigtramp_frame): New function.
7548 (alpha_dynamic_sigtramp_offset): Ditto.
7549 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
7550 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
7551 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
7552 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
7553 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
7554 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
7555 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
7556 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
7557 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
7558 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
7559 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
7560 to find_solib_trampoline_target.
7561 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
7562 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
7563 (SKIP_TRAMPOLINE_CODE): Remove.
7564 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7565 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7566 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
7567 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
7568 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
7569 (PROC_SIGTRAMP_MAGIC): Ditto.
7570 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7571 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7572 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7573 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
7574 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
7575
7576 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7577
7578 * NEWS: Note that Alpha targets are now multi-arch.
7579
7580 2002-04-24 Michael Snyder <msnyder@redhat.com>
7581
7582 * parser-defs.h (prev_lexptr): New external variable.
7583 * parse.c (parse_exp_1): Set prev_lexptr to null before
7584 calling the language-specific parser.
7585 * c-exp.y (yylex): Set prev_lexptr to start of current token.
7586 (yyerror): Use prev_lexptr in error reporting.
7587
7588 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
7589
7590 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
7591 * gregset.h: If FILL_FPXREGSET is defined, provide
7592 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
7593 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
7594 is defined, call fill_fpxregset.
7595
7596 2002-04-24 Roland McGrath <roland@frob.com>
7597
7598 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
7599 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
7600 (supply_gregset, supply_fpregset): New functions.
7601
7602 * gnu-nat.c (gnu_find_memory_regions): New function.
7603 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
7604 (gnu_xfer_memory): Add a cast.
7605
7606 2002-04-24 Michael Snyder <msnyder@redhat.com>
7607
7608 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
7609 loop. Add handling for "str lr, [sp, #-4]!" and for saves
7610 of argument regs ("str r(0123), [r11, #-nn"]).
7611 (arm_skip_prologue): Better handling for frameless functions.
7612 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
7613 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
7614
7615 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
7616
7617 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
7618 NUM_PSEUDO_REGS can be used.
7619
7620 2002-04-24 Andrew Cagney <ac131313@redhat.com>
7621
7622 * arch-utils.h: Update copyright.
7623
7624 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
7625 * gdbarch.h, gdbarch.c: Re-generate.
7626
7627 * inferior.h (IN_SIGTRAMP): Delete definition.
7628 * arch-utils.c (legacy_pc_in_sigtramp): New function.
7629 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
7630
7631 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
7632 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
7633 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
7634 (find_proc_framesize): Ditto.
7635 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
7636 (alpha_init_extra_frame_info): Ditto.
7637 * infrun.c (handle_inferior_event): Ditto.
7638 (handle_inferior_event): Ditto.
7639 (check_sigtramp2): Ditto.
7640 * blockframe.c (create_new_frame): Ditto.
7641 (get_prev_frame): Ditto.
7642 * ppc-linux-tdep.c: Update comments.
7643 * i386-linux-tdep.c: Update comments.
7644 * breakpoint.c (bpstat_what): Update comment.
7645
7646 2002-04-24 David S. Miller <davem@redhat.com>
7647
7648 * i960-tdep.c (register_in_window_p): New function.
7649 (i960_find_saved_register): Use it instead of
7650 REGISTER_IN_WINDOW_P.
7651 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
7652
7653 * symtab.h (find_stab_function_addr): Kill extern.
7654 * minsyms.c (find_stab_function_addr): Remove from here...
7655 * dbxread.c: ... to here, and mark it static.
7656
7657 2002-04-20 David S. Miller <davem@redhat.com>
7658
7659 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
7660 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
7661
7662 2002-04-21 David S. Miller <davem@redhat.com>
7663
7664 * remote-vxsparc.c (vx_read_register): Fix typo, we want
7665 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
7666 (vx_write_register): Likewise.
7667
7668 2002-04-23 J. Brobecker <brobecker@gnat.com>
7669
7670 * source.c (is_regular_file): New function.
7671 (openp): Check wether file to open is a regular file
7672 to avoid opening directories.
7673
7674 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7675
7676 * findvar.c (extract_signed_integer): Cast printf argument
7677 to suppress format warning.
7678 (extract_unsigned_integer): Likewise.
7679 * infcmd.c (registers_info): Likewise.
7680 * top.c (get_prompt_1): Likewise.
7681 * valops.c (value_assign): Likewise.
7682 * valprint.c (print_decimal): Likewise.
7683
7684 2002-04-22 H.J. Lu (hjl@gnu.org)
7685
7686 * c-exp.y (typebase): Support
7687
7688 [long|long long|short] [signed|unsigned] [int|]
7689
7690 and
7691
7692 signed [long|long long|short] int
7693
7694 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7695
7696 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
7697 and vax-tdep.h.
7698 * vax-tdep.h: New file.
7699 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
7700 Make several routines static.
7701 (vax_get_saved_register): New function.
7702 (vax_gdbarch_init): New function.
7703 (_initialize_vax_tdep): Register vax_gdbarch_init.
7704 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
7705 Remove macros now under the control of gdbarch.
7706
7707 2002-04-22 Michael Snyder <msnyder@redhat.com>
7708
7709 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
7710 Some whitespace and coding standards tweaks.
7711
7712 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7713
7714 * vax-tdep.c: Include regcache.h.
7715 (vax_call_dummy_words): New.
7716 (sizeof_vax_call_dummy_words): New.
7717 (vax_fix_call_dummy): New function.
7718 (vax_saved_pc_after_call): Ditto.
7719 * config/vax/tm-vax.h: Don't include regcache.h.
7720 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
7721 (CALL_DUMMY): Remove.
7722 (CALL_DUMMY_WORDS): Define.
7723 (SIZEOF_CALL_DUMMY_WORDS): Define.
7724 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
7725
7726 2002-04-18 Michael Snyder <msnyder@redhat.com>
7727
7728 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
7729
7730 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7731
7732 * vax-tdep.c (vax_frame_chain): New function.
7733 (vax_push_dummy_frame): Ditto.
7734 (vax_pop_frame): Ditto.
7735 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
7736 (FRAMELESS_FUNCTION_INVOCATION): Use
7737 generic_frameless_function_invocation_not.
7738 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
7739 (POP_FRAME): Use vax_pop_frame.
7740
7741 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7742
7743 * vax-tdep.c (vax_store_struct_return): New function.
7744 (vax_extract_return_value): Ditto.
7745 (vax_store_return_value): Ditto.
7746 (vax_extract_struct_value_address): Ditto.
7747 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
7748 vax_store_struct_return.
7749 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
7750 (STORE_RETURN_VALUE): Use vax_store_return_value.
7751 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
7752
7753 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7754
7755 * vax-tdep.c (vax_frame_saved_pc): New function.
7756 (vax_frame_args_address_correct): Ditto.
7757 (vax_frame_args_address): Ditto.
7758 (vax_frame_locals_address): Ditto.
7759 (vax_frame_num_args): Move code to be in proximity to
7760 other frame-related functions.
7761 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
7762 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
7763 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
7764 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
7765 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
7766
7767 2002-04-22 H.J. Lu (hjl@gnu.org)
7768
7769 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
7770 includedir.
7771
7772 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7773
7774 * vax-tdep.c (vax_frame_init_saved_regs): New function.
7775 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
7776 (FRAME_INIT_SAVED_REGS): New macro.
7777
7778 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7779
7780 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
7781
7782 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7783
7784 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
7785 where needed.
7786 (fetch_osf_core_registers): Likewise.
7787 (supply_gregset): Likewise.
7788
7789 2002-04-22 J. Brobecker <brobecker@gnat.com>
7790
7791 * symfile.h (get_section_index): Define.
7792 * symfile.c (get_section_index): New function.
7793 * mdebugread.c (SC_IS_SBSS): New macro.
7794 (SC_IS_BSS): Return true for the scBss storage class only, as
7795 the scSBss storage class refers to the .sbss section.
7796 (parse_partial_symbols): Discard the symbols which associated
7797 section does not exist.
7798 Make sure to use the .sbss section index for symbols which
7799 storage class is scBss, rather than using the .bss section index.
7800
7801 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7802
7803 * vax-tdep.c: Update copyright years.
7804 (vax_register_name): New function.
7805 (vax_register_byte): Ditto.
7806 (vax_register_raw_size): Ditto.
7807 (vax_register_virtual_size): Ditto.
7808 (vax_register_virtual_type): Ditto.
7809 * config/vax/tm-vax.h: Update copyright years.
7810 (REGISTER_NAMES): Remove.
7811 (REGISTER_NAME): Define.
7812 (REGISTER_BYTE): Use vax_register_byte.
7813 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
7814 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
7815 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
7816
7817 2002-04-21 Andrew Cagney <ac131313@redhat.com>
7818
7819 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
7820 declaration
7821 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
7822
7823 2002-04-21 David S. Miller <davem@redhat.com>
7824
7825 * arch-utils.c (generic_prologue_frameless_p): Kill
7826 SKIP_PROLOGUE_FRAMELESS_P code.
7827 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
7828 references.
7829 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
7830 * arc-tdep.c (arc_prologue_frameless_p): Implement.
7831 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
7832 references.
7833 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
7834 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
7835 (sparc_gdbarch_init): Pass it to
7836 set_gdbarch_prologue_frameless_p.
7837
7838 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7839
7840 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
7841 (alphabsd-nat.o): New dependency list.
7842
7843 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7844
7845 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
7846 alphafbsd-tdep.c.
7847 (alpha-linux-tdep.o): New dependency list.
7848 (alphafbsd-tdep.o): Likewise.
7849
7850 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7851
7852 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
7853 to here...
7854 * alpha-tdep.c: ...from here.
7855 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
7856
7857 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7858
7859 * config/alpha/tm-alpha.h: Move alpha_software_single_step
7860 prototype from here...
7861 * alpha-tdep.h: ...to here.
7862
7863 2002-04-21 Andrew Cagney <ac131313@redhat.com>
7864
7865 * frame.h (selected_frame_level): Document as deprecated.
7866 (frame_relative_level): Declare.
7867 * stack.c (frame_relative_level): New function.
7868 (selected_frame_level): Document as deprecated.
7869 (select_frame): Do not set the selected_frame_level.
7870
7871 * stack.c (frame_info, record_selected_frame): Update.
7872 (frame_command, current_frame_command): Update.
7873 (up_silently_base, up_command, down_silently_base): Update.
7874 (down_command): Update.
7875 * inflow.c (kill_command): Update.
7876 * tracepoint.c (finish_tfind_command): Update.
7877 * corelow.c (core_open): Update.
7878 * thread.c (info_threads_command): Update.
7879 (do_captured_thread_select): Update.
7880 * infcmd.c (finish_command): Update.
7881 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
7882
7883 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7884
7885 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
7886
7887 2002-04-21 Andrew Cagney <ac131313@redhat.com>
7888
7889 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
7890 type const.
7891
7892 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7893
7894 * alphafbsd-tdep.c: Update copyright years. Include
7895 alpha-tdep.h.
7896 (alphafbsd_use_struct_convention): Make static.
7897 (alphafbsd_init_abi): New function.
7898 (_initialize_alphafbsd_tdep): New function.
7899 * config/alpha/tm-fbsd.h: Update copyright years.
7900 (USE_STRUCT_CONVENTION): Remove.
7901
7902 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7903
7904 * alpha-tdep.c (alpha_abi_handler): New structure to describe
7905 an Alpha ABI variant.
7906 (alpha_abi_handler_list): Declare.
7907 (alpha_gdbarch_register_os_abi): New function.
7908 (alpha_gdbarch_init): Give registered ABI variant handlers a
7909 chance to tweak the gdbarch once we have set up defaults.
7910 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
7911
7912 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7913
7914 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
7915 to standard_coerce_float_to_double.
7916 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
7917
7918 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7919
7920 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
7921 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
7922 from gdbarch_tdep rather than a constant.
7923 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
7924 the default text address for all Alpha Unix ABIs.
7925 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
7926 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
7927
7928 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7929
7930 * alpha-tdep.h: New file. Includes several Alpha target constants
7931 taken from...
7932 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
7933 let gdbarch deal with.
7934 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
7935 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
7936 to dependency list.
7937 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
7938 Alpha target register names.
7939 * alphabsd-nat.c: Likewise.
7940 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
7941 Alpha target register names. Make serveral routines static.
7942 (alpha_get_saved_register): New function.
7943 (alpha_abi_names): New.
7944 (process_note_abi_tag_sections): New function.
7945 (get_elfosabi): New function.
7946 (alpha_gdbarch_init): New function.
7947 (alpha_dump_tdep): New function.
7948 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
7949
7950 2002-04-21 Andrew Cagney <ac131313@redhat.com>
7951
7952 * frame.c (find_saved_register): Delete #ifdef
7953 HAVE_REGISTER_WINDOWS code.
7954 * config/sparc/tm-sparc.h: Update comments.
7955 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
7956
7957 2002-04-21 Andrew Cagney <ac131313@redhat.com>
7958
7959 * i960-tdep.c (i960_find_saved_register): New function.
7960 (i960_get_saved_register): New function.
7961 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
7962 (i960_get_saved_register): Declare.
7963 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
7964
7965 2002-04-20 David S. Miller <davem@redhat.com>
7966
7967 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
7968
7969 2002-04-20 Andrew Cagney <ac131313@redhat.com>
7970
7971 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
7972 instead of NUM_PSEUDO_REGS.
7973
7974 2002-04-20 David S. Miller <davem@redhat.com>
7975
7976 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
7977 GDB_MULTI_ARCH_PARTIAL
7978 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
7979 define, let tm-sp64.h do it.
7980
7981 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
7982
7983 * frame.c (find_saved_register): Avoid a NULL pointer
7984 dereference and actually walk the frame list.
7985
7986 2002-04-20 Andrew Cagney <ac131313@redhat.com>
7987
7988 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
7989 sorted in most most-recent-used order. Document.
7990 * gdbarch.h, gdbarch.c: Regenerate.
7991
7992 2002-04-19 Andrew Cagney <ac131313@redhat.com>
7993
7994 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
7995 instead of ->prev.
7996 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
7997 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
7998 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
7999 instead of ->prev.
8000
8001 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
8002
8003 Fix PR gdb/471.
8004 * gdbtypes.c (init_simd_type): Rewrite using new functions.
8005 (build_builtin_type_vec128): Ditto.
8006 (append_composite_type_field): Fix calculation of type length in
8007 union case.
8008
8009 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
8010
8011 * config/djgpp/README: Update.
8012
8013 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
8014 compiler warnings.
8015
8016 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
8017
8018 * alpha-tdep.c (setup_arbitrary_frame): Rename...
8019 (alpha_setup_arbitrary_frame): ...to this.
8020 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
8021 for alpha_setup_arbitrary_frame.
8022
8023 2002-04-18 Andrew Cagney <cagney@redhat.com>
8024
8025 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
8026 * gdbarch.h, gdbarch.c: Regenerate.
8027
8028 * defs.h (breakpoint_from_pc_fn): Delete type definition.
8029 * target.h (memory_breakpoint_from_pc): Update declaration.
8030 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
8031
8032 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
8033 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
8034 * mem-break.c (memory_breakpoint_from_pc): Ditto.
8035 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
8036 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
8037 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
8038 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
8039 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
8040 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
8041 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
8042 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
8043 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
8044
8045 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
8046 const pointer.
8047 * monitor.c (monitor_insert_breakpoint): Ditto.
8048 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
8049
8050 * config/mcore/tm-mcore.h: Update copyright.
8051 * mem-break.c: Ditto.
8052 * xstormy16-tdep.c: Ditto.
8053
8054 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
8055
8056 * p-exp.y: Add precedence rule for '^' token.
8057 This removes the shift/reduce conflicts.
8058 Remove the comment concerning these shift/reduce conflicts.
8059
8060 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
8061
8062 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
8063 (registers_powerpc_nofp): New register set for processors
8064 without floating point unit.
8065
8066 2002-04-18 David S. Miller <davem@redhat.com>
8067
8068 * MAINTAINERS: Add myself to write-after-approval.
8069
8070 2002-04-17 Michael Snyder <msnyder@redhat.com>
8071
8072 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
8073
8074 2002-04-17 Andrew Cagney <ac131313@redhat.com>
8075
8076 * rs6000-tdep.c (frame_initial_stack_address): Use
8077 frame_register_read to read the alloca_reg.
8078
8079 2002-04-17 Andrew Cagney <ac131313@redhat.com>
8080
8081 * frame.c (find_saved_register): Find saved registers in the next
8082 not prev frame.
8083 Fix PR gdb/365.
8084
8085 2002-04-17 Andrew Cagney <ac131313@redhat.com>
8086
8087 * gdbarch.sh (LANG): Set to ``c''.
8088
8089 2002-04-15 Andrew Cagney <ac131313@redhat.com>
8090
8091 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
8092
8093 2002-04-15 Andrew Cagney <ac131313@redhat.com>
8094
8095 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
8096 Update copyright.
8097
8098 * hpread.c (hpread_get_lntt): Add declaration.
8099 Also fix PR gdb/391.
8100
8101 2002-04-14 Andrew Cagney <ac131313@redhat.com>
8102
8103 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
8104 * aclocal.m4, configure: Re-generate.
8105 Fix PR gdb/391.
8106
8107 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
8108
8109 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
8110 instead of tm_print_insn.
8111
8112 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
8113
8114 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
8115
8116 2002-04-14 Andrew Cagney <ac131313@redhat.com>
8117
8118 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
8119 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
8120 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
8121
8122 2002-04-12 Don Howard <dhoward@redhat.com>
8123
8124 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
8125 max_user_call_depth.
8126 (init_cmd_lists): Initialize the new value;
8127 * cli/cli-script.c (execute_user_command): Limit the call depth of
8128 user defined commands. This avoids a core-dump when user commands
8129 are infinitly recursive.
8130
8131 2002-04-12 Kevin Buettner <kevinb@redhat.com>
8132
8133 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
8134 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
8135 from tdep struct instead of DEFAULT_LR_SAVE.
8136 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
8137 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
8138 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
8139
8140 2002-04-12 Michael Snyder <msnyder@redhat.com>
8141
8142 * Remote.c: Spelling fix.
8143 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
8144 If no symbol found for "sbrk", try "_sbrk".
8145 (make_output_phdrs): Use bfd_section_name.
8146 (gcore_copy_callback): Use bfd_section_name.
8147 * eval.c: Indentation fix-ups.
8148 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
8149 in case it gets applied to an address that is already
8150 in the instruction space.
8151 * cli/cli-decode.c (help_list): Allow long lines to wrap.
8152 * symfile.c: Fix indentation, long lines.
8153 * source.c: White space fix-up.
8154
8155 2002-04-12 Andrew Cagney <cagney@redhat.com>
8156
8157 * defs.h (read_relative_register_raw_bytes): Delete declaration.
8158 * frame.c (frame_register_read): New function. Return non-zero on
8159 success.
8160 (read_relative_register_raw_bytes_for_frame): Delete.
8161 (read_relative_register_raw_bytes): Delete.
8162 * frame.h (frame_register_read): Declare.
8163 * d30v-tdep.c: Update Copyright. Use frame_register_read.
8164 * sh-tdep.c: Ditto.
8165 * infcmd.c (do_registers_info): Ditto.
8166 * hppa-tdep.c: Ditto.
8167 * rs6000-tdep.c: Ditto.
8168 * h8500-tdep.c: Ditto.
8169 * mips-tdep.c: Ditto.
8170 * h8300-tdep.c: Ditto.
8171 * z8k-tdep.c: Ditto.
8172
8173 2002-04-12 Kevin Buettner <kevinb@redhat.com>
8174
8175 From Jimi X <jimix@watson.ibm.com>:
8176 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
8177 64-bit SysV ABI.
8178
8179 2002-04-12 Kevin Buettner <kevinb@redhat.com>
8180
8181 From Jimi X <jimix@watson.ibm.com>:
8182 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
8183 bfd info.
8184
8185 2002-04-12 Kevin Buettner <kevinb@redhat.com>
8186
8187 From Jimi X <jimix@watson.ibm.com>:
8188 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
8189 register sets for these processor variants.
8190
8191 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
8192
8193 * regformats/reg-ppc.dat: Support FPSCR.
8194
8195 2002-04-11 Kevin Buettner <kevinb@redhat.com>
8196
8197 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
8198 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
8199 Add fpscr as an invalid/unfetchable register.
8200 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
8201 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
8202 (fill_fpregset): Add support for register fpscr.
8203 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
8204 (fill_gregset): Account for the fact that register ``mq'' might
8205 not exist.
8206 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
8207 (registers_power): Add fpscr to register set at slot 71.
8208 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
8209 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
8210
8211 2002-04-11 Michael Snyder <msnyder@redhat.com>
8212
8213 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
8214 * configure: Regenerate.
8215 * config.in: Regenerate.
8216 * acconfig.h: Add define for _SYSCALL32.
8217 * core-sol2.c: Remove #define _SYSCALL32.
8218 * solib-legacy.c: Remove #define _SYSCALL32.
8219
8220 2002-04-10 Andrew Cagney <ac131313@redhat.com>
8221
8222 * stack.c (select_frame): Cleanup internal error message, do not
8223 use %p.
8224
8225 2002-04-10 Andrew Cagney <ac131313@redhat.com>
8226
8227 * stack.c (select_frame): Check that selected_frame and the
8228 specified level are as expected.
8229 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
8230 Update copyright.
8231 * frame.h (struct frame_info): Add field `level'. Update
8232 copyright.
8233 Work-in-progress PR gdb/464.
8234
8235 2002-04-10 Andrew Cagney <ac131313@redhat.com>
8236
8237 * maint.c (maint_print_section_info): Rename print_section_info.
8238 (print_bfd_section_info, print_objfile_section_info): Update.
8239 * inferior.h (struct gdbarch): Add opaque declaration.
8240 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
8241 * gdbarch.h: Regenerate.
8242
8243 2002-04-10 Michal Ludvig <mludvig@suse.cz>
8244
8245 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
8246 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
8247 (kernel_u_size): Added.
8248 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
8249 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
8250
8251 2002-04-04 Jim Ingham <jingham@apple.com>
8252
8253 * valarith.c (find_size_for_pointer_math): New function, either returns
8254 the size for a pointer's target, returns 1 for void *, or errors for
8255 incomplete types.
8256 (value_add, value_sub): use find_size_for_pointer_math.
8257
8258 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
8259
8260 * linux-low.c (linux_look_up_symbols): New hook.
8261 (linux_target_ops): Add linux_look_up_symbols.
8262 * remote-utils.c (decode_address): New function.
8263 (look_up_one_symbol): New function.
8264 * server.c (handle_query): Call target look_up_symbols hook.
8265 * server.h (look_up_one_symbol): Add prototype.
8266 * target.h (struct target_ops): Add look_up_symbols hook.
8267
8268 2002-04-09 Andrew Cagney <ac131313@redhat.com>
8269
8270 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
8271 override FP_REGNUM with frame->fp. Update copyright.
8272 * parse.c (num_std_regs, std_regs): Delete.
8273 (target_map_name_to_register): Do not search std_regs. Update
8274 function description.
8275 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
8276 declarations. Update copyright.
8277 Fix PR gdb/251.
8278
8279 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
8280
8281 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
8282 after the last symbol in a block.
8283
8284 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
8285
8286 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
8287 is non zero as a found symbol.
8288
8289 2002-04-08 Andrew Cagney <ac131313@redhat.com>
8290
8291 * findvar.c: Include "builtin-regs.h".
8292 (value_of_register): Call value_of_builtin_reg when applicable.
8293 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
8294 (target_map_name_to_register): Call
8295 builtin_reg_map_name_to_regnum.
8296 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
8297 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
8298 (builtin_regs_h): Define.
8299 (builtin-regs.o): New target.
8300 (findvar.o): Add $(builtin_regs_h).
8301 * builtin-regs.c, builtin-regs.h: New files.
8302 * std-regs.c: New file.
8303 Partial fix for PR gdb/251.
8304
8305 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8306
8307 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
8308 it's no longer required.
8309
8310 2002-04-08 Andrew Cagney <ac131313@redhat.com>
8311
8312 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
8313
8314 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8315
8316 From Jimi X <jimix@watson.ibm.com>:
8317 * rs6000-tdep.c (rs6000_software_single_step): Use
8318 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
8319 and size. Use target_insert_breakpoint() and
8320 target_remove_breakpoint() to insert and remove breakpoints
8321 instead of explicit memory reads and writes.
8322
8323 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8324
8325 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
8326 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
8327 ELF_OBJECT_FORMAT ifdef.
8328
8329 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8330
8331 From Jimi X <jimix@watson.ibm.com>:
8332 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
8333
8334 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8335
8336 From Jimi X <jimix@watson.ibm.com>:
8337 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
8338 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
8339
8340 2002-04-07 Mark Kettenis <kettenis@gnu.org>
8341
8342 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
8343 s/asprintf/xasprintf/.
8344 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
8345
8346 2002-04-07 Andrew Cagney <ac131313@redhat.com>
8347
8348 I believe Jeff Law denies responsability for this one:
8349 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
8350 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
8351 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
8352 Work-around for PR gdb/366.
8353
8354 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
8355
8356 * remote-e7000.c (write_small, e7000_read_inferior_memory,
8357 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
8358 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
8359
8360 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
8361
8362 * sh-tdep.c (sh_fp_frame_init_saved_regs,
8363 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
8364 information.
8365
8366 2002-04-07 Andrew Cagney <ac131313@redhat.com>
8367
8368 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
8369 maintainer.
8370
8371 2002-04-07 Andrew Cagney <ac131313@redhat.com>
8372
8373 * README (Reporting Bugs in GDB): Document the bug web page as the
8374 prefered way of submitting bugs.
8375 Fix PR gdb/402.
8376
8377 2002-04-06 Andrew Cagney <ac131313@redhat.com>
8378
8379 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
8380 -1. Update comment.
8381 * gdbarch.h, gdbarch.c: Re-generate.
8382
8383 2002-04-07 Andreas Schwab <schwab@suse.de>
8384
8385 * m68klinux-nat.c (fill_fpregset): Properly pass address of
8386 buffer to regcache_collect.
8387
8388 2002-04-06 Andrew Cagney <ac131313@redhat.com>
8389
8390 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
8391 * gdbarch.c, gdbarch.h: Re-generate.
8392
8393 2002-04-06 Andrew Cagney <ac131313@redhat.com>
8394
8395 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
8396 declaration. Fix -Werror.
8397
8398 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
8399
8400 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
8401 * gdbarch.c: Regenerate.
8402
8403 2002-04-05 Michael Snyder <msnyder@redhat.com>
8404
8405 * breakpoint.c (clear_command): Rewrite middle section to
8406 combine two loops with identical control conditions.
8407 Add a cleanup to eliminate a memory leak.
8408 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
8409
8410 2002-04-05 H.J. Lu (hjl@gnu.org)
8411
8412 * solib-svr4.c (bkpt_names): Add "__start".
8413
8414 2002-04-04 Andrew Cagney <ac131313@redhat.com>
8415
8416 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
8417 as test for 64 bit target.
8418
8419 2002-04-05 Andrew Cagney <ac131313@redhat.com>
8420
8421 * h8500-tdep.c (h8500_write_fp): Delete function.
8422 * dwarf2cfi.c (cfi_write_fp): Document as not used.
8423 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
8424 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
8425 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
8426 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
8427 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
8428 (s390_write_fp):
8429 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
8430 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
8431 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
8432 (d10v_write_fp): Delete function.
8433 * inferior.h (write_fp, generic_target_write_fp): Delete
8434 declarations.
8435 * regcache.c (generic_target_write_fp): Delete function.
8436 (write_fp): Delete function.
8437 * gdbarch.sh (TARGET_WRITE_FP): Delete.
8438 * gdbarch.h, gdbarch.c: Regenerate.
8439 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
8440 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
8441 (sparc64_write_fp): Delete declaration.
8442 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
8443 (h8500_write_fp): Delete declaration.
8444
8445 2002-04-04 Andrew Cagney <ac131313@redhat.com>
8446
8447 * sparc-tdep.c (sparc64_write_fp): Delete.
8448 (sparc_push_dummy_frame): Replace write_fp call with code to store
8449 the FP directly.
8450 (sparc_gdbarch_init): Do not initialize write_fp.
8451
8452 2002-04-05 Kevin Buettner <kevinb@redhat.com>
8453
8454 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
8455 clause.
8456
8457 2002-03-29 Jim Blandy <jimb@redhat.com>
8458
8459 * stack.c (get_selected_block): Add new argument `addr_in_block',
8460 used to return the exact code address we used to select the block,
8461 not just the block.
8462 * blockframe.c (get_frame_block, get_current_block): Same.
8463 * frame.h (get_frame_block, get_current_block,
8464 get_selected_block): Update declarations.
8465 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
8466 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
8467
8468 2002-04-05 Michael Snyder <msnyder@redhat.com>
8469
8470 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
8471 warning message.
8472
8473 2002-04-05 J. Brobecker <brobecker@gnat.com>
8474
8475 * utils.c (xfullpath): New function.
8476 * defs.h (xfullpath): Add declaration.
8477 * source.c (openp): Use xfullpath in place of gdb_realpath to
8478 avoid resolving the basename part of filenames when the
8479 associated file is a symbolic link. This fixes a potential
8480 inconsistency between the filenames known to GDB and the
8481 filenames it prints in the annotations.
8482 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
8483 to be able to match a filename with either the real filename, or
8484 the name of any symbolic link to this file.
8485 (lookup_partial_symtab): Ditto.
8486
8487 2002-04-04 Michael Snyder <msnyder@redhat.com>
8488
8489 * breakpoint.c: Add support for hardware breakpoints in overlays.
8490 (overlay_events_enabled): New state variable.
8491 (insert_breakpoints): Use overlay_events_enabled to decide
8492 whether to attempt to set a breakpoint at the overlay load addr.
8493 Handle bp_hardware_breakpoint as well as bp_breakpoint.
8494 (remove_breakpoint): Use overlay_events_enabled to decide
8495 whether breakpoints need to be removed from overlay load addr.
8496 Handle bp_hardware_breakpoint as well as bp_breakpoint.
8497 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
8498 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
8499 disable_overlay_breakpoints): Update overlay_events_enabled.
8500
8501 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
8502
8503 * dwarf2read.c (struct function_range): New.
8504 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
8505 (check_cu_functions): New.
8506 (read_file_scope): Initialize global function lists.
8507 Call dwarf_decode_line after processing children.
8508 (read_func_scope): Add to global function list.
8509 (dwarf_decode_lines): Call check_cu_functions everywhere
8510 record_line is called. Call record_line with a linenumber
8511 of 0 to mark sequence ends.
8512
8513 2002-04-04 Michal Ludvig <mludvig@suse.cz>
8514
8515 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
8516 change sync with glibc.
8517
8518 2002-04-03 Jim Blandy <jimb@redhat.com>
8519
8520 * configure.in: Call AC_C_INLINE.
8521 * configure: Regenerated.
8522
8523 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
8524
8525 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
8526 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
8527
8528 2002-03-31 Mark Kettenis <kettenis@gnu.org>
8529
8530 * NEWS: Mention gcore support on FreeBSD/i386.
8531
8532 * fbsd-proc.c: New file.
8533 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
8534 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
8535
8536 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
8537 while statement.
8538
8539 2002-03-29 Jim Blandy <jimb@redhat.com>
8540
8541 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
8542 unescaped newlines in string literals, but newer ones don't. So
8543 escape them.
8544
8545 2002-03-26 Michael Snyder <msnyder@redhat.com>
8546 Andrew Cagney <cagney@redhat.com>
8547
8548 * cli/cli-dump.c: New file. Dump memory to file,
8549 restore file to memory.
8550 * cli/cli-dump.h: New file.
8551 * Makefile.in: Add rules, dependencies for cli-dump.o.
8552 * NEWS: Mention new commands.
8553
8554 2002-03-28 Michael Snyder <msnyder@redhat.com>
8555
8556 * symfile.c (symbol_file_add): Move test for null symbols to later.
8557
8558 2002-03-27 Andrew Cagney <ac131313@redhat.com>
8559
8560 From veksler at il.ibm.com:
8561 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
8562 the xstrduped original path.
8563 Fix PR gdb/417.
8564
8565 2002-03-27 Michael Snyder <msnyder@redhat.com>
8566
8567 * breakpoint.c (_initialize_breakpoint): Clean up help string.
8568 * infcmd.c (_initialize_infcmd): Ditto.
8569 * language.c (_initialize_language): Ditto.
8570 * symfile.c (_initialize_symfile): Ditto.
8571 * top.c (_init_main): Ditto.
8572 * cli/cli-cmds.c (init_cli_cmds): Ditto.
8573
8574 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
8575
8576 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
8577 vector registers handling.
8578 (skip_prologue): Handle new AltiVec instructions. Fill in new
8579 fields of frame data.
8580 (frame_get_saved_regs): Fill in information for AltiVec registers.
8581
8582 2002-03-27 Jim Blandy <jimb@redhat.com>
8583
8584 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
8585 a function; leave this macro here to invoke that function.
8586 (symbol_init_mangled_name): Declaration for that function.
8587 * symtab.c (symbol_init_mangled_name): New function.
8588
8589 2002-03-27 Andrew Cagney <ac131313@redhat.com>
8590
8591 * valarith.c: Replace strerror with safe_strerror.
8592 * tracepoint.c: Ditto.
8593 * lin-lwp.c: Ditto.
8594 * go32-nat.c: Ditto.
8595 * inflow.c: Ditto.
8596 * gnu-nat.c: Ditto.
8597
8598 2002-03-27 Andreas Schwab <schwab@suse.de>
8599
8600 * event-top.c (command_line_handler): Remove useless if.
8601
8602 2002-03-27 Andreas Jaeger <aj@suse.de>
8603
8604 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
8605 comment.
8606
8607 2002-03-27 Michal Ludvig <mludvig@suse.cz>
8608
8609 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
8610 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
8611 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
8612 (x86_64_linux_dr_get_status, supply_gregset),
8613 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
8614 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
8615 (x86_64_register_info_table): Add.
8616 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
8617 (x86_64_register_raw_size, x86_64_register_virtual_type),
8618 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
8619 general x86_64_register_info_table.
8620 (i386_gdbarch_init): gdbarch_register_bytes is now set
8621 dynamicaly during initialization.
8622 * regformats/reg-x86-64.dat: Synced with changes to registers above.
8623 * gdbserver/linux-x86-64-low.c: Ditto.
8624
8625 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
8626
8627 * gdbserver/server.c (main): Call target_signal_to_host_p
8628 and target_signal_to_host on signals received from the remote.
8629 * gdbserver/remote-utils.c (prepare_resume_reply): Call
8630 target_signal_from_host on signals sent to the remote.
8631 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
8632 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
8633
8634 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
8635
8636 * signals/signals.c: Include "server.h" in gdbserver build.
8637 (target_signal_from_name): Don't use STREQ.
8638 (_initialize_signals): Likewise. Don't include function in
8639 gdbserver build.
8640
8641 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
8642
8643 * signals.c: Moved to...
8644 * signals/signals.c: Here.
8645 * Makefile (signals.o): Update.
8646
8647 2002-03-26 Jeff Law (law@redhat.com)
8648
8649 * somread.c (som_symtab_read): Remove some commented out code and
8650 updated related comments. Do not set the minimal symbol table to
8651 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
8652 in a dynamic executable.
8653 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
8654 where we are unable to find the minimal symbol for the given
8655 PC value.
8656
8657 2002-03-25 Jeff Law (law@redhat.com)
8658
8659 * linux-proc.c (read_mapping): Scan up to end of line for filename.
8660
8661 2002-03-25 Michal Ludvig <mludvig@suse.cz>
8662
8663 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
8664
8665 2002-03-23 Andrew Cagney <ac131313@redhat.com>
8666
8667 * command.h: Update copyright.
8668 (struct cmd_list_element): Replace definition with opaque
8669 declaration.
8670 (enum cmd_types): Document that it will eventually be moved to
8671 cli/cli-decode.h
8672 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
8673 (MALLOCED_REPLACEMENT): Delete macro.
8674 * Makefile.in (cli_decode_h): Add $(command_h).
8675 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
8676 * top.c: Include "cli/cli-decode.h".
8677 * completer.c: Include "cli/cli-decode.h".
8678 * maint.c: Include "cli/cli-decode.h".
8679 * cli/cli-decode.h: Include "command.h".
8680 (enum command_class): Delete.
8681 (enum cmd_types): Comment out.
8682 (enum cmd_auto_boolean): Delete.
8683 (enum var_types): Delete.
8684
8685 2002-03-23 Andrew Cagney <ac131313@redhat.com>
8686
8687 * cli/cli-decode.c: Include "gdb_assert.h".
8688 (add_set_or_show_cmd): New static function.
8689 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
8690 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
8691 all fields, such as func, from the set command.
8692
8693 2002-03-23 Andrew Cagney <ac131313@redhat.com>
8694
8695 * MAINTAINERS (sh-elf): Change warning flag to -w.
8696
8697 2002-03-23 Andrew Cagney <cagney@redhat.com>
8698
8699 * defs.h (error): Add printf format attribute.
8700 * thread-db.c (thread_from_lwp): Fix error format string.
8701 * stack.c (parse_frame_specification): Ditto.
8702 * cli/cli-decode.c (undef_cmd_error): Ditto.
8703 * scm-lang.c (scm_lookup_name): Ditto.
8704 * tracepoint.c (trace_error): Ditto.
8705 * remote-utils.c (usage): Ditto.
8706 * remote.c (compare_sections_command): Ditto.
8707 Fix PR gdb/328.
8708
8709 2002-03-22 Andrew Cagney <ac131313@redhat.com>
8710
8711 * gdbtypes.c (append_composite_type_field): New function.
8712 (init_composite_type): New function.
8713 * gdbtypes.h (append_composite_type_field): Declare.
8714 (init_composite_type): Ditto.
8715
8716 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
8717
8718 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
8719 function.
8720 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
8721 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
8722 structure returning convention for SYSV ABI case, but not
8723 for GNU/Linux, FreeBSD, or NetBSD.
8724
8725 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
8726
8727 * symtab.h (lookup_block_symbol): Add mangled_name argument
8728 to prototype.
8729
8730 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
8731 with new mangled_name argument.
8732 * linespec.c (decode_line_1): Likewise.
8733 * valops (value_of_this): Likewise.
8734 * symtab.c (lookup_transparent_type): Likewise.
8735 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
8736 (lookup_symbol): If we are given a mangled name, pass it down
8737 to lookup_symbol_aux.
8738 (lookup_block_symbol): If we are given a mangled name to check
8739 against, only return symbols which match it.
8740
8741 2002-03-22 Christopher Faylor <cgf@redhat.com>
8742
8743 * win32-nat.c (child_create_inferior): Check for proper shell to use
8744 here, in case the user changes it on the fly.
8745 (_initialize_inftarg): Remove shell path considerations.
8746
8747 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
8748
8749 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
8750 for gdbarch_max_register_raw_size and max_register_virtual_size.
8751 Adjust copyright year.
8752
8753 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
8754
8755 * dbxread.c (process_one_symbol): Extend the first N_SLINE
8756 in a function to cover the entire beginning of the function
8757 as well if it does not already.
8758
8759 2002-03-21 Tom Rix <trix@redhat.com>
8760
8761 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
8762 (rs6000_ptrace64): Renamed from ptrace64.
8763
8764 2002-03-20 Martin M. Hunt <hunt@redhat.com>
8765
8766 * gdbserver/remote-utils.c (remote_open): Don't call
8767 getprotobyname, we're all using TCP here so just use
8768 IPPROTO_TCP.
8769 * gdbserver/gdbreplay.c (remote_open): Ditto.
8770
8771 2002-03-20 Martin M. Hunt <hunt@redhat.com>
8772
8773 * regcache.c (_initialize_regcache): No need to call
8774 build_regcache() at this time; it gets called whenever
8775 the gdbarch changes.
8776
8777 2002-03-20 David O'Brien <obrien@FreeBSD.org>
8778
8779 * sparc-nat.c: Include sys/param.h where possible.
8780
8781 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
8782
8783 Fix PR gdb/422.
8784 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
8785 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
8786 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
8787 complex types.
8788 * stabsread.c (rs6000_builtin_type): Likewise.
8789 (read_sun_floating_type): Likewise.
8790
8791 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8792
8793 * stabsread.c (read_member_functions): Remove skip code for duplicate
8794 constructor/destructor methods. Use standard parsing for these
8795 methods and just do not chain them to the list of methods after
8796 parsing.
8797
8798 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
8799
8800 * coffread.c: Remove redundant static declarations. Replace
8801 occurrences of `PTR' with `void *'.
8802 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
8803 * top.h (quit_cover): Likewise.
8804 * defs.h (catch_errors): Likewise.
8805
8806 2002-03-18 Andrew Cagney <ac131313@redhat.com>
8807
8808 * defs.h (XMALLOC): Define.
8809 * gdb-events.sh (XMALLOC): Delete macro.
8810 * gdb-events.c, gdb-events.h: Regenerate.
8811 * gdbarch.sh (XMALLOC): Delete macro.
8812 * gdbarch.c: Regenerate.
8813 * serial.c (XMALLOC): Delete macro.
8814 * ui-file.c (XMALLOC): Ditto.
8815 * ser-unix.h (XMALLOC): Ditto.
8816 * sh-tdep.c (XMALLOC): Ditto.
8817 * ui-out.c (XMALLOC): Ditto.
8818 * utils.c (XMALLOC): Ditto.
8819 * i386-tdep.c (XMALLOC): Ditto.
8820 * gdb-events.c (XMALLOC): Ditto.
8821 * d10v-tdep.c (XMALLOC): Ditto.
8822 * cli-out.c (XMALLOC): Ditto.
8823
8824 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
8825 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
8826 * ui-file.c, ui-out.c: Ditto.
8827
8828 2002-03-18 Andrew Cagney <ac131313@redhat.com>
8829
8830 * command.h (struct cmd_list_element): Add field context.
8831 (set_cmd_context, get_cmd_context): Declare.
8832 * cli/cli-decode.h: Ditto.
8833 * cli/cli-decode.c (get_cmd_context): New function.
8834 (set_cmd_context): New function.
8835 (add_cmd): Initialize context.
8836 Part of fixing PR gdb/145 and PR gdb/146.
8837
8838 2002-03-17 Andrew Cagney <ac131313@redhat.com>
8839
8840 * cli/cli-decode.c (cmd_type): New function.
8841 * command.h (cmd_type): Declare.
8842 * infrun.c (set_schedlock_func): Call function cmd_type.
8843 * kod.c (kod_set_os): Call cmd_type.
8844 * cris-tdep.c (cris_version_update): Use function cmd_type.
8845 (cris_mode_update, cris_abi_update): Ditto.
8846
8847 * command.h: (execute_cmd_post_hook): Declare.
8848 (execute_cmd_pre_hook): Declare.
8849 * cli/cli-script.c (clear_hook_in_cleanup): New function.
8850 (execute_cmd_post_hook, execute_cmd_pre_hook): New
8851 functions. Execute pre/post hook while ensuring that afterwords
8852 hook_in is cleared.
8853 * top.c (execute_command): Use execute_cmd_post_hook, and
8854 execute_cmd_pre_hook to execute pre/post commands.
8855 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
8856 hook_stop_stub.
8857 (hook_stop_stub): Call execute_cmd_pre_hook.
8858
8859 2002-03-17 Andrew Cagney <ac131313@redhat.com>
8860
8861 * kod.c (kod_set_os): Revert previous change. Is called by ``info
8862 set'' and this leads to a core dump. Move xstrdup of
8863 operating_system to after check that it is not NULL.
8864
8865 2002-03-17 Andrew Cagney <ac131313@redhat.com>
8866
8867 * kod.c (kod_set_os): Remove unnecessary check that
8868 ``command->type'' is set_cmd.
8869
8870 * valprint.c (set_input_radix): Use input_radix.
8871 (set_output_radix): Use output_radix.
8872 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
8873 isn't reverted.
8874
8875 2002-03-16 Andrew Cagney <ac131313@redhat.com>
8876
8877 * value.h (struct value): Delete field ``substring_addr''. Change
8878 aligner fields to force_doublest_align, force_longest_align,
8879 force_core_addr_align and force_pointer_aligh.
8880
8881 * value.h (struct value): Fix typo in above change.
8882
8883 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8884
8885 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
8886 to fix internal_error from ``maintenance print architecture''.
8887
8888 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8889
8890 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
8891 for gcc versions after gcc-2.8.1.
8892
8893 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8894
8895 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
8896 for method resolution. Restore adjustment of ``this'' pointer after
8897 calling value_struct_elt, which was accidentally removed during the
8898 HP merge.
8899
8900 2002-03-15 Andrew Cagney <ac131313@redhat.com>
8901
8902 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
8903 value_of_register.
8904 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
8905 get_saved_register.
8906 * value.h (value_of_register): Update.
8907
8908 2002-03-14 Richard Henderson <rth@redhat.com>
8909
8910 * configure.in: Detect declaration for canonicalize_file_name.
8911 * utils.c (canonicalize_file_name): Declare, if needed.
8912 (gdb_realpath): Prefer realpath if available and usable.
8913 * config.in, configure: Rebuild.
8914
8915 2002-03-14 Richard Henderson <rth@redhat.com>
8916
8917 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
8918 a constant array bound.
8919
8920 * MAINTAINERS: Add myself to write-after-approval.
8921
8922 2002-03-14 Michael Snyder <msnyder@redhat.com>
8923
8924 * symfile.c (syms_from_objfile): Return immediately if no syms.
8925 (symbol_file_add): Return immediately if no syms.
8926 (find_sym_fns): Return immediately if no syms.
8927
8928 2002-03-13 Michal Ludvig <mludvig@suse.cz>
8929
8930 * gdbserver/remote-util.c (remote_open): Print remote-side's
8931 IP address when remote debugging over the network.
8932
8933 2002-03-12 David O'Brien <obrien@FreeBSD.org>
8934
8935 * config/sparc/fbsd.mh: Fix copyright.
8936 * config/sparc/fbsd.mt: Likewise.
8937
8938 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
8939
8940 * MAINTAINERS: Fix typo in name of gdb warnings option.
8941 (x86-64): Fix formating so that this can be parsed by awk.
8942
8943 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
8944
8945 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
8946 * defs.h: Include "gdb/signals.h".
8947 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
8948
8949 2002-03-10 Michal Ludvig <mludvig@suse.cz>
8950
8951 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
8952 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
8953 from x86-64-tdep.h
8954
8955 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
8956 Don Howard <dhoward@redhat.com>
8957
8958 * mips-tdep.c (ST0_FR): Define.
8959 (mips2_fp_compat): New function, temporarily disabled.
8960 (mips_read_fp_register_single): New function.
8961 (mips_read_fp_register_double): New function.
8962 (mips_print_register): Use them.
8963 (do_fp_register_row): Likewise.
8964
8965 2002-03-09 Andrew Cagney <ac131313@redhat.com>
8966
8967 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
8968 approval''.
8969
8970 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8971
8972 * stabsread.c (read_member_functions): Fix is_stub test for
8973 static member functions, improve comment.
8974
8975 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
8976
8977 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
8978 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
8979 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
8980 commands that set boolean values.
8981 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
8982 (arm_rdi_resume): Always initialize PC.
8983 (arm_rdi_open): Don't use rslt as a boolean.
8984 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
8985 (arm_rdi_fetch_registers, arm_rdi_store_registers)
8986 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
8987 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
8988
8989 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
8990
8991 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
8992 * configure: Rebuilt.
8993
8994 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
8995
8996 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
8997 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
8998
8999 2002-03-06 Andrew Cagney <ac131313@redhat.com>
9000
9001 * cli/cli-decode.c (set_cmd_completer): New function.
9002 * command.h (set_cmd_completer): Declare.
9003 * cli/cli-decode.h (set_cmd_completer): Ditto.
9004
9005 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
9006 * cli/cli-cmds.c (init_cli_cmds): Ditto.
9007 * win32-nat.c (_initialize_inftarg): Ditto.
9008 * remote-rdi.c (_initialize_remote_rdi): Ditto.
9009 * proc-api.c (_initialize_proc_api): Ditto.
9010 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
9011 * source.c (_initialize_source): Ditto.
9012 * exec.c (_initialize_exec): Ditto.
9013 * solib.c (_initialize_solib): Ditto.
9014 * top.c (init_main): Ditto.
9015 * tracepoint.c (_initialize_tracepoint): Ditto.
9016 * symfile.c (_initialize_symfile): Ditto.
9017 * printcmd.c (_initialize_printcmd): Ditto.
9018 * infcmd.c (_initialize_infcmd): Ditto.
9019 * corefile.c (_initialize_core): Ditto.
9020
9021 2002-03-05 Andrew Cagney <ac131313@redhat.com>
9022
9023 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
9024
9025 2002-03-05 Andrew Cagney <ac131313@redhat.com>
9026
9027 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
9028
9029 2002-03-05 Andrew Cagney <ac131313@redhat.com>
9030
9031 * NEWS: Update headings, 5.2 has branched.
9032
9033 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
9034
9035 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
9036 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
9037 (register_addr, REGISTER_RAW_SIZE): Likewise.
9038 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
9039 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
9040
9041 2002-03-03 Michal Ludvig <mludvig@suse.cz>
9042
9043 * MAINTAINERS (x86-64): Add myself.
9044 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
9045 changed value_ptr -> struct value *
9046
9047 2002-03-01 David O'Brien <obrien@FreeBSD.org>
9048
9049 * configure.host (sparc64-*-freebsd): Add.
9050 * configure.tgt: Likewise.
9051 * config/sparc/fbsd.mh: New file.
9052 * config/sparc/fbsd.mt: Likewise.
9053 * config/sparc/nm-fbsd.h: Likewise.
9054 * config/sparc/tm-fbsd.h: Likewise.
9055
9056 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
9057
9058 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
9059 regformats/reg-s390x.dat.
9060
9061 2002-03-01 Andrew Cagney <ac131313@redhat.com>
9062
9063 * utils.c: Add FIXME explaining true/false problem.
9064
9065 2002-02-28 Andrew Cagney <ac131313@redhat.com>
9066
9067 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
9068
9069 2002-02-28 Michael Chastain <mec@shout.net>
9070
9071 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
9072
9073 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
9074
9075 * gdbserver/linux-s390-low.c: New file.
9076 * regformats/reg-s390.dat: New file.
9077 * regformats/reg-s390x.dat: New file.
9078 * gdbserver/configure.srv: Add S/390.
9079 * gdbserver/Makefile.in: Add S/390.
9080 * configure.tgt: Enable gdbserver for S/390.
9081
9082 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
9083
9084 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
9085 first line of the doc string for "info dos", except at the end of
9086 the sentence, since the short help stops at the first period.
9087
9088 2002-02-28 Jason Merrill <jason@redhat.com>
9089
9090 * dwarf2read.c (dwarf_cfi_name): Add new codes.
9091
9092 2002-02-27 Fred Fish <fnf@redhat.com>
9093
9094 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
9095 comment (dumy -> dummy).
9096
9097 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9098
9099 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
9100
9101 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
9102
9103 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
9104
9105 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
9106
9107 * gdbserver/acconfig.h: New file.
9108 * gdbserver/i387-fp.c: New file.
9109 * gdbserver/i387-fp.h: New file.
9110 * gdbserver/linux-x86-64.c: New file.
9111 * regformats/reg-x86-64.dat: New file.
9112 * configure.tgt: Add x86_64-*-linux* gdbserver support.
9113 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
9114 * gdbserver/configure.in: Add support for regsets.
9115 * gdbserver/config.in: Regenerate.
9116 * gdbserver/configure: Regenerate.
9117 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
9118 * gdbserver/linux-low.h: New file.
9119 * gdbserver/linux-low.c: Include "linux-low.h". Add support
9120 for regsets.
9121 * gdbserver/linux-arm-low.c: Include "linux-low.h".
9122 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
9123 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
9124 * gdbserver/linux-mips-low.c: Include "linux-low.h".
9125 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
9126 * gdbserver/linux-sh-low.c: Include "linux-low.h".
9127 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
9128 "i387-fp.h". Add PTRACE_GETREGS and friends.
9129 * gdbserver/regcache.c (supply_register): New function.
9130 (supply_register_by_name): New function.
9131 (collect_register): New function.
9132 (collect_register_by_name): New function.
9133
9134 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
9135
9136 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
9137 (config.status): Add configure.srv dependency.
9138 (server_h): Add config.h dependency.
9139
9140 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
9141
9142 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
9143 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
9144 * gdbserver/configure.srv: Change i386-*-linux* to use
9145 reg-i386-linux.o.
9146
9147 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9148
9149 * x86-64-tdep.c: Re-indent. Update copyright date.
9150
9151 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9152
9153 From Michal Ludvig <mludvig@suse.cz>:
9154 * x86-64-tdep.c (value.h): Delete.
9155 (gdb_assert.h): Include.
9156 (x86_64_register_convert_to_virtual,
9157 x86_64_register_convert_to_raw ): Add check which lets only
9158 floating-point values to be converted.
9159 (value_push): Delete.
9160 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
9161 (i386_gdbarch_init): Number of register_bytes fixed.
9162
9163 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9164
9165 * MAINTAINERS: Add x86-64 target.
9166
9167 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9168
9169 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
9170 * osfsolib.c (solib_map_sections): Ditto.
9171 * irix5-nat.c (solib_map_sections): Ditto.
9172 * corelow.c (gdb_check_format): Ditto.
9173 * symfile.c (symfile_bfd_open): Ditto.
9174 * solib.c (solib_map_sections): Ditto.
9175 Fix PR gdb/354.
9176
9177 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9178
9179 * remote.c (_initialize_remote): By default, disable ``e'' and
9180 ``E'' step out-of-range packets.
9181
9182 2002-02-26 Andreas Schwab <schwab@suse.de>
9183
9184 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
9185 m68k_linux_frame_saved_pc.
9186 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
9187 in_sigtramp.
9188 (SIGCONTEXT_PC_OFFSET): Remove.
9189 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
9190 m68k_linux_sigtramp_saved_pc): New functions.
9191 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
9192 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
9193 (UCONTEXT_PC_OFFSET): Define.
9194 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
9195 non-RT and RT signal trampolines.
9196
9197 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
9198
9199 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
9200 (TARGET_NBPG, STACK_END_ADDR): Delete
9201 (VARIABLES_INSIDE_BLOCK): Delete.
9202
9203 2002-02-25 Andrew Cagney <ac131313@redhat.com>
9204
9205 * utils.c (perror_with_name): Make string parameter constant.
9206 (print_sys_errmsg): Ditto.
9207 (query): Ditto.
9208 * defs.h (perror_with_name): Update.
9209 (print_sys_errmsg): Update.
9210 (query): Update.
9211
9212 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
9213
9214 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
9215 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
9216
9217 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9218
9219 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
9220 if it already matches the current architecture from the exec file.
9221 Include arch-utils.h for gdbarch_info_init prototype.
9222 * Makefile.in (rs6000-nat.o): Update dependencies.
9223
9224 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
9225
9226 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
9227 list of exported variables.
9228
9229 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
9230
9231 * gdbserver/configure.srv: New file.
9232 * gdbserver/configure.in: Use configure.srv instead
9233 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
9234 from it.
9235 * gdbserver/configure: Regenerated.
9236 * gdbserver/terminal.h: New file.
9237 * gdbserver/Makefile.in: Update for configure changes. Remove
9238 more unneeded include paths.
9239
9240 2002-02-24 Andrew Cagney <ac131313@redhat.com>
9241
9242 From wiz at danbala:
9243 * config/sparc/tm-sp64.h: Fix grammar and typos.
9244 Fix PR gdb/287.
9245
9246 2002-02-24 Andrew Cagney <ac131313@redhat.com>
9247
9248 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
9249 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
9250 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
9251 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
9252 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
9253 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
9254 * s390-tdep.c: Ditto.
9255 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
9256 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
9257 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
9258 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
9259 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
9260 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
9261 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
9262 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
9263 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
9264 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
9265 Fix PR gdb/378.
9266
9267 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9268
9269 * lin-thread.c: Delete file.
9270 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
9271 to gdb_proc_service.h.
9272 * configure: Re-generate.
9273
9274 * ocd.c (ocd_open): Do not try to open the "ocd" device.
9275 * serial.c (serial_open): Delete check for "ocd".
9276 Fix PR gdb/349.
9277
9278 * Makefile.in (linux-thread.o): Delete target.
9279 * linux-thread.c: Delete file.
9280
9281 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
9282 renamed SH files to be consistent.
9283
9284 * symtab.c (sort_search_symbols): Use xfree.
9285
9286 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
9287
9288 * arm-linux-tdep.c (arm_linux_init_abi): Register
9289 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
9290 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
9291 definition with undef, since we don't want the sysvr4 definition.
9292 (SKIP_TRAMPOLINE_CODE): Likewise.
9293
9294 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9295
9296 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
9297
9298 * configure.in: (AC_CHECK_FUNCS) Added test for
9299 canonicalize_file_name Regenerated.
9300 * config.in, configure: Regenerated.
9301 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
9302 defined use canonicalize_file_name.
9303
9304 2002-02-23 Michael Chastain <mec@shout.net>
9305
9306 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
9307
9308 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9309
9310 * README: Remove references to cygnus.com.
9311 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
9312 dot com'' form. Remove references to cygnus.com and sourceware.
9313
9314 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9315
9316 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
9317 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
9318 1003.1-2001 no longer allows "head -1".
9319 * gdb/Makefile.in (version.c): Likewise.
9320 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
9321 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
9322 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
9323
9324 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9325
9326 * cli/cli-decode.c (cmd_cfunc_eq): New function.
9327 * command.h (cmd_cfunc_eq): Declare.
9328 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
9329
9330 * cli/cli-cmds.h (is_complete_command): Change parameter to a
9331 ``struct cmd_list_element *''.
9332 * cli/cli-cmds.c (is_complete_command): Update. Use
9333 cmd_cfunc_eq.
9334 * top.c (execute_command): Pass the command to
9335 is_complete_command.
9336 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
9337
9338 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9339
9340 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
9341 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
9342 architecture defines.
9343 * s390-tdep.c (s390_gdbarch_init): Likewise.
9344
9345 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
9346
9347 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
9348 (arm_linux_push_arguments): Likewise.
9349 (arm_linux_init_abi): Register them. Also register linux-specific
9350 call_dummy_words.
9351 (find_minsym_and_objfile): Use strcmp, not STREQ.
9352 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
9353 (arm_linux_call_dummy_words): Delete declaration.
9354 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
9355 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
9356 declarations.
9357 (LOWEST_PC): Delete.
9358
9359 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9360
9361 * maint.c (print_section_info): Do not prepend `0x' to filepos
9362 output, it will be handled by local_hex_string_custom.
9363
9364 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
9365
9366 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
9367 (store_newfpe_double, store_newfpe_extended, store_fpregister)
9368 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
9369
9370 2002-02-22 Jim Blandy <jimb@redhat.com>
9371
9372 Indicate that the bcache functions don't change the strings
9373 they're passed.
9374 * bcache.h (bcache, hash): Add `const' keywords to declarations.
9375 * bcache.c (bcache, hash): Add `const' keywords to definitions.
9376
9377 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
9378
9379 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
9380
9381 2002-02-21 Christopher Faylor <cgf@redhat.com>
9382
9383 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
9384 find the complete path to a loaded DLL.
9385
9386 2002-02-21 Fred Fish <fnf@redhat.com>
9387
9388 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
9389 that marks the end of the range of a function, enter a line number
9390 entry that has a line number of zero and a PC offset that matches
9391 the end of the function. This starts a range of PC's for which no
9392 line number information is known.
9393 * symtab.c (find_pc_sect_line): If our best fit is in a range of
9394 PC's for which no line number info is found (line number is zero)
9395 then we didn't find any valid line information.
9396 * symtab.h: Document use of zero line number entry.
9397
9398 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
9399
9400 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
9401 (have_ptrace_getvrregs): Define for run time checks.
9402 (gdb_vrregset_t): New type for Altivec register handling.
9403 (fetch_register, store_register): Fetch/store altivec register
9404 when needed.
9405 (fetch_altivec_register, store_altivec_register): New functions.
9406 (supply_vrregset, fill_vrregset): New functions.
9407 (fetch_altivec_registers, store_altivec_registers): New functions.
9408 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
9409 registers as well.
9410
9411 2002-02-21 Jiri Smid <smid@suse.cz>
9412
9413 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
9414
9415 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
9416
9417 * Makefile.in (armnbsd-nat.o): Update dependencies.
9418 * armnbsd-nat.c (supply_gregset): New function. Common code to
9419 supply the integer register set.
9420 (supply_fparegset): New function. Similar for FPA registers.
9421 (fetch_regs, fetch_fp_regs): Use them.
9422 (fetch_core_registers): Likewise.
9423 (fetch_elfcore_registers): New function.
9424 (arm_netbsd_elfcore_fns): New core-file type specification.
9425 (_initialize_arm_netbsd_nat): Register it.
9426
9427 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
9428
9429 * armnbsd-nat.c: Include gdbcore.h.
9430 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
9431 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
9432 'void' to declaration, to shut up ARI.
9433 (fetch_core_registers): Make static. Rewrite using supply_register.
9434 (arm_netbsd_core_fns): New core-file type specification.
9435 (_initialize_arm_netbsd_nat): New function.
9436
9437 2002-02-21 Christopher Faylor <cgf@redhat.com>
9438
9439 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
9440 value.
9441
9442 2002-02-20 Christopher Faylor <cgf@redhat.com>
9443
9444 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
9445 fails.
9446
9447 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9448
9449 * jv-exp.y (parse_number): Change type of implicit longs
9450 to builtin_type_uint64.
9451
9452 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9453
9454 * gdbserver/linux-low.c (mywait): Change argument to waitpid
9455 to be an integer instead of a `union wait'.
9456
9457 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9458
9459 * mips-linux-nat.c: Call the operating system GNU/Linux.
9460 * mips-linux-tdep.c: Likewise.
9461 * mips-tdep.c: Likewise.
9462
9463 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9464
9465 Fix PR gdb/265.
9466 * jv-exp.y (parse_number): Handle 64-bit integers.
9467
9468 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9469
9470 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
9471 AC_STDC_HEADERS to AC_HEADER_STDC.
9472 * gdbserver/configure: Regenerated.
9473
9474 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
9475
9476 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
9477 is defined.
9478 * sparc-tdep.c (get_longjmp_target): Likewise.
9479
9480 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
9481
9482 * News: Add news about ARM and Multi-arch. Mention the new target
9483 arm*-*-netbsd*.
9484
9485 2002-02-19 Jim Blandy <jimb@redhat.com>
9486
9487 * stabsread.c (error_type_complaint): Improve error message.
9488
9489 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
9490
9491 * gdbserver/README: Update documentation.
9492 * gdbserver/configure.in: Update configury to match documentation.
9493 * gdbserver/Makefile.in: Likewise.
9494 * gdbserver/configure: Regenerated.
9495 * gdbserver/aclocal.m4: New file, generated by aclocal.
9496 * gdbserver/config.in: New file, generated by autoheader.
9497
9498 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9499
9500 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
9501 armnbsd-nat.c.
9502
9503 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9504
9505 * arm-tdep.h (enum arm_float_model): New enum.
9506 (struct gdbarch_tdep): Add fp_model.
9507 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
9508 up floating-point conversions until we know the floating-point model
9509 in use by the inferior. Don't complain about being unable to
9510 determine the ABI of the inferior when we don't have one.
9511 (arm_extract_return_value): Support different floating-point models.
9512 (arm_store_return_value): Likewise.
9513 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
9514 ARM_FLOAT_SOFT.
9515 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
9516
9517 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9518
9519 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
9520 of ``current_gdbarch''.
9521
9522 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9523
9524 * armnbsd-nat.c : ANSIfy all function declarations.
9525 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
9526 (fetch_inferior_registers): Re-implement in terms of above.
9527 (store_register, store_regs, store_fp_register, store_fp_regs): New.
9528 (store_inferior_registers): Re-implement in terms of above.
9529
9530 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9531
9532 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
9533 kernel.
9534 * arm-linux-tdep.c: Likewise.
9535 * config/arm/tm-linux.h: Likewise.
9536
9537 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9538
9539 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
9540 * config/arm/nbsd.mt (TM_FILE): Delete.
9541 * config/arm/tm-nbsd.h: Delete.
9542
9543 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9544
9545 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
9546 Initialize CALL_DUMMY_LENGTH.
9547
9548 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9549
9550 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
9551 function.
9552 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
9553 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
9554 defines one thing and that is incorrect for this port.
9555 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
9556
9557 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9558
9559 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
9560
9561 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9562
9563 * win32-nat.c (display_selector): New function. Displays information
9564 about the information returned by GetThreadSelectorEntry API function.
9565 (display_selectors): New function. Displays the infomation of
9566 the selector given as argument, or of CS, DS ans FS selectors
9567 if no argument is given.
9568 ( _initialize_inftarg): Add "w32" as info prefix command.
9569 Add "info w32 selector" as command calling display_selectors.
9570
9571 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
9572
9573 * i386-tdep.c (get_longjmp_target): Fix compilation failure
9574 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
9575 if not defined.
9576
9577 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
9578
9579 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
9580
9581 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
9582
9583 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
9584 (arm_fix_call_dummy): Call it.
9585 (arm_call_dummy_breakpoint_offset): Delete.
9586 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
9587 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
9588
9589 2002-02-18 Andrew Cagney <ac131313@redhat.com>
9590
9591 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
9592 Default to func_frame_chain_valid.
9593 * gdbarch.h, gdbarch.c: Re-generate.
9594 * frame.h (FRAME_CHAIN_VALID): Delete definition.
9595
9596 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
9597
9598 * ppc-linux-nat.c: Update copyright.
9599 (fetch_register, store_register): Add tid parameter, don't compute
9600 tid here.
9601 (fetch_ppc_registers, store_ppc_registers): Add tid
9602 parameter. Pass it along to callees.
9603 (fetch_inferior_registers, store_inferior_registers): Compute tid
9604 here, and pass it to calleed functions.
9605 (fill_gregset, supply_fpregset): Clean up formatting.
9606
9607 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
9608
9609 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
9610 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
9611
9612 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
9613
9614 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
9615 * gdbarch.c gdbarch.h: Regenerate.
9616 * breakpoint.c (create_longjmp_breakpoint): Always compile this
9617 function.
9618 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
9619 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
9620 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
9621
9622 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
9623 * arm-tdep.c (arm_get_longjmp_target): New function.
9624 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
9625 this to a positive value register arm_get_longjmp_target as the
9626 longjmp handler.
9627 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
9628 (arm_linux_init_abi): Set up longjmp description in tdep.
9629 * armnbsd-nat.c (get_longjmp_target): Delete.
9630 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
9631 description in tdep.
9632 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
9633 (get_longjmp_target): Delete declaration.
9634 (GET_LONGJMP_TARGET): Delete.
9635 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
9636 (GET_LONGJMP_TARGET): Delete.
9637
9638 2002-02-17 Kevin Buettner <kevinb@redhat.com>
9639
9640 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
9641 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
9642 of ``current_gdbarch''.
9643
9644 2002-02-17 Tom Tromey <tromey@redhat.com>
9645
9646 * cli/cli-cmds.c (compare_strings): New function.
9647 (complete_command): Only print each unique item once.
9648 * completer.h (complete_line): Declare.
9649 * completer.c (complete_line): New function.
9650 (line_completion_function): Use it.
9651
9652 2002-02-16 Andrew Cagney <ac131313@redhat.com>
9653
9654 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
9655 * gdbarch.h, gdbarch.c: Re-generate.
9656
9657 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
9658
9659 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
9660
9661 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
9662
9663 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
9664 * valops.c (value_arg_coerce): Don't take the address of a reference
9665 to convert an argument to a reference.
9666
9667 2002-02-15 Christopher Faylor <cgf@redhat.com>
9668
9669 * win32-nat.c (get_image_name): New function.
9670 (handle_load_dll): Use get_image_name function.
9671 (get_child_debug_event): Avoid registering debug events until possibly
9672 execed process is started.
9673 (child_create_inferior): Allow invocation via shell so that command
9674 line redirection, etc. works ok.
9675 (_initialize_inftarg): Add new command: "set shell" to control whether
9676 a shell is used to start a process.
9677
9678 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
9679
9680 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
9681 instead of find_register_by_number.
9682 (cannot_store_register): Likewise.
9683
9684 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
9685
9686 * dwarf2read.c: Replace fprintf (stderr, ...) by
9687 fprintf_unfiltered (gdb_stderr, ...).
9688
9689 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
9690
9691 * gdbserver/gdbserver.1: Document --attach.
9692
9693 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
9694
9695 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
9696 descriptions.
9697 * arm-tdep.c (arm_default_arm_le_breakpoint)
9698 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
9699 (arm_default_thumb_be_breakpoint): New. Initialize them from
9700 traditional breakpoint defines.
9701 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
9702 (arm_gdbarch_init): Initialize new breakpoint variables.
9703 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
9704 (arm_linux_init_abi): Initialize linux-specific breakpoint.
9705 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
9706 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
9707 code out to ...
9708 (arm_netbsd_init_abi_common): ... here; new function.
9709 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
9710 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
9711 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
9712 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
9713
9714 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
9715
9716 * arm-tdep.h (enum arm_abi): New enum.
9717 (struct gdbarch_tdep): New structure.
9718 (LOWEST_PC): Provide a default.
9719 (arm_gdbarch_register_os_abi): Declare new function.
9720 * arm-tdep.c (arm_abi_names): New array.
9721 (process_note_abi_tag_sections): New function.
9722 (get_elfosabi): New function.
9723 (arm_gdbarch_register_os_abi): New function.
9724 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
9725 support for that ABI has been built in, then call the appropriate
9726 configuration routine. Use gdbarch_num_regs() to get the number
9727 of registers.
9728 (arm_dump_tdep): New function.
9729 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
9730 place-holder functions.
9731 (_initialize_arm_tdep): Register them.
9732 * config/arm/tm-arm.h (LOWEST_PC): Delete.
9733
9734 * armnbsd-tdep.c: New file.
9735 * Makefile.in (armnbsd-tdep.o): Add dependencies.
9736 * config/arm/nbsd.mt (TDEPFILES): Add it.
9737 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
9738
9739 * armnbsd-nat.c: Include regcache.h.
9740 * Makefile.in (armnbsd-nat.o): Update dependency list.
9741
9742 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
9743
9744 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9745
9746 * gdbserver/Makefile.in: Fix typos in target rules.
9747
9748 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9749
9750 Fix part of PR gdb/267.
9751 * linespec.c (find_methods): Handle constructors specially for now.
9752
9753 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
9754
9755 * arm-tdep.c (arm_push_arguments): Eliminate special float type
9756 handling.
9757 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
9758 standard_coerce_float_to_double().
9759
9760 2002-02-14 Christopher Faylor <cgf@redhat.com>
9761
9762 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
9763 GDBINIT_FILENAME.
9764
9765 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
9766
9767 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
9768 find_variant_by_name, because it confuses the multiarch
9769 framework. Return NULL if there isn't an architecture with the
9770 user supplied name, instead of forcing a different one without
9771 recording the change with the multiarch machinery.
9772 (find_variant_by_name): Delete.
9773
9774 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9775
9776 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
9777 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
9778
9779 2002-02-13 Martin M. Hunt <hunt@redhat.com>
9780
9781 * stack.c (print_frame_info_base): When calling
9782 print_frame_info_listing_hook, set current_source_symtab.
9783
9784 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9785
9786 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
9787 and remove unused $(INCLUDE_DIR).
9788 Add regcache.c to OBS.
9789 Add generated register protocol files to clean target.
9790 Update dependencies for new objects, obsolete old target code.
9791
9792 * gdbserver/linux-low.c: Remove all platform-specific code to
9793 new files. Remove various dead code. Update to use regcache
9794 functionality.
9795 * gdbserver/remote-utils.c (fromhex): Add return statement
9796 to quiet warning.
9797 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
9798 constant.
9799 (input_interrupt): Add integer parameter to match prototype
9800 of a signal handler.
9801 (outreg): Use register_data ().
9802 (prepare_resume_reply): Use gdbserver_expedite_regs.
9803 * gdbserver/server.c (main): Dynamically allocate own_buf because
9804 PBUFSIZ is no longer constant. Use registers_to_string () and
9805 registers_from_string ().
9806 * gdbserver/server.h: No longer include "defs.h". Add prototypes
9807 for error (), fatal (), and warning (). Update definition of
9808 PBUFSIZ to use regcache functionality. Add include guard.
9809 * gdbserver/utils.c (fatal): Add missing ``const''.
9810 (warning): New function.
9811
9812 * regformats/regdat.sh: Include "regcache.h" in generated files.
9813 Provide init_registers () function.
9814 * regformats/regdef.h: Add prototype for set_register_cache ().
9815 Add include guard.
9816
9817 * gdbserver/linux-arm-low.c: New file.
9818 * gdbserver/linux-i386-low.c: New file.
9819 * gdbserver/linux-ia64-low.c: New file.
9820 * gdbserver/linux-m68k-low.c: New file.
9821 * gdbserver/linux-mips-low.c: New file.
9822 * gdbserver/linux-ppc-low.c: New file.
9823 * gdbserver/linux-sh-low.c: New file.
9824
9825 * gdbserver/regcache.c: New file.
9826 * gdbserver/regcache.h: New file.
9827
9828 * gdbserver/low-linux.c: Removed obsolete file.
9829
9830 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9831
9832 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
9833 * config/i386/linux.mt: Likewise.
9834 * config/ia64/linux.mt: Likewise.
9835 * config/m68k/linux.mh: Likewise.
9836 * config/powerpc/linux.mh: Likewise.
9837 * config/mips/linux.mt: Likewise.
9838
9839 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
9840
9841 * config/i386/i386lynx.mh: Mark gdbserver variables
9842 as (currently) obsolete for this target.
9843 * config/i386/nbsd.mt: Likewise.
9844 * config/i386/nbsdelf.mt: Likewise.
9845 * config/m32r/m32r.mt: Likewise.
9846 * config/m68k/m68klynx.mh: Likewise.
9847 * config/m68k/nbsd.mt: Likewise.
9848 * config/m68k/sun3os4.mh: Likewise.
9849 * config/mips/vr5000.mt: Likewise.
9850 * config/ns32k/nbsd.mt: Likewise.
9851 * config/pa/hppabsd.mh: Likewise.
9852 * config/pa/hppaosf.mh: Likewise.
9853 * config/powerpc/nbsd.mt: Likewise.
9854 * config/rs6000/rs6000lynx.mh: Likewise.
9855 * config/s390/s390.mt: Likewise.
9856 * config/s390/s390x.mt: Likewise.
9857 * config/sparc/sparclynx.mh: Likewise.
9858 * config/sparc/sun4os4.mh: Likewise.
9859 * config/i386/x86-64linux.mt: Likewise.
9860 * config/sparc/linux.mh: Likewise.
9861
9862 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9863
9864 * configure.tgt: Configure gdbserver only for known working
9865 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
9866 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
9867 SUBDIRS if it is configured. Update comment for ${nativefile}.
9868 * configure: Regenerated.
9869
9870 2002-02-13 Michael Snyder <msnyder@redhat.com>
9871
9872 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
9873
9874 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
9875 (default_gcore_mach): Just return 0, work around a problem in bfd.
9876 (default_gcore_target): OK to return NULL if exec_bfd is null.
9877 (make_mem_sec): Use a cast, avoid a warning.
9878
9879 * procfs.c (find_memory_regions_callback): Use a cast instead of
9880 calling host_pointer_to_address (which complains if
9881 sizeof (host pointer) != sizeof (target pointer)).
9882 (procfs_make_note_section): Avoid overflow in psargs string.
9883
9884 * procfs.c (procfs_make_note_section): Make the default
9885 implementation return an error.
9886
9887 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
9888
9889 * procfs.c (procfs_make_note_section): Provide a default definition
9890 (for alpha-dec-osf4.0f). Fix typos.
9891
9892 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
9893
9894 * linux-proc.c: Add include of regcache.h.
9895 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
9896
9897 2002-02-13 Andrew Cagney <ac131313@redhat.com>
9898
9899 From 2002-01-18 Greg McGary <greg@mcgary.org>:
9900 * memattr.c (create_mem_region): Disallow useless empty region.
9901 Regions are half-open intervals, so allow [A..B) [B..C) as
9902 non-overlapping.
9903
9904 2002-02-13 Michael Chastain <mec@shout.net>
9905
9906 * defs.h: Kill CONST_PTR.
9907 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
9908 * c-lang.c (c_builtin_types): Likewise.
9909 * ch-lang.c (ch_builtin_types): Likewise.
9910 * f-lang.c (f_builtin_types): Likewise.
9911 * language.c (unknown_builtin_types): Likewise.
9912 * m2-lang.c (m2_builtin_types): Likewise.
9913 * p-lang.c (pascal_builtin_types): Likewise.
9914 * scm-lang.c (c_builtin_types): Likewise.
9915
9916 2002-02-13 Keith Seitz <keiths@redhat.com>
9917
9918 * arm-tdep.h (arm_get_next_pc): Add declaration.
9919
9920 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
9921
9922 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
9923 with other related struct-returning functions.
9924 (arm_extract_struct_value_address): New function.
9925 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
9926 initialize float_format, double_format and long_double_format as
9927 appropriate to the endianness of the target.
9928 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
9929 (arm_use_struct_convention): Delete declaration.
9930 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
9931
9932 2002-02-13 Keith Seitz <keiths@redhat.com>
9933
9934 * defs.h (core_addr_to_string_nz): New function.
9935
9936 2002-02-13 Mark Kettenis <kettenis@gnu.org>
9937
9938 Apply missing bits of 2002-01-15 patch.
9939 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
9940 (fill_fpregset): Use i387_fill_fsave.
9941
9942 2002-02-12 Keith Seitz <keiths@redhat.com>
9943
9944 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
9945 (core_addr_to_string_nz): New function.
9946
9947 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
9948
9949 * arm-linux-nat.c: Really include arm-tdep.h.
9950 * config/arm/tm-linux.h (struct type, struct value): Declare.
9951
9952 2002-02-11 Michael Snyder <msnyder@redhat.com>
9953
9954 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
9955 (gcore section): Ifdef for Solaris and Unixware only.
9956 (procfs_do_thread_registers): Unixware needs one lwpstatus
9957 per thread (not one prstatus or pstatus).
9958 (procfs_make_note_section): Iterate only over kernel threads (lwps),
9959 not over all gdb threads. For unixware, call elfcore_write_pstatus
9960 once before iterating over threads.
9961
9962 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
9963
9964 * arm-tdep.h: New file.
9965 * arm-tdep.c: Include arm-tdep.h.
9966 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
9967 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
9968 (arm_print_float_info, arm_register_type, convert_to_extended)
9969 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
9970 (arm_extract_return_value, arm_register_name): Make static.
9971 (arm_software_single_step): Similarly. Fix types in declaration.
9972 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
9973 (arm_store_return_value, arm_store_struct_return): New functions.
9974 (arm_gdbarch_init): Register the above functions. Also register
9975 call_dummy_start_offset, sizeof_call_dummy_words,
9976 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
9977 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
9978 max_register_virtual_size, register_size. Set up
9979 prologue_cache.saved_regs here, rather than ...
9980 (_initialize_arm_tdep): ... here.
9981 * config/arm/tm-arm.h (struct type, struct value): Delete forward
9982 declarations.
9983 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
9984 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
9985 (arm_print_float_info, arm_register_type, convert_to_extended)
9986 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
9987 (arm_extract_return_value, arm_register_name): Delete declarations.
9988 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
9989 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
9990 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
9991 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
9992 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
9993 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
9994 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
9995 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
9996 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
9997 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
9998 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
9999 (arm_get_next_pc): No-longer static -- these are needed by the RDI
10000 interface.
10001 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
10002 * remote-rdi.c remote-rdp.c: Likewise.
10003 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
10004 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
10005 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
10006 definition.
10007
10008 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
10009 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
10010 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
10011 from non-ARM_ prefixed definitions.
10012 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
10013 all uses of above.
10014 * remote-rdi.c remote-rdp.c: Likewise.
10015 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
10016
10017 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
10018
10019 * arm-tdep.c (arm_frameless_function_invocation)
10020 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
10021 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
10022 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
10023 (arm_pop_frame, arm_get_next_pc): Make static.
10024 (arm_gdbarch_init): Register above in gdbarch structure.
10025 (arm_read_fp): Renamed from arm_target_read_fp.
10026 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
10027 * config/arm/tm-arm.h (arm_frameless_function_invocation)
10028 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
10029 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
10030 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
10031 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
10032 (arm_pc_is_thumb_dummy): Delete declarations.
10033 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
10034 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
10035 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
10036 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
10037
10038 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
10039
10040 * symtab.c (compare_search_syms): New function.
10041 (sort_search_symbols): New function.
10042 (search_symbols): Sort symbols after searching rather than
10043 before.
10044
10045 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10046
10047 * NEWS: Linux -> GNU/Linux.
10048
10049 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10050
10051 * gdbarch.sh: For for level one methods, disallow a definition
10052 when partially multi-arched. Add comments explaining rationale.
10053 * gdbarch.h: Re-generate.
10054
10055 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10056
10057 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
10058 multi-arch partial.
10059
10060 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10061
10062 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
10063 field. Use diff -u.
10064 * gdbarch.c: Re-generate.
10065
10066 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10067
10068 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
10069 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
10070 partial.
10071
10072 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10073
10074 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
10075 multi-arch partial.
10076 (PUSH_ARGUMENTS): Switch to using predefault.
10077 * gdbarch.c: Regenerate.
10078
10079 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10080
10081 * valops.c (PUSH_ARGUMENTS): Delete definition.
10082 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
10083 partial. Default to default_push_arguments.
10084 * gdbarch.h, gdbarch.c: Regenerate.
10085
10086 2002-02-09 Andrew Cagney <ac131313@redhat.com>
10087
10088 * defs.h (throw_exception): Rename return_to_top_level. Update
10089 comments.
10090 * utils.c (error_stream, internal_verror, quit): Ditto.
10091 * top.c (throw_exception, catcher): Ditto.
10092 * sparclet-rom.c (sparclet_load): Ditto.
10093 * remote.c (interrupt_query, minitelnet): Ditto.
10094 * remote-sds.c (interrupt_query): Ditto.
10095 * remote-mips.c (mips_error, mips_kill): Ditto.
10096 * ocd.c (interrupt_query): Ditto.
10097 * monitor.c (monitor_interrupt_query): Ditto.
10098 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
10099 * target.h: Update comment.
10100
10101 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
10102
10103 2002-02-09 Andrew Cagney <ac131313@redhat.com>
10104
10105 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
10106 default_double_format.
10107 * gdbarch.h, gdbarch.c: Re-generate.
10108 * findvar.c (floatformat_unknown): Delete variable definition.
10109 * doublest.h (floatformat_unknown): Delete variable declaration.
10110
10111 2002-02-09 Jim Blandy <jimb@redhat.com>
10112
10113 * stabsread.c (read_type): Add code to parse Sun's syntax for
10114 prototyped function types.
10115
10116 2002-02-09 Andrew Cagney <ac131313@redhat.com>
10117
10118 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
10119 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
10120
10121 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10122
10123 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
10124 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
10125 now _initialize_xcoffsolib gets called again and overrides the
10126 commands from solib.c in a native configuration.
10127
10128 2002-02-09 Mark Kettenis <kettenis@gnu.org>
10129
10130 * doublest.c (store_typed_floating): Don't try to return a value.
10131 Fixes PR gdb/290.
10132
10133 2002-02-08 Jim Blandy <jimb@redhat.com>
10134
10135 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
10136 is prototyped and has no arguments, print its argument list as
10137 `(void)'.
10138
10139 2002-02-08 Chris Demetriou <cgd@broadcom.com>
10140
10141 * MAINTAINERS (write-after-approval): Add myself.
10142 (paper-trail): I've escaped!
10143
10144 2002-02-08 Christopher Faylor <cgf@redhat.com>
10145
10146 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
10147 changes.
10148 (_initialize_check_for_gdb_ini): Ditto.
10149
10150 2002-02-08 Martin M. Hunt <hunt@redhat.com>
10151
10152 * win32-nat.c (cygwin_pid_to_str): Fix typo.
10153 xaprintf -> xasprintf.
10154
10155 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
10156
10157 * win32-nat.c: Remove use of printf and sprintf functions.
10158
10159 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
10160
10161 * arm-tdep.c (arm_frame_chain_valid): Make static.
10162 (arm_push_arguments): Likewise.
10163 (arm_gdbarch_init): New function.
10164 (_initialize_arm_tdep): Call it.
10165 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
10166 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
10167 (FRAME_CHAIN_VALID): Delete.
10168 (arm_frame_chain_valid): Delete declaration.
10169 (PUSH_ARGUMENTS): Delete.
10170 (arm_push_arguments): Delete declaration.
10171 (CALL_DUMMY_P): Delete.
10172
10173 2002-02-08 Andrew Cagney <ac131313@redhat.com>
10174 Corinna Vinschen <vinschen@redhat.com>
10175
10176 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
10177 on builtin float types.
10178
10179 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
10180
10181 * utils.c: Include <curses.h> before "bfd.h".
10182 * tui/tui-hooks.c: Likewise.
10183 * tui/tui.c: Likewise.
10184 * tui/tuiCommand.c: Likewise.
10185 * tui/tuiData.c: Likewise.
10186 * tui/tuiDataWin.c: Likewise.
10187 * tui/tuiDisassem.c: Likewise.
10188 * tui/tuiGeneralWin.c: Likewise.
10189 * tui/tuiIO.c: Likewise.
10190 * tui/tuiLayout.c: Likewise.
10191 * tui/tuiRegs.c: Likewise.
10192 * tui/tuiSource.c: Likewise.
10193 * tui/tuiSourceWin.c: Likewise.
10194 * tui/tuiStack.c: Likewise.
10195 * tui/tuiWin.c: Likewise.
10196
10197 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
10198
10199 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
10200 to include space for pseudoregs as well. Update loops accordingly.
10201 (sh_fp_frame_init_saved_regs): Ditto.
10202 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
10203
10204 2002-02-07 Andrew Cagney <ac131313@redhat.com>
10205
10206 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
10207 Add Richard Earnshaw to Arm maintainers.
10208
10209 2002-02-07 Andrew Cagney <ac131313@redhat.com>
10210
10211 * defs.h (warning_begin): Delete declaration.
10212
10213 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
10214 Delete macro.
10215
10216 2002-02-07 Michael Snyder <msnyder@redhat.com>
10217
10218 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
10219 Logic bug, remove misplaced else.
10220
10221 2002-02-07 Klee Dienes <klee@apple.com>
10222
10223 * fork-inferior.c (fork_inferior): Add '!' to the list of
10224 characters that need to be quoted when building a string for the
10225 shell. Quote '!' specifically with a backslash, since CSH chokes
10226 when trying to evaluate "str!str".
10227
10228 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
10229
10230 * rdi-share/host.h: Only provide a typedef for bool if it is not
10231 defined.
10232
10233 2002-02-04 Michael Snyder <msnyder@redhat.com>
10234
10235 * breakpoint.h (enum bptype): Add new overlay event bp type.
10236 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
10237
10238 * breakpoint.c (create_internal_breakpoint): New function.
10239 (internal_breakpoint_number): Moved into create_internal_breakpoint.
10240 (create_longjmp_breakpoint): Use create_internal_breakpoint.
10241 (create_thread_event_breakpoint): Ditto.
10242 (create_solib_event_breakpoint): Ditto.
10243 (create_overlay_event_breakpoint): New function.
10244 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
10245 (update_breakpoints_after_exec): Delete and re-initialize
10246 overlay event breakpoints after an exec. Add FIXME comment
10247 about longjmp breakpoint.
10248 (print_it_typical): Ignore overlay event breakpoints.
10249 (print_one_breakpoint): Ditto.
10250 (mention): Ditto.
10251 (bpstat_what): Do not stop for overlay event breakpoints.
10252 (delete_breakpoint): Don't delete overlay event breakpoints.
10253 (breakpoint_re_set_one): Delete the overlay event breakpoint.
10254 (breakpoint_re_set): Re-create overlay event breakpoint.
10255
10256 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
10257 (overlay_manual_command): Disable overlay breakpoints.
10258 (overlay_off_command): Disable overlay breakpoints.
10259
10260 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
10261
10262 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
10263 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
10264 to here from config/tm-arm.h.
10265 (coff_sym_is_thumb): Make static.
10266 (arm_elf_make_msymbol_special): New function.
10267 (arm_coff_make_msymbol_special): New function.
10268 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
10269 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
10270 (coff_sym_is_thumb): Delete declaration.
10271 (arm_elf_make_msymbol_special): Declare.
10272 (arm_coff_make_msymbol_special): Declare.
10273 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
10274 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
10275
10276 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
10277
10278 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
10279
10280 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
10281
10282 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
10283 * gdbarch.c gdbarch.h: Regenerate.
10284 * arch-utils.c (default_print_float_info): New function.
10285 * arch-utils.h (default_print_float_info): Prototype it.
10286 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
10287 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
10288 (PRINT_FLOAT_INFO): Document it.
10289
10290 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
10291 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
10292 (PRINT_FLOAT_INFO): Define.
10293
10294 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
10295
10296 * win32-nat.c (_initialize_check_for_gdb_ini):
10297 Add typecast to sprintf argument to suppress a warning.
10298
10299 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
10300
10301 * win32-nat.c (last_sig): Changed type of variable to target_signal,
10302 to allow easier handling of pass state.
10303 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
10304 that gives exception name and address.
10305 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
10306 and set last_sig value to ourstatus->value.sig. Some missing
10307 exceptions added.
10308 (child_continue): Correctly report continue_status.
10309 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
10310 TARGET_SIGNAL_0 (new default value).
10311 (child_resume): consider sig argument passed to decide if
10312 the exception should be passed to debuggee or not.
10313
10314 2002-02-05 Michael Snyder <msnyder@redhat.com>
10315
10316 * regcache.c (fetch_register): Call target_fetch_register
10317 only if we don't call FETCH_PSEUDO_REGISTER.
10318 (store_register): Call target_store_register only if we
10319 don't call STORE_PSEUDO_REGISTER.
10320
10321 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
10322
10323 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
10324 ELF_MAKE_MSYMBOL_SPECIAL.
10325 * gdbarch.c, gdbarch.h: Regenerate.
10326 * arch-utils.c (default_make_msymbol_special): New function.
10327 * arch-utils.h (default_make_msymbol_special): Export.
10328 * elfread.c (elf_symtab_read): Compile use of
10329 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
10330 multiarched.
10331 * coffread.c (coff_symtab_read): Ditto, for
10332 COFF_MAKE_MSYMBOL_SPECIAL.
10333
10334 2002-02-05 Jim Blandy <jimb@redhat.com>
10335
10336 * solib-svr4.c (svr4_truncate_ptr): New function.
10337 (svr4_relocate_section_addresses): Do the address arithmetic with
10338 the appropriate truncation for target addresses, even when
10339 CORE_ADDR is larger than a target address.
10340
10341 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10342
10343 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
10344 to (int *).
10345
10346 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10347
10348 * gdbserver/linux-low.c (kill_inferior): Remove commented out
10349 code.
10350
10351 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10352
10353 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
10354
10355 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10356
10357 * gdbserver/linux-low.c: Remove unused include files.
10358
10359 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10360
10361 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
10362 (read_inferior_memory): Use it.
10363 (write_inferior_memory): Likewise.
10364
10365 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10366
10367 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
10368 grubbing through sys_errlist.
10369
10370 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10371
10372 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
10373
10374 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
10375 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
10376
10377 2002-02-04 Andrew Cagney <ac131313@redhat.com>
10378
10379 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
10380 (do_sfunc, set_cmd_sfunc): New functions.
10381
10382 * command.h (struct cmd_list_element): Add field func.
10383 * cli/cli-decode.h (struct cmd_list_element): Ditto.
10384 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
10385 * cli/cli-decode.h: Ditto.
10386
10387 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
10388 (help_all, help_cmd_list): Ditto.
10389 (find_cmd, complete_on_cmdlist): Ditto.
10390 * top.c (execute_command): Ditto.
10391
10392 * cli/cli-setshow.c (do_setshow_command): Call func instead of
10393 function.sfunc.
10394
10395 * infcmd.c (notice_args_read): Fix function signature.
10396
10397 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
10398 * cli/cli-decode.c (add_set_cmd): Ditto.
10399 * utils.c (initialize_utils): Ditto.
10400 * maint.c (_initialize_maint_cmds): Ditto.
10401 * infrun.c (_initialize_infrun): Ditto.
10402 * demangle.c (_initialize_demangler): Ditto.
10403 * remote.c (add_packet_config_cmd): Ditto.
10404 * mips-tdep.c (_initialize_mips_tdep): Ditto.
10405 * cris-tdep.c (_initialize_cris_tdep): Ditto.
10406 * proc-api.c (_initialize_proc_api): Ditto.
10407 * kod.c (_initialize_kod): Ditto.
10408 * valprint.c (_initialize_valprint): Ditto.
10409 * top.c (init_main): Ditto.
10410 * infcmd.c (_initialize_infcmd): Ditto.
10411 * corefile.c (_initialize_core): Ditto.
10412 * arm-tdep.c (_initialize_arm_tdep): Ditto.
10413 * arch-utils.c (initialize_current_architecture): Ditto.
10414 (_initialize_gdbarch_utils): Ditto.
10415 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
10416
10417 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
10418 * wince.c (_initialize_inftarg): Ditto.
10419 * symfile.c (_initialize_symfile): Ditto.
10420 * mips-tdep.c (_initialize_mips_tdep): Ditto.
10421 * language.c (_initialize_language): Ditto.
10422 * arc-tdep.c (_initialize_arc_tdep): Ditto.
10423
10424 2002-02-04 Michael Snyder <msnyder@redhat.com>
10425
10426 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
10427
10428 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
10429
10430 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
10431 Add rules for building the register data files.
10432
10433 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
10434
10435 * regformats/regdat.sh: Add braces to the definition of
10436 expedite_regs_${arch}.
10437
10438 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
10439
10440 * regformats/regdef.h (struct reg): Add comment describing the
10441 requirements for offset and size fields.
10442
10443 2002-02-04 Andreas Schwab <schwab@suse.de>
10444
10445 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
10446 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
10447
10448 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
10449
10450 * gdbarch.sh (copyright): Update years in generated header.
10451 (SMASH_TEXT_ADDRESS): Add rule.
10452 * gdbarch.h, gdbarch.c: Re-generate.
10453 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
10454 * dbxread.c: Likewise.
10455 * dwarfread.c: Likewise.
10456 * elfread.c: Likewise.
10457 * somread.c: Likewise.
10458
10459 * arm-tdep.c (arm_smash_text_address): New function.
10460 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
10461
10462 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
10463
10464 Add support for hardware watchpoints on win32 native.
10465 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
10466 CONTEXT_DEBUG_REGISTERS.
10467 (dr variable): New variable. Static array containing a local copy
10468 of debug registers.
10469 (debug_registers_changed): New variable. Reflects when debug registers
10470 are changed and need to be written to inferior.
10471 (debug_registers_used): New variable. Reflects when any debug register
10472 was set, used when new threads are created.
10473 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
10474 i386-nat code.
10475 (thread_rec): Set dr array if id is the thread of current_event .
10476 (child_continue, child_resume): Change the debug registers for all
10477 threads if debug_registers_changed.
10478 (child_add_thread): Change the debug registers if debug_registers_used.
10479 * config/i386/cygwin.mh: Add use of i386-nat.o file.
10480 Link nm.h to new nm-cygwin.h file.
10481 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
10482 of hardware registers.
10483
10484 2002-02-03 Andrew Cagney <ac131313@redhat.com>
10485
10486 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
10487 Restore behavour broken by 2002-01-20 Andrew Cagney
10488 <ac131313@redhat.com> IEEE_FLOAT removal.
10489
10490 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
10491
10492 * c-valprint.c (c_val_print): Pass a proper valaddr to
10493 cp_print_class_method.
10494 * valops.c (search_struct_method): If there is only one method
10495 and args is NULL, return that method.
10496
10497 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
10498
10499 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
10500 accessing tag_name directly.
10501
10502 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
10503
10504 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
10505 of accessing tag_name directly.
10506
10507 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
10508
10509 PR gdb/280
10510 * gdbtypes.c (replace_type): New function.
10511 * gdbtypes.h (replace_type): Add prototype.
10512 * stabsread.c (read_type): Use replace_type.
10513
10514 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
10515
10516 * Makefile.in (memattr.o): Add missing dependencies rule.
10517
10518 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10519
10520 * breakpoint.c (break_at_finish_command): Really export.
10521 (break_at_finish_at_depth_command): Ditto.
10522 (tbreak_at_finish_command): Ditto.
10523 * hppa-tdep.c: Include completer.h.
10524 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
10525 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
10526
10527 2002-02-01 Andrew Cagney <ac131313@redhat.com>
10528
10529 * utils.c (do_write): New function.
10530 (error_stream): Rewrite combining the code from error_begin and
10531 verror.
10532 (verror): Rewrite using error_stream.
10533 (error_begin): Delete function.
10534
10535 2002-02-01 Andrew Cagney <ac131313@redhat.com>
10536
10537 * utils.c (error_begin): Make static.
10538 * defs.h (error_begin): Delete declaration.
10539
10540 * linespec.c (cplusplus_error): Replace cplusplus_hint.
10541 (decode_line_1): Use cplusplus_error instead of error_begin,
10542 cplusplus_hint and return_to_top_level.
10543 * coffread.c (coff_symfile_read): Use error instead of error_begin
10544 and return_to_top_level.
10545 * infrun.c (default_skip_permanent_breakpoint): Ditto.
10546
10547 2002-02-01 Andrew Cagney <ac131313@redhat.com>
10548
10549 * language.h (type_error, range_error): Make string parameter
10550 constant.
10551 * language.c (warning_pre_print): Delete extern declaration.
10552 * dwarfread.c (warning_pre_print): Ditto.
10553 * language.c (type_error, range_error): Rewrite to use verror and
10554 vwarning instead of warning_begin.
10555
10556 2002-02-01 Michael Snyder <msnyder@redhat.com>
10557
10558 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
10559 (set_ignore_count): Move misplaced comment back where it belongs.
10560
10561 2002-02-01 Andrew Cagney <ac131313@redhat.com>
10562
10563 * command.h (NO_FUNCTION): Delete macro.
10564 * cli/cli-decode.h (NO_FUNCTION): Ditto.
10565 * top.c (execute_command): Replace NO_FUNCTION with NULL.
10566 * tracepoint.c (_initialize_tracepoint): Ditto.
10567 * cli/cli-decode.c (add_set_cmd): Ditto.
10568 * cli/cli-cmds.c (init_cli_cmds): Ditto.
10569
10570 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
10571
10572 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
10573 Update ``this'' pointer when calling virtual functions.
10574
10575 2002-02-01 Michael Snyder <msnyder@redhat.com>
10576
10577 * breakpoint.c (create_temp_exception_breakpoint): Delete.
10578 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
10579
10580 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
10581
10582 * regformats/reg-arm.dat: New file.
10583 * regformats/reg-i386.dat: New file.
10584 * regformats/reg-ia64.dat: New file.
10585 * regformats/reg-m68k.dat: New file.
10586 * regformats/reg-mips.dat: New file.
10587 * regformats/reg-ppc.dat: New file.
10588 * regformats/reg-sh.dat: New file.
10589 * regformats/regdef.h: New file.
10590 * regformats/regdat.sh: New file.
10591
10592 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
10593
10594 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
10595 (arm_frame_args_address, arm_frame_locals_address): New functions.
10596 (arm_frame_num_args): New function.
10597 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
10598 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
10599 (FRMA_NUM_ARGS): Call arm_frame_num_args.
10600
10601 2002-01-31 Michael Snyder <msnyder@redhat.com>
10602
10603 * breakpoint.c (break_at_finish_command): Export.
10604 (break_at_finish_at_depth_command): Export.
10605 (tbreak_at_finish_command): Export.
10606 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
10607 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
10608 "txbreak" commands, which are HPPA specific.
10609
10610 * printcmd.c (disassemble_command): Remove an ancient
10611 artifact of an old merge.
10612
10613 * symfile.h (enum overlay_debugging_state):
10614 Define enum constant values for overlay mode.
10615 * symfile.c (overlay_debugging): Use enums instead of literals.
10616 (overlay_is_mapped, overlay_auto_command,
10617 overlay_manual_command): Ditto.
10618
10619 * breakpoint.c (insert_breakpoints, remove_breakpoint,
10620 breakpoint_here_p, breakpoint_inserted_here_p,
10621 breakpoint_thread_match, bpstat_stop_status,
10622 describe_other_breakpoints, check_duplicates, clear_command):
10623 Coding standard fixes.
10624
10625 * target.c (target_xfer_memory): Add spaces, coding standard.
10626 (do_xfer_memory): Add missing line to trust-readonly
10627 code: check bfd SEC_READONLY flag for section.
10628
10629 2002-01-31 Andrew Cagney <ac131313@redhat.com>
10630
10631 * PROBLEMS: Fix typo, 5.1->5.1.1.
10632
10633 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
10634
10635 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
10636 data symbols, since we search based on textlow and texthigh.
10637 (find_pc_sect_symtab): Likewise.
10638
10639 2002-01-30 Andrew Cagney <ac131313@redhat.com>
10640
10641 * defs.h (vwarning): Declare.
10642 * utils.c (vwarning): New function.
10643 (warning): Call vwarning.
10644 (warning_begin): Delete function.
10645
10646 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
10647 the warning message.
10648 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
10649 warning_begin.
10650
10651 2002-01-30 Michael Snyder <msnyder@redhat.com>
10652
10653 * NEWS: Mention "set trust-readonly-sections" command.
10654 Mention generate-core-file command.
10655
10656 2002-01-15 Michael Snyder <msnyder@redhat.com>
10657
10658 * target.c: New command, "set trust-readonly-sections on".
10659 (do_xfer_memory): Honor the suggestion to trust readonly sections
10660 by reading them from the object file instead of from the target.
10661 (initialize_targets): Register command "set trust-readonly-sections".
10662
10663 2002-01-29 Andrew Cagney <ac131313@redhat.com>
10664
10665 * parse.c (target_map_name_to_register): Simplify, search regs and
10666 pseudo-regs using a single loop.
10667
10668 2002-01-30 Andrew Cagney <ac131313@redhat.com>
10669
10670 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
10671
10672 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
10673
10674 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
10675 * config/i386/i386v42mp.mh: Add i387-nat.o .
10676 * i386v4-nat.c: Include i387-nat.h.
10677 (supply_fpregset): Use i387_supply_fsave.
10678 (fill_fpregset): Use i387_fill_fsave.
10679
10680 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
10681
10682 * arm-tdep.c (arm_call_dummy_words): Define.
10683 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
10684 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
10685 (CALL_DUMMY_WORDS): Define.
10686 (arm_call_dummy_words): Declare.
10687 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
10688 (arm_linux_call_dummy_words): Declare.
10689
10690 2002-01-30 Andreas Schwab <schwab@suse.de>
10691
10692 * m68klinux-nat.c: Fix last change to use regcache_collect
10693 instead of referencing registers[] directly.
10694
10695 2002-01-29 Andrew Cagney <ac131313@redhat.com>
10696
10697 * parse.c (target_map_name_to_register): Delete code wrapped in
10698 #ifdef REGISTER_NAME_ALIAS_HOOK.
10699
10700 2002-01-28 Michael Snyder <msnyder@redhat.com>
10701
10702 * regcache.c (legacy_read_register_gen): Need to be able to
10703 read pseudo-register as well as real register.
10704 (legacy_write_register_gen): Ditto.
10705
10706 2002-01-28 Andrew Cagney <ac131313@redhat.com>
10707
10708 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
10709 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
10710 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
10711 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
10712 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
10713 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
10714 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
10715 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
10716 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
10717 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
10718 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
10719 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
10720 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
10721 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
10722 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
10723 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
10724 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
10725 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
10726 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
10727 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
10728
10729 2002-01-28 Andrew Cagney <ac131313@redhat.com>
10730
10731 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
10732 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
10733 (initialize_current_architecture): Update target_byte_order using
10734 information from BFD.
10735 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
10736 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
10737
10738 2002-01-28 Andrew Cagney <ac131313@redhat.com>
10739
10740 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
10741 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
10742
10743 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
10744 #ifdef INVALID_FLOAT.
10745 * infcmd.c (do_registers_info): Ditto.
10746 * values.c (unpack_double): Ditto. Add comment.
10747
10748 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
10749 already commented out.
10750
10751 2002-01-26 Andreas Schwab <schwab@suse.de>
10752
10753 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
10754 * m68klinux-nat.c: Update ptrace interface for fetching/storing
10755 registers and add support for PTRACE_GETREGS.
10756
10757 2002-01-24 Andrew Cagney <ac131313@redhat.com>
10758
10759 GDB 5.1.1 released from 5.1 branch.
10760 * NEWS: Add 5.1.1 news.
10761 * README: Sync with 5.1 branch.
10762
10763 2002-01-23 Fred Fish <fnf@redhat.com>
10764
10765 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
10766 stabstring on initial malloc. Reallocing will copy it for us,
10767 if necessary.
10768
10769 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
10770
10771 * Makefile.in (hpread_h): Delete.
10772 (HFILES_NO_SRCDIR): Remove hpread.h.
10773 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
10774 (hpread.o): Update dependencies.
10775 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
10776
10777 * hp-psymtab-read.c: Remove file.
10778 * hp-symtab-read.c: Remove file.
10779 * hpread.h: Remove file.
10780
10781 * hpread.c: Merge all contents of hp-psymtab-read.c,
10782 hp-symtab-read.c and hpread.h into this file, as it was prior to
10783 January 1999.
10784
10785 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
10786 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
10787 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
10788 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
10789
10790 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
10791
10792 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
10793 fill_gregset): Call gdbarch_tdep() just once, assign result to
10794 variable and use that, instead of calling the function several
10795 times.
10796
10797 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
10798
10799 * configure.host: Accept sparcv9 as alias for sparc64.
10800 * configure.tgt: Likewise.
10801
10802 2002-01-22 Kevin Buettner <kevinb@redhat.com>
10803
10804 * solib-aix5.c (build_so_list_from_mapfile)
10805 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
10806 arguments is not reversed.
10807 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
10808 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
10809
10810 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
10811
10812 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
10813 modified version of obsolete sh_fetch_pseudo_register.
10814 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
10815 (sh4_register_read): New function.
10816 (sh_pseudo_register_write): New function. Renamed and modified
10817 version of obsolete sh_store_pseudo_register.
10818 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
10819 (sh4_register_write): New function.
10820 (sh_gdbarch_init): Remove setting of gdbarch function
10821 fetch_pseudo_register and store_pseudo_register. Remove setting of
10822 register_convert_to_raw, register_convert_to_virtual,
10823 register_convertible.
10824 (sh_sh4_register_convertible): Delete. No longer needed. All is
10825 taken care by architecture specific functions
10826 register_read/register_write.
10827 (sh_sh4_register_convert_to_virtual): Make static.
10828 (sh_sh4_register_convert_to_raw): Ditto.
10829
10830 2002-01-22 Andrew Cagney <ac131313@redhat.com>
10831
10832 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
10833 (floatformat_is_nan, floatformat_mantissa): Ditto.
10834
10835 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
10836 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
10837 builtin_type_ieee_double_little,
10838 builtin_type_ieee_double_littlebyte_bigword,
10839 builtin_type_m68881_ext, builtin_type_i960_ext,
10840 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
10841 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
10842 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
10843 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
10844
10845 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
10846
10847 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
10848 parameter. Set frameless flag if it exists and depended of
10849 whether the scanned function is frameless or not.
10850 (xstormy16_skip_prologue): If function is frameless, return
10851 result of xstormy16_scan_prologue().
10852 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
10853 call.
10854
10855 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
10856
10857 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
10858 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
10859 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
10860 sh_sh4_register_byte, sh_sh4_register_raw_size,
10861 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
10862 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
10863 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
10864 sh_store_pseudo_register, sh_do_pseudo_register): Call
10865 gdbarch_tdep() just once, assign result to variable and use that,
10866 instead of calling the function several times.
10867
10868 2002-01-20 Mark Kettenis <kettenis@gnu.org>
10869
10870 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
10871 macros instead of LAST_FPU_CTRL_REGNUM.
10872 (store_register): Likewise.
10873
10874 2002-01-21 Jim Blandy <jimb@redhat.com>
10875
10876 * infcmd.c (run_command): Check that the `exec' target layer's BFD
10877 is up-to-date before running the program, not just when a program
10878 exits.
10879
10880 2002-01-21 Fred Fish <fnf@redhat.com>
10881
10882 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
10883 when we have found all instructions we are looking for.
10884
10885 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
10886
10887 * arm-tdep.c (arm_register_name): New function.
10888 (arm_registers_names): Make static.
10889 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
10890 (arm_register_name): Declare.
10891 (REGISTER_NAME): Use it.
10892
10893 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
10894 Kevin Buettner <kevinb@redhat.com>
10895
10896 Convert arm targets to new FRAME interface.
10897 * arm-tdep.c (struct frame_extra_info): Remove fsr.
10898 (arm_frame_find_save_regs): Delete.
10899 (arm_frame_init_saved_regs): New.
10900 (arm_init_extra_frame_info): Alloacte saved_regs as required.
10901 Allocate extra_info as required. Convert all uses of fsr.regs
10902 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
10903 to use extra_info.
10904 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
10905 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
10906 (check_prologue_cache, save_prologue_cache): Likewise.
10907 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
10908 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
10909 (FRAME_FIND_SAVED_REGS): Delete.
10910 (arm_frame_find_saved_regs): Delete prototype.
10911 (arm_frame_init_saved_regs): New prototype.
10912 (FRAME_INIT_SAVED_REGS): Define.
10913
10914 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10915
10916 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
10917
10918 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10919
10920 From Jeff Law <law@redhat.com>:
10921 * infttrace.c: Include <sys/pstat.h>.
10922 (child_pid_to_exec_file): Revamp. Use pstat call to get the
10923 exec file if the ttrace equivalent fails.
10924
10925 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10926
10927 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
10928 (closeLogFile): Ditto.
10929
10930 2002-01-20 Michael Chastain <mec@shout.net>
10931
10932 * top.c (print_gdb_version): Bump copyright year to 2002.
10933
10934 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10935
10936 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
10937 Zannoni and Eli Zaretskii.
10938
10939 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
10940
10941 * buildsym.c: Update copyright years.
10942 * c-typeprint.c: Likewise.
10943 * dwarf2read.c: Likewise.
10944 * f-typeprint.c: Likewise.
10945 * gdbtypes.c: Likewise.
10946 * gdbtypes.h: Likewise.
10947 * hp-symtab-read.c: Likewise.
10948 * hpread.c: Likewise.
10949 * mdebugread.c: Likewise.
10950 * p-typeprint.c: Likewise.
10951
10952 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10953
10954 * remote-sim.c (gdbsim_open): Simplify code testing the macro
10955 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
10956 byte-order selectable.
10957 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
10958 * arch-utils.c: Ditto.
10959 (set_endian): Ditto.
10960 (set_endian_from_file): Ditto.
10961 * gdbserver/low-sim.c (create_inferior): Ditto.
10962 * gdbarch.sh: Ditto.
10963 * gdbarch.h: Re-generate.
10964 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10965 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
10966 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
10967 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10968 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10969 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10970 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
10971 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
10972 macro definition.
10973 * config/mips/tm-wince.h: Remove #undef of macro
10974 TARGET_BYTE_ORDER_SELECTABLE.
10975 * config/sh/tm-wince.h: Ditto.
10976
10977 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
10978
10979 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
10980 member function fields. Add accessor macro
10981 TYPE_FN_FIELD_ARTIFICIAL.
10982 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
10983 * c-typeprint.c (c_type_print_base): Skip artificial member
10984 functions.
10985
10986 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
10987
10988 * f-typeprint.c: Delete unused function f_type_print_args.
10989 * p-typeprint.c: Delete unused function pascal_type_print_args.
10990
10991 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
10992
10993 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
10994 comment. Add ``artificial'' to ``union field_location''.
10995
10996 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
10997
10998 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
10999 * mdebugread.c (parse_symbol): Likewise.
11000 * stabsread.c (define_symbol): Likewise.
11001 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
11002 initializing TYPE_FIELD_BITPOS to n (obsolete).
11003 (hpread_doc_function_type): Likewise.
11004 * hpread.c (hpread_function_type): Likewise.
11005
11006 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11007
11008 * configure.in (host_makefile_frag): Only require a host makefile
11009 fragment when a native build.
11010 * configure: Re-generate.
11011
11012 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11013
11014 * doublest.h (floatformat_from_type): Declare.
11015 * doublest.c (floatformat_from_type): New function.
11016 (convert_typed_floating): Use.
11017
11018 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
11019 call to function floatformat_from_type.
11020
11021 * gdbarch.sh (IEEE_FLOAT): Delete.
11022 * gdbarch.h, gdbarch.c: Re-generate.
11023 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
11024 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
11025 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
11026 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
11027 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
11028 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
11029 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
11030 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
11031 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
11032 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
11033 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
11034 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
11035
11036 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
11037 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
11038 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
11039 * sh-tdep.c (sh_gdbarch_init): Ditto.
11040 * mips-tdep.c (mips_gdbarch_init): Ditto.
11041 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11042 * cris-tdep.c (cris_gdbarch_init): Ditto.
11043
11044 2002-01-20 Jiri Smid <smid@suse.cz>
11045
11046 * configure.host, configure.tgt: Support x86-64.
11047 * NEWS: Note new target x86-64.
11048
11049 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
11050 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
11051 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
11052 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
11053 x86-64-linux-nat.o): Fix dependencies.
11054
11055 2002-01-19 Andrew Cagney <ac131313@redhat.com>
11056
11057 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
11058 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
11059 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
11060 * config/sparc/xm-sun4os4.h: Delete file.
11061 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
11062
11063 2002-01-19 Andrew Cagney <ac131313@redhat.com>
11064
11065 * config/sparc/sparclynx.mh (XM_FILE): Delete.
11066 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
11067 * config/m68k/m68klynx.mh (XM_FILE): Delete.
11068 * config/i386/i386lynx.mh (XM_FILE): Delete.
11069 * config/rs6000/xm-rs6000ly.h: Delete file.
11070 * config/sparc/xm-sparclynx.h: Delete file.
11071 * config/m68k/xm-m68klynx.h: Delete file.
11072 * config/i386/xm-i386lynx.h: Delete file.
11073 * config/xm-lynx.h: Delete file.
11074 * config/djgpp/fnchange.lst: Update.
11075
11076 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11077
11078 * alpha-tdep.c (alpha_register_byte): New function.
11079 (alpha_register_raw_size): Ditto.
11080 (alpha_register_virtual_size): Ditto.
11081 (alpha_skip_prologue_internal): Renamed from
11082 alpha_skip_prologue.
11083 (alpha_skip_prologue): New version that calls
11084 alpha_skip_prologue_internal.
11085 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
11086 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
11087 second argument from alpha_skip_prologue.
11088 (REGISTER_BYTE): Use alpha_register_byte.
11089 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
11090 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
11091 (FRAMELESS_FUNCTION_INVOCATION): Use
11092 generic_frameless_function_invocation_not.
11093 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
11094 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
11095
11096 2002-01-19 Andrew Cagney <ac131313@redhat.com>
11097
11098 * config/mips/xm-news-mips.h: Delete file.
11099 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
11100
11101 * config/m88k/xm-m88k.h: Delete file.
11102 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
11103 * config/m88k/xm-delta88v4.h: Ditto.
11104 * config/m88k/xm-delta88.h: Ditto.
11105
11106 * config/alpha/xm-fbsd.h: Delete file.
11107 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
11108
11109 * config/sparc/xm-sparc.h: Delete file.
11110 * Makefile.in (xm-sun4os4.h): Delete dependency.
11111 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
11112 * config/sparc/xm-sun4os4.h: Ditto.
11113 * config/sparc/xm-linux.h: Ditto.
11114
11115 * config/i386/xm-windows.h: Delete file.
11116
11117 2002-01-19 Andrew Cagney <ac131313@redhat.com>
11118
11119 * utils.c: Include <sys/param.h> for MAXPATHLEN.
11120 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
11121
11122 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11123
11124 * alpha-tdep.c (alpha_call_dummy_words): New.
11125 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
11126 (CALL_DUMMY_P): Define.
11127 (CALL_DUMMY_WORDS): Define.
11128 (SIZEOF_CALL_DUMMY_WORDS): Define.
11129
11130 2002-01-19 Per Bothner <per@bothner.com>
11131
11132 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
11133 isn't NULL, which can happen with some gcj-3.x-produced code.
11134
11135 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11136
11137 * alpha-tdep.c (alpha_register_virtual_type): New function.
11138 (alpha_init_frame_pc_first): Ditto.
11139 (alpha_fix_call_dummy): Ditto.
11140 (alpha_store_struct_return): Ditto.
11141 (alpha_extract_struct_value_address): Ditto.
11142 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
11143 alpha_register_virtual_type.
11144 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
11145 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
11146 alpha_extract_struct_value_address.
11147 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
11148 (INIT_FRAME_PC): Use init_frame_pc_noop.
11149 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
11150
11151 2002-01-19 Mark Kettenis <kettenis@gnu.org>
11152
11153 * i386gnu-nat.c: Include "i386-tdep.h".
11154 (fetch_fpregs): Simplify code dealing with uninitialized floating
11155 point states such that it doesn't require FP7_REGNUM.
11156
11157 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11158
11159 * alpha-tdep.c (frame_extra_info): New.
11160 (alpha_find_saved_regs): Make static. Use
11161 frame->extra_info.
11162 (alpha_frame_init_saved_regs): New function.
11163 (alpha_frame_saved_pc): Use frame->extra_info.
11164 (temp_saved_regs): Don't declare as struct frame_saved_regs.
11165 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
11166 (init_extra_frame_info): Rename to...
11167 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
11168 (alpha_print_extra_frame_info): New function.
11169 (alpha_frame_locals_address): Ditto.
11170 (alpha_frame_args_address): Ditto.
11171 (alpha_pop_frame): Use frame->extra_info.
11172 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
11173 alpha_frame_args_address.
11174 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
11175 (alpha_find_saved_regs): Remove prototype.
11176 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
11177 (EXTRA_FRAME_INFO): Remove.
11178 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
11179 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
11180
11181 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11182
11183 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
11184 (alpha_cannot_fetch_register): Ditto.
11185 (alpha_cannot_store_register): Ditto.
11186 (alpha_register_convertible): Ditto.
11187 (alpha_use_struct_convention): Ditto.
11188 * config/alpha/tm-alpha.h: Update copyright years.
11189 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
11190 (INNER_THAN): Use core_addr_lessthan.
11191 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
11192 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
11193 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
11194 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
11195 (FRAME_CHAIN): Remove unnecessary cast.
11196
11197 2002-01-18 Andrew Cagney <ac131313@redhat.com>
11198
11199 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
11200 obsolete.
11201
11202 2002-01-18 Andrew Cagney <ac131313@redhat.com>
11203
11204 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
11205 * monitor.c, remote-array.c, remote-bug.c: Ditto.
11206 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
11207 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
11208 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
11209 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
11210 * x86-64-linux-nat.c: Ditto.
11211
11212 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11213
11214 * alpha-tdep.c (alpha_register_name): New function.
11215 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
11216 (REGISTER_NAME): Define.
11217
11218 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11219
11220 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
11221
11222 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11223
11224 * alpha-tdep.c: Update copyright years.
11225 (alpha_next_pc): New function.
11226 (alpha_software_single_step): Ditto.
11227 * config/alpha/tm-alpha.h: Add prototype for
11228 alpha_software_single_step.
11229
11230 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11231
11232 * alphabsd-nat.c: Update copyright years.
11233 (fill_gregset): Use regcache_collect.
11234 (fill_fpregset): Likewise.
11235 (fetch_inferior_registers): Only fetch integer registers
11236 if requested to do so.
11237 (store_inferior_registers): Only store integer registers
11238 if requested to do so.
11239
11240 2002-01-17 Andrew Cagney <ac131313@redhat.com>
11241
11242 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
11243 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
11244 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
11245 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
11246 * config/alpha/fbsd.mh (XDEPFILES): Delete.
11247 * config/arm/linux.mh (XDEPFILES): Delete.
11248 * config/arm/nbsd.mh (XDEPFILES): Delete.
11249 * config/i386/i386dgux.mh (XDEPFILES): Delete.
11250 * config/i386/i386sol2.mh (XDEPFILES): Delete.
11251 * config/i386/i386m3.mh (XDEPFILES): Delete.
11252 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
11253 * config/i386/i386gnu.mh (XDEPFILES): Delete.
11254 * config/i386/fbsd.mh (XDEPFILES): Delete.
11255 * config/i386/i386bsd.mh (XDEPFILES): Delete.
11256 * config/i386/i386sco5.mh (XDEPFILES): Delete.
11257 * config/i386/i386v4.mh (XDEPFILES): Delete.
11258 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
11259 * config/i386/i386sco4.mh (XDEPFILES): Delete.
11260 * config/i386/i386aix.mh (XDEPFILES): Delete.
11261 * config/i386/go32.mh (XDEPFILES): Delete.
11262 * config/i386/cygwin.mh (XDEPFILES): Delete.
11263 * config/i386/i386lynx.mh (XDEPFILES): Delete.
11264 * config/i386/i386mach.mh (XDEPFILES): Delete.
11265 * config/i386/i386v32.mh (XDEPFILES): Delete.
11266 * config/i386/linux.mh (XDEPFILES): Delete.
11267 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
11268 * config/i386/ncr3000.mh (XDEPFILES): Delete.
11269 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
11270 * config/i386/i386sco.mh (XDEPFILES): Delete.
11271 * config/i386/i386v.mh (XDEPFILES): Delete.
11272 * config/i386/nbsd.mh (XDEPFILES): Delete.
11273 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
11274 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
11275 * config/i386/symmetry.mh (XDEPFILES): Delete.
11276 * config/i386/obsd.mh (XDEPFILES): Delete.
11277 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
11278 * config/ia64/linux.mh (XDEPFILES): Delete.
11279 * config/ia64/aix.mh (XDEPFILES): Delete.
11280 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
11281 * config/m68k/dpx2.mh (XDEPFILES): Delete.
11282 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
11283 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
11284 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
11285 * config/m68k/linux.mh (XDEPFILES): Delete.
11286 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
11287 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
11288 * config/m68k/nbsd.mh (XDEPFILES): Delete.
11289 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
11290 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
11291 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
11292 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
11293 * config/m88k/delta88.mh (XDEPFILES): Delete.
11294 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
11295 * config/m88k/m88k.mh (XDEPFILES): Delete.
11296 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
11297 * config/mips/linux.mh (XDEPFILES): Delete.
11298 * config/mips/irix6.mh (XDEPFILES): Delete.
11299 * config/mips/irix5.mh (XDEPFILES): Delete.
11300 * config/mips/irix4.mh (XDEPFILES): Delete.
11301 * config/mips/irix3.mh (XDEPFILES): Delete.
11302 * config/mips/decstation.mh (XDEPFILES): Delete.
11303 * config/mips/mipsm3.mh (XDEPFILES): Delete.
11304 (NATDEPFILES): Move core-aout.o to here.
11305 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
11306 * config/pa/hpux1020.mh (XDEPFILES): Delete.
11307 * config/pa/hppabsd.mh (XDEPFILES): Delete.
11308 * config/pa/hppahpux.mh (XDEPFILES): Delete.
11309 * config/pa/hpux11w.mh (XDEPFILES): Delete.
11310 * config/pa/hppaosf.mh (XDEPFILES): Delete.
11311 * config/pa/hpux11.mh (XDEPFILES): Delete.
11312 * config/powerpc/aix.mh (XDEPFILES): Delete.
11313 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
11314 * config/powerpc/linux.mh (XDEPFILES): Delete.
11315 * config/romp/rtbsd.mh: Rename XDEPFILES.
11316 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
11317 * config/rs6000/aix4.mh (XDEPFILES): Delete.
11318 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
11319 * config/s390/s390.mh (XDEPFILES): Delete.
11320 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
11321 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
11322 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
11323 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
11324 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
11325 * config/sparc/nbsd.mh (XDEPFILES): Delete.
11326 * config/sparc/linux.mh (XDEPFILES): Delete.
11327 * config/vax/vaxult.mh (XDEPFILES): Delete.
11328 * config/vax/vaxult2.mh (XDEPFILES): Delete.
11329 * Makefile.in (DEPFILES): Remove XDEPFILES.
11330
11331 2002-01-17 Andrew Cagney <ac131313@redhat.com>
11332
11333 * utils.c (internal_verror): Fix comments, default is yes not no.
11334 Update queries to match. Default to quit and dump core.
11335
11336 2002-01-17 Andrew Cagney <ac131313@redhat.com>
11337
11338 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
11339 copyright.
11340 * defs.h, event-top.c, gdbcmd.h: Ditto.
11341 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
11342 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
11343 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
11344 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
11345 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
11346 * mi/mi-main.c:Ditto.
11347
11348 * stack.c, symfile.c: Update copyright.
11349
11350 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
11351
11352 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
11353 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
11354 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
11355 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
11356
11357 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
11358
11359 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
11360 * gdbserver/low-lynx.c (myattach): Likewise.
11361 * gdbserver/low-nbsd.c (myattach): Likewise.
11362 * gdbserver/low-sim.c (myattach): Likewise.
11363 * gdbserver/low-sparc.c (myattach): Likewise.
11364 * gdbserver/low-sun3.c (myattach): Likewise.
11365
11366 * gdbserver/low-linux.c (myattach): New function.
11367
11368 * gdbserver/server.c (attach_inferior): New function.
11369 (main): Handle "--attach".
11370
11371 2002-01-16 Andrew Cagney <ac131313@redhat.com>
11372
11373 * MAINTAINERS (language support): Daniel Jacobwitz is C++
11374 maintainer.
11375
11376 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
11377
11378 * c-typeprint.c (is_type_conversion_operator): Add additional
11379 check for non-conversion operators.
11380
11381 2002-01-15 Michael Snyder <msnyder@redhat.com>
11382
11383 * linux-proc.c: Add "info proc" command, a la procfs.c.
11384 (read_mapping): New function, abstract and re-use code.
11385 (linux_find_memory_regions): Use new func read_mapping.
11386 (linux_info_proc_cmd): New function, implement "info proc".
11387 (_initialize_linux_proc): Add new command "info proc".
11388
11389 2002-01-15 Michael Snyder <msnyder@redhat.com>
11390
11391 * symfile.c (generic_load): Use bfd_map_over_sections method
11392 instead of manipulating bfd structure members directly.
11393 (add_section_size_callback): New function, bfd sections callback
11394 used by generic_load.
11395 (load_sections_callback): New function, bfd sections callback
11396 used by generic_load.
11397
11398 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
11399
11400 [Based on work by Jim Blandy]
11401 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
11402 (builtin_type_vec128): Export.
11403 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
11404 types.
11405 (builtin_type_vec128): New builtin type for 128 bit vector
11406 registers.
11407 (build_gdbtypes): Initialize builtin_type_v16qi and
11408 builtin_type_v8hi. Create the vec128 register builtin type
11409 structure.
11410 (build_builtin_type_vec128): New function.
11411 (_initialize_gdbtypes): Register builtin_type_v16qi and
11412 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
11413 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
11414 AltiVec register to new builtin type.
11415
11416 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
11417
11418 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
11419 to make_cv_type.
11420
11421 2002-01-14 Andrew Cagney <ac131313@redhat.com>
11422
11423 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
11424 CLEAN_UP_REGISTER_VALUE.
11425 * regcache.c (supply_register): Update only call.
11426
11427 2002-01-14 Andrew Cagney <ac131313@redhat.com>
11428
11429 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
11430 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
11431 a29k-*-vxworks* targets as obsolete.
11432
11433 2002-01-14 Michael Snyder <msnyder@redhat.com>
11434
11435 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
11436 until we can resolve portability issues.
11437 * gregset.h: Remove references to fpxregs.
11438 * gcore.c (gcore_command): Initialize note_sec to NULL.
11439
11440 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11441
11442 * signals.c (target_signal_to_name): Rewrite. Only use
11443 signals[].name when in bounds and non-NULL.
11444
11445 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11446
11447 From Petr Ledvina <ledvinap@kae.zcu.cz>:
11448 * signals.c (target_signal_to_name): Verify that SIG is within the
11449 bounds of the signals array.
11450
11451 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11452
11453 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
11454
11455 2002-01-13 Keith Seitz <keiths@redhat.com>
11456
11457 * stack.c (print_frame_info_base): Print the frame's pc
11458 only if when print_frame_info_listing_hook is not defined.
11459
11460 2002-01-13 Keith Seitz <keiths@redhat.com>
11461
11462 * varobj.c (varobj_set_value): Make sure that there were no
11463 errors evaluating the object before attempting to set its
11464 value.
11465 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
11466 so this offset adjustment is no longer necessary.
11467 (create_child): Don't set the error flag if the child is
11468 a CPLUS_FAKE_CHILD.
11469 (value_of_child): If value_fetch_lazy fails, return NULL
11470 so that callers will be notified that an error occurred.
11471 (c_value_of_variable): Delay check of variable's validity
11472 until later. We actually want all structs and unions to have
11473 the value "{...}".
11474 Do not return "???" for variables which could not be evaluated.
11475 This error condition must be returned to the caller so that it
11476 can get the error condition from gdb.
11477 (cplus_name_of_child): Adjust index for vptr before figuring
11478 out the name of the child.
11479 (cplus_value_of_child): If a child's (real) parent is not valid,
11480 don't even bother trying to give a value for it. Just return
11481 an error. Change all instances in this function.
11482 (cplus_type_of_child): If our parent is one of the "fake"
11483 parents, we need to get at the type of the real parent, and
11484 derive the child's true type using this information.
11485
11486 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11487
11488 From 2002-01-09 John Marshall <johnm@falch.net>:
11489 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
11490 sources.redhat.com, and tweak some related URLs which had
11491 suffered from linkrot.
11492
11493 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11494
11495 From Jeff law:
11496 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
11497 structures passed in registers.
11498
11499 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
11500
11501 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
11502 white space which prevented compilation. Reported by DSK
11503 <dsk@student.unsw.edu.au>.
11504
11505 2002-01-11 Michael Snyder <msnyder@redhat.com>
11506
11507 * symfile.c (build_section_addr_info_from_section_tab):
11508 Use bfd access method instead of manipulating bfd directly.
11509 (syms_from_objfile): Ditto.
11510 (simple_overlay_update_1): Ditto.
11511 (simple_overlay_update): Ditto.
11512 (generic_load): Ditto.
11513 (overlay_unmapped_address): FIXME comment, bfd access methods.
11514 (sections_overlap): FIXME comment, bfd access methods.
11515 (pc_in_mapped_range): FIXME comment, bfd access methods.
11516 (pc_in_unmapped_range): FIXME comment, bfd access methods.
11517 (section_is_mapped): FIXME comment, bfd access methods.
11518 (section_is_overlay): FIXME comment, bfd access methods.
11519
11520 * symfile.c (generic_load): Whitespace and long line cleanups.
11521 Remove duplicate variable, change several local variables to
11522 more appropriate data types.
11523 (print_transfer_performance): Use %lu instead of %ld for ulongs.
11524
11525 2002-01-12 Andrew Cagney <ac131313@redhat.com>
11526
11527 From Peter Schauer:
11528 * language.c (longest_local_hex_string_custom): Use phex_nz to
11529 convert NUM to a hex string.
11530
11531 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
11532
11533 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
11534 the function.
11535 Update Copyright year.
11536
11537 2002-01-12 Andrew Cagney <ac131313@redhat.com>
11538
11539 * language.c (longest_raw_hex_string): Delete unused function.
11540
11541 2002-01-11 Petr Sorfa <petrs@caldera.com>
11542
11543 * MAINTAINERS (write-after-approval): Add myself.
11544 * dwarf2read.c (read_tag_string_type): Handling of
11545 DW_AT_byte_size.
11546 (read_tag_string_type): FORTRAN fix to prevent propagation of
11547 first string size.
11548 (set_cu_language): Handling of DW_LANG_Fortran95
11549
11550 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
11551
11552 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
11553 GETPID(inferior_ptid).
11554 (store_inferior_registers): Likewise.
11555
11556 2002-01-10 Jason Merrill <jason@redhat.com>
11557
11558 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
11559 Fix DW_OP_minus.
11560
11561 2002-01-10 Andrew Cagney <ac131313@redhat.com>
11562
11563 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
11564 and bfd/elf32-sh-nbsd.c.
11565
11566 2002-01-10 Michael Snyder <msnyder@redhat.com>
11567
11568 * NEWS: Mention --pid and corefile/proc-id behavior change.
11569
11570 * Makefile.in: Add rules for gcore.o and linux-proc.o.
11571 * gcore.c: Include cli/cli-decode.h instead of command.h.
11572
11573 * main.c (captured_main): Add new command line option "--pid".
11574 If the second command line argument (following the symbol-file)
11575 begins with a digit, try to attach to it before trying to open
11576 it as a corefile.
11577 (print_gdb_help): Document the "--pid" argument.
11578
11579 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
11580
11581 * completer.c (command_completer): New function.
11582
11583 * completer.h <command_completer>: Add prototype.
11584
11585 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
11586 completer for the "help" command.
11587
11588 2002-01-09 Jason Merrill <jason@redhat.com>
11589
11590 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
11591
11592 2002-01-09 Michael Snyder <msnyder@redhat.com>
11593
11594 * i386-linux-nat.c (fill_fpxregset): Make global.
11595 (store_fpxregset): Ditto.
11596
11597 * gregset.h (gdb_fpxregset_t): Define.
11598 (supply_fpxregset): Prototype.
11599 (fill_fpxregset): Prototype.
11600
11601 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
11602
11603 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
11604
11605 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
11606 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
11607 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
11608
11609 2002-01-09 Andrew Cagney <ac131313@redhat.com>
11610
11611 * MAINTAINERS: Update target maintainer rules so that any
11612 Maintainer can approve a tested patch for a maintenance-only
11613 target.
11614
11615 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
11616
11617 * MAINTAINERS (write-after-approval): Add myself.
11618
11619 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
11620 IN_SIGTRAMP.
11621
11622 2002-01-08 Michael Snyder <msnyder@redhat.com>
11623
11624 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
11625 real name of the executable, rather than the /proc name.
11626
11627 2002-01-03 Michael Snyder <msnyder@redhat.com>
11628
11629 Implement a "generate-core-file" command in gdb, save target state.
11630 * gcore.c: New file. Implement new command 'generate-core-file'.
11631 Save a corefile image of the current state of the inferior.
11632 * linux-proc.c: Add linux-specific code for saving corefiles.
11633 * target.h (struct target_ops): Add new target vectors for saving
11634 corefiles; to_find_memory_regions and to_make_corefile_notes.
11635 (target_find_memory_regions): New macro.
11636 (target_make_corefile_notes): New macro.
11637 * target.c (update_current_target): Inherit new target methods.
11638 (dummy_find_memory_regions): New place-holder method.
11639 (dummy_make_corefile_notes): New place-holder method.
11640 (init_dummy_target): Initialize new dummy target vectors.
11641 * exec.c (exec_set_find_memory_regions): New function.
11642 Allow the exec_ops vector for memory regions to be taken over.
11643 (exec_make_note_section): New function, target vector method.
11644 * defs.h (exec_set_find_memory_regions): Export prototype.
11645 * procfs.c (proc_find_memory_regions): New function, corefile method.
11646 (procfs_make_note_section): New function, corefile method.
11647 (init_procfs_ops): Set new target vector pointers.
11648 (find_memory_regions_callback): New function.
11649 (procfs_do_thread_registers): New function.
11650 (procfs_corefile_thread_callback): New function.
11651 * sol-thread.c (sol_find_memory_regions): New function.
11652 (sol_make_note_section): New function.
11653 (init_sol_thread_ops): Initialize new target vectors.
11654 * inftarg.c (inftarg_set_find_memory_regions): New function.
11655 Allow to_find_memory_regions vector to be taken over.
11656 (inftarg_set_make_corefile_notes): New function.
11657 Allow to_make_corefile_notes vector to be taken over.
11658 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
11659 interface layer if not target_has_execution (may be a corefile).
11660 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
11661 * config/sparc/sun4sol2.mh: Ditto.
11662 * config/alpha/alpha-linux.mh: Ditto.
11663 * config/arm/linux.mh: Ditto.
11664 * config/i386/x86-64linux.mh: Ditto.
11665 * config/ia64/linux.mh: Ditto.
11666 * config/m68k/linux.mh: Ditto.
11667 * config/mips/linux.mh: Ditto.
11668 * config/powerpc/linux.mh: Ditto.
11669 * config/sparc/linux.mh: Ditto.
11670
11671 2002-01-07 Michael Snyder <msnyder@redhat.com>
11672
11673 * arm-linux-nat.c: Remove references to regcache.c internal data
11674 (registers[] and register_valid[]).
11675
11676 2002-01-07 Michael Snyder <msnyder@redhat.com>
11677
11678 * linux-proc.c: New file. Implement child_pid_to_exec_file,
11679 so that attaching to a pid will automatically read the process's
11680 symbol file and shlibs.
11681 * Makefile.in: Add rule for linux-proc.o.
11682 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
11683 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
11684 * config/arm/linux.mh: Ditto.
11685 * config/i386/linux.mh: Ditto.
11686 * config/i386/x86-64linux.mh: Ditto.
11687 * config/ia64/linux.mh: Ditto.
11688 * config/m68k/linux.mh: Ditto.
11689 * config/mips/linux.mh: Ditto.
11690 * config/powerpc/linux.mh: Ditto.
11691 * config/sparc/linux.mh: Ditto.
11692
11693 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
11694
11695 * win32-nat.c: Add i386-tdep.h dependency.
11696
11697 2002-01-07 Michael Snyder <msnyder@redhat.com>
11698
11699 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
11700 instead of bfd_get_arch_size. Don't bail out just because
11701 there's no exec_bfd.
11702
11703 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
11704 * p-valprint.c (pascal_object_print_value): Ditto.
11705 * somread.c (som_symtab_read): Ditto.
11706 * symfile.c (simple_free_overlay_region_table): Ditto.
11707 * valops.c (value_assign): Ditto.
11708
11709 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
11710 use tilde_expand and strerror for opening save-tracepoints file.
11711
11712 * thread-db.c (thread_db_new_objfile): Indendation fix.
11713
11714 * infptrace.c (GDB_MAX_ALLOCA): New define.
11715 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
11716 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
11717 can be overridden with whatever value is appropriate to the host).
11718 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
11719 alloca to allocate potentially large buffer.
11720 * rs6000-nat.c (child_xfer_memory): Ditto.
11721 * symm-nat.c (child_xfer_memory): Ditto.
11722 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
11723
11724 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
11725
11726 From Nick Clifton <nickc@redhat.com>
11727 * d10v-tdep.c: Set STACK_START to 0x200bffe.
11728
11729 2002-01-07 Michael Snyder <msnyder@redhat.com>
11730
11731 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
11732 Don't use exec_bfd if it's NULL.
11733
11734 2002-01-06 Mark Kettenis <kettenis@gnu.org>
11735
11736 * valops.c (value_arg_coerce): Fix formatting.
11737
11738 2002-01-06 Andrew Cagney <ac131313@redhat.com>
11739
11740 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
11741 * gnu-nat.c: Ditto.
11742
11743 2002-01-06 Andrew Cagney <ac131313@redhat.com>
11744
11745 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
11746 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
11747 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
11748 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
11749 z8k-coff have not been multi-arched. Update z8k-coff build
11750 status.
11751
11752 2002-01-06 Andrew Cagney <ac131313@redhat.com>
11753
11754 * MAINTAINERS: Mark a29k target as obsolete.
11755 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
11756 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
11757 comments.
11758 * NEWS: Note that a29k targets are obsolete.
11759 * a29k-tdep.c: Mark as obsolete.
11760 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
11761 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
11762 a29k-*-vxworks* targets as obsolete.
11763 * remote-adapt.c: Obsolete.
11764 * remote-eb.c: Obsolete.
11765 * remote-mm.c: Obsolete.
11766 * remote-udi.c: Obsolete.
11767 * config/a29k/a29k-udi.mt: Obsolete.
11768 * config/a29k/a29k.mt: Obsolete.
11769 * config/a29k/tm-a29k.h: Obsolete.
11770 * config/a29k/tm-vx29k.h: Obsolete.
11771 * config/a29k/vx29k.mt: Obsolete.
11772
11773 2002-01-05 Andrew Cagney <ac131313@redhat.com>
11774
11775 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
11776 with BFD_ENDIAN_BIG.
11777
11778 2002-01-05 Andrew Cagney <ac131313@redhat.com>
11779
11780 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
11781 * configure, config.in: Re-generate.
11782 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
11783 * defs.h: Do not include <endian.h>.
11784
11785 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
11786
11787 * acconfig.h (HAVE_PT_GETXMMREGS): New.
11788 * config.in: Regenerate.
11789 * configure.in: Update copyright years.
11790 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
11791 * configure: Regenerate.
11792 * i386bsd-nat.c: Update copyright years.
11793 (fill_gregset): Use regcache_collect.
11794 (fetch_inferior_registers): Only fetch integer registers
11795 if requested to do so. Add support for XMM registers
11796 using PT_GETXMMREGS.
11797 (store_inferior_registers): Only store integer registers
11798 if requested to do so. Add support for XMM registers
11799 using PT_SETXMMREGS.
11800 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
11801 (store_inferior_registers): Remove.
11802 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
11803 (fetch_elfcore_registers): New function.
11804 (i386nbsd_elfcore_fns): New.
11805 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
11806 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
11807 i386bsd-nat.o.
11808 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
11809 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
11810 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
11811 * config/i386/tm-nbsd.h: Update copyright years.
11812 (HAVE_SSE_REGS): Define.
11813 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
11814 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
11815 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
11816 (SIGCONTEXT_PC_OFFSET): Remove.
11817 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
11818
11819 2002-01-05 Andrew Cagney <ac131313@redhat.com>
11820
11821 * configure.tgt: Remove powerpc-*-macos* target.
11822 * config/m68k/xm-mpw.h: Delete file.
11823 * config/xm-mpw.h: Delete file.
11824 * ser-mac.c: Delete file.
11825 * mpw-make.sed: Delete file.
11826 * mpw-config.in: Delete file.
11827 * mac-xdep.c: Delete file.
11828 * mac-gdb.r: Delete file.
11829 * mac-defs.h: Delete file.
11830 * mac-nat.c: Delete file.
11831 * config/powerpc/macos.mh: Delete file.
11832 * config/powerpc/macos.mt: Delete file.
11833 * config/powerpc/nm-macos.h: Delete file.
11834 * config/powerpc/tm-macos.h: Delete file.
11835 * source.c (openp, open_source_file): Remove obsolete code.
11836 * top.c (gdb_readline): Ditto.
11837 * utils.c (query): Ditto.
11838 * event-top.c (display_gdb_prompt): Ditto.
11839 * Makefile.in (ser-mac.o): Delete obsolete target.
11840 * NEWS: Update.
11841
11842 2002-01-04 Andrew Cagney <ac131313@redhat.com>
11843
11844 * defs.h (BIG_ENDIAN): Delete macro definition.
11845 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
11846 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
11847 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
11848 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
11849 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
11850 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
11851 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
11852 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
11853 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
11854 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
11855 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
11856 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
11857 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
11858 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
11859 * gdbarch.c: Re-generate.
11860
11861 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
11862
11863 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
11864 for core files.
11865
11866 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
11867
11868 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
11869
11870 2002-01-04 Andrew Cagney <ac131313@redhat.com>
11871
11872 * value.h (value_ptr): Delete typedef.
11873
11874 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
11875
11876 * i386nbsd-nat.c: Update copyright years.
11877 Include i386-tdep.h.
11878
11879 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
11880
11881 * stabsread.c: Update copyright years.
11882
11883 From Debashis Mahata <debashis.mahata@wipro.com>:
11884 (read_struct_fields): Deal with Sun C compiler erroneous stab
11885 output for structs and unions.
11886 Fix PR gdb/269.
11887
11888 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
11889
11890 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
11891 prototype.
11892
11893 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
11894
11895 * cp-abi.c: Fix whitespace.
11896 (baseclass_offset): New wrapper function.
11897 * cp-abi.h (baseclass_offset): Add prototype.
11898 (struct cp_abi_ops): Add baseclass_offset pointer.
11899
11900 * valops.c (vb_match): Move to...
11901 * gnu-v2-abi.c (vb_match): here.
11902 * valops.c (baseclass_offset): Move to...
11903 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
11904
11905 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
11906
11907 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
11908 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
11909 * hpacc-abi.c (init_hpacc_ops): Likewise.
11910
11911 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
11912
11913 * valops.c (find_overload_match): Accept obj as a
11914 reference parameter. Update it before returning.
11915 * value.h (find_overload_match): Update prototype.
11916 * eval.c (evaluate_subexp_standard): Pass object to
11917 find_overload_match by reference.
11918
11919 2002-01-03 Andrew Cagney <ac131313@redhat.com>
11920
11921 * valarith.c: Replace value_ptr with struct value pointer. Remove
11922 register attribute from value declarations.
11923 * valops.c: Ditto.
11924 * value.h: Ditto.
11925 * scm-lang.c (scm_lookup_name): Ditto.
11926
11927 2002-01-03 Michael Snyder <msnyder@redhat.com>
11928
11929 Abstract the functionality of iterating over mapped memory
11930 regions into a general purpose iterator function.
11931 * procfs.c (iterate_over_mappings): New function, general purpose
11932 iterator for memory sections.
11933 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
11934 (solib_mappings_callback): New function, callback for above.
11935 (info_proc_mappings): Reimpliment using iterate_over_mappings.
11936 (info_mappings_callback): New function, callback for above.
11937
11938 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
11939
11940 2002-01-01 Mark Kettenis <kettenis@gnu.org>
11941
11942 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
11943 * i386-tdep.c: Include "elf-bfd.h".
11944 (process_note_abi_tag_sections): New function.
11945 (i386_gdbarch_init): Add code to recognize various OS/ABI
11946 combinations.
11947
11948 * maint.c (_initialize_maint_cmds): Add missing \ in
11949 string-literal.
11950
11951 For older changes see ChangeLog-2001
11952 \f
11953 Local Variables:
11954 mode: change-log
11955 left-margin: 8
11956 fill-column: 74
11957 version-control: never
11958 End: