valops.c (value_of_local): New function.
[binutils-gdb.git] / gdb / ChangeLog
1 2002-10-13 Adam Fedor <fedor@gnu.org>
2
3 * valops.c (value_of_local): New function.
4 (value_of_this): Use it.
5 * value.h (value_of_local): Declared.
6
7 2002-10-13 Adam Fedor <fedor@gnu.org>
8
9 * parse.c: (length_of_subexp, prefixify_subexp): Handle
10 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
11
12 2002-10-12 Adam Fedor <fedor@gnu.org>
13
14 * language.c (binop_result_type): Add language_objc to case.
15 (integral_type): Likewise.
16 (character_type): Likewise.
17 (string_type): Likewise.
18 (boolean_type): Likewise.
19 (structured_type): Likewise.
20 (binop_type_check): Likewise.
21
22 2002-10-11 Adam Fedor <fedor@gnu.org>
23
24 * printcmd.c (address_info): Print 'self' for ObjC.
25
26 2002-10-11 Adam Fedor <fedor@gnu.org>
27
28 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
29 OP_SELF.
30
31 2002-10-11 Adam Fedor <fedor@gnu.org>
32
33 * language.h (CAST_IS_CONVERSION): Add language_objc.
34
35 2002-10-11 Adam Fedor <fedor@gnu.org>
36
37 * defs.h (enum language): Add language_objc.
38
39 2002-10-11 Klee Dienes <kdienes@apple.com>
40
41 * findvar.c (read_memory_typed_address): New function.
42 * gdbcore.h (read_memory_typed_address): Add prototype.
43 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
44 to read a value destined for a CORE_ADDR, not read_memory_integer.
45 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
46 (f77_get_dynamic_lowerbound): Ditto.
47
48 2002-10-11 Martin M. Hunt <hunt@redhat.com>
49
50 * utils.c (string_to_core_addr): After turning string into
51 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
52 which will do necessary sign-extension, etc.
53
54 2002-10-11 Daniel Jacobowitz <drow@mvista.com>
55
56 * c-exp.y (THIS): Delete token and grammar rule.
57 (yylex): Don't return THIS.
58 * cp-valprint.c (vtbl_ptr_name_old): Delete.
59 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
60 * demangle.c (cplus_markers): Update comment. Put '$'
61 first. Remove CPLUS_MARKER.
62 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
63 * jv-exp.y (THIS): Delete token and grammar rule.
64 (yylex): Don't return THIS.
65 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
66 * objc-exp.y (THIS): Delete token and grammar rule.
67 (yylex): Don't return THIS.
68 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
69 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
70 (read_member_functions): Likewise for opname.
71 (read_tilde_fields): Use is_cplus_marker.
72
73 * defs.h (CPLUS_MARKER): Don't define.
74 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
75 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
76 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
77 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
78 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
79
80 * config/i386/tm-i386v4.h: Delete file.
81 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
82 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
83 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
84 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
85 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
86 * config/i386/i386sco5.mt (TM_FILE): Likewise.
87 * config/i386/i386v4.mt (TM_FILE): Likewise.
88 * config/i386/ncr3000.mt (TM_FILE): Likewise.
89
90 2002-10-10 Marko Mlinar <markom@opencores.org>
91
92 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
93 accidentially not commited 2002-10-09
94 * gdbarch.h, gdbarch.c: Re-generate.
95
96 2002-10-09 Marko Mlinar <markom@opencores.org>
97
98 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
99 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
100 * gdbarch.h, gdbarch.c: Re-generate.
101
102 2002-10-08 Petr Sorfa <petrs@caldera.com>
103
104 Revised and re-submitted by John Wolfe <jlw@caldera.com>
105
106 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
107 so we can work on more than one compilation unit at a time. This
108 helps prepare GDB to handle inter-CU die references.
109 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
110 the code to be defined before struct comp_unit_head.
111 (comp_unit_head): Added new members - offset, cu_head,
112 begin_die, next and dwarf2_abbrevs.
113 (dwarf2_abbrevs): Removed single static var; now member of
114 struct comp_unit_head.
115 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
116 members.
117 (psymtab_to_symtab_1): Changed to work with the new
118 struct comp_unit_head.
119 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
120 constructs the dwarf2_abbrevs[] inside the cu_header.
121 (dwarf2_empty_abbrev_table): Now expects a ptr to a
122 dwarf2_abbrev table to clean up.
123 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
124 handling of dwarf2_abbrevs inside the cu_header.
125 (read_partial_die): Now supports the call to the new
126 dwarf2_lookup_abbrev.
127 (read_full_die): Now supports the call to the new
128 dwarf2_lookup_abbrev.
129
130 2002-10-06 Christopher Faylor <cgf@redhat.com>
131
132 * Makefile.in (install-gdbtk): Add missing continuation backslash to
133 insure that shell variables, such as "transformed_name" are propagated
134 to later shell statements in rule.
135
136 2002-10-06 Mark Kettenis <kettenis@gnu.org>
137
138 * config/i386/nm-i386sco.h: Add protection against
139 multiple-inclusion. Include "i386/nm-i386v.h".
140 (REGISTER_U_ADDR): Remove define.
141 (i386_register_u_addr): Remove prototype.
142
143 2002-10-04 Michael Snyder <msnyder@redhat.com>
144
145 * m32r-stub.c (handle_exception): Make sure exception is "trap"
146 before treating it as a single-step event.
147
148 2002-10-03 Adam Fedor <fedor@gnu.org>
149
150 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
151 (objc_demangle): Remove assignment in if statements, Replace
152 free with xfree.
153 (add_msglist): Likewise.
154 (end_msglist): Likewise.
155 (complare_selectors): Likewise.
156 (selectors_info): Likewise.
157 (compare_classes): Likewise.
158 (classes_info): Likewise.
159 (print_object_command): Likewise.
160 (find_objc_msgcall_submethod): Replace PTR with void *.
161 * objc-lang.h: Remove check for __STDC__.
162
163 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
164
165 * ui-out.h (ui_out_field_fmt_int): New prototype.
166 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
167 of field width and alignment.
168 * stack.c (print_frame_info_base): When printing frame level, use
169 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
170 PR gdb/192
171
172 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
173
174 * MAINTAINERS: Add self to Write After Approval list.
175
176 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
177
178 * infcmd.c (interrupt_target_command_wrapper): Delete.
179 (interrupt_target_command): Make non static.
180 (nofp_registers_info): Make static.
181 * stack.c (return_command_wrapper): Delete.
182 (return_command): Make non static.
183
184 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
185
186 * event-top.c (gdb_setup_readline): New function. Code moved from
187 _initialize_event_loop().
188 (_initialize_event_loop): Call gdb_setup_readline().
189
190 2002-10-02 Andrew Cagney <ac131313@redhat.com>
191
192 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
193 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
194 * gdbarch.h, gdbarch.c: Re-generate.
195
196 2002-10-02 Daniel Jacobowitz <drow@mvista.com>
197
198 Fix PR gdb/778
199 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
200 before recursing.
201 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
202 of fill_in_vptr_fieldno.
203
204 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
205
206 * inferior.h (registers_info, stepi_command, nexti_command,
207 continue_command, interrupt_target_command): Export from infcmd.c.
208 * frame.h (args_info, selected_frame_level_changed_hook,
209 return_command): Export from stack.c.
210 * v850ice.c (stepi_command, nexti_command, continue_command): use
211 prototypes from inferior.h.
212 * tracepoint.c (registers_info, args_info, locals_info): Use
213 prototypes from frame.h and inferior.h.
214 * Makefile.in (mi-main.o): Add dependency on frame.h.
215
216 2002-10-02 Andrew Cagney <ac131313@redhat.com>
217
218 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
219 value in register 3 adjusted by ppc_gp0_regnum.
220
221 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
222
223 2002-10-02 Marko Mlinar <markom@opencores.org>
224
225 * MAINTAINERS: Add myself to the Write After Approval list.
226
227 2002-10-01 Alexandre Oliva <aoliva@redhat.com>
228
229 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
230 of the section for the N64 ABI, fixed.
231
232 * config/mips/tm-irix6.h: Include solib.h.
233
234 2002-10-01 Elena Zannoni <ezannoni@redhat.com>
235
236 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
237 GNU operators.
238
239 2002-10-01 Andrew Cagney <ac131313@redhat.com>
240
241 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
242 and that "mi0" syntax has been removed.
243
244 2002-09-30 David Carlton <carlton@math.stanford.edu>
245
246 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
247 * ppc-sysv-tdep.c: #include "gdb_string.h".
248 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
249 pacify GCC.
250
251 2002-10-01 Andrew Cagney <ac131313@redhat.com>
252
253 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
254 "vrsave"'s register number.
255
256 2002-09-30 Andrew Cagney <ac131313@redhat.com>
257
258 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
259 use frame_unwind_signed_register to obtain the PC.
260 (mips_frame_chain): Handle a generic dummy frame.
261 (mips_init_extra_frame_info): When a generic dummy frame, don't
262 re-compute the frame base.
263 (mips_pop_frame): Handle generic dummy frames.
264 (mips_gdbarch_init): When generic dummy frames, set
265 use_generic_dummy_frames, push_dummy_frame to
266 generic_push_dummy_frame, pc_in_call_dummy to
267 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
268 generic_save_dummy_frame_tos.
269
270 2002-09-30 Andrew Cagney <ac131313@redhat.com>
271
272 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
273 against TOP when TOP was explictly set.
274 (generic_push_dummy_frame): Set TOP to zero.
275
276 2002-09-30 Elena Zannoni <ezannoni@redhat.com>
277
278 * event-loop.c (start_event_loop): Rename variable 'result' to
279 'gdb_result', to avoid conflicts with upcoming intepreters changes.
280
281 2002-09-30 Keith Seitz <keiths@redhat.com>
282
283 * gdb-events.sh (selected_thread_changed): New event.
284 * gdb-events.c: Regenerated.
285 * gdb-events.h: Regenerated.
286
287 2002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
288
289 * MAINTAINERS: Add self to Write After Approval list.
290
291 2002-09-30 Fernando Nasser <fnasser@redhat.com>
292
293 * disasm.c: New file.
294 * disasm.h: New file.
295 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
296 (compare_lines): Ditto.
297 (dump_insns): Ditto.
298 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
299 argument.
300 (do_assembly_only): Ditto.
301 (do_disassembly): Renamed to gdb_disassembly and moved to
302 disasm.c. Sdded uiout argument.
303 * Makefile.in: Add new files. Reorder SFILES list. Update
304 dependencies. Include libgdb.a later in the insight executable.
305
306 2002-09-29 Andrew Cagney <ac131313@redhat.com>
307
308 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
309 bfd/elf64-alpha-fbsd.c.
310
311 2002-09-29 Andrew Cagney <ac131313@redhat.com>
312
313 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
314 i386gnu-tdep.c.
315
316 2002-09-29 Andrew Cagney <ac131313@redhat.com>
317
318 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
319 __FUNCTION__.
320 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
321 function name.
322 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
323 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
324 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
325 (S_msg_sig_post_reply): Ditto.
326
327 2002-09-28 Corinna Vinschen <vinschen@redhat.com>
328
329 * sh-tdep.c (sh_use_struct_convention): Use definition according
330 to ABI.
331 (sh_push_arguments): Store in register with correct endianess.
332 (sh_default_store_return_value): Ditto.
333 (sh_gdbarch_init): Set sizeof long double to 8.
334
335 2002-09-27 Mark Kettenis <kettenis@gnu.org>
336
337 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
338 Fix some whitespace problems.
339
340 2002-09-27 David Carlton <carlton@math.stanford.edu>
341
342 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
343 (mcore-tdep.o): Ditto.
344 (ns32k-tdep.o): Ditto.
345 (ns32knbsd-tdep.o): Ditto.
346 (sh3-rom.o): Ditto.
347 (vax-tdep.o): Ditto.
348 * cris-tdep.c: #include "gdb_string.h"
349 * mcore-tdep.c: Ditto.
350 * ns32k-tdep.c: Ditto.
351 * ns32knbsd-tdep.c: Ditto.
352 * sh3-rom.c: Ditto.
353 * vax-tdep.c: Ditto.
354
355 2002-09-27 David Carlton <carlton@math.stanford.edu>
356
357 * config/djgpp/fnchange.lst: Add entries for
358 gdb/testsuite/gdb.c++/m-static files.
359
360 2002-09-27 Jim Wilson <wilson@redhat.com>
361
362 * MAINTAINERS: Add myself to the Write After Approval list.
363
364 2002-09-26 Martin M. Hunt <hunt@redhat.com>
365
366 * mips-tdep.c (find_proc_desc): Initialize startaddr.
367
368
369 2002-09-26 Andrew Cagney <ac131313@redhat.com>
370
371 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
372 frame.
373
374 2002-09-26 Andrew Cagney <ac131313@redhat.com>
375
376 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
377 (rs6000_struct_return_address): Delete variable.
378 (rs6000_store_struct_return): Update.
379 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
380 deprecated_extract_struct_value_address.
381 (rs6000_frame_align): New function.
382 (rs6000_gdbarch_init): Set frame_align.
383
384 2002-09-26 Andrew Cagney <ac131313@redhat.com>
385
386 From Grace Sainsbury <graces@redhat.com>:
387 * Makefile.in (gdbtk-main.o): New target.
388 (gdb.o): New target.
389 (main_h): Define.
390 (main.o): Update dependencies.
391 (gdb$(EXEEXT)): Add gdb.o.
392 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
393 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
394 (SUBDIR_GDBTK_CLEAN): Set.
395 (install-gdbtk): Install the insight binary.
396 (uninstall-gdbtk): New target.
397 (all-gdbtk, clean-gdbtk): New rule.
398 * top.c (use_windows): Default to zero.
399 * main.c: Include "main.h".
400 (main): Delete.
401 (struct captured_main_args): Delete.
402 (gdb_main): New function.
403 * main.h: New file.
404 * gdb.c: New File.
405
406 2002-09-25 Andrew Cagney <cagney@redhat.com>
407
408 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
409 (frame_map_regnum_to_name): New function.
410 (frame_map_name_to_regnum): New function.
411 * frame.h (frame_map_name_to_regnum): Declare.
412 (frame_map_regnum_to_name): Declare.
413 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
414 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
415 * parse.c: Do not include "builtin-regs.h".
416 (target_map_name_to_register): Delete function.
417 (write_dollar_variable): Use frame_map_name_to_regnum.
418 * parser-defs.h (target_map_name_to_register): Delete declaration.
419 * expprint.c: Include "frame.h".
420 (print_subexp): Use frame_map_regnum_to_name.
421 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
422 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
423
424 2002-09-25 Andrew Cagney <ac131313@redhat.com>
425
426 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
427 wasn't saved, and the next innermost frame is a dummy, return the
428 dummy frame's link register.
429
430 2002-09-24 Jim Blandy <jimb@redhat.com>
431
432 Fix from Paul Breed:
433 * main.c (captured_main): Add a `break' after the case for 'b'.
434
435 2002-09-24 Keith Seitz <keiths@redhat.com>
436
437 * varobj.c (c_type_of_child): Use get_target_type instead
438 of TYPE_TARGET_TYPE.
439
440 2002-09-22 Fernando Nasser <fnasser@redhat.com>
441
442 * source.c (get_current_or_default_source_symtab_and_line): Remove
443 function.
444 (set_default_source_symtab_and_line): New function. Attempts to
445 determine a source file to list lines from if one is not currently
446 defined.
447 (get_current_source_symtab_and_line): Initialize sal.pc and
448 sal.end fields.
449 (set_current_source_symtab_and_line): Mark argument as const.
450 * source.h: Update declarations and comments.
451 * linespec.c (decode_line_1): Replace call to removed routine above.
452 * stack.c (print_frame_info_base): Ditto.
453 * cli/cli-cmds.c (edit_command): Ditto.
454 (list_command): Ditto.
455
456 2002-09-22 Fernando Nasser <fnasser@redhat.com>
457
458 * source.c (get_current_or_default_source_symtab_and_line): Initialize
459 sal.pc and sal.end fields.
460 (get_current_or_default_source_symtab_and_line): Ditto.
461 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
462 so we do not cause a new source symtab to be searched for (reverting an
463 unintentional change from the 2002-09-20 patch).
464 * scm-lang.c (scm_unpac): Ditto.
465
466 2002-09-21 Andrew Cagney <cagney@redhat.com>
467
468 * complaints.c (symfile_explanations): Remove new-line from
469 ``isolated_message''.
470 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
471 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
472
473 2002-09-20 Nick Clifton <nickc@redhat.com>
474
475 * NEWS: Announce that V850EA ISA is no longer supported.
476 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
477
478 2002-09-20 David Carlton <carlton@math.stanford.edu>
479
480 * Makefile.in (c-lang.o): Correct dependencies.
481 (utils.o): Gather dependencies.
482 (charset.o): Move.
483 * c-lang.c: #include "gdb_string.h"
484
485 2002-09-20 Fernando Nasser <fnasser@redhat.com>
486
487 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
488 * cli/cli-cmds.c (list_command): New function. Implements the new
489 cli edit command.
490 (_init_cli_cmds): Add new command definition.
491 * gdb.1: Document edit command.
492 * doc/gdb.texinfo: Document edit command.
493
494 2002-09-20 Fernando Nasser <fnasser@redhat.com>
495
496 * source.c: Make global variables current_source_symtab and
497 current_source_line static.
498 (list_command): Moved to cli/cli-cmds.c.
499 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
500 (get_first_line_listed): New accessor function.
501 (get_lines_to_list): New accessor function.
502 (get_current_source_symtab_and_line): New function. Retrieves the
503 position in the source code that we consider current.
504 (get_current_or_default_source_symtab_and_line): New function.
505 Like the above but attempts to determine a default position if one
506 is not currently defined.
507 (set_current_source_symtab_and_line): New function. Sets the source
508 code position considered current and returns the previously set one.
509 (clear_current_source_symtab_and_line): Reset stored information about
510 a current source line.
511 (_initialize_source): Remove registration for the "list" command and
512 its alias.
513 * source.h: Add declarations for the new functions above.
514 * symtab.h: Remove declarations for the global variables mentioned
515 above.
516 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
517 obtain current source line.
518 * linespec.c (decode_line_1): Ditto.
519 * macroscope.c (default_macro_scope): Ditto.
520 * scm-lang.c (scm_unpac): Ditto.
521 * stack.c (print_frame_info_base): Ditto.
522 * symfile.c (clear_symtab_users): Ditto.
523 * symtab.c (decode_line_spec): Ditto.
524 * cli/cli-cmds.c (list_command): Moved here from source.c.
525 (ambiguous_line_spec): Moved here from source.c.
526 (_init_cli_cmds): Add definition for "list" and its alias.
527 * Makefile.in: Update dependencies.
528
529 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
530
531 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
532 with what gcc thinks is correct.
533
534 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
535
536 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
537 multiple register push instruction.
538
539 2002-09-19 Jim Blandy <jimb@redhat.com>
540
541 Add support for distinct host and target character sets.
542 * charset.c, charset.h: New files.
543 * c-exp.y: #include "charset.h".
544 (yylex): Convert character and string literals to the target
545 character set, before returning them as the semantic value of the
546 token.
547 * c-lang.c: #include "charset.h".
548 (c_emit_char): Use charset-specific methods to recognize
549 characters with backslash escape forms, to decide which characters
550 to print literally and which to print using numeric escape
551 sequences, and to convert target characters to host characters
552 before printing.
553 * utils.c: #include "charset.h".
554 (no_control_char_error): New function.
555 (parse_escape): Use charset-specific methods to recognize
556 backslash escapes, parse `control character' notation, and convert
557 characters from the host character set to the target character set.
558 * configure.in: Set the default host character set.
559 Check where to find iconv, and what its argument types might be.
560 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
561 * Makefile.in (SFILES): List charset.c.
562 (COMMON_OBS): List charset.o.
563 (charset.o): New rule.
564 (charset_h): New header dependency variable.
565 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
566 (LIBICONV): New variable, set by configure.
567 (CLIBS): Include $(LIBICONV) here.
568 * aclocal.m4, config.in, configure: Regenerated.
569
570 2002-09-19 Joel Brobecker <brobecker@gnat.com>
571
572 * ada-exp.y: Add missing semicolons to end rules. Fixes a
573 bison 1.35 warning.
574
575 2002-09-19 Richard Earnshaw <rearnsha@arm.com>
576
577 * gdb_mbuild.sh: New file.
578
579 2002-09-19 Andrew Cagney <ac131313@redhat.com>
580
581 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
582
583 2002-09-18 Andrew Cagney <ac131313@redhat.com>
584
585 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
586 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
587 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
588 valops.c, value.h: Revert previous change.
589
590 2002-09-18 Michael Snyder <msnyder@redhat.com>
591
592 Preliminary support for Objective-C:
593 * defs.h (language_objc): New enum value.
594 (puts_filtered_tabular): Declaration only, exported from utils.c.
595 (skip_quoted): Delete, declared in completer.h.
596 * c-exp.y: Include completer.h.
597 * p-exp.y: Ditto.
598 * jv-exp.y: Ditto.
599 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
600 New operator enum values.
601 * language.h (CAST_IS_CONVERSION): Test for language_objc.
602 * language.c (binop_result_type): Handle language_objc case.
603 (integral_type, character_type, string_type, boolean_type,
604 structured_type, binop_type_check): Ditto.
605 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
606 (struct objc_specific): Add to general_symbol_info.
607 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
608 (SYMBOL_DEMANGLED_NAME): Handle objc case.
609 * parser-defs.h (struct objc_class_str): New struct type.
610 (start_msglist, end_msglist, add_msglist): Declaration only,
611 exported from objc-lang.c.
612 * value.h (value_of_local, value_nsstring,
613 call_function_by_hand_expecting_type): Exported from valops.c.
614 * valops.c (find_function_addr): Export.
615 (call_function_by_hand_expecting_type): New function.
616 (value_of_local): New function.
617 * symfile.c (init_filename_language_table): Add ".m" extension
618 for Objective-C.
619 * utils.c (puts_filtered_tabular): New function.
620 (fprintf_symbol_filtered): Add objc demangling support (disabled).
621 (set/show demangle): Extend help-string to refer to ObjC.
622 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
623 * stabsread.c (symbol_reference_defined): Objective-C symbols
624 may contain colons: make allowances when scanning stabs strings
625 for colons.
626 (objc_find_colon): New function.
627 * printcmd.c (address_info): If language == objc then print
628 "self" instead of "this".
629 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
630 OP_NSSTRING, and OP_SELF.
631 (prefixify_subexp): Ditto.
632 * source.c (print_source_lines): Mention objc in comment.
633 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
634 method names.
635
636 2002-09-18 Andrew Cagney <ac131313@redhat.com>
637
638 * complaints.h: Update copyright.
639 (struct complaints): Declare.
640 (struct complaint): Make `message' constant.
641 (internal_complaint): Declare.
642 (complaint): Declare.
643 (complaint_root): Delete declaration.
644 (symfile_complaints): Delete declaration.
645 (struct complaints): Add opaque declaration.
646 (clear_complaints): Add a complaints parameter.
647 * complaints.c: Update copyright.
648 (enum complaint_series): Define.
649 (complaint_root): Delete.
650 (struct complaints): Define.
651 (complaint_sentinel, symfile_complaint_book): New variables.
652 (symfile_explanations, symfile_complaints): New variables.
653 New variables.
654 (get_complaints): New function.
655 (vcomplaint): New function.
656 (complaint): New function.
657 (internal_complaint): New function.
658 (complain): Call vcomplain with symfile_complaint.
659 (clear_complaints): Rewrite.
660 (_initialize_complaints): Use add_setshow_command.
661 * Makefile.in (complaints.o): Update dependencies.
662 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
663 to call to clear_complaints.
664 (new_symfile_objfile, reread_symbols): Ditto.
665 (oldsyms_complaint): Delete.
666 (empty_symtab_complaint, unknown_option_complaint): Delete.
667 (free_named_symtabs): Use complaint instead of complain.
668
669 2002-09-18 Michael Snyder <msnyder@redhat.com>
670
671 Contributed by Apple Computer, Inc. Merged with current sources
672 by Adam Fedor <fedor@doc.com> [cagney].
673
674 * objc-lang.c: First clean-up round: comments, indentation.
675 * objc-lang.h: Ditto.
676 * objc-lang.y: Ditto.
677
678 2002-09-18 Andrew Cagney <ac131313@redhat.com>
679
680 * maint.c (maintenance_internal_error): Print the parameter as the
681 error message.
682 (maintenance_internal_warning): New function.
683 (_initialize_maint_cmds): Add command `maint internal-warning'.
684
685 * defs.h (internal_warning, internal_vwarning): Declare.
686 * utils.c (struct internal_problem): Define.
687 (internal_vproblem): New function.
688 (internal_warning): New function.
689 (internal_vwarning): New function.
690 (internal_warning_problem, internal_error_problem): New variables.
691 (internal_verror): Just call internal_vproblem.
692
693 2002-09-18 Michael Snyder <msnyder@redhat.com>
694
695 * objc-lang.c: New file, support for Objective-C.
696 Preliminary check-in, not yet integrated into gdb.
697 * objc-lang.h: New file.
698 * objc-exp.y: New file.
699
700 2002-09-18 Andrew Cagney <ac131313@redhat.com>
701
702 * infrun.c (signal_stop_update): Convert definition to ISO C.
703 (signal_print_update): Ditto.
704 (signal_pass_update): Ditto.
705 * inflow.c (terminal_save_ours): Ditto.
706
707 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
708 comments.
709
710 * config/djgpp/fnchange.lst: Handle name clashes between
711 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
712 bfd/coff-tic80.c.
713
714 * i386-linux-tdep.h: Fix tipo.
715
716 2002-09-18 Adam Fedor <fedor@gnu.org>
717
718 * MAINTAINERS: Add myself to the Write After Approval list.
719
720 2002-09-18 Jim Blandy <jimb@redhat.com>
721
722 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
723 texthigh and textlow to reader-specific structs caused
724 objfile_relocate to miss them. This is fixable, but the work that
725 the change was supposed to prepare GDB for never got done anyway.
726
727 2002-09-18 David Carlton <carlton@math.stanford.edu>
728
729 * MAINTAINERS: Alphabetize Write After Approval list.
730
731 2002-09-18 Daniel Jacobowitz <drow@mvista.com>
732
733 Fix PR gdb/709
734 * values.c (value_static_field): Call read_var_value.
735
736 2002-09-18 Andrew Cagney <ac131313@redhat.com>
737
738 * valops.c (hand_function_call): Align the initial stack pointer
739 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
740 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
741 return value.
742 * mips-tdep.c (mips_frame_align): New function.
743 (mips_gdbarch_init): Set frame_align.
744 * gdbarch.sh (FRAME_ALIGN): New method.
745 * gdbarch.h, gdbarch.c: Re-generate.
746
747 2002-09-18 Michal Ludvig <mludvig@suse.cz>
748
749 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
750 registers.
751
752 2002-09-17 Andrew Cagney <ac131313@redhat.com>
753
754 * NEWS: Mention that MIPS $fp behavior changed.
755 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
756 reference to FP_REGNUM.
757 (mipsnbsd_cannot_store_register): Ditto.
758 * mips-linux-nat.c: Update copyright.
759 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
760 (mips_linux_cannot_store_register): Ditto.
761 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
762 * config/mips/tm-mips.h: Update copyright.
763 (FP_REGNUM): Delete macro.
764 (MIPS_REGISTER_NAMES): Replace "fp" with "".
765 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
766 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
767 (mips_r3041_reg_names, mips_r3051_reg_names)
768 (mips_r3081_reg_names): Replace "fp" with "".
769 Fix PR gdb/480.
770
771 2002-09-17 Theodore A. Roth <troth@verinet.com>
772
773 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
774 generic_read_register_dummy() (PR gdb/703).
775 (avr_push_return_address): #if 0 out unused vars.
776 (avr_gdbarch_init): Enable use of avr_push_return_address().
777
778 2002-09-17 Michael Snyder <msnyder@redhat.com>
779
780 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
781 RTE will take care of it.
782
783 2002-09-17 Andrew Cagney <ac131313@redhat.com>
784
785 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
786 invalid, return SP_REGNUM.
787
788 2002-09-17 Michael Snyder <msnyder@redhat.com>
789
790 * mips-tdep.c (mips_pop_frame): Read saved values of floating
791 point registers without sign extension.
792
793 2002-09-17 Andrew Cagney <cagney@redhat.com>
794
795 * blockframe.c (deprecated_read_register_dummy): Rename
796 generic_read_register_dummy.
797 * frame.c (frame_unwind_signed_register): New function.
798 (frame_unwind_unsigned_register): New function.
799 * frame.h (frame_unwind_signed_register): Declare.
800 (frame_unwind_unsigned_register): Declare.
801 (deprecated_read_register_dummy): Rename
802 generic_read_register_dummy.
803
804 * h8300-tdep.c (h8300_frame_chain): Update.
805 (h8300_frame_saved_pc): Update.
806 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
807 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
808 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
809 (s390_frame_chain): Update.
810 * v850-tdep.c (v850_find_callers_reg): Update.
811 (v850_frame_saved_pc): Update.
812 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
813 (m32r_find_callers_reg): Update.
814 (m32r_frame_saved_pc): Update.
815 * sh-tdep.c (sh_find_callers_reg): Update.
816 (sh64_get_saved_pr): Update.
817 (sh_init_extra_frame_info): Update.
818 (sh_init_extra_frame_info): Update.
819 (sh64_init_extra_frame_info): Update.
820 (sh64_init_extra_frame_info): Update.
821 * mcore-tdep.c (mcore_find_callers_reg): Update.
822 (mcore_frame_saved_pc): Update.
823 (mcore_init_extra_frame_info): Update.
824 * i386-tdep.c (i386_frame_saved_pc): Update.
825 * ia64-tdep.c (ia64_frame_saved_pc): Update.
826 (ia64_init_extra_frame_info): Update.
827 (ia64_init_extra_frame_info): Update.
828 * d10v-tdep.c (d10v_frame_saved_pc): Update.
829 * cris-tdep.c (cris_init_extra_frame_info): Update.
830 * avr-tdep.c (avr_frame_chain): Update.
831 (avr_init_extra_frame_info): Update.
832 (avr_frame_saved_pc): Update.
833 * arm-tdep.c (arm_find_callers_reg): Update.
834 (arm_init_extra_frame_info): Update.
835 (arm_frame_saved_pc): Update.
836
837 2002-09-17 Tom Tromey <tromey@redhat.com>
838
839 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
840 is "'".
841
842 2002-09-17 Corinna Vinschen <vinschen@redhat.com>
843
844 * MAINTAINERS: Remove "non multi-arched" text from h8300.
845 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
846 NEXT_PROLOGUE_INSN.
847 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
848 NEXT_PROLOGUE_INSN.
849
850 2002-09-16 Joel Brobecker <brobecker@gnat.com>
851
852 * osfsolib.c: Remove file, replaced by solib-osf.c.
853 * Makefile.in: Remove compilation rules for osfsolib.c.
854
855 2002-09-16 David Carlton <carlton@math.stanford.edu>
856
857 * cp-valprint.c (cp_print_class_method): Correct args to
858 check_stub_method_group.
859
860 2002-09-16 Corinna Vinschen <vinschen@redhat.com>
861
862 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
863 `set architecture'. Unify naming convention of functions.
864 (h8300_skip_prologue): Improve prologue analysis.
865 (h8300_push_arguments): Rewritten to more closely match GCC's
866 bizarre argument-passing behavior, along with the comment describing
867 said behavior.
868 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
869 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
870 sim, remote-e7000.c, remote-hms.c and remote.c
871
872 2002-09-15 Mark Kettenis <kettenis@gnu.org>
873
874 * i386-tdep.c (gdb_print_insn_i386): Removed.
875 (i386_print_insn): New function.
876 (i386_gdbarch_init): Set print_insn to i386_print_insns.
877 (_initialize_i386_tdep): Don't initialize tm_print_insn and
878 tm_print_insn_info.
879
880 2002-09-14 Mark Kettenis <kettenis@gnu.org>
881
882 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
883 zero.
884
885 2002-09-14 Corinna Vinschen <vinschen@redhat.com>
886
887 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
888 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
889 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
890
891 2002-09-13 Christopher Faylor <cgf@redhat.com>
892
893 * win32-nat.c (child_create_inferior): Honor 'tty' command.
894
895 2002-09-13 Daniel Jacobowitz <drow@mvista.com>
896
897 * gdbtypes.c (check_stub_method): Make static.
898 (check_stub_method_group): New function.
899 * gdbtypes.h: Update prototypes.
900 * cp-support.c: New file.
901 * cp-support.h: New file.
902
903 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
904 (update_method_name_from_physname): New function.
905 (read_member_functions): Correct method names for operators
906 and v3 constructors/destructors. Separate v2 constructors and
907 destructors.
908 * Makefile.in (stabsread.o): Update dependencies.
909 (SFILES): Add cp-support.c.
910 (COMMON_OBS): Add cp-support.o.
911 (cp_support_h, cp-support.o): Add.
912
913 * cp-valprint.c (cp_print_class_method): Call
914 check_stub_method_group instead of check_stub_method. Remove
915 extraneous QUITs.
916 * p-valprint.c (pascal_object_print_class_method): Likewise.
917 * valops.c (search_struct_method): Likewise.
918 (find_method_list, value_struct_elt_for_reference): Likewise.
919
920 2002-09-13 Andrew Cagney <cagney@redhat.com>
921
922 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
923 * gdbarch.h, gdbarch.c: Regenerate.
924
925 2002-09-13 Andrew Cagney <ac131313@redhat.com>
926
927 * frame.c (find_saved_register): Delete function.
928 * frame.h (find_saved_register): Delete declaration.
929 Fix PR gdb/631.
930
931 Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
932
933 * mips-tdep.c (read_next_frame_reg): Re-hack using
934 frame_register_unwind.
935
936 Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
937
938 * mips-tdep.c (mips_get_saved_register): Re-hack using
939 frame_register_unwind.
940
941 2002-09-12 Joel Brobecker <brobecker@gnat.com>
942
943 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
944 vector. Will be useful for Interix.
945 * gdbarch.h, gdbarch.c: Regenerate.
946
947 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
948 name of the malloc function by NAME_OF_MALLOC.
949
950 2002-09-12 Joel Brobecker <brobecker@gnat.com>
951
952 * value.h (find_function_in_inferior): Add const keyword to
953 one of the parameters. Allows us to invoke this function with
954 a const char *.
955 * valops.c (find_function_in_inferior): Likewise.
956
957 2002-09-12 Joel Brobecker <brobecker@gnat.com>
958
959 * exec.c (xfer_memory): Fix compilation warning with old versions
960 of GCC.
961 * tracepoint.c (trace_find_tracepoint_command): Likewise.
962
963 2002-09-12 David Carlton <carlton@math.stanford.edu>
964
965 * symtab.h: Run through gdb_indent.h.
966 Add 2002 to Copyright year list.
967
968 2002-09-12 Alan Modra <amodra@bigpond.net.au>
969
970 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
971 mach constants.
972 * MAINTAINERS: Add myself to write after approval list.
973
974 2002-09-11 J. Brobecker <brobecker@gnat.com>
975
976 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
977
978 2002-09-11 J. Brobecker <brobecker@gnat.com>
979
980 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
981 Interix.
982
983 2002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
984
985 * procfs.c (do_detach): Clear current signal, not just fault.
986 Corrects problem with breakpoint trap signal leaking to detached
987 process on Tru64.
988
989 2002-09-10 Michael Snyder <msnyder@redhat.com>
990
991 * buildsym.c (finish_block): Protect against null pointer.
992
993 2002-09-10 Andrew Cagney <cagney@redhat.com>
994
995 * infcmd.c (default_print_registers_info): Send all output to
996 ``file'' instead of ``gdb_stdout''.
997
998 2002-09-10 Michael Snyder <msnyder@redhat.com>
999
1000 * mips-tdep.c (mips_extract_struct_value_address): Make val a
1001 LONGEST, and use signed register read (addresses are sign-
1002 extended for mips).
1003
1004 2002-09-10 Stephane Carrez <stcarrez@nerim.fr>
1005
1006 * event-loop.c (gdb_do_one_event): Make public.
1007 * event-loop.h (gdb_do_one_event): Declare.
1008
1009 2002-09-10 Jeff Law <law@redhat.com>
1010
1011 * infttrace.c (child_resume): Simplify and rework to avoid
1012 TT_PROC_CONTINUE.
1013
1014 2002-09-09 Fred Fish <fnf@intrinsity.com>
1015
1016 * printcmd.c (print_scalar_formatted): "len" is the number of
1017 target bytes, NOT the number of target bits.
1018
1019 2002-09-09 Elena Zannoni <ezannoni@redhat.com>
1020
1021 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
1022 * top.c (init_main): Set rl_terminal_name.
1023
1024 2002-09-08 Aidan Skinner <aidan@velvet.net>
1025
1026 * ada-lang.c (ada_array_bound, ada_type_match,
1027 _initialize_ada_language): Fix K&R definitions.
1028 * ada-tasks.c (get_current_task): Fix K&R definitions.
1029 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
1030
1031 2002-09-07 Christopher Faylor <cgf@redhat.com>
1032
1033 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
1034 Add XP.
1035
1036 2002-09-06 Mark Kettenis <kettenis@gnu.org>
1037
1038 * i386-tdep.c (i386_register_virtual_type,
1039 i386_register_convertible, i386_register_convert_to_virtual,
1040 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
1041 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
1042 (i386_gdbarch_init): Fix comment. Add comments on calls that set
1043 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
1044 Don't set push_arguments twice.
1045
1046 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
1047 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
1048 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
1049 sigtramp_end to NULL.
1050 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
1051 defines.
1052 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
1053
1054 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
1055 whitespace.
1056
1057 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
1058 * gdbarch.h, gdbarch.c: Re-generate.
1059 * blockframe.c (find_pc_sect_partial_function): Convert to use
1060 SIGTRAMP_START_P predicate.
1061
1062 2002-09-05 Michael Snyder <msnyder@redhat.com>
1063
1064 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
1065 generic_dummy_frame method and old method. Also distinguish
1066 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
1067 (arm_extract_return_value): Use new regcache method.
1068
1069 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
1070 adjustment that doesn't conform to the ABI.
1071 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
1072 saved regcache, not from current regcache.
1073
1074 2002-09-05 Andrew Cagney <ac131313@redhat.com>
1075
1076 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
1077 * README: Update.
1078
1079 2002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
1080
1081 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
1082 if arm_apcs_32 is false.
1083
1084 2002-09-04 Andrew Cagney <ac131313@redhat.com>
1085
1086 GDB 5.3 branch created.
1087
1088 2002-09-03 Theodore A. Roth <troth@verinet.com>
1089
1090 * gdb/avr-tdep.c (avr_gdbarch_init): Use
1091 generic_unwind_get_saved_register.
1092
1093 2002-09-03 David Carlton <carlton@math.stanford.edu>
1094
1095 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
1096 argument (PR gdb/653). Update call to smash_to_method_type.
1097 (read_structure_scope): Update call to dwarf2_add_member_fn.
1098
1099 2002-09-03 Michal Ludvig <mludvig@suse.cz>
1100
1101 * x86-64-linux-tdep.c: Include gdb_string.h
1102 * x86-64-linux-nat.c: Ditto.
1103
1104 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1105
1106 * ada-exp.y (yyname, yyrule): Remap global variables that appear
1107 when YYDEBUG is set to 1.
1108 * c-exp.y: Likewise.
1109 * f-exp.y: Likewise.
1110 * jv-exp.y: Likewise.
1111 * m2-exp.y: Likewise.
1112 * p-exp.y: Likewise.
1113
1114 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1115
1116 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
1117 dependency list.
1118 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
1119 solib_svr4_fetch_link_map_offsets to
1120 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
1121 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
1122 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
1123 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
1124 solib-svr4.o, and solib-legacy.o.
1125 * config/i386/tm-nbsd.h: Include solib.h.
1126
1127 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1128
1129 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
1130 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
1131 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
1132 comment noting that this needs its own target configuration.
1133 * config/i386/nbsd.mt: New file.
1134 * config/i386/nbsdaout.mt: Remove.
1135 * config/i386/nbsdelf.mt: Ditto.
1136 * config/i386/tm-nbsdaout.h: Ditto.
1137
1138 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1139
1140 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
1141 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
1142 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
1143 tdep->sigtramp_end.
1144 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
1145 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
1146 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
1147
1148 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1149
1150 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
1151 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
1152 * i386-tdep.h (i386bsd_init_abi): New prototype.
1153 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
1154 function declaration.
1155 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
1156 for NetBSD-a.out or NetBSD-ELF.
1157 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
1158 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
1159 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
1160 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
1161 and nbsd-tdep.h.
1162 (i386nbsd_pc_in_sigtramp): New function.
1163 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1164 i386nbsd_pc_in_sigtramp.
1165 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
1166 and i386nbsdelf_init_abi OS ABI handlers.
1167 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
1168 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
1169
1170 2002-09-02 Mark Kettenis <kettenis@gnu.org>
1171
1172 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
1173 registers if the target really has them.
1174
1175 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1176
1177 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
1178 than nbsd-tdep.h.
1179
1180 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1181
1182 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
1183 list.
1184 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
1185 (alphanbsd_skip_sigtramp_frame): New functions.
1186 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
1187 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
1188 to alphanbsd_sigcontext_addr.
1189
1190 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1191
1192 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
1193 list.
1194 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
1195 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
1196 nbsd_pc_in_sigtramp.
1197 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
1198 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
1199 * nbsd-tdep.c: Include gdb_string.h.
1200 (nbsd_pc_in_sigtramp): New function.
1201 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
1202 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
1203 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1204 ppcnbsd_pc_in_sigtramp.
1205 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
1206 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1207 shnbsd_pc_in_sigtramp.
1208 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
1209 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
1210 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
1211
1212 2002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
1213
1214 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
1215 watchpoints to NULL.
1216 (insert_breakpoints): set val field of watchpoints if NULL.
1217
1218
1219 2002-08-29 Jim Blandy <jimb@redhat.com>
1220
1221 * symtab.c (lookup_symbol_aux): In the cases where we find a
1222 minimal symbol of an appropriate name and use its address to
1223 select a symtab to read and search, use `name' (as passed to us)
1224 as the demangled name when searching the symtab's global and
1225 static blocks, not the minsym's name.
1226
1227 2002-08-29 Keith Seitz <keiths@redhat.com>
1228
1229 * stack.c (print_frame_info_base): Always set current_source_symtab
1230 and current_source_line.
1231
1232 2002-08-29 Donn Terry <donnte@microsoft.com>
1233
1234 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
1235
1236 2002-08-28 Keith Seitz <keiths@redhat.com>
1237
1238 * stack.c (select_frame): Add FIXME concerning selected-frame
1239 events.
1240 (select_frame_command): Send selected-frame-level-changed
1241 event notification, but only if the level actually changed.
1242 (up_silently_base): Add selected-frame-level-changed event
1243 notification.
1244 (down_silently_base): Likewise.
1245
1246 2002-08-28 Andrew Cagney <ac131313@redhat.com>
1247
1248 * Makefile.in: Update dependencies for all gdb/*.c files.
1249
1250 2002-08-27 Tom Tromey <tromey@redhat.com>
1251
1252 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
1253 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
1254 Update dependencies.
1255 * i387-tdep.c: Include gdb_string.h.
1256 * osabi.c: Likewise.
1257 * i386-linux-nat.c: Likewise.
1258 * lin-lwp.c: Likewise.
1259 * ax-gdb.c: Likewise.
1260 * signals/signals.c: Likewise.
1261 * jv-valprint.c: Likewise.
1262 * p-lang.c: Likewise.
1263 * c-valprint.c: Likewise.
1264 * cp-abi.c: Likewise.
1265
1266 2002-08-27 Elena Zannoni <ezannoni@redhat.com>
1267
1268 * cli/cli-script.h (copy_command_lines): Export.
1269 * breakpoint.c: Include cli/cli-script.h.
1270 * Makefile.in (breakpoint.o): Update dependencies.
1271
1272 2002-08-26 Michael Snyder <msnyder@redhat.com>
1273
1274 * breakpoint.c (insert_breakpoints): Protect all references
1275 to 'process_warning'. Shorten long lines.
1276
1277 2002-08-26 Joel Brobecker <brobecker@gnat.com>
1278
1279 * cli/cli-script.c (copy_command_lines): New function.
1280 * defs.h (copy_command_lines): Export.
1281 * testsuite/gdb.base/commands.exp: New tests for commands
1282 attached to a temporary breakpoint, and for commands that
1283 delete the breakpoint they are attached to.
1284
1285 2002-08-26 Michael Snyder <msnyder@redhat.com>
1286
1287 * breakpoint.c (bpstat_stop_status): Instead of copying the
1288 pointer to the breakpoint commands struct, make a new copy
1289 of the struct and point to that.
1290 (bpstat_clear): Free the commands struct.
1291 (bpstat_clear_actions): Free the commands struct.
1292 (bpstat_do_actions): Free the command actions. Also execute
1293 the local cleanups, instead of deleting them.
1294 (delete_breakpoint): Leave the commands field of the bpstat
1295 chain alone -- it will be freed later.
1296
1297 2002-08-26 Kevin Buettner <kevinb@redhat.com>
1298
1299 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
1300 deleted in 2002-08-20 commit. This function is still used by
1301 ppc-linux-nat.c.
1302
1303 2002-08-26 Keith Seitz <keiths@redhat.com>
1304
1305 * gdb-events.sh: Add selected-frame-level-changed event.
1306 * gdb-events.c: Regenerated.
1307 * gdb-events.h: Regenerated.
1308
1309 2002-08-26 Stephane Carrez <stcarrez@nerim.fr>
1310
1311 Fix PR gdb/393:
1312 * inflow.c (terminal_save_ours): New function to save terminal
1313 settings.
1314 * inferior.h (terminal_save_ours): Declare.
1315 * target.c (debug_to_terminal_save_ours): New function.
1316 (cleanup_target): Defaults to_terminal_save_ours.
1317 (update_current_target): Inherit to_terminal_save_ours.
1318 (setup_target_debug): Set to_terminal_save_ours.
1319 * target.h (target_terminal_save_ours): New to save terminal settings.
1320 (target_ops): New member to_terminal_save_ours.
1321 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
1322 * hpux-thread.c (init_hpux_thread_ops): Likewise.
1323 * inftarg.c (init_child_ops): Likewise.
1324 * m3-nat.c (init_m3_ops): Likewise.
1325 * procfs.c (init_procfs_ops): Likewise.
1326 * wince.c (init_child_ops): Likewise.
1327 * win32-nat.c (init_child_ops): Likewise.
1328 * sol-thread.c (init_sol_thread_ops): Likewise.
1329
1330 2002-08-26 Mark Kettenis <kettenis@gnu.org>
1331
1332 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
1333 use regcache_* functions.
1334 (i386_gdbarch_init): Set store_return_value instead of
1335 deprecated_store_return_value.
1336
1337 * regcache.c (regcache_raw_write_signed,
1338 regcache_raw_write_unsigned): New functions.
1339 * regcache.h (regcache_raw_write_signed,
1340 regcache_raw_write_unsigned): New prototypes.
1341
1342 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1343
1344 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
1345 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
1346 source file dependencies. Cleanup corresponding generator rules.
1347
1348 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1349
1350 * regcache.h (register_offset_hack): Declare.
1351 (regcache_cooked_read_using_offset_hack): Declare.
1352 (regcache_cooked_write_using_offset_hack): Declare.
1353
1354 * regcache.c (register_offset_hack): New function.
1355 (regcache_cooked_read_using_offset_hack): New function.
1356 (regcache_cooked_write_using_offset_hack): New function.
1357 (regcache_dump): Check that the registers, according to their
1358 offset, are packed hard against each other.
1359 (cooked_xfer_using_offset_hack): New function.
1360
1361 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1362
1363 * regcache.c (struct regcache_descr): Add field register_type.
1364 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
1365 in as a parameter
1366 (init_regcache_descr): Initialize register_type. Pass the descr
1367 to init_legacy_regcache_descr. Use register_type instead of
1368 REGISTER_VIRTUAL_TYPE.
1369 (register_type): New function.
1370 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
1371 * regcache.h (register_type): Declare.
1372
1373 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1374
1375 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
1376 instead of deprecated_store_return_value. Fix fallout from
1377 2002-08-23 Andrew Cagney <cagney@redhat.com>.
1378
1379 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1380
1381 * regcache.c (max_register_size): New function.
1382 (init_legacy_regcache_descr): Ensure that max_register_size is
1383 large enough for REGISTER_VIRTUAL_SIZE.
1384 * regcache.h (max_register_size): Declare.
1385
1386 2002-08-24 Andrew Cagney <ac131313@redhat.com>
1387
1388 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
1389 store_return_value.
1390 (e500_extract_return_value): Change type of valbuf pointer to
1391 void.
1392
1393 2002-08-24 Mark Kettenis <kettenis@gnu.org>
1394
1395 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
1396 workaround.
1397
1398 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
1399 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
1400 long long) to prevent compiler warning on 64-bit systems.
1401
1402 2002-08-23 Andrew Cagney <cagney@redhat.com>
1403
1404 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
1405 (DEPRECATED_STORE_RETURN_VALUE): New method.
1406 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
1407 * gdbarch.h, gdbarch.c: Re-generate.
1408
1409 * values.c (set_return_value): Pass current_regcache to
1410 STORE_RETURN_VALUE.
1411 * arch-utils.h (legacy_store_return_value): Declare.
1412 * arch-utils.c (legacy_store_return_value): New function.
1413 (legacy_extract_return_value): Update parameters.
1414
1415 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
1416 STORE_RETURN_VALUE.
1417 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1418 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1419 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1420 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1421 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1422 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1423 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1424 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1425 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1426 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1427
1428 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1429 * i386-tdep.c (i386_extract_return_value): Update.
1430 * arch-utils.c (legacy_extract_return_value): Update.
1431 * frv-tdep.c (frv_gdbarch_init): Update.
1432 * cris-tdep.c (cris_gdbarch_init): Update.
1433 * d10v-tdep.c (d10v_gdbarch_init): Update.
1434 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1435 * m68k-tdep.c (m68k_gdbarch_init): Update.
1436 * mcore-tdep.c (mcore_gdbarch_init): Update.
1437 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1438 * s390-tdep.c (s390_gdbarch_init): Update.
1439 * sparc-tdep.c (sparc_gdbarch_init): Update.
1440 * sh-tdep.c (sh_gdbarch_init): Update.
1441 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1442 * v850-tdep.c (v850_gdbarch_init): Update.
1443 * avr-tdep.c (avr_gdbarch_init): Update.
1444 * ia64-tdep.c (ia64_gdbarch_init): Update.
1445 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1446 * vax-tdep.c (vax_gdbarch_init): Update.
1447 * alpha-tdep.c (alpha_gdbarch_init): Update.
1448 * arm-tdep.c (arm_gdbarch_init): Update.
1449 * mips-tdep.c (mips_gdbarch_init): Update.
1450 * i386-tdep.c (i386_gdbarch_init): Update.
1451
1452 2002-08-23 Andrew Cagney <ac131313@redhat.com>
1453
1454 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
1455 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
1456
1457 2002-08-24 Mark Kettenis <kettenis@gnu.org>
1458
1459 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
1460 problems.
1461
1462 2002-08-23 Joel Brobecker <brobecker@gnat.com>
1463
1464 * infrun.c (handle_inferior_event): Move a comment outside of a
1465 function call, in order to avoid indent reformatting this part
1466 of the code in an unreadable way.
1467
1468 2002-08-23 Grace Sainsbury <graces@redhat.com>
1469
1470 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
1471 when breakpoints fail. Move general breakpoint error messages to
1472 insert_breakpoints.
1473 * breakpoint.c (insert_breakpoints): Change warnings when
1474 breakpoints are nto inserted to specify the type. Remove call to
1475 memory_error when hardware breakpoints can't be inserted. Remove
1476 multiple calls to warning so all messages are sent to the user at
1477 once.
1478 (delete_breakpoints): Make insert error messsages more explicit.
1479
1480 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
1481
1482 * ChangeLog: Move gdbserver entries after GDB 5.2 to
1483 gdbserver/ChangeLog.
1484
1485 2002-08-23 Mark Kettenis <kettenis@gnu.org>
1486
1487 * i386-tdep.c: Include "objfiles.h".
1488 (i386_svr4_init_abi): Set in_solib_call_trampoline and
1489 skip_trampoline_code.
1490 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
1491 (CPLUS_MARKER): Define to '.'.
1492
1493 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
1494 member.
1495 (linux_corefile_thread_callback): Increase args->num_notes.
1496 (linux_make_note_section): Initialize thread_args.num_notes, and
1497 use it to determine whether notes for any threads were created.
1498
1499 2002-08-23 Donn Terry <donnte@microsoft.com>
1500
1501 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
1502 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
1503 and PCUNKILL.
1504 (write_with_trace): Conditionalize out the switch branch handling
1505 PCSHOLD if the corresponding macro is not defined. Likewise for
1506 PRSABORT and PRSTOP.
1507 This change will be needed by the Interix port.
1508
1509 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
1510
1511 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
1512 write_register wherever possible instead of manipulating the
1513 register bytes directly.
1514 Assign VALUE_CONTENTS to a variable and use that.
1515 The GPR numbers are now dependent on the architecture.
1516
1517 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
1518
1519 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
1520 ev_offset fields.
1521 (skip_prologue): Add support for BookE/e500 instructions.
1522 (e500_extract_return_value): New function.
1523 (frame_get_saved_regs): Add support for saving ev registers and
1524 pseudo gpr's.
1525 (e500_store_return_value): New function.
1526 (rs6000_gdbarch_init): Move up default intializations of
1527 deprecated_extract_return_value and store_return_value. Overwrite
1528 init of store_return_value with e500 specific version.
1529 Set extract_return_value for e500.
1530
1531 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
1532
1533 * blockframe.c (generic_call_dummy_register_unwind): Use
1534 regcache_cooked_read to catch cases in which the variable is
1535 stored in a pseudo register.
1536
1537 2002-08-22 Andrew Cagney <cagney@redhat.com>
1538
1539 * NEWS: Mention that the i960 has been made obsolete.
1540 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
1541 i960-tdep.c
1542 (remote-nrom.o): Obsolete target.
1543 (remote-nindy.o, i960-tdep.o): Ditto.
1544 * remote-nrom.c: Make file obsolete.
1545 * remote-nindy.c, remote-vx960.c: Ditto.
1546 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
1547 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
1548 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
1549 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
1550 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
1551 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
1552 i960-*-vxworks* obsolete.
1553 * MAINTAINERS: Note that the i960 is obsolete.
1554
1555 2002-08-21 Corinna Vinschen <vinschen@redhat.com
1556
1557 * aix-thread.c (aix_thread_detach): Disable thread debugging on
1558 detach to allow reinitialization.
1559
1560 2002-08-22 Andrew Cagney <ac131313@redhat.com>
1561
1562 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
1563 attempt).
1564
1565 2002-08-22 Jim Blandy <jimb@redhat.com>
1566
1567 * coffread.c (coff_symfile_read): Don't try to read the line
1568 number table from disk if the image file doesn't have a symbol
1569 table; we'll never actually look at the info anyway, and Windows
1570 ships DLL's with bogus file offsets for the line number data.
1571
1572 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
1573
1574 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
1575 an e500 executable.
1576
1577 2002-08-21 Michael Snyder <msnyder@redhat.com>
1578
1579 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
1580 (MSYMBOL_SIZE): Replace macro with function.
1581 (DEFAULT_MIPS_TYPE): Delete unused macro.
1582 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
1583 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
1584
1585 2002-08-21 Jim Blandy <jimb@redhat.com>
1586
1587 * valops.c (value_cast): Simplify and correct logic for doing a
1588 static cast from a pointer to a base class to a pointer to a
1589 derived class.
1590
1591 2002-08-21 Andrew Cagney <ac131313@redhat.com>
1592
1593 * infcmd.c (default_print_registers_info): Replace
1594 do_registers_info.
1595 (registers_info): Use gdbarch_print_registers_info instead of
1596 DO_REGISTERS_INFO.
1597 * inferior.h (default_print_registers_info): Replace
1598 do_registers_info.
1599 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
1600 (DO_REGISTERS_INFO): Change to a predicate function.
1601 * gdbarch.h, gdbarch.c: Regenerate.
1602
1603 2002-08-21 Keith Seitz <keiths@redhat.com>
1604
1605 * gdb-events.sh: Add target-changed event.
1606 * gdb-events.c: Regenerated.
1607 * gdb-events.c: Regenerated.
1608 * valops.c (value_assign): Add target-changed event notification
1609 to inlval_register, lval_memory, and lval_reg_frame_relative.
1610
1611 2002-08-21 Joel Brobecker <brobecker@gnat.com>
1612
1613 * NEWS: Add an entry regarding the improvement of the next/step
1614 operation on Alpha Tru64 multi-processor machines.
1615
1616 2002-08-21 Andrew Cagney <ac131313@redhat.com>
1617
1618 * Makefile.in: Update dependencies for mi/ cli/ and tui/
1619 directores.
1620 * Makefile.in: Update all _h macro definitions.
1621 * Makefile.in (install-gdbtk): Move to install section.
1622 (rdi-share/libangsd.a): Move to end of file.
1623
1624 2002-08-19 Andrew Cagney <ac131313@redhat.com>
1625
1626 * frame.c (frame_register_unwind): When a register, set addrp to
1627 the register's byte.
1628
1629 2002-08-20 Michael Snyder <msnyder@redhat.com>
1630
1631 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
1632 used locally, so move them from the target machine header to here.
1633 (mips_set_processor_type, mips_register_name, mips32_next_pc,
1634 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
1635 Make static.
1636 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
1637
1638 2002-08-20 Andrew Cagney <cagney@redhat.com>
1639
1640 * NEWS: Mention that the Apollo line was made obsolete.
1641 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
1642 m68*-hp-hpux* obsolete.
1643 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
1644 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
1645 * buildsym.c (make_blockvector): Make static.
1646 * buildsym.h (make_blockvector): Make extern declaration obsolete.
1647 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
1648 (ALLDEPFILES): Remove dstread.c.
1649 (dstread.o): Obsolete make rule.
1650 * dstread.c: Makefile obsolete.
1651 * dst.h: Ditto.
1652 * config/m68k/hp300hpux.mt: Ditto.
1653 * config/m68k/hp300hpux.mh: Ditto.
1654 * config/m68k/hp300bsd.mt: Ditto.
1655 * config/m68k/hp300bsd.mh: Ditto.
1656 * config/m68k/apollo68b.mt: Ditto.
1657 * config/m68k/apollo68v.mh: Ditto.
1658 * config/m68k/apollo68b.mh: Ditto.
1659
1660 2002-08-20 Michael Snyder <msnyder@redhat.com>
1661
1662 * mips-tdep.c (mips_in_return_stub): Make static.
1663 (mips_gdbarch_init): Set in_solib_return_trampoline.
1664 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
1665
1666 2002-08-20 Michael Snyder <msnyder@redhat.com>
1667
1668 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
1669 * gdbarch.c, gdbarch.h: Regenerate.
1670 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
1671 Add.
1672 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
1673
1674 2002-08-20 Michael Snyder <msnyder@redhat.com>
1675
1676 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
1677 (mips_gdbarch_init): Set skip_trampoline_code,
1678 in_solib_call_trampoline.
1679 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
1680 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
1681
1682 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1683
1684 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
1685
1686 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
1687 vector type for ev registers.
1688 (e500_pseudo_register_read): New function.
1689 (e500_pseudo_register_write): New function.
1690 (e500_dwarf2_reg_to_regnum): New function.
1691 (PPC_UISA_NOFP_SPRS): New macro.
1692 (PPC_EV_REGS): New macro.
1693 (PPC_GPRS_PSEUDO_REGS): New macro.
1694 (registers_e500): New register set for e500.
1695 (variants): Add e500 variant.
1696 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
1697 before setting architectural dependent variations. Initialize ev
1698 registers numbers. Add case for e500 architecture. Set the
1699 number of pseudo registers.
1700
1701 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1702
1703 * rs6000-tdep.c: Clean up comments.
1704
1705 2002-08-20 Andrew Cagney <cagney@redhat.com>
1706
1707 * h8300-tdep.c: Re-indent file.
1708
1709 2002-08-20 Jim Blandy <jimb@redhat.com>
1710
1711 * Makefile.in (LDFLAGS): Allow the configure script to establish a
1712 default for this.
1713
1714 2002-08-20 Keith Seitz <keiths@redhat.com>
1715
1716 * breakpoints.c (watch_command_1): Use internal breakpoint
1717 when setting a watchpoint_scope breakpoint.
1718
1719 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1720
1721 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
1722 (build_builtin_type_vec64i): Ditto.
1723 (build_builtin_type_vec128): Ditto.
1724 (build_builtin_type_vec128i): Ditto.
1725
1726 2002-08-19 Michael Snyder <msnyder@redhat.com>
1727
1728 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
1729 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
1730 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
1731 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
1732 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
1733 CALL_DUMMY_ADDRESS): Delete.
1734 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
1735 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
1736 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
1737 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
1738 push_return_address.
1739 (mips_register_raw_size, mips_eabi_use_struct_convention,
1740 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
1741 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
1742 mips_init_extra_frame_info, mips_eabi_push_arguments,
1743 mips_n32n64_push_arguments, mips_push_return_address,
1744 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
1745 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
1746
1747 2002-08-19 Michael Snyder <msnyder@redhat.com>
1748
1749 * mips-tdep.c (mips_frame_num_args): New function.
1750 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
1751 frame_saved_pc, frame_args_address, frame_locals_address,
1752 frame_num_args, and frame_args_skip.
1753 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
1754 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
1755 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
1756 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
1757
1758 2002-08-20 Michael Snyder <msnyder@redhat.com>
1759
1760 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
1761 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
1762 * mips-tdep.c (mips_store_struct_return): New function.
1763 (mips_extract_struct_value_address): New function.
1764 (mips_gdbarch_init): Set store_struct_return and
1765 extract_struct_value_address.
1766
1767 2002-08-20 David Carlton <carlton@math.stanford.edu>
1768
1769 * dwarf2read.c (dwarf2_build_psymtabs): Check that
1770 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
1771 (read_file_scope): Check that line_header is nonzero before
1772 decoding macro information.
1773
1774 2002-08-20 Mark Kettenis <kettenis@gnu.org>
1775
1776 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
1777 flag the general-purpose registers as floating-point on targets
1778 that don't support the floating-point registers.
1779
1780 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1781
1782 * rs6000-tdep.c (altivec_register_p): Delete.
1783 (rs6000_do_altivec_registers): Delete.
1784 (rs6000_altivec_registers_info): Delete.
1785 (rs6000_do_registers_info): Delete.
1786 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
1787 (rs6000_gdbarch_init): Remove setting of do_registers_info.
1788
1789 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1790
1791 * infcmd.c (do_registers_info): Print vector registers in hex
1792 format only.
1793 (print_vector_info): Check that printing registers
1794 makes sense.
1795 (print_float_info): Ditto.
1796
1797 2002-08-20 Andrew Cagney <ac131313@redhat.com>
1798
1799 * mips-tdep.c (mips_gdbarch_init): Update.
1800 (mips_o32_extract_return_value): Rewrite.
1801 (mips_o32_store_return_value): Rewrite.
1802 (mips_o32_xfer_return_value): New function.
1803 (mips_xfer_register): Tweak debug print message. Allow for
1804 buf_offset when dumping the value transfered.
1805
1806 2002-08-20 Andrew Cagney <ac131313@redhat.com>
1807
1808 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
1809 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
1810 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
1811 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
1812 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
1813
1814 2002-08-14 Michael Snyder <msnyder@redhat.com>
1815
1816 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
1817
1818 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
1819
1820 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
1821 register.
1822 (P): New macro to define a register as a pseudo register.
1823 (R, R4, R8, R16, FR32, R64, R0): Updated.
1824 (struct variant): Add new fields for number of pseudo registers
1825 and number of total registers.
1826 (tot_num_registers): New macro replacing....
1827 (num_registers): ...deleted macro.
1828 (num_registers): New function.
1829 (num_pseudo_registers): New function.
1830 (variants): Update all variants to intialize new fields correctly.
1831 Postpone initialization of number of pseudo regs and real regs.
1832 (init_variants): New function.
1833 (rs6000_gdbarch_init): Initialize variants. Update calculation of
1834 registers offsets.
1835
1836 2002-08-19 David Carlton <carlton@math.stanford.edu>
1837
1838 * valops.c (search_struct_field): Change error message to treat
1839 return value of 0 from value_static_field as meaning that field is
1840 optimized out.
1841 (value_struct_elt_for_reference): Ditto.
1842 * values.c (value_static_field): Treat an unresolved location the
1843 same as a nonexistent symbol. Fix PR gdb/635.
1844 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
1845 enclosed. Fix PR gdb/574.
1846 * MAINTAINERS: Add self to Write After Approval list.
1847
1848 2002-08-19 Andrew Cagney <ac131313@redhat.com>
1849
1850 * mips-tdep.c (mips_xfer_register): New function.
1851 (mips_n32n64_extract_return_value): Rewrite.
1852 (mips_gdbarch_init): For N32 and N64, set extract_return_value
1853 instead of deprecated_extract_return_value.
1854
1855 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
1856
1857 * rs6000-tdep.c (TDEP): Delete macro.
1858 (branch_dest): Replace use of TDEP macro with its body.
1859 (rs6000_pop_frame): Ditto.
1860 (rs6000_push_arguments): Ditto.
1861 (rs6000_skip_trampoline_code): Ditto.
1862 (rs6000_frame_saved_pc): Ditto.
1863 (rs6000_frame_chain): Ditto.
1864 (rs6000_register_name): Ditto.
1865 (rs6000_register_byte): Ditto.
1866 (rs6000_register_raw_size): Ditto.
1867 (rs6000_register_virtual_type): Ditto.
1868 (rs6000_register_convertible): Ditto.
1869 (rs6000_convert_from_func_ptr_addr): Ditto.
1870
1871 2002-08-19 Daniel Jacobowitz <drow@mvista.com>
1872
1873 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
1874 conditionally.
1875 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
1876 MIPS_LINUX_JB_ELEMENT_SIZE.
1877 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
1878 for MAX_REGISTER_RAW_SIZE arrays.
1879 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
1880 MIPS_LINUX_JB_ELEMENT_SIZE.
1881
1882 2002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
1883
1884 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
1885
1886 2002-08-19 Aidan Skinner <aidan@velvet.net>
1887
1888 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
1889 ada-valprint.c ada-tasks.c.
1890 (YYFILES): Add ada-exp.y.
1891 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
1892 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
1893 (ada-exp.tab.o): New target.
1894
1895 2002-08-18 Andrew Cagney <ac131313@redhat.com>
1896
1897 * regcache.c (regcache_xfer_part): New function.
1898 (regcache_raw_read_part): New function.
1899 (regcache_raw_write_part): New function.
1900 (regcache_cooked_read_part): New function.
1901 (regcache_cooked_write_part): New function.
1902 * regcache.h (regcache_raw_read_part): Declare.
1903 (regcache_raw_write_part): Declare.
1904 (regcache_cooked_read_part): Declare.
1905 (regcache_cooked_write_part): Declare.
1906
1907 2002-08-18 Daniel Jacobowitz <drow@mvista.com>
1908
1909 * remote.c (remote_open_1): Add async_p.
1910 (remote_async_open_1): Delete.
1911 (open_remote_target): Delete.
1912 (remote_open, extended_remote_open): Update calls to remote_open_1.
1913 (remote_async_open, extended_remote_async_open): Call
1914 remote_open_1 instead of remote_async_open_1.
1915
1916 2002-08-19 Mark Kettenis <kettenis@gnu.org>
1917
1918 * blockframe.c: Fix a few coding standard violations.
1919
1920 2002-08-19 Mark Kettenis <kettenis@gnu.org>
1921
1922 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
1923 here from ...
1924 * config/i386/tm-i386sco5.h: ... here. File removed.
1925 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
1926
1927 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
1928 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
1929 (TM_FILE): Set to tm-i386.h.
1930 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
1931 * config/i386/tm-i386v.h: Remove file.
1932 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
1933 instead of "i386/tm-i386v.h".
1934 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
1935 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
1936 "i386/tm-i386v.h".
1937 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
1938 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
1939 "i386/tm-i386.h".
1940
1941 2002-08-18 Mark Kettenis <kettenis@gnu.org>
1942
1943 * config/i386/nm-i386v.h: Add protection against
1944 multiple-inclusion.
1945 (i386_register_u_addr): Remove prototype.
1946 (register_u_addr): New prototype.
1947 (REGISTER_U_ADDR): Redefine accordingly.
1948 * i386v-nat.c: Improve several comments.
1949 (i386_register_u_addr): Change signature and rename to
1950 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
1951 ubase variable.
1952
1953 2002-08-18 Andrew Cagney <ac131313@redhat.com>
1954
1955 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
1956 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
1957 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
1958 deprecated_extract_return_value.
1959 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
1960 rename mips_o32o64_push_arguments.
1961 (mips_gdbarch_init): Update.
1962 (mips_extract_return_value): Delete.
1963 (mips_o32_extract_return_value): Clone mips_extract_return_value.
1964 (mips_o64_extract_return_value): Clone mips_extract_return_value.
1965 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
1966 (mips_n32n64_extract_return_value): Clone
1967 mips_extract_return_value.
1968 (mips_store_return_value): Delete.
1969 (mips_o32_store_return_value): Clone mips_store_return_value.
1970 (mips_o64_store_return_value): Clone mips_store_return_value.
1971 (mips_eabi_store_return_value): Clone mips_store_return_value.
1972 (mips_n32n64_store_return_value): Clone mips_store_return_value.
1973
1974 2002-08-18 Aidan Skinner <aidan@velvet.net>
1975
1976 * ada-lang.c: Use gdb_string.h instead of <string.h>.
1977 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
1978
1979 2002-08-18 Aidan Skinner <aidan@velvet.net>
1980
1981 * ada-lang.c: Run through gdb_indent.sh.
1982 * ada-lang.h: Run through gdb_indent.sh.
1983 * ada-tasks.c: Run through gdb_indent.sh.
1984 * ada-typeprint.c: Run through gdb_indent.sh.
1985 * ada-valprint.c: Run through gdb_indent.sh.
1986
1987 2002-08-18 Andrew Cagney <ac131313@redhat.com>
1988
1989 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
1990 ABI.
1991
1992 2002-08-18 Mark Kettenis <kettenis@gnu.org>
1993
1994 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
1995
1996 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
1997 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
1998
1999 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
2000 write_register_gen instead of write_register_bytes.
2001
2002 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
2003 i[3456]-*-osf1mk* configurations have been made obsolete.
2004 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
2005 i[3456]86-*-osf1mk* hosts obsolete.
2006 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
2007 targets obsolete.
2008 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
2009 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
2010 config/i386/i386m3.mt, config/i386/nm-m3.h,
2011 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
2012 config/i386/i386mk.mh, config/i386/i386mk.mt,
2013 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
2014 obsolete.
2015 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
2016 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
2017 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
2018
2019 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2020
2021 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
2022 (hppa_value_returned_from_stack): Declare.
2023 (hppa_extract_return_value): Declare.
2024 * config/pa/hppa.mt: New file.
2025 * configure.tgt: Recognize hppa*-*-*.
2026 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
2027
2028 2002-08-18 Mark Kettenis <kettenis@gnu.org>
2029
2030 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
2031 comment.
2032
2033 2002-08-17 Mark Kettenis <kettenis@gnu.org>
2034
2035 * top.c (gdb_rl_operate_and_get_next): Make sure
2036 operate-and-get-next functions correctly even when the history
2037 list is completely filled.
2038
2039 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2040
2041 * MAINTAINERS (Target Instruction Set Architectures): Rename
2042 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
2043 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
2044 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
2045 already listed under Host/Native.
2046
2047 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
2048 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
2049 mips*-*-*.
2050
2051 2002-08-17 Andrew Cagney <ac131313@redhat.com>
2052
2053 * config/ia64/ia64.mt: New file.
2054 * config/alpha/alpha.mt: New file.
2055 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
2056 ia64-linux-gnu. Mention that ia64-elf is broken.
2057 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
2058
2059 2002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
2060
2061 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
2062 generic_func_frame_valid instead of func_frame_valid.
2063
2064 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2065
2066 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
2067 procfs appears to be broken when debugging on multi-processor
2068 machines. So enable software single stepping in order to avoid
2069 using the procfs interface to do next/step operations, using
2070 internal breakpoints instead.
2071
2072 * infrun.c (handle_inferior_event): Readjust the stop_pc by
2073 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
2074 make this pc address equal to the value it would have if the
2075 system stepping capability was used. Also set a new flag used
2076 to ensure that we don't readjust the PC one more time later.
2077
2078 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
2079 address by DECR_PC_AFTER_BREAK when software single step is
2080 in use for this architecture, as this has already been taken
2081 care of in handle_inferior_event().
2082
2083 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2084
2085 * infrun.c (handle_inferior_event): Minor reformatting, to make
2086 a rather long condition expression easier to read.
2087
2088 2002-08-16 Andrew Cagney <ac131313@redhat.com>
2089
2090 * Makefile.in (gdbtk.o): Move to end of file.
2091 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
2092 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
2093 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
2094 (gdbtk-wrapper.o, gdbres.o): Ditto.
2095
2096 2002-08-16 Andrew Cagney <ac131313@redhat.com>
2097
2098 * Makefile.in (copying.o): Separate out compile rule.
2099 (hpux-thread.o, procfs.o, signals.o): Ditto.
2100 (v850ice.o, z8k-tdep.o): Ditto.
2101 (tui-file.o): Move to TUI section.
2102 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
2103 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
2104
2105 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2106
2107 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
2108 skip_trampoline_code, for better namespace-proofing.
2109
2110 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
2111
2112 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2113
2114 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
2115
2116 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2117
2118 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
2119 signal, check whether we hit a breakpoint before checking for a
2120 single step breakpoint. Otherwise, GDB fails to notice that a
2121 breakpoint has been hit when stepping onto a breakpoint.
2122
2123 2002-08-16 Keith Seitz <keiths@redhat.com>
2124
2125 * gdb-events.sh (clear_gdb_event_hooks): New function.
2126 * gdb-events.c: Regenerate.
2127 * gdb-events.h: Regenerate.
2128
2129 2002-08-16 Andrew Cagney <ac131313@redhat.com>
2130
2131 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
2132 not_a_sw_breakpoint.
2133 * breakpoint.h (bpstat_stop_status): Add parameter names.
2134
2135 2002-08-16 Grace Sainsbury <graces@redhat.com>
2136
2137 * remote.c (remote_insert_hw_breakpoint)
2138 (remote_remove_hw_breakpoint): Fix calculation of length field
2139 for Z-packet.
2140
2141 2002-08-15 Michael Snyder <msnyder@redhat.com>
2142
2143 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
2144 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
2145 (supply_fpregset): Ditto.
2146
2147 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
2148 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
2149 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
2150 (TARGET_READ_SP): Delete.
2151 (DO_REGISTERS_INFO): Delete.
2152 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
2153 Delete.
2154 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
2155 from macros to functions.
2156
2157 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
2158 (mips_register_convertible, mips_register_convert_to_virtual,
2159 mips_register_convert_to_raw): Make static.
2160 (mips_read_sp): New function.
2161 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
2162 (mips_do_registers_info): Make static.
2163 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
2164 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
2165 (mips_register_convert_from_type, mips_register_convert_to_type):
2166 New functions.
2167 (mips_gdbarch_init): Set up function_start_offset,
2168 register_virtual_size, pc_in_sigtramp.
2169
2170 2002-08-15 Andrew Cagney <ac131313@redhat.com>
2171
2172 * infcmd.c (vector_info): New function.
2173 (_initialize_infcmd): Add command "info vector".
2174 (print_vector_info): New function.
2175
2176 * gdbarch.sh (PRINT_VECTOR_INFO): New method
2177 * gdbarch.h, gdbarch.c: Regenerate.
2178
2179 2002-08-15 Andrew Cagney <ac131313@redhat.com>
2180
2181 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
2182 ``print_all''. Only print vector registers when ``print_all''.
2183
2184 2002-08-15 Andrew Cagney <ac131313@redhat.com>
2185
2186 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
2187 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
2188
2189 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
2190 Add `args' parameter.
2191 * gdbarch.h, gdbarch.c: Regenerate.
2192
2193 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
2194
2195 * infcmd.c (float_info): Call print_float_info.
2196 (print_float_info): New function. By default, print the
2197 floating-point registers.
2198
2199 * arch-utils.h (default_print_float_info): Delete declaration.
2200 * arch-utils.c (default_print_float_info): Delete function.
2201
2202 2002-08-16 Mark Kettenis <kettenis@gnu.org>
2203
2204 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
2205 out define.
2206
2207 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
2208 FRAME.
2209
2210 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
2211 * configure.host: Make i[3456]86-*-aix host obsolete.
2212 * configure.tgt: Make i[3456]86-*-aix target obsolete.
2213 * config/i386/i386aix.mh, config/i386/i386aix.mt,
2214 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
2215 config/i386/xm-i386aix.h: Make files obsolete.
2216 * i386aix-nat.c: Make file obsolete.
2217 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
2218 (i386aix-nat.o): Make target obsolete.
2219
2220 * config/i386/nm-gnu.h: Removed.
2221 * config/i386/nm-i386gnu.h: New file.
2222 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
2223 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
2224 Moved here from ...
2225 * config/i386/tm-i386gnu.h: ... here. Removed.
2226 * config/i386/xm-i386gnu.h: Removed.
2227 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
2228 (NAT_FILE): Set to nm-i386gnu.h.
2229 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
2230 * i386-tdep.c: New file.
2231 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
2232 (i386gnu-tdep.o): Specify dependencies.
2233
2234 2002-08-15 Mark Kettenis <kettenis@gnu.org>
2235
2236 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
2237 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
2238 Adjust a few comments to reflect reality a bit closer.
2239 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
2240 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
2241 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
2242 target_insert_watchpoint, target_remove_watchpoint):
2243 Move defines to ...
2244 * config/i386/nm-i386sco5.h: ... here.
2245 (kernel_u_size): Add prototype. Improve a few comments and add
2246 protection against multiple inclusion.
2247
2248 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
2249 out define.
2250
2251 * uw-thread.c (SP_ARG0): Define if not already defined.
2252 * config/i386/tm-i386.h (SO_ARG0): Remove define.
2253
2254 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
2255
2256 * config/i386/tm-i386.h: Don't include "regcache.h".
2257
2258 * i387-tdep.h (i387_print_float_info): New prototype.
2259 * i387-tdep.c (print_i387_value, print_i387_ext,
2260 print_i387_status_word, print_i387_control_word): Add `struct
2261 ui_file *' argument and use it for output.
2262 (i387_print_float_info): Renamed from i387_float_info. Add
2263 `struct gdbarch *' and `struct ui_file *' arguments and use the
2264 latter for output.
2265 * i386-tdep.c: Include "i387-tdep.h".
2266 (i386_gdbarch_init): Set print_float_info.
2267 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
2268 (FLOAT_INFO): Remove define.
2269
2270 2002-08-13 Michael Snyder <msnyder@redhat.com>
2271
2272 * mips-tdep.c (mips_push_arguments): Rename to
2273 mips_eabi_push_arguments, and tune for EABI.
2274 (MIPS_REGS_HAVE_HOME_P): Delete.
2275 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
2276 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
2277 Delete references to mips_regs_have_home_p.
2278
2279 2002-08-14 Keith Seitz <keiths@redhat.com>
2280
2281 * Makefile.in (install-gdbtk): Create insight plugin directory.
2282 Install plugins.tcl file.
2283
2284 2002-08-14 Keith Seitz <keiths@redhat.com>
2285
2286 * configure.in: Move SUBDIRS to near top of the file so that
2287 --enable options may add things to it.
2288 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
2289 * configure: Regenerate.
2290
2291 2002-08-13 Michael Snyder <msnyder@redhat.com>
2292
2293 * mips-tdep.c (mips_o32o64_push_arguments): New function,
2294 cloned from mips_push_arguments, tuned for o32/o64 ABI.
2295 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
2296
2297 2002-08-13 Andrew Cagney <ac131313@redhat.com>
2298
2299 * vax-tdep.c (vax_get_saved_register): Delete function.
2300 (vax_gdbarch_init): Update.
2301 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
2302 (ns32k_gdbarch_init): Update.
2303 * alpha-tdep.c (alpha_get_saved_register): Delete function.
2304 (alpha_gdbarch_init): Update.
2305
2306 2002-08-13 Andrew Cagney <cagney@redhat.com>
2307
2308 * regcache.c (init_regcache_descr): Overallocate the
2309 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
2310 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
2311 nr_raw_registers.
2312 (set_register_cached): Add range checking assertions. Use
2313 current_regcache.
2314
2315 2002-08-13 Mark Kettenis <kettenis@gnu.org>
2316
2317 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
2318 numbers for MMX registers.
2319
2320 2002-08-13 Andrew Cagney <cagney@redhat.com>
2321
2322 * i386-tdep.c (i386_gdbarch_init): Use
2323 generic_unwind_get_saved_register.
2324
2325 2002-08-13 Kevin Buettner <kevinb@redhat.com>
2326
2327 * procfs.c (procfs_can_use_hw_breakpoint): New function.
2328 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
2329 target vector.
2330 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
2331 Delete. Add comment regarding this now-deleted target method.
2332
2333 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2334
2335 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
2336 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
2337 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
2338 real PC and the page number (if it's within the memory bank window).
2339 (m68hc11_pseudo_register_write): Likewise when saving.
2340 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
2341 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
2342 (m68hc11_register_raw_size): And use 32-bit for it.
2343 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
2344 16K memory bank is used by the prog; also use the virtual pc.
2345
2346 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2347
2348 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
2349 (m68hc11_gdbarch_init): Install it in gdbarch.
2350 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
2351 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
2352 (MSYMBOL_SIZE): New for documentation.
2353 (insn_return_kind): Enum to specify how a function returns.
2354 (frame_extra_info): Cleanup and record the return mode.
2355 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
2356 register in address computation.
2357 (m68hc11_get_return_insn): New to obtain the return instruction used
2358 by the function.
2359 (m68hc11_frame_init_saved_regs): Take into account the return
2360 instruction used by the function for far and interrupt functions.
2361 (m68hc11_init_extra_frame_info): Take into account page register.
2362 (m68hc11_frame_args_address): Adjust according to the return mode.
2363 (show_regs): Print page register only when it's used.
2364
2365 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2366
2367 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
2368 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
2369 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
2370 registers.
2371 (m68hc11_register_raw_size): Likewise.
2372
2373 2002-08-13 Andrew Cagney <cagney@redhat.com>
2374
2375 * i386-tdep.c (i386_register_name): Handle mmx registers.
2376 (mmx_regnum_p): New function.
2377 (i386_mmx_names): New array.
2378 (mmx_num_regs): New variable.
2379 (i386_pseudo_register_read): New function.
2380 (i386_pseudo_register_write): New function.
2381 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
2382
2383 * regcache.c (regcache_raw_read_unsigned): New function.
2384 (regcache_raw_read_signed): New function.
2385 * regcache.h (regcache_raw_read_unsigned): Declare.
2386 (regcache_raw_read_signed): Declare.
2387
2388 2002-08-13 Andrew Cagney <cagney@redhat.com>
2389
2390 * regcache.c (regcache_raw_read_as_address): Delete function.
2391 (regcache_cooked_read_signed): New function.
2392 (regcache_cooked_read_unsigned): New function.
2393 * regcache.h (regcache_cooked_read_signed): Declare.
2394 (regcache_cooked_read_unsigned): Declare.
2395 (regcache_raw_read_as_address): Delete declaration.
2396
2397 * blockframe.c (generic_read_register_dummy): Use
2398 regcache_cooked_read_unsigned.
2399 * i386-tdep.c (i386_extract_struct_value_address): Use
2400 regcache_cooked_read_unsigned.
2401
2402 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2403
2404 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
2405 double sizes according to ELF ABI flags.
2406 (gdbarch_tdep): Record elf_flags.
2407
2408 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2409
2410 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
2411 (m6812_prolog): They can appear in 68HC12 function prologue.
2412 (m68hc11_frame_chain): Cleanup.
2413
2414 2002-08-12 Andrew Cagney <cagney@redhat.com>
2415
2416 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
2417 declarations.
2418 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
2419 (i386_linux_register_raw_size): Delete function.
2420 (i386_linux_init_abi): Update.
2421 * i386-tdep.c (i386_register_raw_size): Delete function.
2422 (i386_register_byte): Delete function.
2423 (i386_gdbarch_init): Update.
2424 (i386_register_size): Delete array.
2425 (i386_register_offset): Delete array.
2426
2427 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
2428 (REGISTER_RAW_SIZE): Delete macro.
2429 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
2430 (REGISTER_BYTE): Delete macro.
2431
2432 2002-08-11 Aidan Skinner <aidan@velvet.net>
2433
2434 * ada-lang.c (ada_lookup_partial_symbol)
2435 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
2436 prototype names so that grep ^func works properly.
2437
2438 * ada-lang.c (ada_array_element_type)
2439 (ada_lookup_partial_symbol): Fix typos in parameter list.
2440
2441 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
2442 Fix prototype names so that grep ^func works properly.
2443
2444 2002-08-10 Andrew Cagney <cagney@redhat.com>
2445 Elena Zannoni <ezannoni@redhat.com>
2446 Martin M. Hunt <hunt@redhat.com>
2447
2448 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
2449 (build_builtin_type_vec128i): Set the vector bit.
2450 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
2451 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
2452 (build_builtin_type_vec64): New function.
2453 (build_builtin_type_vec64i): New function.
2454 (build_gdbtypes): Initialize builtin_type_vec64 and
2455 builtin_type_vec64i.
2456
2457 2002-08-09 Andrew Cagney <cagney@redhat.com>
2458
2459 * regcache.c (regcache_dump): Compare the register offset
2460 with REGISTER_BYTE.
2461 * arch-utils.c (generic_register_byte): New function.
2462 * arch-utils.h (generic_register_byte): Declare.
2463 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
2464 * gdbarch.h, gdbarch.c: Regenerate.
2465
2466 2002-08-09 Andrew Cagney <cagney@redhat.com>
2467
2468 * regcache.c: Include "gdbcmd.h"
2469 (_initialize_regcache): Add commands "maintenance print
2470 registers", "maintenance print raw-registers" and "maintenance
2471 print cooked-registers".
2472 (enum regcache_dump_what): Define.
2473 (dump_endian_bytes): New function.
2474 (regcache_dump): New function.
2475 (regcache_print): New function.
2476 (maintenance_print_registers): New function.
2477 (maintenance_print_raw_registers): New function.
2478 (maintenance_print_cooked_registers): New function.
2479 * Makefile.in (regcache.o): Update dependencies.
2480
2481 2002-08-09 Michael Snyder <msnyder@redhat.com>
2482
2483 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
2484 (mips_push_arguments): Correct some comments. Use paddr_nz
2485 for printing addresses in debug output. Replace static
2486 allocation using MAX_REGISTER_RAW_SIZE with alloca.
2487 (mips_n32n64_push_arguments): New function, cloned from
2488 mips_push_arguments and tuned for the n32/n64 ABI.
2489 (mips_push_register): Buffer needs dynamic allocation.
2490 (mips_print_register): Ditto.
2491 (do_gp_register_row): Ditto.
2492 (mips_store_return_value): Ditto.
2493 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
2494
2495 2002-08-09 Don Howard <dhoward@redhat.com>
2496
2497 * memattr.c (mem_info_command): Print special case of upper bound
2498 as max CORE_ADDR + 1.
2499
2500 2002-08-08 Michael Snyder <msnyder@redhat.com>
2501
2502 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
2503 returns structs by ref if they're too big to fit in two registers.
2504
2505 2002-08-09 Kevin Buettner <kevinb@redhat.com>
2506
2507 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
2508 saved regs value.
2509 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
2510 mips_find_saved_regs().
2511 (mips_pop_frame): Likewise.
2512
2513 2002-08-09 Kevin Buettner <kevinb@redhat.com>
2514
2515 * blockframe.c (frame_saved_regs_register_unwind): Revise
2516 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
2517 frames are in use.
2518
2519 2002-08-09 Grace Sainsbury <graces@redhat.com>
2520
2521 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
2522 T-packets; the 'a' is not taken as a register number.
2523 (remote_check_watch_resources, remote_stopped_by_watchpoint)
2524 (remote_stopped_data_address): New functions; add to target
2525 vector.
2526 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
2527 prototypes to match other implementations of this
2528 function. replace integer argument with pointer -- the length
2529 field in the Z-packet is the length of what is pointed to or 1 if
2530 pointer is null. Add to target vector.
2531 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
2532 target vector.
2533
2534 From Mark Salter:
2535 * remote.c (remote_wait): Add support to extract optional
2536 watchpoint information from T-packet. Ignore unrecognized
2537 optional info in T-packet.
2538 (remote_async_wait): Ditto.
2539
2540 2002-08-09 Corinna Vinschen <vinschen@redhat.com>
2541
2542 * cli/cli-dump.c: Change fopen modes to use binary open modes
2543 as defined in include/fopen-bin.h throughout.
2544
2545 2002-08-08 Michael Snyder <msnyder@redhat.com>
2546
2547 * mips-tdep.c: Minor whitespace and indentation clean-ups.
2548
2549 2002-08-08 Kevin Buettner <kevinb@redhat.com>
2550
2551 * doublest.c (store_floating): Avoid floatformat_from_doublest()
2552 assertion failure by returning early after a warning.
2553
2554 2002-08-08 Kevin Buettner <kevinb@redhat.com>
2555
2556 * mips-tdep.c (mips_find_saved_regs): Make static.
2557 (mips_frame_init_saved_regs): New function.
2558 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
2559 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
2560 (mips_find_saved_regs): Delete declaration.
2561
2562 2002-08-08 Grace Sainsbury <graces@redhat.com>
2563
2564 * remote.c (remote_wait, remote_async_wait): Change
2565 thread_num from int to ULONGEST.
2566 (unpack_varlen_hex): Change result parameter from
2567 int * to ULONGEST *.
2568
2569 2002-08-08 Andrew Cagney <ac131313@redhat.com>
2570
2571 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
2572 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
2573 powerpc*-*-*.
2574 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
2575
2576 2002-08-08 Andrew Cagney <cagney@redhat.com>
2577
2578 * gcore.c (override_derive_stack_segment): Delete variable.
2579 (preempt_derive_stack_segment): Delete function.
2580 (derive_stack_segment): Delete function.
2581 (default_derive_stack_segment): Renamed to derive_stack_segment.
2582 (override_derive_heap_segment): Delete variable.
2583 (preempt_derive_heap_segment): Delete function.
2584 (derive_heap_segment): Delete function.
2585 (default_derive_heap_segment): Rename to derive_heap_segment.
2586
2587 2002-08-06 Michael Snyder <msnyder@redhat.com>
2588
2589 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
2590 * mips-tdep.c (mips_EABI_use_struct_convention,
2591 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
2592 New functions. (mips_use_struct_convention): Delete.
2593 (mips_gdbarch_init): set use_gdbarch_convention.
2594
2595 2002-08-06 Michael Snyder <msnyder@redhat.com>
2596
2597 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
2598 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
2599 mips_o32_reg_struct_has_addr): New functions.
2600 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
2601
2602 2002-08-07 Andrew Cagney <ac131313@redhat.com>
2603
2604 * regcache.c (pseudo_register): Delete function.
2605 (fetch_register): Delete function.
2606 (store_register): Delete function.
2607 (regcache_raw_read, legacy_read_register_gen): Use
2608 target_fetch_registers instead of fetch_register.
2609 (legacy_write_register_gen, regcache_raw_write): Use
2610 target_store_register instead of store_register.
2611 (write_register_bytes): Ditto.
2612
2613 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
2614 (STORE_PSEUDO_REGISTER): Delete.
2615 * gdbarch.h, gdbarch.c: Regenerate.
2616
2617 2002-08-06 Corinna Vinschen <vinschen@redhat.com>
2618
2619 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
2620 write dump file binary.
2621
2622 2002-08-05 Michael Snyder <msnyder@redhat.com>
2623
2624 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
2625 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
2626 (mips_gdbarch_init): Set N32 target to be mips64.
2627
2628 2002-08-06 Kevin Buettner <kevinb@redhat.com>
2629
2630 * frame.c (find_saved_register): Break out of loop once saved
2631 register address is found. Don't mention sparc in loop comment
2632 anymore.
2633
2634 2002-08-06 Kevin Buettner <kevinb@redhat.com>
2635
2636 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
2637 mips_default_saved_regsize to 8.
2638
2639 2002-08-06 Andrew Cagney <ac131313@redhat.com>
2640
2641 * gcore.c: Do not include <sys/procfs.h>.
2642 * Makefile.in (gcore.o): Update dependencies.
2643
2644 2002-08-06 Andrew Cagney <cagney@redhat.com>
2645
2646 * configure.tgt: Make arc-*-* obsolete.
2647 * NEWS: Mention that arc-*-* has been identifed as obsolete.
2648 * MAINTAINERS: Make arc-elf obsolete.
2649 * arc-tdep.c: Make file obsolete.
2650 * config/arc/arc.mt: Ditto.
2651 * config/arc/tm-arc.h: Ditto.
2652
2653 2002-08-05 Theodore A. Roth <troth@verinet.com>
2654
2655 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
2656
2657 2002-08-05 Andrew Cagney <ac131313@redhat.com>
2658
2659 * mcore-tdep.c (mcore_gdbarch_init): Use
2660 generic_unwind_get_saved_register instead of
2661 generic_get_saved_register.
2662 * v850-tdep.c (v850_gdbarch_init): Ditto.
2663 * frv-tdep.c (frv_gdbarch_init): Ditto.
2664 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2665 * s390-tdep.c (s390_gdbarch_init): Ditto.
2666 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2667 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
2668 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
2669
2670 2002-08-05 Joel Brobecker <brobecker@gnat.com>
2671
2672 * objfiles.h: Add missing #include "symfile.h"
2673
2674 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
2675
2676 2002-08-04 Andrew Cagney <ac131313@redhat.com>
2677
2678 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
2679 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
2680 of FIELD_BITSIZE.
2681
2682 2002-08-04 Daniel Jacobowitz <drow@mvista.com>
2683
2684 * NEWS: Cleanup and nitpick.
2685
2686 2002-08-03 Andrew Cagney <ac131313@redhat.com>
2687
2688 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
2689
2690 2002-08-03 Andrew Cagney <ac131313@redhat.com>
2691
2692 * Makefile.in (gdbtk-bp.o): Update dependencies.
2693 (gdbtk-register.o): Ditto.
2694 (gdbtk-varobj.o): Ditto.
2695
2696 2002-08-03 Andrew Cagney <cagney@redhat.com>
2697
2698 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
2699 m68hc11_fetch_pseudo_register.
2700 (m68hc11_pseudo_register_write): Replace
2701 m68hc11_store_pseudo_register.
2702 (m68hc11_gdbarch_init): Update.
2703
2704 Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
2705
2706 * gdbarch.sh: Include "gdb_string.h".
2707 * gdbarch.c: Regenerate.
2708
2709 * regcache.c: Include "gdb_string.h".
2710 * ax-general.c: Ditto.
2711 * varobj.c: Ditto.
2712 * std-regs.c: Ditto.
2713 * fbsd-proc.c: Ditto.
2714 * thread.c: Ditto.
2715
2716 * Makefile.in (regcache.o): Update dependencies.
2717 (thread.o, gdbarch.o): Ditto.
2718 (ax-general.o, gdbarch.o): Ditto.
2719 (varobj.o, std-regs.o): Ditto.
2720 (fbsd-proc.o): Specify dependencies.
2721
2722 2002-08-02 Andrew Cagney <cagney@redhat.com>
2723
2724 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
2725 regnum.
2726 (regcache_cooked_write): Ditto.
2727
2728 2002-08-02 Andrew Cagney <ac131313@redhat.com>
2729
2730 * regcache.c (regcache_cooked_read): New function.
2731 (regcache_cooked_write): New function.
2732 (read_register_gen): Rewrite using regcache_cooked_read.
2733 (write_register_gen): Rewrite using regcache_cooked_write.
2734
2735 * regcache.h (regcache_cooked_read, regcache_cooked_write):
2736 Declare.
2737
2738 2002-08-02 Andrew Cagney <cagney@redhat.com>
2739
2740 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
2741 Replace the architecture methods register_read and register_write.
2742 * gdbarch.h, gdbarch.c: Regenerate.
2743 * regcache.c (init_regcache_descr): Update.
2744 (read_register_gen): Update.
2745 (write_register_gen): Update.
2746 (supply_register): Update comment.
2747
2748 * sh-tdep.c (sh_gdbarch_init): Update.
2749 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
2750 `regcache' and `gdbarch' parameters. Make `buffer' a void
2751 pointer. Update code.
2752 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
2753 `regcache' and `gdbarch' parameters. Make `buffer' a constant
2754 void pointer. Update code.
2755 (sh64_register_write): Delete.
2756 (sh4_register_read): Delete.
2757 (sh64_register_read): Delete.
2758 (sh4_register_write): Delete.
2759 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
2760 void pointer, `to' parameter a void pointer.
2761 (sh_sh64_register_convert_to_raw): Ditto.
2762
2763 2002-08-01 Kevin Buettner <kevinb@redhat.com>
2764
2765 * mips-tdep.c (mips_register_virtual_type): Use architecture
2766 invariant return values.
2767
2768 2002-08-01 Andrew Cagney <cagney@redhat.com>
2769
2770 * linux-proc.c: Include "gdb_string.h".
2771 * Makefile.in (linux-proc.o): Update dependency list.
2772
2773 2002-08-01 Kevin Buettner <kevinb@redhat.com>
2774
2775 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
2776 comment.
2777
2778 2002-08-01 Grace Sainsbury <graces@redhat.com>
2779
2780 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
2781 to_insert_watchpoint, to_remove_watchpoint,
2782 to_stopped_by_watchpoint, to_stopped_data_address,
2783 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
2784 target vecctor. Define their corresponding macros so they call
2785 them.
2786
2787 * target.c: Add default and debug versions of for
2788 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
2789 to_insert_watchpoint, to_remove_watchpoint,
2790 to_stopped_by_watchpoint, to_stopped_data_address,
2791 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
2792
2793 2002-08-01 Kevin Buettner <kevinb@redhat.com>
2794
2795 * mips-tdep.c (mips_register_virtual_type): New function.
2796 (mips_gdbarch_init): Register mips_register_virtual_type()
2797 with gdbarch machinery.
2798 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
2799 this file instead of tm-bigmips.h.
2800 (MIPS_REGSIZE): Delete this macro.
2801 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
2802 multiarch version in mips-tdep.c will be found.
2803
2804 2002-08-01 Andrew Cagney <cagney@redhat.com>
2805
2806 * NEWS: Menion that CHILL has been made obsolete.
2807
2808 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
2809 * stabsread.c (read_range_type): Ditto.
2810 * gdbtypes.h: Ditto.
2811 * language.c (binop_type_check): Ditto.
2812 (binop_result_type): Ditto.
2813 (integral_type): Ditto.
2814 (character_type): Ditto.
2815 (string_type): Ditto.
2816 (boolean_type): Ditto.
2817 (structured_type): Ditto.
2818 (lang_bool_type): Ditto.
2819 (binop_type_check): Ditto.
2820 * language.h (_LANG_chill): Ditto.
2821 * dwarfread.c (set_cu_language): Ditto.
2822 * dwarfread.c (CHILL_PRODUCER): Ditto.
2823 * dwarfread.c (handle_producer): Ditto.
2824 * expression.h (enum exp_opcode): Ditto.
2825 * eval.c: Ditto for comments.
2826 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
2827 * expprint.c (print_subexp): Ditto.
2828 (print_subexp): Ditto.
2829 * valops.c (value_cast): Ditto.
2830 (search_struct_field): Ditto.
2831 * value.h (COERCE_VARYING_ARRAY): Ditto.
2832 * symfile.c (init_filename_language_table): Ditto.
2833 (add_psymbol_with_dem_name_to_list): Ditto.
2834 * valarith.c (value_binop): Ditto.
2835 (value_neg): Ditto.
2836 * valops.c (value_slice): Ditto.
2837 * symtab.h (union language_specific): Ditto.
2838 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
2839 (SYMBOL_DEMANGLED_NAME): Ditto.
2840 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
2841 * defs.h (enum language): Ditto.
2842 * symtab.c (got_symtab): Ditto.
2843 * utils.c (fprintf_symbol_filtered): Ditto.
2844
2845 * ch-typeprint.c: Make file obsolete.
2846 * ch-valprint.c: Make file obsolete.
2847 * ch-lang.h: Make file obsolete.
2848 * ch-exp.c: Make file obsolete.
2849 * ch-lang.c: Make file obsolete.
2850
2851 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
2852 CHILL_LIB.
2853 (TARGET_FLAGS_TO_PASS): Ditto.
2854 (CHILLFLAGS): Obsolete.
2855 (CHILL): Obsolete.
2856 (CHILL_FOR_TARGET): Obsolete.
2857 (CHILL_LIB): Obsolete.
2858 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
2859 ch-valprint.c.
2860 (HFILES_NO_SRCDIR): Remove ch-lang.h.
2861 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
2862 ch-lang.o.
2863 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
2864 targets.
2865
2866 2002-07-31 Joel Brobecker <brobecker@gnat.com>
2867
2868 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
2869 This does not change anything at the moment, but will be helpful
2870 later when full Ada support is integrated.
2871
2872 2002-07-31 Kevin Buettner <kevinb@redhat.com>
2873
2874 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
2875 help message.
2876
2877 2002-07-31 Kevin Buettner <kevinb@redhat.com>
2878
2879 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
2880 and save it in a local variable. Use variable in later test.
2881
2882 2002-07-31 Kevin Buettner <kevinb@redhat.com>
2883
2884 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
2885 test. (Thanks to Daniel Jacobowitz.)
2886
2887 2002-07-31 Kevin Buettner <kevinb@redhat.com>
2888
2889 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
2890 (mips_abi_strings): Add "n64".
2891 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
2892
2893 2002-07-31 Kevin Buettner <kevinb@redhat.com>
2894
2895 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
2896 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
2897
2898 2002-07-31 Kevin Buettner <kevinb@redhat.com>
2899
2900 * utils.c (host_pointer_to_address, address_to_host_pointer):
2901 Use gdb_assert() instead of explicit call to internal_error().
2902
2903 2002-07-30 Kevin Buettner <kevinb@redhat.com>
2904
2905 * Makefile.in (rs6000-nat.o): Update dependencies.
2906
2907 From Nicholas Duffek:
2908 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
2909 (aix-thread.o): New rule.
2910 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
2911 * config/powerpc/aix432.mh: New file.
2912
2913 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
2914
2915 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
2916 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
2917 (fetch_core_registers, ppc_linux_supply_gregset)
2918 (ppc_linux_supply_fpregset): New functions.
2919 (ppc_linux_regset_core_fns): New.
2920 (_initialize_ppc_linux_tdep): Call add_core_fns.
2921 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
2922 and ppc_linux_supply_gregset.
2923 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
2924 (supply_fpregset): Call ppc_linux_supply_fpregset.
2925 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
2926 corelow.o.
2927 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
2928
2929 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
2930
2931 * symtab.c (lookup_symbol): Demangle before lowercasing.
2932
2933 2002-07-30 Andrew Cagney <ac131313@redhat.com>
2934
2935 * symtab.h: Replace #include "gdb_obstack.h" with opaque
2936 declaration.
2937 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
2938 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
2939 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
2940 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
2941 "gdb_string.h".
2942 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
2943 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
2944 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
2945 (avr-tdep.o, mon960-rom.o): Ditto.
2946 (aout_stabs_gnu_h): Define.
2947 (symtab_h): Remove $(gdb_obstack_h).
2948
2949 2002-07-30 Jim Blandy <jimb@redhat.com>
2950
2951 Patch from David Carlton <carlton@math.stanford.edu>:
2952 * gdbinit.in: Move the `dir' commands that add GDB's own source
2953 directory to the search path to the end, so that the `gdb' source
2954 directory will be searched first.
2955
2956 2002-07-29 Andrew Cagney <ac131313@redhat.com>
2957
2958 * gdb_obstack.h: New file.
2959 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
2960 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
2961 * objfiles.h: Include "gdb_obstack.h".
2962 * Makefile.in (gdb_obstack_h): Define.
2963 (symtab_h): Add $(gdb_obstack_h).
2964 (objfiles_h): Add $(gdb_obstack_h).
2965
2966 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
2967 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
2968 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
2969 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
2970 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
2971 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
2972 * symfile.c, coffread.c, c-typeprint.c: Ditto.
2973 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
2974
2975 * Makefile.in (bcache.o): Update dependencies.
2976 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
2977 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
2978 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
2979 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
2980 (stabsread.o, symfile.o, symmisc.o): Ditto.
2981 (symtab.o, typeprint.o, macroexp.o): Ditto.
2982 (macrotab.o, mdebugread.o): Ditto.
2983 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
2984 (coff_ecoff_h, aout_aout64_h): Define.
2985 (aout_stabs_gnu_h, libaout_h): Define.
2986
2987 2002-07-29 Andrew Cagney <cagney@redhat.com>
2988
2989 * regcache.c (struct regcache_descr): Rename nr_registers to
2990 nr_cooked_registers. Revise comments describing the structure
2991 member fields.
2992 (init_regcache_descr): Update.
2993 (init_legacy_regcache_descr): Update.
2994 (read_register_gen, write_register_gen): When a cooked register in
2995 the raw register range, directly access the value from the raw
2996 register cache.
2997
2998 2002-07-29 Andrew Cagney <ac131313@redhat.com>
2999
3000 * z8k-tdep.c: Do not include "obstack.h".
3001 * h8300-tdep.c, h8500-tdep.c: Ditto.
3002 * m68hc11-tdep.c, sh-tdep.c: Ditto.
3003 * valprint.c, v850-tdep.c: Ditto.
3004 * d10v-tdep.c, mn10300-tdep.c: Ditto.
3005 * mn10200-tdep.c: Ditto.
3006
3007 * Makefile.in (z8k-tdep.o): Update dependencies.
3008 (m68hc11-tdep.o, valprint.o): Ditto.
3009 (v850-tdep.o, d10v-tdep.o): Ditto.
3010 (mn10300-tdep.o, sparc-tdep.o): Ditto.
3011 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
3012 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
3013 (sh_opc_h, gdb_sim_sh_h): Define.
3014 (elf_sh_h, elf_bfd_h): Define.
3015 (opcode_m68hc11_h): Define.
3016 (OPCODES_SRC, OPCODES_DIR): define.
3017 (OPCODES): Use $(OPCODES_DIR).
3018 (gdb_sim_d10v_h): Rename sim_d10v_h.
3019 (gdb_sim_arm_h): Rename sim_arm_h.
3020
3021 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3022
3023 * utils.c (host_pointer_to_address, address_to_host_pointer):
3024 Change internal_error() message to indicate function responsible
3025 for the error.
3026
3027 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3028
3029 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
3030 calls to local_hex_string_custom().
3031
3032 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3033
3034 * irix5-nat.c: Move IRIX shared library support from here...
3035 * solib-irix.c: ...to here. Revised substantially to work with
3036 generic solib framework.
3037
3038 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
3039 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
3040 * mips-irix-tdep.c: New file.
3041
3042 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
3043 (mips-irix-tdep.o, solib-irix.o): New rules.
3044 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
3045 solib-irix.o.
3046 * config/mips/irix6.mt (TDEPFILES): Likewise.
3047 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
3048
3049 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3050
3051 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
3052 disabled (via ``#if 0'') includes.
3053
3054 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3055
3056 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
3057 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
3058 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
3059 Add support for the fpscr register.
3060 * rs6000-nat.c (regmap, fetch_inferior_registers)
3061 (store_inferior_registers, fetch_core_registers): Likewise.
3062
3063 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3064
3065 * rs6000-nat.c (language.h): Include.
3066 (special_regs): Delete this array.
3067 (regmap): New function.
3068 (fetch_register, store_register): Use regmap() to map gdb
3069 register numbers to ptrace register numbers. Also, use
3070 outputs from regmap() to make decisions regarding type of
3071 ptrace() call to make. In particular, don't compare against
3072 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
3073 (fetch_inferior_registers, store_inferior_registers): Where
3074 possible, obtain register numbers from tdep struct. Don't
3075 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
3076 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
3077 (LAST_UISA_SP_REGNUM): Delete.
3078
3079 2002-07-25 Kevin Buettner <kevinb@redhat.com>
3080
3081 * rs6000-nat.c (ppc-tdep.h): Include.
3082 (fetch_registers, store_register, fetch_core_registers): Don't
3083 access registers[] directly. Instead, use supply_register() or
3084 regcache_collect() as appropriate.
3085 (find_toc_address): Format hex address with local_hex_string().
3086
3087 2002-07-25 Andrew Cagney <ac131313@redhat.com>
3088
3089 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
3090 bfd/elf32-frv.c.
3091
3092 2002-07-24 Tom Tromey <tromey@redhat.com>
3093
3094 * jv-exp.y: Marked all strings with _().
3095 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
3096 internal_error.
3097 (MethodInvocation, CastExpression, parse_number, yyerror,
3098 java_type_from_name, push_expression_name, yylex): Typo fixes.
3099
3100 2002-07-24 Daniel Jacobowitz <drow@mvista.com>
3101
3102 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
3103 (tee_file_flush, tee_file_write, tee_file_fputs)
3104 (tee_file_isatty): New.
3105 * ui-file.h (tee_file_new): Add prototype.
3106
3107 2002-07-24 Aidan Skinner <aidan@velvet.net>
3108
3109 * ada-lang.c: Change k&r style function definitions to prototyped
3110 form.
3111 * ada-typeprint.c: Change k&r style function definitions to prototyped
3112 form.
3113 * ada-valprint.c: Change k&r style function definitions to prototyped
3114 form.
3115
3116 2002-07-24 Andrew Cagney <cagney@redhat.com>
3117
3118 * README: Remove reference to remote-bug.
3119 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
3120 remote-bug.c.
3121 (m88k-nat.o): Delete rule.
3122 (m88k-tdep.o): Delete rule.
3123 (remote-bug.o): Delete rule.
3124 * MAINTAINERS: Mark as obsolete.
3125 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
3126 * m88k-tdep.c: Make file obsolete.
3127 * config/m88k/m88k.mh: Ditto.
3128 * config/m88k/delta88v4.mh: Ditto.
3129 * config/m88k/delta88v4.mt: Ditto.
3130 * config/m88k/delta88.mt: Ditto.
3131 * config/m88k/delta88.mh: Ditto.
3132 * remote-bug.c: Ditto.
3133 * config/m88k/tm-delta88.h: Ditto.
3134 * config/m88k/nm-delta88v4.h: Ditto.
3135 * config/m88k/xm-delta88.h: Ditto.
3136 * config/m88k/xm-dgux.h: Ditto.
3137 * config/m88k/tm-m88k.h: Ditto.
3138 * config/m88k/nm-m88k.h: Ditto.
3139 * config/m88k/tm-delta88v4.h: Ditto.
3140 * m88k-nat.c: Ditto.
3141 * cxux-nat.c: Ditto.
3142 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
3143 and m88*-*-* obsolete.
3144 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
3145 m88*-*-* obsolete.
3146
3147 2002-07-24 Andrew Cagney <cagney@redhat.com>
3148
3149 * findvar.c (extract_unsigned_integer): Make `addr' parameter
3150 constant. Same for local pointer variables.
3151 (extract_signed_integer): Ditto.
3152 * defs.h (extract_unsigned_integer): Update.
3153 (extract_signed_integer): Update.
3154
3155 2002-07-24 Andrew Cagney <cagney@redhat.com>
3156
3157 * regcache.c (regcache_raw_write): Change buf parameter to a
3158 constant void pointer.
3159 (regcache_raw_read): Change buf parameter to a void pointer.
3160 (legacy_write_register_gen): Change myaddr parameter a constant
3161 void pointer.
3162 (supply_register): Change val parameter to a const void pointer.
3163 * regcache.h (regcache_raw_write): Update declaration.
3164 (regcache_raw_read): Update declaration.
3165 (supply_register): Update declaration.
3166
3167 2002-07-24 Tom Tromey <tromey@redhat.com>
3168
3169 * defs.h (gdb_readline_wrapper): Declare.
3170 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
3171 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
3172 * top.c (gdb_readline_wrapper): New function.
3173 (command_line_input): Use it.
3174
3175 2002-07-24 Andrew Cagney <cagney@redhat.com>
3176
3177 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
3178 regcache_read and regcache_write.
3179 (regcache_raw_read_as_address): Replace regcache_read_as_address.
3180 * regcache.c: Update.
3181 * sh-tdep.c (sh64_push_arguments): Update comment.
3182 (sh_pseudo_register_read): Update.
3183 (sh_pseudo_register_write): Update.
3184 (sh4_register_read): Update.
3185 (sh4_register_write): Update.
3186 (sh64_pseudo_register_read): Update.
3187 (sh64_pseudo_register_write): Update.
3188 (sh64_register_read): Update.
3189 (sh64_register_write): Update.
3190 * i386-tdep.c (i386_extract_return_value): Update.
3191 (i386_extract_struct_value_address): Update.
3192 (i386_extract_return_value): Update.
3193 * blockframe.c (generic_read_register_dummy): Update.
3194 (generic_call_dummy_register_unwind): Update
3195 * infrun.c (write_inferior_status_register): Update.
3196
3197 2002-07-23 Jim Blandy <jimb@redhat.com>
3198
3199 * parser-defs.h (expression_context_pc): Make this extern.
3200 (Thanks to Michael Snyder.)
3201
3202 2002-07-23 Andrew Cagney <ac131313@redhat.com>
3203
3204 GDB 5.2.1 released from 5.2 branch.
3205 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
3206 * README: Update to mention 5.2.1.
3207
3208 2002-07-23 Mark Salter <msalter@redhat.com>
3209
3210 * remote.c (remote_read_bytes): Fix check for error.
3211
3212 2002-07-22 Kevin Buettner <kevinb@redhat.com>
3213
3214 * aix-thread.c (language.h): Include.
3215 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
3216 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
3217 Print newlines at end of debug messages.
3218 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
3219 (pdc_write_data): Use local_hex_string() instead of %llx formats.
3220
3221 2002-07-22 Kevin Buettner <kevinb@redhat.com>
3222
3223 * aix-thread.c (ppc-tdep.h): Include.
3224 (special_register_p): New function.
3225 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
3226 (store_regs_user_thread): Use register number information from
3227 gdbarch_tdep struct instead of hardcoded offsets relative to
3228 FIRST_UISA_SP_REGNUM.
3229 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
3230 special_register_p() instead of using FPLAST_REGNUM and
3231 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
3232 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
3233 will be MQ's register number.
3234
3235 2002-07-22 Michael Snyder <msnyder@redhat.com>
3236
3237 * aix-thread.c (ops): Rename to aix_thread_ops.
3238 (base_ops): Rename to base_target.
3239 (ops_attach): Rename to aix_thread_attach.
3240 (ops_detach): Rename to aix_thread_detach.
3241 (ops_resume): Rename to aix_thread_detach.
3242 (ops_wait): Rename to aix_thread_wait.
3243 (ops_kill): Rename to aix_thread_kill.
3244 (init_ops): Rename to init_aix_thread_ops.
3245 (ops_fetch_register): Rename to aix_thread_fetch_register.
3246 (ops_store_register): Rename to aix_thread_store_register.
3247 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
3248 (ops_thread_alive): Rename to aix_thread_thread_alive.
3249 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
3250 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
3251 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
3252 (fetch_regs_lib): Rename to fetch_regs_user_thread.
3253 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
3254 (store_regs_lib): Rename to store_regs_user_thread.
3255 (store_regs_kern): Rename to store_regs_kernel_thread.
3256
3257 2002-07-22 Michael Snyder <msnyder@redhat.com>
3258
3259 * aix-thread.c (ops_prepare_to_store): Eliminate.
3260 (init_ops): Don't initialize ops.prepare_to_store.
3261 (store_regs_kern): Pre-fetch register buffers from child,
3262 because some registers may not be in the cache. Copy
3263 regs from register cache only if they are cached.
3264 (store_regs_lib): Copy regs from register cache only
3265 if they are cached.
3266 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
3267 fill_gprs64): Ditto.
3268
3269 2002-07-22 Kevin Buettner <kevinb@redhat.com>
3270
3271 * aix-thread.c (gdb_assert.h): Include.
3272 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
3273 register sizes (from register cache) match size of buffer holding
3274 register data.
3275 (fill_sprs32): Change parameter types to match those in the ptrace()
3276 buffer.
3277 (store_regs_lib): Likewise, but for 32-bit temporary variables.
3278 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
3279
3280 2002-07-22 Michael Snyder <msnyder@redhat.com>
3281
3282 * aix-thread.c (supply_sprs64): Cosmetic change.
3283 (supply_sprs32): Cosmetic change.
3284 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
3285 (fill_sprs64): Use regcache_collect instead of read_register.
3286 (store_regs_lib): Use regcache_collect instead of
3287 read_register. Use fill_sprs32 instead of fill_sprs64,
3288 if debugging a 32-bit architecture.
3289 (store_regs_kern): Use fill_gprs64 etc. to pull the values
3290 out of the register cache, instead of passing a pointer into
3291 the register cache directly to ptrace. Use regcache_collect
3292 insteaad of read_register.
3293 (ops_prepare_to_store): Use target_read_registers instead
3294 of read_register_bytes.
3295
3296 2002-07-20 Aidan Skinner <aidan@velvet.net>
3297
3298 * MAINTAINERS: Add self under write after approval.
3299
3300 2002-07-20 Aidan Skinner <aidan@velvet.net>
3301
3302 * ada-tasks.c: Change k&r style function definitions to prototyped
3303 form.
3304
3305 2002-07-19 Andrew Cagney <ac131313@redhat.com>
3306
3307 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
3308 * x86-64-tdep.c: Include "objfiles.h".
3309 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
3310 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
3311
3312 2002-07-17 Michal Ludvig <michal@suse.cz>
3313
3314 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
3315 (update_context): Initialise cfa variable.
3316
3317 2002-07-17 Michael Snyder <msnyder@redhat.com>
3318
3319 * aix-thread.c: Shorten some long lines.
3320 Bring comments into line with code spec.
3321
3322 2002-07-18 Joel Brobecker <brobecker@gnat.com>
3323
3324 * infrun.c: Re-indent using gdb_indent.sh.
3325
3326 2002-07-18 Joel Brobecker <brobecker@gnat.com>
3327
3328 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
3329 Leave the indentation temporarily untouched, to minimize the diffs.
3330
3331 2002-07-18 Elena Zannoni <ezannoni@redhat.com>
3332
3333 * stabsread.c: Make os9k sections of the code obsolete,
3334 for real this time.
3335 * stabsread.h: Make os9k sections of the code obsolete.
3336
3337 2002-07-18 Michal Ludvig <mludvig@suse.cz>
3338
3339 * linux-low.c (regsets_store_inferior_registers): Add free()
3340 at the end of a loop to prevent memory leak.
3341 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
3342 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
3343 * config/sparc/tm-sp64linux.h: Make the rest of #endif
3344 line a comment.
3345 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
3346
3347 2002-07-17 Jim Blandy <jimb@redhat.com>
3348
3349 * macrocmd.c (info_macro_command): Remove newline from error
3350 message.
3351
3352 2002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
3353
3354 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
3355 (sh_gdbarch_init): Use it for sh-dsp.
3356
3357 2002-07-16 Kevin Buettner <kevinb@redhat.com>
3358
3359 * dwarf2read.c (read_initial_length): Handle older, non-standard,
3360 64-bit DWARF2 format.
3361
3362 2002-07-16 Joel Brobecker <brobecker@gnat.com>
3363
3364 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
3365 <sys/proc.h> when not available.
3366
3367 2002-07-16 Andrew Cagney <ac131313@redhat.com>
3368
3369 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
3370 * stabsread.c: Make os9k sections of the code obsolete.
3371 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
3372 * config/i386/i386os9k.mt: Make file obsolete.
3373 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
3374 (COMMON_OBS): Remove os9kread.o
3375 (SFILES): Remove os9kread.c.
3376 (os9kread.o, remote-os9k.o): Make target obsolete.
3377 * remote-os9k.c: Make file obsolete.
3378 * os9kread.c: Make file obsolete.
3379 * Makefile.in
3380
3381 2002-07-16 Andrew Cagney <ac131313@redhat.com>
3382
3383 * NEWS: Mention that the FR30 has been made obsolete.
3384 * fr30-tdep.c: Make file obsolete.
3385 * config/fr30/tm-fr30.h: Ditto.
3386 * config/fr30/fr30.mt: Ditto.
3387 * configure.tgt: Make fr30-*-elf obsolete.
3388 * MAINTAINERS: Make fr30-elf obsolete.
3389
3390 2002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
3391
3392 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
3393 found is not inside a section.
3394
3395 2002-07-15 Kevin Buettner <kevinb@redhat.com>
3396
3397 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
3398 strerror().
3399 (pdc_realloc): Use xrealloc() instead of realloc().
3400
3401 2002-07-15 Kevin Buettner <kevinb@redhat.com>
3402
3403 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
3404 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
3405 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
3406 macros.
3407
3408 2002-07-15 Kevin Buettner <kevinb@redhat.com>
3409
3410 * aix-thread.c (ptrace_check): Eliminate goto.
3411 (sync_threadlists): Eliminate gotos. Also, fix array overrun
3412 problem.
3413
3414 2002-07-15 Kevin Buettner <kevinb@redhat.com>
3415
3416 * aix-thread.c (gdbcmd.h): Include.
3417 (DEBUG, DBG, DBG2, dbg): Eliminate.
3418 (debug_aix_thread): New static global.
3419 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
3420 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
3421 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
3422 invocations to DBG and DBG2 macros to test against
3423 ``debug_aix_thread'' and call fprintf_unfiltered().
3424 (_initialize_aix_thread): Add new command "set debug aix-thread".
3425
3426 2002-07-15 Andrew Cagney <ac131313@redhat.com>
3427
3428 From Gerhard Tonn <TON@de.ibm.com>:
3429 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
3430 instead of supply_register.
3431
3432 2002-07-15 Andrew Cagney <ac131313@redhat.com>
3433
3434 * dwarf2cfi.c: Include "gdb_assert.h".
3435 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
3436 non-NULL.
3437 (update_context): Do not use __func__. Add missing ``break''.
3438 (update_context): Do not use __func__.
3439
3440 2002-07-15 Elena Zannoni <ezannoni@redhat.com>
3441
3442 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
3443 and its setting. Set gdbarch instruction printing functions
3444 directly. For non-rs6000 case use new function
3445 gdb_print_insn_powerpc.
3446 (gdb_print_insn_powerpc): New function.
3447
3448 2002-07-13 Andrew Cagney <ac131313@redhat.com>
3449
3450 * NEWS: Mention that the d30v has been marked obsolete.
3451 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
3452 * configure.tgt: Mark d30v-*-* as obsolete.
3453 * d30v-tdep.c: Mark file as obsolete.
3454 * config/d30v/d30v.mt: Ditto.
3455 * config/d30v/tm-d30v.h: Ditto.
3456
3457 2002-07-13 Aidan Skinner <aidan@velvet.net>
3458
3459 * ada-tasks.c (add_task_entry): replace calls to
3460 malloc() with xmalloc
3461 * ada-tasks.c (init_task_list): replace calls to free with xfree()
3462
3463 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
3464 ada_finish_decode_line_1, all_sals_for_line
3465 ada_breakpoint_rewrite): replace calls to free() with xfree()
3466
3467 2002-07-12 Kevin Buettner <kevinb@redhat.com>
3468
3469 From Nicholas Duffek (with minor changes by Martin Hunt,
3470 Louis Hamilton, and Kevin Buettner):
3471 * aix-thread.c: New file.
3472
3473 2002-07-12 Petr Sorfa <petrs@caldera.com>
3474
3475 * dwarf2read.c (dwarf2_invalid_attrib_class): New
3476 complaint for invalid attribute class or form.
3477 (read_func_scope): DW_AT_frame_base
3478 better handling of DW_AT_block*.
3479 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
3480 better handling of DW_AT_block*.
3481 (read_common_block): DW_AT_location
3482 better handling of DW_AT_block*.
3483 (read_partial_die): DW_AT_location better handling
3484 of DW_AT_block*.
3485 (new_symbol): DW_AT_external better handling of
3486 DW_AT_block*. Proper initialization of variable
3487 "addr".
3488 (attr_form_is_block): New function that returns true
3489 if the attribute's form is of DW_FORM_block*.
3490
3491 2002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
3492
3493 * valops.c (find_method_list): Remove comment about
3494 removed STATIC_MEMFUNCP argument.
3495 (value_find_oload_method_list): Likewise.
3496
3497 2002-07-12 Kevin Buettner <kevinb@redhat.com>
3498
3499 From Nicholas Duffek:
3500 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
3501 target_new_objfile_hook.
3502
3503 2002-07-12 Kevin Buettner <kevinb@redhat.com>
3504
3505 From Nicholas Duffek:
3506 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
3507 csect.
3508
3509 2002-07-12 Andrew Cagney <cagney@redhat.com>
3510
3511 * MAINTAINERS: Mention --enable-sim-build-warnings.
3512 (m68hc11-elf): Disable sim build warnings.
3513 (m32r-elf): Mark as broken obsolete candidate.
3514 (x86_64-linux-gnu): Mark as buildable with -Werror.
3515 (arm-elf): Change -w to ``,'' which enables warnings but not
3516 -Werror.
3517
3518 2002-07-12 Andrew Cagney <ac131313@redhat.com>
3519
3520 * bcache.h: Update copyright.
3521 (struct bstring, struct bcache): Move definition to "bcache.c".
3522 Replaced by opaque declaration.
3523 (bcache_xfree): Replace free_bcache.
3524 (bcache_xmalloc, bcache_memory_used): Declare.
3525
3526 * bcache.c: Update copyright.
3527 (struct bstring, struct bcache): Moved to here from "bcache.h".
3528 Update comments.
3529 (bcache_xmalloc, bcache_memory_used): New functions.
3530 (bcache_xfree): Replace function free_bcache.
3531
3532 * Makefile.in (objfiles.o): Add $(bcache_h).
3533 (objfiles_h): Remove $(bcache_h).
3534 (symfile.o): Add $(bcache_h).
3535
3536 * symmisc.c: Update copyright.
3537 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
3538 (print_objfile_statistics): Use bcache_memory_used.
3539
3540 * symfile.c: Include "bcache.h".
3541 (reread_symbols): Use bcache_xfree.
3542 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
3543 (add_psymbol_to_list): Pass psymbol_cache by value.
3544 (add_psymbol_with_dem_name_to_list): Ditto.
3545
3546 * objfiles.h: Update copyright.
3547 (struct bcache): Declare opaque. Do not include "bcache.h".
3548 (struct objfile): Change psymbol_cache and macro_cache to ``struct
3549 bcache'' pointers.
3550 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
3551
3552 * objfiles.c: Include "bcache.h". Update copyright.
3553 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
3554 macro_cache.
3555 (free_objfile): Use bcache_xfree.
3556
3557 2002-07-11 Grace Sainsbury <graces@redhat.com>
3558
3559 * monitor.c (monitor_fetch_register): Make name a constant.
3560 (monitor_store_register): Same.
3561
3562 2002-07-11 Daniel Jacobowitz <drow@mvista.com>
3563
3564 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
3565 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
3566 (finish_block) For non-function blocks, hash the symbol table. For
3567 function blocks, mark the symbol table as unhashed.
3568 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
3569 (msymbol_hash_iw): Likewise.
3570 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
3571 value.
3572 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
3573 (lookup_minimal_symbol): Likewise for both.
3574 * symtab.h (struct block): Add `hashtable' flag. Comment the
3575 hashtable.
3576 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
3577 (ALL_BLOCK_SYMBOLS): Update.
3578 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
3579 (struct symbol): Add `hash_next' pointer.
3580 * symtab.c (lookup_block_symbol): Search using the hash table when
3581 possible.
3582 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
3583 (search_symbols, find_addr_symbol): Likewise.
3584
3585 * dstread.c (process_dst_block): Clear hashtable bit for new block.
3586 (read_dst_symtab): Likewise.
3587 * jv-lang.c (get_java_class_symtab): Likewise.
3588 * mdebugread.c: Include "gdb_assert.h".
3589 (shrink_block): Assert that the block being modified is not hashed.
3590 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
3591 * symmisc.c (free_symtab_block): Walk the hash table when freeing
3592 symbols.
3593 (dump_symtab): Recognize hashed blocks.
3594 * printcmd.c (print_frame_args): Assert that function blocks do not
3595 have hashed symbol tables.
3596 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
3597 (fill_in_ada_prototype, debug_print_block): Likewise.
3598 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
3599
3600 2002-07-11 Corinna Vinschen <vinschen@redhat.com>
3601
3602 * stack.c (print_frame): Use result of frame_address_in_block()
3603 instead of fi->pc when evaluating symbols.
3604 (backtrace_command_1): Ditto.
3605
3606 2002-07-11 Andrew Cagney <cagney@redhat.com>
3607
3608 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
3609 Make static.
3610
3611 * arm-tdep.c (arm_register_name): Make return type constant.
3612
3613 2002-07-10 Andrew Cagney <ac131313@redhat.com>
3614
3615 * win32-nat.c (has_detach_ability): Convert to strict ISO C
3616 prototype.
3617 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
3618 * s390-tdep.c (s390_fp_regnum): Ditto.
3619 (s390_read_fp): Ditto.
3620 (s390_pop_frame): Ditto.
3621 (_initialize_s390_tdep): Ditto.
3622 * remote.c (get_remote_state): Ditto.
3623 * procfs.c (mappingflags): Ditto.
3624 * memattr.c (_initialize_mem): Ditto.
3625 * mcore-tdep.c (mcore_pop_frame): Ditto.
3626 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
3627 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
3628 * language.c (set_case_str): Ditto.
3629 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
3630 * frv-tdep.c (new_variant): Ditto.
3631 (frv_stopped_data_address): Ditto.
3632 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
3633 (context_alloc): Ditto.
3634 (frame_state_alloc): Ditto.
3635 (unwind_tmp_obstack_init): Ditto.
3636 (unwind_tmp_obstack_free): Ditto.
3637 (cfi_read_fp): Ditto.
3638 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
3639 (cris_pop_frame): Ditto.
3640 * c-lang.c (scanning_macro_expansion): Ditto.
3641 (finished_macro_expansion): Ditto.
3642 (c_preprocess_and_parse): Ditto.
3643 * gdbarch.sh: Ditto.
3644 * gdbarch.h, gdbarch.c: Regenerate.
3645 * config/mn10200/tm-mn10200.h: Adjust indentation.
3646 * target.c: Adjust indentation.
3647 * symtab.h: Adjust indentation.
3648 * stabsread.h: Adjust indentation.
3649 * remote-es.c: Adjust indentation.
3650 * os9kread.c: Adjust indentation.
3651
3652 2002-07-10 Andrew Cagney <ac131313@redhat.com>
3653
3654 * wince.c (_initialize_wince): Rename _initialize_inftarg.
3655 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
3656
3657 2002-07-10 Grace Sainsbury <graces@redhat.com>
3658
3659 * NEWS: Mention m68k, mcore multi-arching.
3660 * MAINTAINERS: Change status of m68k, mcore to reflect
3661 multi-arching.
3662
3663 2002-07-10 Daniel Jacobowitz <drow@mvista.com>
3664
3665 * valops.c (find_overload_match): Free oload_syms.
3666
3667 2002-07-09 Joel Brobecker <brobecker@gnat.com>
3668
3669 Define HAVE_SYS_PROC_H if sys/proc.h exists
3670 * configure.in: Add check for sys/proc.h
3671 * config.in: Regenerate.
3672 * configure: Regenerate.
3673
3674 2002-07-09 Grace Sainsbury <graces@redhat.com>
3675
3676 * config/m68k/tm-m68k.h: Remove macros wrapped in
3677 #if !GDB_MULTI_ARCH.
3678
3679 2002-07-08 Andrew Cagney <ac131313@redhat.com>
3680
3681 * config.in, configure: Regenerate.
3682
3683 2002-07-08 Mark Kettenis <kettenis@gnu.org>
3684
3685 * dwarf2cfi.c: Include "gcore.h".
3686 (execute_stack_op): Fix implementation of the
3687 DW_OP_deref and DW_OP_deref_size operators by letting do their
3688 lookup in the target.
3689
3690 2002-07-07 Mark Kettenis <kettenis@gnu.org>
3691
3692 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
3693 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
3694 tdep->sc_sp_offset.
3695
3696 2002-07-05 Daniel Jacobowitz <drow@mvista.com>
3697
3698 Fix PR gdb/595, gdb/602
3699 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
3700 Don't call value_cast, just read the vtable pointer; update comments
3701 to match.
3702
3703 2002-07-05 Grace Sainsbury <graces@redhat.com>
3704
3705 * config/mcore/tm-mcore.h: Remove file.
3706 * config/mcore/mcore.mt: Remove definition of TM_FILE
3707 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
3708
3709 2002-07-05 Mark Kettenis <kettenis@gnu.org>
3710
3711 * i386bsd-tdep.c: Include "gdb_string.h".
3712
3713 2002-07-04 Grace Sainsbury <graces@redhat.com>
3714
3715 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
3716 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
3717 mcore-tdep.
3718 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
3719 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
3720 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
3721 (RETVAL_REGNUM): Move macros from tm-mcore.h
3722 (mcore_reg_struct_has_addr): New function.
3723 (mcore_gdbarch_init): Added initializations for the macros removed
3724 from tm-mcore.h.
3725
3726 2002-07-04 Mark Kettenis <kettenis@gnu.org>
3727
3728 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
3729 traditonal string branding within the ELF header.
3730
3731 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
3732
3733 * symtab.c (remove_params): New function.
3734 (make_symbol_overload_list): Use it instead of cplus_demangle.
3735 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
3736
3737 2002-07-04 Mark Kettenis <kettenis@gnu.org>
3738
3739 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
3740
3741 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
3742 New variables.
3743 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
3744 and tdep->sigtramp_end.
3745 * i386obsd-nat.c: New file.
3746 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
3747
3748 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
3749 Don't call get_current_frame().
3750
3751 2002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
3752
3753 * i386-nat.c (child_post_startup_inferior): New function
3754 calling i386_cleanup_dregs if
3755 I386_USE_GENERIC_WATCHPOINTS is defined.
3756 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
3757 conditional to acknowledge that i386-nat.c has its
3758 own child_post_startup_inferior function.
3759
3760 2002-07-04 Mark Kettenis <kettenis@gnu.org>
3761
3762 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
3763 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
3764 instead of MAX_REGISTER_RAW_SIZE.
3765 (i386_extract_return_value, i386_extract_struct_value_address):
3766 Convert to use regcache.
3767 (i386_gdbarch_init): Set max_register_raw_size and
3768 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
3769 Set extract_return_value and extract_struct_value_address instead
3770 of their deprecated variants.
3771
3772 Convert i386 target to generic dummy frames.
3773 * i386-tdep.c: Include "symfile.h".
3774 (i386_frameless_signal_p): Consider a function to be frameless if
3775 the pc points at the first instruction of the function.
3776 (i386_frame_chain): Handle (generic) call dummies.
3777 (i386_frame_saved_pc): Likewise.
3778 (i386_frame_init_saved_regs): Remove code dealing with call
3779 dummies on the stack.
3780 (i386_push_dummy_frame): Removed.
3781 (i386_call_dummy_words): Removed.
3782 (i386_fix_call_dummy): Removed.
3783 (i386_push_return_address): New function.
3784 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
3785 parameter, and don't call get_current_frame.
3786 (i386_pop_frame): New function.
3787 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
3788 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
3789 entry_point_address, set call_dummy_breakpoint_offset to 0, set
3790 call_dummy_length to 0, set call_dummy_words to NULL, set
3791 sizeof_call_dummy_words to 0, set fix_call_dummy to
3792 generic_fix_call_dummy, set pc_in_call_dummy to
3793 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
3794 generic_push_dummy_frame, set push_return_address to
3795 i386_push_return_address and set frame_chain_valid to
3796 generic_file_frame_chain_valid.
3797
3798 2002-07-03 Andrew Cagney <ac131313@redhat.com>
3799
3800 * gdbarch.sh (struct regcache): Add opaque declaration.
3801 (EXTRACT_RETURN_VALUE): New architecture method.
3802 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
3803 * gdbarch.h, gdbarch.c: Regenerate.
3804 * arch-utils.c (legacy_extract_return_value): New function.
3805 * arch-utils.h (legacy_extract_return_value): Declare.
3806 * values.c (value_being_returned): Re-enable code handling
3807 EXTRACT_STRUCT_VALUE_ADDRESS. Move
3808 deprecated_grub_regcache_for_registers call to block handling
3809 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
3810 (EXTRACT_RETURN_VALUE): Do not define.
3811
3812 2002-07-03 Grace Sainsbury <graces@redhat.com>
3813
3814 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
3815 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
3816 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
3817 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
3818 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
3819 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
3820 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
3821 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
3822 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
3823 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
3824 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
3825 argument so the function fits the prototype in the architecture
3826 vector.
3827 (mcore_pop_frame): Remove argument so the function fits the
3828 prototype. Use get_current_frame instead of the argument.
3829 (mcore_push_arguments): Change type of struct_return so the
3830 function can be used in the architecture vector.
3831 (mcore_store_struct_return): Add.
3832 (mcore_frame_init_saved_regs): Add.
3833 (mcore_gdbarch_init): Add function calls to replace the macros
3834 removed from tm-mcore.h
3835
3836 2002-07-03 Andrew Cagney <ac131313@redhat.com>
3837
3838 * infcmd.c (print_return_value): Remove compatibility code calling
3839 deprecated_grub_regcache_for_registers.
3840
3841 * values.c: Include "regcache.h".
3842 (value_being_returned): Update. Use
3843 deprecated_grub_regcache_for_registers to extract the register
3844 buffer address.
3845 * value.h (value_being_returned): Change ``retbuf'' parameter to a
3846 ``struct regcache''.
3847 * Makefile.in (values.o): Add dependency on $(regcache_h).
3848
3849 * inferior.h (run_stack_dummy): Change type of second parameter to
3850 a ``struct regcache''.
3851 * valops.c (hand_function_call): Change type of retbuf to ``struct
3852 regcache''. Allocate using regcache_xmalloc, clean using
3853 make_cleanup_regcache_xfree.
3854 * infcmd.c (run_stack_dummy): Update. Use
3855 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
3856
3857 * regcache.c (do_regcache_xfree): New function.
3858 (make_cleanup_regcache_xfree): New function.
3859 * regcache.h (make_cleanup_regcache_xfree): Declare.
3860
3861 2002-07-03 Martin M. Hunt <hunt@redhat.com>
3862
3863 * event-top.c (command_line_handler): Don't read past
3864 beginning of buffer.
3865
3866 2002-07-03 Martin M. Hunt <hunt@redhat.com>
3867
3868 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
3869 struct frame_id.
3870 (varobj_create): Store frame_id for root.
3871 (varobj_gen_name): Use xasprintf.
3872 (varobj_update): Save and restore frame using get_frame_id() and
3873 frame_find_by_id().
3874 (create_child): Use xasprintf.
3875 (new_root_variable): Initialize frame_id.
3876 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
3877 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
3878 to prevent memory leak.
3879
3880 2002-07-03 Andrew Cagney <ac131313@redhat.com>
3881
3882 * valops.c (hand_function_call): Move declaration of retbuf to
3883 start of function, allocate using malloc, add a cleanup but before
3884 the inf_status cleanup, cleanup the buffer. Rename local variable
3885 old_chain to inf_status_cleanup.
3886
3887 2002-07-03 Martin M. Hunt <hunt@redhat.com>
3888
3889 * top.c (execute_command): Use cmd_func() and cmd_func_p().
3890
3891 * cli/cli-decode.c (cmd_func_p): New function.
3892 (cmd_func): New function.
3893
3894 * command.h: Add cmd_func() and cmd_func_p().
3895
3896 2002-07-03 Grace Sainsbury <graces@redhat.com>
3897
3898 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
3899 (REGISTER_SIZE): Remove.
3900 (MAX_REGISTER_RAW_SIZE): Remove.
3901 (REGISTER_VIRTUAL_TYPE): Remove.
3902 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
3903 (REGISTER_NAME): Remove.
3904 (USE_GENERIC_DUMMY_FRAMES): Remove.
3905 (CALL_DUMMY): Remove.
3906 (CALL_DUMMY_START_OFFSET): Remove.
3907 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
3908 (CALL_DUMMY_LOCATION): Remove.
3909 (FIX_CALL_DUMMY): Remove.
3910 (CALL_DUMMY_ADDRESS): Remove.
3911 (SIZEOF_CALL_DUMMY_WORDS): Remove.
3912 (SAVE_DUMMY_FRAME_TOS): Remove.
3913 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
3914 (mcore_register_virtual_type): New function.
3915 (mcore_register_byte): New function.
3916 (mcore_register_size): New function.
3917 (mcore_register_name): New function.
3918 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
3919 macros removed from tm-mcore.h.
3920 (mcore_dump_tdep): Add.
3921 (_initialize_mcore_tdep): Add gdbarch_register call.
3922
3923 2002-07-03 Mark Kettenis <kettenis@gnu.org>
3924
3925 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
3926 frameless_look_for_prologue, such that we actually call this
3927 function.
3928
3929 2002-07-02 Joel Brobecker <brobecker@gnat.com>
3930
3931 * frame.h (frame_address_in_block): New function.
3932
3933 * blockframe.c (frame_address_in_block): New function extracted
3934 from get_frame_block().
3935 (get_frame_block): Use frame_address_in_block().
3936 (block_innermost_frame): Use frame_address_in_block() to match
3937 the frame pc address against the block boundaries rather than
3938 the frame pc directly. This prevents a failure when a frame pc
3939 is actually a return-address pointing immediately after the end
3940 of the given block.
3941
3942 2002-07-02 Grace Sainsbury <graces@redhat.com>
3943
3944 * MAINTAINERS: Add self under write after approval.
3945
3946 2002-07-02 Grace Sainsbury <graces@redhat.com>
3947
3948 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
3949 used in architecture vector. The default is
3950 m68k_local_breakpoint_from_pc.
3951 (m68k_local_breakpoint_from_pc): Add.
3952 (enum): Add register numbers from tm-m68k.h.
3953 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
3954 vector.
3955 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
3956 GDB_MULTI_ARCH_PARTIAL.
3957 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
3958 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
3959 m68k-tdep.c.
3960 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
3961 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
3962 to enum in m68k-tdep.c
3963
3964 2002-07-02 Joel Brobecker <brobecker@gnat.com>
3965
3966 * solib-osf.c (open_map): Compute the list of shared libraries
3967 loaded by the inferior, rather than the list of libraries loaded
3968 by GDB itself. Otherwise, GDB ends up reading the symbols from
3969 the wrong shared libraries...
3970
3971 2002-07-02 Mark Kettenis <kettenis@gnu.org>
3972
3973 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
3974 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
3975 macros.
3976 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
3977 Remove functions.
3978 (FRAMELESS_SIGNAL): Remove function.
3979 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
3980 i386_linux_saved_pc_after_call): Removed.
3981 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
3982 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
3983 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
3984
3985 * i386-tdep.c (i386_frameless_signal_p): New function.
3986 (i386_frame_chain): Deal with frameless signals.
3987 (i386_sigtramp_saved_sp): New function.
3988 (i386_frame_saved_pc): Deal with frameless signals.
3989 (i386_saved_pc_after_call): Make sure the correct value is
3990 returned just after entry into a sigtramp.
3991 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
3992 i386fbsd4_sc_sp_offset): New variables.
3993 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
3994 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
3995 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
3996 similiar to what we already did for sc_pc_offset.
3997 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
3998 tdep->sc_sp_offset.
3999
4000 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
4001
4002 2002-07-02 Michal Ludvig <mludvig@suse.cz>
4003
4004 * config/i386/tm-x86-64linux.h: New.
4005 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
4006 definitions.
4007 * config/i386/nm-x86-64.h: Rename to ...
4008 * config/i386/nm-x86-64linux.h: ... this one.
4009 * config/i386/x86-64linux.mh: Reflect the above change.
4010
4011 2002-07-01 Mark Kettenis <kettenis@gnu.org>
4012
4013 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
4014 with sigcontext_addr. Add sc_sp_offset.
4015 (i386bsd_sigtramp_saved_pc): Remove prototype.
4016 (i386bsd_sicontext_addr): Add prototype.
4017 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
4018 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
4019 (i386_svr4_sigtramp_saved_pc): Removed.
4020 (i386_svr4_sigcontext_addr): New function.
4021 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
4022 Initialize tdep->sigcontext_addr instead. Initialize
4023 tdep->sc_pc_offset and tdep->sc_sp_offset.
4024 (i386_gdbarch_init): Likewise.
4025 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
4026 any more.
4027 (i386bsd_sigtramp_saved_pc): Remove function.
4028 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
4029 Initialize tdep->sigcontext_addr instead. Initialize
4030 tdep->sc_pc_offset.
4031 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
4032 of tdep->sigtramp_saved_pc.
4033 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
4034 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
4035 instead.
4036
4037 * i386-tdep.c (i386_frameless_function_invocation,
4038 i386_frame_num_args, i386_frame_init_saved_regs,
4039 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
4040 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
4041 i386_extract_return_value, i386_store_return_value,
4042 i386_extract_struct_value_address, i386_register_virtual_type,
4043 i386_register_convertible, i386_register_convert_to_virtual,
4044 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
4045 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
4046 static.
4047
4048 2002-07-01 Mark Kettenis <kettenis@gnu.org>
4049
4050 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
4051
4052 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
4053 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
4054 this macro. Include "value.h".
4055
4056 2002-06-30 Aidan Skinner <aidan@velvet.net>
4057
4058 * ada-exp.tab.c: remove as it's a generated file
4059 * ada-lex.c: remove as it's a generated file
4060
4061 2002-06-30 Mark Kettenis <kettenis@gnu.org>
4062
4063 * config/i386/tm-i386.h (struct frame_info, struct
4064 frame_saved_regs, struct value, struct type): Remove forward
4065 declarations.
4066
4067 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
4068 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
4069 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
4070 (FILL_FPXREGSET): Define.
4071
4072 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
4073
4074 * configure.tgt (i[3456]86-*-openbsd*): Fold into
4075 i[3456]86-*-netbsd* case.
4076 * config/i386/tm-obsd.h: Removed.
4077 * config/i386/obsd.mt: Removed.
4078 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
4079 core-aout.o.
4080 (MH_CFLAGS): Add -DYYDEBUG=0.
4081
4082 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
4083 i386nbsd_sc_pc_offset on OpenBSD too.
4084
4085 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
4086 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
4087 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
4088 define.
4089 * i386bsd-tdep.c: Include "arch-utils.h".
4090 (i386bsd_aout_in_solib_call_trampoline): New function.
4091 (i386bsd_init_abi): Set in_solib_call_trampoline to
4092 i386bsd_aout_in_solib_call_trampoline.
4093 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
4094 in_solib_call_trampoline to generic_in_solib_call_trampoline.
4095
4096 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4097
4098 * macrotab.h: Do not include "obstack.h" or "bcache.h".
4099 (struct obstack, struct bcache): Add opaque declarations.
4100 * Makefile.in (macrotab_h): Update
4101
4102 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4103
4104 * blockframe.c (generic_find_dummy_frame): Change return type to
4105 ``struct regcache''.
4106 (struct dummy_frame): Replace field ``registers'' with regcache, a
4107 struct regcache object.
4108 (generic_find_dummy_frame): Update.
4109 (generic_push_dummy_frame): Update. Use regcache_xfree,
4110 regcache_xmalloc and regcache_cpy.
4111 (generic_pop_dummy_frame): Update. Use regcache_cpy and
4112 regcache_xfree.
4113 (deprecated_generic_find_dummy_frame): Update.
4114 (generic_read_register_dummy): Update. Use
4115 regcache_read_as_address.
4116 (generic_call_dummy_register_unwind): Update. Use regcache_read.
4117 (generic_get_saved_register): Update. Use regcache_read.
4118
4119 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4120
4121 * Makefile.in (objfiles_h): Add $(bcache_h).
4122 * objfiles.h: Include "bcache.h".
4123
4124 * Makefile.in (symtab_h): Remove $(bcache_h).
4125 * symtab.h: Do not include "bcache.h".
4126
4127 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4128
4129 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
4130 generic_func_frame_chain_valid.
4131
4132 2002-06-28 David O'Brien <obrien@FreeBSD.org>
4133
4134 * config/i386/nm-fbsd.h: Include <sys/param.h>.
4135 * config/i386/tm-fbsd.h: Likewise.
4136
4137 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4138
4139 * rs6000-tdep.c (rs6000_gdbarch_init): Use
4140 generic_unwind_get_saved_register.
4141
4142 2002-06-27 Andrew Cagney <ac131313@redhat.com>
4143
4144 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
4145 * regcache.c (supply_register): Add missing argument to
4146 register_buffer call.
4147
4148 2002-06-27 Andrew Cagney <ac131313@redhat.com>
4149
4150 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
4151 Solaris /bin/grep does not not like it. From Peter Schauer.
4152
4153 2002-06-26 Tom Tromey <tromey@redhat.com>
4154
4155 * command.h (add_setshow_cmd): Declare.
4156 (add_setshow_cmd_full): Declare.
4157 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
4158 returns void. Use add_setshow_cmd_full.
4159 (add_setshow_cmd_full): New function.
4160 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
4161 (add_setshow_boolean_cmd): Likewise.
4162
4163 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4164
4165 * config/vax/tm-vax.h: Protect from multiple inclusion.
4166 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
4167 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
4168 * config/vax/tm-vaxbsd.h: ...here. New file.
4169 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
4170
4171 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4172
4173 * config/vax/tm-vax.h (BREAKPOINT): Remove.
4174 (BELIEVE_PCC_PROMOTION): Remove.
4175 (AP_REGNUM): Move to...
4176 * config/vax/nm-vax.h: ...here.
4177 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
4178 (vax_breakpoint_from_pc): New function.
4179 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
4180 and gdbarch_believe_pcc_promotion.
4181
4182 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4183
4184 * Makefile.in (vax_tdep_h): Define.
4185 (vax-tdep.o): Use $(vax_tdep_h).
4186 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
4187 (vax_dump_tdep): New function.
4188 (_initialize_vax_tdep): Register vax_dump_tdep.
4189 * vax-tdep.h: Include osabi.h.
4190 (struct gdbarch_tdep): New.
4191
4192 2002-06-26 Andrew Cagney <cagney@redhat.com>
4193
4194 * frame.h (deprecated_generic_find_dummy_frame): Rename
4195 generic_find_dummy_frame.
4196 * blockframe.c (generic_find_dummy_frame): Make static.
4197 (deprecated_generic_find_dummy_frame): New function.
4198 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
4199 generic_find_dummy_frame with deprecated_find_dummy_frame.
4200 (sh64_nofp_frame_init_saved_regs): Ditto.
4201 (sh_fp_frame_init_saved_regs): Ditto.
4202 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
4203 (s390_frame_chain): Ditto.
4204 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
4205
4206 2002-06-26 Grace Sainsbury <graces@redhat.com>
4207
4208 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
4209 gdbarch vector are at the top.
4210 (NUM_REGS): Remove.
4211 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
4212 (FRAME_ARGS_ADDRESS): Remove.
4213 (FRAME_LOCALS_ADDRESS): Remove.
4214 (FRAME_NUM_ARGS): Remove.
4215 (FRAME_ARGS_SKIP): Remove.
4216 * m68k-tdep.c (enum): Add eumeration of special register numbers.
4217 (m68k_gdbarch_init): Add gdbarch initializations for macros
4218 undefined in tm-m68k.h
4219
4220 2002-06-26 Grace Sainsbury <graces@redhat.com>
4221
4222 * monitor.h: Add the function regname to monitor_ops
4223 structure. This way NUM_REGS does not have to be a constant.
4224 * monitor.c (monitor_fetch_register): Added support for regname
4225 function. The function is called if the array regnames is NULL.
4226 (monitor_store_register): Same.
4227 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
4228 regnames array.
4229 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
4230 cpu32bug_cmds.regname to point to new function.
4231 * abug-rom.c (abug_regname): Same as above.
4232 (init_abug_cmds): Same.
4233 * dbug-rom.c (dbug_regname): Same as above.
4234 (init_dbug_cmds): Same.
4235 * remote-est.c (est_regname): Same.
4236 (init_est_cmds): Same.
4237 * rom68k-rom.c (rom68k_regname): Same.
4238 (init_rom68k_cmds): Same.
4239
4240 2002-06-25 Tom Tromey <tromey@redhat.com>
4241
4242 * breakpoint.c (delete_command): Don't repeat `delete' commands.
4243
4244 2002-06-25 Andrew Cagney <cagney@redhat.com>
4245
4246 * infrun.c (stop_registers): Change variable's type to ``struct
4247 regcache'''.
4248 (xmalloc_inferior_status): Delete function.
4249 (free_inferior_status): Delete function.
4250 (normal_stop): Use regcache_cpy.
4251 (struct inferior_status): Change type of fields ``stop_registers''
4252 and ``registers'' to ``struct regcache''.
4253 (write_inferior_status_register): Use regcache_write.
4254 (save_inferior_status): Instead of calling
4255 xmalloc_inferior_status, allocate the inf_status buffer directly.
4256 Use regcache_dup_no_passthrough and regcache_dup to save the
4257 buffers.
4258 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
4259 Replace the stop_registers regcache instead of overriding it. Use
4260 regcache_xfree. Instead of calling free_inferior_status, xfree
4261 the buffer directly.
4262 (discard_inferior_status): Use regcache_xfree. Instead of calling
4263 free_inferior_status, xfree the buffer directly.
4264 (build_infrun): Use regcache_xmalloc.
4265 (_initialize_infrun): Delete redundant call to build_infrun.
4266
4267 * Makefile.in (infcmd.o): Add $(regcache_h).
4268
4269 * infcmd.c: Include "regcache.h".
4270 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
4271 obtain the address of `stop_registers' register buffer.
4272 (print_return_value): Ditto.
4273
4274 * inferior.h (struct regcache): Add opaque declaration.
4275 (stop_registers): Change variable's declared type to ``struct
4276 regcache''.
4277
4278 2002-06-24 Tom Tromey <tromey@redhat.com>
4279
4280 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
4281 * target.c (initialize_targets): Fixed typo in
4282 trust-readonly-sections `show' documentation.
4283
4284 * main.c: Marked all strings with _().
4285
4286 2002-06-24 Don Howard <dhoward@redhat.com>
4287
4288 * memattr.c (create_mem_region): Treat hi == 0 as a special case
4289 that means max CORE_ADDR+1.
4290 (lookup_mem_region): Ditto.
4291 (mem_info_command): Ditto.
4292
4293 2002-06-24 Grace Sainsbury <graces@redhat.com>
4294
4295 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
4296 (REGISTER_BYTES_OK): Remove.
4297 (REGISTER_BYTES): Remove.
4298 (STORE_STRUCT_RETURN): Remove.
4299 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
4300 (STORE_RETURN_VALUE): Remove.
4301 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
4302 (FRAME_CHAIN): Remove.
4303 (FRAMELESS_FUNCTION_INVOCATION): Remove.
4304 (FRAME_SAVED_PC): Remove.
4305 * m68k-tdep.c (m68k_register_bytes_ok):Add.
4306 (m68k_store_struct_return): Add.
4307 (m68k_deprecated_extract_return_value): Add.
4308 (m68k_deprecated_extract_struct_value_address): Add.
4309 (m68k_store_return_value): Add.
4310 (m68k_frame_chain): Add.
4311 (m68k_frameless_function_invocation): Add.
4312 (m68k_frame_saved_pc): Add.
4313 (m68k_gdbarch_init): added set_gdbarch calls for new
4314 functions and deleted macros.
4315
4316 2002-06-23 Tom Tromey <tromey@redhat.com>
4317
4318 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
4319 (ALLDEPFILES): Likewise.
4320 (udiheaders): Removed.
4321 (udip2soc.o): Likewise.
4322 (udi2go32.o): Likewise.
4323 (udr.o): Likewise.
4324 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
4325
4326 2002-06-22 Andrew Cagney <ac131313@redhat.com>
4327
4328 * infrun.c (_initialize_infrun): Delete unnecessary call to
4329 build_infrun.
4330
4331 * regcache.h: Update comments describing the regcache_cpy family
4332 of functions.
4333 (regcache_save, regcache_restore): Delete declaration.
4334 (regcache_save_no_passthrough): Delete declaration.
4335 (regcache_restore_no_passthrough): Delete declaration.
4336 * regcache.c (regcache_save): Delete function.
4337 (regcache_save_no_passthrough): Delete function.
4338 (regcache_restore): Delete function.
4339 (regcache_restore_no_passthrough): Delete function.
4340
4341 2002-06-21 Andrew Cagney <ac131313@redhat.com>
4342
4343 * config/m68k/tm-m68k.h: Fix typo.
4344 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
4345 (m68k_frame_init_saved_regs): Declare.
4346
4347 2002-06-21 Jim Blandy <jimb@redhat.com>
4348
4349 Remove some vestiges of Harris 88k support.
4350 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
4351 register numbering quirk.
4352 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
4353 odd symbols occurring in Harris 88k ELF targets.
4354
4355 2002-06-21 Tom Tromey <tromey@redhat.com>
4356
4357 * gdb_locale.h: New file.
4358 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
4359 (defs_h): Added gdb_locale.h.
4360 * configure, config.in: Rebuilt.
4361 * configure.in (PACKAGE): Define.
4362 * defs.h: Include gdb_locale.h.
4363 * main.c (captured_main): Call setlocale, bindtextdomain,
4364 textdomain.
4365
4366 2002-06-21 Dave Brolley <brolley@redhat.com>
4367
4368 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
4369 * config/frv/frv.mt: New file.
4370 * config/frv/tm-frv.h: New file.
4371 * configure.tgt: Support frv-*-*.
4372 * Makefile.in (frv-tdep.o): New target.
4373 * frv-tdep.c: New file.
4374 * NEWS: Mention frv.
4375
4376 2002-06-21 Dave Brolley <brolley@redhat.com>
4377
4378 * MAINTAINERS: Add self to "Write After Approval" list.
4379
4380 2002-06-21 Grace Sainsbury <graces@redhat.com>
4381
4382 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
4383 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
4384 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
4385 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
4386 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
4387
4388 * m68k-tdep.c: Include arch-utils.h
4389 (m68k_register_raw_size): Add.
4390 (m68k_register_virtual_size): Add.
4391 (m68k_register_virtual_type): Add.
4392 (m68k_register_name): Add.
4393 (m68k_stack_align): Add.
4394 (m68k_register_byte): Add.
4395 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
4396 tm-m68k.h.
4397
4398 2002-06-21 Grace Sainsbury <graces@redhat.com>
4399
4400 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
4401 m68k_find_saved_regs.
4402 (m68k_pop_frame): Removed saved_regs structure, and replaced
4403 references to it with frame->saved_regs.
4404 (m68k_gdbarch_init): Added function calls to initialize the
4405 gdbarch structure.
4406 (m68k_fix_call_dummy): Add.
4407 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
4408 (CALL_DUMMY): Remove.
4409 (CALL_DUMMY_LENGTH): Remove.
4410 (CALL_DUMMY_START_OFFSET): Remove.
4411 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
4412 (FIX_CALL_DUMMY): Remove.
4413 (PUSH_DUMMY_FRAME): Remove.
4414 (POP_FRAME): Remove.
4415
4416 2002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
4417
4418 * parse.c (parse_fprintf): New function used to avoid calls to
4419 fprintf in bison parser generated debug code.
4420 * parser-defs.h: Declaration of new parse_fprintf function.
4421 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
4422 Set YYDEBUG to 1 by default.
4423 Set YYFPRINTF as parse_fprintf.
4424
4425 2002-06-21 Michal Ludvig <mludvig@suse.cz>
4426
4427 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
4428 encoding anymore.
4429 (pointer_encoding, enum ptr_encoding): New.
4430 (execute_cfa_program): Take care about pointer encoding.
4431 (dwarf2_build_frame_info): Only call parse_frame_info for
4432 .debug_frame and .eh_frame.
4433 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
4434 fixed augmentation handling, added relative addressing,
4435 ignore duplicate FDEs. Added comments.
4436 * dwarf2cfi.c: Reindented.
4437
4438 2002-06-20 Elena Zannoni <ezannoni@redhat.com>
4439
4440 * event-top.c (command_handler): Don't use space_at_cmd_start
4441 unless there is sbrk() on the host. Assign time and space data
4442 to union fields of the appropriate length.
4443
4444 2002-06-20 Michal Ludvig <mludvig@suse.cz>
4445
4446 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
4447 x86_64_register_name. Return type changed to 'const char *'.
4448 (x86_64_register_name2nr): Rename to x86_64_register_number.
4449 (x86_64_gdbarch_init): Update to reflect the change.
4450 * x86-64-tdep.h: Ditto.
4451 * x86-64-linux-nat.c (x86_64_fxsave_offset)
4452 (supply_fpregset): Ditto.
4453
4454 2002-06-19 Andrew Cagney <cagney@redhat.com>
4455
4456 * regcache.h: Update copyright.
4457 (struct regcache, struct gdbarch): Add opaque declarations.
4458 (current_regcache): Declare global variable.
4459 (regcache_read, regcache_write): Add gdbarch parameter.
4460 (regcache_save, regcache_save_no_passthrough)
4461 (regcache_restore, regcache_restore_no_passthrough)
4462 (regcache_dup, regcache_dup_no_passthrough)
4463 (regcache_cpy, regcache_cpy_no_passthrough)
4464 (deprecated_grub_regcache_for_registers)
4465 (deprecated_grub_regcache_for_register_valid)
4466 (regcache_valid_p): Add function declarations.
4467
4468 * regcache.c: Update copyright.
4469 (regcache_descr_handle): New global variable.
4470 (struct regcache_descr): Define.
4471 (init_legacy_regcache_descr, init_regcache_descr): New functions.
4472 (regcache_descr, xfree_regcache_descr): New functions.
4473 (struct regcache): Define.
4474 (regcache_xmalloc, regcache_xfree): New functions.
4475 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
4476 (regcache_dup, regcache_dup_no_passthrough): New functions.
4477 (regcache_valid_p, regcache_read_as_address): New functions.
4478 (deprecated_grub_regcache_for_registers): New function.
4479 (deprecated_grub_regcache_for_register_valid): New function.
4480 (current_regcache): New global variable.
4481 (register_buffer): Add regcache parameter. Update calls.
4482 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
4483 (read_register_gen, write_register_gen): Update register_buffer
4484 call. Test for legacy_p instead of gdbarch_register_read_p or
4485 gdbarch_register_write_p.
4486 (regcache_collect): Update register_buffer call.
4487 (build_regcache): Rewrite. Use deprecated grub functions.
4488 (regcache_save, regcache_save_no_passthrough): New functions.
4489 (regcache_restore, regcache_restore_no_passthrough): New
4490 functions.
4491 (_initialize_regcache): Create the regcache_data_handle. Swap
4492 current_regcache global variable.
4493
4494 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
4495 parameter to regcache_read and regcache_write calls.
4496 (sh4_register_read): Ditto.
4497 (sh64_pseudo_register_read): Ditto.
4498 (sh64_register_read): Ditto.
4499 (sh_pseudo_register_write): Ditto.
4500 (sh4_register_write): Ditto.
4501 (sh64_pseudo_register_write): Ditto.
4502 (sh64_register_write): Ditto.
4503
4504 * defs.h (XCALLOC): Define.
4505
4506 2002-06-19 Grace Sainsbury <graces@redhat.com>
4507
4508 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
4509 * m68k-tdep.c (m68k_gdbarch_init): Added.
4510 (m68k_dump_tdep): Added.
4511
4512 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
4513
4514 * ada-lang.c (fill_in_ada_prototype): Update comment.
4515
4516 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
4517
4518 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
4519 MIPS_ABI_LAST.
4520 (mips_abi_string, mips_abi_strings): New.
4521 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
4522 (mips_gdbarch_init): Set tdep->found_abi. Don't set
4523 tdep->mips_abi_string. Honor mips_abi_string. Default to
4524 O32 if no ABI is found.
4525 (mips_dump_tdep): Use mips_abi_strings.
4526 (mips_abi_update): New function.
4527 (_initialize_mips_tdep): Initialize mips_abi_string. Add
4528 ``set mips abi'' and ``show mips abi''. Check the size of
4529 mips_abi_strings.
4530
4531 2002-06-19 Andrew Cagney <cagney@redhat.com>
4532
4533 * i386-linux-tdep.c (i386_linux_register_name): Make return type
4534 constant.
4535
4536 2002-06-18 Joel Brobecker <brobecker@gnat.com>
4537
4538 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
4539 current frame using only the first stack size adjustment. All
4540 subsequent size adjustments are not considered to be part of
4541 the "static" part of the current frame.
4542 Compute the address of the saved registers relative to the
4543 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
4544 in use in this frame.
4545
4546 2002-06-18 Don Howard <dhoward@redhat.com>
4547
4548 * valops.c (value_ind): Use value_at_lazy() when dereferencing
4549 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
4550 suggesting this solution.
4551
4552 2002-06-18 Andrew Cagney <ac131313@redhat.com>
4553
4554 * config/romp/xm-rtbsd.h: Delete file.
4555 * config/romp/rtbsd.mh: Delete file.
4556
4557 2002-06-18 Keith Seitz <keiths@redhat.com>
4558
4559 * breakpoint.c (condition_command): Post breakpoint_modify
4560 when a condition is added to an existing breakpoint.
4561 (commands_command): Likewise for commands.
4562 (set_ignore_count): Likewise for ignore counts.
4563 If no tty, do not simply return, still need to send event
4564 notification.
4565 (ignore_command): Only print a newline if the command came
4566 from a tty.
4567 Don't call breakpoints_changed, since this is now properly
4568 handled by set_ignore_count.
4569
4570 2002-06-18 Andrew Cagney <cagney@redhat.com>
4571
4572 * MAINTAINERS: Note that cris-elf target can be compiled with
4573 -Werror.
4574 * cris-tdep.c (cris_register_name): Make return type constant.
4575 (cris_breakpoint_from_pc): Ditto.
4576
4577 2002-06-18 Michal Ludvig <mludvig@suse.cz>
4578
4579 * frame.h (struct frame_info): Change type of context to
4580 'struct context'.
4581
4582 2002-06-17 Andrew Cagney <cagney@redhat.com>
4583
4584 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
4585 pointer.
4586 * gdbarch.h, gdbarch.c: Regenerate.
4587 * config/mips/tm-mips.h (mips_register_name): Update.
4588 * i386-tdep.h (i386_register_name): Update.
4589 * mips-tdep.c (mips_register_name): Update
4590 * alpha-tdep.c (alpha_register_name): Update.
4591 * arch-utils.c (legacy_register_name): Update.
4592 * arch-utils.h (legacy_register_name): Update.
4593 * avr-tdep.c (avr_register_name): Update.
4594 * ia64-tdep.c (ia64_register_name): Update.
4595 * i386-tdep.c (i386_register_name): Update.
4596 * sparc-tdep.c (sparc32_register_name): Update.
4597 (sparc64_register_name): Update.
4598 (sparclite_register_name): Update.
4599 (sparclet_register_name): Update.
4600 * sh-tdep.c (sh_generic_register_name): Update.
4601 (sh_sh_register_name): Update.
4602 (sh_sh3_register_name): Update.
4603 (sh_sh3e_register_name): Update.
4604 (sh_sh_dsp_register_name): Update.
4605 (sh_sh3_dsp_register_name): Update.
4606 (sh_sh4_register_name): Update.
4607 (sh_sh64_register_name): Update.
4608 * s390-tdep.c (s390_register_name): Update.
4609 * rs6000-tdep.c (rs6000_register_name): Update.
4610 * ns32k-tdep.c (ns32k_register_name_32082): Update.
4611 (ns32k_register_name_32382): Update.
4612 * d10v-tdep.c (d10v_ts2_register_name): Update.
4613 (d10v_ts3_register_name): Update.
4614 * xstormy16-tdep.c (xstormy16_register_name): Update.
4615 * vax-tdep.c (vax_register_name): Update.
4616 * v850-tdep.c (v850_register_name): Update.
4617 * m68hc11-tdep.c (m68hc11_register_name): Update.
4618 * mn10300-tdep.c (mn10300_generic_register_name): Update.
4619 (am33_register_name): Update.
4620
4621 2002-06-17 Grace Sainsbury <graces@redhat.com>
4622
4623 * m68k-tdep.c: Reindented.
4624
4625 2002-06-17 Andrew Cagney <ac131313@redhat.com>
4626
4627 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
4628 list of predefined types.
4629
4630 2002-06-16 Mark Kettenis <kettenis@gnu.org>
4631
4632 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
4633 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
4634 REGISTER_CONVERT_TO_RAW): Remove defines.
4635 (i386_register_virtual_type, i386_register_convertible,
4636 i386_register_convert_to_virtual, i386_register_convert_to_raw):
4637 Remove prototypes.
4638 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4639 macros mentioned above.
4640
4641 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
4642 (i386lynx_saved_pc_after_call): Remove prototype.
4643 * i386ly-tdep.c: Include "i386-tdep.h".
4644 (i386lynx_saved_pc_after_call): Make static. Use
4645 read_memory_nobpt instead of read_memory. Use
4646 read_memory_unsigned_integer instead of read_memory_integer.
4647 (i386lynx_init_abi): New function.
4648 (i386lynx_coff_osabi_sniffer): New function.
4649 (_initialize_i386bsd_tdep): New function.
4650
4651 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
4652 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
4653 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
4654 (i386_fix_call_dummy): Remove prototype.
4655 * i386-tdep.c (i386_call_dummy_words): New variable.
4656 (i386_gdbarch_init): Adjust for removal of the
4657 macros mentioned above.
4658
4659 2002-06-15 Andrew Cagney <ac131313@redhat.com>
4660
4661 * command.h (add_setshow_auto_boolean_cmd): Replace
4662 add_set_auto_boolean_cmd.
4663 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
4664 add_set_auto_boolean_cmd.
4665 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
4666 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
4667 mask-address'' command.
4668 (show_mask_address): Add cmd parameter.
4669 * remote.c (add_packet_config_cmd): Update. Change type of
4670 set_func and show_func to cmd_sfunc_ftype.
4671 (_initialize_remote): Update `set remote Z-packet'
4672 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
4673 (show_remote_protocol_e_packet_cmd): Ditto.
4674 (show_remote_protocol_E_packet_cmd): Ditto.
4675 (show_remote_protocol_P_packet_cmd): Ditto.
4676 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
4677 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
4678 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
4679 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
4680 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
4681 (show_remote_protocol_Z_packet_cmd): Ditto.
4682 (show_remote_protocol_binary_download_cmd): Ditto.
4683 (show_remote_cmd): Pass NULL to all of above.
4684
4685 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4686
4687 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
4688 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
4689 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
4690 POP_FRAME): Remove defines.
4691 (i386_push_arguments, i386_store_struct_return,
4692 i386_extract_return_value, i386_store_return_value,
4693 i386_extract_struct_value_address, i386_push_dummy_frame,
4694 i386_pop_frame): Renove prototypes.
4695 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4696 macros mentioned above.
4697
4698 2002-06-15 Andrew Cagney <ac131313@redhat.com>
4699
4700 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
4701 add_set_boolean_cmd.
4702 (add_setshow_cmd): New function.
4703 * command.h (add_setshow_boolean_cmd): Replace
4704 add_set_boolean_cmd.
4705 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
4706 and ``set rdiromatzero''.
4707 * maint.c (_initialize_maint_cmds): Update commented out code.
4708 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
4709 * target.c (initialize_targets): Update `set
4710 trust-readonly-sections'.
4711 * remote.c (_initialize_remote): Update `set remotebreak'.
4712
4713 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4714
4715 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
4716 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
4717 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
4718 fit into multi-arch framework.
4719 (i386_breakpoint_from_pc): New function.
4720 (i386_gdbarch_init): Adjust for removal of the macros mentioned
4721 above.
4722
4723 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
4724 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
4725 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
4726 (i386_frameless_function_invocation, i386_frame_num_args,
4727 i386_frame_init_saved_regs): Remove prototypes.
4728 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4729 macros mentioned above.
4730
4731 2002-06-15 Andrew Cagney <ac131313@redhat.com>
4732
4733 * cli/cli-decode.c (set_cmd_cfunc): Update.
4734 (set_cmd_sfunc): Update.
4735 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
4736 (set_cmd_sfunc, set_cmd_cfunc): Update.
4737 * cli/cli-decode.h: Update.
4738
4739 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4740
4741 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
4742 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
4743
4744 2002-06-15 Andrew Cagney <ac131313@redhat.com>
4745
4746 * defs.h (auto_boolean): Declare enum.
4747 * command.h (cmd_auto_boolean): Delete enum.
4748 * mips-tdep.c (mask_address_var): Update.
4749 (mips_mask_address_p): Update.
4750 (show_mask_address): Update.
4751 * remote.c (struct packet_config): Update.
4752 (update_packet_config): Update.
4753 (show_packet_config_cmd): Update.
4754 (packet_ok): Update.
4755 (add_packet_config_cmd): Update.
4756 (_initialize_remote):
4757 * command.h: Update.
4758 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
4759 (do_setshow_command): Update.
4760 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
4761 * cli/cli-decode.h: Update.
4762
4763 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4764
4765 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
4766 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
4767 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
4768 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
4769 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
4770 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
4771
4772 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
4773 list of DJGPP COFF targets.
4774
4775 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
4776 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
4777 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
4778 (FP0_REGNUM): Remove define.
4779 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
4780 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
4781 (i386_register_virtual_size): Remove protoype.
4782 * i386-tdep.c (i386_register_virtual_size): Removed.
4783 (i386_extract_return_value, i386_store_return_value): Use
4784 FP0_REGNUM instead of NUM_FREGS to determine whether the
4785 floating-point registers are available.
4786 (i386_gdbarch_init): Tweak FIXME about FPU registers.
4787 Adjust for removal of macros mentioned above.
4788
4789 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4790
4791 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
4792 comments.
4793 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
4794 Remove prototypes.
4795 (supply_gregset, fill_gregset): Remove use of register keyword and
4796 remove declaration for regmap. Use I386_NUM_GREGS instead of
4797 NUM_REGS and NUM_FREGS.
4798 (FPREGSET_FSAVE_OFFSET): Remove.
4799 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
4800 NUM_FREGS to determine whether the floating-point registers are
4801 available.
4802
4803 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
4804 gnu_store_registers): Replace usage of NUM_GREGS with
4805 I386_NUM_GREGS.
4806
4807 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
4808 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
4809 usage of NUM_GREGS with I386_NUM_GREGS.
4810
4811 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
4812
4813 * i386bsd-nat.c: Include "i386-tdep.h".
4814 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
4815 I386_NUM_GREGS.
4816
4817 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
4818 and associated comment. They no longer make any sense, since we
4819 don't use this file anymore on Linux.
4820
4821 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
4822 * i386-tdep.c (i386_register_offset, i386_register_size): Use
4823 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
4824 elements in these arrays.
4825 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
4826 MAX_NUM_REGS.
4827
4828 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4829
4830 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
4831 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
4832
4833 2002-06-14 Andrew Cagney <cagney@redhat.com>
4834
4835 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
4836 EXTRACT_RETURN_VALUE.
4837 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
4838 EXTRACT_STRUCT_VALUE_ADDRESS.
4839 * gdbarch.h, gdbarch.c: Regenerate.
4840
4841 * values.c (value_being_returned): Handle
4842 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
4843 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
4844
4845 * arm-linux-tdep.c (arm_linux_init_abi): Update.
4846 * arm-tdep.c (arm_gdbarch_init): Update.
4847 * avr-tdep.c (avr_gdbarch_init): Update.
4848 * cris-tdep.c (cris_gdbarch_init): Update.
4849 * d10v-tdep.c (d10v_gdbarch_init): Update.
4850 * ia64-tdep.c (ia64_gdbarch_init): Update.
4851 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4852 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4853 * s390-tdep.c (s390_gdbarch_init): Update.
4854 * sh-tdep.c (sh_gdbarch_init): Update.
4855 * s390-tdep.c (s390_gdbarch_init): Update.
4856 * sparc-tdep.c (sparc_gdbarch_init): Update.
4857 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4858 * v850-tdep.c (v850_gdbarch_init): Update.
4859 * vax-tdep.c (vax_gdbarch_init): Update.
4860 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
4861 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4862
4863 * config/arc/tm-arc.h: Update.
4864 * config/d30v/tm-d30v.h: Update.
4865 * config/fr30/tm-fr30.h: Update.
4866 * config/h8300/tm-h8300.h: Update.
4867 * config/h8500/tm-h8500.h: Update.
4868 * config/i386/tm-i386.h: Update.
4869 * config/i386/tm-ptx.h: Update.
4870 * config/i386/tm-symmetry.h: Update.
4871 * config/i960/tm-i960.h: Update.
4872 * config/m32r/tm-m32r.h: Update.
4873 * config/m68k/tm-delta68.h: Update.
4874 * config/m68k/tm-linux.h: Update.
4875 * config/m68k/tm-m68k.h: Update.
4876 * config/m88k/tm-m88k.h: Update.
4877 * config/mcore/tm-mcore.h: Update.
4878 * config/mips/tm-mips.h: Update.
4879 * config/mn10200/tm-mn10200.h: Update.
4880 * config/pa/tm-hppa.h: Update.
4881 * config/pa/tm-hppa64.h: Update.
4882 * config/sparc/tm-sp64.h: Update.
4883 * config/sparc/tm-sparc.h: Update.
4884 * config/sparc/tm-sparclet.h: Update.
4885 * config/z8k/tm-z8k.h: Update.
4886
4887 2002-06-14 Andrew Cagney <cagney@redhat.com>
4888
4889 * Makefile.in (i386_linux_tdep_h): Define.
4890 (i386_tdep_h, i387_tdep_h): Define.
4891 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
4892 $(i386_tdep_h) and $(i387_tdep_h).
4893 * i386-linux-nat.c: Include "i386-linux-tdep.h".
4894
4895 2002-06-14 Mark Kettenis <kettenis@gnu.org>
4896
4897 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
4898 Already covered by the default.
4899
4900 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
4901 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
4902 (i386_gdbarch_init): Initialize long_double_format and long_double
4903 bit.
4904
4905 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
4906 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
4907 Move these to ...
4908 * config/i386/i386sol2.mh: ... here.
4909 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
4910 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
4911 (SIGCONTEXT_PC_OFFSET): Remove define.
4912 (IN_SIGTRAMP): Remove define.
4913 * i386-sol2-tdep.c: New file.
4914
4915 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
4916 * config/i386/tm-i386nw.h: Removed.
4917
4918 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
4919 USE_STRUCT_CONVENTION): Remove defines.
4920 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
4921 (get_longjmp_target): Remove prototype.
4922 (IN_SIGTRAMP): Remove define.
4923 (i386bsd_in_sigtramp): Remove prototype.
4924 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
4925 function. Update comment accordingly
4926 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
4927 (FRAME_SAVED_PC): Remove define.
4928 (i386bsd_frame_saved_pc): Remove prototype.
4929 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
4930 GET_LONGJMP_TARGET): Remove defines.
4931 (get_longjmp_target): Remove prototype.
4932 (IN_SIGTRAMP): Remove define.
4933 (i386bsd_in_sigtramp): Remove prototype.
4934 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
4935 function. Update comment accordingly
4936 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
4937 (FRAME_SAVED_PC): Remove define.
4938 (i386bsd_frame_saved_pc): Remove prototype.
4939 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
4940 Remove prototype.
4941 (USE_STRUCT_CONVENTION): Remove prototype.
4942 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
4943 declaration.
4944 (_initialize_i386bsd_nat): Revise logic to determine some
4945 constants at compile time when compiling a native GDB. Warn if
4946 things don't match up with what we expect.
4947 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
4948 Remove variables.
4949 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
4950 to use date stored in `struct gdbarch_tdep'.
4951 (i386bsd_sigcontext_offset): Remove varaible.
4952 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
4953 stored in `struct gdbarch_tdep'.
4954 (i386bsd_frame_saved_pc): Make static.
4955 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
4956 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
4957 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
4958 i386fbsd4_sc_pc_offset): New variables.
4959 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
4960 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
4961 functions.
4962 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
4963 functions.
4964 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
4965 Modify the value of i386fbsd_sigtramp_start and
4966 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
4967 i386fbsd_sigtramp_end.
4968 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
4969 function.
4970
4971 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
4972 define to i386-linux-tdep.h.
4973 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
4974 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
4975 defines.
4976 (i386_linux_register_name, i386_linux_register_byte,
4977 i386_linux_register_raw_size): Remove prototypes.
4978 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
4979 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
4980 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
4981 TARGET_WRITE_PC): Remove defines.
4982 (i386_linux_in_sigtramp, i386_linux_frame_chain,
4983 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
4984 i386_linux_write_pc): Remove prototypes.
4985 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
4986 (get_longjmp_target): Remove prototype.
4987 * i386-linux-tdep.h: New file.
4988 * i386-linux-nat.c: Include "i386-linux-tdep.h".
4989 * i386-linux-tdep.c: Include "i386-tdep.h" and
4990 "i386-linux-tdep.h".
4991 (i386_linux_register_name, i386_linux_register_byte,
4992 i386_linux_register_raw_size, i386_linux_in_sigtramp,
4993 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
4994 Make static.
4995 (i386_linux_init_abi): New function.
4996 (_initialize_i386_linux_tdep): New function.
4997
4998 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
4999 (i386_saved_pc_after_call): Remove prototype.
5000 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
5001 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
5002 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
5003 (i386_register_name, i386_stab_reg_to_regnum,
5004 i386_dwarf_reg_to_regnum): Remove prototypes.
5005 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
5006 SIZEOF_SSE_REGS): Remove defines.
5007 (REGISTER_BYTES): Remove define.
5008 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
5009 (i386_register_byte, i386_register_raw_size): Remove prototypes.
5010 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
5011 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
5012 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
5013 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
5014 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
5015 (get_longjmp_target): Remove prototype.
5016 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
5017 (sigtramp_saved_pc): Remove define.
5018 (i386v4_sigtramp_saved_pc): Remove prototype.
5019 * config/i386/tm-go32.h (FRAME_CHAIN,
5020 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
5021 (i386go32_frame_saved_pc): Remove prototype.
5022 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5023 (get_longjmp_target): Remove prototype.
5024 * i386-tdep.h: Include "osabi.h".
5025 (enum i386_abi): Removed.
5026 (enum struct_return): New enum.
5027 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
5028 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
5029 sc_pc_offset members.
5030 (i386_gdbarch_register_os_abi): Remove prototype.
5031 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
5032 I386_SSE_NUM_REGS): New defines.
5033 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
5034 I386_SSE_SIZEOF_REGS): New defines.
5035 (i386_register_name, i386_register_byte, i386_register_raw_size):
5036 New prototypes.
5037 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
5038 (i386bsd_sigtramp_saved_pc): New prototype.
5039 * i386-tdep.c: Don't include "elf-bfd.h".
5040 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
5041 i386_frame_chain, i386_saved_pc_after_call): Make static.
5042 (i386_frame_saved_pc): Rewrite to call architecture dependent
5043 function to deal with signal handlers. Make static.
5044 (i386go32_frame_saved_pc): Removed.
5045 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
5046 Removed.
5047 (i386_get_longjmp_target): New function.
5048 (default_struct_convention, pcc_struct_convention,
5049 reg_struct_convention, valid_conventions, struct_convention): New
5050 variables.
5051 (i386_use_struct_convention): New function.
5052 (i386v4_sigtramp_saved_pc): Renamed to
5053 i386_svr4_sigtramp_saved_pc. Made static. Moved.
5054 (i386_pc_in_sigtramp): New function.
5055 (i386_abi_names): Removed.
5056 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
5057 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
5058 Removed.
5059 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
5060 i386_gdbarch_register_os_abi): Removed.
5061 (struct i386_abi_handler): Removed.
5062 (i386_abi_handler_list): Removed.
5063 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
5064 functions.
5065 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
5066 i386_nw_init_abi): New functions.
5067 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
5068 Use set_gdbarch_xxx() calls instead of relying on macros for a
5069 number of calls.
5070 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
5071 (_initialize_i386_tdep): Add new 'struct-convcention' command.
5072 Register the various architecture variants defined in this file.
5073
5074 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
5075
5076 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
5077 (struct main_type): Remove arg_types member. Update comments for
5078 struct field.
5079 (TYPE_ARG_TYPES): Remove.
5080 (TYPE_FN_FIELD_ARGS): Update.
5081 (smash_to_method_type): Update prototype.
5082
5083 * c-typeprint.c (cp_type_print_method_args): Take method type
5084 instead of argument list. Use new argument layout. Simplify.
5085 (c_type_print_args): Use new argument layout. Simplify.
5086 (c_type_print_base): Update call to cp_type_print_method_args.
5087 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
5088 argument; use die->type instead. Update call to
5089 smash_to_method_type.
5090 (read_structure_scope): Update call to dwarf2_add_member_fn.
5091 * gdbtypes.c (allocate_stub_method): Update comment.
5092 (smash_to_method_type): Take new NARGS and VARARGS arguments.
5093 Use new argument layout.
5094 (check_stub_method): Use new argument layout. Don't count
5095 void as an argument.
5096 (print_arg_types): Update comments. Use new argument layout.
5097 (recursive_dump_type): Don't print arg_types member.
5098 * hpread.c (hpread_read_struct_type): Use new argument layout.
5099 (fixup_class_method_type): Likewise.
5100 (hpread_type_lookup): Likewise.
5101 * stabsread.c (read_type): Update calls to read_args and
5102 smash_to_method_type.
5103 (read_args): Use new argument layout. Simplify.
5104 * valops.c (typecmp): Use new argument layout. Update parameters
5105 and comments. Simplify.
5106 (hand_function_call): Use new argument layout.
5107 (search_struct_method): Update call to typecmp.
5108 (find_overload_match): Use new argument layout.
5109
5110 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
5111
5112 * NEWS: Mention multithreaded debug support for gdbserver.
5113
5114 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
5115
5116 * MAINTAINERS: Mention NEWS.
5117
5118 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
5119
5120 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
5121 (struct mips_objfile_private, compare_pdr_entries): New.
5122 (non_heuristic_proc_desc): Read the ".pdr" section if it
5123 is present.
5124
5125 2002-06-12 Andrew Cagney <ac131313@redhat.com>
5126
5127 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
5128 (arm_debug): New static variable.
5129 (_initialize_arm_tdep): Add ``set debug arm'' command.
5130
5131 2002-06-12 Andrew Cagney <ac131313@redhat.com>
5132
5133 * Makefile.in (sim_arm_h): Define.
5134 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
5135 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
5136 (arm_register_sim_regno): New function, map an internal REGNUM
5137 onto a simulator register number.
5138 (arm_gdbarch_init): Set register_sim_regno.
5139
5140 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
5141
5142 * MAINTAINERS: Add self.
5143
5144 2002-06-11 Jim Blandy <jimb@redhat.com>
5145
5146 * source.c (source_info): Mention whether the symtab has
5147 information about preprocessor macros.
5148
5149 Call the command `info macro', not `show macro'.
5150 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
5151 Fix error message.
5152 (_initialize_macrocmd): Register `info_macro_command' in
5153 `infolist', not `showlist'.
5154
5155 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
5156
5157 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
5158 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
5159 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
5160 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
5161 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
5162 unconditionally.
5163 (set_mipsfpu_single_command, set_mipsfpu_double_command)
5164 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
5165 (_initialize_mips_tdep): Remove dead code.
5166 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
5167 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
5168 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
5169 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
5170 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
5171 MIPS_LAST_FP_ARG_REGNUM): Remove.
5172
5173 2002-06-11 Michal Ludvig <mludvig@suse.cz>
5174
5175 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
5176 (unwind_tmp_obstack_free, parse_frame_info)
5177 (update_context, cfi_read_fp, cfi_write_fp)
5178 (cfi_frame_chain, cfi_init_extra_frame_info)
5179 (cfi_virtual_frame_pointer): Use the above function.
5180 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
5181
5182 2002-06-11 Corinna Vinschen <vinschen@redhat.com>
5183
5184 * v850-tdep.c (v850_type_is_scalar): New function.
5185 (v850_use_struct_convention): Match current gcc implementation
5186 as close as possible.
5187 (v850_push_arguments): Fix stack_offset handling. Don't write
5188 struct_addr into register. This is done by v850_store_struct_return.
5189 (v850_extract_return_value): Care for structs.
5190 (v850_store_return_value): Ditto.
5191 (v850_store_struct_return): Actually write address.
5192
5193 2002-06-11 Michal Ludvig <mludvig@suse.cz>
5194
5195 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
5196 without debug information too.
5197
5198 2002-06-10 Andrew Cagney <ac131313@redhat.com>
5199
5200 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
5201 Make multi-arch pure.
5202 * gdbarch.h, gdbarch.c: Re-generate.
5203 * arm-tdep.c (arm_print_float_info): Update.
5204 * arch-utils.h (default_print_float_info): Update.
5205 * arch-utils.c (default_print_float_info): Update.
5206 * infcmd.c (float_info): Update call.
5207
5208 2002-06-10 Andrew Cagney <ac131313@redhat.com>
5209
5210 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
5211 the front of the initialize list.
5212
5213 2002-06-10 Andrew Cagney <ac131313@redhat.com>
5214
5215 * infrun.c (struct inferior_status): Replace fields
5216 selected_frame_address and selected_level with field
5217 selected_frame_id.
5218 (save_inferior_status): Update. Use get_frame_id.
5219 (struct restore_selected_frame_args): Delete.
5220 (restore_selected_frame): Update. Use frame_find_by_id.
5221 (restore_inferior_status): Update.
5222
5223 * breakpoint.h (struct breakpoint): Change type of
5224 watchpoint_frame to frame_id.
5225 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
5226 call to get_current_frame.
5227 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
5228 get_current_frame.
5229 (watchpoint_check): Use frame_find_by_id.
5230
5231 * frame.h (record_selected_frame): Delete declaration.
5232 * stack.c (record_selected_frame): Delete function.
5233
5234 * frame.h (struct frame_id): Define.
5235 (get_frame_id): Declare.
5236 (frame_find_by_id): Declare.
5237 * frame.c (frame_find_by_id): New function.
5238 (get_frame_id): New function.
5239
5240 2002-06-10 Andrey Volkov <avolkov@transas.com>
5241
5242 * ser-e7kpc.c: Fix duplicated define and call of
5243 _initialize_ser_e7000pc
5244
5245 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
5246
5247 * signals/signals.c (target_signal_from_host): Fix #ifdef
5248 SIGRTMIN case.
5249 (do_target_signal_to_host): Likewise.
5250
5251 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
5252
5253 * mips-tdep.c (mips_find_abi_section): New function.
5254 (mips_gdbarch_init): Call it.
5255
5256 2002-06-09 Mark Kettenis <kettenis@gnu.org>
5257
5258 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
5259 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
5260 after Andrew's 2002-06-08 gdbarch change.
5261
5262 2002-06-09 Mark Kettenis <kettenis@gnu.org>
5263
5264 * i386-linux-nat.c (suppy_gregset): Don't supply
5265 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
5266 register cache.
5267 (fill_gregset): Don't fetch it under the same circumstances.
5268
5269 2002-06-09 Andrew Cagney <cagney@redhat.com>
5270
5271 * Makefile.in (callback_h): Define.
5272 (remote_sim_h): Update path to remote-sim.h.
5273 (remote-rdp.o): Add $(callback_h).
5274 (remote-sim.o): Use $(callback_h).
5275 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
5276 * remote-rdp.c: Include "gdb/callback.h".
5277
5278 2002-06-09 Mark Kettenis <kettenis@gnu.org>
5279
5280 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
5281 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
5282
5283 2002-06-08 Andrew Cagney <ac131313@redhat.com>
5284
5285 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
5286 * rdi-share/serpardr.c: Ditto.
5287 * rdi-share/unixcomm.c: Ditto.
5288 * rdi-share/serdrv.c: Ditto.
5289 * rdi-share/hostchan.h: Ditto.
5290 * rdi-share/hostchan.c: Ditto.
5291 * rdi-share/host.h: Ditto.
5292 * rdi-share/devsw.c: Ditto.
5293
5294 * objfiles.h: Change type of obj_private to void pointer.
5295 * pa64solib.c: Update copyright. Don't include "assert.h", use
5296 strcmp instead of STREQ, use LONGEST, do not use PTR
5297 * somsolib.c: Ditto.
5298
5299 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
5300 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
5301 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
5302
5303 2002-06-08 Andrew Cagney <ac131313@redhat.com>
5304
5305 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
5306 (default_get_saved_register): Delete function.
5307 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
5308 generic_unwind_get_saved_register.
5309 * gdbarch.h, gdbarch.c: Re-generate.
5310
5311 2002-06-08 Andrew Cagney <ac131313@redhat.com>
5312
5313 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
5314 generic_func_frame_chain_valid.
5315 * gdbarch.h, gdbarch.c: Re-generate.
5316 * blockframe.c (generic_func_frame_chain_valid): Only check
5317 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
5318 passing FP to PC_IN_CALL_DUMMY.
5319 Fix PR gdb/360.
5320
5321 2002-06-08 Andrew Cagney <ac131313@redhat.com>
5322
5323 * gdbarch.sh (struct gdbarch_data): Add field init_p.
5324 (register_gdbarch_data): Initialize init_p.
5325 (gdbarch_data): Initialize data pointer using the init function.
5326 (init_gdbarch_data): Delete function.
5327 (gdbarch_update_p): Update.
5328 (initialize_non_multiarch): Update.
5329 (struct gdbarch): Add field initialized_p.
5330 * gdbarch.h, gdbarch.c: Re-generate.
5331
5332 2002-06-07 Michal Ludvig <mludvig@suse.cz>
5333
5334 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
5335 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
5336 better do the things actually here.
5337 * x86-64-tdep.c (x86_64_register_name2nr): New.
5338 (x86_64_register_name): Renamed to x86_64_register_nr2name.
5339 (x86_64_gdbarch_init): Respect the above change.
5340 * x86-64-tdep.h (x86_64_register_name2nr)
5341 (x86_64_register_nr2name): Add prototypes.
5342 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
5343
5344 2002-06-06 Michael Snyder <msnyder@redhat.com>
5345
5346 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
5347 Delete extra braces and re-indent.
5348 (d10v_store_return_value): Char return values
5349 must be shifted over by one byte in R0.
5350 (d10v_extract_return_value): Delete extra braces, re-indent.
5351
5352 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
5353
5354 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
5355 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
5356 (d10v_integer_to_address): Rewrite.
5357 (d10v_frame_init_saved_regs): When reading fp and sp registers use
5358 the d10v specific functions which take care of converting to the
5359 correct space.
5360
5361 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
5362
5363 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
5364 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
5365
5366 2002-06-02 Andrew Cagney <ac131313@redhat.com>
5367
5368 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
5369 includes.
5370 * config/tm-linux.h: Ditto.
5371 * config/alpha/tm-alphalinux.h: Ditto.
5372 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
5373 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
5374 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
5375 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
5376 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
5377 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
5378 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
5379 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
5380 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
5381 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
5382 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
5383 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
5384 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
5385 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
5386 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
5387 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
5388 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
5389 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
5390 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
5391 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
5392 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
5393 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
5394 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
5395 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
5396 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
5397 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
5398 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
5399 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
5400 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
5401 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
5402 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
5403 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
5404 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
5405 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
5406 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
5407 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
5408 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
5409
5410 2002-05-04 Aidan Skinner <aidan@velvet.net>
5411
5412 * ada-exp.tab.c: New file
5413 * ada-exp.y: New file
5414 * ada-lang.c: New file
5415 * ada-lang.h: New file
5416 * ada-lex.c: New file
5417 * ada-lex.l: New file
5418 * ada-tasks.c: New file
5419 * ada-typeprint.c: New file
5420 * ada-valprint.c: New file
5421
5422 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
5423
5424 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
5425 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
5426
5427 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
5428
5429 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
5430 insetead of ppc-linux-tdep.o.
5431 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
5432 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
5433
5434 2002-06-02 Andrew Cagney <ac131313@redhat.com>
5435
5436 2002-05-07 Christian Groessler <chris@groessler.org>
5437 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
5438 bit register contents for little endian hosts.
5439
5440 2002-06-01 Andrew Cagney <ac131313@redhat.com>
5441
5442 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
5443 any maintainer.
5444
5445 2002-06-01 Andrew Cagney <ac131313@redhat.com>
5446
5447 * gdbarch.h: Regenerate.
5448
5449 2002-06-01 Andrew Cagney <ac131313@redhat.com>
5450
5451 * MAINTAINERS: Add everyone to write-after-approval list.
5452
5453 2002-06-01 Andrew Cagney <ac131313@redhat.com>
5454
5455 * stack.c (frame_info): Use frame_register_unwind instead of
5456 saved_regs. Mention when the SP is on the stack or in a register.
5457
5458 * frame.h (frame_register_unwind_ftype): Define. Document.
5459 (struct frame_info): Add field register_unwind and
5460 register_unwind_cache.
5461 (frame_register_unwind): Declare.
5462 (generic_unwind_get_saved_register): Declare.
5463
5464 * frame.c (frame_register_unwind): New function.
5465 (generic_unwind_get_saved_register): New function.
5466
5467 * blockframe.c (generic_call_dummy_register_unwind): New function.
5468 (frame_saved_regs_register_unwind): New function.
5469 (set_unwind_by_pc): New function.
5470 (create_new_frame): New function.
5471 (get_prev_frame): New function.
5472
5473 2002-05-30 Andrew Cagney <ac131313@redhat.com>
5474
5475 * a29k-share/: Delete directory.
5476 * remote-vx29k.c: Delete file.
5477
5478 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5479
5480 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
5481 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
5482
5483 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5484
5485 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
5486 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
5487 (sparc64nbsd-nat.o)
5488 (sparcnbsd-nat.o)
5489 (sparcnbsd-tdep.o): New dependency lists.
5490 * NEWS: Note new UltraSPARC NetBSD native configuration.
5491 * configure.host (sparc64-*-netbsd*): New host.
5492 * configure.tgt (sparc-*-netbsdelf*)
5493 (sparc-*-netbsd*): Set gdb_target to nbsd.
5494 (sparc64-*-netbsd*): New target.
5495 * sparc64nbsd-nat.c: New file.
5496 * sparcnbsd-nat.c: New file.
5497 * sparcnbsd-tdep.c: New file.
5498 * sparcnbsd-tdep.h: New file.
5499 * config/sparc/nbsd.mt: New file.
5500 * config/sparc/nbsd64.mh: New file.
5501 * config/sparc/nbsd64.mt: New file.
5502 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
5503 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
5504 (HOST_IPC): Remove.
5505 * config/sparc/nbsdaout.mt: Remove.
5506 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
5507 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
5508 (HOST_IPC): Remove.
5509 * config/sparc/nbsdelf.mt: Remove.
5510 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
5511 sparc-nat.c compatiblity defines.
5512 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
5513 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
5514 * config/sparc/tm-nbsd64.h: New file.
5515 * config/sparc/tm-nbsdaout.h: Remove.
5516 * config/sparc/xm-nbsd.h: Remove.
5517
5518 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5519
5520 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
5521 * sparc-tdep.c: Include osabi.h.
5522 (gdbarch_tdep): Add osabi member.
5523 (_initialize_sparc_tdep): Use gdbarch_register.
5524 (sparc_gdbarch_init): Use generic OS ABI framework.
5525 (sparc_dump_tdep): New function.
5526
5527 2002-05-30 Kevin Buettner <kevinb@redhat.com>
5528
5529 * corefile.c (do_captured_read_memory_integer): Return non-zero
5530 result.
5531 (safe_read_memory_integer): Copy result of memory read when
5532 status is non-zero. Also, add comments.
5533
5534 2002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
5535
5536 * Makefile.in (ppc_tdep_h): Define.
5537 (ppc-linux-nat.o)
5538 (ppc-linux-tdep.o)
5539 (rs6000-tdep.o): Use $(ppc_tdep_h).
5540 (ppc-sysv-tdep.o)
5541 (ppcnbsd-nat.o)
5542 (ppcnbsd-tdep.o): New dependency lists.
5543 * ppc-tdep.h: Use generic OS ABI framework.
5544 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
5545 (ppc_linux_init_abi): New functions.
5546 (ppc_sysv_abi_broken_use_struct_convention)
5547 (ppc_sysv_abi_use_struct_convention)
5548 (ppc_sysv_abi_push_arguments): Move to...
5549 * ppc-sysv-tdep.c: ...here.
5550 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
5551 * rs6000-tdep.c (process_note_abi_tag_sections)
5552 (get_elfosabi): Remove.
5553 (rs6000_gdbarch_init): Use generic OS ABI framework.
5554 (rs6000_dump_tdep): New function.
5555 (_initialize_rs6000_tdep): Use gdbarch_register.
5556 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
5557 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
5558 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
5559 of ppc-linux-tdep.o.
5560 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
5561 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
5562 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
5563 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
5564 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
5565 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
5566
5567 2002-05-29 Jim Blandy <jimb@redhat.com>
5568
5569 * macroscope.c (default_macro_scope): Put `void' in empty argument
5570 list.
5571
5572 2002-05-29 Andrew Cagney <ac131313@redhat.com>
5573
5574 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
5575 * arch-utils.c: Include "sim-regno.h".
5576 * gdbarch.sh: Don't include "sim-regno.h".
5577 * gdbarch.h, gdbarch.c: Regenerate.
5578 * sim-regno.h (legacy_register_sim_regno): Move declaration from
5579 here.
5580 * arch-utils.h (legacy_register_sim_regno): To here.
5581 * remote-sim.c (legacy_register_sim_regno): Move function from
5582 here.
5583 * arch-utils.c (legacy_register_sim_regno): To here.
5584
5585 2002-05-28 Andrew Cagney <ac131313@redhat.com>
5586
5587 * sim-regno.h: New file.
5588 * Makefile.in (sim_regno_h): Define.
5589 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
5590 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
5591 (legacy_register_sim_regno): New function.
5592 (one2one_register_sim_regno): New function.
5593 (gdbsim_fetch_register): Rewrite.
5594 (gdbsim_store_register): Only store a register when
5595 REGISTER_SIM_REGNO is valid.
5596 * d10v-tdep.c: Include "sim-regno.h".
5597 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
5598 (d10v_ts3_register_sim_regno): Ditto.
5599 * gdbarch.sh: Include "sim-regno.h".
5600 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
5601 * gdbarch.h, gdbarch.c: Regenerate.
5602 * arch-utils.h (default_register_sim_regno): Delete declaration.
5603 * arch-utils.c (default_register_sim_regno): Delete function.
5604
5605 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
5606
5607 * ppcnbsd-nat.c: Rewrite.
5608 * ppcnbsd-tdep.c: New file.
5609 * ppcnbsd-tdep.h: New file.
5610 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
5611 solib.o, and solib-svr4.o.
5612 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
5613 nbsd-tdep.o, and corelow.o.
5614
5615 2002-05-28 Andrew Cagney <ac131313@redhat.com>
5616
5617 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
5618 `tr' and `sed'. Mention that `broken' targets are not expected to
5619 build.
5620
5621 2002-05-27 Michal Ludvig <mludvig@suse.cz>
5622
5623 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
5624 Let PC point right after the prologue before looking up symbols.
5625
5626 2002-05-27 Martin M. Hunt <hunt@redhat.com>
5627
5628 * i386-tdep.c (i386_register_virtual_type): Return
5629 builtin_type_vec128i for SSE registers.
5630
5631 * gdbtypes.h (builtin_type_vec128i): Declare.
5632
5633 * gdbtypes.c (build_builtin_type_vec128i): New function.
5634 (builtin_type_v2_double, builtin_type_v4_int64): New types.
5635 (builtin_type_vec128i): New type for SSE2 128-bit registers.
5636 (build_gdbtypes): Initialize new builtin vector types.
5637 (_initialize_gdbtypes): Register new vector types with gdbarch.
5638
5639 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5640
5641 * MAINTAINERS: ns32k is not longer an obsolete candidate,
5642 since it has been multi-arch'd.
5643 * NEWS: Note that ns32k-*-* is now partial multi-arch.
5644 Move Alpha and VAX multi-arch news entries to same section
5645 as other multi-arch news.
5646
5647 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5648
5649 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
5650 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
5651 static. Rename some register numbers to put them in ns32k-tdep
5652 private namespace.
5653 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
5654 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
5655 functions.
5656 (_initialize_ns32k_tdep): Use gdbarch_register.
5657 * ns32k-tdep.h: New file.
5658 * ns32knbsd-tdep.c: New file.
5659 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
5660 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
5661 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
5662 REGISTER_BYTES, REGISTER_BYTE): Remove.
5663 * config/ns32k/tm-ns32k.h: New file.
5664 * config/ns32k/tm-umax.h: Remove.
5665
5666 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5667
5668 * ns32k-tdep.c (ns32k_saved_pc_after_call,
5669 ns32k_store_struct_return, ns32k_extract_return_value,
5670 ns32k_store_return_value, ns32k_extract_struct_value_address): New
5671 functions.
5672 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
5673 ns32k_saved_pc_after_call.
5674 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
5675 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
5676 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
5677 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
5678 ns32k_extract_struct_value_address.
5679
5680 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5681
5682 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
5683 ns32k_fix_call_dummy): New.
5684 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
5685 ns32k_call_dummy_words.
5686 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
5687 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
5688 CALL_DUMMY_NARGS): Remove.
5689 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
5690
5691 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5692
5693 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
5694 ns32k_frame_saved_pc, ns32k_frame_args_address,
5695 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
5696 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
5697 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
5698 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
5699 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
5700 (BREAKPOINT): Remove..
5701 (FRAME_CHAIN): Define as ns32k_frame_chain.
5702 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
5703 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
5704 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
5705 (FRAME_FIND_SAVED_REGS): Remove.
5706 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
5707 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
5708 (POP_FRAME): Define as ns32k_pop_frame.
5709
5710 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5711
5712 * ns32k-tdep.c (ns32k_register_byte_32082,
5713 ns32k_register_byte_32382, ns32k_register_raw_size,
5714 ns32k_register_virtual_size, ns32k_register_virtual_type): New
5715 functions.
5716 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
5717 ns32k_register_byte_32382.
5718 * config/ns32k/tm-umax.h: Update copyright years.
5719 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
5720 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
5721 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
5722 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
5723 (ns32k_get_enter_addr): Fix prototype.
5724
5725 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5726
5727 * ns32k-tdep.c: Update copyright years.
5728 (ns32k_register_name_32082): New function.
5729 (ns32k_register_name_32382): Ditto.
5730 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
5731 (REGISTER_NAME): Define as ns32k_register_name_32382.
5732 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
5733 (REGISTER_NAME): Define as ns32k_register_name_32082.
5734
5735 2002-05-24 Jim Blandy <jimb@redhat.com>
5736
5737 * dwarf2read.c (free_line_header): Use xfree, not free.
5738
5739 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
5740
5741 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
5742 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
5743
5744 2002-05-23 Andrew Cagney <ac131313@redhat.com>
5745
5746 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
5747
5748 2002-05-23 Andrew Cagney <ac131313@redhat.com>
5749
5750 From Ross Alexander at NEC Europe:
5751 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
5752
5753 2002-05-23 Michael Snyder <msnyder@redhat.com>
5754
5755 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
5756 for input, rather than parse_and_eval_address.
5757
5758 2002-05-23 Andrew Cagney <ac131313@redhat.com>
5759
5760 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
5761 * Makefile.in (sim_d10v_h): Update definition.
5762
5763 2002-05-24 Andrew Cagney <cagney@redhat.com>
5764
5765 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
5766 change `2002-05-22 Michael Snyder' below.
5767 (d10v_push_arguments): Ditto.
5768 (d10v_extract_return_value): Ditto.
5769
5770 2002-05-23 Jim Blandy <jimb@redhat.com>
5771
5772 * macrotab.c (check_for_redefinition): Don't complain if the new
5773 definition is the same as the previous one. Take more arguments
5774 to allow the comparison.
5775 (macro_define_object, macro_define_function): Pass more arguments
5776 to check_for_redefinition.
5777
5778 2002-05-22 Michael Snyder <msnyder@redhat.com>
5779
5780 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
5781 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
5782 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
5783 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
5784 Don't bail if return_pc is PC_IN_CALL_DUMMY.
5785 Add a temp variable to save a call (and a memory read).
5786 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
5787 if possible (so that PC_IN_CALL_DUMMY will work).
5788
5789 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
5790
5791 * MAINTAINERS: Remove status `OBSOLETE' from v850.
5792
5793 2002-05-22 Michal Ludvig <mludvig@suse.cz>
5794
5795 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
5796 fde->cie_ptr.
5797 (dwarf2_build_frame_info): Corrected handling of eh_frame.
5798 (dwarf2_build_frame_info): Add offset to fde->initial_location
5799 so that frames of shared libraries are mapped correctly.
5800 (execute_stack_op): Change type of 'result' from ULONGEST to
5801 CORE_ADDR.
5802
5803 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5804
5805 * config/alpha/tm-nbsd.h: Include solib.h.
5806
5807 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5808
5809 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
5810 assumptions about the host's byte order.
5811
5812 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5813
5814 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
5815 to dependency list.
5816 * alphanbsd-tdep.c: Include solib-svr4.h.
5817 * shnbsd-tdep.c: Ditto.
5818
5819 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5820
5821 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
5822 nbsd-tdep.h to dependency list.
5823 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
5824 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
5825 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
5826 nbsdaout.mh and nbsdelf.mh consistently.
5827 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
5828 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
5829 nbsdaout.mt and nbsdelf.mh consistently.
5830 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
5831 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
5832 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
5833 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
5834 a.out shared library stuff from here...
5835 * config/nm-nbsdaout.h: ...to here.
5836 * config/tm-nbsd.h: Remove.
5837 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
5838 * config/arm/nbsd.mh: Remove.
5839 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
5840 nbsd-tdep.o.
5841 * config/arm/nbsdaout.mh: New file.
5842 * config/arm/nbsdelf.mh: New file.
5843 * config/arm/nm-nbsdaout.h: New file.
5844 * config/i386/nbsd.mh: Remove.
5845 * config/i386/nbsd.mt: Remove.
5846 * config/i386/nbsdaout.mh: New file.
5847 * config/i386/nbsdaout.mt: New file.
5848 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
5849 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
5850 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
5851 i386_register_u_addr): Remove.
5852 * config/i386/nm-nbsdaout.h: New file.
5853 * config/i386/nm-nbsdelf.h: Remove.
5854 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
5855 (USE_STRUCT_CONVENTION): Remove.
5856 * config/i386/tm-nbsdaout.h: New file.
5857 * config/i386/tm-nbsdelf.h: Remove.
5858 * config/m68k/nbsd.mh: Remove.
5859 * config/m68k/nbsd.mt: Remove.
5860 * config/m68k/nbsdaout.mh: New file.
5861 * config/m68k/nbsdaout.mt: New file.
5862 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
5863 * config/m68k/nm-nbsdaout.h: New file.
5864 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
5865 (IN_SOLIB_CALL_TRAMPOLINE): Define.
5866 * config/ns32k/nbsd.mh: Remove.
5867 * config/ns32k/nbsd.mt: Remove.
5868 * config/ns32k/nbsdaout.mh: New file.
5869 * config/ns32k/nbsdaout.mt: New file.
5870 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
5871 * config/ns32k/nm-nbsdaout.h: New file.
5872 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
5873 (IN_SOLIB_CALL_TRAMPOLINE): Define.
5874 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
5875 (SVR4_SHARED_LIBS): Remove.
5876 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
5877 * config/sparc/nbsd.mh: Remove.
5878 * config/sparc/nbsd.mt: Remove.
5879 * config/sparc/nbsdaout.mh: New file.
5880 * config/sparc/nbsdaout.mt: New file.
5881 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
5882 * config/sparc/nbsdelf.mt: New file.
5883 * config/sparc/nm-nbsdaout.h: New file.
5884 * config/sparc/nm-nbsdelf.h: Remove.
5885 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
5886 * config/sparc/tm-nbsdaout.h: New file.
5887
5888 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5889
5890 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
5891 mipsnbsd-tdep.c
5892 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
5893
5894 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5895
5896 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
5897 shnbsd-nat.c.
5898 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
5899
5900 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5901
5902 * NEWS: Note new MIPS NetBSD native configuration.
5903 * configure.host (mips*-*-netbsd*): New host.
5904 * configure.tgt (mips*-*-netbsd*): New target.
5905 * mipsnbsd-nat.c: New file.
5906 * mipsnbsd-tdep.c: New file.
5907 * mipsnbsd-tdep.h: New file.
5908 * config/mips/nbsd.mh: New file.
5909 * config/mips/nbsd.mt: New file.
5910 * config/mips/nm-nbsd.h: New file.
5911 * config/mips/tm-nbsd.h: New file.
5912
5913 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5914
5915 * Makefile.in (SFILES): Add osabi.c.
5916 (COMMON_OBS): Add osabi.o.
5917 (osabi.o): New dependency list.
5918 * osabi.c: New file.
5919 * osabi.h: New file.
5920 * doc/gdbint.texinfo: Document new generic OS ABI framework.
5921
5922 * Makefile.in (alpha_tdep_h): Define and use instead of
5923 alpha-tdep.h.
5924 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
5925 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
5926 Remove.
5927 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
5928 * alpha-tdep.h: Include osabi.h.
5929 (alpha_abi): Remove.
5930 (gdbarch_tdep): Use generic OS ABI framework.
5931 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
5932 gdbarch_register_osabi.
5933 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
5934 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
5935 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
5936
5937 * Makefile.in (sh_tdep_h): Add osabi.h.
5938 * sh-tdep.h (sh_osabi): Remove.
5939 (gdbarch_tdep): Use generic OS ABI framework.
5940 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
5941 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
5942 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
5943 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
5944
5945 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
5946 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
5947 gdbarch_register_osabi.
5948 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
5949 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
5950 (get_elfosabi): Rename to...
5951 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
5952 ABI framework support routines.
5953 (arm_gdbarch_init): Use generic OS ABI framework.
5954 (arm_dump_tdep): Likewise.
5955 (_initialize_arm_tdep): Likewise.
5956 * arm-tdep.h: Include osabi.h.
5957 (arm_abi): Remove.
5958 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
5959 osabi member.
5960 (arm_gdbarch_register_os_abi): Remove prototype.
5961 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
5962 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
5963
5964 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
5965 * mips-tdep.c: Include osabi.h.
5966 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
5967 OS ABI framework.
5968
5969 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
5970
5971 * h8300-tdep.c: Fix formatting.
5972
5973 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
5974
5975 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
5976 printing vector registers.
5977
5978 2002-05-19 Andrew Cagney <ac131313@redhat.com>
5979
5980 From Fernando Nasser:
5981 * remote.c (remote_async_open_1): Re-throw the exception when the
5982 connection fails.
5983 (remote_cisco_open): Ditto.
5984 (remote_open_1): Ditto.
5985
5986 2002-05-19 Andrew Cagney <ac131313@redhat.com>
5987
5988 * remote.c (remote_start_remote_dummy): Add uiout parameter.
5989 (remote_start_remote): Add uiout parameter. Pass through to
5990 remote_start_remote_dummy.
5991 (remote_open_1): Use catch_exception instead of catch_errors.
5992 (remote_async_open_1): Ditto.
5993 (remote_cisco_open): Ditto.
5994
5995 2002-05-19 Andrew Cagney <ac131313@redhat.com>
5996
5997 * remote.c (remote_start_remote): Replace PTR with void pointer.
5998 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
5999 static.
6000
6001 2002-05-18 Andrew Cagney <ac131313@redhat.com>
6002
6003 * gdb_indent.sh: Allow the script to be run in the sim directory.
6004
6005 2002-05-18 Mark Kettenis <kettenis@gnu.org>
6006
6007 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
6008 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
6009
6010 * corelow.c (core_open): Only call set_gdbarch_from_file if
6011 exec_bfd is NULL.
6012
6013 2002-05-17 Andrey Volkov <avolkov@transas.com>
6014
6015 * h8300-tdep.c: Add support of EXR register
6016 * config/h8300/tm-h8300.h: Ditto.
6017
6018 2002-05-17 Andrey Volkov <avolkov@transas.com>
6019
6020 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
6021
6022 2002-05-17 Andrey Volkov <avolkov@transas.com>
6023
6024 * h8300-tdep.c: Change literal regnums to REGNO.
6025
6026 2002-05-17 Jim Blandy <jimb@redhat.com>
6027
6028 * NEWS: Note addition of macro support.
6029
6030 Expand preprocessor macros in C expressions.
6031 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
6032 (scan_macro_expansion, scanning_macro_expansion,
6033 finished_macro_expansion): New function declarations.
6034 (expression_macro_lookup_func, expression_macro_lookup_baton): New
6035 variable declarations.
6036 * parser-defs.h (expression_context_pc): New declaration.
6037 * parse.c (expression_context_pc): New variable.
6038 (parse_exp_1): Set expression_context_pc, as well as
6039 expression_context_block.
6040 * c-exp.y (yylex): If we're not already reading the result of a
6041 macro expansion, try to macro-expand the next token. When we're
6042 done scanning a macro expansion, switch back to the mainline text.
6043 Commas and `if's in a macro's expansion don't terminate the input.
6044 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
6045 (macro_original_text, macro_expanded_text,
6046 expression_macro_lookup_func, expression_macro_lookup_baton): New
6047 variables.
6048 (scan_macro_expansion, scanning_macro_expansion,
6049 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
6050 c_preprocess_and_parse): New functions.
6051 (c_language_defn, cplus_language_defn, asm_language_defn): Call
6052 c_preprocess_and_parse, instead of c_parse.
6053 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
6054 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
6055
6056 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
6057
6058 * sh-tdep.c (gdb_print_insn_sh64): Delete.
6059 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
6060 (sh_gdbarch_init): Always use gdb_print_insn_sh.
6061
6062 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
6063
6064 * NEWS: Add section for multi-arched targets. Add v850 to that section.
6065
6066 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
6067
6068 * Makefile.in (sh_tdep_h): Define and use.
6069 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
6070 register enum): Move to...
6071 * * sh-tdep.h: ...here.
6072 * sh-tdep.c: Include sh-tdep.h.
6073 * sh3-rom.c: Likewise.
6074 * shnbsd-tdep.c: Likewise.
6075
6076 2002-05-16 Michael Snyder <msnyder@redhat.com>
6077
6078 * arm-tdep.c: Spelling fix in comment.
6079
6080 2002-05-16 Jim Blandy <jimb@redhat.com>
6081
6082 Add commands for manually expanding macros and showing their
6083 definitions.
6084 * macrocmd.c, macroscope.c, macroscope.h: New files.
6085 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
6086 (macroscope_h): New variable.
6087 (HFILES_NO_SRCDIR): Add macroscope.h.
6088 (COMMON_OBS): Add macrocmd.o, macroscope.o.
6089 (macroscope.o, macrocmd.o): New rules.
6090
6091 Teach the Dwarf 2 reader to read macro information.
6092 * dwarf2read.c: #include "macrotab.h".
6093 (dwarf_macinfo_buffer): New variable.
6094 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
6095 dwarf_macinfo_size.
6096 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
6097 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
6098 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
6099 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
6100 dwarf2_macro_spaces_in_definition): New complaints.
6101 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
6102 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
6103 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
6104 the partial symbol table.
6105 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
6106 from what's recorded in the partial symbol table.
6107 (read_file_scope): If the compilation unit has a
6108 `DW_AT_macro_info' attribute, read its macro information.
6109 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
6110
6111 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
6112
6113 Fix PR gdb/546
6114 * ser-tcp.c: Don't include <netinet/udp.h>.
6115
6116 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
6117
6118 * MAINTAINERS: Update my email address.
6119
6120 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
6121
6122 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
6123 include file of the same name.
6124
6125 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
6126
6127 * configure.tgt: Mark v850 as multi-arched.
6128 * config/v850/tm-v850.h: Remove file.
6129 * config/v850/v850.mt: Eliminate TM_FILE.
6130
6131 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
6132
6133 * v850-tdep.c: Full multi-arch.
6134 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
6135 Define GDB_MULTI_ARCH to 2.
6136
6137 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
6138
6139 * p-exp.y (current_type): New static variable.
6140 Carries the type of the expression at the position that is parsed.
6141 (push_current_type, pop_current_type): Two new functions. Used
6142 to store/restore current_type in expression on specific tokens.
6143 (search_field): New static variable. Set to one after parsing a point
6144 as at that point only a FIELDNAME token should be searched.
6145 (FIELDNAME): New token. After a point only a token belonging to
6146 current_type type definition is allowed.
6147 (all over token rules): reset and change current_type according
6148 to rules.
6149 (exp '[' rule): insert implicit array index field if
6150 exp is a pascal string type.
6151
6152 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
6153
6154 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
6155 frame info. Use frame_info's saved_regs instead of matching member
6156 in extra_frame_info throughout.
6157 (v850_frame_init_saved_regs): New function.
6158 (v850_init_extra_frame_info): Move most functionality into
6159 v850_frame_init_saved_regs().
6160 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
6161 (v850_frame_find_saved_regs): Remove declaration.
6162 (FRAME_FIND_SAVED_REGS): Remove definition.
6163 (v850_frame_init_saved_regs): Add declaration.
6164 (FRAME_INIT_SAVED_REGS): Add definition.
6165
6166 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
6167
6168 * v850-tdep.c: Begin multi-arch'ing v850.
6169 (v850_target_architecture_hook): Remove function.
6170 (v850_gdbarch_init): New function. Add code previously in
6171 v850_target_architecture_hook().
6172 (_initialize_v850_tdep): Don't set target_architecture_hook.
6173 Call register_gdbarch_init() instead.
6174
6175 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
6176
6177 * gdbtypes.h (struct cplus_struct_type): Remove args field.
6178 * hpread.c (hpread_read_struct_type): Remove assignments to args.
6179 (fixup_class_method_type): Likewise.
6180
6181 2002-05-15 Jim Blandy <jimb@redhat.com>
6182
6183 Add macro structures to GDB's symbol tables. Nobody puts anything
6184 in them yet.
6185 * symtab.h (struct symtab): New member: `macro_table'.
6186 * buildsym.h (pending_macros): New global variable.
6187 * buildsym.c: #include "macrotab.h".
6188 (buildsym_init): Initialize `pending_macros'.
6189 (end_symtab): If we found macro information while reading a CU's
6190 debugging info, do build a symtab structure for it. Make the
6191 symtab point to the macro information, and clear the
6192 `pending_macros' pointer which held it while we were reading the
6193 debug info.
6194 (really_free_pendings): Free any pending macro table.
6195 * objfiles.h (struct objfile): New member: `macro_cache'.
6196 * objfiles.c (allocate_objfile): Set allocate and free functions
6197 for the macro cache's objstack.
6198 (free_objfile): Empty the macro cache's obstack.
6199 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
6200 set new allocate and free functions for it.
6201 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
6202 free functions for the macro cache's objstack. (Why is this
6203 function building its own objfile?)
6204 * symmisc.c (print_objfile_statistics): Print statistics on the
6205 macro bcache.
6206 * Makefile.in: Note that buildsym.o depends on macrotab.h.
6207
6208 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
6209
6210 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
6211 (REGISTER_U_ADDR): Delete definition.
6212 (arm_register_u_addr): Delete declaration.
6213
6214 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
6215
6216 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
6217 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
6218
6219 2002-05-14 Andrew Cagney <ac131313@redhat.com>
6220
6221 * regcache.c (register_valid): Revise comments refering to "Not
6222 available" and "unavailable".
6223 * frame.c (frame_register_read): Ditto.
6224 * findvar.c (value_of_register): Ditto.
6225
6226 2002-05-15 Andrew Cagney <cagney@redhat.com>
6227
6228 * Makefile.in (remote_sim_h): Replace remote-sim_h.
6229 (remote-sim.o): Update dependencies.
6230 (d10v-tdep.o): Specify dependencies.
6231 (sim_d10v_h): Define.
6232
6233 2002-05-14 Jim Blandy <jimb@redhat.com>
6234
6235 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
6236 * macrotab.c (macro_lookup_inclusion, find_definition,
6237 new_macro_table): Same.
6238
6239 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
6240 not `! strcmp ()'. This is a dubious improvement.
6241 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
6242
6243 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
6244 although it's not necessary, to avoid a warning.
6245
6246 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
6247
6248 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
6249 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
6250 TYPE_INSTANCE_FLAGS.
6251 (struct main_type): New.
6252 (struct type): Move most members to struct main_type. Change
6253 cv_type and as_type to new type_chain member. Add instance_flags.
6254 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
6255 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
6256 (finish_cv_type): Remove prototype.
6257 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
6258 Set TYPE_CHAIN.
6259 (alloc_type_instance): New function.
6260 (smash_type): New function.
6261 (make_pointer_type, make_reference_type, make_function_type)
6262 (smash_to_member_type, smash_to_method_type): Call smash_type.
6263 (make_qualified_type): New function.
6264 (make_type_with_address_space): Call make_qualified_type.
6265 (make_cv_type): Likewise.
6266 (finish_cv_type): Remove unnecessary function.
6267 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
6268 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
6269 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
6270 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
6271 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
6272 * hpread.c (hpread_read_struct_type): Likewise.
6273 * stabsread.c (read_struct_type): Likewise.
6274
6275 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
6276
6277 * configure.tgt: Add a catch all sh* target, for cases like
6278 sh[2,3,4]-elf and sh-hms.
6279
6280 2002-05-14 Keith Seitz <keiths@redhat.com>
6281
6282 * event-loop.c (create_file_handler): Don't do anything but
6283 update data when we are given a fd which we are already
6284 monitoring.
6285
6286 2002-05-14 Michal Ludvig <mludvig@suse.cz>
6287
6288 * dwarf2cfi.c (context_cpy): Copy registers correctly.
6289 (update_context): Use __func__ in warnings.
6290
6291 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
6292
6293 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
6294 and tcp_close to net_open and net_close.
6295 (net_open): Accept "udp:" and "tcp:" specifications. Connect
6296 using UDP if requested. Don't try to disable Nagle on UDP
6297 sockets.
6298 * remote.c (remote_serial_open): New function. Warn about UDP.
6299 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
6300
6301 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
6302
6303 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
6304
6305 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
6306
6307 * configure.tgt: Remove sh-hms target.
6308 * MAINTAINERS: Don't list sh-hms as a separate target.
6309
6310 2002-05-13 Jim Blandy <jimb@redhat.com>
6311
6312 Add first preprocessor macro-expansion files.
6313 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
6314 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
6315 (splay_tree_h, macroexp_h, macrotab_h): New variable.
6316 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
6317 (COMMON_OBS): Add macrotab.o, macroexp.o.
6318 (macroexp.o, macrotab.o): New rules.
6319
6320 2002-05-13 Andrew Cagney <ac131313@redhat.com>
6321
6322 * config/m88k/tm-m88k.h: Update copyright.
6323 (m88k_target_write_pc): Declare
6324 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
6325 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
6326 (SHIFT_INST_REGS): Update definition.
6327 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
6328 using old definition of TARGET_WRITE_PC.
6329 * regcache.c (generic_target_write_pc): Delete code handling
6330 NNPC_REGNUM.
6331 * gdbarch.sh (NNPC_REGNUM): Delete.
6332 * gdbarch.h, gdbarch.c: Regenerate.
6333
6334 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
6335
6336 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
6337 builtin reg number.
6338
6339 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
6340
6341 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
6342 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
6343 (gen_address_of, gen_struct_ref, gen_repeat): Use type
6344 access macros.
6345 * c-typeprint.c (cp_type_print_method_args): Likewise.
6346 (c_type_print_args): Likewise.
6347 * d10v-tdep.c (d10v_push_arguments): Likewise.
6348 (d10v_extract_return_value): Likewise.
6349 * expprint.c (print_subexp): Likewise.
6350 * gdbtypes.c (lookup_primitive_typename): Likewise.
6351 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
6352 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
6353 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
6354 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
6355 (TYPE_VECTOR): Likewise.
6356 * hpread.c (hpread_read_struct_type)
6357 (fix_static_member_physnames, fixup_class_method_type)
6358 (hpread_type_lookup): Likewise.
6359 * mdebugread.c (parse_symbol, parse_type): Likewise.
6360 * p-lang.c (is_pascal_string_type): Likewise.
6361 * valops.c (hand_function_call): Likewise.
6362 * x86-64-tdep.c (classify_argument): Likewise.
6363
6364 * hpread.c (hpread_read_function_type)
6365 (hpread_read_doc_function_type): Call replace_type.
6366 * dstread.c (create_new_type): Delete.
6367 (decode_dst_structure, process_dst_function): Call alloc_type.
6368 Use type access macros.
6369
6370 2002-05-12 Mark Kettenis <kettenis@gnu.org>
6371
6372 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
6373 the're not supported by the current architecture.
6374 (i387_fill_fxsave): Likewise.
6375
6376 2002-05-12 Fred Fish <fnf@redhat.com>
6377
6378 * symfile.c (default_symfile_offsets): Arrange for uninitialized
6379 sect_index_xxx members to index the first slot in section_offsets
6380 if all of the section_offsets are zero.
6381
6382 2002-05-12 Mark Kettenis <kettenis@gnu.org>
6383
6384 * configure.tgt (sparc-*openbsd): Remove entry accidentially
6385 checked in with last change.
6386
6387 2002-05-12 Mark Kettenis <kettenis@gnu.org>
6388
6389 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
6390 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
6391 config.sub.
6392
6393 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
6394
6395 * Makefile.in: Update dependencies.
6396
6397 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6398
6399 * language.c (local_hex_string_custom): Simplify. Do not depend
6400 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
6401
6402 * memattr.c (mem_info_command): Replace calls to
6403 longest_local_hex_string and longest_local_hex_string_custom.
6404 * buildsym.c (make_blockvector): Ditto.
6405 * solib.c (info_sharedlibrary_command): Ditto.
6406 * tracepoint.c (tracepoints_info): Ditto.
6407 * symtab.c (print_msymbol_info): Ditto.
6408
6409 * language.c (local_hex_string): Delete.
6410 (local_hex_string_custom): Delete.
6411 (longest_local_hex_string): Rename to local_hex_string.
6412 (longest_local_hex_string_custom): Rename to
6413 local_hex_string_custom.
6414 * language.h (local_hex_string): Change parameter type to LONGEST.
6415 (local_hex_string_custom): Ditto.
6416 (longest_local_hex_string): Delete declaration.
6417 (longest_local_hex_string_custom): Ditto.
6418
6419 * solib.c: Update copyright.
6420 * memattr.c: Update copyright.
6421
6422 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6423
6424 * arch-utils.h (legacy_register_to_value): Declare.
6425 (legacy_value_to_register): Declare.
6426 (legacy_convert_register_p): Declare.
6427 * arch-utils.c (legacy_register_to_value): New function.
6428 (legacy_value_to_register): New function.
6429 (legacy_convert_register_p): New function.
6430
6431 * gdbarch.sh (REGISTER_TO_VALUE): Define.
6432 (VALUE_TO_REGISTER): Define.
6433 (CONVERT_REGISTER_P): Define.
6434 * gdbarch.h, gdbarch.c: Regenerate.
6435
6436 * valops.c (value_assign): Use CONVERT_REGISTER_P and
6437 VALUE_TO_REGISTER.
6438 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
6439 CONVERT_REGISTER_P.
6440
6441 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
6442 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
6443
6444 * Makefile.in: Update dependencies for valops.c.
6445 * valops.c: Include "gdb_assert.h".
6446 (typecmp): Skip THIS parameter to methods.
6447 (find_method_list): Remove static_memfuncp argument,
6448 update callers. Check for stub methods.
6449 (find_value_oload_method_list): Don't set *static_memfuncp.
6450 (find_overload_match): Don't check for stub methods. Assert
6451 that methods are not stubbed. Handle static methods.
6452 (value_find_oload_method_list): Remove static_memfuncp argument.
6453 * gdbtypes.c (check_stub_method): Do not add THIS pointer
6454 to the argument list for static stub methods.
6455 * value.h (value_find_oload_method_list): Update prototype.
6456
6457 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6458
6459 * arch-utils.h (generic_register_size): Declare.
6460 (generic_register_raw_size, generic_register_virtual_size): Delete
6461 declarations.
6462 * arch-utils.c (generic_register_raw_size): Delete.
6463 (generic_register_size): New function.
6464 (generic_register_virtual_size): Delete.
6465
6466 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
6467 default generic_register_size.
6468 * gdbarch.h, gdbarch.c: Re-generate.
6469
6470 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
6471 register_virtual_size.
6472 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
6473 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6474
6475 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6476
6477 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
6478 * gdbarch.h, gdbarch.c: Regenerate.
6479 * gnu-v3-abi.c: Update copyright.
6480 (vtable_address_point_offset): Update.
6481 (gnuv3_rtti_type): Update.
6482 (gnuv3_baseclass_offset): Update.
6483 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
6484 (init_fetch_link_map_offsets): Update.
6485 * remote.c (get_remote_state): Update.
6486
6487 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
6488
6489 * TODO: Remove value_headof/value_from_vtable_info comment.
6490 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
6491 * values.c (value_headof, value_from_vtable_info): Delete.
6492 * value.h (value_from_vtable_info): Delete prototype.
6493
6494 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6495
6496 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
6497 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
6498 $(gdb_regex_h).
6499 (gdb_assert_h): Define.
6500 (gdb_wait_h): Define.
6501 (gdb_regex_h): Define.
6502
6503 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
6504
6505 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
6506 * linespec.c (find_methods): Handle GCC 3.x template constructors.
6507
6508 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6509
6510 * nbsd-tdep.c: Fix comment.
6511
6512 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6513
6514 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
6515 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
6516 (nbsd-tdep.o): New dependency list.
6517 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
6518 nbsd-tdep.h.
6519 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
6520 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
6521 * nbsd-tdep.c: New file.
6522 * nbsd-tdep.h: New file.
6523 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
6524 nbsd-tdep.h.
6525 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
6526 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
6527 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
6528 * config/sh/nbsd.mt (TDEPFILES): Ditto.
6529
6530 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6531
6532 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
6533 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
6534 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
6535 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
6536 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
6537 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
6538
6539 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6540
6541 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
6542 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6543 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
6544 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
6545 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
6546 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
6547 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
6548
6549 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6550
6551 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
6552 fetch_elfcore_registers to...
6553 * i386nbsd-tdep.c: ...here.
6554 (i386nbsd_use_struct_convention): Rename to...
6555 (i386nbsd_aout_use_struct_convention): ...this.
6556 (i386nbsd_supply_reg): New function.
6557 (i386nbsd_fill_reg): New function.
6558 (fetch_core_registers): Use i386nbsd_supply_reg.
6559 (fetch_elfcore_registers): Likewise.
6560 (_initialize_i386nbsd_tdep): New function.
6561 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
6562 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6563 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
6564 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
6565 (i386nbsd_aout_use_struct_convention): ...this.
6566
6567 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6568
6569 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
6570 (store_inferior_registers): Use shnbsd_fill_reg.
6571 * shnbsd-tdep.c (sh_nbsd_supply_registers,
6572 sh_nbsd_supply_register): Collapse into...
6573 (shnbsd_supply_reg): ...this.
6574 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
6575 (shnbsd_fill_reg): ...this.
6576 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
6577 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
6578 (fetch_core_registers): Use shnbsd_supply_reg.
6579 (fetch_elfcore_registers): Use shnbsd_supply_reg.
6580 (sh_nbsd_core_fns): Rename to...
6581 (shnbsd_core_fns): ...this.
6582 (sh_nbsd_elfcore_fns): Rename to...
6583 (shnbsd_elfcore_fns): ...this.
6584 (sh_nbsd_init_abi): Rename to...
6585 (shnbsd_init_abi): ...this.
6586 (_initialize_sh_nbsd_tdep): Rename to...
6587 (_initialize_shnbsd_tdep): ...this.
6588 * shnbsd-tdep.h (sh_nbsd_supply_registers,
6589 sh_nbsd_supply_register, sh_nbsd_fill_registers,
6590 sh_nbsd_fill_register): Remove prototypes.
6591 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
6592
6593 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6594
6595 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
6596 (i387-nat.o): Delete dependency list.
6597 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
6598 (x86-64-linux-nat.o): Likewise.
6599 * i387-nat.c: Delete file, moving contents to...
6600 * i387-tdep.c: ...here.
6601 * i387-nat.h: Rename...
6602 * i387-tdep.h: ...to this.
6603 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
6604 * i386-linux-nat.c: Likewise.
6605 * i386bsd-nat.c: Likewise.
6606 * i386gnu-nat.c: Likewise.
6607 * i386nbsd-nat.c: Likewise.
6608 * i386v4-nat.c: Likewise.
6609 * x86-64-linux-nat.c: Likewise.
6610 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
6611 * config/i386/go32.mh (NATDEPFILES): Likewise.
6612 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
6613 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
6614 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
6615 * config/i386/linux.mh (NATDEPFILES): Likewise.
6616 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
6617 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6618 * config/i386/obsd.mh (NATDEPFILES): Likewise.
6619 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
6620
6621 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6622
6623 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
6624 (alphanbsd-nat.o): Remove dependency list.
6625 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
6626 * alphanbsd-nat.c: Delete. Contents moved to...
6627 * alphanbsd-tdep.c: ...here.
6628 (_initialize_alphanbsd_tdep): Register core functions.
6629 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
6630
6631 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6632
6633 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
6634 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
6635 (alphanbsd-nat.o): Likewise.
6636 (alphabsd-tdep.o): New dependency list.
6637 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
6638 (fill_gregset): Use alphabsd_fill_reg.
6639 (supply_fpregset): Use alphabsd_supply_fpreg.
6640 (fill_fpregset): Use alphabsd_fill_fpreg.
6641 (fetch_inferior_registers): Use struct reg and struct fpreg
6642 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
6643 and alphabsd_supply_fpreg.
6644 (store_inferior_registers): Use struct reg and struct fpreg
6645 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
6646 and alphabsd_fill_fpreg.
6647 * alphabsd-tdep.c: New file.
6648 * alphabsd-tdep.h: New file.
6649 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
6650 (fetch_elfcore_registers): Use alphabsd_supply_reg and
6651 alphabsd_supply_fpreg.
6652 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
6653 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
6654
6655 2002-05-11 Eric Christopher <echristo@redhat.com>
6656
6657 * mips-tdep.c (mips_double_register_type): Fix thinko.
6658 (mips_single_register_type): Ditto.
6659 * MAINTAINERS: Add self.
6660
6661 2002-05-11 Mark Kettenis <kettenis@gnu.org>
6662
6663 * i387-nat.c (i387_supply_register, i387_fill_fsave,
6664 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
6665 right thing on architectures with different endianness and/or
6666 integer sizes.
6667
6668 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
6669
6670 From Christian Limpach <chris@Pin.LU>
6671 * configure.in: Change sed expression which comments out
6672 NATDEPFILES to also comment out continuation lines.
6673 * configure: Regenerate.
6674
6675 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
6676
6677 * sh-tdep.c: Clean up code erroneously reintroduced by previous
6678 big patch.
6679
6680 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
6681
6682 * sh-tdep.c: Include correct file.
6683
6684 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
6685
6686 New support for sh64-elf (sh5) target.
6687
6688 * configure.tgt: For sh64-elf target, default to sh-elf.
6689
6690 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
6691 (struct gdbarch_tdep): Add new fields for new registers and ABI
6692 info.
6693
6694 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
6695 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
6696 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
6697 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
6698 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
6699 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
6700 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
6701 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
6702 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
6703 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
6704 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
6705 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
6706 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
6707 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
6708 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
6709 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
6710 sh64_get_gdb_regnum, sh64_media_reg_base_num,
6711 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
6712 sign_extend, sh64_nofp_frame_init_saved_regs,
6713 sh64_init_extra_frame_info, sh64_get_saved_register,
6714 sh64_extract_struct_value_address, sh64_pop_frame,
6715 sh64_push_arguments, sh64_extract_return_value,
6716 sh64_store_return_value, sh64_show_media_regs,
6717 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
6718 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
6719 sh_sh64_register_virtual_type,
6720 sh_sh64_register_convert_to_virtual,
6721 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
6722 sh64_register_read, sh64_pseudo_register_write,
6723 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
6724 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
6725 sh64_do_pseudo_register, sh_compact_do_registers_info,
6726 sh64_do_registers_info, sh_gdbarch_init): New functions.
6727
6728 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
6729
6730 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
6731
6732 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
6733
6734 * linespec.c (decode_line_1): Check for a double quote after
6735 a filename correctly.
6736
6737 2002-05-10 Jim Blandy <jimb@redhat.com>
6738
6739 Properly track the size of the current objfile's .debug_line section.
6740 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
6741 (DWARF_LINE_SIZE): New macro.
6742 (dwarf2_build_psymtabs_hard): Record the line section's size in
6743 the partial symbol table.
6744 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
6745 symbol table.
6746
6747 2002-05-10 Petr Sorfa <petrs@caldera.com>
6748
6749 * ia64-tdep.c: Handle breakpoints on L instruction type
6750 in MLX instruction bundle by moving the breakpoint to
6751 the third slot (X instruction type) as L holds only data.
6752
6753 2002-05-10 Kevin Buettner <kevinb@redhat.com>
6754
6755 * dbxread.c (discarding_local_symbols_complaint): New complaint.
6756 (process_one_symbol): Complain about discarding local symbols
6757 due to a misplaced N_LBRAC entry.
6758
6759 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
6760
6761 From Daniel Berlin <dan@cgsoftware.com>
6762 * linespec.c (find_toplevel_char): '<' and '>' also increase and
6763 decrease the depth we are at, in the case of templates.
6764
6765 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
6766
6767 * mips-tdep.c (mips_float_register_type): New function.
6768 (mips_double_register_type): New function.
6769 (mips_print_register): Use them.
6770 (do_fp_register_row): Likewise.
6771
6772 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
6773
6774 * signals/signals.c (signals): Remove conditional compilation around
6775 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
6776 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
6777
6778 2002-05-09 Michael Snyder <msnyder@redhat.com>
6779
6780 * remote-rdp.c (remote_rdp_can_run): Remove.
6781
6782 2002-05-09 Tom Tromey <tromey@redhat.com>
6783
6784 * jv-valprint.c (java_val_print): Handle `char' as a special case
6785 of TYPE_CODE_INT.
6786
6787 2002-05-09 Michael Snyder <msnyder@redhat.com>
6788
6789 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
6790 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
6791 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
6792 str r(0123),[sp,#nn].
6793 (arm_skip_prologue): Ditto. Also make disassembly
6794 order-independent by placing it in a loop.
6795
6796 2002-05-06 Michael Snyder <msnyder@redhat.com>
6797
6798 * stabsread.c (read_type): Add recognition for new attribute:
6799 "@V;" means that an array type is actually a vector.
6800 This is analogous to the vector flag that's been added to dwarf2.
6801
6802 2002-05-09 Mark Kettenis <kettenis@gnu.org>
6803
6804 * i386-tdep.h (i386_abi): New enum.
6805 (struct gdbarch_tdep): Replace os_ident member with abi.
6806 (i386_gdbarch_register_os_abi): New prototype.
6807 * i386-tdep.c (i386_abi_names): New array.
6808 (process_note_abi_tag_sections): Removed.
6809 (process_note_sections): New function.
6810 (i386_elf_abi_from_note, i386_elf_abi): New functions.
6811 (struct i386_abi_handler): New struct.
6812 (i386_abi_handler_list): New variable.
6813 (i386_gdbarch_register_os_abi): New function.
6814 (i386_gdbarch_init): Adapt for the changes given above.
6815
6816 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
6817
6818 * gregset.h: Say "GNU/Linux".
6819
6820 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
6821
6822 * gdbtypes.c : Add new builtin type for 64 bit vectors.
6823 (build_gdbtypes): Build builtin_type_v2_float.
6824 (_initialize_gdbtypes): Register new builtin type.
6825
6826 2002-05-08 Andrew Cagney <ac131313@redhat.com>
6827
6828 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
6829 (clear_gdbarch_swap): New function.
6830 (initialize_non_multiarch): Call.
6831 (gdbarch_update_p): Before calling init(), swap out and clear the
6832 existing architecture.
6833 * gdbarch.c: Regenerate.
6834
6835 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6836
6837 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
6838 alphanbsd-tdep.c.
6839
6840 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6841
6842 * sh-nbsd-nat.c: Rename to...
6843 * shnbsd-nat.c: ...this.
6844 * sh-nbsd-tdep.c: Rename to...
6845 * shnbsd-tdep.c: ...this.
6846 * sh-nbsd-tdep.h: Rename to...
6847 * shnbsd-tdep.h: ...this.
6848 * config/sh/nbsd.mh: Use shnbsd-nat.o.
6849 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
6850
6851 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
6852
6853 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
6854 concatenation for command help messages.
6855
6856 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6857
6858 * NEWS: Note new sh*-*-netbsdelf* configuration.
6859 * configure.host: Set gdb_host_cpu to sh for all sh*.
6860 (sh*-*-netbsdelf*): New host.
6861 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
6862 (sh*-*-netbsdelf*): New target.
6863 * sh-nbsd-nat.c: New file.
6864 * sh-nbsd-tdep.c: New file.
6865 * sh-nbsd-tdep.h: New file.
6866 * config/sh/nbsd.mh: New file.
6867 * config/sh/nbsd.mt: New file.
6868 * config/sh/nm-nbsd.h: New file.
6869 * config/sh/tm-nbsd.h: New file.
6870
6871 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6872
6873 * sh-tdep.c (sh_osabi_names): Declare.
6874 (process_note_abi_tag_sections): New function.
6875 (get_elfosabi): Ditto.
6876 (sh_gdbarch_register_os_abi): Ditto.
6877 (sh_dump_tdep): Ditto.
6878 _initialize_sh_tdep): Use gdbarch_register to register
6879 sh_gdbarch_init and sh_dump_tdep.
6880 * config/sh/tm-sh.h (sh_osabi): Declare.
6881 (gdbarch_tdep): Add sh_osabi and osabi_name members.
6882
6883 2002-05-07 Andrew Cagney <ac131313@redhat.com>
6884
6885 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
6886 (thumb_scan_prologue): Ditto.
6887 (arm_find_callers_reg): Ditto.
6888 (arm_frame_chain): Ditto.
6889 (arm_init_extra_frame_info): Ditto.
6890 (arm_frame_saved_pc): Ditto.
6891 (arm_pop_frame): Ditto.
6892 (arm_push_return_address): New function.
6893 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
6894 call_dummy_location, call_dummy_breakpoint_offset_p,
6895 call_dummy_breakpoint_offset, call_dummy_p,
6896 call_dummy_stack_adjust_p, call_dummy_words,
6897 sizeof_call_dummy_words, call_dummy_start_offset,
6898 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
6899 call_dummy_address, push_return_address and push_dummy_frame for
6900 generic dummy frames.
6901
6902 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
6903
6904 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
6905 size computation for alloca.
6906 (sh_fp_frame_init_saved_regs): Likewise.
6907
6908 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
6909
6910 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
6911 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
6912 * arm-tdep.c (arm_store_return_value): Use them.
6913 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
6914 * remote-rdp.c (remote_rdp_fetch_register): Use
6915 ARM_MAX_REGISTER_RAW_SIZE.
6916 (remote_rdp_store_register): Likewise.
6917
6918 2002-05-07 Michal Ludvig <mludvig@suse.cz>
6919
6920 * dwarf2cfi.c: Code cleanup, removed unused variables,
6921 added default labels to switch {} statements.
6922 * x86-64-tdep.c: Ditto.
6923 * x86-64-linux-nat.c: Ditto.
6924
6925 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
6926
6927 * solib.h: Protect against multiple inclusion.
6928
6929 2002-05-06 Jim Blandy <jimb@redhat.com>
6930
6931 Add first preprocessor macro-expansion files.
6932 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
6933 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
6934 (splay_tree_h, macroexp_h, macrotab_h): New variable.
6935 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
6936 (COMMON_OBS): Add macrotab.o, macroexp.o.
6937 (macroexp.o, macrotab.o): New rules.
6938
6939 Separate the job of reading the line number info statement program
6940 header (...expialidocious) out into its own function.
6941 * dwarf2read.c (struct line_head, struct filenames, struct
6942 directories): Replace with...
6943 (struct line_header): New structure, containing the full
6944 contents of the statement program header, including the
6945 include directory and file name tables.
6946 (read_file_scope): If we have line number info, instead of just
6947 calling dwarf_decode_lines to do all the work, call
6948 dwarf_decode_line_header first to get a `struct line_header'
6949 containing the data in the statement program header, and then
6950 pass that to dwarf_decode_lines, which will pick up where that
6951 left off. Be sure to clean up the `struct line_header' object.
6952 (dwarf_decode_line_header, free_line_header, add_include_dir,
6953 add_file_name): New functions.
6954 (dwarf_decode_lines): Move all the code to read the statement
6955 program header into dwarf_decode_line_header. Take the line
6956 header it built as the first argument, instead of the offset to
6957 the compilation unit's line number info. Use the new `struct
6958 line_header' type instead of the old structures. No need to do
6959 cleanups here now, since we don't allocate anything.
6960 (dwarf2_statement_list_fits_in_line_number_section,
6961 dwarf2_line_header_too_long): New complaints.
6962
6963 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
6964
6965 * gdbtypes.c (init_vector_type): New function.
6966 (build_builtin_type_vec128): Simplify the representation of SIMD
6967 registers.
6968 (build_gdbtypes): Initialize new builtin vector types.
6969 (_initialize_gdbtypes): Register new vector types with gdbarch.
6970 (builtin_type_v4_float, builtin_type_v4_int32,
6971 builtin_type_v8_int16, builtin_type_v16_int8,
6972 builtin_type_v2_int32, builtin_type_v4_int16,
6973 builtin_type_v8_int8): New (renamed) SIMD types.
6974
6975 2002-05-06 Mark Kettenis <kettenis@gnu.org>
6976
6977 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
6978 (i387_fill_fxsave): Likewise.
6979
6980 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
6981
6982 * alpha-tdep.c (alpha_extract_return_value): Don't use
6983 non-constant array size in prototype.
6984
6985 2002-05-04 Andrew Cagney <ac131313@redhat.com>
6986
6987 From Brian Taylor <briant at model dot com>:
6988 * ui-out.c (ui_out_field_core_addr): Use the function
6989 longest_local_hex_string_custom'to format addresses > 32 bits
6990 wide.
6991
6992 * ui-out.c (ui_out_field_core_addr): Update comment.
6993
6994 2002-05-04 Andrew Cagney <ac131313@redhat.com>
6995
6996 * stack.c (select_and_print_frame): Make static. Delete the
6997 parameter `level'.
6998 (func_command): Update call.
6999 (select_frame_command): Delete code computing the frame level.
7000 * frame.h (select_and_print_frame): Delete declaration.
7001
7002 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7003
7004 * sparc-tdep.c (sparc_get_saved_register): Comment why
7005 get_prev_frame call is safe.
7006
7007 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7008
7009 * frame.h (select_frame): Delete level parameter.
7010 * stack.c (select_frame): Update. Use frame_relative_level to
7011 obtain the frame's level.
7012 (select_and_print_frame): Update call.
7013 (select_frame_command): Ditto.
7014 (up_silently_base): Ditto.
7015 (down_silently_base): Ditto.
7016 * ocd.c (ocd_start_remote): Ditto.
7017 * remote-rdp.c (remote_rdp_open): Ditto.
7018 * remote-mips.c (mips_initialize): Ditto.
7019 (common_open): Ditto.
7020 * remote-e7000.c (e7000_start_remote): Ditto.
7021 * m3-nat.c (select_thread): Ditto.
7022 * hppa-tdep.c (child_get_current_exception_event): Ditto.
7023 (child_get_current_exception_event): Ditto.
7024 * varobj.c (varobj_create): Ditto.
7025 (varobj_update): Ditto.
7026 (c_value_of_root): Ditto.
7027 * tracepoint.c (finish_tfind_command): Ditto.
7028 * corelow.c (core_open): Ditto.
7029 * arch-utils.c (generic_prepare_to_proceed): Ditto.
7030 * thread.c (info_threads_command): Ditto.
7031 (switch_to_thread): Ditto.
7032 * infrun.c (normal_stop): Ditto.
7033 (restore_selected_frame): Ditto.
7034 (restore_inferior_status): Ditto.
7035 * breakpoint.c (insert_breakpoints): Ditto.
7036 (watchpoint_check): Ditto.
7037 (bpstat_stop_status): Ditto.
7038 (do_enable_breakpoint): Ditto.
7039 * blockframe.c (flush_cached_frames): Ditto.
7040 (reinit_frame_cache): Ditto.
7041
7042 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7043
7044 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
7045 maintainer.
7046
7047 2002-05-04 Jim Blandy <jimb@redhat.com>
7048
7049 * gdbtypes.c (replace_type): Doc fix.
7050
7051 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7052
7053 * valprint.c (strcat_longest): Delete commented out function.
7054 Update copyright.
7055
7056 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7057
7058 * MAINTAINERS: Mark a29k as deleted.
7059 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
7060 Move new configurations to the top.
7061 * configure.tgt: Remove a29k.
7062 * config/a29k/tm-vx29k.h: Delete.
7063 * config/a29k/vx29k.mt: Delete.
7064 * config/a29k/tm-a29k.h: Delete.
7065 * config/a29k/a29k-udi.mt: Delete.
7066 * config/a29k/a29k.mt: Delete.
7067 * a29k-tdep.c: Delete.
7068 * remote-udi.c: Delete.
7069 * remote-mm.c: Delete.
7070 * remote-eb.c: Delete.
7071 * remote-adapt.c: Delete.
7072 * Makefile.in: Remove obsolete code.
7073 * config/s390/s390x.mt: Ditto.
7074 * config/s390/s390.mt: Ditto.
7075 * config/sparc/sparclynx.mh: Ditto.
7076 * config/sparc/linux.mh: Ditto.
7077 * config/pa/hppaosf.mh: Ditto.
7078 * config/pa/hppabsd.mh: Ditto.
7079 * config/ns32k/nbsd.mt: Ditto.
7080 * config/mips/vr5000.mt: Ditto.
7081 * config/m68k/sun3os4.mh: Ditto.
7082 * config/m68k/nbsd.mt: Ditto.
7083 * config/m68k/m68klynx.mh: Ditto.
7084 * config/m32r/m32r.mt: Ditto.
7085 * config/i386/x86-64linux.mt: Ditto.
7086 * config/i386/nbsdelf.mt: Ditto.
7087 * config/i386/nbsd.mt: Ditto.
7088 * config/i386/i386lynx.mh: Ditto.
7089
7090 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7091
7092 * target.c (debug_print_register): New function. Handle oversize
7093 registers.
7094 (debug_to_fetch_registers): Call.
7095 (debug_to_store_registers): Call.
7096
7097 2002-05-03 Jim Blandy <jimb@redhat.com>
7098
7099 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
7100 (read_type): Doc fix.
7101 * gdbtypes.c (replace_type): Doc fix.
7102
7103 * stabsread.c (multiply_defined_struct): New complaint.
7104 (read_struct_type): If the type we were passed isn't empty, or
7105 incomplete, don't read the new struct type into it; complain,
7106 and return the original type unchanged. Take a new `type_code'
7107 argument, which is the type code for the new type.
7108 (read_type): Rather than storing the type's type code here, pass
7109 it as an argument to read_struct_type, and let that take care of
7110 storing it. That way, we don't overwrite the original type code,
7111 so read_struct_type can use it to decide whether we're overwriting
7112 something we shouldn't.
7113 (complain_about_struct_wipeout): New function.
7114
7115 2002-05-03 Andrew Cagney <ac131313@redhat.com>
7116
7117 * gdbarch.sh: Assert that gdbarch is non-NULL.
7118 * gdbarch.c: Regenerate.
7119
7120 2002-05-03 Jason Merrill <jason@redhat.com>
7121
7122 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
7123 and return NULL.
7124
7125 2002-05-03 Michal Ludvig <mludvig@suse.cz>
7126
7127 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
7128 (x86_64_dwarf2gdb_regno_map_length),
7129 (x86_64_dwarf2_reg_to_regnum): Added.
7130 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
7131 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
7132 (_initialize_x86_64_tdep): Synced with the change above.
7133 (x86_64_skip_prologue): Reformulated message.
7134
7135 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
7136
7137 * f-exp.y: Also use new prev_lexptr variable
7138 to improve error reporting. Based on Michael Snyder
7139 2002-04-24 dated patch to c-exp.y.
7140 * jv-exp.y: Likewise.
7141 * m2-exp.y: Likewise.
7142
7143 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
7144
7145 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
7146 we are dealing with vectors.
7147
7148 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7149
7150 * config/m68k/tm-nbsd.h: Obvious fix,
7151 correct machine name.
7152
7153 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7154
7155 * p-typeprint.c (pascal_type_print_base): Add support
7156 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
7157
7158 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7159
7160 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
7161 for fondamental pascal 'char' type.
7162
7163 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7164
7165 * p-lang.h (is_pascal_string_type): Declaration changed,
7166 new sixth argument of type char ** added.
7167 * p-lang.c (is_pascal_string_type): Implementation
7168 changed. Args length_pos, length_size, string_pos, char_size
7169 can now be NULL. New argument arrayname set to the field
7170 name of the char array. Return value set to char array
7171 field index plus one.
7172 * p-valprint.c (pascal_val_print): Adapt to new declaration of
7173 is_pascal_string_type function.
7174
7175 2002-05-02 Andrew Cagney <cagney@redhat.com>
7176
7177 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
7178 <cagney@redhat.com> change.
7179 * gdbarch.c: Regenerate.
7180
7181 2002-05-02 Andrew Cagney <cagney@redhat.com>
7182
7183 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
7184 before probing for a new one. Detect errorenous gdbarch_init
7185 functions.
7186 * gdbarch.c: Regenerate.
7187
7188 2002-05-01 Andrew Cagney <cagney@redhat.com>
7189
7190 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
7191 * config/mcore/tm-mcore.h: Ditto. Update copyright.
7192 * config/v850/tm-v850.h: Ditto. Update copyright.
7193
7194 2002-04-30 Andrew Cagney <ac131313@redhat.com>
7195
7196 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
7197 current_gdbarch.
7198
7199 2002-04-30 Michael Snyder <msnyder@redhat.com>
7200
7201 * arm-tdep.c: Whitespace clean-ups.
7202 (arm_skip_prologue): Fix thinko; two lines
7203 should have been removed as part of 4/24 change.
7204
7205 2002-04-30 Kevin Buettner <kevinb@redhat.com>
7206
7207 * rs6000-tdep.c: Added comment describing how fpscr register
7208 numbers were chosen.
7209
7210 2002-04-30 Michael Snyder <msnyder@redhat.com>
7211
7212 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
7213
7214 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
7215
7216 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
7217 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
7218 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
7219
7220 2002-04-29 Kevin Buettner <kevinb@redhat.com>
7221
7222 From Louis Hamilton <hamilton@redhat.com>:
7223 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
7224 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
7225 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
7226 not bfd-private xcoff data, to determine wordsize.
7227 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
7228
7229 2002-04-29 Andrew Cagney <ac131313@redhat.com>
7230
7231 GDB 5.2 released from 5.2 branch.
7232
7233 2002-04-29 Michal Ludvig <mludvig@suse.cz>
7234
7235 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
7236 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
7237 (x86_64_register_info_table): Added comments with register numbers.
7238
7239 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
7240
7241 * rs6000-tdep.c (rs6000_extract_return_value,
7242 rs6000_store_return_value): Handle returning vectors.
7243 (rs6000_gdbarch_init): Use
7244 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
7245 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
7246 New function.
7247 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
7248 vectors.
7249 (ppc_sysv_abi_push_arguments): Handle vector parameters.
7250 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
7251
7252 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
7253
7254 * hpread.c (hpread_psymtab_to_symtab_1,
7255 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
7256 with fprintf_unfiltered (gdb_stderr,...).
7257
7258 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
7259
7260 * remote-array.c (printf_monitor, write_monitor,
7261 array_insert_breakpoint, array_remove_breakpoint ):
7262 Replace fprintf (stderr,...
7263 with fprintf_unfiltered (gdb_stderr,....
7264 * remote-es.c: Likewise.
7265 * remote-os9k.c: Likewise.
7266 * remote-st.c: Likewise.
7267
7268 2002-04-28 Andreas Schwab <schwab@suse.de>
7269
7270 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
7271 linux-proc.o and gcore.o.
7272
7273 2002-04-26 Michal Ludvig <mludvig@suse.cz>
7274
7275 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
7276 code without frame pointers.
7277
7278 2002-04-26 Andrew Cagney <ac131313@redhat.com>
7279
7280 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
7281 ON_STACK is needed.
7282
7283 2002-04-26 Ben Elliston <bje@redhat.com>
7284
7285 * target.c (do_xfer_memory): Correct reference to the new option
7286 "trust-readonly-sections".
7287
7288 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
7289
7290 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
7291 * gdbtypes.c (recursive_dump_type): Output the vector flag.
7292 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
7293 vectors.
7294 (read_array_type): Record the fact that this array type is really a
7295 vector (i.e. are passed in by value).
7296
7297 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
7298
7299 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
7300 * alpha-tdep.c (alpha_sigcontext_addr): New function.
7301 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
7302 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
7303 * alpha-linux-tdep.c: Include frame.h.
7304 (alpha_linux_sigcontext_addr): New function.
7305 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
7306 alpha_linux_sigcontext_addr.
7307 * alpha-osf1-tdep.c: Include gdbcore.h.
7308 (alpha_osf1_sigcontext_addr): New function.
7309 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
7310 alpha_osf1_sigcontext_addr.
7311 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
7312 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
7313
7314 2002-04-26 Andrew Cagney <ac131313@redhat.com>
7315
7316 * stack.c (selected_frame_level):
7317 (select_frame): Do not set selected_frame_level.
7318 * frame.h (selected_frame_level): Delete declaration.
7319
7320 2002-04-26 Andrew Cagney <ac131313@redhat.com>
7321
7322 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
7323 convert_from_func_ptr-addr when AIX / PowerOpen.
7324
7325 2002-04-25 Andrew Cagney <ac131313@redhat.com>
7326
7327 * valops.c (hand_function_call): Call
7328 generic_save_call_dummy_addr.
7329 * frame.h (generic_save_call_dummy_addr): Declare.
7330 * blockframe.c (struct dummy_frame): Add fields call_lo and
7331 call_hi.
7332 (generic_find_dummy_frame): Check for PC in range call_lo to
7333 call_hi instead of entry_point_address.
7334 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
7335 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
7336 (generic_save_call_dummy_addr): New function.
7337
7338 2002-04-24 David S. Miller <davem@redhat.com>
7339
7340 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
7341 sparc_skip_prologue.
7342 (sparc_skip_prologue): Kill frameless_p arg, and use line number
7343 information to find prologue when possible.
7344 (sparc_prologue_frameless_p): Call examine_prologue directly.
7345 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
7346 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
7347 second argument.
7348 (SKIP_PROLOGUE): Likewise.
7349
7350 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7351
7352 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
7353 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
7354 indicate that the condition it was testing is always true.
7355 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
7356 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
7357 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
7358
7359 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7360
7361 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
7362 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
7363 tdep->jb_pc and tdep->jb_elt_size.
7364 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
7365 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
7366 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
7367 * alpha-nat.c (get_longjmp_target): Remove.
7368 (JB_ELEMENT_SIZE): Ditto.
7369 (JB_PC): Ditto.
7370 * alpha-tdep.c (alpha_get_longjmp_target): New function.
7371 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
7372 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
7373 to alpha_get_longjmp_target.
7374 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
7375 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
7376 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
7377
7378 2002-04-25 Andrew Cagney <ac131313@redhat.com>
7379
7380 * README: Update to GDB 5.2.
7381
7382 2002-04-25 Andrew Cagney <ac131313@redhat.com>
7383
7384 * gdbarch.sh (LC_ALL): Set to `c'.
7385
7386 2002-04-25 Theodore A. Roth <troth@verinet.com>
7387
7388 * avr-tdep.c: Ran through gdb_indent.sh.
7389
7390 2002-04-25 Theodore A. Roth <troth@verinet.com>
7391
7392 * MAINTAINERS: Add myself as AVR maintainer.
7393 * NEWS: Note new target avr.
7394
7395 2002-04-25 Theodore A. Roth <troth@verinet.com>
7396
7397 * Makefile.in: Add support for AVR target.
7398 * configure.tgt: Add support for AVR target.
7399 * avr-tdep.c: New file
7400 * config/avr/avr.mt: New file.
7401
7402 2002-04-25 Theodore A. Roth <troth@verinet.com>
7403
7404 * MAINTAINERS: Add myself to write-after-approval.
7405
7406 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
7407
7408 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
7409 with fprintf_unfiltered (gdb_stderr,....
7410
7411 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
7412
7413 Fix PR gdb/508.
7414 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
7415
7416 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
7417
7418 * p-exp.y: Also use new prev_lexptr variable
7419 to improve error reporting. Based on Michael Snyder
7420 2002-04-24 dated patch to c-exp.y.
7421
7422 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7423
7424 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
7425 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
7426 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
7427 to 0.
7428 * config/alpha/tm-alpha.h: Remove forward decls of struct type
7429 and struct value.
7430 (FUNCTION_START_OFFSET): Remove.
7431 (BREAKPOINT): Ditto.
7432
7433 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7434
7435 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
7436 * NEWS: Ditto.
7437
7438 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7439
7440 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
7441 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
7442 alpha_linux_pc_in_sigtramp.
7443 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
7444 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
7445 alpha_osf1_pc_in_sigtramp.
7446 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
7447 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
7448 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
7449 alphafbsd_pc_in_sigtramp.
7450 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
7451 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
7452 alphanbsd_pc_in_sigtramp.
7453 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
7454 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
7455
7456 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7457
7458 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
7459
7460 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7461
7462 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
7463 alphanbsd-tdep.c.
7464 (alphanbsd-nat.o): New dependency list.
7465 (alphanbsd-tdep.o): Ditto.
7466 * NEWS: Note new native NetBSD/alpha configuration.
7467 * alphanbsd-nat.c: New file.
7468 * alphanbsd-tdep.c: Ditto.
7469 * configure.host (alpha*-*-netbsd*): New host.
7470 * configure.tgt (alpha*-*-netbsd*): New target.
7471 * config/alpha/nbsd.mh: New file.
7472 * config/alpha/nbsd.mt: Ditto.
7473 * config/alpha/nm-nbsd.h: Ditto.
7474 * config/alpha/tm-nbsd.h: Ditto.
7475
7476 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7477
7478 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
7479 (alpha-osf1-tdep.o): New dependency list.
7480 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
7481 and skip_sigtramp_frame members.
7482 * alpha-linux-tdep.c: Include gdbcore.h.
7483 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
7484 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
7485 * alpha-osf1-tdep.c: New file.
7486 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
7487 alpha-osf1-dep.c.
7488 (alpha_frame_past_sigtramp_frame): New function.
7489 (alpha_dynamic_sigtramp_offset): Ditto.
7490 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
7491 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
7492 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
7493 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
7494 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
7495 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
7496 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
7497 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
7498 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
7499 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
7500 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
7501 to find_solib_trampoline_target.
7502 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
7503 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
7504 (SKIP_TRAMPOLINE_CODE): Remove.
7505 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7506 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7507 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
7508 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
7509 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
7510 (PROC_SIGTRAMP_MAGIC): Ditto.
7511 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7512 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7513 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7514 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
7515 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
7516
7517 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7518
7519 * NEWS: Note that Alpha targets are now multi-arch.
7520
7521 2002-04-24 Michael Snyder <msnyder@redhat.com>
7522
7523 * parser-defs.h (prev_lexptr): New external variable.
7524 * parse.c (parse_exp_1): Set prev_lexptr to null before
7525 calling the language-specific parser.
7526 * c-exp.y (yylex): Set prev_lexptr to start of current token.
7527 (yyerror): Use prev_lexptr in error reporting.
7528
7529 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
7530
7531 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
7532 * gregset.h: If FILL_FPXREGSET is defined, provide
7533 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
7534 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
7535 is defined, call fill_fpxregset.
7536
7537 2002-04-24 Roland McGrath <roland@frob.com>
7538
7539 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
7540 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
7541 (supply_gregset, supply_fpregset): New functions.
7542
7543 * gnu-nat.c (gnu_find_memory_regions): New function.
7544 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
7545 (gnu_xfer_memory): Add a cast.
7546
7547 2002-04-24 Michael Snyder <msnyder@redhat.com>
7548
7549 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
7550 loop. Add handling for "str lr, [sp, #-4]!" and for saves
7551 of argument regs ("str r(0123), [r11, #-nn"]).
7552 (arm_skip_prologue): Better handling for frameless functions.
7553 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
7554 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
7555
7556 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
7557
7558 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
7559 NUM_PSEUDO_REGS can be used.
7560
7561 2002-04-24 Andrew Cagney <ac131313@redhat.com>
7562
7563 * arch-utils.h: Update copyright.
7564
7565 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
7566 * gdbarch.h, gdbarch.c: Re-generate.
7567
7568 * inferior.h (IN_SIGTRAMP): Delete definition.
7569 * arch-utils.c (legacy_pc_in_sigtramp): New function.
7570 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
7571
7572 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
7573 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
7574 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
7575 (find_proc_framesize): Ditto.
7576 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
7577 (alpha_init_extra_frame_info): Ditto.
7578 * infrun.c (handle_inferior_event): Ditto.
7579 (handle_inferior_event): Ditto.
7580 (check_sigtramp2): Ditto.
7581 * blockframe.c (create_new_frame): Ditto.
7582 (get_prev_frame): Ditto.
7583 * ppc-linux-tdep.c: Update comments.
7584 * i386-linux-tdep.c: Update comments.
7585 * breakpoint.c (bpstat_what): Update comment.
7586
7587 2002-04-24 David S. Miller <davem@redhat.com>
7588
7589 * i960-tdep.c (register_in_window_p): New function.
7590 (i960_find_saved_register): Use it instead of
7591 REGISTER_IN_WINDOW_P.
7592 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
7593
7594 * symtab.h (find_stab_function_addr): Kill extern.
7595 * minsyms.c (find_stab_function_addr): Remove from here...
7596 * dbxread.c: ... to here, and mark it static.
7597
7598 2002-04-20 David S. Miller <davem@redhat.com>
7599
7600 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
7601 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
7602
7603 2002-04-21 David S. Miller <davem@redhat.com>
7604
7605 * remote-vxsparc.c (vx_read_register): Fix typo, we want
7606 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
7607 (vx_write_register): Likewise.
7608
7609 2002-04-23 J. Brobecker <brobecker@gnat.com>
7610
7611 * source.c (is_regular_file): New function.
7612 (openp): Check wether file to open is a regular file
7613 to avoid opening directories.
7614
7615 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7616
7617 * findvar.c (extract_signed_integer): Cast printf argument
7618 to suppress format warning.
7619 (extract_unsigned_integer): Likewise.
7620 * infcmd.c (registers_info): Likewise.
7621 * top.c (get_prompt_1): Likewise.
7622 * valops.c (value_assign): Likewise.
7623 * valprint.c (print_decimal): Likewise.
7624
7625 2002-04-22 H.J. Lu (hjl@gnu.org)
7626
7627 * c-exp.y (typebase): Support
7628
7629 [long|long long|short] [signed|unsigned] [int|]
7630
7631 and
7632
7633 signed [long|long long|short] int
7634
7635 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7636
7637 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
7638 and vax-tdep.h.
7639 * vax-tdep.h: New file.
7640 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
7641 Make several routines static.
7642 (vax_get_saved_register): New function.
7643 (vax_gdbarch_init): New function.
7644 (_initialize_vax_tdep): Register vax_gdbarch_init.
7645 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
7646 Remove macros now under the control of gdbarch.
7647
7648 2002-04-22 Michael Snyder <msnyder@redhat.com>
7649
7650 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
7651 Some whitespace and coding standards tweaks.
7652
7653 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7654
7655 * vax-tdep.c: Include regcache.h.
7656 (vax_call_dummy_words): New.
7657 (sizeof_vax_call_dummy_words): New.
7658 (vax_fix_call_dummy): New function.
7659 (vax_saved_pc_after_call): Ditto.
7660 * config/vax/tm-vax.h: Don't include regcache.h.
7661 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
7662 (CALL_DUMMY): Remove.
7663 (CALL_DUMMY_WORDS): Define.
7664 (SIZEOF_CALL_DUMMY_WORDS): Define.
7665 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
7666
7667 2002-04-18 Michael Snyder <msnyder@redhat.com>
7668
7669 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
7670
7671 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7672
7673 * vax-tdep.c (vax_frame_chain): New function.
7674 (vax_push_dummy_frame): Ditto.
7675 (vax_pop_frame): Ditto.
7676 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
7677 (FRAMELESS_FUNCTION_INVOCATION): Use
7678 generic_frameless_function_invocation_not.
7679 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
7680 (POP_FRAME): Use vax_pop_frame.
7681
7682 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7683
7684 * vax-tdep.c (vax_store_struct_return): New function.
7685 (vax_extract_return_value): Ditto.
7686 (vax_store_return_value): Ditto.
7687 (vax_extract_struct_value_address): Ditto.
7688 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
7689 vax_store_struct_return.
7690 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
7691 (STORE_RETURN_VALUE): Use vax_store_return_value.
7692 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
7693
7694 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7695
7696 * vax-tdep.c (vax_frame_saved_pc): New function.
7697 (vax_frame_args_address_correct): Ditto.
7698 (vax_frame_args_address): Ditto.
7699 (vax_frame_locals_address): Ditto.
7700 (vax_frame_num_args): Move code to be in proximity to
7701 other frame-related functions.
7702 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
7703 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
7704 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
7705 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
7706 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
7707
7708 2002-04-22 H.J. Lu (hjl@gnu.org)
7709
7710 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
7711 includedir.
7712
7713 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7714
7715 * vax-tdep.c (vax_frame_init_saved_regs): New function.
7716 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
7717 (FRAME_INIT_SAVED_REGS): New macro.
7718
7719 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7720
7721 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
7722
7723 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7724
7725 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
7726 where needed.
7727 (fetch_osf_core_registers): Likewise.
7728 (supply_gregset): Likewise.
7729
7730 2002-04-22 J. Brobecker <brobecker@gnat.com>
7731
7732 * symfile.h (get_section_index): Define.
7733 * symfile.c (get_section_index): New function.
7734 * mdebugread.c (SC_IS_SBSS): New macro.
7735 (SC_IS_BSS): Return true for the scBss storage class only, as
7736 the scSBss storage class refers to the .sbss section.
7737 (parse_partial_symbols): Discard the symbols which associated
7738 section does not exist.
7739 Make sure to use the .sbss section index for symbols which
7740 storage class is scBss, rather than using the .bss section index.
7741
7742 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7743
7744 * vax-tdep.c: Update copyright years.
7745 (vax_register_name): New function.
7746 (vax_register_byte): Ditto.
7747 (vax_register_raw_size): Ditto.
7748 (vax_register_virtual_size): Ditto.
7749 (vax_register_virtual_type): Ditto.
7750 * config/vax/tm-vax.h: Update copyright years.
7751 (REGISTER_NAMES): Remove.
7752 (REGISTER_NAME): Define.
7753 (REGISTER_BYTE): Use vax_register_byte.
7754 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
7755 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
7756 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
7757
7758 2002-04-21 Andrew Cagney <ac131313@redhat.com>
7759
7760 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
7761 declaration
7762 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
7763
7764 2002-04-21 David S. Miller <davem@redhat.com>
7765
7766 * arch-utils.c (generic_prologue_frameless_p): Kill
7767 SKIP_PROLOGUE_FRAMELESS_P code.
7768 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
7769 references.
7770 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
7771 * arc-tdep.c (arc_prologue_frameless_p): Implement.
7772 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
7773 references.
7774 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
7775 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
7776 (sparc_gdbarch_init): Pass it to
7777 set_gdbarch_prologue_frameless_p.
7778
7779 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7780
7781 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
7782 (alphabsd-nat.o): New dependency list.
7783
7784 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7785
7786 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
7787 alphafbsd-tdep.c.
7788 (alpha-linux-tdep.o): New dependency list.
7789 (alphafbsd-tdep.o): Likewise.
7790
7791 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7792
7793 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
7794 to here...
7795 * alpha-tdep.c: ...from here.
7796 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
7797
7798 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7799
7800 * config/alpha/tm-alpha.h: Move alpha_software_single_step
7801 prototype from here...
7802 * alpha-tdep.h: ...to here.
7803
7804 2002-04-21 Andrew Cagney <ac131313@redhat.com>
7805
7806 * frame.h (selected_frame_level): Document as deprecated.
7807 (frame_relative_level): Declare.
7808 * stack.c (frame_relative_level): New function.
7809 (selected_frame_level): Document as deprecated.
7810 (select_frame): Do not set the selected_frame_level.
7811
7812 * stack.c (frame_info, record_selected_frame): Update.
7813 (frame_command, current_frame_command): Update.
7814 (up_silently_base, up_command, down_silently_base): Update.
7815 (down_command): Update.
7816 * inflow.c (kill_command): Update.
7817 * tracepoint.c (finish_tfind_command): Update.
7818 * corelow.c (core_open): Update.
7819 * thread.c (info_threads_command): Update.
7820 (do_captured_thread_select): Update.
7821 * infcmd.c (finish_command): Update.
7822 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
7823
7824 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7825
7826 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
7827
7828 2002-04-21 Andrew Cagney <ac131313@redhat.com>
7829
7830 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
7831 type const.
7832
7833 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7834
7835 * alphafbsd-tdep.c: Update copyright years. Include
7836 alpha-tdep.h.
7837 (alphafbsd_use_struct_convention): Make static.
7838 (alphafbsd_init_abi): New function.
7839 (_initialize_alphafbsd_tdep): New function.
7840 * config/alpha/tm-fbsd.h: Update copyright years.
7841 (USE_STRUCT_CONVENTION): Remove.
7842
7843 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7844
7845 * alpha-tdep.c (alpha_abi_handler): New structure to describe
7846 an Alpha ABI variant.
7847 (alpha_abi_handler_list): Declare.
7848 (alpha_gdbarch_register_os_abi): New function.
7849 (alpha_gdbarch_init): Give registered ABI variant handlers a
7850 chance to tweak the gdbarch once we have set up defaults.
7851 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
7852
7853 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7854
7855 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
7856 to standard_coerce_float_to_double.
7857 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
7858
7859 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7860
7861 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
7862 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
7863 from gdbarch_tdep rather than a constant.
7864 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
7865 the default text address for all Alpha Unix ABIs.
7866 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
7867 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
7868
7869 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7870
7871 * alpha-tdep.h: New file. Includes several Alpha target constants
7872 taken from...
7873 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
7874 let gdbarch deal with.
7875 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
7876 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
7877 to dependency list.
7878 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
7879 Alpha target register names.
7880 * alphabsd-nat.c: Likewise.
7881 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
7882 Alpha target register names. Make serveral routines static.
7883 (alpha_get_saved_register): New function.
7884 (alpha_abi_names): New.
7885 (process_note_abi_tag_sections): New function.
7886 (get_elfosabi): New function.
7887 (alpha_gdbarch_init): New function.
7888 (alpha_dump_tdep): New function.
7889 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
7890
7891 2002-04-21 Andrew Cagney <ac131313@redhat.com>
7892
7893 * frame.c (find_saved_register): Delete #ifdef
7894 HAVE_REGISTER_WINDOWS code.
7895 * config/sparc/tm-sparc.h: Update comments.
7896 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
7897
7898 2002-04-21 Andrew Cagney <ac131313@redhat.com>
7899
7900 * i960-tdep.c (i960_find_saved_register): New function.
7901 (i960_get_saved_register): New function.
7902 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
7903 (i960_get_saved_register): Declare.
7904 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
7905
7906 2002-04-20 David S. Miller <davem@redhat.com>
7907
7908 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
7909
7910 2002-04-20 Andrew Cagney <ac131313@redhat.com>
7911
7912 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
7913 instead of NUM_PSEUDO_REGS.
7914
7915 2002-04-20 David S. Miller <davem@redhat.com>
7916
7917 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
7918 GDB_MULTI_ARCH_PARTIAL
7919 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
7920 define, let tm-sp64.h do it.
7921
7922 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
7923
7924 * frame.c (find_saved_register): Avoid a NULL pointer
7925 dereference and actually walk the frame list.
7926
7927 2002-04-20 Andrew Cagney <ac131313@redhat.com>
7928
7929 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
7930 sorted in most most-recent-used order. Document.
7931 * gdbarch.h, gdbarch.c: Regenerate.
7932
7933 2002-04-19 Andrew Cagney <ac131313@redhat.com>
7934
7935 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
7936 instead of ->prev.
7937 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
7938 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
7939 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
7940 instead of ->prev.
7941
7942 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
7943
7944 Fix PR gdb/471.
7945 * gdbtypes.c (init_simd_type): Rewrite using new functions.
7946 (build_builtin_type_vec128): Ditto.
7947 (append_composite_type_field): Fix calculation of type length in
7948 union case.
7949
7950 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
7951
7952 * config/djgpp/README: Update.
7953
7954 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
7955 compiler warnings.
7956
7957 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
7958
7959 * alpha-tdep.c (setup_arbitrary_frame): Rename...
7960 (alpha_setup_arbitrary_frame): ...to this.
7961 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
7962 for alpha_setup_arbitrary_frame.
7963
7964 2002-04-18 Andrew Cagney <cagney@redhat.com>
7965
7966 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
7967 * gdbarch.h, gdbarch.c: Regenerate.
7968
7969 * defs.h (breakpoint_from_pc_fn): Delete type definition.
7970 * target.h (memory_breakpoint_from_pc): Update declaration.
7971 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
7972
7973 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
7974 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
7975 * mem-break.c (memory_breakpoint_from_pc): Ditto.
7976 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
7977 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
7978 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
7979 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
7980 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
7981 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
7982 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
7983 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
7984 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
7985
7986 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
7987 const pointer.
7988 * monitor.c (monitor_insert_breakpoint): Ditto.
7989 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
7990
7991 * config/mcore/tm-mcore.h: Update copyright.
7992 * mem-break.c: Ditto.
7993 * xstormy16-tdep.c: Ditto.
7994
7995 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
7996
7997 * p-exp.y: Add precedence rule for '^' token.
7998 This removes the shift/reduce conflicts.
7999 Remove the comment concerning these shift/reduce conflicts.
8000
8001 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
8002
8003 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
8004 (registers_powerpc_nofp): New register set for processors
8005 without floating point unit.
8006
8007 2002-04-18 David S. Miller <davem@redhat.com>
8008
8009 * MAINTAINERS: Add myself to write-after-approval.
8010
8011 2002-04-17 Michael Snyder <msnyder@redhat.com>
8012
8013 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
8014
8015 2002-04-17 Andrew Cagney <ac131313@redhat.com>
8016
8017 * rs6000-tdep.c (frame_initial_stack_address): Use
8018 frame_register_read to read the alloca_reg.
8019
8020 2002-04-17 Andrew Cagney <ac131313@redhat.com>
8021
8022 * frame.c (find_saved_register): Find saved registers in the next
8023 not prev frame.
8024 Fix PR gdb/365.
8025
8026 2002-04-17 Andrew Cagney <ac131313@redhat.com>
8027
8028 * gdbarch.sh (LANG): Set to ``c''.
8029
8030 2002-04-15 Andrew Cagney <ac131313@redhat.com>
8031
8032 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
8033
8034 2002-04-15 Andrew Cagney <ac131313@redhat.com>
8035
8036 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
8037 Update copyright.
8038
8039 * hpread.c (hpread_get_lntt): Add declaration.
8040 Also fix PR gdb/391.
8041
8042 2002-04-14 Andrew Cagney <ac131313@redhat.com>
8043
8044 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
8045 * aclocal.m4, configure: Re-generate.
8046 Fix PR gdb/391.
8047
8048 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
8049
8050 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
8051 instead of tm_print_insn.
8052
8053 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
8054
8055 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
8056
8057 2002-04-14 Andrew Cagney <ac131313@redhat.com>
8058
8059 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
8060 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
8061 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
8062
8063 2002-04-12 Don Howard <dhoward@redhat.com>
8064
8065 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
8066 max_user_call_depth.
8067 (init_cmd_lists): Initialize the new value;
8068 * cli/cli-script.c (execute_user_command): Limit the call depth of
8069 user defined commands. This avoids a core-dump when user commands
8070 are infinitly recursive.
8071
8072 2002-04-12 Kevin Buettner <kevinb@redhat.com>
8073
8074 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
8075 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
8076 from tdep struct instead of DEFAULT_LR_SAVE.
8077 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
8078 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
8079 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
8080
8081 2002-04-12 Michael Snyder <msnyder@redhat.com>
8082
8083 * Remote.c: Spelling fix.
8084 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
8085 If no symbol found for "sbrk", try "_sbrk".
8086 (make_output_phdrs): Use bfd_section_name.
8087 (gcore_copy_callback): Use bfd_section_name.
8088 * eval.c: Indentation fix-ups.
8089 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
8090 in case it gets applied to an address that is already
8091 in the instruction space.
8092 * cli/cli-decode.c (help_list): Allow long lines to wrap.
8093 * symfile.c: Fix indentation, long lines.
8094 * source.c: White space fix-up.
8095
8096 2002-04-12 Andrew Cagney <cagney@redhat.com>
8097
8098 * defs.h (read_relative_register_raw_bytes): Delete declaration.
8099 * frame.c (frame_register_read): New function. Return non-zero on
8100 success.
8101 (read_relative_register_raw_bytes_for_frame): Delete.
8102 (read_relative_register_raw_bytes): Delete.
8103 * frame.h (frame_register_read): Declare.
8104 * d30v-tdep.c: Update Copyright. Use frame_register_read.
8105 * sh-tdep.c: Ditto.
8106 * infcmd.c (do_registers_info): Ditto.
8107 * hppa-tdep.c: Ditto.
8108 * rs6000-tdep.c: Ditto.
8109 * h8500-tdep.c: Ditto.
8110 * mips-tdep.c: Ditto.
8111 * h8300-tdep.c: Ditto.
8112 * z8k-tdep.c: Ditto.
8113
8114 2002-04-12 Kevin Buettner <kevinb@redhat.com>
8115
8116 From Jimi X <jimix@watson.ibm.com>:
8117 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
8118 64-bit SysV ABI.
8119
8120 2002-04-12 Kevin Buettner <kevinb@redhat.com>
8121
8122 From Jimi X <jimix@watson.ibm.com>:
8123 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
8124 bfd info.
8125
8126 2002-04-12 Kevin Buettner <kevinb@redhat.com>
8127
8128 From Jimi X <jimix@watson.ibm.com>:
8129 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
8130 register sets for these processor variants.
8131
8132 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
8133
8134 * regformats/reg-ppc.dat: Support FPSCR.
8135
8136 2002-04-11 Kevin Buettner <kevinb@redhat.com>
8137
8138 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
8139 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
8140 Add fpscr as an invalid/unfetchable register.
8141 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
8142 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
8143 (fill_fpregset): Add support for register fpscr.
8144 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
8145 (fill_gregset): Account for the fact that register ``mq'' might
8146 not exist.
8147 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
8148 (registers_power): Add fpscr to register set at slot 71.
8149 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
8150 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
8151
8152 2002-04-11 Michael Snyder <msnyder@redhat.com>
8153
8154 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
8155 * configure: Regenerate.
8156 * config.in: Regenerate.
8157 * acconfig.h: Add define for _SYSCALL32.
8158 * core-sol2.c: Remove #define _SYSCALL32.
8159 * solib-legacy.c: Remove #define _SYSCALL32.
8160
8161 2002-04-10 Andrew Cagney <ac131313@redhat.com>
8162
8163 * stack.c (select_frame): Cleanup internal error message, do not
8164 use %p.
8165
8166 2002-04-10 Andrew Cagney <ac131313@redhat.com>
8167
8168 * stack.c (select_frame): Check that selected_frame and the
8169 specified level are as expected.
8170 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
8171 Update copyright.
8172 * frame.h (struct frame_info): Add field `level'. Update
8173 copyright.
8174 Work-in-progress PR gdb/464.
8175
8176 2002-04-10 Andrew Cagney <ac131313@redhat.com>
8177
8178 * maint.c (maint_print_section_info): Rename print_section_info.
8179 (print_bfd_section_info, print_objfile_section_info): Update.
8180 * inferior.h (struct gdbarch): Add opaque declaration.
8181 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
8182 * gdbarch.h: Regenerate.
8183
8184 2002-04-10 Michal Ludvig <mludvig@suse.cz>
8185
8186 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
8187 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
8188 (kernel_u_size): Added.
8189 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
8190 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
8191
8192 2002-04-04 Jim Ingham <jingham@apple.com>
8193
8194 * valarith.c (find_size_for_pointer_math): New function, either returns
8195 the size for a pointer's target, returns 1 for void *, or errors for
8196 incomplete types.
8197 (value_add, value_sub): use find_size_for_pointer_math.
8198
8199 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
8200
8201 * linux-low.c (linux_look_up_symbols): New hook.
8202 (linux_target_ops): Add linux_look_up_symbols.
8203 * remote-utils.c (decode_address): New function.
8204 (look_up_one_symbol): New function.
8205 * server.c (handle_query): Call target look_up_symbols hook.
8206 * server.h (look_up_one_symbol): Add prototype.
8207 * target.h (struct target_ops): Add look_up_symbols hook.
8208
8209 2002-04-09 Andrew Cagney <ac131313@redhat.com>
8210
8211 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
8212 override FP_REGNUM with frame->fp. Update copyright.
8213 * parse.c (num_std_regs, std_regs): Delete.
8214 (target_map_name_to_register): Do not search std_regs. Update
8215 function description.
8216 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
8217 declarations. Update copyright.
8218 Fix PR gdb/251.
8219
8220 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
8221
8222 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
8223 after the last symbol in a block.
8224
8225 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
8226
8227 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
8228 is non zero as a found symbol.
8229
8230 2002-04-08 Andrew Cagney <ac131313@redhat.com>
8231
8232 * findvar.c: Include "builtin-regs.h".
8233 (value_of_register): Call value_of_builtin_reg when applicable.
8234 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
8235 (target_map_name_to_register): Call
8236 builtin_reg_map_name_to_regnum.
8237 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
8238 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
8239 (builtin_regs_h): Define.
8240 (builtin-regs.o): New target.
8241 (findvar.o): Add $(builtin_regs_h).
8242 * builtin-regs.c, builtin-regs.h: New files.
8243 * std-regs.c: New file.
8244 Partial fix for PR gdb/251.
8245
8246 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8247
8248 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
8249 it's no longer required.
8250
8251 2002-04-08 Andrew Cagney <ac131313@redhat.com>
8252
8253 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
8254
8255 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8256
8257 From Jimi X <jimix@watson.ibm.com>:
8258 * rs6000-tdep.c (rs6000_software_single_step): Use
8259 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
8260 and size. Use target_insert_breakpoint() and
8261 target_remove_breakpoint() to insert and remove breakpoints
8262 instead of explicit memory reads and writes.
8263
8264 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8265
8266 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
8267 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
8268 ELF_OBJECT_FORMAT ifdef.
8269
8270 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8271
8272 From Jimi X <jimix@watson.ibm.com>:
8273 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
8274
8275 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8276
8277 From Jimi X <jimix@watson.ibm.com>:
8278 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
8279 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
8280
8281 2002-04-07 Mark Kettenis <kettenis@gnu.org>
8282
8283 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
8284 s/asprintf/xasprintf/.
8285 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
8286
8287 2002-04-07 Andrew Cagney <ac131313@redhat.com>
8288
8289 I believe Jeff Law denies responsability for this one:
8290 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
8291 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
8292 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
8293 Work-around for PR gdb/366.
8294
8295 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
8296
8297 * remote-e7000.c (write_small, e7000_read_inferior_memory,
8298 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
8299 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
8300
8301 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
8302
8303 * sh-tdep.c (sh_fp_frame_init_saved_regs,
8304 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
8305 information.
8306
8307 2002-04-07 Andrew Cagney <ac131313@redhat.com>
8308
8309 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
8310 maintainer.
8311
8312 2002-04-07 Andrew Cagney <ac131313@redhat.com>
8313
8314 * README (Reporting Bugs in GDB): Document the bug web page as the
8315 prefered way of submitting bugs.
8316 Fix PR gdb/402.
8317
8318 2002-04-06 Andrew Cagney <ac131313@redhat.com>
8319
8320 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
8321 -1. Update comment.
8322 * gdbarch.h, gdbarch.c: Re-generate.
8323
8324 2002-04-07 Andreas Schwab <schwab@suse.de>
8325
8326 * m68klinux-nat.c (fill_fpregset): Properly pass address of
8327 buffer to regcache_collect.
8328
8329 2002-04-06 Andrew Cagney <ac131313@redhat.com>
8330
8331 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
8332 * gdbarch.c, gdbarch.h: Re-generate.
8333
8334 2002-04-06 Andrew Cagney <ac131313@redhat.com>
8335
8336 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
8337 declaration. Fix -Werror.
8338
8339 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
8340
8341 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
8342 * gdbarch.c: Regenerate.
8343
8344 2002-04-05 Michael Snyder <msnyder@redhat.com>
8345
8346 * breakpoint.c (clear_command): Rewrite middle section to
8347 combine two loops with identical control conditions.
8348 Add a cleanup to eliminate a memory leak.
8349 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
8350
8351 2002-04-05 H.J. Lu (hjl@gnu.org)
8352
8353 * solib-svr4.c (bkpt_names): Add "__start".
8354
8355 2002-04-04 Andrew Cagney <ac131313@redhat.com>
8356
8357 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
8358 as test for 64 bit target.
8359
8360 2002-04-05 Andrew Cagney <ac131313@redhat.com>
8361
8362 * h8500-tdep.c (h8500_write_fp): Delete function.
8363 * dwarf2cfi.c (cfi_write_fp): Document as not used.
8364 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
8365 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
8366 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
8367 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
8368 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
8369 (s390_write_fp):
8370 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
8371 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
8372 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
8373 (d10v_write_fp): Delete function.
8374 * inferior.h (write_fp, generic_target_write_fp): Delete
8375 declarations.
8376 * regcache.c (generic_target_write_fp): Delete function.
8377 (write_fp): Delete function.
8378 * gdbarch.sh (TARGET_WRITE_FP): Delete.
8379 * gdbarch.h, gdbarch.c: Regenerate.
8380 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
8381 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
8382 (sparc64_write_fp): Delete declaration.
8383 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
8384 (h8500_write_fp): Delete declaration.
8385
8386 2002-04-04 Andrew Cagney <ac131313@redhat.com>
8387
8388 * sparc-tdep.c (sparc64_write_fp): Delete.
8389 (sparc_push_dummy_frame): Replace write_fp call with code to store
8390 the FP directly.
8391 (sparc_gdbarch_init): Do not initialize write_fp.
8392
8393 2002-04-05 Kevin Buettner <kevinb@redhat.com>
8394
8395 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
8396 clause.
8397
8398 2002-03-29 Jim Blandy <jimb@redhat.com>
8399
8400 * stack.c (get_selected_block): Add new argument `addr_in_block',
8401 used to return the exact code address we used to select the block,
8402 not just the block.
8403 * blockframe.c (get_frame_block, get_current_block): Same.
8404 * frame.h (get_frame_block, get_current_block,
8405 get_selected_block): Update declarations.
8406 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
8407 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
8408
8409 2002-04-05 Michael Snyder <msnyder@redhat.com>
8410
8411 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
8412 warning message.
8413
8414 2002-04-05 J. Brobecker <brobecker@gnat.com>
8415
8416 * utils.c (xfullpath): New function.
8417 * defs.h (xfullpath): Add declaration.
8418 * source.c (openp): Use xfullpath in place of gdb_realpath to
8419 avoid resolving the basename part of filenames when the
8420 associated file is a symbolic link. This fixes a potential
8421 inconsistency between the filenames known to GDB and the
8422 filenames it prints in the annotations.
8423 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
8424 to be able to match a filename with either the real filename, or
8425 the name of any symbolic link to this file.
8426 (lookup_partial_symtab): Ditto.
8427
8428 2002-04-04 Michael Snyder <msnyder@redhat.com>
8429
8430 * breakpoint.c: Add support for hardware breakpoints in overlays.
8431 (overlay_events_enabled): New state variable.
8432 (insert_breakpoints): Use overlay_events_enabled to decide
8433 whether to attempt to set a breakpoint at the overlay load addr.
8434 Handle bp_hardware_breakpoint as well as bp_breakpoint.
8435 (remove_breakpoint): Use overlay_events_enabled to decide
8436 whether breakpoints need to be removed from overlay load addr.
8437 Handle bp_hardware_breakpoint as well as bp_breakpoint.
8438 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
8439 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
8440 disable_overlay_breakpoints): Update overlay_events_enabled.
8441
8442 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
8443
8444 * dwarf2read.c (struct function_range): New.
8445 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
8446 (check_cu_functions): New.
8447 (read_file_scope): Initialize global function lists.
8448 Call dwarf_decode_line after processing children.
8449 (read_func_scope): Add to global function list.
8450 (dwarf_decode_lines): Call check_cu_functions everywhere
8451 record_line is called. Call record_line with a linenumber
8452 of 0 to mark sequence ends.
8453
8454 2002-04-04 Michal Ludvig <mludvig@suse.cz>
8455
8456 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
8457 change sync with glibc.
8458
8459 2002-04-03 Jim Blandy <jimb@redhat.com>
8460
8461 * configure.in: Call AC_C_INLINE.
8462 * configure: Regenerated.
8463
8464 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
8465
8466 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
8467 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
8468
8469 2002-03-31 Mark Kettenis <kettenis@gnu.org>
8470
8471 * NEWS: Mention gcore support on FreeBSD/i386.
8472
8473 * fbsd-proc.c: New file.
8474 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
8475 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
8476
8477 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
8478 while statement.
8479
8480 2002-03-29 Jim Blandy <jimb@redhat.com>
8481
8482 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
8483 unescaped newlines in string literals, but newer ones don't. So
8484 escape them.
8485
8486 2002-03-26 Michael Snyder <msnyder@redhat.com>
8487 Andrew Cagney <cagney@redhat.com>
8488
8489 * cli/cli-dump.c: New file. Dump memory to file,
8490 restore file to memory.
8491 * cli/cli-dump.h: New file.
8492 * Makefile.in: Add rules, dependencies for cli-dump.o.
8493 * NEWS: Mention new commands.
8494
8495 2002-03-28 Michael Snyder <msnyder@redhat.com>
8496
8497 * symfile.c (symbol_file_add): Move test for null symbols to later.
8498
8499 2002-03-27 Andrew Cagney <ac131313@redhat.com>
8500
8501 From veksler at il.ibm.com:
8502 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
8503 the xstrduped original path.
8504 Fix PR gdb/417.
8505
8506 2002-03-27 Michael Snyder <msnyder@redhat.com>
8507
8508 * breakpoint.c (_initialize_breakpoint): Clean up help string.
8509 * infcmd.c (_initialize_infcmd): Ditto.
8510 * language.c (_initialize_language): Ditto.
8511 * symfile.c (_initialize_symfile): Ditto.
8512 * top.c (_init_main): Ditto.
8513 * cli/cli-cmds.c (init_cli_cmds): Ditto.
8514
8515 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
8516
8517 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
8518 vector registers handling.
8519 (skip_prologue): Handle new AltiVec instructions. Fill in new
8520 fields of frame data.
8521 (frame_get_saved_regs): Fill in information for AltiVec registers.
8522
8523 2002-03-27 Jim Blandy <jimb@redhat.com>
8524
8525 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
8526 a function; leave this macro here to invoke that function.
8527 (symbol_init_mangled_name): Declaration for that function.
8528 * symtab.c (symbol_init_mangled_name): New function.
8529
8530 2002-03-27 Andrew Cagney <ac131313@redhat.com>
8531
8532 * valarith.c: Replace strerror with safe_strerror.
8533 * tracepoint.c: Ditto.
8534 * lin-lwp.c: Ditto.
8535 * go32-nat.c: Ditto.
8536 * inflow.c: Ditto.
8537 * gnu-nat.c: Ditto.
8538
8539 2002-03-27 Andreas Schwab <schwab@suse.de>
8540
8541 * event-top.c (command_line_handler): Remove useless if.
8542
8543 2002-03-27 Andreas Jaeger <aj@suse.de>
8544
8545 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
8546 comment.
8547
8548 2002-03-27 Michal Ludvig <mludvig@suse.cz>
8549
8550 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
8551 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
8552 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
8553 (x86_64_linux_dr_get_status, supply_gregset),
8554 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
8555 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
8556 (x86_64_register_info_table): Add.
8557 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
8558 (x86_64_register_raw_size, x86_64_register_virtual_type),
8559 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
8560 general x86_64_register_info_table.
8561 (i386_gdbarch_init): gdbarch_register_bytes is now set
8562 dynamicaly during initialization.
8563 * regformats/reg-x86-64.dat: Synced with changes to registers above.
8564 * gdbserver/linux-x86-64-low.c: Ditto.
8565
8566 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
8567
8568 * gdbserver/server.c (main): Call target_signal_to_host_p
8569 and target_signal_to_host on signals received from the remote.
8570 * gdbserver/remote-utils.c (prepare_resume_reply): Call
8571 target_signal_from_host on signals sent to the remote.
8572 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
8573 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
8574
8575 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
8576
8577 * signals/signals.c: Include "server.h" in gdbserver build.
8578 (target_signal_from_name): Don't use STREQ.
8579 (_initialize_signals): Likewise. Don't include function in
8580 gdbserver build.
8581
8582 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
8583
8584 * signals.c: Moved to...
8585 * signals/signals.c: Here.
8586 * Makefile (signals.o): Update.
8587
8588 2002-03-26 Jeff Law (law@redhat.com)
8589
8590 * somread.c (som_symtab_read): Remove some commented out code and
8591 updated related comments. Do not set the minimal symbol table to
8592 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
8593 in a dynamic executable.
8594 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
8595 where we are unable to find the minimal symbol for the given
8596 PC value.
8597
8598 2002-03-25 Jeff Law (law@redhat.com)
8599
8600 * linux-proc.c (read_mapping): Scan up to end of line for filename.
8601
8602 2002-03-25 Michal Ludvig <mludvig@suse.cz>
8603
8604 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
8605
8606 2002-03-23 Andrew Cagney <ac131313@redhat.com>
8607
8608 * command.h: Update copyright.
8609 (struct cmd_list_element): Replace definition with opaque
8610 declaration.
8611 (enum cmd_types): Document that it will eventually be moved to
8612 cli/cli-decode.h
8613 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
8614 (MALLOCED_REPLACEMENT): Delete macro.
8615 * Makefile.in (cli_decode_h): Add $(command_h).
8616 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
8617 * top.c: Include "cli/cli-decode.h".
8618 * completer.c: Include "cli/cli-decode.h".
8619 * maint.c: Include "cli/cli-decode.h".
8620 * cli/cli-decode.h: Include "command.h".
8621 (enum command_class): Delete.
8622 (enum cmd_types): Comment out.
8623 (enum cmd_auto_boolean): Delete.
8624 (enum var_types): Delete.
8625
8626 2002-03-23 Andrew Cagney <ac131313@redhat.com>
8627
8628 * cli/cli-decode.c: Include "gdb_assert.h".
8629 (add_set_or_show_cmd): New static function.
8630 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
8631 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
8632 all fields, such as func, from the set command.
8633
8634 2002-03-23 Andrew Cagney <ac131313@redhat.com>
8635
8636 * MAINTAINERS (sh-elf): Change warning flag to -w.
8637
8638 2002-03-23 Andrew Cagney <cagney@redhat.com>
8639
8640 * defs.h (error): Add printf format attribute.
8641 * thread-db.c (thread_from_lwp): Fix error format string.
8642 * stack.c (parse_frame_specification): Ditto.
8643 * cli/cli-decode.c (undef_cmd_error): Ditto.
8644 * scm-lang.c (scm_lookup_name): Ditto.
8645 * tracepoint.c (trace_error): Ditto.
8646 * remote-utils.c (usage): Ditto.
8647 * remote.c (compare_sections_command): Ditto.
8648 Fix PR gdb/328.
8649
8650 2002-03-22 Andrew Cagney <ac131313@redhat.com>
8651
8652 * gdbtypes.c (append_composite_type_field): New function.
8653 (init_composite_type): New function.
8654 * gdbtypes.h (append_composite_type_field): Declare.
8655 (init_composite_type): Ditto.
8656
8657 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
8658
8659 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
8660 function.
8661 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
8662 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
8663 structure returning convention for SYSV ABI case, but not
8664 for GNU/Linux, FreeBSD, or NetBSD.
8665
8666 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
8667
8668 * symtab.h (lookup_block_symbol): Add mangled_name argument
8669 to prototype.
8670
8671 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
8672 with new mangled_name argument.
8673 * linespec.c (decode_line_1): Likewise.
8674 * valops (value_of_this): Likewise.
8675 * symtab.c (lookup_transparent_type): Likewise.
8676 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
8677 (lookup_symbol): If we are given a mangled name, pass it down
8678 to lookup_symbol_aux.
8679 (lookup_block_symbol): If we are given a mangled name to check
8680 against, only return symbols which match it.
8681
8682 2002-03-22 Christopher Faylor <cgf@redhat.com>
8683
8684 * win32-nat.c (child_create_inferior): Check for proper shell to use
8685 here, in case the user changes it on the fly.
8686 (_initialize_inftarg): Remove shell path considerations.
8687
8688 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
8689
8690 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
8691 for gdbarch_max_register_raw_size and max_register_virtual_size.
8692 Adjust copyright year.
8693
8694 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
8695
8696 * dbxread.c (process_one_symbol): Extend the first N_SLINE
8697 in a function to cover the entire beginning of the function
8698 as well if it does not already.
8699
8700 2002-03-21 Tom Rix <trix@redhat.com>
8701
8702 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
8703 (rs6000_ptrace64): Renamed from ptrace64.
8704
8705 2002-03-20 Martin M. Hunt <hunt@redhat.com>
8706
8707 * gdbserver/remote-utils.c (remote_open): Don't call
8708 getprotobyname, we're all using TCP here so just use
8709 IPPROTO_TCP.
8710 * gdbserver/gdbreplay.c (remote_open): Ditto.
8711
8712 2002-03-20 Martin M. Hunt <hunt@redhat.com>
8713
8714 * regcache.c (_initialize_regcache): No need to call
8715 build_regcache() at this time; it gets called whenever
8716 the gdbarch changes.
8717
8718 2002-03-20 David O'Brien <obrien@FreeBSD.org>
8719
8720 * sparc-nat.c: Include sys/param.h where possible.
8721
8722 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
8723
8724 Fix PR gdb/422.
8725 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
8726 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
8727 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
8728 complex types.
8729 * stabsread.c (rs6000_builtin_type): Likewise.
8730 (read_sun_floating_type): Likewise.
8731
8732 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8733
8734 * stabsread.c (read_member_functions): Remove skip code for duplicate
8735 constructor/destructor methods. Use standard parsing for these
8736 methods and just do not chain them to the list of methods after
8737 parsing.
8738
8739 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
8740
8741 * coffread.c: Remove redundant static declarations. Replace
8742 occurrences of `PTR' with `void *'.
8743 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
8744 * top.h (quit_cover): Likewise.
8745 * defs.h (catch_errors): Likewise.
8746
8747 2002-03-18 Andrew Cagney <ac131313@redhat.com>
8748
8749 * defs.h (XMALLOC): Define.
8750 * gdb-events.sh (XMALLOC): Delete macro.
8751 * gdb-events.c, gdb-events.h: Regenerate.
8752 * gdbarch.sh (XMALLOC): Delete macro.
8753 * gdbarch.c: Regenerate.
8754 * serial.c (XMALLOC): Delete macro.
8755 * ui-file.c (XMALLOC): Ditto.
8756 * ser-unix.h (XMALLOC): Ditto.
8757 * sh-tdep.c (XMALLOC): Ditto.
8758 * ui-out.c (XMALLOC): Ditto.
8759 * utils.c (XMALLOC): Ditto.
8760 * i386-tdep.c (XMALLOC): Ditto.
8761 * gdb-events.c (XMALLOC): Ditto.
8762 * d10v-tdep.c (XMALLOC): Ditto.
8763 * cli-out.c (XMALLOC): Ditto.
8764
8765 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
8766 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
8767 * ui-file.c, ui-out.c: Ditto.
8768
8769 2002-03-18 Andrew Cagney <ac131313@redhat.com>
8770
8771 * command.h (struct cmd_list_element): Add field context.
8772 (set_cmd_context, get_cmd_context): Declare.
8773 * cli/cli-decode.h: Ditto.
8774 * cli/cli-decode.c (get_cmd_context): New function.
8775 (set_cmd_context): New function.
8776 (add_cmd): Initialize context.
8777 Part of fixing PR gdb/145 and PR gdb/146.
8778
8779 2002-03-17 Andrew Cagney <ac131313@redhat.com>
8780
8781 * cli/cli-decode.c (cmd_type): New function.
8782 * command.h (cmd_type): Declare.
8783 * infrun.c (set_schedlock_func): Call function cmd_type.
8784 * kod.c (kod_set_os): Call cmd_type.
8785 * cris-tdep.c (cris_version_update): Use function cmd_type.
8786 (cris_mode_update, cris_abi_update): Ditto.
8787
8788 * command.h: (execute_cmd_post_hook): Declare.
8789 (execute_cmd_pre_hook): Declare.
8790 * cli/cli-script.c (clear_hook_in_cleanup): New function.
8791 (execute_cmd_post_hook, execute_cmd_pre_hook): New
8792 functions. Execute pre/post hook while ensuring that afterwords
8793 hook_in is cleared.
8794 * top.c (execute_command): Use execute_cmd_post_hook, and
8795 execute_cmd_pre_hook to execute pre/post commands.
8796 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
8797 hook_stop_stub.
8798 (hook_stop_stub): Call execute_cmd_pre_hook.
8799
8800 2002-03-17 Andrew Cagney <ac131313@redhat.com>
8801
8802 * kod.c (kod_set_os): Revert previous change. Is called by ``info
8803 set'' and this leads to a core dump. Move xstrdup of
8804 operating_system to after check that it is not NULL.
8805
8806 2002-03-17 Andrew Cagney <ac131313@redhat.com>
8807
8808 * kod.c (kod_set_os): Remove unnecessary check that
8809 ``command->type'' is set_cmd.
8810
8811 * valprint.c (set_input_radix): Use input_radix.
8812 (set_output_radix): Use output_radix.
8813 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
8814 isn't reverted.
8815
8816 2002-03-16 Andrew Cagney <ac131313@redhat.com>
8817
8818 * value.h (struct value): Delete field ``substring_addr''. Change
8819 aligner fields to force_doublest_align, force_longest_align,
8820 force_core_addr_align and force_pointer_aligh.
8821
8822 * value.h (struct value): Fix typo in above change.
8823
8824 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8825
8826 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
8827 to fix internal_error from ``maintenance print architecture''.
8828
8829 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8830
8831 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
8832 for gcc versions after gcc-2.8.1.
8833
8834 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8835
8836 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
8837 for method resolution. Restore adjustment of ``this'' pointer after
8838 calling value_struct_elt, which was accidentally removed during the
8839 HP merge.
8840
8841 2002-03-15 Andrew Cagney <ac131313@redhat.com>
8842
8843 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
8844 value_of_register.
8845 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
8846 get_saved_register.
8847 * value.h (value_of_register): Update.
8848
8849 2002-03-14 Richard Henderson <rth@redhat.com>
8850
8851 * configure.in: Detect declaration for canonicalize_file_name.
8852 * utils.c (canonicalize_file_name): Declare, if needed.
8853 (gdb_realpath): Prefer realpath if available and usable.
8854 * config.in, configure: Rebuild.
8855
8856 2002-03-14 Richard Henderson <rth@redhat.com>
8857
8858 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
8859 a constant array bound.
8860
8861 * MAINTAINERS: Add myself to write-after-approval.
8862
8863 2002-03-14 Michael Snyder <msnyder@redhat.com>
8864
8865 * symfile.c (syms_from_objfile): Return immediately if no syms.
8866 (symbol_file_add): Return immediately if no syms.
8867 (find_sym_fns): Return immediately if no syms.
8868
8869 2002-03-13 Michal Ludvig <mludvig@suse.cz>
8870
8871 * gdbserver/remote-util.c (remote_open): Print remote-side's
8872 IP address when remote debugging over the network.
8873
8874 2002-03-12 David O'Brien <obrien@FreeBSD.org>
8875
8876 * config/sparc/fbsd.mh: Fix copyright.
8877 * config/sparc/fbsd.mt: Likewise.
8878
8879 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
8880
8881 * MAINTAINERS: Fix typo in name of gdb warnings option.
8882 (x86-64): Fix formating so that this can be parsed by awk.
8883
8884 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
8885
8886 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
8887 * defs.h: Include "gdb/signals.h".
8888 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
8889
8890 2002-03-10 Michal Ludvig <mludvig@suse.cz>
8891
8892 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
8893 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
8894 from x86-64-tdep.h
8895
8896 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
8897 Don Howard <dhoward@redhat.com>
8898
8899 * mips-tdep.c (ST0_FR): Define.
8900 (mips2_fp_compat): New function, temporarily disabled.
8901 (mips_read_fp_register_single): New function.
8902 (mips_read_fp_register_double): New function.
8903 (mips_print_register): Use them.
8904 (do_fp_register_row): Likewise.
8905
8906 2002-03-09 Andrew Cagney <ac131313@redhat.com>
8907
8908 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
8909 approval''.
8910
8911 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8912
8913 * stabsread.c (read_member_functions): Fix is_stub test for
8914 static member functions, improve comment.
8915
8916 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
8917
8918 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
8919 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
8920 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
8921 commands that set boolean values.
8922 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
8923 (arm_rdi_resume): Always initialize PC.
8924 (arm_rdi_open): Don't use rslt as a boolean.
8925 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
8926 (arm_rdi_fetch_registers, arm_rdi_store_registers)
8927 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
8928 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
8929
8930 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
8931
8932 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
8933 * configure: Rebuilt.
8934
8935 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
8936
8937 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
8938 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
8939
8940 2002-03-06 Andrew Cagney <ac131313@redhat.com>
8941
8942 * cli/cli-decode.c (set_cmd_completer): New function.
8943 * command.h (set_cmd_completer): Declare.
8944 * cli/cli-decode.h (set_cmd_completer): Ditto.
8945
8946 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
8947 * cli/cli-cmds.c (init_cli_cmds): Ditto.
8948 * win32-nat.c (_initialize_inftarg): Ditto.
8949 * remote-rdi.c (_initialize_remote_rdi): Ditto.
8950 * proc-api.c (_initialize_proc_api): Ditto.
8951 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
8952 * source.c (_initialize_source): Ditto.
8953 * exec.c (_initialize_exec): Ditto.
8954 * solib.c (_initialize_solib): Ditto.
8955 * top.c (init_main): Ditto.
8956 * tracepoint.c (_initialize_tracepoint): Ditto.
8957 * symfile.c (_initialize_symfile): Ditto.
8958 * printcmd.c (_initialize_printcmd): Ditto.
8959 * infcmd.c (_initialize_infcmd): Ditto.
8960 * corefile.c (_initialize_core): Ditto.
8961
8962 2002-03-05 Andrew Cagney <ac131313@redhat.com>
8963
8964 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
8965
8966 2002-03-05 Andrew Cagney <ac131313@redhat.com>
8967
8968 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
8969
8970 2002-03-05 Andrew Cagney <ac131313@redhat.com>
8971
8972 * NEWS: Update headings, 5.2 has branched.
8973
8974 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
8975
8976 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
8977 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
8978 (register_addr, REGISTER_RAW_SIZE): Likewise.
8979 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
8980 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
8981
8982 2002-03-03 Michal Ludvig <mludvig@suse.cz>
8983
8984 * MAINTAINERS (x86-64): Add myself.
8985 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
8986 changed value_ptr -> struct value *
8987
8988 2002-03-01 David O'Brien <obrien@FreeBSD.org>
8989
8990 * configure.host (sparc64-*-freebsd): Add.
8991 * configure.tgt: Likewise.
8992 * config/sparc/fbsd.mh: New file.
8993 * config/sparc/fbsd.mt: Likewise.
8994 * config/sparc/nm-fbsd.h: Likewise.
8995 * config/sparc/tm-fbsd.h: Likewise.
8996
8997 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
8998
8999 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
9000 regformats/reg-s390x.dat.
9001
9002 2002-03-01 Andrew Cagney <ac131313@redhat.com>
9003
9004 * utils.c: Add FIXME explaining true/false problem.
9005
9006 2002-02-28 Andrew Cagney <ac131313@redhat.com>
9007
9008 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
9009
9010 2002-02-28 Michael Chastain <mec@shout.net>
9011
9012 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
9013
9014 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
9015
9016 * gdbserver/linux-s390-low.c: New file.
9017 * regformats/reg-s390.dat: New file.
9018 * regformats/reg-s390x.dat: New file.
9019 * gdbserver/configure.srv: Add S/390.
9020 * gdbserver/Makefile.in: Add S/390.
9021 * configure.tgt: Enable gdbserver for S/390.
9022
9023 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
9024
9025 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
9026 first line of the doc string for "info dos", except at the end of
9027 the sentence, since the short help stops at the first period.
9028
9029 2002-02-28 Jason Merrill <jason@redhat.com>
9030
9031 * dwarf2read.c (dwarf_cfi_name): Add new codes.
9032
9033 2002-02-27 Fred Fish <fnf@redhat.com>
9034
9035 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
9036 comment (dumy -> dummy).
9037
9038 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9039
9040 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
9041
9042 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
9043
9044 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
9045
9046 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
9047
9048 * gdbserver/acconfig.h: New file.
9049 * gdbserver/i387-fp.c: New file.
9050 * gdbserver/i387-fp.h: New file.
9051 * gdbserver/linux-x86-64.c: New file.
9052 * regformats/reg-x86-64.dat: New file.
9053 * configure.tgt: Add x86_64-*-linux* gdbserver support.
9054 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
9055 * gdbserver/configure.in: Add support for regsets.
9056 * gdbserver/config.in: Regenerate.
9057 * gdbserver/configure: Regenerate.
9058 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
9059 * gdbserver/linux-low.h: New file.
9060 * gdbserver/linux-low.c: Include "linux-low.h". Add support
9061 for regsets.
9062 * gdbserver/linux-arm-low.c: Include "linux-low.h".
9063 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
9064 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
9065 * gdbserver/linux-mips-low.c: Include "linux-low.h".
9066 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
9067 * gdbserver/linux-sh-low.c: Include "linux-low.h".
9068 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
9069 "i387-fp.h". Add PTRACE_GETREGS and friends.
9070 * gdbserver/regcache.c (supply_register): New function.
9071 (supply_register_by_name): New function.
9072 (collect_register): New function.
9073 (collect_register_by_name): New function.
9074
9075 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
9076
9077 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
9078 (config.status): Add configure.srv dependency.
9079 (server_h): Add config.h dependency.
9080
9081 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
9082
9083 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
9084 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
9085 * gdbserver/configure.srv: Change i386-*-linux* to use
9086 reg-i386-linux.o.
9087
9088 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9089
9090 * x86-64-tdep.c: Re-indent. Update copyright date.
9091
9092 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9093
9094 From Michal Ludvig <mludvig@suse.cz>:
9095 * x86-64-tdep.c (value.h): Delete.
9096 (gdb_assert.h): Include.
9097 (x86_64_register_convert_to_virtual,
9098 x86_64_register_convert_to_raw ): Add check which lets only
9099 floating-point values to be converted.
9100 (value_push): Delete.
9101 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
9102 (i386_gdbarch_init): Number of register_bytes fixed.
9103
9104 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9105
9106 * MAINTAINERS: Add x86-64 target.
9107
9108 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9109
9110 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
9111 * osfsolib.c (solib_map_sections): Ditto.
9112 * irix5-nat.c (solib_map_sections): Ditto.
9113 * corelow.c (gdb_check_format): Ditto.
9114 * symfile.c (symfile_bfd_open): Ditto.
9115 * solib.c (solib_map_sections): Ditto.
9116 Fix PR gdb/354.
9117
9118 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9119
9120 * remote.c (_initialize_remote): By default, disable ``e'' and
9121 ``E'' step out-of-range packets.
9122
9123 2002-02-26 Andreas Schwab <schwab@suse.de>
9124
9125 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
9126 m68k_linux_frame_saved_pc.
9127 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
9128 in_sigtramp.
9129 (SIGCONTEXT_PC_OFFSET): Remove.
9130 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
9131 m68k_linux_sigtramp_saved_pc): New functions.
9132 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
9133 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
9134 (UCONTEXT_PC_OFFSET): Define.
9135 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
9136 non-RT and RT signal trampolines.
9137
9138 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
9139
9140 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
9141 (TARGET_NBPG, STACK_END_ADDR): Delete
9142 (VARIABLES_INSIDE_BLOCK): Delete.
9143
9144 2002-02-25 Andrew Cagney <ac131313@redhat.com>
9145
9146 * utils.c (perror_with_name): Make string parameter constant.
9147 (print_sys_errmsg): Ditto.
9148 (query): Ditto.
9149 * defs.h (perror_with_name): Update.
9150 (print_sys_errmsg): Update.
9151 (query): Update.
9152
9153 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
9154
9155 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
9156 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
9157
9158 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9159
9160 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
9161 if it already matches the current architecture from the exec file.
9162 Include arch-utils.h for gdbarch_info_init prototype.
9163 * Makefile.in (rs6000-nat.o): Update dependencies.
9164
9165 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
9166
9167 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
9168 list of exported variables.
9169
9170 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
9171
9172 * gdbserver/configure.srv: New file.
9173 * gdbserver/configure.in: Use configure.srv instead
9174 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
9175 from it.
9176 * gdbserver/configure: Regenerated.
9177 * gdbserver/terminal.h: New file.
9178 * gdbserver/Makefile.in: Update for configure changes. Remove
9179 more unneeded include paths.
9180
9181 2002-02-24 Andrew Cagney <ac131313@redhat.com>
9182
9183 From wiz at danbala:
9184 * config/sparc/tm-sp64.h: Fix grammar and typos.
9185 Fix PR gdb/287.
9186
9187 2002-02-24 Andrew Cagney <ac131313@redhat.com>
9188
9189 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
9190 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
9191 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
9192 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
9193 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
9194 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
9195 * s390-tdep.c: Ditto.
9196 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
9197 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
9198 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
9199 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
9200 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
9201 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
9202 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
9203 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
9204 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
9205 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
9206 Fix PR gdb/378.
9207
9208 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9209
9210 * lin-thread.c: Delete file.
9211 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
9212 to gdb_proc_service.h.
9213 * configure: Re-generate.
9214
9215 * ocd.c (ocd_open): Do not try to open the "ocd" device.
9216 * serial.c (serial_open): Delete check for "ocd".
9217 Fix PR gdb/349.
9218
9219 * Makefile.in (linux-thread.o): Delete target.
9220 * linux-thread.c: Delete file.
9221
9222 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
9223 renamed SH files to be consistent.
9224
9225 * symtab.c (sort_search_symbols): Use xfree.
9226
9227 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
9228
9229 * arm-linux-tdep.c (arm_linux_init_abi): Register
9230 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
9231 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
9232 definition with undef, since we don't want the sysvr4 definition.
9233 (SKIP_TRAMPOLINE_CODE): Likewise.
9234
9235 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9236
9237 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
9238
9239 * configure.in: (AC_CHECK_FUNCS) Added test for
9240 canonicalize_file_name Regenerated.
9241 * config.in, configure: Regenerated.
9242 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
9243 defined use canonicalize_file_name.
9244
9245 2002-02-23 Michael Chastain <mec@shout.net>
9246
9247 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
9248
9249 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9250
9251 * README: Remove references to cygnus.com.
9252 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
9253 dot com'' form. Remove references to cygnus.com and sourceware.
9254
9255 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9256
9257 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
9258 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
9259 1003.1-2001 no longer allows "head -1".
9260 * gdb/Makefile.in (version.c): Likewise.
9261 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
9262 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
9263 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
9264
9265 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9266
9267 * cli/cli-decode.c (cmd_cfunc_eq): New function.
9268 * command.h (cmd_cfunc_eq): Declare.
9269 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
9270
9271 * cli/cli-cmds.h (is_complete_command): Change parameter to a
9272 ``struct cmd_list_element *''.
9273 * cli/cli-cmds.c (is_complete_command): Update. Use
9274 cmd_cfunc_eq.
9275 * top.c (execute_command): Pass the command to
9276 is_complete_command.
9277 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
9278
9279 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9280
9281 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
9282 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
9283 architecture defines.
9284 * s390-tdep.c (s390_gdbarch_init): Likewise.
9285
9286 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
9287
9288 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
9289 (arm_linux_push_arguments): Likewise.
9290 (arm_linux_init_abi): Register them. Also register linux-specific
9291 call_dummy_words.
9292 (find_minsym_and_objfile): Use strcmp, not STREQ.
9293 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
9294 (arm_linux_call_dummy_words): Delete declaration.
9295 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
9296 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
9297 declarations.
9298 (LOWEST_PC): Delete.
9299
9300 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9301
9302 * maint.c (print_section_info): Do not prepend `0x' to filepos
9303 output, it will be handled by local_hex_string_custom.
9304
9305 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
9306
9307 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
9308 (store_newfpe_double, store_newfpe_extended, store_fpregister)
9309 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
9310
9311 2002-02-22 Jim Blandy <jimb@redhat.com>
9312
9313 Indicate that the bcache functions don't change the strings
9314 they're passed.
9315 * bcache.h (bcache, hash): Add `const' keywords to declarations.
9316 * bcache.c (bcache, hash): Add `const' keywords to definitions.
9317
9318 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
9319
9320 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
9321
9322 2002-02-21 Christopher Faylor <cgf@redhat.com>
9323
9324 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
9325 find the complete path to a loaded DLL.
9326
9327 2002-02-21 Fred Fish <fnf@redhat.com>
9328
9329 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
9330 that marks the end of the range of a function, enter a line number
9331 entry that has a line number of zero and a PC offset that matches
9332 the end of the function. This starts a range of PC's for which no
9333 line number information is known.
9334 * symtab.c (find_pc_sect_line): If our best fit is in a range of
9335 PC's for which no line number info is found (line number is zero)
9336 then we didn't find any valid line information.
9337 * symtab.h: Document use of zero line number entry.
9338
9339 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
9340
9341 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
9342 (have_ptrace_getvrregs): Define for run time checks.
9343 (gdb_vrregset_t): New type for Altivec register handling.
9344 (fetch_register, store_register): Fetch/store altivec register
9345 when needed.
9346 (fetch_altivec_register, store_altivec_register): New functions.
9347 (supply_vrregset, fill_vrregset): New functions.
9348 (fetch_altivec_registers, store_altivec_registers): New functions.
9349 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
9350 registers as well.
9351
9352 2002-02-21 Jiri Smid <smid@suse.cz>
9353
9354 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
9355
9356 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
9357
9358 * Makefile.in (armnbsd-nat.o): Update dependencies.
9359 * armnbsd-nat.c (supply_gregset): New function. Common code to
9360 supply the integer register set.
9361 (supply_fparegset): New function. Similar for FPA registers.
9362 (fetch_regs, fetch_fp_regs): Use them.
9363 (fetch_core_registers): Likewise.
9364 (fetch_elfcore_registers): New function.
9365 (arm_netbsd_elfcore_fns): New core-file type specification.
9366 (_initialize_arm_netbsd_nat): Register it.
9367
9368 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
9369
9370 * armnbsd-nat.c: Include gdbcore.h.
9371 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
9372 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
9373 'void' to declaration, to shut up ARI.
9374 (fetch_core_registers): Make static. Rewrite using supply_register.
9375 (arm_netbsd_core_fns): New core-file type specification.
9376 (_initialize_arm_netbsd_nat): New function.
9377
9378 2002-02-21 Christopher Faylor <cgf@redhat.com>
9379
9380 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
9381 value.
9382
9383 2002-02-20 Christopher Faylor <cgf@redhat.com>
9384
9385 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
9386 fails.
9387
9388 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9389
9390 * jv-exp.y (parse_number): Change type of implicit longs
9391 to builtin_type_uint64.
9392
9393 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9394
9395 * gdbserver/linux-low.c (mywait): Change argument to waitpid
9396 to be an integer instead of a `union wait'.
9397
9398 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9399
9400 * mips-linux-nat.c: Call the operating system GNU/Linux.
9401 * mips-linux-tdep.c: Likewise.
9402 * mips-tdep.c: Likewise.
9403
9404 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9405
9406 Fix PR gdb/265.
9407 * jv-exp.y (parse_number): Handle 64-bit integers.
9408
9409 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9410
9411 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
9412 AC_STDC_HEADERS to AC_HEADER_STDC.
9413 * gdbserver/configure: Regenerated.
9414
9415 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
9416
9417 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
9418 is defined.
9419 * sparc-tdep.c (get_longjmp_target): Likewise.
9420
9421 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
9422
9423 * News: Add news about ARM and Multi-arch. Mention the new target
9424 arm*-*-netbsd*.
9425
9426 2002-02-19 Jim Blandy <jimb@redhat.com>
9427
9428 * stabsread.c (error_type_complaint): Improve error message.
9429
9430 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
9431
9432 * gdbserver/README: Update documentation.
9433 * gdbserver/configure.in: Update configury to match documentation.
9434 * gdbserver/Makefile.in: Likewise.
9435 * gdbserver/configure: Regenerated.
9436 * gdbserver/aclocal.m4: New file, generated by aclocal.
9437 * gdbserver/config.in: New file, generated by autoheader.
9438
9439 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9440
9441 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
9442 armnbsd-nat.c.
9443
9444 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9445
9446 * arm-tdep.h (enum arm_float_model): New enum.
9447 (struct gdbarch_tdep): Add fp_model.
9448 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
9449 up floating-point conversions until we know the floating-point model
9450 in use by the inferior. Don't complain about being unable to
9451 determine the ABI of the inferior when we don't have one.
9452 (arm_extract_return_value): Support different floating-point models.
9453 (arm_store_return_value): Likewise.
9454 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
9455 ARM_FLOAT_SOFT.
9456 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
9457
9458 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9459
9460 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
9461 of ``current_gdbarch''.
9462
9463 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9464
9465 * armnbsd-nat.c : ANSIfy all function declarations.
9466 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
9467 (fetch_inferior_registers): Re-implement in terms of above.
9468 (store_register, store_regs, store_fp_register, store_fp_regs): New.
9469 (store_inferior_registers): Re-implement in terms of above.
9470
9471 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9472
9473 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
9474 kernel.
9475 * arm-linux-tdep.c: Likewise.
9476 * config/arm/tm-linux.h: Likewise.
9477
9478 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9479
9480 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
9481 * config/arm/nbsd.mt (TM_FILE): Delete.
9482 * config/arm/tm-nbsd.h: Delete.
9483
9484 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9485
9486 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
9487 Initialize CALL_DUMMY_LENGTH.
9488
9489 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9490
9491 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
9492 function.
9493 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
9494 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
9495 defines one thing and that is incorrect for this port.
9496 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
9497
9498 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9499
9500 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
9501
9502 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9503
9504 * win32-nat.c (display_selector): New function. Displays information
9505 about the information returned by GetThreadSelectorEntry API function.
9506 (display_selectors): New function. Displays the infomation of
9507 the selector given as argument, or of CS, DS ans FS selectors
9508 if no argument is given.
9509 ( _initialize_inftarg): Add "w32" as info prefix command.
9510 Add "info w32 selector" as command calling display_selectors.
9511
9512 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
9513
9514 * i386-tdep.c (get_longjmp_target): Fix compilation failure
9515 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
9516 if not defined.
9517
9518 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
9519
9520 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
9521
9522 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
9523
9524 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
9525 (arm_fix_call_dummy): Call it.
9526 (arm_call_dummy_breakpoint_offset): Delete.
9527 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
9528 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
9529
9530 2002-02-18 Andrew Cagney <ac131313@redhat.com>
9531
9532 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
9533 Default to func_frame_chain_valid.
9534 * gdbarch.h, gdbarch.c: Re-generate.
9535 * frame.h (FRAME_CHAIN_VALID): Delete definition.
9536
9537 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
9538
9539 * ppc-linux-nat.c: Update copyright.
9540 (fetch_register, store_register): Add tid parameter, don't compute
9541 tid here.
9542 (fetch_ppc_registers, store_ppc_registers): Add tid
9543 parameter. Pass it along to callees.
9544 (fetch_inferior_registers, store_inferior_registers): Compute tid
9545 here, and pass it to calleed functions.
9546 (fill_gregset, supply_fpregset): Clean up formatting.
9547
9548 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
9549
9550 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
9551 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
9552
9553 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
9554
9555 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
9556 * gdbarch.c gdbarch.h: Regenerate.
9557 * breakpoint.c (create_longjmp_breakpoint): Always compile this
9558 function.
9559 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
9560 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
9561 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
9562
9563 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
9564 * arm-tdep.c (arm_get_longjmp_target): New function.
9565 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
9566 this to a positive value register arm_get_longjmp_target as the
9567 longjmp handler.
9568 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
9569 (arm_linux_init_abi): Set up longjmp description in tdep.
9570 * armnbsd-nat.c (get_longjmp_target): Delete.
9571 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
9572 description in tdep.
9573 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
9574 (get_longjmp_target): Delete declaration.
9575 (GET_LONGJMP_TARGET): Delete.
9576 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
9577 (GET_LONGJMP_TARGET): Delete.
9578
9579 2002-02-17 Kevin Buettner <kevinb@redhat.com>
9580
9581 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
9582 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
9583 of ``current_gdbarch''.
9584
9585 2002-02-17 Tom Tromey <tromey@redhat.com>
9586
9587 * cli/cli-cmds.c (compare_strings): New function.
9588 (complete_command): Only print each unique item once.
9589 * completer.h (complete_line): Declare.
9590 * completer.c (complete_line): New function.
9591 (line_completion_function): Use it.
9592
9593 2002-02-16 Andrew Cagney <ac131313@redhat.com>
9594
9595 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
9596 * gdbarch.h, gdbarch.c: Re-generate.
9597
9598 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
9599
9600 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
9601
9602 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
9603
9604 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
9605 * valops.c (value_arg_coerce): Don't take the address of a reference
9606 to convert an argument to a reference.
9607
9608 2002-02-15 Christopher Faylor <cgf@redhat.com>
9609
9610 * win32-nat.c (get_image_name): New function.
9611 (handle_load_dll): Use get_image_name function.
9612 (get_child_debug_event): Avoid registering debug events until possibly
9613 execed process is started.
9614 (child_create_inferior): Allow invocation via shell so that command
9615 line redirection, etc. works ok.
9616 (_initialize_inftarg): Add new command: "set shell" to control whether
9617 a shell is used to start a process.
9618
9619 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
9620
9621 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
9622 instead of find_register_by_number.
9623 (cannot_store_register): Likewise.
9624
9625 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
9626
9627 * dwarf2read.c: Replace fprintf (stderr, ...) by
9628 fprintf_unfiltered (gdb_stderr, ...).
9629
9630 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
9631
9632 * gdbserver/gdbserver.1: Document --attach.
9633
9634 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
9635
9636 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
9637 descriptions.
9638 * arm-tdep.c (arm_default_arm_le_breakpoint)
9639 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
9640 (arm_default_thumb_be_breakpoint): New. Initialize them from
9641 traditional breakpoint defines.
9642 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
9643 (arm_gdbarch_init): Initialize new breakpoint variables.
9644 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
9645 (arm_linux_init_abi): Initialize linux-specific breakpoint.
9646 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
9647 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
9648 code out to ...
9649 (arm_netbsd_init_abi_common): ... here; new function.
9650 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
9651 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
9652 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
9653 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
9654
9655 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
9656
9657 * arm-tdep.h (enum arm_abi): New enum.
9658 (struct gdbarch_tdep): New structure.
9659 (LOWEST_PC): Provide a default.
9660 (arm_gdbarch_register_os_abi): Declare new function.
9661 * arm-tdep.c (arm_abi_names): New array.
9662 (process_note_abi_tag_sections): New function.
9663 (get_elfosabi): New function.
9664 (arm_gdbarch_register_os_abi): New function.
9665 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
9666 support for that ABI has been built in, then call the appropriate
9667 configuration routine. Use gdbarch_num_regs() to get the number
9668 of registers.
9669 (arm_dump_tdep): New function.
9670 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
9671 place-holder functions.
9672 (_initialize_arm_tdep): Register them.
9673 * config/arm/tm-arm.h (LOWEST_PC): Delete.
9674
9675 * armnbsd-tdep.c: New file.
9676 * Makefile.in (armnbsd-tdep.o): Add dependencies.
9677 * config/arm/nbsd.mt (TDEPFILES): Add it.
9678 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
9679
9680 * armnbsd-nat.c: Include regcache.h.
9681 * Makefile.in (armnbsd-nat.o): Update dependency list.
9682
9683 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
9684
9685 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9686
9687 * gdbserver/Makefile.in: Fix typos in target rules.
9688
9689 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9690
9691 Fix part of PR gdb/267.
9692 * linespec.c (find_methods): Handle constructors specially for now.
9693
9694 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
9695
9696 * arm-tdep.c (arm_push_arguments): Eliminate special float type
9697 handling.
9698 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
9699 standard_coerce_float_to_double().
9700
9701 2002-02-14 Christopher Faylor <cgf@redhat.com>
9702
9703 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
9704 GDBINIT_FILENAME.
9705
9706 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
9707
9708 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
9709 find_variant_by_name, because it confuses the multiarch
9710 framework. Return NULL if there isn't an architecture with the
9711 user supplied name, instead of forcing a different one without
9712 recording the change with the multiarch machinery.
9713 (find_variant_by_name): Delete.
9714
9715 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9716
9717 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
9718 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
9719
9720 2002-02-13 Martin M. Hunt <hunt@redhat.com>
9721
9722 * stack.c (print_frame_info_base): When calling
9723 print_frame_info_listing_hook, set current_source_symtab.
9724
9725 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9726
9727 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
9728 and remove unused $(INCLUDE_DIR).
9729 Add regcache.c to OBS.
9730 Add generated register protocol files to clean target.
9731 Update dependencies for new objects, obsolete old target code.
9732
9733 * gdbserver/linux-low.c: Remove all platform-specific code to
9734 new files. Remove various dead code. Update to use regcache
9735 functionality.
9736 * gdbserver/remote-utils.c (fromhex): Add return statement
9737 to quiet warning.
9738 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
9739 constant.
9740 (input_interrupt): Add integer parameter to match prototype
9741 of a signal handler.
9742 (outreg): Use register_data ().
9743 (prepare_resume_reply): Use gdbserver_expedite_regs.
9744 * gdbserver/server.c (main): Dynamically allocate own_buf because
9745 PBUFSIZ is no longer constant. Use registers_to_string () and
9746 registers_from_string ().
9747 * gdbserver/server.h: No longer include "defs.h". Add prototypes
9748 for error (), fatal (), and warning (). Update definition of
9749 PBUFSIZ to use regcache functionality. Add include guard.
9750 * gdbserver/utils.c (fatal): Add missing ``const''.
9751 (warning): New function.
9752
9753 * regformats/regdat.sh: Include "regcache.h" in generated files.
9754 Provide init_registers () function.
9755 * regformats/regdef.h: Add prototype for set_register_cache ().
9756 Add include guard.
9757
9758 * gdbserver/linux-arm-low.c: New file.
9759 * gdbserver/linux-i386-low.c: New file.
9760 * gdbserver/linux-ia64-low.c: New file.
9761 * gdbserver/linux-m68k-low.c: New file.
9762 * gdbserver/linux-mips-low.c: New file.
9763 * gdbserver/linux-ppc-low.c: New file.
9764 * gdbserver/linux-sh-low.c: New file.
9765
9766 * gdbserver/regcache.c: New file.
9767 * gdbserver/regcache.h: New file.
9768
9769 * gdbserver/low-linux.c: Removed obsolete file.
9770
9771 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9772
9773 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
9774 * config/i386/linux.mt: Likewise.
9775 * config/ia64/linux.mt: Likewise.
9776 * config/m68k/linux.mh: Likewise.
9777 * config/powerpc/linux.mh: Likewise.
9778 * config/mips/linux.mt: Likewise.
9779
9780 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
9781
9782 * config/i386/i386lynx.mh: Mark gdbserver variables
9783 as (currently) obsolete for this target.
9784 * config/i386/nbsd.mt: Likewise.
9785 * config/i386/nbsdelf.mt: Likewise.
9786 * config/m32r/m32r.mt: Likewise.
9787 * config/m68k/m68klynx.mh: Likewise.
9788 * config/m68k/nbsd.mt: Likewise.
9789 * config/m68k/sun3os4.mh: Likewise.
9790 * config/mips/vr5000.mt: Likewise.
9791 * config/ns32k/nbsd.mt: Likewise.
9792 * config/pa/hppabsd.mh: Likewise.
9793 * config/pa/hppaosf.mh: Likewise.
9794 * config/powerpc/nbsd.mt: Likewise.
9795 * config/rs6000/rs6000lynx.mh: Likewise.
9796 * config/s390/s390.mt: Likewise.
9797 * config/s390/s390x.mt: Likewise.
9798 * config/sparc/sparclynx.mh: Likewise.
9799 * config/sparc/sun4os4.mh: Likewise.
9800 * config/i386/x86-64linux.mt: Likewise.
9801 * config/sparc/linux.mh: Likewise.
9802
9803 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9804
9805 * configure.tgt: Configure gdbserver only for known working
9806 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
9807 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
9808 SUBDIRS if it is configured. Update comment for ${nativefile}.
9809 * configure: Regenerated.
9810
9811 2002-02-13 Michael Snyder <msnyder@redhat.com>
9812
9813 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
9814
9815 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
9816 (default_gcore_mach): Just return 0, work around a problem in bfd.
9817 (default_gcore_target): OK to return NULL if exec_bfd is null.
9818 (make_mem_sec): Use a cast, avoid a warning.
9819
9820 * procfs.c (find_memory_regions_callback): Use a cast instead of
9821 calling host_pointer_to_address (which complains if
9822 sizeof (host pointer) != sizeof (target pointer)).
9823 (procfs_make_note_section): Avoid overflow in psargs string.
9824
9825 * procfs.c (procfs_make_note_section): Make the default
9826 implementation return an error.
9827
9828 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
9829
9830 * procfs.c (procfs_make_note_section): Provide a default definition
9831 (for alpha-dec-osf4.0f). Fix typos.
9832
9833 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
9834
9835 * linux-proc.c: Add include of regcache.h.
9836 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
9837
9838 2002-02-13 Andrew Cagney <ac131313@redhat.com>
9839
9840 From 2002-01-18 Greg McGary <greg@mcgary.org>:
9841 * memattr.c (create_mem_region): Disallow useless empty region.
9842 Regions are half-open intervals, so allow [A..B) [B..C) as
9843 non-overlapping.
9844
9845 2002-02-13 Michael Chastain <mec@shout.net>
9846
9847 * defs.h: Kill CONST_PTR.
9848 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
9849 * c-lang.c (c_builtin_types): Likewise.
9850 * ch-lang.c (ch_builtin_types): Likewise.
9851 * f-lang.c (f_builtin_types): Likewise.
9852 * language.c (unknown_builtin_types): Likewise.
9853 * m2-lang.c (m2_builtin_types): Likewise.
9854 * p-lang.c (pascal_builtin_types): Likewise.
9855 * scm-lang.c (c_builtin_types): Likewise.
9856
9857 2002-02-13 Keith Seitz <keiths@redhat.com>
9858
9859 * arm-tdep.h (arm_get_next_pc): Add declaration.
9860
9861 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
9862
9863 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
9864 with other related struct-returning functions.
9865 (arm_extract_struct_value_address): New function.
9866 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
9867 initialize float_format, double_format and long_double_format as
9868 appropriate to the endianness of the target.
9869 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
9870 (arm_use_struct_convention): Delete declaration.
9871 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
9872
9873 2002-02-13 Keith Seitz <keiths@redhat.com>
9874
9875 * defs.h (core_addr_to_string_nz): New function.
9876
9877 2002-02-13 Mark Kettenis <kettenis@gnu.org>
9878
9879 Apply missing bits of 2002-01-15 patch.
9880 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
9881 (fill_fpregset): Use i387_fill_fsave.
9882
9883 2002-02-12 Keith Seitz <keiths@redhat.com>
9884
9885 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
9886 (core_addr_to_string_nz): New function.
9887
9888 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
9889
9890 * arm-linux-nat.c: Really include arm-tdep.h.
9891 * config/arm/tm-linux.h (struct type, struct value): Declare.
9892
9893 2002-02-11 Michael Snyder <msnyder@redhat.com>
9894
9895 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
9896 (gcore section): Ifdef for Solaris and Unixware only.
9897 (procfs_do_thread_registers): Unixware needs one lwpstatus
9898 per thread (not one prstatus or pstatus).
9899 (procfs_make_note_section): Iterate only over kernel threads (lwps),
9900 not over all gdb threads. For unixware, call elfcore_write_pstatus
9901 once before iterating over threads.
9902
9903 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
9904
9905 * arm-tdep.h: New file.
9906 * arm-tdep.c: Include arm-tdep.h.
9907 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
9908 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
9909 (arm_print_float_info, arm_register_type, convert_to_extended)
9910 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
9911 (arm_extract_return_value, arm_register_name): Make static.
9912 (arm_software_single_step): Similarly. Fix types in declaration.
9913 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
9914 (arm_store_return_value, arm_store_struct_return): New functions.
9915 (arm_gdbarch_init): Register the above functions. Also register
9916 call_dummy_start_offset, sizeof_call_dummy_words,
9917 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
9918 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
9919 max_register_virtual_size, register_size. Set up
9920 prologue_cache.saved_regs here, rather than ...
9921 (_initialize_arm_tdep): ... here.
9922 * config/arm/tm-arm.h (struct type, struct value): Delete forward
9923 declarations.
9924 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
9925 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
9926 (arm_print_float_info, arm_register_type, convert_to_extended)
9927 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
9928 (arm_extract_return_value, arm_register_name): Delete declarations.
9929 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
9930 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
9931 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
9932 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
9933 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
9934 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
9935 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
9936 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
9937 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
9938 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
9939 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
9940 (arm_get_next_pc): No-longer static -- these are needed by the RDI
9941 interface.
9942 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
9943 * remote-rdi.c remote-rdp.c: Likewise.
9944 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
9945 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
9946 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
9947 definition.
9948
9949 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
9950 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
9951 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
9952 from non-ARM_ prefixed definitions.
9953 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
9954 all uses of above.
9955 * remote-rdi.c remote-rdp.c: Likewise.
9956 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
9957
9958 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
9959
9960 * arm-tdep.c (arm_frameless_function_invocation)
9961 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
9962 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
9963 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
9964 (arm_pop_frame, arm_get_next_pc): Make static.
9965 (arm_gdbarch_init): Register above in gdbarch structure.
9966 (arm_read_fp): Renamed from arm_target_read_fp.
9967 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
9968 * config/arm/tm-arm.h (arm_frameless_function_invocation)
9969 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
9970 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
9971 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
9972 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
9973 (arm_pc_is_thumb_dummy): Delete declarations.
9974 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
9975 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
9976 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
9977 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
9978
9979 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
9980
9981 * symtab.c (compare_search_syms): New function.
9982 (sort_search_symbols): New function.
9983 (search_symbols): Sort symbols after searching rather than
9984 before.
9985
9986 2002-02-10 Andrew Cagney <ac131313@redhat.com>
9987
9988 * NEWS: Linux -> GNU/Linux.
9989
9990 2002-02-10 Andrew Cagney <ac131313@redhat.com>
9991
9992 * gdbarch.sh: For for level one methods, disallow a definition
9993 when partially multi-arched. Add comments explaining rationale.
9994 * gdbarch.h: Re-generate.
9995
9996 2002-02-10 Andrew Cagney <ac131313@redhat.com>
9997
9998 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
9999 multi-arch partial.
10000
10001 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10002
10003 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
10004 field. Use diff -u.
10005 * gdbarch.c: Re-generate.
10006
10007 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10008
10009 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
10010 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
10011 partial.
10012
10013 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10014
10015 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
10016 multi-arch partial.
10017 (PUSH_ARGUMENTS): Switch to using predefault.
10018 * gdbarch.c: Regenerate.
10019
10020 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10021
10022 * valops.c (PUSH_ARGUMENTS): Delete definition.
10023 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
10024 partial. Default to default_push_arguments.
10025 * gdbarch.h, gdbarch.c: Regenerate.
10026
10027 2002-02-09 Andrew Cagney <ac131313@redhat.com>
10028
10029 * defs.h (throw_exception): Rename return_to_top_level. Update
10030 comments.
10031 * utils.c (error_stream, internal_verror, quit): Ditto.
10032 * top.c (throw_exception, catcher): Ditto.
10033 * sparclet-rom.c (sparclet_load): Ditto.
10034 * remote.c (interrupt_query, minitelnet): Ditto.
10035 * remote-sds.c (interrupt_query): Ditto.
10036 * remote-mips.c (mips_error, mips_kill): Ditto.
10037 * ocd.c (interrupt_query): Ditto.
10038 * monitor.c (monitor_interrupt_query): Ditto.
10039 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
10040 * target.h: Update comment.
10041
10042 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
10043
10044 2002-02-09 Andrew Cagney <ac131313@redhat.com>
10045
10046 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
10047 default_double_format.
10048 * gdbarch.h, gdbarch.c: Re-generate.
10049 * findvar.c (floatformat_unknown): Delete variable definition.
10050 * doublest.h (floatformat_unknown): Delete variable declaration.
10051
10052 2002-02-09 Jim Blandy <jimb@redhat.com>
10053
10054 * stabsread.c (read_type): Add code to parse Sun's syntax for
10055 prototyped function types.
10056
10057 2002-02-09 Andrew Cagney <ac131313@redhat.com>
10058
10059 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
10060 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
10061
10062 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10063
10064 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
10065 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
10066 now _initialize_xcoffsolib gets called again and overrides the
10067 commands from solib.c in a native configuration.
10068
10069 2002-02-09 Mark Kettenis <kettenis@gnu.org>
10070
10071 * doublest.c (store_typed_floating): Don't try to return a value.
10072 Fixes PR gdb/290.
10073
10074 2002-02-08 Jim Blandy <jimb@redhat.com>
10075
10076 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
10077 is prototyped and has no arguments, print its argument list as
10078 `(void)'.
10079
10080 2002-02-08 Chris Demetriou <cgd@broadcom.com>
10081
10082 * MAINTAINERS (write-after-approval): Add myself.
10083 (paper-trail): I've escaped!
10084
10085 2002-02-08 Christopher Faylor <cgf@redhat.com>
10086
10087 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
10088 changes.
10089 (_initialize_check_for_gdb_ini): Ditto.
10090
10091 2002-02-08 Martin M. Hunt <hunt@redhat.com>
10092
10093 * win32-nat.c (cygwin_pid_to_str): Fix typo.
10094 xaprintf -> xasprintf.
10095
10096 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
10097
10098 * win32-nat.c: Remove use of printf and sprintf functions.
10099
10100 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
10101
10102 * arm-tdep.c (arm_frame_chain_valid): Make static.
10103 (arm_push_arguments): Likewise.
10104 (arm_gdbarch_init): New function.
10105 (_initialize_arm_tdep): Call it.
10106 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
10107 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
10108 (FRAME_CHAIN_VALID): Delete.
10109 (arm_frame_chain_valid): Delete declaration.
10110 (PUSH_ARGUMENTS): Delete.
10111 (arm_push_arguments): Delete declaration.
10112 (CALL_DUMMY_P): Delete.
10113
10114 2002-02-08 Andrew Cagney <ac131313@redhat.com>
10115 Corinna Vinschen <vinschen@redhat.com>
10116
10117 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
10118 on builtin float types.
10119
10120 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
10121
10122 * utils.c: Include <curses.h> before "bfd.h".
10123 * tui/tui-hooks.c: Likewise.
10124 * tui/tui.c: Likewise.
10125 * tui/tuiCommand.c: Likewise.
10126 * tui/tuiData.c: Likewise.
10127 * tui/tuiDataWin.c: Likewise.
10128 * tui/tuiDisassem.c: Likewise.
10129 * tui/tuiGeneralWin.c: Likewise.
10130 * tui/tuiIO.c: Likewise.
10131 * tui/tuiLayout.c: Likewise.
10132 * tui/tuiRegs.c: Likewise.
10133 * tui/tuiSource.c: Likewise.
10134 * tui/tuiSourceWin.c: Likewise.
10135 * tui/tuiStack.c: Likewise.
10136 * tui/tuiWin.c: Likewise.
10137
10138 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
10139
10140 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
10141 to include space for pseudoregs as well. Update loops accordingly.
10142 (sh_fp_frame_init_saved_regs): Ditto.
10143 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
10144
10145 2002-02-07 Andrew Cagney <ac131313@redhat.com>
10146
10147 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
10148 Add Richard Earnshaw to Arm maintainers.
10149
10150 2002-02-07 Andrew Cagney <ac131313@redhat.com>
10151
10152 * defs.h (warning_begin): Delete declaration.
10153
10154 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
10155 Delete macro.
10156
10157 2002-02-07 Michael Snyder <msnyder@redhat.com>
10158
10159 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
10160 Logic bug, remove misplaced else.
10161
10162 2002-02-07 Klee Dienes <klee@apple.com>
10163
10164 * fork-inferior.c (fork_inferior): Add '!' to the list of
10165 characters that need to be quoted when building a string for the
10166 shell. Quote '!' specifically with a backslash, since CSH chokes
10167 when trying to evaluate "str!str".
10168
10169 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
10170
10171 * rdi-share/host.h: Only provide a typedef for bool if it is not
10172 defined.
10173
10174 2002-02-04 Michael Snyder <msnyder@redhat.com>
10175
10176 * breakpoint.h (enum bptype): Add new overlay event bp type.
10177 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
10178
10179 * breakpoint.c (create_internal_breakpoint): New function.
10180 (internal_breakpoint_number): Moved into create_internal_breakpoint.
10181 (create_longjmp_breakpoint): Use create_internal_breakpoint.
10182 (create_thread_event_breakpoint): Ditto.
10183 (create_solib_event_breakpoint): Ditto.
10184 (create_overlay_event_breakpoint): New function.
10185 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
10186 (update_breakpoints_after_exec): Delete and re-initialize
10187 overlay event breakpoints after an exec. Add FIXME comment
10188 about longjmp breakpoint.
10189 (print_it_typical): Ignore overlay event breakpoints.
10190 (print_one_breakpoint): Ditto.
10191 (mention): Ditto.
10192 (bpstat_what): Do not stop for overlay event breakpoints.
10193 (delete_breakpoint): Don't delete overlay event breakpoints.
10194 (breakpoint_re_set_one): Delete the overlay event breakpoint.
10195 (breakpoint_re_set): Re-create overlay event breakpoint.
10196
10197 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
10198 (overlay_manual_command): Disable overlay breakpoints.
10199 (overlay_off_command): Disable overlay breakpoints.
10200
10201 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
10202
10203 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
10204 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
10205 to here from config/tm-arm.h.
10206 (coff_sym_is_thumb): Make static.
10207 (arm_elf_make_msymbol_special): New function.
10208 (arm_coff_make_msymbol_special): New function.
10209 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
10210 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
10211 (coff_sym_is_thumb): Delete declaration.
10212 (arm_elf_make_msymbol_special): Declare.
10213 (arm_coff_make_msymbol_special): Declare.
10214 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
10215 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
10216
10217 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
10218
10219 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
10220
10221 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
10222
10223 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
10224 * gdbarch.c gdbarch.h: Regenerate.
10225 * arch-utils.c (default_print_float_info): New function.
10226 * arch-utils.h (default_print_float_info): Prototype it.
10227 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
10228 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
10229 (PRINT_FLOAT_INFO): Document it.
10230
10231 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
10232 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
10233 (PRINT_FLOAT_INFO): Define.
10234
10235 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
10236
10237 * win32-nat.c (_initialize_check_for_gdb_ini):
10238 Add typecast to sprintf argument to suppress a warning.
10239
10240 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
10241
10242 * win32-nat.c (last_sig): Changed type of variable to target_signal,
10243 to allow easier handling of pass state.
10244 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
10245 that gives exception name and address.
10246 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
10247 and set last_sig value to ourstatus->value.sig. Some missing
10248 exceptions added.
10249 (child_continue): Correctly report continue_status.
10250 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
10251 TARGET_SIGNAL_0 (new default value).
10252 (child_resume): consider sig argument passed to decide if
10253 the exception should be passed to debuggee or not.
10254
10255 2002-02-05 Michael Snyder <msnyder@redhat.com>
10256
10257 * regcache.c (fetch_register): Call target_fetch_register
10258 only if we don't call FETCH_PSEUDO_REGISTER.
10259 (store_register): Call target_store_register only if we
10260 don't call STORE_PSEUDO_REGISTER.
10261
10262 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
10263
10264 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
10265 ELF_MAKE_MSYMBOL_SPECIAL.
10266 * gdbarch.c, gdbarch.h: Regenerate.
10267 * arch-utils.c (default_make_msymbol_special): New function.
10268 * arch-utils.h (default_make_msymbol_special): Export.
10269 * elfread.c (elf_symtab_read): Compile use of
10270 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
10271 multiarched.
10272 * coffread.c (coff_symtab_read): Ditto, for
10273 COFF_MAKE_MSYMBOL_SPECIAL.
10274
10275 2002-02-05 Jim Blandy <jimb@redhat.com>
10276
10277 * solib-svr4.c (svr4_truncate_ptr): New function.
10278 (svr4_relocate_section_addresses): Do the address arithmetic with
10279 the appropriate truncation for target addresses, even when
10280 CORE_ADDR is larger than a target address.
10281
10282 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10283
10284 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
10285 to (int *).
10286
10287 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10288
10289 * gdbserver/linux-low.c (kill_inferior): Remove commented out
10290 code.
10291
10292 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10293
10294 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
10295
10296 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10297
10298 * gdbserver/linux-low.c: Remove unused include files.
10299
10300 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10301
10302 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
10303 (read_inferior_memory): Use it.
10304 (write_inferior_memory): Likewise.
10305
10306 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10307
10308 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
10309 grubbing through sys_errlist.
10310
10311 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10312
10313 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
10314
10315 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
10316 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
10317
10318 2002-02-04 Andrew Cagney <ac131313@redhat.com>
10319
10320 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
10321 (do_sfunc, set_cmd_sfunc): New functions.
10322
10323 * command.h (struct cmd_list_element): Add field func.
10324 * cli/cli-decode.h (struct cmd_list_element): Ditto.
10325 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
10326 * cli/cli-decode.h: Ditto.
10327
10328 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
10329 (help_all, help_cmd_list): Ditto.
10330 (find_cmd, complete_on_cmdlist): Ditto.
10331 * top.c (execute_command): Ditto.
10332
10333 * cli/cli-setshow.c (do_setshow_command): Call func instead of
10334 function.sfunc.
10335
10336 * infcmd.c (notice_args_read): Fix function signature.
10337
10338 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
10339 * cli/cli-decode.c (add_set_cmd): Ditto.
10340 * utils.c (initialize_utils): Ditto.
10341 * maint.c (_initialize_maint_cmds): Ditto.
10342 * infrun.c (_initialize_infrun): Ditto.
10343 * demangle.c (_initialize_demangler): Ditto.
10344 * remote.c (add_packet_config_cmd): Ditto.
10345 * mips-tdep.c (_initialize_mips_tdep): Ditto.
10346 * cris-tdep.c (_initialize_cris_tdep): Ditto.
10347 * proc-api.c (_initialize_proc_api): Ditto.
10348 * kod.c (_initialize_kod): Ditto.
10349 * valprint.c (_initialize_valprint): Ditto.
10350 * top.c (init_main): Ditto.
10351 * infcmd.c (_initialize_infcmd): Ditto.
10352 * corefile.c (_initialize_core): Ditto.
10353 * arm-tdep.c (_initialize_arm_tdep): Ditto.
10354 * arch-utils.c (initialize_current_architecture): Ditto.
10355 (_initialize_gdbarch_utils): Ditto.
10356 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
10357
10358 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
10359 * wince.c (_initialize_inftarg): Ditto.
10360 * symfile.c (_initialize_symfile): Ditto.
10361 * mips-tdep.c (_initialize_mips_tdep): Ditto.
10362 * language.c (_initialize_language): Ditto.
10363 * arc-tdep.c (_initialize_arc_tdep): Ditto.
10364
10365 2002-02-04 Michael Snyder <msnyder@redhat.com>
10366
10367 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
10368
10369 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
10370
10371 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
10372 Add rules for building the register data files.
10373
10374 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
10375
10376 * regformats/regdat.sh: Add braces to the definition of
10377 expedite_regs_${arch}.
10378
10379 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
10380
10381 * regformats/regdef.h (struct reg): Add comment describing the
10382 requirements for offset and size fields.
10383
10384 2002-02-04 Andreas Schwab <schwab@suse.de>
10385
10386 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
10387 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
10388
10389 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
10390
10391 * gdbarch.sh (copyright): Update years in generated header.
10392 (SMASH_TEXT_ADDRESS): Add rule.
10393 * gdbarch.h, gdbarch.c: Re-generate.
10394 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
10395 * dbxread.c: Likewise.
10396 * dwarfread.c: Likewise.
10397 * elfread.c: Likewise.
10398 * somread.c: Likewise.
10399
10400 * arm-tdep.c (arm_smash_text_address): New function.
10401 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
10402
10403 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
10404
10405 Add support for hardware watchpoints on win32 native.
10406 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
10407 CONTEXT_DEBUG_REGISTERS.
10408 (dr variable): New variable. Static array containing a local copy
10409 of debug registers.
10410 (debug_registers_changed): New variable. Reflects when debug registers
10411 are changed and need to be written to inferior.
10412 (debug_registers_used): New variable. Reflects when any debug register
10413 was set, used when new threads are created.
10414 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
10415 i386-nat code.
10416 (thread_rec): Set dr array if id is the thread of current_event .
10417 (child_continue, child_resume): Change the debug registers for all
10418 threads if debug_registers_changed.
10419 (child_add_thread): Change the debug registers if debug_registers_used.
10420 * config/i386/cygwin.mh: Add use of i386-nat.o file.
10421 Link nm.h to new nm-cygwin.h file.
10422 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
10423 of hardware registers.
10424
10425 2002-02-03 Andrew Cagney <ac131313@redhat.com>
10426
10427 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
10428 Restore behavour broken by 2002-01-20 Andrew Cagney
10429 <ac131313@redhat.com> IEEE_FLOAT removal.
10430
10431 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
10432
10433 * c-valprint.c (c_val_print): Pass a proper valaddr to
10434 cp_print_class_method.
10435 * valops.c (search_struct_method): If there is only one method
10436 and args is NULL, return that method.
10437
10438 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
10439
10440 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
10441 accessing tag_name directly.
10442
10443 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
10444
10445 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
10446 of accessing tag_name directly.
10447
10448 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
10449
10450 PR gdb/280
10451 * gdbtypes.c (replace_type): New function.
10452 * gdbtypes.h (replace_type): Add prototype.
10453 * stabsread.c (read_type): Use replace_type.
10454
10455 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
10456
10457 * Makefile.in (memattr.o): Add missing dependencies rule.
10458
10459 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10460
10461 * breakpoint.c (break_at_finish_command): Really export.
10462 (break_at_finish_at_depth_command): Ditto.
10463 (tbreak_at_finish_command): Ditto.
10464 * hppa-tdep.c: Include completer.h.
10465 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
10466 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
10467
10468 2002-02-01 Andrew Cagney <ac131313@redhat.com>
10469
10470 * utils.c (do_write): New function.
10471 (error_stream): Rewrite combining the code from error_begin and
10472 verror.
10473 (verror): Rewrite using error_stream.
10474 (error_begin): Delete function.
10475
10476 2002-02-01 Andrew Cagney <ac131313@redhat.com>
10477
10478 * utils.c (error_begin): Make static.
10479 * defs.h (error_begin): Delete declaration.
10480
10481 * linespec.c (cplusplus_error): Replace cplusplus_hint.
10482 (decode_line_1): Use cplusplus_error instead of error_begin,
10483 cplusplus_hint and return_to_top_level.
10484 * coffread.c (coff_symfile_read): Use error instead of error_begin
10485 and return_to_top_level.
10486 * infrun.c (default_skip_permanent_breakpoint): Ditto.
10487
10488 2002-02-01 Andrew Cagney <ac131313@redhat.com>
10489
10490 * language.h (type_error, range_error): Make string parameter
10491 constant.
10492 * language.c (warning_pre_print): Delete extern declaration.
10493 * dwarfread.c (warning_pre_print): Ditto.
10494 * language.c (type_error, range_error): Rewrite to use verror and
10495 vwarning instead of warning_begin.
10496
10497 2002-02-01 Michael Snyder <msnyder@redhat.com>
10498
10499 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
10500 (set_ignore_count): Move misplaced comment back where it belongs.
10501
10502 2002-02-01 Andrew Cagney <ac131313@redhat.com>
10503
10504 * command.h (NO_FUNCTION): Delete macro.
10505 * cli/cli-decode.h (NO_FUNCTION): Ditto.
10506 * top.c (execute_command): Replace NO_FUNCTION with NULL.
10507 * tracepoint.c (_initialize_tracepoint): Ditto.
10508 * cli/cli-decode.c (add_set_cmd): Ditto.
10509 * cli/cli-cmds.c (init_cli_cmds): Ditto.
10510
10511 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
10512
10513 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
10514 Update ``this'' pointer when calling virtual functions.
10515
10516 2002-02-01 Michael Snyder <msnyder@redhat.com>
10517
10518 * breakpoint.c (create_temp_exception_breakpoint): Delete.
10519 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
10520
10521 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
10522
10523 * regformats/reg-arm.dat: New file.
10524 * regformats/reg-i386.dat: New file.
10525 * regformats/reg-ia64.dat: New file.
10526 * regformats/reg-m68k.dat: New file.
10527 * regformats/reg-mips.dat: New file.
10528 * regformats/reg-ppc.dat: New file.
10529 * regformats/reg-sh.dat: New file.
10530 * regformats/regdef.h: New file.
10531 * regformats/regdat.sh: New file.
10532
10533 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
10534
10535 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
10536 (arm_frame_args_address, arm_frame_locals_address): New functions.
10537 (arm_frame_num_args): New function.
10538 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
10539 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
10540 (FRMA_NUM_ARGS): Call arm_frame_num_args.
10541
10542 2002-01-31 Michael Snyder <msnyder@redhat.com>
10543
10544 * breakpoint.c (break_at_finish_command): Export.
10545 (break_at_finish_at_depth_command): Export.
10546 (tbreak_at_finish_command): Export.
10547 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
10548 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
10549 "txbreak" commands, which are HPPA specific.
10550
10551 * printcmd.c (disassemble_command): Remove an ancient
10552 artifact of an old merge.
10553
10554 * symfile.h (enum overlay_debugging_state):
10555 Define enum constant values for overlay mode.
10556 * symfile.c (overlay_debugging): Use enums instead of literals.
10557 (overlay_is_mapped, overlay_auto_command,
10558 overlay_manual_command): Ditto.
10559
10560 * breakpoint.c (insert_breakpoints, remove_breakpoint,
10561 breakpoint_here_p, breakpoint_inserted_here_p,
10562 breakpoint_thread_match, bpstat_stop_status,
10563 describe_other_breakpoints, check_duplicates, clear_command):
10564 Coding standard fixes.
10565
10566 * target.c (target_xfer_memory): Add spaces, coding standard.
10567 (do_xfer_memory): Add missing line to trust-readonly
10568 code: check bfd SEC_READONLY flag for section.
10569
10570 2002-01-31 Andrew Cagney <ac131313@redhat.com>
10571
10572 * PROBLEMS: Fix typo, 5.1->5.1.1.
10573
10574 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
10575
10576 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
10577 data symbols, since we search based on textlow and texthigh.
10578 (find_pc_sect_symtab): Likewise.
10579
10580 2002-01-30 Andrew Cagney <ac131313@redhat.com>
10581
10582 * defs.h (vwarning): Declare.
10583 * utils.c (vwarning): New function.
10584 (warning): Call vwarning.
10585 (warning_begin): Delete function.
10586
10587 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
10588 the warning message.
10589 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
10590 warning_begin.
10591
10592 2002-01-30 Michael Snyder <msnyder@redhat.com>
10593
10594 * NEWS: Mention "set trust-readonly-sections" command.
10595 Mention generate-core-file command.
10596
10597 2002-01-15 Michael Snyder <msnyder@redhat.com>
10598
10599 * target.c: New command, "set trust-readonly-sections on".
10600 (do_xfer_memory): Honor the suggestion to trust readonly sections
10601 by reading them from the object file instead of from the target.
10602 (initialize_targets): Register command "set trust-readonly-sections".
10603
10604 2002-01-29 Andrew Cagney <ac131313@redhat.com>
10605
10606 * parse.c (target_map_name_to_register): Simplify, search regs and
10607 pseudo-regs using a single loop.
10608
10609 2002-01-30 Andrew Cagney <ac131313@redhat.com>
10610
10611 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
10612
10613 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
10614
10615 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
10616 * config/i386/i386v42mp.mh: Add i387-nat.o .
10617 * i386v4-nat.c: Include i387-nat.h.
10618 (supply_fpregset): Use i387_supply_fsave.
10619 (fill_fpregset): Use i387_fill_fsave.
10620
10621 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
10622
10623 * arm-tdep.c (arm_call_dummy_words): Define.
10624 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
10625 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
10626 (CALL_DUMMY_WORDS): Define.
10627 (arm_call_dummy_words): Declare.
10628 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
10629 (arm_linux_call_dummy_words): Declare.
10630
10631 2002-01-30 Andreas Schwab <schwab@suse.de>
10632
10633 * m68klinux-nat.c: Fix last change to use regcache_collect
10634 instead of referencing registers[] directly.
10635
10636 2002-01-29 Andrew Cagney <ac131313@redhat.com>
10637
10638 * parse.c (target_map_name_to_register): Delete code wrapped in
10639 #ifdef REGISTER_NAME_ALIAS_HOOK.
10640
10641 2002-01-28 Michael Snyder <msnyder@redhat.com>
10642
10643 * regcache.c (legacy_read_register_gen): Need to be able to
10644 read pseudo-register as well as real register.
10645 (legacy_write_register_gen): Ditto.
10646
10647 2002-01-28 Andrew Cagney <ac131313@redhat.com>
10648
10649 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
10650 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
10651 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
10652 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
10653 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
10654 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
10655 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
10656 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
10657 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
10658 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
10659 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
10660 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
10661 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
10662 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
10663 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
10664 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
10665 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
10666 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
10667 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
10668 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
10669
10670 2002-01-28 Andrew Cagney <ac131313@redhat.com>
10671
10672 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
10673 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
10674 (initialize_current_architecture): Update target_byte_order using
10675 information from BFD.
10676 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
10677 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
10678
10679 2002-01-28 Andrew Cagney <ac131313@redhat.com>
10680
10681 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
10682 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
10683
10684 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
10685 #ifdef INVALID_FLOAT.
10686 * infcmd.c (do_registers_info): Ditto.
10687 * values.c (unpack_double): Ditto. Add comment.
10688
10689 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
10690 already commented out.
10691
10692 2002-01-26 Andreas Schwab <schwab@suse.de>
10693
10694 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
10695 * m68klinux-nat.c: Update ptrace interface for fetching/storing
10696 registers and add support for PTRACE_GETREGS.
10697
10698 2002-01-24 Andrew Cagney <ac131313@redhat.com>
10699
10700 GDB 5.1.1 released from 5.1 branch.
10701 * NEWS: Add 5.1.1 news.
10702 * README: Sync with 5.1 branch.
10703
10704 2002-01-23 Fred Fish <fnf@redhat.com>
10705
10706 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
10707 stabstring on initial malloc. Reallocing will copy it for us,
10708 if necessary.
10709
10710 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
10711
10712 * Makefile.in (hpread_h): Delete.
10713 (HFILES_NO_SRCDIR): Remove hpread.h.
10714 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
10715 (hpread.o): Update dependencies.
10716 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
10717
10718 * hp-psymtab-read.c: Remove file.
10719 * hp-symtab-read.c: Remove file.
10720 * hpread.h: Remove file.
10721
10722 * hpread.c: Merge all contents of hp-psymtab-read.c,
10723 hp-symtab-read.c and hpread.h into this file, as it was prior to
10724 January 1999.
10725
10726 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
10727 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
10728 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
10729 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
10730
10731 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
10732
10733 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
10734 fill_gregset): Call gdbarch_tdep() just once, assign result to
10735 variable and use that, instead of calling the function several
10736 times.
10737
10738 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
10739
10740 * configure.host: Accept sparcv9 as alias for sparc64.
10741 * configure.tgt: Likewise.
10742
10743 2002-01-22 Kevin Buettner <kevinb@redhat.com>
10744
10745 * solib-aix5.c (build_so_list_from_mapfile)
10746 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
10747 arguments is not reversed.
10748 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
10749 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
10750
10751 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
10752
10753 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
10754 modified version of obsolete sh_fetch_pseudo_register.
10755 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
10756 (sh4_register_read): New function.
10757 (sh_pseudo_register_write): New function. Renamed and modified
10758 version of obsolete sh_store_pseudo_register.
10759 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
10760 (sh4_register_write): New function.
10761 (sh_gdbarch_init): Remove setting of gdbarch function
10762 fetch_pseudo_register and store_pseudo_register. Remove setting of
10763 register_convert_to_raw, register_convert_to_virtual,
10764 register_convertible.
10765 (sh_sh4_register_convertible): Delete. No longer needed. All is
10766 taken care by architecture specific functions
10767 register_read/register_write.
10768 (sh_sh4_register_convert_to_virtual): Make static.
10769 (sh_sh4_register_convert_to_raw): Ditto.
10770
10771 2002-01-22 Andrew Cagney <ac131313@redhat.com>
10772
10773 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
10774 (floatformat_is_nan, floatformat_mantissa): Ditto.
10775
10776 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
10777 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
10778 builtin_type_ieee_double_little,
10779 builtin_type_ieee_double_littlebyte_bigword,
10780 builtin_type_m68881_ext, builtin_type_i960_ext,
10781 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
10782 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
10783 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
10784 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
10785
10786 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
10787
10788 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
10789 parameter. Set frameless flag if it exists and depended of
10790 whether the scanned function is frameless or not.
10791 (xstormy16_skip_prologue): If function is frameless, return
10792 result of xstormy16_scan_prologue().
10793 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
10794 call.
10795
10796 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
10797
10798 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
10799 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
10800 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
10801 sh_sh4_register_byte, sh_sh4_register_raw_size,
10802 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
10803 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
10804 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
10805 sh_store_pseudo_register, sh_do_pseudo_register): Call
10806 gdbarch_tdep() just once, assign result to variable and use that,
10807 instead of calling the function several times.
10808
10809 2002-01-20 Mark Kettenis <kettenis@gnu.org>
10810
10811 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
10812 macros instead of LAST_FPU_CTRL_REGNUM.
10813 (store_register): Likewise.
10814
10815 2002-01-21 Jim Blandy <jimb@redhat.com>
10816
10817 * infcmd.c (run_command): Check that the `exec' target layer's BFD
10818 is up-to-date before running the program, not just when a program
10819 exits.
10820
10821 2002-01-21 Fred Fish <fnf@redhat.com>
10822
10823 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
10824 when we have found all instructions we are looking for.
10825
10826 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
10827
10828 * arm-tdep.c (arm_register_name): New function.
10829 (arm_registers_names): Make static.
10830 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
10831 (arm_register_name): Declare.
10832 (REGISTER_NAME): Use it.
10833
10834 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
10835 Kevin Buettner <kevinb@redhat.com>
10836
10837 Convert arm targets to new FRAME interface.
10838 * arm-tdep.c (struct frame_extra_info): Remove fsr.
10839 (arm_frame_find_save_regs): Delete.
10840 (arm_frame_init_saved_regs): New.
10841 (arm_init_extra_frame_info): Alloacte saved_regs as required.
10842 Allocate extra_info as required. Convert all uses of fsr.regs
10843 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
10844 to use extra_info.
10845 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
10846 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
10847 (check_prologue_cache, save_prologue_cache): Likewise.
10848 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
10849 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
10850 (FRAME_FIND_SAVED_REGS): Delete.
10851 (arm_frame_find_saved_regs): Delete prototype.
10852 (arm_frame_init_saved_regs): New prototype.
10853 (FRAME_INIT_SAVED_REGS): Define.
10854
10855 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10856
10857 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
10858
10859 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10860
10861 From Jeff Law <law@redhat.com>:
10862 * infttrace.c: Include <sys/pstat.h>.
10863 (child_pid_to_exec_file): Revamp. Use pstat call to get the
10864 exec file if the ttrace equivalent fails.
10865
10866 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10867
10868 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
10869 (closeLogFile): Ditto.
10870
10871 2002-01-20 Michael Chastain <mec@shout.net>
10872
10873 * top.c (print_gdb_version): Bump copyright year to 2002.
10874
10875 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10876
10877 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
10878 Zannoni and Eli Zaretskii.
10879
10880 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
10881
10882 * buildsym.c: Update copyright years.
10883 * c-typeprint.c: Likewise.
10884 * dwarf2read.c: Likewise.
10885 * f-typeprint.c: Likewise.
10886 * gdbtypes.c: Likewise.
10887 * gdbtypes.h: Likewise.
10888 * hp-symtab-read.c: Likewise.
10889 * hpread.c: Likewise.
10890 * mdebugread.c: Likewise.
10891 * p-typeprint.c: Likewise.
10892
10893 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10894
10895 * remote-sim.c (gdbsim_open): Simplify code testing the macro
10896 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
10897 byte-order selectable.
10898 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
10899 * arch-utils.c: Ditto.
10900 (set_endian): Ditto.
10901 (set_endian_from_file): Ditto.
10902 * gdbserver/low-sim.c (create_inferior): Ditto.
10903 * gdbarch.sh: Ditto.
10904 * gdbarch.h: Re-generate.
10905 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10906 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
10907 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
10908 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10909 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10910 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10911 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
10912 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
10913 macro definition.
10914 * config/mips/tm-wince.h: Remove #undef of macro
10915 TARGET_BYTE_ORDER_SELECTABLE.
10916 * config/sh/tm-wince.h: Ditto.
10917
10918 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
10919
10920 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
10921 member function fields. Add accessor macro
10922 TYPE_FN_FIELD_ARTIFICIAL.
10923 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
10924 * c-typeprint.c (c_type_print_base): Skip artificial member
10925 functions.
10926
10927 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
10928
10929 * f-typeprint.c: Delete unused function f_type_print_args.
10930 * p-typeprint.c: Delete unused function pascal_type_print_args.
10931
10932 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
10933
10934 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
10935 comment. Add ``artificial'' to ``union field_location''.
10936
10937 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
10938
10939 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
10940 * mdebugread.c (parse_symbol): Likewise.
10941 * stabsread.c (define_symbol): Likewise.
10942 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
10943 initializing TYPE_FIELD_BITPOS to n (obsolete).
10944 (hpread_doc_function_type): Likewise.
10945 * hpread.c (hpread_function_type): Likewise.
10946
10947 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10948
10949 * configure.in (host_makefile_frag): Only require a host makefile
10950 fragment when a native build.
10951 * configure: Re-generate.
10952
10953 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10954
10955 * doublest.h (floatformat_from_type): Declare.
10956 * doublest.c (floatformat_from_type): New function.
10957 (convert_typed_floating): Use.
10958
10959 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
10960 call to function floatformat_from_type.
10961
10962 * gdbarch.sh (IEEE_FLOAT): Delete.
10963 * gdbarch.h, gdbarch.c: Re-generate.
10964 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
10965 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
10966 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
10967 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
10968 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
10969 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
10970 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
10971 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
10972 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
10973 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
10974 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
10975 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
10976
10977 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
10978 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
10979 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10980 * sh-tdep.c (sh_gdbarch_init): Ditto.
10981 * mips-tdep.c (mips_gdbarch_init): Ditto.
10982 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10983 * cris-tdep.c (cris_gdbarch_init): Ditto.
10984
10985 2002-01-20 Jiri Smid <smid@suse.cz>
10986
10987 * configure.host, configure.tgt: Support x86-64.
10988 * NEWS: Note new target x86-64.
10989
10990 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
10991 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
10992 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
10993 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
10994 x86-64-linux-nat.o): Fix dependencies.
10995
10996 2002-01-19 Andrew Cagney <ac131313@redhat.com>
10997
10998 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
10999 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
11000 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
11001 * config/sparc/xm-sun4os4.h: Delete file.
11002 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
11003
11004 2002-01-19 Andrew Cagney <ac131313@redhat.com>
11005
11006 * config/sparc/sparclynx.mh (XM_FILE): Delete.
11007 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
11008 * config/m68k/m68klynx.mh (XM_FILE): Delete.
11009 * config/i386/i386lynx.mh (XM_FILE): Delete.
11010 * config/rs6000/xm-rs6000ly.h: Delete file.
11011 * config/sparc/xm-sparclynx.h: Delete file.
11012 * config/m68k/xm-m68klynx.h: Delete file.
11013 * config/i386/xm-i386lynx.h: Delete file.
11014 * config/xm-lynx.h: Delete file.
11015 * config/djgpp/fnchange.lst: Update.
11016
11017 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11018
11019 * alpha-tdep.c (alpha_register_byte): New function.
11020 (alpha_register_raw_size): Ditto.
11021 (alpha_register_virtual_size): Ditto.
11022 (alpha_skip_prologue_internal): Renamed from
11023 alpha_skip_prologue.
11024 (alpha_skip_prologue): New version that calls
11025 alpha_skip_prologue_internal.
11026 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
11027 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
11028 second argument from alpha_skip_prologue.
11029 (REGISTER_BYTE): Use alpha_register_byte.
11030 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
11031 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
11032 (FRAMELESS_FUNCTION_INVOCATION): Use
11033 generic_frameless_function_invocation_not.
11034 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
11035 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
11036
11037 2002-01-19 Andrew Cagney <ac131313@redhat.com>
11038
11039 * config/mips/xm-news-mips.h: Delete file.
11040 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
11041
11042 * config/m88k/xm-m88k.h: Delete file.
11043 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
11044 * config/m88k/xm-delta88v4.h: Ditto.
11045 * config/m88k/xm-delta88.h: Ditto.
11046
11047 * config/alpha/xm-fbsd.h: Delete file.
11048 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
11049
11050 * config/sparc/xm-sparc.h: Delete file.
11051 * Makefile.in (xm-sun4os4.h): Delete dependency.
11052 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
11053 * config/sparc/xm-sun4os4.h: Ditto.
11054 * config/sparc/xm-linux.h: Ditto.
11055
11056 * config/i386/xm-windows.h: Delete file.
11057
11058 2002-01-19 Andrew Cagney <ac131313@redhat.com>
11059
11060 * utils.c: Include <sys/param.h> for MAXPATHLEN.
11061 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
11062
11063 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11064
11065 * alpha-tdep.c (alpha_call_dummy_words): New.
11066 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
11067 (CALL_DUMMY_P): Define.
11068 (CALL_DUMMY_WORDS): Define.
11069 (SIZEOF_CALL_DUMMY_WORDS): Define.
11070
11071 2002-01-19 Per Bothner <per@bothner.com>
11072
11073 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
11074 isn't NULL, which can happen with some gcj-3.x-produced code.
11075
11076 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11077
11078 * alpha-tdep.c (alpha_register_virtual_type): New function.
11079 (alpha_init_frame_pc_first): Ditto.
11080 (alpha_fix_call_dummy): Ditto.
11081 (alpha_store_struct_return): Ditto.
11082 (alpha_extract_struct_value_address): Ditto.
11083 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
11084 alpha_register_virtual_type.
11085 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
11086 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
11087 alpha_extract_struct_value_address.
11088 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
11089 (INIT_FRAME_PC): Use init_frame_pc_noop.
11090 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
11091
11092 2002-01-19 Mark Kettenis <kettenis@gnu.org>
11093
11094 * i386gnu-nat.c: Include "i386-tdep.h".
11095 (fetch_fpregs): Simplify code dealing with uninitialized floating
11096 point states such that it doesn't require FP7_REGNUM.
11097
11098 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11099
11100 * alpha-tdep.c (frame_extra_info): New.
11101 (alpha_find_saved_regs): Make static. Use
11102 frame->extra_info.
11103 (alpha_frame_init_saved_regs): New function.
11104 (alpha_frame_saved_pc): Use frame->extra_info.
11105 (temp_saved_regs): Don't declare as struct frame_saved_regs.
11106 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
11107 (init_extra_frame_info): Rename to...
11108 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
11109 (alpha_print_extra_frame_info): New function.
11110 (alpha_frame_locals_address): Ditto.
11111 (alpha_frame_args_address): Ditto.
11112 (alpha_pop_frame): Use frame->extra_info.
11113 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
11114 alpha_frame_args_address.
11115 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
11116 (alpha_find_saved_regs): Remove prototype.
11117 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
11118 (EXTRA_FRAME_INFO): Remove.
11119 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
11120 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
11121
11122 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11123
11124 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
11125 (alpha_cannot_fetch_register): Ditto.
11126 (alpha_cannot_store_register): Ditto.
11127 (alpha_register_convertible): Ditto.
11128 (alpha_use_struct_convention): Ditto.
11129 * config/alpha/tm-alpha.h: Update copyright years.
11130 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
11131 (INNER_THAN): Use core_addr_lessthan.
11132 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
11133 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
11134 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
11135 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
11136 (FRAME_CHAIN): Remove unnecessary cast.
11137
11138 2002-01-18 Andrew Cagney <ac131313@redhat.com>
11139
11140 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
11141 obsolete.
11142
11143 2002-01-18 Andrew Cagney <ac131313@redhat.com>
11144
11145 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
11146 * monitor.c, remote-array.c, remote-bug.c: Ditto.
11147 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
11148 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
11149 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
11150 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
11151 * x86-64-linux-nat.c: Ditto.
11152
11153 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11154
11155 * alpha-tdep.c (alpha_register_name): New function.
11156 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
11157 (REGISTER_NAME): Define.
11158
11159 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11160
11161 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
11162
11163 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11164
11165 * alpha-tdep.c: Update copyright years.
11166 (alpha_next_pc): New function.
11167 (alpha_software_single_step): Ditto.
11168 * config/alpha/tm-alpha.h: Add prototype for
11169 alpha_software_single_step.
11170
11171 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11172
11173 * alphabsd-nat.c: Update copyright years.
11174 (fill_gregset): Use regcache_collect.
11175 (fill_fpregset): Likewise.
11176 (fetch_inferior_registers): Only fetch integer registers
11177 if requested to do so.
11178 (store_inferior_registers): Only store integer registers
11179 if requested to do so.
11180
11181 2002-01-17 Andrew Cagney <ac131313@redhat.com>
11182
11183 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
11184 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
11185 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
11186 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
11187 * config/alpha/fbsd.mh (XDEPFILES): Delete.
11188 * config/arm/linux.mh (XDEPFILES): Delete.
11189 * config/arm/nbsd.mh (XDEPFILES): Delete.
11190 * config/i386/i386dgux.mh (XDEPFILES): Delete.
11191 * config/i386/i386sol2.mh (XDEPFILES): Delete.
11192 * config/i386/i386m3.mh (XDEPFILES): Delete.
11193 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
11194 * config/i386/i386gnu.mh (XDEPFILES): Delete.
11195 * config/i386/fbsd.mh (XDEPFILES): Delete.
11196 * config/i386/i386bsd.mh (XDEPFILES): Delete.
11197 * config/i386/i386sco5.mh (XDEPFILES): Delete.
11198 * config/i386/i386v4.mh (XDEPFILES): Delete.
11199 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
11200 * config/i386/i386sco4.mh (XDEPFILES): Delete.
11201 * config/i386/i386aix.mh (XDEPFILES): Delete.
11202 * config/i386/go32.mh (XDEPFILES): Delete.
11203 * config/i386/cygwin.mh (XDEPFILES): Delete.
11204 * config/i386/i386lynx.mh (XDEPFILES): Delete.
11205 * config/i386/i386mach.mh (XDEPFILES): Delete.
11206 * config/i386/i386v32.mh (XDEPFILES): Delete.
11207 * config/i386/linux.mh (XDEPFILES): Delete.
11208 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
11209 * config/i386/ncr3000.mh (XDEPFILES): Delete.
11210 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
11211 * config/i386/i386sco.mh (XDEPFILES): Delete.
11212 * config/i386/i386v.mh (XDEPFILES): Delete.
11213 * config/i386/nbsd.mh (XDEPFILES): Delete.
11214 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
11215 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
11216 * config/i386/symmetry.mh (XDEPFILES): Delete.
11217 * config/i386/obsd.mh (XDEPFILES): Delete.
11218 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
11219 * config/ia64/linux.mh (XDEPFILES): Delete.
11220 * config/ia64/aix.mh (XDEPFILES): Delete.
11221 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
11222 * config/m68k/dpx2.mh (XDEPFILES): Delete.
11223 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
11224 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
11225 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
11226 * config/m68k/linux.mh (XDEPFILES): Delete.
11227 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
11228 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
11229 * config/m68k/nbsd.mh (XDEPFILES): Delete.
11230 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
11231 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
11232 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
11233 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
11234 * config/m88k/delta88.mh (XDEPFILES): Delete.
11235 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
11236 * config/m88k/m88k.mh (XDEPFILES): Delete.
11237 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
11238 * config/mips/linux.mh (XDEPFILES): Delete.
11239 * config/mips/irix6.mh (XDEPFILES): Delete.
11240 * config/mips/irix5.mh (XDEPFILES): Delete.
11241 * config/mips/irix4.mh (XDEPFILES): Delete.
11242 * config/mips/irix3.mh (XDEPFILES): Delete.
11243 * config/mips/decstation.mh (XDEPFILES): Delete.
11244 * config/mips/mipsm3.mh (XDEPFILES): Delete.
11245 (NATDEPFILES): Move core-aout.o to here.
11246 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
11247 * config/pa/hpux1020.mh (XDEPFILES): Delete.
11248 * config/pa/hppabsd.mh (XDEPFILES): Delete.
11249 * config/pa/hppahpux.mh (XDEPFILES): Delete.
11250 * config/pa/hpux11w.mh (XDEPFILES): Delete.
11251 * config/pa/hppaosf.mh (XDEPFILES): Delete.
11252 * config/pa/hpux11.mh (XDEPFILES): Delete.
11253 * config/powerpc/aix.mh (XDEPFILES): Delete.
11254 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
11255 * config/powerpc/linux.mh (XDEPFILES): Delete.
11256 * config/romp/rtbsd.mh: Rename XDEPFILES.
11257 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
11258 * config/rs6000/aix4.mh (XDEPFILES): Delete.
11259 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
11260 * config/s390/s390.mh (XDEPFILES): Delete.
11261 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
11262 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
11263 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
11264 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
11265 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
11266 * config/sparc/nbsd.mh (XDEPFILES): Delete.
11267 * config/sparc/linux.mh (XDEPFILES): Delete.
11268 * config/vax/vaxult.mh (XDEPFILES): Delete.
11269 * config/vax/vaxult2.mh (XDEPFILES): Delete.
11270 * Makefile.in (DEPFILES): Remove XDEPFILES.
11271
11272 2002-01-17 Andrew Cagney <ac131313@redhat.com>
11273
11274 * utils.c (internal_verror): Fix comments, default is yes not no.
11275 Update queries to match. Default to quit and dump core.
11276
11277 2002-01-17 Andrew Cagney <ac131313@redhat.com>
11278
11279 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
11280 copyright.
11281 * defs.h, event-top.c, gdbcmd.h: Ditto.
11282 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
11283 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
11284 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
11285 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
11286 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
11287 * mi/mi-main.c:Ditto.
11288
11289 * stack.c, symfile.c: Update copyright.
11290
11291 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
11292
11293 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
11294 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
11295 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
11296 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
11297
11298 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
11299
11300 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
11301 * gdbserver/low-lynx.c (myattach): Likewise.
11302 * gdbserver/low-nbsd.c (myattach): Likewise.
11303 * gdbserver/low-sim.c (myattach): Likewise.
11304 * gdbserver/low-sparc.c (myattach): Likewise.
11305 * gdbserver/low-sun3.c (myattach): Likewise.
11306
11307 * gdbserver/low-linux.c (myattach): New function.
11308
11309 * gdbserver/server.c (attach_inferior): New function.
11310 (main): Handle "--attach".
11311
11312 2002-01-16 Andrew Cagney <ac131313@redhat.com>
11313
11314 * MAINTAINERS (language support): Daniel Jacobwitz is C++
11315 maintainer.
11316
11317 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
11318
11319 * c-typeprint.c (is_type_conversion_operator): Add additional
11320 check for non-conversion operators.
11321
11322 2002-01-15 Michael Snyder <msnyder@redhat.com>
11323
11324 * linux-proc.c: Add "info proc" command, a la procfs.c.
11325 (read_mapping): New function, abstract and re-use code.
11326 (linux_find_memory_regions): Use new func read_mapping.
11327 (linux_info_proc_cmd): New function, implement "info proc".
11328 (_initialize_linux_proc): Add new command "info proc".
11329
11330 2002-01-15 Michael Snyder <msnyder@redhat.com>
11331
11332 * symfile.c (generic_load): Use bfd_map_over_sections method
11333 instead of manipulating bfd structure members directly.
11334 (add_section_size_callback): New function, bfd sections callback
11335 used by generic_load.
11336 (load_sections_callback): New function, bfd sections callback
11337 used by generic_load.
11338
11339 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
11340
11341 [Based on work by Jim Blandy]
11342 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
11343 (builtin_type_vec128): Export.
11344 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
11345 types.
11346 (builtin_type_vec128): New builtin type for 128 bit vector
11347 registers.
11348 (build_gdbtypes): Initialize builtin_type_v16qi and
11349 builtin_type_v8hi. Create the vec128 register builtin type
11350 structure.
11351 (build_builtin_type_vec128): New function.
11352 (_initialize_gdbtypes): Register builtin_type_v16qi and
11353 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
11354 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
11355 AltiVec register to new builtin type.
11356
11357 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
11358
11359 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
11360 to make_cv_type.
11361
11362 2002-01-14 Andrew Cagney <ac131313@redhat.com>
11363
11364 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
11365 CLEAN_UP_REGISTER_VALUE.
11366 * regcache.c (supply_register): Update only call.
11367
11368 2002-01-14 Andrew Cagney <ac131313@redhat.com>
11369
11370 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
11371 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
11372 a29k-*-vxworks* targets as obsolete.
11373
11374 2002-01-14 Michael Snyder <msnyder@redhat.com>
11375
11376 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
11377 until we can resolve portability issues.
11378 * gregset.h: Remove references to fpxregs.
11379 * gcore.c (gcore_command): Initialize note_sec to NULL.
11380
11381 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11382
11383 * signals.c (target_signal_to_name): Rewrite. Only use
11384 signals[].name when in bounds and non-NULL.
11385
11386 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11387
11388 From Petr Ledvina <ledvinap@kae.zcu.cz>:
11389 * signals.c (target_signal_to_name): Verify that SIG is within the
11390 bounds of the signals array.
11391
11392 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11393
11394 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
11395
11396 2002-01-13 Keith Seitz <keiths@redhat.com>
11397
11398 * stack.c (print_frame_info_base): Print the frame's pc
11399 only if when print_frame_info_listing_hook is not defined.
11400
11401 2002-01-13 Keith Seitz <keiths@redhat.com>
11402
11403 * varobj.c (varobj_set_value): Make sure that there were no
11404 errors evaluating the object before attempting to set its
11405 value.
11406 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
11407 so this offset adjustment is no longer necessary.
11408 (create_child): Don't set the error flag if the child is
11409 a CPLUS_FAKE_CHILD.
11410 (value_of_child): If value_fetch_lazy fails, return NULL
11411 so that callers will be notified that an error occurred.
11412 (c_value_of_variable): Delay check of variable's validity
11413 until later. We actually want all structs and unions to have
11414 the value "{...}".
11415 Do not return "???" for variables which could not be evaluated.
11416 This error condition must be returned to the caller so that it
11417 can get the error condition from gdb.
11418 (cplus_name_of_child): Adjust index for vptr before figuring
11419 out the name of the child.
11420 (cplus_value_of_child): If a child's (real) parent is not valid,
11421 don't even bother trying to give a value for it. Just return
11422 an error. Change all instances in this function.
11423 (cplus_type_of_child): If our parent is one of the "fake"
11424 parents, we need to get at the type of the real parent, and
11425 derive the child's true type using this information.
11426
11427 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11428
11429 From 2002-01-09 John Marshall <johnm@falch.net>:
11430 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
11431 sources.redhat.com, and tweak some related URLs which had
11432 suffered from linkrot.
11433
11434 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11435
11436 From Jeff law:
11437 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
11438 structures passed in registers.
11439
11440 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
11441
11442 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
11443 white space which prevented compilation. Reported by DSK
11444 <dsk@student.unsw.edu.au>.
11445
11446 2002-01-11 Michael Snyder <msnyder@redhat.com>
11447
11448 * symfile.c (build_section_addr_info_from_section_tab):
11449 Use bfd access method instead of manipulating bfd directly.
11450 (syms_from_objfile): Ditto.
11451 (simple_overlay_update_1): Ditto.
11452 (simple_overlay_update): Ditto.
11453 (generic_load): Ditto.
11454 (overlay_unmapped_address): FIXME comment, bfd access methods.
11455 (sections_overlap): FIXME comment, bfd access methods.
11456 (pc_in_mapped_range): FIXME comment, bfd access methods.
11457 (pc_in_unmapped_range): FIXME comment, bfd access methods.
11458 (section_is_mapped): FIXME comment, bfd access methods.
11459 (section_is_overlay): FIXME comment, bfd access methods.
11460
11461 * symfile.c (generic_load): Whitespace and long line cleanups.
11462 Remove duplicate variable, change several local variables to
11463 more appropriate data types.
11464 (print_transfer_performance): Use %lu instead of %ld for ulongs.
11465
11466 2002-01-12 Andrew Cagney <ac131313@redhat.com>
11467
11468 From Peter Schauer:
11469 * language.c (longest_local_hex_string_custom): Use phex_nz to
11470 convert NUM to a hex string.
11471
11472 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
11473
11474 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
11475 the function.
11476 Update Copyright year.
11477
11478 2002-01-12 Andrew Cagney <ac131313@redhat.com>
11479
11480 * language.c (longest_raw_hex_string): Delete unused function.
11481
11482 2002-01-11 Petr Sorfa <petrs@caldera.com>
11483
11484 * MAINTAINERS (write-after-approval): Add myself.
11485 * dwarf2read.c (read_tag_string_type): Handling of
11486 DW_AT_byte_size.
11487 (read_tag_string_type): FORTRAN fix to prevent propagation of
11488 first string size.
11489 (set_cu_language): Handling of DW_LANG_Fortran95
11490
11491 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
11492
11493 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
11494 GETPID(inferior_ptid).
11495 (store_inferior_registers): Likewise.
11496
11497 2002-01-10 Jason Merrill <jason@redhat.com>
11498
11499 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
11500 Fix DW_OP_minus.
11501
11502 2002-01-10 Andrew Cagney <ac131313@redhat.com>
11503
11504 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
11505 and bfd/elf32-sh-nbsd.c.
11506
11507 2002-01-10 Michael Snyder <msnyder@redhat.com>
11508
11509 * NEWS: Mention --pid and corefile/proc-id behavior change.
11510
11511 * Makefile.in: Add rules for gcore.o and linux-proc.o.
11512 * gcore.c: Include cli/cli-decode.h instead of command.h.
11513
11514 * main.c (captured_main): Add new command line option "--pid".
11515 If the second command line argument (following the symbol-file)
11516 begins with a digit, try to attach to it before trying to open
11517 it as a corefile.
11518 (print_gdb_help): Document the "--pid" argument.
11519
11520 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
11521
11522 * completer.c (command_completer): New function.
11523
11524 * completer.h <command_completer>: Add prototype.
11525
11526 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
11527 completer for the "help" command.
11528
11529 2002-01-09 Jason Merrill <jason@redhat.com>
11530
11531 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
11532
11533 2002-01-09 Michael Snyder <msnyder@redhat.com>
11534
11535 * i386-linux-nat.c (fill_fpxregset): Make global.
11536 (store_fpxregset): Ditto.
11537
11538 * gregset.h (gdb_fpxregset_t): Define.
11539 (supply_fpxregset): Prototype.
11540 (fill_fpxregset): Prototype.
11541
11542 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
11543
11544 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
11545
11546 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
11547 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
11548 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
11549
11550 2002-01-09 Andrew Cagney <ac131313@redhat.com>
11551
11552 * MAINTAINERS: Update target maintainer rules so that any
11553 Maintainer can approve a tested patch for a maintenance-only
11554 target.
11555
11556 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
11557
11558 * MAINTAINERS (write-after-approval): Add myself.
11559
11560 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
11561 IN_SIGTRAMP.
11562
11563 2002-01-08 Michael Snyder <msnyder@redhat.com>
11564
11565 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
11566 real name of the executable, rather than the /proc name.
11567
11568 2002-01-03 Michael Snyder <msnyder@redhat.com>
11569
11570 Implement a "generate-core-file" command in gdb, save target state.
11571 * gcore.c: New file. Implement new command 'generate-core-file'.
11572 Save a corefile image of the current state of the inferior.
11573 * linux-proc.c: Add linux-specific code for saving corefiles.
11574 * target.h (struct target_ops): Add new target vectors for saving
11575 corefiles; to_find_memory_regions and to_make_corefile_notes.
11576 (target_find_memory_regions): New macro.
11577 (target_make_corefile_notes): New macro.
11578 * target.c (update_current_target): Inherit new target methods.
11579 (dummy_find_memory_regions): New place-holder method.
11580 (dummy_make_corefile_notes): New place-holder method.
11581 (init_dummy_target): Initialize new dummy target vectors.
11582 * exec.c (exec_set_find_memory_regions): New function.
11583 Allow the exec_ops vector for memory regions to be taken over.
11584 (exec_make_note_section): New function, target vector method.
11585 * defs.h (exec_set_find_memory_regions): Export prototype.
11586 * procfs.c (proc_find_memory_regions): New function, corefile method.
11587 (procfs_make_note_section): New function, corefile method.
11588 (init_procfs_ops): Set new target vector pointers.
11589 (find_memory_regions_callback): New function.
11590 (procfs_do_thread_registers): New function.
11591 (procfs_corefile_thread_callback): New function.
11592 * sol-thread.c (sol_find_memory_regions): New function.
11593 (sol_make_note_section): New function.
11594 (init_sol_thread_ops): Initialize new target vectors.
11595 * inftarg.c (inftarg_set_find_memory_regions): New function.
11596 Allow to_find_memory_regions vector to be taken over.
11597 (inftarg_set_make_corefile_notes): New function.
11598 Allow to_make_corefile_notes vector to be taken over.
11599 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
11600 interface layer if not target_has_execution (may be a corefile).
11601 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
11602 * config/sparc/sun4sol2.mh: Ditto.
11603 * config/alpha/alpha-linux.mh: Ditto.
11604 * config/arm/linux.mh: Ditto.
11605 * config/i386/x86-64linux.mh: Ditto.
11606 * config/ia64/linux.mh: Ditto.
11607 * config/m68k/linux.mh: Ditto.
11608 * config/mips/linux.mh: Ditto.
11609 * config/powerpc/linux.mh: Ditto.
11610 * config/sparc/linux.mh: Ditto.
11611
11612 2002-01-07 Michael Snyder <msnyder@redhat.com>
11613
11614 * arm-linux-nat.c: Remove references to regcache.c internal data
11615 (registers[] and register_valid[]).
11616
11617 2002-01-07 Michael Snyder <msnyder@redhat.com>
11618
11619 * linux-proc.c: New file. Implement child_pid_to_exec_file,
11620 so that attaching to a pid will automatically read the process's
11621 symbol file and shlibs.
11622 * Makefile.in: Add rule for linux-proc.o.
11623 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
11624 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
11625 * config/arm/linux.mh: Ditto.
11626 * config/i386/linux.mh: Ditto.
11627 * config/i386/x86-64linux.mh: Ditto.
11628 * config/ia64/linux.mh: Ditto.
11629 * config/m68k/linux.mh: Ditto.
11630 * config/mips/linux.mh: Ditto.
11631 * config/powerpc/linux.mh: Ditto.
11632 * config/sparc/linux.mh: Ditto.
11633
11634 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
11635
11636 * win32-nat.c: Add i386-tdep.h dependency.
11637
11638 2002-01-07 Michael Snyder <msnyder@redhat.com>
11639
11640 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
11641 instead of bfd_get_arch_size. Don't bail out just because
11642 there's no exec_bfd.
11643
11644 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
11645 * p-valprint.c (pascal_object_print_value): Ditto.
11646 * somread.c (som_symtab_read): Ditto.
11647 * symfile.c (simple_free_overlay_region_table): Ditto.
11648 * valops.c (value_assign): Ditto.
11649
11650 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
11651 use tilde_expand and strerror for opening save-tracepoints file.
11652
11653 * thread-db.c (thread_db_new_objfile): Indendation fix.
11654
11655 * infptrace.c (GDB_MAX_ALLOCA): New define.
11656 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
11657 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
11658 can be overridden with whatever value is appropriate to the host).
11659 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
11660 alloca to allocate potentially large buffer.
11661 * rs6000-nat.c (child_xfer_memory): Ditto.
11662 * symm-nat.c (child_xfer_memory): Ditto.
11663 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
11664
11665 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
11666
11667 From Nick Clifton <nickc@redhat.com>
11668 * d10v-tdep.c: Set STACK_START to 0x200bffe.
11669
11670 2002-01-07 Michael Snyder <msnyder@redhat.com>
11671
11672 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
11673 Don't use exec_bfd if it's NULL.
11674
11675 2002-01-06 Mark Kettenis <kettenis@gnu.org>
11676
11677 * valops.c (value_arg_coerce): Fix formatting.
11678
11679 2002-01-06 Andrew Cagney <ac131313@redhat.com>
11680
11681 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
11682 * gnu-nat.c: Ditto.
11683
11684 2002-01-06 Andrew Cagney <ac131313@redhat.com>
11685
11686 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
11687 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
11688 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
11689 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
11690 z8k-coff have not been multi-arched. Update z8k-coff build
11691 status.
11692
11693 2002-01-06 Andrew Cagney <ac131313@redhat.com>
11694
11695 * MAINTAINERS: Mark a29k target as obsolete.
11696 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
11697 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
11698 comments.
11699 * NEWS: Note that a29k targets are obsolete.
11700 * a29k-tdep.c: Mark as obsolete.
11701 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
11702 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
11703 a29k-*-vxworks* targets as obsolete.
11704 * remote-adapt.c: Obsolete.
11705 * remote-eb.c: Obsolete.
11706 * remote-mm.c: Obsolete.
11707 * remote-udi.c: Obsolete.
11708 * config/a29k/a29k-udi.mt: Obsolete.
11709 * config/a29k/a29k.mt: Obsolete.
11710 * config/a29k/tm-a29k.h: Obsolete.
11711 * config/a29k/tm-vx29k.h: Obsolete.
11712 * config/a29k/vx29k.mt: Obsolete.
11713
11714 2002-01-05 Andrew Cagney <ac131313@redhat.com>
11715
11716 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
11717 with BFD_ENDIAN_BIG.
11718
11719 2002-01-05 Andrew Cagney <ac131313@redhat.com>
11720
11721 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
11722 * configure, config.in: Re-generate.
11723 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
11724 * defs.h: Do not include <endian.h>.
11725
11726 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
11727
11728 * acconfig.h (HAVE_PT_GETXMMREGS): New.
11729 * config.in: Regenerate.
11730 * configure.in: Update copyright years.
11731 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
11732 * configure: Regenerate.
11733 * i386bsd-nat.c: Update copyright years.
11734 (fill_gregset): Use regcache_collect.
11735 (fetch_inferior_registers): Only fetch integer registers
11736 if requested to do so. Add support for XMM registers
11737 using PT_GETXMMREGS.
11738 (store_inferior_registers): Only store integer registers
11739 if requested to do so. Add support for XMM registers
11740 using PT_SETXMMREGS.
11741 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
11742 (store_inferior_registers): Remove.
11743 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
11744 (fetch_elfcore_registers): New function.
11745 (i386nbsd_elfcore_fns): New.
11746 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
11747 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
11748 i386bsd-nat.o.
11749 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
11750 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
11751 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
11752 * config/i386/tm-nbsd.h: Update copyright years.
11753 (HAVE_SSE_REGS): Define.
11754 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
11755 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
11756 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
11757 (SIGCONTEXT_PC_OFFSET): Remove.
11758 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
11759
11760 2002-01-05 Andrew Cagney <ac131313@redhat.com>
11761
11762 * configure.tgt: Remove powerpc-*-macos* target.
11763 * config/m68k/xm-mpw.h: Delete file.
11764 * config/xm-mpw.h: Delete file.
11765 * ser-mac.c: Delete file.
11766 * mpw-make.sed: Delete file.
11767 * mpw-config.in: Delete file.
11768 * mac-xdep.c: Delete file.
11769 * mac-gdb.r: Delete file.
11770 * mac-defs.h: Delete file.
11771 * mac-nat.c: Delete file.
11772 * config/powerpc/macos.mh: Delete file.
11773 * config/powerpc/macos.mt: Delete file.
11774 * config/powerpc/nm-macos.h: Delete file.
11775 * config/powerpc/tm-macos.h: Delete file.
11776 * source.c (openp, open_source_file): Remove obsolete code.
11777 * top.c (gdb_readline): Ditto.
11778 * utils.c (query): Ditto.
11779 * event-top.c (display_gdb_prompt): Ditto.
11780 * Makefile.in (ser-mac.o): Delete obsolete target.
11781 * NEWS: Update.
11782
11783 2002-01-04 Andrew Cagney <ac131313@redhat.com>
11784
11785 * defs.h (BIG_ENDIAN): Delete macro definition.
11786 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
11787 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
11788 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
11789 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
11790 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
11791 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
11792 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
11793 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
11794 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
11795 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
11796 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
11797 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
11798 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
11799 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
11800 * gdbarch.c: Re-generate.
11801
11802 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
11803
11804 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
11805 for core files.
11806
11807 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
11808
11809 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
11810
11811 2002-01-04 Andrew Cagney <ac131313@redhat.com>
11812
11813 * value.h (value_ptr): Delete typedef.
11814
11815 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
11816
11817 * i386nbsd-nat.c: Update copyright years.
11818 Include i386-tdep.h.
11819
11820 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
11821
11822 * stabsread.c: Update copyright years.
11823
11824 From Debashis Mahata <debashis.mahata@wipro.com>:
11825 (read_struct_fields): Deal with Sun C compiler erroneous stab
11826 output for structs and unions.
11827 Fix PR gdb/269.
11828
11829 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
11830
11831 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
11832 prototype.
11833
11834 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
11835
11836 * cp-abi.c: Fix whitespace.
11837 (baseclass_offset): New wrapper function.
11838 * cp-abi.h (baseclass_offset): Add prototype.
11839 (struct cp_abi_ops): Add baseclass_offset pointer.
11840
11841 * valops.c (vb_match): Move to...
11842 * gnu-v2-abi.c (vb_match): here.
11843 * valops.c (baseclass_offset): Move to...
11844 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
11845
11846 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
11847
11848 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
11849 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
11850 * hpacc-abi.c (init_hpacc_ops): Likewise.
11851
11852 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
11853
11854 * valops.c (find_overload_match): Accept obj as a
11855 reference parameter. Update it before returning.
11856 * value.h (find_overload_match): Update prototype.
11857 * eval.c (evaluate_subexp_standard): Pass object to
11858 find_overload_match by reference.
11859
11860 2002-01-03 Andrew Cagney <ac131313@redhat.com>
11861
11862 * valarith.c: Replace value_ptr with struct value pointer. Remove
11863 register attribute from value declarations.
11864 * valops.c: Ditto.
11865 * value.h: Ditto.
11866 * scm-lang.c (scm_lookup_name): Ditto.
11867
11868 2002-01-03 Michael Snyder <msnyder@redhat.com>
11869
11870 Abstract the functionality of iterating over mapped memory
11871 regions into a general purpose iterator function.
11872 * procfs.c (iterate_over_mappings): New function, general purpose
11873 iterator for memory sections.
11874 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
11875 (solib_mappings_callback): New function, callback for above.
11876 (info_proc_mappings): Reimpliment using iterate_over_mappings.
11877 (info_mappings_callback): New function, callback for above.
11878
11879 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
11880
11881 2002-01-01 Mark Kettenis <kettenis@gnu.org>
11882
11883 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
11884 * i386-tdep.c: Include "elf-bfd.h".
11885 (process_note_abi_tag_sections): New function.
11886 (i386_gdbarch_init): Add code to recognize various OS/ABI
11887 combinations.
11888
11889 * maint.c (_initialize_maint_cmds): Add missing \ in
11890 string-literal.
11891
11892 For older changes see ChangeLog-2001
11893 \f
11894 Local Variables:
11895 mode: change-log
11896 left-margin: 8
11897 fill-column: 74
11898 version-control: never
11899 End: