language.h (CAST_IS_CONVERSION): Add language_objc.
[binutils-gdb.git] / gdb / ChangeLog
1 2002-10-11 Adam Fedor <fedor@gnu.org>
2
3 * language.h (CAST_IS_CONVERSION): Add language_objc.
4
5 2002-10-11 Adam Fedor <fedor@gnu.org>
6
7 * defs.h (enum language): Add language_objc.
8
9 2002-10-11 Klee Dienes <kdienes@apple.com>
10
11 * findvar.c (read_memory_typed_address): New function.
12 * gdbcore.h (read_memory_typed_address): Add prototype.
13 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
14 to read a value destined for a CORE_ADDR, not read_memory_integer.
15 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
16 (f77_get_dynamic_lowerbound): Ditto.
17
18 2002-10-11 Martin M. Hunt <hunt@redhat.com>
19
20 * utils.c (string_to_core_addr): After turning string into
21 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
22 which will do necessary sign-extension, etc.
23
24 2002-10-11 Daniel Jacobowitz <drow@mvista.com>
25
26 * c-exp.y (THIS): Delete token and grammar rule.
27 (yylex): Don't return THIS.
28 * cp-valprint.c (vtbl_ptr_name_old): Delete.
29 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
30 * demangle.c (cplus_markers): Update comment. Put '$'
31 first. Remove CPLUS_MARKER.
32 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
33 * jv-exp.y (THIS): Delete token and grammar rule.
34 (yylex): Don't return THIS.
35 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
36 * objc-exp.y (THIS): Delete token and grammar rule.
37 (yylex): Don't return THIS.
38 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
39 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
40 (read_member_functions): Likewise for opname.
41 (read_tilde_fields): Use is_cplus_marker.
42
43 * defs.h (CPLUS_MARKER): Don't define.
44 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
45 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
46 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
47 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
48 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
49
50 * config/i386/tm-i386v4.h: Delete file.
51 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
52 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
53 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
54 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
55 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
56 * config/i386/i386sco5.mt (TM_FILE): Likewise.
57 * config/i386/i386v4.mt (TM_FILE): Likewise.
58 * config/i386/ncr3000.mt (TM_FILE): Likewise.
59
60 2002-10-10 Marko Mlinar <markom@opencores.org>
61
62 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
63 accidentially not commited 2002-10-09
64 * gdbarch.h, gdbarch.c: Re-generate.
65
66 2002-10-09 Marko Mlinar <markom@opencores.org>
67
68 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
69 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
70 * gdbarch.h, gdbarch.c: Re-generate.
71
72 2002-10-08 Petr Sorfa <petrs@caldera.com>
73
74 Revised and re-submitted by John Wolfe <jlw@caldera.com>
75
76 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
77 so we can work on more than one compilation unit at a time. This
78 helps prepare GDB to handle inter-CU die references.
79 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
80 the code to be defined before struct comp_unit_head.
81 (comp_unit_head): Added new members - offset, cu_head,
82 begin_die, next and dwarf2_abbrevs.
83 (dwarf2_abbrevs): Removed single static var; now member of
84 struct comp_unit_head.
85 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
86 members.
87 (psymtab_to_symtab_1): Changed to work with the new
88 struct comp_unit_head.
89 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
90 constructs the dwarf2_abbrevs[] inside the cu_header.
91 (dwarf2_empty_abbrev_table): Now expects a ptr to a
92 dwarf2_abbrev table to clean up.
93 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
94 handling of dwarf2_abbrevs inside the cu_header.
95 (read_partial_die): Now supports the call to the new
96 dwarf2_lookup_abbrev.
97 (read_full_die): Now supports the call to the new
98 dwarf2_lookup_abbrev.
99
100 2002-10-06 Christopher Faylor <cgf@redhat.com>
101
102 * Makefile.in (install-gdbtk): Add missing continuation backslash to
103 insure that shell variables, such as "transformed_name" are propagated
104 to later shell statements in rule.
105
106 2002-10-06 Mark Kettenis <kettenis@gnu.org>
107
108 * config/i386/nm-i386sco.h: Add protection against
109 multiple-inclusion. Include "i386/nm-i386v.h".
110 (REGISTER_U_ADDR): Remove define.
111 (i386_register_u_addr): Remove prototype.
112
113 2002-10-04 Michael Snyder <msnyder@redhat.com>
114
115 * m32r-stub.c (handle_exception): Make sure exception is "trap"
116 before treating it as a single-step event.
117
118 2002-10-03 Adam Fedor <fedor@gnu.org>
119
120 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
121 (objc_demangle): Remove assignment in if statements, Replace
122 free with xfree.
123 (add_msglist): Likewise.
124 (end_msglist): Likewise.
125 (complare_selectors): Likewise.
126 (selectors_info): Likewise.
127 (compare_classes): Likewise.
128 (classes_info): Likewise.
129 (print_object_command): Likewise.
130 (find_objc_msgcall_submethod): Replace PTR with void *.
131 * objc-lang.h: Remove check for __STDC__.
132
133 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
134
135 * ui-out.h (ui_out_field_fmt_int): New prototype.
136 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
137 of field width and alignment.
138 * stack.c (print_frame_info_base): When printing frame level, use
139 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
140 PR gdb/192
141
142 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
143
144 * MAINTAINERS: Add self to Write After Approval list.
145
146 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
147
148 * infcmd.c (interrupt_target_command_wrapper): Delete.
149 (interrupt_target_command): Make non static.
150 (nofp_registers_info): Make static.
151 * stack.c (return_command_wrapper): Delete.
152 (return_command): Make non static.
153
154 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
155
156 * event-top.c (gdb_setup_readline): New function. Code moved from
157 _initialize_event_loop().
158 (_initialize_event_loop): Call gdb_setup_readline().
159
160 2002-10-02 Andrew Cagney <ac131313@redhat.com>
161
162 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
163 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
164 * gdbarch.h, gdbarch.c: Re-generate.
165
166 2002-10-02 Daniel Jacobowitz <drow@mvista.com>
167
168 Fix PR gdb/778
169 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
170 before recursing.
171 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
172 of fill_in_vptr_fieldno.
173
174 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
175
176 * inferior.h (registers_info, stepi_command, nexti_command,
177 continue_command, interrupt_target_command): Export from infcmd.c.
178 * frame.h (args_info, selected_frame_level_changed_hook,
179 return_command): Export from stack.c.
180 * v850ice.c (stepi_command, nexti_command, continue_command): use
181 prototypes from inferior.h.
182 * tracepoint.c (registers_info, args_info, locals_info): Use
183 prototypes from frame.h and inferior.h.
184 * Makefile.in (mi-main.o): Add dependency on frame.h.
185
186 2002-10-02 Andrew Cagney <ac131313@redhat.com>
187
188 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
189 value in register 3 adjusted by ppc_gp0_regnum.
190
191 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
192
193 2002-10-02 Marko Mlinar <markom@opencores.org>
194
195 * MAINTAINERS: Add myself to the Write After Approval list.
196
197 2002-10-01 Alexandre Oliva <aoliva@redhat.com>
198
199 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
200 of the section for the N64 ABI, fixed.
201
202 * config/mips/tm-irix6.h: Include solib.h.
203
204 2002-10-01 Elena Zannoni <ezannoni@redhat.com>
205
206 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
207 GNU operators.
208
209 2002-10-01 Andrew Cagney <ac131313@redhat.com>
210
211 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
212 and that "mi0" syntax has been removed.
213
214 2002-09-30 David Carlton <carlton@math.stanford.edu>
215
216 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
217 * ppc-sysv-tdep.c: #include "gdb_string.h".
218 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
219 pacify GCC.
220
221 2002-10-01 Andrew Cagney <ac131313@redhat.com>
222
223 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
224 "vrsave"'s register number.
225
226 2002-09-30 Andrew Cagney <ac131313@redhat.com>
227
228 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
229 use frame_unwind_signed_register to obtain the PC.
230 (mips_frame_chain): Handle a generic dummy frame.
231 (mips_init_extra_frame_info): When a generic dummy frame, don't
232 re-compute the frame base.
233 (mips_pop_frame): Handle generic dummy frames.
234 (mips_gdbarch_init): When generic dummy frames, set
235 use_generic_dummy_frames, push_dummy_frame to
236 generic_push_dummy_frame, pc_in_call_dummy to
237 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
238 generic_save_dummy_frame_tos.
239
240 2002-09-30 Andrew Cagney <ac131313@redhat.com>
241
242 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
243 against TOP when TOP was explictly set.
244 (generic_push_dummy_frame): Set TOP to zero.
245
246 2002-09-30 Elena Zannoni <ezannoni@redhat.com>
247
248 * event-loop.c (start_event_loop): Rename variable 'result' to
249 'gdb_result', to avoid conflicts with upcoming intepreters changes.
250
251 2002-09-30 Keith Seitz <keiths@redhat.com>
252
253 * gdb-events.sh (selected_thread_changed): New event.
254 * gdb-events.c: Regenerated.
255 * gdb-events.h: Regenerated.
256
257 2002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
258
259 * MAINTAINERS: Add self to Write After Approval list.
260
261 2002-09-30 Fernando Nasser <fnasser@redhat.com>
262
263 * disasm.c: New file.
264 * disasm.h: New file.
265 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
266 (compare_lines): Ditto.
267 (dump_insns): Ditto.
268 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
269 argument.
270 (do_assembly_only): Ditto.
271 (do_disassembly): Renamed to gdb_disassembly and moved to
272 disasm.c. Sdded uiout argument.
273 * Makefile.in: Add new files. Reorder SFILES list. Update
274 dependencies. Include libgdb.a later in the insight executable.
275
276 2002-09-29 Andrew Cagney <ac131313@redhat.com>
277
278 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
279 bfd/elf64-alpha-fbsd.c.
280
281 2002-09-29 Andrew Cagney <ac131313@redhat.com>
282
283 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
284 i386gnu-tdep.c.
285
286 2002-09-29 Andrew Cagney <ac131313@redhat.com>
287
288 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
289 __FUNCTION__.
290 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
291 function name.
292 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
293 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
294 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
295 (S_msg_sig_post_reply): Ditto.
296
297 2002-09-28 Corinna Vinschen <vinschen@redhat.com>
298
299 * sh-tdep.c (sh_use_struct_convention): Use definition according
300 to ABI.
301 (sh_push_arguments): Store in register with correct endianess.
302 (sh_default_store_return_value): Ditto.
303 (sh_gdbarch_init): Set sizeof long double to 8.
304
305 2002-09-27 Mark Kettenis <kettenis@gnu.org>
306
307 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
308 Fix some whitespace problems.
309
310 2002-09-27 David Carlton <carlton@math.stanford.edu>
311
312 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
313 (mcore-tdep.o): Ditto.
314 (ns32k-tdep.o): Ditto.
315 (ns32knbsd-tdep.o): Ditto.
316 (sh3-rom.o): Ditto.
317 (vax-tdep.o): Ditto.
318 * cris-tdep.c: #include "gdb_string.h"
319 * mcore-tdep.c: Ditto.
320 * ns32k-tdep.c: Ditto.
321 * ns32knbsd-tdep.c: Ditto.
322 * sh3-rom.c: Ditto.
323 * vax-tdep.c: Ditto.
324
325 2002-09-27 David Carlton <carlton@math.stanford.edu>
326
327 * config/djgpp/fnchange.lst: Add entries for
328 gdb/testsuite/gdb.c++/m-static files.
329
330 2002-09-27 Jim Wilson <wilson@redhat.com>
331
332 * MAINTAINERS: Add myself to the Write After Approval list.
333
334 2002-09-26 Martin M. Hunt <hunt@redhat.com>
335
336 * mips-tdep.c (find_proc_desc): Initialize startaddr.
337
338
339 2002-09-26 Andrew Cagney <ac131313@redhat.com>
340
341 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
342 frame.
343
344 2002-09-26 Andrew Cagney <ac131313@redhat.com>
345
346 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
347 (rs6000_struct_return_address): Delete variable.
348 (rs6000_store_struct_return): Update.
349 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
350 deprecated_extract_struct_value_address.
351 (rs6000_frame_align): New function.
352 (rs6000_gdbarch_init): Set frame_align.
353
354 2002-09-26 Andrew Cagney <ac131313@redhat.com>
355
356 From Grace Sainsbury <graces@redhat.com>:
357 * Makefile.in (gdbtk-main.o): New target.
358 (gdb.o): New target.
359 (main_h): Define.
360 (main.o): Update dependencies.
361 (gdb$(EXEEXT)): Add gdb.o.
362 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
363 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
364 (SUBDIR_GDBTK_CLEAN): Set.
365 (install-gdbtk): Install the insight binary.
366 (uninstall-gdbtk): New target.
367 (all-gdbtk, clean-gdbtk): New rule.
368 * top.c (use_windows): Default to zero.
369 * main.c: Include "main.h".
370 (main): Delete.
371 (struct captured_main_args): Delete.
372 (gdb_main): New function.
373 * main.h: New file.
374 * gdb.c: New File.
375
376 2002-09-25 Andrew Cagney <cagney@redhat.com>
377
378 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
379 (frame_map_regnum_to_name): New function.
380 (frame_map_name_to_regnum): New function.
381 * frame.h (frame_map_name_to_regnum): Declare.
382 (frame_map_regnum_to_name): Declare.
383 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
384 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
385 * parse.c: Do not include "builtin-regs.h".
386 (target_map_name_to_register): Delete function.
387 (write_dollar_variable): Use frame_map_name_to_regnum.
388 * parser-defs.h (target_map_name_to_register): Delete declaration.
389 * expprint.c: Include "frame.h".
390 (print_subexp): Use frame_map_regnum_to_name.
391 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
392 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
393
394 2002-09-25 Andrew Cagney <ac131313@redhat.com>
395
396 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
397 wasn't saved, and the next innermost frame is a dummy, return the
398 dummy frame's link register.
399
400 2002-09-24 Jim Blandy <jimb@redhat.com>
401
402 Fix from Paul Breed:
403 * main.c (captured_main): Add a `break' after the case for 'b'.
404
405 2002-09-24 Keith Seitz <keiths@redhat.com>
406
407 * varobj.c (c_type_of_child): Use get_target_type instead
408 of TYPE_TARGET_TYPE.
409
410 2002-09-22 Fernando Nasser <fnasser@redhat.com>
411
412 * source.c (get_current_or_default_source_symtab_and_line): Remove
413 function.
414 (set_default_source_symtab_and_line): New function. Attempts to
415 determine a source file to list lines from if one is not currently
416 defined.
417 (get_current_source_symtab_and_line): Initialize sal.pc and
418 sal.end fields.
419 (set_current_source_symtab_and_line): Mark argument as const.
420 * source.h: Update declarations and comments.
421 * linespec.c (decode_line_1): Replace call to removed routine above.
422 * stack.c (print_frame_info_base): Ditto.
423 * cli/cli-cmds.c (edit_command): Ditto.
424 (list_command): Ditto.
425
426 2002-09-22 Fernando Nasser <fnasser@redhat.com>
427
428 * source.c (get_current_or_default_source_symtab_and_line): Initialize
429 sal.pc and sal.end fields.
430 (get_current_or_default_source_symtab_and_line): Ditto.
431 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
432 so we do not cause a new source symtab to be searched for (reverting an
433 unintentional change from the 2002-09-20 patch).
434 * scm-lang.c (scm_unpac): Ditto.
435
436 2002-09-21 Andrew Cagney <cagney@redhat.com>
437
438 * complaints.c (symfile_explanations): Remove new-line from
439 ``isolated_message''.
440 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
441 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
442
443 2002-09-20 Nick Clifton <nickc@redhat.com>
444
445 * NEWS: Announce that V850EA ISA is no longer supported.
446 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
447
448 2002-09-20 David Carlton <carlton@math.stanford.edu>
449
450 * Makefile.in (c-lang.o): Correct dependencies.
451 (utils.o): Gather dependencies.
452 (charset.o): Move.
453 * c-lang.c: #include "gdb_string.h"
454
455 2002-09-20 Fernando Nasser <fnasser@redhat.com>
456
457 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
458 * cli/cli-cmds.c (list_command): New function. Implements the new
459 cli edit command.
460 (_init_cli_cmds): Add new command definition.
461 * gdb.1: Document edit command.
462 * doc/gdb.texinfo: Document edit command.
463
464 2002-09-20 Fernando Nasser <fnasser@redhat.com>
465
466 * source.c: Make global variables current_source_symtab and
467 current_source_line static.
468 (list_command): Moved to cli/cli-cmds.c.
469 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
470 (get_first_line_listed): New accessor function.
471 (get_lines_to_list): New accessor function.
472 (get_current_source_symtab_and_line): New function. Retrieves the
473 position in the source code that we consider current.
474 (get_current_or_default_source_symtab_and_line): New function.
475 Like the above but attempts to determine a default position if one
476 is not currently defined.
477 (set_current_source_symtab_and_line): New function. Sets the source
478 code position considered current and returns the previously set one.
479 (clear_current_source_symtab_and_line): Reset stored information about
480 a current source line.
481 (_initialize_source): Remove registration for the "list" command and
482 its alias.
483 * source.h: Add declarations for the new functions above.
484 * symtab.h: Remove declarations for the global variables mentioned
485 above.
486 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
487 obtain current source line.
488 * linespec.c (decode_line_1): Ditto.
489 * macroscope.c (default_macro_scope): Ditto.
490 * scm-lang.c (scm_unpac): Ditto.
491 * stack.c (print_frame_info_base): Ditto.
492 * symfile.c (clear_symtab_users): Ditto.
493 * symtab.c (decode_line_spec): Ditto.
494 * cli/cli-cmds.c (list_command): Moved here from source.c.
495 (ambiguous_line_spec): Moved here from source.c.
496 (_init_cli_cmds): Add definition for "list" and its alias.
497 * Makefile.in: Update dependencies.
498
499 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
500
501 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
502 with what gcc thinks is correct.
503
504 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
505
506 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
507 multiple register push instruction.
508
509 2002-09-19 Jim Blandy <jimb@redhat.com>
510
511 Add support for distinct host and target character sets.
512 * charset.c, charset.h: New files.
513 * c-exp.y: #include "charset.h".
514 (yylex): Convert character and string literals to the target
515 character set, before returning them as the semantic value of the
516 token.
517 * c-lang.c: #include "charset.h".
518 (c_emit_char): Use charset-specific methods to recognize
519 characters with backslash escape forms, to decide which characters
520 to print literally and which to print using numeric escape
521 sequences, and to convert target characters to host characters
522 before printing.
523 * utils.c: #include "charset.h".
524 (no_control_char_error): New function.
525 (parse_escape): Use charset-specific methods to recognize
526 backslash escapes, parse `control character' notation, and convert
527 characters from the host character set to the target character set.
528 * configure.in: Set the default host character set.
529 Check where to find iconv, and what its argument types might be.
530 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
531 * Makefile.in (SFILES): List charset.c.
532 (COMMON_OBS): List charset.o.
533 (charset.o): New rule.
534 (charset_h): New header dependency variable.
535 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
536 (LIBICONV): New variable, set by configure.
537 (CLIBS): Include $(LIBICONV) here.
538 * aclocal.m4, config.in, configure: Regenerated.
539
540 2002-09-19 Joel Brobecker <brobecker@gnat.com>
541
542 * ada-exp.y: Add missing semicolons to end rules. Fixes a
543 bison 1.35 warning.
544
545 2002-09-19 Richard Earnshaw <rearnsha@arm.com>
546
547 * gdb_mbuild.sh: New file.
548
549 2002-09-19 Andrew Cagney <ac131313@redhat.com>
550
551 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
552
553 2002-09-18 Andrew Cagney <ac131313@redhat.com>
554
555 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
556 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
557 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
558 valops.c, value.h: Revert previous change.
559
560 2002-09-18 Michael Snyder <msnyder@redhat.com>
561
562 Preliminary support for Objective-C:
563 * defs.h (language_objc): New enum value.
564 (puts_filtered_tabular): Declaration only, exported from utils.c.
565 (skip_quoted): Delete, declared in completer.h.
566 * c-exp.y: Include completer.h.
567 * p-exp.y: Ditto.
568 * jv-exp.y: Ditto.
569 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
570 New operator enum values.
571 * language.h (CAST_IS_CONVERSION): Test for language_objc.
572 * language.c (binop_result_type): Handle language_objc case.
573 (integral_type, character_type, string_type, boolean_type,
574 structured_type, binop_type_check): Ditto.
575 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
576 (struct objc_specific): Add to general_symbol_info.
577 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
578 (SYMBOL_DEMANGLED_NAME): Handle objc case.
579 * parser-defs.h (struct objc_class_str): New struct type.
580 (start_msglist, end_msglist, add_msglist): Declaration only,
581 exported from objc-lang.c.
582 * value.h (value_of_local, value_nsstring,
583 call_function_by_hand_expecting_type): Exported from valops.c.
584 * valops.c (find_function_addr): Export.
585 (call_function_by_hand_expecting_type): New function.
586 (value_of_local): New function.
587 * symfile.c (init_filename_language_table): Add ".m" extension
588 for Objective-C.
589 * utils.c (puts_filtered_tabular): New function.
590 (fprintf_symbol_filtered): Add objc demangling support (disabled).
591 (set/show demangle): Extend help-string to refer to ObjC.
592 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
593 * stabsread.c (symbol_reference_defined): Objective-C symbols
594 may contain colons: make allowances when scanning stabs strings
595 for colons.
596 (objc_find_colon): New function.
597 * printcmd.c (address_info): If language == objc then print
598 "self" instead of "this".
599 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
600 OP_NSSTRING, and OP_SELF.
601 (prefixify_subexp): Ditto.
602 * source.c (print_source_lines): Mention objc in comment.
603 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
604 method names.
605
606 2002-09-18 Andrew Cagney <ac131313@redhat.com>
607
608 * complaints.h: Update copyright.
609 (struct complaints): Declare.
610 (struct complaint): Make `message' constant.
611 (internal_complaint): Declare.
612 (complaint): Declare.
613 (complaint_root): Delete declaration.
614 (symfile_complaints): Delete declaration.
615 (struct complaints): Add opaque declaration.
616 (clear_complaints): Add a complaints parameter.
617 * complaints.c: Update copyright.
618 (enum complaint_series): Define.
619 (complaint_root): Delete.
620 (struct complaints): Define.
621 (complaint_sentinel, symfile_complaint_book): New variables.
622 (symfile_explanations, symfile_complaints): New variables.
623 New variables.
624 (get_complaints): New function.
625 (vcomplaint): New function.
626 (complaint): New function.
627 (internal_complaint): New function.
628 (complain): Call vcomplain with symfile_complaint.
629 (clear_complaints): Rewrite.
630 (_initialize_complaints): Use add_setshow_command.
631 * Makefile.in (complaints.o): Update dependencies.
632 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
633 to call to clear_complaints.
634 (new_symfile_objfile, reread_symbols): Ditto.
635 (oldsyms_complaint): Delete.
636 (empty_symtab_complaint, unknown_option_complaint): Delete.
637 (free_named_symtabs): Use complaint instead of complain.
638
639 2002-09-18 Michael Snyder <msnyder@redhat.com>
640
641 Contributed by Apple Computer, Inc. Merged with current sources
642 by Adam Fedor <fedor@doc.com> [cagney].
643
644 * objc-lang.c: First clean-up round: comments, indentation.
645 * objc-lang.h: Ditto.
646 * objc-lang.y: Ditto.
647
648 2002-09-18 Andrew Cagney <ac131313@redhat.com>
649
650 * maint.c (maintenance_internal_error): Print the parameter as the
651 error message.
652 (maintenance_internal_warning): New function.
653 (_initialize_maint_cmds): Add command `maint internal-warning'.
654
655 * defs.h (internal_warning, internal_vwarning): Declare.
656 * utils.c (struct internal_problem): Define.
657 (internal_vproblem): New function.
658 (internal_warning): New function.
659 (internal_vwarning): New function.
660 (internal_warning_problem, internal_error_problem): New variables.
661 (internal_verror): Just call internal_vproblem.
662
663 2002-09-18 Michael Snyder <msnyder@redhat.com>
664
665 * objc-lang.c: New file, support for Objective-C.
666 Preliminary check-in, not yet integrated into gdb.
667 * objc-lang.h: New file.
668 * objc-exp.y: New file.
669
670 2002-09-18 Andrew Cagney <ac131313@redhat.com>
671
672 * infrun.c (signal_stop_update): Convert definition to ISO C.
673 (signal_print_update): Ditto.
674 (signal_pass_update): Ditto.
675 * inflow.c (terminal_save_ours): Ditto.
676
677 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
678 comments.
679
680 * config/djgpp/fnchange.lst: Handle name clashes between
681 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
682 bfd/coff-tic80.c.
683
684 * i386-linux-tdep.h: Fix tipo.
685
686 2002-09-18 Adam Fedor <fedor@gnu.org>
687
688 * MAINTAINERS: Add myself to the Write After Approval list.
689
690 2002-09-18 Jim Blandy <jimb@redhat.com>
691
692 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
693 texthigh and textlow to reader-specific structs caused
694 objfile_relocate to miss them. This is fixable, but the work that
695 the change was supposed to prepare GDB for never got done anyway.
696
697 2002-09-18 David Carlton <carlton@math.stanford.edu>
698
699 * MAINTAINERS: Alphabetize Write After Approval list.
700
701 2002-09-18 Daniel Jacobowitz <drow@mvista.com>
702
703 Fix PR gdb/709
704 * values.c (value_static_field): Call read_var_value.
705
706 2002-09-18 Andrew Cagney <ac131313@redhat.com>
707
708 * valops.c (hand_function_call): Align the initial stack pointer
709 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
710 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
711 return value.
712 * mips-tdep.c (mips_frame_align): New function.
713 (mips_gdbarch_init): Set frame_align.
714 * gdbarch.sh (FRAME_ALIGN): New method.
715 * gdbarch.h, gdbarch.c: Re-generate.
716
717 2002-09-18 Michal Ludvig <mludvig@suse.cz>
718
719 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
720 registers.
721
722 2002-09-17 Andrew Cagney <ac131313@redhat.com>
723
724 * NEWS: Mention that MIPS $fp behavior changed.
725 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
726 reference to FP_REGNUM.
727 (mipsnbsd_cannot_store_register): Ditto.
728 * mips-linux-nat.c: Update copyright.
729 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
730 (mips_linux_cannot_store_register): Ditto.
731 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
732 * config/mips/tm-mips.h: Update copyright.
733 (FP_REGNUM): Delete macro.
734 (MIPS_REGISTER_NAMES): Replace "fp" with "".
735 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
736 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
737 (mips_r3041_reg_names, mips_r3051_reg_names)
738 (mips_r3081_reg_names): Replace "fp" with "".
739 Fix PR gdb/480.
740
741 2002-09-17 Theodore A. Roth <troth@verinet.com>
742
743 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
744 generic_read_register_dummy() (PR gdb/703).
745 (avr_push_return_address): #if 0 out unused vars.
746 (avr_gdbarch_init): Enable use of avr_push_return_address().
747
748 2002-09-17 Michael Snyder <msnyder@redhat.com>
749
750 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
751 RTE will take care of it.
752
753 2002-09-17 Andrew Cagney <ac131313@redhat.com>
754
755 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
756 invalid, return SP_REGNUM.
757
758 2002-09-17 Michael Snyder <msnyder@redhat.com>
759
760 * mips-tdep.c (mips_pop_frame): Read saved values of floating
761 point registers without sign extension.
762
763 2002-09-17 Andrew Cagney <cagney@redhat.com>
764
765 * blockframe.c (deprecated_read_register_dummy): Rename
766 generic_read_register_dummy.
767 * frame.c (frame_unwind_signed_register): New function.
768 (frame_unwind_unsigned_register): New function.
769 * frame.h (frame_unwind_signed_register): Declare.
770 (frame_unwind_unsigned_register): Declare.
771 (deprecated_read_register_dummy): Rename
772 generic_read_register_dummy.
773
774 * h8300-tdep.c (h8300_frame_chain): Update.
775 (h8300_frame_saved_pc): Update.
776 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
777 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
778 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
779 (s390_frame_chain): Update.
780 * v850-tdep.c (v850_find_callers_reg): Update.
781 (v850_frame_saved_pc): Update.
782 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
783 (m32r_find_callers_reg): Update.
784 (m32r_frame_saved_pc): Update.
785 * sh-tdep.c (sh_find_callers_reg): Update.
786 (sh64_get_saved_pr): Update.
787 (sh_init_extra_frame_info): Update.
788 (sh_init_extra_frame_info): Update.
789 (sh64_init_extra_frame_info): Update.
790 (sh64_init_extra_frame_info): Update.
791 * mcore-tdep.c (mcore_find_callers_reg): Update.
792 (mcore_frame_saved_pc): Update.
793 (mcore_init_extra_frame_info): Update.
794 * i386-tdep.c (i386_frame_saved_pc): Update.
795 * ia64-tdep.c (ia64_frame_saved_pc): Update.
796 (ia64_init_extra_frame_info): Update.
797 (ia64_init_extra_frame_info): Update.
798 * d10v-tdep.c (d10v_frame_saved_pc): Update.
799 * cris-tdep.c (cris_init_extra_frame_info): Update.
800 * avr-tdep.c (avr_frame_chain): Update.
801 (avr_init_extra_frame_info): Update.
802 (avr_frame_saved_pc): Update.
803 * arm-tdep.c (arm_find_callers_reg): Update.
804 (arm_init_extra_frame_info): Update.
805 (arm_frame_saved_pc): Update.
806
807 2002-09-17 Tom Tromey <tromey@redhat.com>
808
809 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
810 is "'".
811
812 2002-09-17 Corinna Vinschen <vinschen@redhat.com>
813
814 * MAINTAINERS: Remove "non multi-arched" text from h8300.
815 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
816 NEXT_PROLOGUE_INSN.
817 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
818 NEXT_PROLOGUE_INSN.
819
820 2002-09-16 Joel Brobecker <brobecker@gnat.com>
821
822 * osfsolib.c: Remove file, replaced by solib-osf.c.
823 * Makefile.in: Remove compilation rules for osfsolib.c.
824
825 2002-09-16 David Carlton <carlton@math.stanford.edu>
826
827 * cp-valprint.c (cp_print_class_method): Correct args to
828 check_stub_method_group.
829
830 2002-09-16 Corinna Vinschen <vinschen@redhat.com>
831
832 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
833 `set architecture'. Unify naming convention of functions.
834 (h8300_skip_prologue): Improve prologue analysis.
835 (h8300_push_arguments): Rewritten to more closely match GCC's
836 bizarre argument-passing behavior, along with the comment describing
837 said behavior.
838 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
839 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
840 sim, remote-e7000.c, remote-hms.c and remote.c
841
842 2002-09-15 Mark Kettenis <kettenis@gnu.org>
843
844 * i386-tdep.c (gdb_print_insn_i386): Removed.
845 (i386_print_insn): New function.
846 (i386_gdbarch_init): Set print_insn to i386_print_insns.
847 (_initialize_i386_tdep): Don't initialize tm_print_insn and
848 tm_print_insn_info.
849
850 2002-09-14 Mark Kettenis <kettenis@gnu.org>
851
852 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
853 zero.
854
855 2002-09-14 Corinna Vinschen <vinschen@redhat.com>
856
857 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
858 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
859 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
860
861 2002-09-13 Christopher Faylor <cgf@redhat.com>
862
863 * win32-nat.c (child_create_inferior): Honor 'tty' command.
864
865 2002-09-13 Daniel Jacobowitz <drow@mvista.com>
866
867 * gdbtypes.c (check_stub_method): Make static.
868 (check_stub_method_group): New function.
869 * gdbtypes.h: Update prototypes.
870 * cp-support.c: New file.
871 * cp-support.h: New file.
872
873 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
874 (update_method_name_from_physname): New function.
875 (read_member_functions): Correct method names for operators
876 and v3 constructors/destructors. Separate v2 constructors and
877 destructors.
878 * Makefile.in (stabsread.o): Update dependencies.
879 (SFILES): Add cp-support.c.
880 (COMMON_OBS): Add cp-support.o.
881 (cp_support_h, cp-support.o): Add.
882
883 * cp-valprint.c (cp_print_class_method): Call
884 check_stub_method_group instead of check_stub_method. Remove
885 extraneous QUITs.
886 * p-valprint.c (pascal_object_print_class_method): Likewise.
887 * valops.c (search_struct_method): Likewise.
888 (find_method_list, value_struct_elt_for_reference): Likewise.
889
890 2002-09-13 Andrew Cagney <cagney@redhat.com>
891
892 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
893 * gdbarch.h, gdbarch.c: Regenerate.
894
895 2002-09-13 Andrew Cagney <ac131313@redhat.com>
896
897 * frame.c (find_saved_register): Delete function.
898 * frame.h (find_saved_register): Delete declaration.
899 Fix PR gdb/631.
900
901 Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
902
903 * mips-tdep.c (read_next_frame_reg): Re-hack using
904 frame_register_unwind.
905
906 Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
907
908 * mips-tdep.c (mips_get_saved_register): Re-hack using
909 frame_register_unwind.
910
911 2002-09-12 Joel Brobecker <brobecker@gnat.com>
912
913 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
914 vector. Will be useful for Interix.
915 * gdbarch.h, gdbarch.c: Regenerate.
916
917 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
918 name of the malloc function by NAME_OF_MALLOC.
919
920 2002-09-12 Joel Brobecker <brobecker@gnat.com>
921
922 * value.h (find_function_in_inferior): Add const keyword to
923 one of the parameters. Allows us to invoke this function with
924 a const char *.
925 * valops.c (find_function_in_inferior): Likewise.
926
927 2002-09-12 Joel Brobecker <brobecker@gnat.com>
928
929 * exec.c (xfer_memory): Fix compilation warning with old versions
930 of GCC.
931 * tracepoint.c (trace_find_tracepoint_command): Likewise.
932
933 2002-09-12 David Carlton <carlton@math.stanford.edu>
934
935 * symtab.h: Run through gdb_indent.h.
936 Add 2002 to Copyright year list.
937
938 2002-09-12 Alan Modra <amodra@bigpond.net.au>
939
940 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
941 mach constants.
942 * MAINTAINERS: Add myself to write after approval list.
943
944 2002-09-11 J. Brobecker <brobecker@gnat.com>
945
946 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
947
948 2002-09-11 J. Brobecker <brobecker@gnat.com>
949
950 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
951 Interix.
952
953 2002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
954
955 * procfs.c (do_detach): Clear current signal, not just fault.
956 Corrects problem with breakpoint trap signal leaking to detached
957 process on Tru64.
958
959 2002-09-10 Michael Snyder <msnyder@redhat.com>
960
961 * buildsym.c (finish_block): Protect against null pointer.
962
963 2002-09-10 Andrew Cagney <cagney@redhat.com>
964
965 * infcmd.c (default_print_registers_info): Send all output to
966 ``file'' instead of ``gdb_stdout''.
967
968 2002-09-10 Michael Snyder <msnyder@redhat.com>
969
970 * mips-tdep.c (mips_extract_struct_value_address): Make val a
971 LONGEST, and use signed register read (addresses are sign-
972 extended for mips).
973
974 2002-09-10 Stephane Carrez <stcarrez@nerim.fr>
975
976 * event-loop.c (gdb_do_one_event): Make public.
977 * event-loop.h (gdb_do_one_event): Declare.
978
979 2002-09-10 Jeff Law <law@redhat.com>
980
981 * infttrace.c (child_resume): Simplify and rework to avoid
982 TT_PROC_CONTINUE.
983
984 2002-09-09 Fred Fish <fnf@intrinsity.com>
985
986 * printcmd.c (print_scalar_formatted): "len" is the number of
987 target bytes, NOT the number of target bits.
988
989 2002-09-09 Elena Zannoni <ezannoni@redhat.com>
990
991 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
992 * top.c (init_main): Set rl_terminal_name.
993
994 2002-09-08 Aidan Skinner <aidan@velvet.net>
995
996 * ada-lang.c (ada_array_bound, ada_type_match,
997 _initialize_ada_language): Fix K&R definitions.
998 * ada-tasks.c (get_current_task): Fix K&R definitions.
999 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
1000
1001 2002-09-07 Christopher Faylor <cgf@redhat.com>
1002
1003 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
1004 Add XP.
1005
1006 2002-09-06 Mark Kettenis <kettenis@gnu.org>
1007
1008 * i386-tdep.c (i386_register_virtual_type,
1009 i386_register_convertible, i386_register_convert_to_virtual,
1010 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
1011 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
1012 (i386_gdbarch_init): Fix comment. Add comments on calls that set
1013 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
1014 Don't set push_arguments twice.
1015
1016 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
1017 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
1018 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
1019 sigtramp_end to NULL.
1020 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
1021 defines.
1022 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
1023
1024 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
1025 whitespace.
1026
1027 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
1028 * gdbarch.h, gdbarch.c: Re-generate.
1029 * blockframe.c (find_pc_sect_partial_function): Convert to use
1030 SIGTRAMP_START_P predicate.
1031
1032 2002-09-05 Michael Snyder <msnyder@redhat.com>
1033
1034 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
1035 generic_dummy_frame method and old method. Also distinguish
1036 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
1037 (arm_extract_return_value): Use new regcache method.
1038
1039 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
1040 adjustment that doesn't conform to the ABI.
1041 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
1042 saved regcache, not from current regcache.
1043
1044 2002-09-05 Andrew Cagney <ac131313@redhat.com>
1045
1046 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
1047 * README: Update.
1048
1049 2002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
1050
1051 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
1052 if arm_apcs_32 is false.
1053
1054 2002-09-04 Andrew Cagney <ac131313@redhat.com>
1055
1056 GDB 5.3 branch created.
1057
1058 2002-09-03 Theodore A. Roth <troth@verinet.com>
1059
1060 * gdb/avr-tdep.c (avr_gdbarch_init): Use
1061 generic_unwind_get_saved_register.
1062
1063 2002-09-03 David Carlton <carlton@math.stanford.edu>
1064
1065 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
1066 argument (PR gdb/653). Update call to smash_to_method_type.
1067 (read_structure_scope): Update call to dwarf2_add_member_fn.
1068
1069 2002-09-03 Michal Ludvig <mludvig@suse.cz>
1070
1071 * x86-64-linux-tdep.c: Include gdb_string.h
1072 * x86-64-linux-nat.c: Ditto.
1073
1074 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1075
1076 * ada-exp.y (yyname, yyrule): Remap global variables that appear
1077 when YYDEBUG is set to 1.
1078 * c-exp.y: Likewise.
1079 * f-exp.y: Likewise.
1080 * jv-exp.y: Likewise.
1081 * m2-exp.y: Likewise.
1082 * p-exp.y: Likewise.
1083
1084 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1085
1086 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
1087 dependency list.
1088 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
1089 solib_svr4_fetch_link_map_offsets to
1090 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
1091 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
1092 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
1093 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
1094 solib-svr4.o, and solib-legacy.o.
1095 * config/i386/tm-nbsd.h: Include solib.h.
1096
1097 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1098
1099 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
1100 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
1101 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
1102 comment noting that this needs its own target configuration.
1103 * config/i386/nbsd.mt: New file.
1104 * config/i386/nbsdaout.mt: Remove.
1105 * config/i386/nbsdelf.mt: Ditto.
1106 * config/i386/tm-nbsdaout.h: Ditto.
1107
1108 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1109
1110 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
1111 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
1112 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
1113 tdep->sigtramp_end.
1114 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
1115 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
1116 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
1117
1118 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1119
1120 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
1121 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
1122 * i386-tdep.h (i386bsd_init_abi): New prototype.
1123 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
1124 function declaration.
1125 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
1126 for NetBSD-a.out or NetBSD-ELF.
1127 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
1128 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
1129 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
1130 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
1131 and nbsd-tdep.h.
1132 (i386nbsd_pc_in_sigtramp): New function.
1133 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1134 i386nbsd_pc_in_sigtramp.
1135 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
1136 and i386nbsdelf_init_abi OS ABI handlers.
1137 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
1138 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
1139
1140 2002-09-02 Mark Kettenis <kettenis@gnu.org>
1141
1142 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
1143 registers if the target really has them.
1144
1145 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1146
1147 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
1148 than nbsd-tdep.h.
1149
1150 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1151
1152 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
1153 list.
1154 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
1155 (alphanbsd_skip_sigtramp_frame): New functions.
1156 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
1157 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
1158 to alphanbsd_sigcontext_addr.
1159
1160 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1161
1162 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
1163 list.
1164 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
1165 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
1166 nbsd_pc_in_sigtramp.
1167 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
1168 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
1169 * nbsd-tdep.c: Include gdb_string.h.
1170 (nbsd_pc_in_sigtramp): New function.
1171 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
1172 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
1173 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1174 ppcnbsd_pc_in_sigtramp.
1175 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
1176 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1177 shnbsd_pc_in_sigtramp.
1178 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
1179 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
1180 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
1181
1182 2002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
1183
1184 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
1185 watchpoints to NULL.
1186 (insert_breakpoints): set val field of watchpoints if NULL.
1187
1188
1189 2002-08-29 Jim Blandy <jimb@redhat.com>
1190
1191 * symtab.c (lookup_symbol_aux): In the cases where we find a
1192 minimal symbol of an appropriate name and use its address to
1193 select a symtab to read and search, use `name' (as passed to us)
1194 as the demangled name when searching the symtab's global and
1195 static blocks, not the minsym's name.
1196
1197 2002-08-29 Keith Seitz <keiths@redhat.com>
1198
1199 * stack.c (print_frame_info_base): Always set current_source_symtab
1200 and current_source_line.
1201
1202 2002-08-29 Donn Terry <donnte@microsoft.com>
1203
1204 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
1205
1206 2002-08-28 Keith Seitz <keiths@redhat.com>
1207
1208 * stack.c (select_frame): Add FIXME concerning selected-frame
1209 events.
1210 (select_frame_command): Send selected-frame-level-changed
1211 event notification, but only if the level actually changed.
1212 (up_silently_base): Add selected-frame-level-changed event
1213 notification.
1214 (down_silently_base): Likewise.
1215
1216 2002-08-28 Andrew Cagney <ac131313@redhat.com>
1217
1218 * Makefile.in: Update dependencies for all gdb/*.c files.
1219
1220 2002-08-27 Tom Tromey <tromey@redhat.com>
1221
1222 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
1223 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
1224 Update dependencies.
1225 * i387-tdep.c: Include gdb_string.h.
1226 * osabi.c: Likewise.
1227 * i386-linux-nat.c: Likewise.
1228 * lin-lwp.c: Likewise.
1229 * ax-gdb.c: Likewise.
1230 * signals/signals.c: Likewise.
1231 * jv-valprint.c: Likewise.
1232 * p-lang.c: Likewise.
1233 * c-valprint.c: Likewise.
1234 * cp-abi.c: Likewise.
1235
1236 2002-08-27 Elena Zannoni <ezannoni@redhat.com>
1237
1238 * cli/cli-script.h (copy_command_lines): Export.
1239 * breakpoint.c: Include cli/cli-script.h.
1240 * Makefile.in (breakpoint.o): Update dependencies.
1241
1242 2002-08-26 Michael Snyder <msnyder@redhat.com>
1243
1244 * breakpoint.c (insert_breakpoints): Protect all references
1245 to 'process_warning'. Shorten long lines.
1246
1247 2002-08-26 Joel Brobecker <brobecker@gnat.com>
1248
1249 * cli/cli-script.c (copy_command_lines): New function.
1250 * defs.h (copy_command_lines): Export.
1251 * testsuite/gdb.base/commands.exp: New tests for commands
1252 attached to a temporary breakpoint, and for commands that
1253 delete the breakpoint they are attached to.
1254
1255 2002-08-26 Michael Snyder <msnyder@redhat.com>
1256
1257 * breakpoint.c (bpstat_stop_status): Instead of copying the
1258 pointer to the breakpoint commands struct, make a new copy
1259 of the struct and point to that.
1260 (bpstat_clear): Free the commands struct.
1261 (bpstat_clear_actions): Free the commands struct.
1262 (bpstat_do_actions): Free the command actions. Also execute
1263 the local cleanups, instead of deleting them.
1264 (delete_breakpoint): Leave the commands field of the bpstat
1265 chain alone -- it will be freed later.
1266
1267 2002-08-26 Kevin Buettner <kevinb@redhat.com>
1268
1269 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
1270 deleted in 2002-08-20 commit. This function is still used by
1271 ppc-linux-nat.c.
1272
1273 2002-08-26 Keith Seitz <keiths@redhat.com>
1274
1275 * gdb-events.sh: Add selected-frame-level-changed event.
1276 * gdb-events.c: Regenerated.
1277 * gdb-events.h: Regenerated.
1278
1279 2002-08-26 Stephane Carrez <stcarrez@nerim.fr>
1280
1281 Fix PR gdb/393:
1282 * inflow.c (terminal_save_ours): New function to save terminal
1283 settings.
1284 * inferior.h (terminal_save_ours): Declare.
1285 * target.c (debug_to_terminal_save_ours): New function.
1286 (cleanup_target): Defaults to_terminal_save_ours.
1287 (update_current_target): Inherit to_terminal_save_ours.
1288 (setup_target_debug): Set to_terminal_save_ours.
1289 * target.h (target_terminal_save_ours): New to save terminal settings.
1290 (target_ops): New member to_terminal_save_ours.
1291 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
1292 * hpux-thread.c (init_hpux_thread_ops): Likewise.
1293 * inftarg.c (init_child_ops): Likewise.
1294 * m3-nat.c (init_m3_ops): Likewise.
1295 * procfs.c (init_procfs_ops): Likewise.
1296 * wince.c (init_child_ops): Likewise.
1297 * win32-nat.c (init_child_ops): Likewise.
1298 * sol-thread.c (init_sol_thread_ops): Likewise.
1299
1300 2002-08-26 Mark Kettenis <kettenis@gnu.org>
1301
1302 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
1303 use regcache_* functions.
1304 (i386_gdbarch_init): Set store_return_value instead of
1305 deprecated_store_return_value.
1306
1307 * regcache.c (regcache_raw_write_signed,
1308 regcache_raw_write_unsigned): New functions.
1309 * regcache.h (regcache_raw_write_signed,
1310 regcache_raw_write_unsigned): New prototypes.
1311
1312 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1313
1314 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
1315 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
1316 source file dependencies. Cleanup corresponding generator rules.
1317
1318 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1319
1320 * regcache.h (register_offset_hack): Declare.
1321 (regcache_cooked_read_using_offset_hack): Declare.
1322 (regcache_cooked_write_using_offset_hack): Declare.
1323
1324 * regcache.c (register_offset_hack): New function.
1325 (regcache_cooked_read_using_offset_hack): New function.
1326 (regcache_cooked_write_using_offset_hack): New function.
1327 (regcache_dump): Check that the registers, according to their
1328 offset, are packed hard against each other.
1329 (cooked_xfer_using_offset_hack): New function.
1330
1331 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1332
1333 * regcache.c (struct regcache_descr): Add field register_type.
1334 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
1335 in as a parameter
1336 (init_regcache_descr): Initialize register_type. Pass the descr
1337 to init_legacy_regcache_descr. Use register_type instead of
1338 REGISTER_VIRTUAL_TYPE.
1339 (register_type): New function.
1340 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
1341 * regcache.h (register_type): Declare.
1342
1343 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1344
1345 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
1346 instead of deprecated_store_return_value. Fix fallout from
1347 2002-08-23 Andrew Cagney <cagney@redhat.com>.
1348
1349 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1350
1351 * regcache.c (max_register_size): New function.
1352 (init_legacy_regcache_descr): Ensure that max_register_size is
1353 large enough for REGISTER_VIRTUAL_SIZE.
1354 * regcache.h (max_register_size): Declare.
1355
1356 2002-08-24 Andrew Cagney <ac131313@redhat.com>
1357
1358 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
1359 store_return_value.
1360 (e500_extract_return_value): Change type of valbuf pointer to
1361 void.
1362
1363 2002-08-24 Mark Kettenis <kettenis@gnu.org>
1364
1365 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
1366 workaround.
1367
1368 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
1369 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
1370 long long) to prevent compiler warning on 64-bit systems.
1371
1372 2002-08-23 Andrew Cagney <cagney@redhat.com>
1373
1374 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
1375 (DEPRECATED_STORE_RETURN_VALUE): New method.
1376 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
1377 * gdbarch.h, gdbarch.c: Re-generate.
1378
1379 * values.c (set_return_value): Pass current_regcache to
1380 STORE_RETURN_VALUE.
1381 * arch-utils.h (legacy_store_return_value): Declare.
1382 * arch-utils.c (legacy_store_return_value): New function.
1383 (legacy_extract_return_value): Update parameters.
1384
1385 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
1386 STORE_RETURN_VALUE.
1387 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1388 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1389 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1390 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1391 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1392 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1393 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1394 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1395 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1396 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1397
1398 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1399 * i386-tdep.c (i386_extract_return_value): Update.
1400 * arch-utils.c (legacy_extract_return_value): Update.
1401 * frv-tdep.c (frv_gdbarch_init): Update.
1402 * cris-tdep.c (cris_gdbarch_init): Update.
1403 * d10v-tdep.c (d10v_gdbarch_init): Update.
1404 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1405 * m68k-tdep.c (m68k_gdbarch_init): Update.
1406 * mcore-tdep.c (mcore_gdbarch_init): Update.
1407 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1408 * s390-tdep.c (s390_gdbarch_init): Update.
1409 * sparc-tdep.c (sparc_gdbarch_init): Update.
1410 * sh-tdep.c (sh_gdbarch_init): Update.
1411 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1412 * v850-tdep.c (v850_gdbarch_init): Update.
1413 * avr-tdep.c (avr_gdbarch_init): Update.
1414 * ia64-tdep.c (ia64_gdbarch_init): Update.
1415 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1416 * vax-tdep.c (vax_gdbarch_init): Update.
1417 * alpha-tdep.c (alpha_gdbarch_init): Update.
1418 * arm-tdep.c (arm_gdbarch_init): Update.
1419 * mips-tdep.c (mips_gdbarch_init): Update.
1420 * i386-tdep.c (i386_gdbarch_init): Update.
1421
1422 2002-08-23 Andrew Cagney <ac131313@redhat.com>
1423
1424 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
1425 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
1426
1427 2002-08-24 Mark Kettenis <kettenis@gnu.org>
1428
1429 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
1430 problems.
1431
1432 2002-08-23 Joel Brobecker <brobecker@gnat.com>
1433
1434 * infrun.c (handle_inferior_event): Move a comment outside of a
1435 function call, in order to avoid indent reformatting this part
1436 of the code in an unreadable way.
1437
1438 2002-08-23 Grace Sainsbury <graces@redhat.com>
1439
1440 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
1441 when breakpoints fail. Move general breakpoint error messages to
1442 insert_breakpoints.
1443 * breakpoint.c (insert_breakpoints): Change warnings when
1444 breakpoints are nto inserted to specify the type. Remove call to
1445 memory_error when hardware breakpoints can't be inserted. Remove
1446 multiple calls to warning so all messages are sent to the user at
1447 once.
1448 (delete_breakpoints): Make insert error messsages more explicit.
1449
1450 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
1451
1452 * ChangeLog: Move gdbserver entries after GDB 5.2 to
1453 gdbserver/ChangeLog.
1454
1455 2002-08-23 Mark Kettenis <kettenis@gnu.org>
1456
1457 * i386-tdep.c: Include "objfiles.h".
1458 (i386_svr4_init_abi): Set in_solib_call_trampoline and
1459 skip_trampoline_code.
1460 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
1461 (CPLUS_MARKER): Define to '.'.
1462
1463 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
1464 member.
1465 (linux_corefile_thread_callback): Increase args->num_notes.
1466 (linux_make_note_section): Initialize thread_args.num_notes, and
1467 use it to determine whether notes for any threads were created.
1468
1469 2002-08-23 Donn Terry <donnte@microsoft.com>
1470
1471 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
1472 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
1473 and PCUNKILL.
1474 (write_with_trace): Conditionalize out the switch branch handling
1475 PCSHOLD if the corresponding macro is not defined. Likewise for
1476 PRSABORT and PRSTOP.
1477 This change will be needed by the Interix port.
1478
1479 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
1480
1481 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
1482 write_register wherever possible instead of manipulating the
1483 register bytes directly.
1484 Assign VALUE_CONTENTS to a variable and use that.
1485 The GPR numbers are now dependent on the architecture.
1486
1487 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
1488
1489 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
1490 ev_offset fields.
1491 (skip_prologue): Add support for BookE/e500 instructions.
1492 (e500_extract_return_value): New function.
1493 (frame_get_saved_regs): Add support for saving ev registers and
1494 pseudo gpr's.
1495 (e500_store_return_value): New function.
1496 (rs6000_gdbarch_init): Move up default intializations of
1497 deprecated_extract_return_value and store_return_value. Overwrite
1498 init of store_return_value with e500 specific version.
1499 Set extract_return_value for e500.
1500
1501 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
1502
1503 * blockframe.c (generic_call_dummy_register_unwind): Use
1504 regcache_cooked_read to catch cases in which the variable is
1505 stored in a pseudo register.
1506
1507 2002-08-22 Andrew Cagney <cagney@redhat.com>
1508
1509 * NEWS: Mention that the i960 has been made obsolete.
1510 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
1511 i960-tdep.c
1512 (remote-nrom.o): Obsolete target.
1513 (remote-nindy.o, i960-tdep.o): Ditto.
1514 * remote-nrom.c: Make file obsolete.
1515 * remote-nindy.c, remote-vx960.c: Ditto.
1516 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
1517 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
1518 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
1519 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
1520 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
1521 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
1522 i960-*-vxworks* obsolete.
1523 * MAINTAINERS: Note that the i960 is obsolete.
1524
1525 2002-08-21 Corinna Vinschen <vinschen@redhat.com
1526
1527 * aix-thread.c (aix_thread_detach): Disable thread debugging on
1528 detach to allow reinitialization.
1529
1530 2002-08-22 Andrew Cagney <ac131313@redhat.com>
1531
1532 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
1533 attempt).
1534
1535 2002-08-22 Jim Blandy <jimb@redhat.com>
1536
1537 * coffread.c (coff_symfile_read): Don't try to read the line
1538 number table from disk if the image file doesn't have a symbol
1539 table; we'll never actually look at the info anyway, and Windows
1540 ships DLL's with bogus file offsets for the line number data.
1541
1542 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
1543
1544 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
1545 an e500 executable.
1546
1547 2002-08-21 Michael Snyder <msnyder@redhat.com>
1548
1549 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
1550 (MSYMBOL_SIZE): Replace macro with function.
1551 (DEFAULT_MIPS_TYPE): Delete unused macro.
1552 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
1553 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
1554
1555 2002-08-21 Jim Blandy <jimb@redhat.com>
1556
1557 * valops.c (value_cast): Simplify and correct logic for doing a
1558 static cast from a pointer to a base class to a pointer to a
1559 derived class.
1560
1561 2002-08-21 Andrew Cagney <ac131313@redhat.com>
1562
1563 * infcmd.c (default_print_registers_info): Replace
1564 do_registers_info.
1565 (registers_info): Use gdbarch_print_registers_info instead of
1566 DO_REGISTERS_INFO.
1567 * inferior.h (default_print_registers_info): Replace
1568 do_registers_info.
1569 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
1570 (DO_REGISTERS_INFO): Change to a predicate function.
1571 * gdbarch.h, gdbarch.c: Regenerate.
1572
1573 2002-08-21 Keith Seitz <keiths@redhat.com>
1574
1575 * gdb-events.sh: Add target-changed event.
1576 * gdb-events.c: Regenerated.
1577 * gdb-events.c: Regenerated.
1578 * valops.c (value_assign): Add target-changed event notification
1579 to inlval_register, lval_memory, and lval_reg_frame_relative.
1580
1581 2002-08-21 Joel Brobecker <brobecker@gnat.com>
1582
1583 * NEWS: Add an entry regarding the improvement of the next/step
1584 operation on Alpha Tru64 multi-processor machines.
1585
1586 2002-08-21 Andrew Cagney <ac131313@redhat.com>
1587
1588 * Makefile.in: Update dependencies for mi/ cli/ and tui/
1589 directores.
1590 * Makefile.in: Update all _h macro definitions.
1591 * Makefile.in (install-gdbtk): Move to install section.
1592 (rdi-share/libangsd.a): Move to end of file.
1593
1594 2002-08-19 Andrew Cagney <ac131313@redhat.com>
1595
1596 * frame.c (frame_register_unwind): When a register, set addrp to
1597 the register's byte.
1598
1599 2002-08-20 Michael Snyder <msnyder@redhat.com>
1600
1601 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
1602 used locally, so move them from the target machine header to here.
1603 (mips_set_processor_type, mips_register_name, mips32_next_pc,
1604 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
1605 Make static.
1606 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
1607
1608 2002-08-20 Andrew Cagney <cagney@redhat.com>
1609
1610 * NEWS: Mention that the Apollo line was made obsolete.
1611 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
1612 m68*-hp-hpux* obsolete.
1613 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
1614 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
1615 * buildsym.c (make_blockvector): Make static.
1616 * buildsym.h (make_blockvector): Make extern declaration obsolete.
1617 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
1618 (ALLDEPFILES): Remove dstread.c.
1619 (dstread.o): Obsolete make rule.
1620 * dstread.c: Makefile obsolete.
1621 * dst.h: Ditto.
1622 * config/m68k/hp300hpux.mt: Ditto.
1623 * config/m68k/hp300hpux.mh: Ditto.
1624 * config/m68k/hp300bsd.mt: Ditto.
1625 * config/m68k/hp300bsd.mh: Ditto.
1626 * config/m68k/apollo68b.mt: Ditto.
1627 * config/m68k/apollo68v.mh: Ditto.
1628 * config/m68k/apollo68b.mh: Ditto.
1629
1630 2002-08-20 Michael Snyder <msnyder@redhat.com>
1631
1632 * mips-tdep.c (mips_in_return_stub): Make static.
1633 (mips_gdbarch_init): Set in_solib_return_trampoline.
1634 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
1635
1636 2002-08-20 Michael Snyder <msnyder@redhat.com>
1637
1638 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
1639 * gdbarch.c, gdbarch.h: Regenerate.
1640 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
1641 Add.
1642 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
1643
1644 2002-08-20 Michael Snyder <msnyder@redhat.com>
1645
1646 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
1647 (mips_gdbarch_init): Set skip_trampoline_code,
1648 in_solib_call_trampoline.
1649 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
1650 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
1651
1652 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1653
1654 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
1655
1656 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
1657 vector type for ev registers.
1658 (e500_pseudo_register_read): New function.
1659 (e500_pseudo_register_write): New function.
1660 (e500_dwarf2_reg_to_regnum): New function.
1661 (PPC_UISA_NOFP_SPRS): New macro.
1662 (PPC_EV_REGS): New macro.
1663 (PPC_GPRS_PSEUDO_REGS): New macro.
1664 (registers_e500): New register set for e500.
1665 (variants): Add e500 variant.
1666 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
1667 before setting architectural dependent variations. Initialize ev
1668 registers numbers. Add case for e500 architecture. Set the
1669 number of pseudo registers.
1670
1671 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1672
1673 * rs6000-tdep.c: Clean up comments.
1674
1675 2002-08-20 Andrew Cagney <cagney@redhat.com>
1676
1677 * h8300-tdep.c: Re-indent file.
1678
1679 2002-08-20 Jim Blandy <jimb@redhat.com>
1680
1681 * Makefile.in (LDFLAGS): Allow the configure script to establish a
1682 default for this.
1683
1684 2002-08-20 Keith Seitz <keiths@redhat.com>
1685
1686 * breakpoints.c (watch_command_1): Use internal breakpoint
1687 when setting a watchpoint_scope breakpoint.
1688
1689 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1690
1691 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
1692 (build_builtin_type_vec64i): Ditto.
1693 (build_builtin_type_vec128): Ditto.
1694 (build_builtin_type_vec128i): Ditto.
1695
1696 2002-08-19 Michael Snyder <msnyder@redhat.com>
1697
1698 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
1699 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
1700 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
1701 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
1702 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
1703 CALL_DUMMY_ADDRESS): Delete.
1704 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
1705 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
1706 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
1707 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
1708 push_return_address.
1709 (mips_register_raw_size, mips_eabi_use_struct_convention,
1710 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
1711 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
1712 mips_init_extra_frame_info, mips_eabi_push_arguments,
1713 mips_n32n64_push_arguments, mips_push_return_address,
1714 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
1715 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
1716
1717 2002-08-19 Michael Snyder <msnyder@redhat.com>
1718
1719 * mips-tdep.c (mips_frame_num_args): New function.
1720 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
1721 frame_saved_pc, frame_args_address, frame_locals_address,
1722 frame_num_args, and frame_args_skip.
1723 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
1724 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
1725 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
1726 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
1727
1728 2002-08-20 Michael Snyder <msnyder@redhat.com>
1729
1730 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
1731 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
1732 * mips-tdep.c (mips_store_struct_return): New function.
1733 (mips_extract_struct_value_address): New function.
1734 (mips_gdbarch_init): Set store_struct_return and
1735 extract_struct_value_address.
1736
1737 2002-08-20 David Carlton <carlton@math.stanford.edu>
1738
1739 * dwarf2read.c (dwarf2_build_psymtabs): Check that
1740 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
1741 (read_file_scope): Check that line_header is nonzero before
1742 decoding macro information.
1743
1744 2002-08-20 Mark Kettenis <kettenis@gnu.org>
1745
1746 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
1747 flag the general-purpose registers as floating-point on targets
1748 that don't support the floating-point registers.
1749
1750 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1751
1752 * rs6000-tdep.c (altivec_register_p): Delete.
1753 (rs6000_do_altivec_registers): Delete.
1754 (rs6000_altivec_registers_info): Delete.
1755 (rs6000_do_registers_info): Delete.
1756 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
1757 (rs6000_gdbarch_init): Remove setting of do_registers_info.
1758
1759 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1760
1761 * infcmd.c (do_registers_info): Print vector registers in hex
1762 format only.
1763 (print_vector_info): Check that printing registers
1764 makes sense.
1765 (print_float_info): Ditto.
1766
1767 2002-08-20 Andrew Cagney <ac131313@redhat.com>
1768
1769 * mips-tdep.c (mips_gdbarch_init): Update.
1770 (mips_o32_extract_return_value): Rewrite.
1771 (mips_o32_store_return_value): Rewrite.
1772 (mips_o32_xfer_return_value): New function.
1773 (mips_xfer_register): Tweak debug print message. Allow for
1774 buf_offset when dumping the value transfered.
1775
1776 2002-08-20 Andrew Cagney <ac131313@redhat.com>
1777
1778 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
1779 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
1780 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
1781 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
1782 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
1783
1784 2002-08-14 Michael Snyder <msnyder@redhat.com>
1785
1786 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
1787
1788 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
1789
1790 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
1791 register.
1792 (P): New macro to define a register as a pseudo register.
1793 (R, R4, R8, R16, FR32, R64, R0): Updated.
1794 (struct variant): Add new fields for number of pseudo registers
1795 and number of total registers.
1796 (tot_num_registers): New macro replacing....
1797 (num_registers): ...deleted macro.
1798 (num_registers): New function.
1799 (num_pseudo_registers): New function.
1800 (variants): Update all variants to intialize new fields correctly.
1801 Postpone initialization of number of pseudo regs and real regs.
1802 (init_variants): New function.
1803 (rs6000_gdbarch_init): Initialize variants. Update calculation of
1804 registers offsets.
1805
1806 2002-08-19 David Carlton <carlton@math.stanford.edu>
1807
1808 * valops.c (search_struct_field): Change error message to treat
1809 return value of 0 from value_static_field as meaning that field is
1810 optimized out.
1811 (value_struct_elt_for_reference): Ditto.
1812 * values.c (value_static_field): Treat an unresolved location the
1813 same as a nonexistent symbol. Fix PR gdb/635.
1814 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
1815 enclosed. Fix PR gdb/574.
1816 * MAINTAINERS: Add self to Write After Approval list.
1817
1818 2002-08-19 Andrew Cagney <ac131313@redhat.com>
1819
1820 * mips-tdep.c (mips_xfer_register): New function.
1821 (mips_n32n64_extract_return_value): Rewrite.
1822 (mips_gdbarch_init): For N32 and N64, set extract_return_value
1823 instead of deprecated_extract_return_value.
1824
1825 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
1826
1827 * rs6000-tdep.c (TDEP): Delete macro.
1828 (branch_dest): Replace use of TDEP macro with its body.
1829 (rs6000_pop_frame): Ditto.
1830 (rs6000_push_arguments): Ditto.
1831 (rs6000_skip_trampoline_code): Ditto.
1832 (rs6000_frame_saved_pc): Ditto.
1833 (rs6000_frame_chain): Ditto.
1834 (rs6000_register_name): Ditto.
1835 (rs6000_register_byte): Ditto.
1836 (rs6000_register_raw_size): Ditto.
1837 (rs6000_register_virtual_type): Ditto.
1838 (rs6000_register_convertible): Ditto.
1839 (rs6000_convert_from_func_ptr_addr): Ditto.
1840
1841 2002-08-19 Daniel Jacobowitz <drow@mvista.com>
1842
1843 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
1844 conditionally.
1845 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
1846 MIPS_LINUX_JB_ELEMENT_SIZE.
1847 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
1848 for MAX_REGISTER_RAW_SIZE arrays.
1849 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
1850 MIPS_LINUX_JB_ELEMENT_SIZE.
1851
1852 2002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
1853
1854 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
1855
1856 2002-08-19 Aidan Skinner <aidan@velvet.net>
1857
1858 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
1859 ada-valprint.c ada-tasks.c.
1860 (YYFILES): Add ada-exp.y.
1861 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
1862 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
1863 (ada-exp.tab.o): New target.
1864
1865 2002-08-18 Andrew Cagney <ac131313@redhat.com>
1866
1867 * regcache.c (regcache_xfer_part): New function.
1868 (regcache_raw_read_part): New function.
1869 (regcache_raw_write_part): New function.
1870 (regcache_cooked_read_part): New function.
1871 (regcache_cooked_write_part): New function.
1872 * regcache.h (regcache_raw_read_part): Declare.
1873 (regcache_raw_write_part): Declare.
1874 (regcache_cooked_read_part): Declare.
1875 (regcache_cooked_write_part): Declare.
1876
1877 2002-08-18 Daniel Jacobowitz <drow@mvista.com>
1878
1879 * remote.c (remote_open_1): Add async_p.
1880 (remote_async_open_1): Delete.
1881 (open_remote_target): Delete.
1882 (remote_open, extended_remote_open): Update calls to remote_open_1.
1883 (remote_async_open, extended_remote_async_open): Call
1884 remote_open_1 instead of remote_async_open_1.
1885
1886 2002-08-19 Mark Kettenis <kettenis@gnu.org>
1887
1888 * blockframe.c: Fix a few coding standard violations.
1889
1890 2002-08-19 Mark Kettenis <kettenis@gnu.org>
1891
1892 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
1893 here from ...
1894 * config/i386/tm-i386sco5.h: ... here. File removed.
1895 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
1896
1897 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
1898 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
1899 (TM_FILE): Set to tm-i386.h.
1900 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
1901 * config/i386/tm-i386v.h: Remove file.
1902 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
1903 instead of "i386/tm-i386v.h".
1904 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
1905 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
1906 "i386/tm-i386v.h".
1907 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
1908 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
1909 "i386/tm-i386.h".
1910
1911 2002-08-18 Mark Kettenis <kettenis@gnu.org>
1912
1913 * config/i386/nm-i386v.h: Add protection against
1914 multiple-inclusion.
1915 (i386_register_u_addr): Remove prototype.
1916 (register_u_addr): New prototype.
1917 (REGISTER_U_ADDR): Redefine accordingly.
1918 * i386v-nat.c: Improve several comments.
1919 (i386_register_u_addr): Change signature and rename to
1920 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
1921 ubase variable.
1922
1923 2002-08-18 Andrew Cagney <ac131313@redhat.com>
1924
1925 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
1926 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
1927 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
1928 deprecated_extract_return_value.
1929 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
1930 rename mips_o32o64_push_arguments.
1931 (mips_gdbarch_init): Update.
1932 (mips_extract_return_value): Delete.
1933 (mips_o32_extract_return_value): Clone mips_extract_return_value.
1934 (mips_o64_extract_return_value): Clone mips_extract_return_value.
1935 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
1936 (mips_n32n64_extract_return_value): Clone
1937 mips_extract_return_value.
1938 (mips_store_return_value): Delete.
1939 (mips_o32_store_return_value): Clone mips_store_return_value.
1940 (mips_o64_store_return_value): Clone mips_store_return_value.
1941 (mips_eabi_store_return_value): Clone mips_store_return_value.
1942 (mips_n32n64_store_return_value): Clone mips_store_return_value.
1943
1944 2002-08-18 Aidan Skinner <aidan@velvet.net>
1945
1946 * ada-lang.c: Use gdb_string.h instead of <string.h>.
1947 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
1948
1949 2002-08-18 Aidan Skinner <aidan@velvet.net>
1950
1951 * ada-lang.c: Run through gdb_indent.sh.
1952 * ada-lang.h: Run through gdb_indent.sh.
1953 * ada-tasks.c: Run through gdb_indent.sh.
1954 * ada-typeprint.c: Run through gdb_indent.sh.
1955 * ada-valprint.c: Run through gdb_indent.sh.
1956
1957 2002-08-18 Andrew Cagney <ac131313@redhat.com>
1958
1959 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
1960 ABI.
1961
1962 2002-08-18 Mark Kettenis <kettenis@gnu.org>
1963
1964 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
1965
1966 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
1967 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
1968
1969 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
1970 write_register_gen instead of write_register_bytes.
1971
1972 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
1973 i[3456]-*-osf1mk* configurations have been made obsolete.
1974 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
1975 i[3456]86-*-osf1mk* hosts obsolete.
1976 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
1977 targets obsolete.
1978 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
1979 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
1980 config/i386/i386m3.mt, config/i386/nm-m3.h,
1981 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
1982 config/i386/i386mk.mh, config/i386/i386mk.mt,
1983 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
1984 obsolete.
1985 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
1986 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
1987 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
1988
1989 2002-08-18 Andrew Cagney <ac131313@redhat.com>
1990
1991 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
1992 (hppa_value_returned_from_stack): Declare.
1993 (hppa_extract_return_value): Declare.
1994 * config/pa/hppa.mt: New file.
1995 * configure.tgt: Recognize hppa*-*-*.
1996 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
1997
1998 2002-08-18 Mark Kettenis <kettenis@gnu.org>
1999
2000 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
2001 comment.
2002
2003 2002-08-17 Mark Kettenis <kettenis@gnu.org>
2004
2005 * top.c (gdb_rl_operate_and_get_next): Make sure
2006 operate-and-get-next functions correctly even when the history
2007 list is completely filled.
2008
2009 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2010
2011 * MAINTAINERS (Target Instruction Set Architectures): Rename
2012 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
2013 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
2014 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
2015 already listed under Host/Native.
2016
2017 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
2018 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
2019 mips*-*-*.
2020
2021 2002-08-17 Andrew Cagney <ac131313@redhat.com>
2022
2023 * config/ia64/ia64.mt: New file.
2024 * config/alpha/alpha.mt: New file.
2025 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
2026 ia64-linux-gnu. Mention that ia64-elf is broken.
2027 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
2028
2029 2002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
2030
2031 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
2032 generic_func_frame_valid instead of func_frame_valid.
2033
2034 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2035
2036 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
2037 procfs appears to be broken when debugging on multi-processor
2038 machines. So enable software single stepping in order to avoid
2039 using the procfs interface to do next/step operations, using
2040 internal breakpoints instead.
2041
2042 * infrun.c (handle_inferior_event): Readjust the stop_pc by
2043 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
2044 make this pc address equal to the value it would have if the
2045 system stepping capability was used. Also set a new flag used
2046 to ensure that we don't readjust the PC one more time later.
2047
2048 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
2049 address by DECR_PC_AFTER_BREAK when software single step is
2050 in use for this architecture, as this has already been taken
2051 care of in handle_inferior_event().
2052
2053 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2054
2055 * infrun.c (handle_inferior_event): Minor reformatting, to make
2056 a rather long condition expression easier to read.
2057
2058 2002-08-16 Andrew Cagney <ac131313@redhat.com>
2059
2060 * Makefile.in (gdbtk.o): Move to end of file.
2061 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
2062 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
2063 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
2064 (gdbtk-wrapper.o, gdbres.o): Ditto.
2065
2066 2002-08-16 Andrew Cagney <ac131313@redhat.com>
2067
2068 * Makefile.in (copying.o): Separate out compile rule.
2069 (hpux-thread.o, procfs.o, signals.o): Ditto.
2070 (v850ice.o, z8k-tdep.o): Ditto.
2071 (tui-file.o): Move to TUI section.
2072 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
2073 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
2074
2075 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2076
2077 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
2078 skip_trampoline_code, for better namespace-proofing.
2079
2080 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
2081
2082 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2083
2084 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
2085
2086 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2087
2088 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
2089 signal, check whether we hit a breakpoint before checking for a
2090 single step breakpoint. Otherwise, GDB fails to notice that a
2091 breakpoint has been hit when stepping onto a breakpoint.
2092
2093 2002-08-16 Keith Seitz <keiths@redhat.com>
2094
2095 * gdb-events.sh (clear_gdb_event_hooks): New function.
2096 * gdb-events.c: Regenerate.
2097 * gdb-events.h: Regenerate.
2098
2099 2002-08-16 Andrew Cagney <ac131313@redhat.com>
2100
2101 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
2102 not_a_sw_breakpoint.
2103 * breakpoint.h (bpstat_stop_status): Add parameter names.
2104
2105 2002-08-16 Grace Sainsbury <graces@redhat.com>
2106
2107 * remote.c (remote_insert_hw_breakpoint)
2108 (remote_remove_hw_breakpoint): Fix calculation of length field
2109 for Z-packet.
2110
2111 2002-08-15 Michael Snyder <msnyder@redhat.com>
2112
2113 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
2114 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
2115 (supply_fpregset): Ditto.
2116
2117 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
2118 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
2119 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
2120 (TARGET_READ_SP): Delete.
2121 (DO_REGISTERS_INFO): Delete.
2122 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
2123 Delete.
2124 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
2125 from macros to functions.
2126
2127 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
2128 (mips_register_convertible, mips_register_convert_to_virtual,
2129 mips_register_convert_to_raw): Make static.
2130 (mips_read_sp): New function.
2131 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
2132 (mips_do_registers_info): Make static.
2133 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
2134 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
2135 (mips_register_convert_from_type, mips_register_convert_to_type):
2136 New functions.
2137 (mips_gdbarch_init): Set up function_start_offset,
2138 register_virtual_size, pc_in_sigtramp.
2139
2140 2002-08-15 Andrew Cagney <ac131313@redhat.com>
2141
2142 * infcmd.c (vector_info): New function.
2143 (_initialize_infcmd): Add command "info vector".
2144 (print_vector_info): New function.
2145
2146 * gdbarch.sh (PRINT_VECTOR_INFO): New method
2147 * gdbarch.h, gdbarch.c: Regenerate.
2148
2149 2002-08-15 Andrew Cagney <ac131313@redhat.com>
2150
2151 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
2152 ``print_all''. Only print vector registers when ``print_all''.
2153
2154 2002-08-15 Andrew Cagney <ac131313@redhat.com>
2155
2156 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
2157 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
2158
2159 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
2160 Add `args' parameter.
2161 * gdbarch.h, gdbarch.c: Regenerate.
2162
2163 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
2164
2165 * infcmd.c (float_info): Call print_float_info.
2166 (print_float_info): New function. By default, print the
2167 floating-point registers.
2168
2169 * arch-utils.h (default_print_float_info): Delete declaration.
2170 * arch-utils.c (default_print_float_info): Delete function.
2171
2172 2002-08-16 Mark Kettenis <kettenis@gnu.org>
2173
2174 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
2175 out define.
2176
2177 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
2178 FRAME.
2179
2180 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
2181 * configure.host: Make i[3456]86-*-aix host obsolete.
2182 * configure.tgt: Make i[3456]86-*-aix target obsolete.
2183 * config/i386/i386aix.mh, config/i386/i386aix.mt,
2184 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
2185 config/i386/xm-i386aix.h: Make files obsolete.
2186 * i386aix-nat.c: Make file obsolete.
2187 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
2188 (i386aix-nat.o): Make target obsolete.
2189
2190 * config/i386/nm-gnu.h: Removed.
2191 * config/i386/nm-i386gnu.h: New file.
2192 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
2193 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
2194 Moved here from ...
2195 * config/i386/tm-i386gnu.h: ... here. Removed.
2196 * config/i386/xm-i386gnu.h: Removed.
2197 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
2198 (NAT_FILE): Set to nm-i386gnu.h.
2199 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
2200 * i386-tdep.c: New file.
2201 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
2202 (i386gnu-tdep.o): Specify dependencies.
2203
2204 2002-08-15 Mark Kettenis <kettenis@gnu.org>
2205
2206 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
2207 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
2208 Adjust a few comments to reflect reality a bit closer.
2209 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
2210 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
2211 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
2212 target_insert_watchpoint, target_remove_watchpoint):
2213 Move defines to ...
2214 * config/i386/nm-i386sco5.h: ... here.
2215 (kernel_u_size): Add prototype. Improve a few comments and add
2216 protection against multiple inclusion.
2217
2218 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
2219 out define.
2220
2221 * uw-thread.c (SP_ARG0): Define if not already defined.
2222 * config/i386/tm-i386.h (SO_ARG0): Remove define.
2223
2224 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
2225
2226 * config/i386/tm-i386.h: Don't include "regcache.h".
2227
2228 * i387-tdep.h (i387_print_float_info): New prototype.
2229 * i387-tdep.c (print_i387_value, print_i387_ext,
2230 print_i387_status_word, print_i387_control_word): Add `struct
2231 ui_file *' argument and use it for output.
2232 (i387_print_float_info): Renamed from i387_float_info. Add
2233 `struct gdbarch *' and `struct ui_file *' arguments and use the
2234 latter for output.
2235 * i386-tdep.c: Include "i387-tdep.h".
2236 (i386_gdbarch_init): Set print_float_info.
2237 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
2238 (FLOAT_INFO): Remove define.
2239
2240 2002-08-13 Michael Snyder <msnyder@redhat.com>
2241
2242 * mips-tdep.c (mips_push_arguments): Rename to
2243 mips_eabi_push_arguments, and tune for EABI.
2244 (MIPS_REGS_HAVE_HOME_P): Delete.
2245 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
2246 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
2247 Delete references to mips_regs_have_home_p.
2248
2249 2002-08-14 Keith Seitz <keiths@redhat.com>
2250
2251 * Makefile.in (install-gdbtk): Create insight plugin directory.
2252 Install plugins.tcl file.
2253
2254 2002-08-14 Keith Seitz <keiths@redhat.com>
2255
2256 * configure.in: Move SUBDIRS to near top of the file so that
2257 --enable options may add things to it.
2258 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
2259 * configure: Regenerate.
2260
2261 2002-08-13 Michael Snyder <msnyder@redhat.com>
2262
2263 * mips-tdep.c (mips_o32o64_push_arguments): New function,
2264 cloned from mips_push_arguments, tuned for o32/o64 ABI.
2265 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
2266
2267 2002-08-13 Andrew Cagney <ac131313@redhat.com>
2268
2269 * vax-tdep.c (vax_get_saved_register): Delete function.
2270 (vax_gdbarch_init): Update.
2271 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
2272 (ns32k_gdbarch_init): Update.
2273 * alpha-tdep.c (alpha_get_saved_register): Delete function.
2274 (alpha_gdbarch_init): Update.
2275
2276 2002-08-13 Andrew Cagney <cagney@redhat.com>
2277
2278 * regcache.c (init_regcache_descr): Overallocate the
2279 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
2280 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
2281 nr_raw_registers.
2282 (set_register_cached): Add range checking assertions. Use
2283 current_regcache.
2284
2285 2002-08-13 Mark Kettenis <kettenis@gnu.org>
2286
2287 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
2288 numbers for MMX registers.
2289
2290 2002-08-13 Andrew Cagney <cagney@redhat.com>
2291
2292 * i386-tdep.c (i386_gdbarch_init): Use
2293 generic_unwind_get_saved_register.
2294
2295 2002-08-13 Kevin Buettner <kevinb@redhat.com>
2296
2297 * procfs.c (procfs_can_use_hw_breakpoint): New function.
2298 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
2299 target vector.
2300 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
2301 Delete. Add comment regarding this now-deleted target method.
2302
2303 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2304
2305 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
2306 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
2307 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
2308 real PC and the page number (if it's within the memory bank window).
2309 (m68hc11_pseudo_register_write): Likewise when saving.
2310 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
2311 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
2312 (m68hc11_register_raw_size): And use 32-bit for it.
2313 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
2314 16K memory bank is used by the prog; also use the virtual pc.
2315
2316 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2317
2318 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
2319 (m68hc11_gdbarch_init): Install it in gdbarch.
2320 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
2321 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
2322 (MSYMBOL_SIZE): New for documentation.
2323 (insn_return_kind): Enum to specify how a function returns.
2324 (frame_extra_info): Cleanup and record the return mode.
2325 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
2326 register in address computation.
2327 (m68hc11_get_return_insn): New to obtain the return instruction used
2328 by the function.
2329 (m68hc11_frame_init_saved_regs): Take into account the return
2330 instruction used by the function for far and interrupt functions.
2331 (m68hc11_init_extra_frame_info): Take into account page register.
2332 (m68hc11_frame_args_address): Adjust according to the return mode.
2333 (show_regs): Print page register only when it's used.
2334
2335 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2336
2337 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
2338 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
2339 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
2340 registers.
2341 (m68hc11_register_raw_size): Likewise.
2342
2343 2002-08-13 Andrew Cagney <cagney@redhat.com>
2344
2345 * i386-tdep.c (i386_register_name): Handle mmx registers.
2346 (mmx_regnum_p): New function.
2347 (i386_mmx_names): New array.
2348 (mmx_num_regs): New variable.
2349 (i386_pseudo_register_read): New function.
2350 (i386_pseudo_register_write): New function.
2351 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
2352
2353 * regcache.c (regcache_raw_read_unsigned): New function.
2354 (regcache_raw_read_signed): New function.
2355 * regcache.h (regcache_raw_read_unsigned): Declare.
2356 (regcache_raw_read_signed): Declare.
2357
2358 2002-08-13 Andrew Cagney <cagney@redhat.com>
2359
2360 * regcache.c (regcache_raw_read_as_address): Delete function.
2361 (regcache_cooked_read_signed): New function.
2362 (regcache_cooked_read_unsigned): New function.
2363 * regcache.h (regcache_cooked_read_signed): Declare.
2364 (regcache_cooked_read_unsigned): Declare.
2365 (regcache_raw_read_as_address): Delete declaration.
2366
2367 * blockframe.c (generic_read_register_dummy): Use
2368 regcache_cooked_read_unsigned.
2369 * i386-tdep.c (i386_extract_struct_value_address): Use
2370 regcache_cooked_read_unsigned.
2371
2372 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2373
2374 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
2375 double sizes according to ELF ABI flags.
2376 (gdbarch_tdep): Record elf_flags.
2377
2378 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2379
2380 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
2381 (m6812_prolog): They can appear in 68HC12 function prologue.
2382 (m68hc11_frame_chain): Cleanup.
2383
2384 2002-08-12 Andrew Cagney <cagney@redhat.com>
2385
2386 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
2387 declarations.
2388 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
2389 (i386_linux_register_raw_size): Delete function.
2390 (i386_linux_init_abi): Update.
2391 * i386-tdep.c (i386_register_raw_size): Delete function.
2392 (i386_register_byte): Delete function.
2393 (i386_gdbarch_init): Update.
2394 (i386_register_size): Delete array.
2395 (i386_register_offset): Delete array.
2396
2397 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
2398 (REGISTER_RAW_SIZE): Delete macro.
2399 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
2400 (REGISTER_BYTE): Delete macro.
2401
2402 2002-08-11 Aidan Skinner <aidan@velvet.net>
2403
2404 * ada-lang.c (ada_lookup_partial_symbol)
2405 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
2406 prototype names so that grep ^func works properly.
2407
2408 * ada-lang.c (ada_array_element_type)
2409 (ada_lookup_partial_symbol): Fix typos in parameter list.
2410
2411 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
2412 Fix prototype names so that grep ^func works properly.
2413
2414 2002-08-10 Andrew Cagney <cagney@redhat.com>
2415 Elena Zannoni <ezannoni@redhat.com>
2416 Martin M. Hunt <hunt@redhat.com>
2417
2418 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
2419 (build_builtin_type_vec128i): Set the vector bit.
2420 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
2421 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
2422 (build_builtin_type_vec64): New function.
2423 (build_builtin_type_vec64i): New function.
2424 (build_gdbtypes): Initialize builtin_type_vec64 and
2425 builtin_type_vec64i.
2426
2427 2002-08-09 Andrew Cagney <cagney@redhat.com>
2428
2429 * regcache.c (regcache_dump): Compare the register offset
2430 with REGISTER_BYTE.
2431 * arch-utils.c (generic_register_byte): New function.
2432 * arch-utils.h (generic_register_byte): Declare.
2433 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
2434 * gdbarch.h, gdbarch.c: Regenerate.
2435
2436 2002-08-09 Andrew Cagney <cagney@redhat.com>
2437
2438 * regcache.c: Include "gdbcmd.h"
2439 (_initialize_regcache): Add commands "maintenance print
2440 registers", "maintenance print raw-registers" and "maintenance
2441 print cooked-registers".
2442 (enum regcache_dump_what): Define.
2443 (dump_endian_bytes): New function.
2444 (regcache_dump): New function.
2445 (regcache_print): New function.
2446 (maintenance_print_registers): New function.
2447 (maintenance_print_raw_registers): New function.
2448 (maintenance_print_cooked_registers): New function.
2449 * Makefile.in (regcache.o): Update dependencies.
2450
2451 2002-08-09 Michael Snyder <msnyder@redhat.com>
2452
2453 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
2454 (mips_push_arguments): Correct some comments. Use paddr_nz
2455 for printing addresses in debug output. Replace static
2456 allocation using MAX_REGISTER_RAW_SIZE with alloca.
2457 (mips_n32n64_push_arguments): New function, cloned from
2458 mips_push_arguments and tuned for the n32/n64 ABI.
2459 (mips_push_register): Buffer needs dynamic allocation.
2460 (mips_print_register): Ditto.
2461 (do_gp_register_row): Ditto.
2462 (mips_store_return_value): Ditto.
2463 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
2464
2465 2002-08-09 Don Howard <dhoward@redhat.com>
2466
2467 * memattr.c (mem_info_command): Print special case of upper bound
2468 as max CORE_ADDR + 1.
2469
2470 2002-08-08 Michael Snyder <msnyder@redhat.com>
2471
2472 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
2473 returns structs by ref if they're too big to fit in two registers.
2474
2475 2002-08-09 Kevin Buettner <kevinb@redhat.com>
2476
2477 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
2478 saved regs value.
2479 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
2480 mips_find_saved_regs().
2481 (mips_pop_frame): Likewise.
2482
2483 2002-08-09 Kevin Buettner <kevinb@redhat.com>
2484
2485 * blockframe.c (frame_saved_regs_register_unwind): Revise
2486 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
2487 frames are in use.
2488
2489 2002-08-09 Grace Sainsbury <graces@redhat.com>
2490
2491 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
2492 T-packets; the 'a' is not taken as a register number.
2493 (remote_check_watch_resources, remote_stopped_by_watchpoint)
2494 (remote_stopped_data_address): New functions; add to target
2495 vector.
2496 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
2497 prototypes to match other implementations of this
2498 function. replace integer argument with pointer -- the length
2499 field in the Z-packet is the length of what is pointed to or 1 if
2500 pointer is null. Add to target vector.
2501 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
2502 target vector.
2503
2504 From Mark Salter:
2505 * remote.c (remote_wait): Add support to extract optional
2506 watchpoint information from T-packet. Ignore unrecognized
2507 optional info in T-packet.
2508 (remote_async_wait): Ditto.
2509
2510 2002-08-09 Corinna Vinschen <vinschen@redhat.com>
2511
2512 * cli/cli-dump.c: Change fopen modes to use binary open modes
2513 as defined in include/fopen-bin.h throughout.
2514
2515 2002-08-08 Michael Snyder <msnyder@redhat.com>
2516
2517 * mips-tdep.c: Minor whitespace and indentation clean-ups.
2518
2519 2002-08-08 Kevin Buettner <kevinb@redhat.com>
2520
2521 * doublest.c (store_floating): Avoid floatformat_from_doublest()
2522 assertion failure by returning early after a warning.
2523
2524 2002-08-08 Kevin Buettner <kevinb@redhat.com>
2525
2526 * mips-tdep.c (mips_find_saved_regs): Make static.
2527 (mips_frame_init_saved_regs): New function.
2528 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
2529 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
2530 (mips_find_saved_regs): Delete declaration.
2531
2532 2002-08-08 Grace Sainsbury <graces@redhat.com>
2533
2534 * remote.c (remote_wait, remote_async_wait): Change
2535 thread_num from int to ULONGEST.
2536 (unpack_varlen_hex): Change result parameter from
2537 int * to ULONGEST *.
2538
2539 2002-08-08 Andrew Cagney <ac131313@redhat.com>
2540
2541 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
2542 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
2543 powerpc*-*-*.
2544 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
2545
2546 2002-08-08 Andrew Cagney <cagney@redhat.com>
2547
2548 * gcore.c (override_derive_stack_segment): Delete variable.
2549 (preempt_derive_stack_segment): Delete function.
2550 (derive_stack_segment): Delete function.
2551 (default_derive_stack_segment): Renamed to derive_stack_segment.
2552 (override_derive_heap_segment): Delete variable.
2553 (preempt_derive_heap_segment): Delete function.
2554 (derive_heap_segment): Delete function.
2555 (default_derive_heap_segment): Rename to derive_heap_segment.
2556
2557 2002-08-06 Michael Snyder <msnyder@redhat.com>
2558
2559 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
2560 * mips-tdep.c (mips_EABI_use_struct_convention,
2561 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
2562 New functions. (mips_use_struct_convention): Delete.
2563 (mips_gdbarch_init): set use_gdbarch_convention.
2564
2565 2002-08-06 Michael Snyder <msnyder@redhat.com>
2566
2567 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
2568 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
2569 mips_o32_reg_struct_has_addr): New functions.
2570 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
2571
2572 2002-08-07 Andrew Cagney <ac131313@redhat.com>
2573
2574 * regcache.c (pseudo_register): Delete function.
2575 (fetch_register): Delete function.
2576 (store_register): Delete function.
2577 (regcache_raw_read, legacy_read_register_gen): Use
2578 target_fetch_registers instead of fetch_register.
2579 (legacy_write_register_gen, regcache_raw_write): Use
2580 target_store_register instead of store_register.
2581 (write_register_bytes): Ditto.
2582
2583 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
2584 (STORE_PSEUDO_REGISTER): Delete.
2585 * gdbarch.h, gdbarch.c: Regenerate.
2586
2587 2002-08-06 Corinna Vinschen <vinschen@redhat.com>
2588
2589 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
2590 write dump file binary.
2591
2592 2002-08-05 Michael Snyder <msnyder@redhat.com>
2593
2594 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
2595 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
2596 (mips_gdbarch_init): Set N32 target to be mips64.
2597
2598 2002-08-06 Kevin Buettner <kevinb@redhat.com>
2599
2600 * frame.c (find_saved_register): Break out of loop once saved
2601 register address is found. Don't mention sparc in loop comment
2602 anymore.
2603
2604 2002-08-06 Kevin Buettner <kevinb@redhat.com>
2605
2606 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
2607 mips_default_saved_regsize to 8.
2608
2609 2002-08-06 Andrew Cagney <ac131313@redhat.com>
2610
2611 * gcore.c: Do not include <sys/procfs.h>.
2612 * Makefile.in (gcore.o): Update dependencies.
2613
2614 2002-08-06 Andrew Cagney <cagney@redhat.com>
2615
2616 * configure.tgt: Make arc-*-* obsolete.
2617 * NEWS: Mention that arc-*-* has been identifed as obsolete.
2618 * MAINTAINERS: Make arc-elf obsolete.
2619 * arc-tdep.c: Make file obsolete.
2620 * config/arc/arc.mt: Ditto.
2621 * config/arc/tm-arc.h: Ditto.
2622
2623 2002-08-05 Theodore A. Roth <troth@verinet.com>
2624
2625 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
2626
2627 2002-08-05 Andrew Cagney <ac131313@redhat.com>
2628
2629 * mcore-tdep.c (mcore_gdbarch_init): Use
2630 generic_unwind_get_saved_register instead of
2631 generic_get_saved_register.
2632 * v850-tdep.c (v850_gdbarch_init): Ditto.
2633 * frv-tdep.c (frv_gdbarch_init): Ditto.
2634 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2635 * s390-tdep.c (s390_gdbarch_init): Ditto.
2636 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2637 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
2638 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
2639
2640 2002-08-05 Joel Brobecker <brobecker@gnat.com>
2641
2642 * objfiles.h: Add missing #include "symfile.h"
2643
2644 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
2645
2646 2002-08-04 Andrew Cagney <ac131313@redhat.com>
2647
2648 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
2649 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
2650 of FIELD_BITSIZE.
2651
2652 2002-08-04 Daniel Jacobowitz <drow@mvista.com>
2653
2654 * NEWS: Cleanup and nitpick.
2655
2656 2002-08-03 Andrew Cagney <ac131313@redhat.com>
2657
2658 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
2659
2660 2002-08-03 Andrew Cagney <ac131313@redhat.com>
2661
2662 * Makefile.in (gdbtk-bp.o): Update dependencies.
2663 (gdbtk-register.o): Ditto.
2664 (gdbtk-varobj.o): Ditto.
2665
2666 2002-08-03 Andrew Cagney <cagney@redhat.com>
2667
2668 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
2669 m68hc11_fetch_pseudo_register.
2670 (m68hc11_pseudo_register_write): Replace
2671 m68hc11_store_pseudo_register.
2672 (m68hc11_gdbarch_init): Update.
2673
2674 Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
2675
2676 * gdbarch.sh: Include "gdb_string.h".
2677 * gdbarch.c: Regenerate.
2678
2679 * regcache.c: Include "gdb_string.h".
2680 * ax-general.c: Ditto.
2681 * varobj.c: Ditto.
2682 * std-regs.c: Ditto.
2683 * fbsd-proc.c: Ditto.
2684 * thread.c: Ditto.
2685
2686 * Makefile.in (regcache.o): Update dependencies.
2687 (thread.o, gdbarch.o): Ditto.
2688 (ax-general.o, gdbarch.o): Ditto.
2689 (varobj.o, std-regs.o): Ditto.
2690 (fbsd-proc.o): Specify dependencies.
2691
2692 2002-08-02 Andrew Cagney <cagney@redhat.com>
2693
2694 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
2695 regnum.
2696 (regcache_cooked_write): Ditto.
2697
2698 2002-08-02 Andrew Cagney <ac131313@redhat.com>
2699
2700 * regcache.c (regcache_cooked_read): New function.
2701 (regcache_cooked_write): New function.
2702 (read_register_gen): Rewrite using regcache_cooked_read.
2703 (write_register_gen): Rewrite using regcache_cooked_write.
2704
2705 * regcache.h (regcache_cooked_read, regcache_cooked_write):
2706 Declare.
2707
2708 2002-08-02 Andrew Cagney <cagney@redhat.com>
2709
2710 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
2711 Replace the architecture methods register_read and register_write.
2712 * gdbarch.h, gdbarch.c: Regenerate.
2713 * regcache.c (init_regcache_descr): Update.
2714 (read_register_gen): Update.
2715 (write_register_gen): Update.
2716 (supply_register): Update comment.
2717
2718 * sh-tdep.c (sh_gdbarch_init): Update.
2719 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
2720 `regcache' and `gdbarch' parameters. Make `buffer' a void
2721 pointer. Update code.
2722 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
2723 `regcache' and `gdbarch' parameters. Make `buffer' a constant
2724 void pointer. Update code.
2725 (sh64_register_write): Delete.
2726 (sh4_register_read): Delete.
2727 (sh64_register_read): Delete.
2728 (sh4_register_write): Delete.
2729 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
2730 void pointer, `to' parameter a void pointer.
2731 (sh_sh64_register_convert_to_raw): Ditto.
2732
2733 2002-08-01 Kevin Buettner <kevinb@redhat.com>
2734
2735 * mips-tdep.c (mips_register_virtual_type): Use architecture
2736 invariant return values.
2737
2738 2002-08-01 Andrew Cagney <cagney@redhat.com>
2739
2740 * linux-proc.c: Include "gdb_string.h".
2741 * Makefile.in (linux-proc.o): Update dependency list.
2742
2743 2002-08-01 Kevin Buettner <kevinb@redhat.com>
2744
2745 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
2746 comment.
2747
2748 2002-08-01 Grace Sainsbury <graces@redhat.com>
2749
2750 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
2751 to_insert_watchpoint, to_remove_watchpoint,
2752 to_stopped_by_watchpoint, to_stopped_data_address,
2753 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
2754 target vecctor. Define their corresponding macros so they call
2755 them.
2756
2757 * target.c: Add default and debug versions of for
2758 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
2759 to_insert_watchpoint, to_remove_watchpoint,
2760 to_stopped_by_watchpoint, to_stopped_data_address,
2761 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
2762
2763 2002-08-01 Kevin Buettner <kevinb@redhat.com>
2764
2765 * mips-tdep.c (mips_register_virtual_type): New function.
2766 (mips_gdbarch_init): Register mips_register_virtual_type()
2767 with gdbarch machinery.
2768 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
2769 this file instead of tm-bigmips.h.
2770 (MIPS_REGSIZE): Delete this macro.
2771 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
2772 multiarch version in mips-tdep.c will be found.
2773
2774 2002-08-01 Andrew Cagney <cagney@redhat.com>
2775
2776 * NEWS: Menion that CHILL has been made obsolete.
2777
2778 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
2779 * stabsread.c (read_range_type): Ditto.
2780 * gdbtypes.h: Ditto.
2781 * language.c (binop_type_check): Ditto.
2782 (binop_result_type): Ditto.
2783 (integral_type): Ditto.
2784 (character_type): Ditto.
2785 (string_type): Ditto.
2786 (boolean_type): Ditto.
2787 (structured_type): Ditto.
2788 (lang_bool_type): Ditto.
2789 (binop_type_check): Ditto.
2790 * language.h (_LANG_chill): Ditto.
2791 * dwarfread.c (set_cu_language): Ditto.
2792 * dwarfread.c (CHILL_PRODUCER): Ditto.
2793 * dwarfread.c (handle_producer): Ditto.
2794 * expression.h (enum exp_opcode): Ditto.
2795 * eval.c: Ditto for comments.
2796 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
2797 * expprint.c (print_subexp): Ditto.
2798 (print_subexp): Ditto.
2799 * valops.c (value_cast): Ditto.
2800 (search_struct_field): Ditto.
2801 * value.h (COERCE_VARYING_ARRAY): Ditto.
2802 * symfile.c (init_filename_language_table): Ditto.
2803 (add_psymbol_with_dem_name_to_list): Ditto.
2804 * valarith.c (value_binop): Ditto.
2805 (value_neg): Ditto.
2806 * valops.c (value_slice): Ditto.
2807 * symtab.h (union language_specific): Ditto.
2808 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
2809 (SYMBOL_DEMANGLED_NAME): Ditto.
2810 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
2811 * defs.h (enum language): Ditto.
2812 * symtab.c (got_symtab): Ditto.
2813 * utils.c (fprintf_symbol_filtered): Ditto.
2814
2815 * ch-typeprint.c: Make file obsolete.
2816 * ch-valprint.c: Make file obsolete.
2817 * ch-lang.h: Make file obsolete.
2818 * ch-exp.c: Make file obsolete.
2819 * ch-lang.c: Make file obsolete.
2820
2821 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
2822 CHILL_LIB.
2823 (TARGET_FLAGS_TO_PASS): Ditto.
2824 (CHILLFLAGS): Obsolete.
2825 (CHILL): Obsolete.
2826 (CHILL_FOR_TARGET): Obsolete.
2827 (CHILL_LIB): Obsolete.
2828 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
2829 ch-valprint.c.
2830 (HFILES_NO_SRCDIR): Remove ch-lang.h.
2831 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
2832 ch-lang.o.
2833 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
2834 targets.
2835
2836 2002-07-31 Joel Brobecker <brobecker@gnat.com>
2837
2838 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
2839 This does not change anything at the moment, but will be helpful
2840 later when full Ada support is integrated.
2841
2842 2002-07-31 Kevin Buettner <kevinb@redhat.com>
2843
2844 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
2845 help message.
2846
2847 2002-07-31 Kevin Buettner <kevinb@redhat.com>
2848
2849 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
2850 and save it in a local variable. Use variable in later test.
2851
2852 2002-07-31 Kevin Buettner <kevinb@redhat.com>
2853
2854 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
2855 test. (Thanks to Daniel Jacobowitz.)
2856
2857 2002-07-31 Kevin Buettner <kevinb@redhat.com>
2858
2859 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
2860 (mips_abi_strings): Add "n64".
2861 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
2862
2863 2002-07-31 Kevin Buettner <kevinb@redhat.com>
2864
2865 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
2866 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
2867
2868 2002-07-31 Kevin Buettner <kevinb@redhat.com>
2869
2870 * utils.c (host_pointer_to_address, address_to_host_pointer):
2871 Use gdb_assert() instead of explicit call to internal_error().
2872
2873 2002-07-30 Kevin Buettner <kevinb@redhat.com>
2874
2875 * Makefile.in (rs6000-nat.o): Update dependencies.
2876
2877 From Nicholas Duffek:
2878 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
2879 (aix-thread.o): New rule.
2880 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
2881 * config/powerpc/aix432.mh: New file.
2882
2883 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
2884
2885 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
2886 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
2887 (fetch_core_registers, ppc_linux_supply_gregset)
2888 (ppc_linux_supply_fpregset): New functions.
2889 (ppc_linux_regset_core_fns): New.
2890 (_initialize_ppc_linux_tdep): Call add_core_fns.
2891 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
2892 and ppc_linux_supply_gregset.
2893 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
2894 (supply_fpregset): Call ppc_linux_supply_fpregset.
2895 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
2896 corelow.o.
2897 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
2898
2899 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
2900
2901 * symtab.c (lookup_symbol): Demangle before lowercasing.
2902
2903 2002-07-30 Andrew Cagney <ac131313@redhat.com>
2904
2905 * symtab.h: Replace #include "gdb_obstack.h" with opaque
2906 declaration.
2907 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
2908 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
2909 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
2910 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
2911 "gdb_string.h".
2912 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
2913 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
2914 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
2915 (avr-tdep.o, mon960-rom.o): Ditto.
2916 (aout_stabs_gnu_h): Define.
2917 (symtab_h): Remove $(gdb_obstack_h).
2918
2919 2002-07-30 Jim Blandy <jimb@redhat.com>
2920
2921 Patch from David Carlton <carlton@math.stanford.edu>:
2922 * gdbinit.in: Move the `dir' commands that add GDB's own source
2923 directory to the search path to the end, so that the `gdb' source
2924 directory will be searched first.
2925
2926 2002-07-29 Andrew Cagney <ac131313@redhat.com>
2927
2928 * gdb_obstack.h: New file.
2929 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
2930 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
2931 * objfiles.h: Include "gdb_obstack.h".
2932 * Makefile.in (gdb_obstack_h): Define.
2933 (symtab_h): Add $(gdb_obstack_h).
2934 (objfiles_h): Add $(gdb_obstack_h).
2935
2936 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
2937 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
2938 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
2939 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
2940 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
2941 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
2942 * symfile.c, coffread.c, c-typeprint.c: Ditto.
2943 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
2944
2945 * Makefile.in (bcache.o): Update dependencies.
2946 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
2947 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
2948 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
2949 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
2950 (stabsread.o, symfile.o, symmisc.o): Ditto.
2951 (symtab.o, typeprint.o, macroexp.o): Ditto.
2952 (macrotab.o, mdebugread.o): Ditto.
2953 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
2954 (coff_ecoff_h, aout_aout64_h): Define.
2955 (aout_stabs_gnu_h, libaout_h): Define.
2956
2957 2002-07-29 Andrew Cagney <cagney@redhat.com>
2958
2959 * regcache.c (struct regcache_descr): Rename nr_registers to
2960 nr_cooked_registers. Revise comments describing the structure
2961 member fields.
2962 (init_regcache_descr): Update.
2963 (init_legacy_regcache_descr): Update.
2964 (read_register_gen, write_register_gen): When a cooked register in
2965 the raw register range, directly access the value from the raw
2966 register cache.
2967
2968 2002-07-29 Andrew Cagney <ac131313@redhat.com>
2969
2970 * z8k-tdep.c: Do not include "obstack.h".
2971 * h8300-tdep.c, h8500-tdep.c: Ditto.
2972 * m68hc11-tdep.c, sh-tdep.c: Ditto.
2973 * valprint.c, v850-tdep.c: Ditto.
2974 * d10v-tdep.c, mn10300-tdep.c: Ditto.
2975 * mn10200-tdep.c: Ditto.
2976
2977 * Makefile.in (z8k-tdep.o): Update dependencies.
2978 (m68hc11-tdep.o, valprint.o): Ditto.
2979 (v850-tdep.o, d10v-tdep.o): Ditto.
2980 (mn10300-tdep.o, sparc-tdep.o): Ditto.
2981 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
2982 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
2983 (sh_opc_h, gdb_sim_sh_h): Define.
2984 (elf_sh_h, elf_bfd_h): Define.
2985 (opcode_m68hc11_h): Define.
2986 (OPCODES_SRC, OPCODES_DIR): define.
2987 (OPCODES): Use $(OPCODES_DIR).
2988 (gdb_sim_d10v_h): Rename sim_d10v_h.
2989 (gdb_sim_arm_h): Rename sim_arm_h.
2990
2991 2002-07-26 Kevin Buettner <kevinb@redhat.com>
2992
2993 * utils.c (host_pointer_to_address, address_to_host_pointer):
2994 Change internal_error() message to indicate function responsible
2995 for the error.
2996
2997 2002-07-26 Kevin Buettner <kevinb@redhat.com>
2998
2999 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
3000 calls to local_hex_string_custom().
3001
3002 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3003
3004 * irix5-nat.c: Move IRIX shared library support from here...
3005 * solib-irix.c: ...to here. Revised substantially to work with
3006 generic solib framework.
3007
3008 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
3009 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
3010 * mips-irix-tdep.c: New file.
3011
3012 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
3013 (mips-irix-tdep.o, solib-irix.o): New rules.
3014 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
3015 solib-irix.o.
3016 * config/mips/irix6.mt (TDEPFILES): Likewise.
3017 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
3018
3019 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3020
3021 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
3022 disabled (via ``#if 0'') includes.
3023
3024 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3025
3026 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
3027 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
3028 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
3029 Add support for the fpscr register.
3030 * rs6000-nat.c (regmap, fetch_inferior_registers)
3031 (store_inferior_registers, fetch_core_registers): Likewise.
3032
3033 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3034
3035 * rs6000-nat.c (language.h): Include.
3036 (special_regs): Delete this array.
3037 (regmap): New function.
3038 (fetch_register, store_register): Use regmap() to map gdb
3039 register numbers to ptrace register numbers. Also, use
3040 outputs from regmap() to make decisions regarding type of
3041 ptrace() call to make. In particular, don't compare against
3042 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
3043 (fetch_inferior_registers, store_inferior_registers): Where
3044 possible, obtain register numbers from tdep struct. Don't
3045 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
3046 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
3047 (LAST_UISA_SP_REGNUM): Delete.
3048
3049 2002-07-25 Kevin Buettner <kevinb@redhat.com>
3050
3051 * rs6000-nat.c (ppc-tdep.h): Include.
3052 (fetch_registers, store_register, fetch_core_registers): Don't
3053 access registers[] directly. Instead, use supply_register() or
3054 regcache_collect() as appropriate.
3055 (find_toc_address): Format hex address with local_hex_string().
3056
3057 2002-07-25 Andrew Cagney <ac131313@redhat.com>
3058
3059 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
3060 bfd/elf32-frv.c.
3061
3062 2002-07-24 Tom Tromey <tromey@redhat.com>
3063
3064 * jv-exp.y: Marked all strings with _().
3065 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
3066 internal_error.
3067 (MethodInvocation, CastExpression, parse_number, yyerror,
3068 java_type_from_name, push_expression_name, yylex): Typo fixes.
3069
3070 2002-07-24 Daniel Jacobowitz <drow@mvista.com>
3071
3072 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
3073 (tee_file_flush, tee_file_write, tee_file_fputs)
3074 (tee_file_isatty): New.
3075 * ui-file.h (tee_file_new): Add prototype.
3076
3077 2002-07-24 Aidan Skinner <aidan@velvet.net>
3078
3079 * ada-lang.c: Change k&r style function definitions to prototyped
3080 form.
3081 * ada-typeprint.c: Change k&r style function definitions to prototyped
3082 form.
3083 * ada-valprint.c: Change k&r style function definitions to prototyped
3084 form.
3085
3086 2002-07-24 Andrew Cagney <cagney@redhat.com>
3087
3088 * README: Remove reference to remote-bug.
3089 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
3090 remote-bug.c.
3091 (m88k-nat.o): Delete rule.
3092 (m88k-tdep.o): Delete rule.
3093 (remote-bug.o): Delete rule.
3094 * MAINTAINERS: Mark as obsolete.
3095 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
3096 * m88k-tdep.c: Make file obsolete.
3097 * config/m88k/m88k.mh: Ditto.
3098 * config/m88k/delta88v4.mh: Ditto.
3099 * config/m88k/delta88v4.mt: Ditto.
3100 * config/m88k/delta88.mt: Ditto.
3101 * config/m88k/delta88.mh: Ditto.
3102 * remote-bug.c: Ditto.
3103 * config/m88k/tm-delta88.h: Ditto.
3104 * config/m88k/nm-delta88v4.h: Ditto.
3105 * config/m88k/xm-delta88.h: Ditto.
3106 * config/m88k/xm-dgux.h: Ditto.
3107 * config/m88k/tm-m88k.h: Ditto.
3108 * config/m88k/nm-m88k.h: Ditto.
3109 * config/m88k/tm-delta88v4.h: Ditto.
3110 * m88k-nat.c: Ditto.
3111 * cxux-nat.c: Ditto.
3112 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
3113 and m88*-*-* obsolete.
3114 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
3115 m88*-*-* obsolete.
3116
3117 2002-07-24 Andrew Cagney <cagney@redhat.com>
3118
3119 * findvar.c (extract_unsigned_integer): Make `addr' parameter
3120 constant. Same for local pointer variables.
3121 (extract_signed_integer): Ditto.
3122 * defs.h (extract_unsigned_integer): Update.
3123 (extract_signed_integer): Update.
3124
3125 2002-07-24 Andrew Cagney <cagney@redhat.com>
3126
3127 * regcache.c (regcache_raw_write): Change buf parameter to a
3128 constant void pointer.
3129 (regcache_raw_read): Change buf parameter to a void pointer.
3130 (legacy_write_register_gen): Change myaddr parameter a constant
3131 void pointer.
3132 (supply_register): Change val parameter to a const void pointer.
3133 * regcache.h (regcache_raw_write): Update declaration.
3134 (regcache_raw_read): Update declaration.
3135 (supply_register): Update declaration.
3136
3137 2002-07-24 Tom Tromey <tromey@redhat.com>
3138
3139 * defs.h (gdb_readline_wrapper): Declare.
3140 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
3141 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
3142 * top.c (gdb_readline_wrapper): New function.
3143 (command_line_input): Use it.
3144
3145 2002-07-24 Andrew Cagney <cagney@redhat.com>
3146
3147 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
3148 regcache_read and regcache_write.
3149 (regcache_raw_read_as_address): Replace regcache_read_as_address.
3150 * regcache.c: Update.
3151 * sh-tdep.c (sh64_push_arguments): Update comment.
3152 (sh_pseudo_register_read): Update.
3153 (sh_pseudo_register_write): Update.
3154 (sh4_register_read): Update.
3155 (sh4_register_write): Update.
3156 (sh64_pseudo_register_read): Update.
3157 (sh64_pseudo_register_write): Update.
3158 (sh64_register_read): Update.
3159 (sh64_register_write): Update.
3160 * i386-tdep.c (i386_extract_return_value): Update.
3161 (i386_extract_struct_value_address): Update.
3162 (i386_extract_return_value): Update.
3163 * blockframe.c (generic_read_register_dummy): Update.
3164 (generic_call_dummy_register_unwind): Update
3165 * infrun.c (write_inferior_status_register): Update.
3166
3167 2002-07-23 Jim Blandy <jimb@redhat.com>
3168
3169 * parser-defs.h (expression_context_pc): Make this extern.
3170 (Thanks to Michael Snyder.)
3171
3172 2002-07-23 Andrew Cagney <ac131313@redhat.com>
3173
3174 GDB 5.2.1 released from 5.2 branch.
3175 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
3176 * README: Update to mention 5.2.1.
3177
3178 2002-07-23 Mark Salter <msalter@redhat.com>
3179
3180 * remote.c (remote_read_bytes): Fix check for error.
3181
3182 2002-07-22 Kevin Buettner <kevinb@redhat.com>
3183
3184 * aix-thread.c (language.h): Include.
3185 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
3186 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
3187 Print newlines at end of debug messages.
3188 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
3189 (pdc_write_data): Use local_hex_string() instead of %llx formats.
3190
3191 2002-07-22 Kevin Buettner <kevinb@redhat.com>
3192
3193 * aix-thread.c (ppc-tdep.h): Include.
3194 (special_register_p): New function.
3195 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
3196 (store_regs_user_thread): Use register number information from
3197 gdbarch_tdep struct instead of hardcoded offsets relative to
3198 FIRST_UISA_SP_REGNUM.
3199 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
3200 special_register_p() instead of using FPLAST_REGNUM and
3201 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
3202 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
3203 will be MQ's register number.
3204
3205 2002-07-22 Michael Snyder <msnyder@redhat.com>
3206
3207 * aix-thread.c (ops): Rename to aix_thread_ops.
3208 (base_ops): Rename to base_target.
3209 (ops_attach): Rename to aix_thread_attach.
3210 (ops_detach): Rename to aix_thread_detach.
3211 (ops_resume): Rename to aix_thread_detach.
3212 (ops_wait): Rename to aix_thread_wait.
3213 (ops_kill): Rename to aix_thread_kill.
3214 (init_ops): Rename to init_aix_thread_ops.
3215 (ops_fetch_register): Rename to aix_thread_fetch_register.
3216 (ops_store_register): Rename to aix_thread_store_register.
3217 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
3218 (ops_thread_alive): Rename to aix_thread_thread_alive.
3219 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
3220 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
3221 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
3222 (fetch_regs_lib): Rename to fetch_regs_user_thread.
3223 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
3224 (store_regs_lib): Rename to store_regs_user_thread.
3225 (store_regs_kern): Rename to store_regs_kernel_thread.
3226
3227 2002-07-22 Michael Snyder <msnyder@redhat.com>
3228
3229 * aix-thread.c (ops_prepare_to_store): Eliminate.
3230 (init_ops): Don't initialize ops.prepare_to_store.
3231 (store_regs_kern): Pre-fetch register buffers from child,
3232 because some registers may not be in the cache. Copy
3233 regs from register cache only if they are cached.
3234 (store_regs_lib): Copy regs from register cache only
3235 if they are cached.
3236 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
3237 fill_gprs64): Ditto.
3238
3239 2002-07-22 Kevin Buettner <kevinb@redhat.com>
3240
3241 * aix-thread.c (gdb_assert.h): Include.
3242 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
3243 register sizes (from register cache) match size of buffer holding
3244 register data.
3245 (fill_sprs32): Change parameter types to match those in the ptrace()
3246 buffer.
3247 (store_regs_lib): Likewise, but for 32-bit temporary variables.
3248 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
3249
3250 2002-07-22 Michael Snyder <msnyder@redhat.com>
3251
3252 * aix-thread.c (supply_sprs64): Cosmetic change.
3253 (supply_sprs32): Cosmetic change.
3254 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
3255 (fill_sprs64): Use regcache_collect instead of read_register.
3256 (store_regs_lib): Use regcache_collect instead of
3257 read_register. Use fill_sprs32 instead of fill_sprs64,
3258 if debugging a 32-bit architecture.
3259 (store_regs_kern): Use fill_gprs64 etc. to pull the values
3260 out of the register cache, instead of passing a pointer into
3261 the register cache directly to ptrace. Use regcache_collect
3262 insteaad of read_register.
3263 (ops_prepare_to_store): Use target_read_registers instead
3264 of read_register_bytes.
3265
3266 2002-07-20 Aidan Skinner <aidan@velvet.net>
3267
3268 * MAINTAINERS: Add self under write after approval.
3269
3270 2002-07-20 Aidan Skinner <aidan@velvet.net>
3271
3272 * ada-tasks.c: Change k&r style function definitions to prototyped
3273 form.
3274
3275 2002-07-19 Andrew Cagney <ac131313@redhat.com>
3276
3277 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
3278 * x86-64-tdep.c: Include "objfiles.h".
3279 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
3280 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
3281
3282 2002-07-17 Michal Ludvig <michal@suse.cz>
3283
3284 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
3285 (update_context): Initialise cfa variable.
3286
3287 2002-07-17 Michael Snyder <msnyder@redhat.com>
3288
3289 * aix-thread.c: Shorten some long lines.
3290 Bring comments into line with code spec.
3291
3292 2002-07-18 Joel Brobecker <brobecker@gnat.com>
3293
3294 * infrun.c: Re-indent using gdb_indent.sh.
3295
3296 2002-07-18 Joel Brobecker <brobecker@gnat.com>
3297
3298 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
3299 Leave the indentation temporarily untouched, to minimize the diffs.
3300
3301 2002-07-18 Elena Zannoni <ezannoni@redhat.com>
3302
3303 * stabsread.c: Make os9k sections of the code obsolete,
3304 for real this time.
3305 * stabsread.h: Make os9k sections of the code obsolete.
3306
3307 2002-07-18 Michal Ludvig <mludvig@suse.cz>
3308
3309 * linux-low.c (regsets_store_inferior_registers): Add free()
3310 at the end of a loop to prevent memory leak.
3311 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
3312 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
3313 * config/sparc/tm-sp64linux.h: Make the rest of #endif
3314 line a comment.
3315 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
3316
3317 2002-07-17 Jim Blandy <jimb@redhat.com>
3318
3319 * macrocmd.c (info_macro_command): Remove newline from error
3320 message.
3321
3322 2002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
3323
3324 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
3325 (sh_gdbarch_init): Use it for sh-dsp.
3326
3327 2002-07-16 Kevin Buettner <kevinb@redhat.com>
3328
3329 * dwarf2read.c (read_initial_length): Handle older, non-standard,
3330 64-bit DWARF2 format.
3331
3332 2002-07-16 Joel Brobecker <brobecker@gnat.com>
3333
3334 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
3335 <sys/proc.h> when not available.
3336
3337 2002-07-16 Andrew Cagney <ac131313@redhat.com>
3338
3339 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
3340 * stabsread.c: Make os9k sections of the code obsolete.
3341 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
3342 * config/i386/i386os9k.mt: Make file obsolete.
3343 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
3344 (COMMON_OBS): Remove os9kread.o
3345 (SFILES): Remove os9kread.c.
3346 (os9kread.o, remote-os9k.o): Make target obsolete.
3347 * remote-os9k.c: Make file obsolete.
3348 * os9kread.c: Make file obsolete.
3349 * Makefile.in
3350
3351 2002-07-16 Andrew Cagney <ac131313@redhat.com>
3352
3353 * NEWS: Mention that the FR30 has been made obsolete.
3354 * fr30-tdep.c: Make file obsolete.
3355 * config/fr30/tm-fr30.h: Ditto.
3356 * config/fr30/fr30.mt: Ditto.
3357 * configure.tgt: Make fr30-*-elf obsolete.
3358 * MAINTAINERS: Make fr30-elf obsolete.
3359
3360 2002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
3361
3362 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
3363 found is not inside a section.
3364
3365 2002-07-15 Kevin Buettner <kevinb@redhat.com>
3366
3367 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
3368 strerror().
3369 (pdc_realloc): Use xrealloc() instead of realloc().
3370
3371 2002-07-15 Kevin Buettner <kevinb@redhat.com>
3372
3373 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
3374 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
3375 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
3376 macros.
3377
3378 2002-07-15 Kevin Buettner <kevinb@redhat.com>
3379
3380 * aix-thread.c (ptrace_check): Eliminate goto.
3381 (sync_threadlists): Eliminate gotos. Also, fix array overrun
3382 problem.
3383
3384 2002-07-15 Kevin Buettner <kevinb@redhat.com>
3385
3386 * aix-thread.c (gdbcmd.h): Include.
3387 (DEBUG, DBG, DBG2, dbg): Eliminate.
3388 (debug_aix_thread): New static global.
3389 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
3390 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
3391 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
3392 invocations to DBG and DBG2 macros to test against
3393 ``debug_aix_thread'' and call fprintf_unfiltered().
3394 (_initialize_aix_thread): Add new command "set debug aix-thread".
3395
3396 2002-07-15 Andrew Cagney <ac131313@redhat.com>
3397
3398 From Gerhard Tonn <TON@de.ibm.com>:
3399 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
3400 instead of supply_register.
3401
3402 2002-07-15 Andrew Cagney <ac131313@redhat.com>
3403
3404 * dwarf2cfi.c: Include "gdb_assert.h".
3405 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
3406 non-NULL.
3407 (update_context): Do not use __func__. Add missing ``break''.
3408 (update_context): Do not use __func__.
3409
3410 2002-07-15 Elena Zannoni <ezannoni@redhat.com>
3411
3412 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
3413 and its setting. Set gdbarch instruction printing functions
3414 directly. For non-rs6000 case use new function
3415 gdb_print_insn_powerpc.
3416 (gdb_print_insn_powerpc): New function.
3417
3418 2002-07-13 Andrew Cagney <ac131313@redhat.com>
3419
3420 * NEWS: Mention that the d30v has been marked obsolete.
3421 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
3422 * configure.tgt: Mark d30v-*-* as obsolete.
3423 * d30v-tdep.c: Mark file as obsolete.
3424 * config/d30v/d30v.mt: Ditto.
3425 * config/d30v/tm-d30v.h: Ditto.
3426
3427 2002-07-13 Aidan Skinner <aidan@velvet.net>
3428
3429 * ada-tasks.c (add_task_entry): replace calls to
3430 malloc() with xmalloc
3431 * ada-tasks.c (init_task_list): replace calls to free with xfree()
3432
3433 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
3434 ada_finish_decode_line_1, all_sals_for_line
3435 ada_breakpoint_rewrite): replace calls to free() with xfree()
3436
3437 2002-07-12 Kevin Buettner <kevinb@redhat.com>
3438
3439 From Nicholas Duffek (with minor changes by Martin Hunt,
3440 Louis Hamilton, and Kevin Buettner):
3441 * aix-thread.c: New file.
3442
3443 2002-07-12 Petr Sorfa <petrs@caldera.com>
3444
3445 * dwarf2read.c (dwarf2_invalid_attrib_class): New
3446 complaint for invalid attribute class or form.
3447 (read_func_scope): DW_AT_frame_base
3448 better handling of DW_AT_block*.
3449 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
3450 better handling of DW_AT_block*.
3451 (read_common_block): DW_AT_location
3452 better handling of DW_AT_block*.
3453 (read_partial_die): DW_AT_location better handling
3454 of DW_AT_block*.
3455 (new_symbol): DW_AT_external better handling of
3456 DW_AT_block*. Proper initialization of variable
3457 "addr".
3458 (attr_form_is_block): New function that returns true
3459 if the attribute's form is of DW_FORM_block*.
3460
3461 2002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
3462
3463 * valops.c (find_method_list): Remove comment about
3464 removed STATIC_MEMFUNCP argument.
3465 (value_find_oload_method_list): Likewise.
3466
3467 2002-07-12 Kevin Buettner <kevinb@redhat.com>
3468
3469 From Nicholas Duffek:
3470 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
3471 target_new_objfile_hook.
3472
3473 2002-07-12 Kevin Buettner <kevinb@redhat.com>
3474
3475 From Nicholas Duffek:
3476 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
3477 csect.
3478
3479 2002-07-12 Andrew Cagney <cagney@redhat.com>
3480
3481 * MAINTAINERS: Mention --enable-sim-build-warnings.
3482 (m68hc11-elf): Disable sim build warnings.
3483 (m32r-elf): Mark as broken obsolete candidate.
3484 (x86_64-linux-gnu): Mark as buildable with -Werror.
3485 (arm-elf): Change -w to ``,'' which enables warnings but not
3486 -Werror.
3487
3488 2002-07-12 Andrew Cagney <ac131313@redhat.com>
3489
3490 * bcache.h: Update copyright.
3491 (struct bstring, struct bcache): Move definition to "bcache.c".
3492 Replaced by opaque declaration.
3493 (bcache_xfree): Replace free_bcache.
3494 (bcache_xmalloc, bcache_memory_used): Declare.
3495
3496 * bcache.c: Update copyright.
3497 (struct bstring, struct bcache): Moved to here from "bcache.h".
3498 Update comments.
3499 (bcache_xmalloc, bcache_memory_used): New functions.
3500 (bcache_xfree): Replace function free_bcache.
3501
3502 * Makefile.in (objfiles.o): Add $(bcache_h).
3503 (objfiles_h): Remove $(bcache_h).
3504 (symfile.o): Add $(bcache_h).
3505
3506 * symmisc.c: Update copyright.
3507 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
3508 (print_objfile_statistics): Use bcache_memory_used.
3509
3510 * symfile.c: Include "bcache.h".
3511 (reread_symbols): Use bcache_xfree.
3512 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
3513 (add_psymbol_to_list): Pass psymbol_cache by value.
3514 (add_psymbol_with_dem_name_to_list): Ditto.
3515
3516 * objfiles.h: Update copyright.
3517 (struct bcache): Declare opaque. Do not include "bcache.h".
3518 (struct objfile): Change psymbol_cache and macro_cache to ``struct
3519 bcache'' pointers.
3520 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
3521
3522 * objfiles.c: Include "bcache.h". Update copyright.
3523 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
3524 macro_cache.
3525 (free_objfile): Use bcache_xfree.
3526
3527 2002-07-11 Grace Sainsbury <graces@redhat.com>
3528
3529 * monitor.c (monitor_fetch_register): Make name a constant.
3530 (monitor_store_register): Same.
3531
3532 2002-07-11 Daniel Jacobowitz <drow@mvista.com>
3533
3534 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
3535 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
3536 (finish_block) For non-function blocks, hash the symbol table. For
3537 function blocks, mark the symbol table as unhashed.
3538 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
3539 (msymbol_hash_iw): Likewise.
3540 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
3541 value.
3542 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
3543 (lookup_minimal_symbol): Likewise for both.
3544 * symtab.h (struct block): Add `hashtable' flag. Comment the
3545 hashtable.
3546 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
3547 (ALL_BLOCK_SYMBOLS): Update.
3548 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
3549 (struct symbol): Add `hash_next' pointer.
3550 * symtab.c (lookup_block_symbol): Search using the hash table when
3551 possible.
3552 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
3553 (search_symbols, find_addr_symbol): Likewise.
3554
3555 * dstread.c (process_dst_block): Clear hashtable bit for new block.
3556 (read_dst_symtab): Likewise.
3557 * jv-lang.c (get_java_class_symtab): Likewise.
3558 * mdebugread.c: Include "gdb_assert.h".
3559 (shrink_block): Assert that the block being modified is not hashed.
3560 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
3561 * symmisc.c (free_symtab_block): Walk the hash table when freeing
3562 symbols.
3563 (dump_symtab): Recognize hashed blocks.
3564 * printcmd.c (print_frame_args): Assert that function blocks do not
3565 have hashed symbol tables.
3566 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
3567 (fill_in_ada_prototype, debug_print_block): Likewise.
3568 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
3569
3570 2002-07-11 Corinna Vinschen <vinschen@redhat.com>
3571
3572 * stack.c (print_frame): Use result of frame_address_in_block()
3573 instead of fi->pc when evaluating symbols.
3574 (backtrace_command_1): Ditto.
3575
3576 2002-07-11 Andrew Cagney <cagney@redhat.com>
3577
3578 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
3579 Make static.
3580
3581 * arm-tdep.c (arm_register_name): Make return type constant.
3582
3583 2002-07-10 Andrew Cagney <ac131313@redhat.com>
3584
3585 * win32-nat.c (has_detach_ability): Convert to strict ISO C
3586 prototype.
3587 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
3588 * s390-tdep.c (s390_fp_regnum): Ditto.
3589 (s390_read_fp): Ditto.
3590 (s390_pop_frame): Ditto.
3591 (_initialize_s390_tdep): Ditto.
3592 * remote.c (get_remote_state): Ditto.
3593 * procfs.c (mappingflags): Ditto.
3594 * memattr.c (_initialize_mem): Ditto.
3595 * mcore-tdep.c (mcore_pop_frame): Ditto.
3596 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
3597 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
3598 * language.c (set_case_str): Ditto.
3599 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
3600 * frv-tdep.c (new_variant): Ditto.
3601 (frv_stopped_data_address): Ditto.
3602 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
3603 (context_alloc): Ditto.
3604 (frame_state_alloc): Ditto.
3605 (unwind_tmp_obstack_init): Ditto.
3606 (unwind_tmp_obstack_free): Ditto.
3607 (cfi_read_fp): Ditto.
3608 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
3609 (cris_pop_frame): Ditto.
3610 * c-lang.c (scanning_macro_expansion): Ditto.
3611 (finished_macro_expansion): Ditto.
3612 (c_preprocess_and_parse): Ditto.
3613 * gdbarch.sh: Ditto.
3614 * gdbarch.h, gdbarch.c: Regenerate.
3615 * config/mn10200/tm-mn10200.h: Adjust indentation.
3616 * target.c: Adjust indentation.
3617 * symtab.h: Adjust indentation.
3618 * stabsread.h: Adjust indentation.
3619 * remote-es.c: Adjust indentation.
3620 * os9kread.c: Adjust indentation.
3621
3622 2002-07-10 Andrew Cagney <ac131313@redhat.com>
3623
3624 * wince.c (_initialize_wince): Rename _initialize_inftarg.
3625 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
3626
3627 2002-07-10 Grace Sainsbury <graces@redhat.com>
3628
3629 * NEWS: Mention m68k, mcore multi-arching.
3630 * MAINTAINERS: Change status of m68k, mcore to reflect
3631 multi-arching.
3632
3633 2002-07-10 Daniel Jacobowitz <drow@mvista.com>
3634
3635 * valops.c (find_overload_match): Free oload_syms.
3636
3637 2002-07-09 Joel Brobecker <brobecker@gnat.com>
3638
3639 Define HAVE_SYS_PROC_H if sys/proc.h exists
3640 * configure.in: Add check for sys/proc.h
3641 * config.in: Regenerate.
3642 * configure: Regenerate.
3643
3644 2002-07-09 Grace Sainsbury <graces@redhat.com>
3645
3646 * config/m68k/tm-m68k.h: Remove macros wrapped in
3647 #if !GDB_MULTI_ARCH.
3648
3649 2002-07-08 Andrew Cagney <ac131313@redhat.com>
3650
3651 * config.in, configure: Regenerate.
3652
3653 2002-07-08 Mark Kettenis <kettenis@gnu.org>
3654
3655 * dwarf2cfi.c: Include "gcore.h".
3656 (execute_stack_op): Fix implementation of the
3657 DW_OP_deref and DW_OP_deref_size operators by letting do their
3658 lookup in the target.
3659
3660 2002-07-07 Mark Kettenis <kettenis@gnu.org>
3661
3662 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
3663 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
3664 tdep->sc_sp_offset.
3665
3666 2002-07-05 Daniel Jacobowitz <drow@mvista.com>
3667
3668 Fix PR gdb/595, gdb/602
3669 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
3670 Don't call value_cast, just read the vtable pointer; update comments
3671 to match.
3672
3673 2002-07-05 Grace Sainsbury <graces@redhat.com>
3674
3675 * config/mcore/tm-mcore.h: Remove file.
3676 * config/mcore/mcore.mt: Remove definition of TM_FILE
3677 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
3678
3679 2002-07-05 Mark Kettenis <kettenis@gnu.org>
3680
3681 * i386bsd-tdep.c: Include "gdb_string.h".
3682
3683 2002-07-04 Grace Sainsbury <graces@redhat.com>
3684
3685 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
3686 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
3687 mcore-tdep.
3688 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
3689 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
3690 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
3691 (RETVAL_REGNUM): Move macros from tm-mcore.h
3692 (mcore_reg_struct_has_addr): New function.
3693 (mcore_gdbarch_init): Added initializations for the macros removed
3694 from tm-mcore.h.
3695
3696 2002-07-04 Mark Kettenis <kettenis@gnu.org>
3697
3698 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
3699 traditonal string branding within the ELF header.
3700
3701 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
3702
3703 * symtab.c (remove_params): New function.
3704 (make_symbol_overload_list): Use it instead of cplus_demangle.
3705 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
3706
3707 2002-07-04 Mark Kettenis <kettenis@gnu.org>
3708
3709 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
3710
3711 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
3712 New variables.
3713 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
3714 and tdep->sigtramp_end.
3715 * i386obsd-nat.c: New file.
3716 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
3717
3718 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
3719 Don't call get_current_frame().
3720
3721 2002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
3722
3723 * i386-nat.c (child_post_startup_inferior): New function
3724 calling i386_cleanup_dregs if
3725 I386_USE_GENERIC_WATCHPOINTS is defined.
3726 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
3727 conditional to acknowledge that i386-nat.c has its
3728 own child_post_startup_inferior function.
3729
3730 2002-07-04 Mark Kettenis <kettenis@gnu.org>
3731
3732 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
3733 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
3734 instead of MAX_REGISTER_RAW_SIZE.
3735 (i386_extract_return_value, i386_extract_struct_value_address):
3736 Convert to use regcache.
3737 (i386_gdbarch_init): Set max_register_raw_size and
3738 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
3739 Set extract_return_value and extract_struct_value_address instead
3740 of their deprecated variants.
3741
3742 Convert i386 target to generic dummy frames.
3743 * i386-tdep.c: Include "symfile.h".
3744 (i386_frameless_signal_p): Consider a function to be frameless if
3745 the pc points at the first instruction of the function.
3746 (i386_frame_chain): Handle (generic) call dummies.
3747 (i386_frame_saved_pc): Likewise.
3748 (i386_frame_init_saved_regs): Remove code dealing with call
3749 dummies on the stack.
3750 (i386_push_dummy_frame): Removed.
3751 (i386_call_dummy_words): Removed.
3752 (i386_fix_call_dummy): Removed.
3753 (i386_push_return_address): New function.
3754 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
3755 parameter, and don't call get_current_frame.
3756 (i386_pop_frame): New function.
3757 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
3758 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
3759 entry_point_address, set call_dummy_breakpoint_offset to 0, set
3760 call_dummy_length to 0, set call_dummy_words to NULL, set
3761 sizeof_call_dummy_words to 0, set fix_call_dummy to
3762 generic_fix_call_dummy, set pc_in_call_dummy to
3763 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
3764 generic_push_dummy_frame, set push_return_address to
3765 i386_push_return_address and set frame_chain_valid to
3766 generic_file_frame_chain_valid.
3767
3768 2002-07-03 Andrew Cagney <ac131313@redhat.com>
3769
3770 * gdbarch.sh (struct regcache): Add opaque declaration.
3771 (EXTRACT_RETURN_VALUE): New architecture method.
3772 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
3773 * gdbarch.h, gdbarch.c: Regenerate.
3774 * arch-utils.c (legacy_extract_return_value): New function.
3775 * arch-utils.h (legacy_extract_return_value): Declare.
3776 * values.c (value_being_returned): Re-enable code handling
3777 EXTRACT_STRUCT_VALUE_ADDRESS. Move
3778 deprecated_grub_regcache_for_registers call to block handling
3779 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
3780 (EXTRACT_RETURN_VALUE): Do not define.
3781
3782 2002-07-03 Grace Sainsbury <graces@redhat.com>
3783
3784 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
3785 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
3786 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
3787 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
3788 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
3789 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
3790 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
3791 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
3792 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
3793 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
3794 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
3795 argument so the function fits the prototype in the architecture
3796 vector.
3797 (mcore_pop_frame): Remove argument so the function fits the
3798 prototype. Use get_current_frame instead of the argument.
3799 (mcore_push_arguments): Change type of struct_return so the
3800 function can be used in the architecture vector.
3801 (mcore_store_struct_return): Add.
3802 (mcore_frame_init_saved_regs): Add.
3803 (mcore_gdbarch_init): Add function calls to replace the macros
3804 removed from tm-mcore.h
3805
3806 2002-07-03 Andrew Cagney <ac131313@redhat.com>
3807
3808 * infcmd.c (print_return_value): Remove compatibility code calling
3809 deprecated_grub_regcache_for_registers.
3810
3811 * values.c: Include "regcache.h".
3812 (value_being_returned): Update. Use
3813 deprecated_grub_regcache_for_registers to extract the register
3814 buffer address.
3815 * value.h (value_being_returned): Change ``retbuf'' parameter to a
3816 ``struct regcache''.
3817 * Makefile.in (values.o): Add dependency on $(regcache_h).
3818
3819 * inferior.h (run_stack_dummy): Change type of second parameter to
3820 a ``struct regcache''.
3821 * valops.c (hand_function_call): Change type of retbuf to ``struct
3822 regcache''. Allocate using regcache_xmalloc, clean using
3823 make_cleanup_regcache_xfree.
3824 * infcmd.c (run_stack_dummy): Update. Use
3825 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
3826
3827 * regcache.c (do_regcache_xfree): New function.
3828 (make_cleanup_regcache_xfree): New function.
3829 * regcache.h (make_cleanup_regcache_xfree): Declare.
3830
3831 2002-07-03 Martin M. Hunt <hunt@redhat.com>
3832
3833 * event-top.c (command_line_handler): Don't read past
3834 beginning of buffer.
3835
3836 2002-07-03 Martin M. Hunt <hunt@redhat.com>
3837
3838 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
3839 struct frame_id.
3840 (varobj_create): Store frame_id for root.
3841 (varobj_gen_name): Use xasprintf.
3842 (varobj_update): Save and restore frame using get_frame_id() and
3843 frame_find_by_id().
3844 (create_child): Use xasprintf.
3845 (new_root_variable): Initialize frame_id.
3846 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
3847 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
3848 to prevent memory leak.
3849
3850 2002-07-03 Andrew Cagney <ac131313@redhat.com>
3851
3852 * valops.c (hand_function_call): Move declaration of retbuf to
3853 start of function, allocate using malloc, add a cleanup but before
3854 the inf_status cleanup, cleanup the buffer. Rename local variable
3855 old_chain to inf_status_cleanup.
3856
3857 2002-07-03 Martin M. Hunt <hunt@redhat.com>
3858
3859 * top.c (execute_command): Use cmd_func() and cmd_func_p().
3860
3861 * cli/cli-decode.c (cmd_func_p): New function.
3862 (cmd_func): New function.
3863
3864 * command.h: Add cmd_func() and cmd_func_p().
3865
3866 2002-07-03 Grace Sainsbury <graces@redhat.com>
3867
3868 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
3869 (REGISTER_SIZE): Remove.
3870 (MAX_REGISTER_RAW_SIZE): Remove.
3871 (REGISTER_VIRTUAL_TYPE): Remove.
3872 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
3873 (REGISTER_NAME): Remove.
3874 (USE_GENERIC_DUMMY_FRAMES): Remove.
3875 (CALL_DUMMY): Remove.
3876 (CALL_DUMMY_START_OFFSET): Remove.
3877 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
3878 (CALL_DUMMY_LOCATION): Remove.
3879 (FIX_CALL_DUMMY): Remove.
3880 (CALL_DUMMY_ADDRESS): Remove.
3881 (SIZEOF_CALL_DUMMY_WORDS): Remove.
3882 (SAVE_DUMMY_FRAME_TOS): Remove.
3883 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
3884 (mcore_register_virtual_type): New function.
3885 (mcore_register_byte): New function.
3886 (mcore_register_size): New function.
3887 (mcore_register_name): New function.
3888 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
3889 macros removed from tm-mcore.h.
3890 (mcore_dump_tdep): Add.
3891 (_initialize_mcore_tdep): Add gdbarch_register call.
3892
3893 2002-07-03 Mark Kettenis <kettenis@gnu.org>
3894
3895 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
3896 frameless_look_for_prologue, such that we actually call this
3897 function.
3898
3899 2002-07-02 Joel Brobecker <brobecker@gnat.com>
3900
3901 * frame.h (frame_address_in_block): New function.
3902
3903 * blockframe.c (frame_address_in_block): New function extracted
3904 from get_frame_block().
3905 (get_frame_block): Use frame_address_in_block().
3906 (block_innermost_frame): Use frame_address_in_block() to match
3907 the frame pc address against the block boundaries rather than
3908 the frame pc directly. This prevents a failure when a frame pc
3909 is actually a return-address pointing immediately after the end
3910 of the given block.
3911
3912 2002-07-02 Grace Sainsbury <graces@redhat.com>
3913
3914 * MAINTAINERS: Add self under write after approval.
3915
3916 2002-07-02 Grace Sainsbury <graces@redhat.com>
3917
3918 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
3919 used in architecture vector. The default is
3920 m68k_local_breakpoint_from_pc.
3921 (m68k_local_breakpoint_from_pc): Add.
3922 (enum): Add register numbers from tm-m68k.h.
3923 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
3924 vector.
3925 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
3926 GDB_MULTI_ARCH_PARTIAL.
3927 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
3928 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
3929 m68k-tdep.c.
3930 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
3931 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
3932 to enum in m68k-tdep.c
3933
3934 2002-07-02 Joel Brobecker <brobecker@gnat.com>
3935
3936 * solib-osf.c (open_map): Compute the list of shared libraries
3937 loaded by the inferior, rather than the list of libraries loaded
3938 by GDB itself. Otherwise, GDB ends up reading the symbols from
3939 the wrong shared libraries...
3940
3941 2002-07-02 Mark Kettenis <kettenis@gnu.org>
3942
3943 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
3944 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
3945 macros.
3946 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
3947 Remove functions.
3948 (FRAMELESS_SIGNAL): Remove function.
3949 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
3950 i386_linux_saved_pc_after_call): Removed.
3951 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
3952 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
3953 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
3954
3955 * i386-tdep.c (i386_frameless_signal_p): New function.
3956 (i386_frame_chain): Deal with frameless signals.
3957 (i386_sigtramp_saved_sp): New function.
3958 (i386_frame_saved_pc): Deal with frameless signals.
3959 (i386_saved_pc_after_call): Make sure the correct value is
3960 returned just after entry into a sigtramp.
3961 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
3962 i386fbsd4_sc_sp_offset): New variables.
3963 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
3964 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
3965 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
3966 similiar to what we already did for sc_pc_offset.
3967 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
3968 tdep->sc_sp_offset.
3969
3970 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
3971
3972 2002-07-02 Michal Ludvig <mludvig@suse.cz>
3973
3974 * config/i386/tm-x86-64linux.h: New.
3975 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
3976 definitions.
3977 * config/i386/nm-x86-64.h: Rename to ...
3978 * config/i386/nm-x86-64linux.h: ... this one.
3979 * config/i386/x86-64linux.mh: Reflect the above change.
3980
3981 2002-07-01 Mark Kettenis <kettenis@gnu.org>
3982
3983 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
3984 with sigcontext_addr. Add sc_sp_offset.
3985 (i386bsd_sigtramp_saved_pc): Remove prototype.
3986 (i386bsd_sicontext_addr): Add prototype.
3987 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
3988 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
3989 (i386_svr4_sigtramp_saved_pc): Removed.
3990 (i386_svr4_sigcontext_addr): New function.
3991 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
3992 Initialize tdep->sigcontext_addr instead. Initialize
3993 tdep->sc_pc_offset and tdep->sc_sp_offset.
3994 (i386_gdbarch_init): Likewise.
3995 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
3996 any more.
3997 (i386bsd_sigtramp_saved_pc): Remove function.
3998 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
3999 Initialize tdep->sigcontext_addr instead. Initialize
4000 tdep->sc_pc_offset.
4001 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
4002 of tdep->sigtramp_saved_pc.
4003 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
4004 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
4005 instead.
4006
4007 * i386-tdep.c (i386_frameless_function_invocation,
4008 i386_frame_num_args, i386_frame_init_saved_regs,
4009 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
4010 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
4011 i386_extract_return_value, i386_store_return_value,
4012 i386_extract_struct_value_address, i386_register_virtual_type,
4013 i386_register_convertible, i386_register_convert_to_virtual,
4014 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
4015 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
4016 static.
4017
4018 2002-07-01 Mark Kettenis <kettenis@gnu.org>
4019
4020 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
4021
4022 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
4023 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
4024 this macro. Include "value.h".
4025
4026 2002-06-30 Aidan Skinner <aidan@velvet.net>
4027
4028 * ada-exp.tab.c: remove as it's a generated file
4029 * ada-lex.c: remove as it's a generated file
4030
4031 2002-06-30 Mark Kettenis <kettenis@gnu.org>
4032
4033 * config/i386/tm-i386.h (struct frame_info, struct
4034 frame_saved_regs, struct value, struct type): Remove forward
4035 declarations.
4036
4037 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
4038 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
4039 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
4040 (FILL_FPXREGSET): Define.
4041
4042 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
4043
4044 * configure.tgt (i[3456]86-*-openbsd*): Fold into
4045 i[3456]86-*-netbsd* case.
4046 * config/i386/tm-obsd.h: Removed.
4047 * config/i386/obsd.mt: Removed.
4048 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
4049 core-aout.o.
4050 (MH_CFLAGS): Add -DYYDEBUG=0.
4051
4052 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
4053 i386nbsd_sc_pc_offset on OpenBSD too.
4054
4055 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
4056 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
4057 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
4058 define.
4059 * i386bsd-tdep.c: Include "arch-utils.h".
4060 (i386bsd_aout_in_solib_call_trampoline): New function.
4061 (i386bsd_init_abi): Set in_solib_call_trampoline to
4062 i386bsd_aout_in_solib_call_trampoline.
4063 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
4064 in_solib_call_trampoline to generic_in_solib_call_trampoline.
4065
4066 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4067
4068 * macrotab.h: Do not include "obstack.h" or "bcache.h".
4069 (struct obstack, struct bcache): Add opaque declarations.
4070 * Makefile.in (macrotab_h): Update
4071
4072 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4073
4074 * blockframe.c (generic_find_dummy_frame): Change return type to
4075 ``struct regcache''.
4076 (struct dummy_frame): Replace field ``registers'' with regcache, a
4077 struct regcache object.
4078 (generic_find_dummy_frame): Update.
4079 (generic_push_dummy_frame): Update. Use regcache_xfree,
4080 regcache_xmalloc and regcache_cpy.
4081 (generic_pop_dummy_frame): Update. Use regcache_cpy and
4082 regcache_xfree.
4083 (deprecated_generic_find_dummy_frame): Update.
4084 (generic_read_register_dummy): Update. Use
4085 regcache_read_as_address.
4086 (generic_call_dummy_register_unwind): Update. Use regcache_read.
4087 (generic_get_saved_register): Update. Use regcache_read.
4088
4089 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4090
4091 * Makefile.in (objfiles_h): Add $(bcache_h).
4092 * objfiles.h: Include "bcache.h".
4093
4094 * Makefile.in (symtab_h): Remove $(bcache_h).
4095 * symtab.h: Do not include "bcache.h".
4096
4097 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4098
4099 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
4100 generic_func_frame_chain_valid.
4101
4102 2002-06-28 David O'Brien <obrien@FreeBSD.org>
4103
4104 * config/i386/nm-fbsd.h: Include <sys/param.h>.
4105 * config/i386/tm-fbsd.h: Likewise.
4106
4107 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4108
4109 * rs6000-tdep.c (rs6000_gdbarch_init): Use
4110 generic_unwind_get_saved_register.
4111
4112 2002-06-27 Andrew Cagney <ac131313@redhat.com>
4113
4114 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
4115 * regcache.c (supply_register): Add missing argument to
4116 register_buffer call.
4117
4118 2002-06-27 Andrew Cagney <ac131313@redhat.com>
4119
4120 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
4121 Solaris /bin/grep does not not like it. From Peter Schauer.
4122
4123 2002-06-26 Tom Tromey <tromey@redhat.com>
4124
4125 * command.h (add_setshow_cmd): Declare.
4126 (add_setshow_cmd_full): Declare.
4127 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
4128 returns void. Use add_setshow_cmd_full.
4129 (add_setshow_cmd_full): New function.
4130 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
4131 (add_setshow_boolean_cmd): Likewise.
4132
4133 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4134
4135 * config/vax/tm-vax.h: Protect from multiple inclusion.
4136 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
4137 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
4138 * config/vax/tm-vaxbsd.h: ...here. New file.
4139 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
4140
4141 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4142
4143 * config/vax/tm-vax.h (BREAKPOINT): Remove.
4144 (BELIEVE_PCC_PROMOTION): Remove.
4145 (AP_REGNUM): Move to...
4146 * config/vax/nm-vax.h: ...here.
4147 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
4148 (vax_breakpoint_from_pc): New function.
4149 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
4150 and gdbarch_believe_pcc_promotion.
4151
4152 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4153
4154 * Makefile.in (vax_tdep_h): Define.
4155 (vax-tdep.o): Use $(vax_tdep_h).
4156 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
4157 (vax_dump_tdep): New function.
4158 (_initialize_vax_tdep): Register vax_dump_tdep.
4159 * vax-tdep.h: Include osabi.h.
4160 (struct gdbarch_tdep): New.
4161
4162 2002-06-26 Andrew Cagney <cagney@redhat.com>
4163
4164 * frame.h (deprecated_generic_find_dummy_frame): Rename
4165 generic_find_dummy_frame.
4166 * blockframe.c (generic_find_dummy_frame): Make static.
4167 (deprecated_generic_find_dummy_frame): New function.
4168 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
4169 generic_find_dummy_frame with deprecated_find_dummy_frame.
4170 (sh64_nofp_frame_init_saved_regs): Ditto.
4171 (sh_fp_frame_init_saved_regs): Ditto.
4172 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
4173 (s390_frame_chain): Ditto.
4174 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
4175
4176 2002-06-26 Grace Sainsbury <graces@redhat.com>
4177
4178 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
4179 gdbarch vector are at the top.
4180 (NUM_REGS): Remove.
4181 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
4182 (FRAME_ARGS_ADDRESS): Remove.
4183 (FRAME_LOCALS_ADDRESS): Remove.
4184 (FRAME_NUM_ARGS): Remove.
4185 (FRAME_ARGS_SKIP): Remove.
4186 * m68k-tdep.c (enum): Add eumeration of special register numbers.
4187 (m68k_gdbarch_init): Add gdbarch initializations for macros
4188 undefined in tm-m68k.h
4189
4190 2002-06-26 Grace Sainsbury <graces@redhat.com>
4191
4192 * monitor.h: Add the function regname to monitor_ops
4193 structure. This way NUM_REGS does not have to be a constant.
4194 * monitor.c (monitor_fetch_register): Added support for regname
4195 function. The function is called if the array regnames is NULL.
4196 (monitor_store_register): Same.
4197 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
4198 regnames array.
4199 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
4200 cpu32bug_cmds.regname to point to new function.
4201 * abug-rom.c (abug_regname): Same as above.
4202 (init_abug_cmds): Same.
4203 * dbug-rom.c (dbug_regname): Same as above.
4204 (init_dbug_cmds): Same.
4205 * remote-est.c (est_regname): Same.
4206 (init_est_cmds): Same.
4207 * rom68k-rom.c (rom68k_regname): Same.
4208 (init_rom68k_cmds): Same.
4209
4210 2002-06-25 Tom Tromey <tromey@redhat.com>
4211
4212 * breakpoint.c (delete_command): Don't repeat `delete' commands.
4213
4214 2002-06-25 Andrew Cagney <cagney@redhat.com>
4215
4216 * infrun.c (stop_registers): Change variable's type to ``struct
4217 regcache'''.
4218 (xmalloc_inferior_status): Delete function.
4219 (free_inferior_status): Delete function.
4220 (normal_stop): Use regcache_cpy.
4221 (struct inferior_status): Change type of fields ``stop_registers''
4222 and ``registers'' to ``struct regcache''.
4223 (write_inferior_status_register): Use regcache_write.
4224 (save_inferior_status): Instead of calling
4225 xmalloc_inferior_status, allocate the inf_status buffer directly.
4226 Use regcache_dup_no_passthrough and regcache_dup to save the
4227 buffers.
4228 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
4229 Replace the stop_registers regcache instead of overriding it. Use
4230 regcache_xfree. Instead of calling free_inferior_status, xfree
4231 the buffer directly.
4232 (discard_inferior_status): Use regcache_xfree. Instead of calling
4233 free_inferior_status, xfree the buffer directly.
4234 (build_infrun): Use regcache_xmalloc.
4235 (_initialize_infrun): Delete redundant call to build_infrun.
4236
4237 * Makefile.in (infcmd.o): Add $(regcache_h).
4238
4239 * infcmd.c: Include "regcache.h".
4240 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
4241 obtain the address of `stop_registers' register buffer.
4242 (print_return_value): Ditto.
4243
4244 * inferior.h (struct regcache): Add opaque declaration.
4245 (stop_registers): Change variable's declared type to ``struct
4246 regcache''.
4247
4248 2002-06-24 Tom Tromey <tromey@redhat.com>
4249
4250 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
4251 * target.c (initialize_targets): Fixed typo in
4252 trust-readonly-sections `show' documentation.
4253
4254 * main.c: Marked all strings with _().
4255
4256 2002-06-24 Don Howard <dhoward@redhat.com>
4257
4258 * memattr.c (create_mem_region): Treat hi == 0 as a special case
4259 that means max CORE_ADDR+1.
4260 (lookup_mem_region): Ditto.
4261 (mem_info_command): Ditto.
4262
4263 2002-06-24 Grace Sainsbury <graces@redhat.com>
4264
4265 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
4266 (REGISTER_BYTES_OK): Remove.
4267 (REGISTER_BYTES): Remove.
4268 (STORE_STRUCT_RETURN): Remove.
4269 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
4270 (STORE_RETURN_VALUE): Remove.
4271 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
4272 (FRAME_CHAIN): Remove.
4273 (FRAMELESS_FUNCTION_INVOCATION): Remove.
4274 (FRAME_SAVED_PC): Remove.
4275 * m68k-tdep.c (m68k_register_bytes_ok):Add.
4276 (m68k_store_struct_return): Add.
4277 (m68k_deprecated_extract_return_value): Add.
4278 (m68k_deprecated_extract_struct_value_address): Add.
4279 (m68k_store_return_value): Add.
4280 (m68k_frame_chain): Add.
4281 (m68k_frameless_function_invocation): Add.
4282 (m68k_frame_saved_pc): Add.
4283 (m68k_gdbarch_init): added set_gdbarch calls for new
4284 functions and deleted macros.
4285
4286 2002-06-23 Tom Tromey <tromey@redhat.com>
4287
4288 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
4289 (ALLDEPFILES): Likewise.
4290 (udiheaders): Removed.
4291 (udip2soc.o): Likewise.
4292 (udi2go32.o): Likewise.
4293 (udr.o): Likewise.
4294 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
4295
4296 2002-06-22 Andrew Cagney <ac131313@redhat.com>
4297
4298 * infrun.c (_initialize_infrun): Delete unnecessary call to
4299 build_infrun.
4300
4301 * regcache.h: Update comments describing the regcache_cpy family
4302 of functions.
4303 (regcache_save, regcache_restore): Delete declaration.
4304 (regcache_save_no_passthrough): Delete declaration.
4305 (regcache_restore_no_passthrough): Delete declaration.
4306 * regcache.c (regcache_save): Delete function.
4307 (regcache_save_no_passthrough): Delete function.
4308 (regcache_restore): Delete function.
4309 (regcache_restore_no_passthrough): Delete function.
4310
4311 2002-06-21 Andrew Cagney <ac131313@redhat.com>
4312
4313 * config/m68k/tm-m68k.h: Fix typo.
4314 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
4315 (m68k_frame_init_saved_regs): Declare.
4316
4317 2002-06-21 Jim Blandy <jimb@redhat.com>
4318
4319 Remove some vestiges of Harris 88k support.
4320 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
4321 register numbering quirk.
4322 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
4323 odd symbols occurring in Harris 88k ELF targets.
4324
4325 2002-06-21 Tom Tromey <tromey@redhat.com>
4326
4327 * gdb_locale.h: New file.
4328 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
4329 (defs_h): Added gdb_locale.h.
4330 * configure, config.in: Rebuilt.
4331 * configure.in (PACKAGE): Define.
4332 * defs.h: Include gdb_locale.h.
4333 * main.c (captured_main): Call setlocale, bindtextdomain,
4334 textdomain.
4335
4336 2002-06-21 Dave Brolley <brolley@redhat.com>
4337
4338 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
4339 * config/frv/frv.mt: New file.
4340 * config/frv/tm-frv.h: New file.
4341 * configure.tgt: Support frv-*-*.
4342 * Makefile.in (frv-tdep.o): New target.
4343 * frv-tdep.c: New file.
4344 * NEWS: Mention frv.
4345
4346 2002-06-21 Dave Brolley <brolley@redhat.com>
4347
4348 * MAINTAINERS: Add self to "Write After Approval" list.
4349
4350 2002-06-21 Grace Sainsbury <graces@redhat.com>
4351
4352 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
4353 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
4354 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
4355 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
4356 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
4357
4358 * m68k-tdep.c: Include arch-utils.h
4359 (m68k_register_raw_size): Add.
4360 (m68k_register_virtual_size): Add.
4361 (m68k_register_virtual_type): Add.
4362 (m68k_register_name): Add.
4363 (m68k_stack_align): Add.
4364 (m68k_register_byte): Add.
4365 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
4366 tm-m68k.h.
4367
4368 2002-06-21 Grace Sainsbury <graces@redhat.com>
4369
4370 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
4371 m68k_find_saved_regs.
4372 (m68k_pop_frame): Removed saved_regs structure, and replaced
4373 references to it with frame->saved_regs.
4374 (m68k_gdbarch_init): Added function calls to initialize the
4375 gdbarch structure.
4376 (m68k_fix_call_dummy): Add.
4377 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
4378 (CALL_DUMMY): Remove.
4379 (CALL_DUMMY_LENGTH): Remove.
4380 (CALL_DUMMY_START_OFFSET): Remove.
4381 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
4382 (FIX_CALL_DUMMY): Remove.
4383 (PUSH_DUMMY_FRAME): Remove.
4384 (POP_FRAME): Remove.
4385
4386 2002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
4387
4388 * parse.c (parse_fprintf): New function used to avoid calls to
4389 fprintf in bison parser generated debug code.
4390 * parser-defs.h: Declaration of new parse_fprintf function.
4391 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
4392 Set YYDEBUG to 1 by default.
4393 Set YYFPRINTF as parse_fprintf.
4394
4395 2002-06-21 Michal Ludvig <mludvig@suse.cz>
4396
4397 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
4398 encoding anymore.
4399 (pointer_encoding, enum ptr_encoding): New.
4400 (execute_cfa_program): Take care about pointer encoding.
4401 (dwarf2_build_frame_info): Only call parse_frame_info for
4402 .debug_frame and .eh_frame.
4403 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
4404 fixed augmentation handling, added relative addressing,
4405 ignore duplicate FDEs. Added comments.
4406 * dwarf2cfi.c: Reindented.
4407
4408 2002-06-20 Elena Zannoni <ezannoni@redhat.com>
4409
4410 * event-top.c (command_handler): Don't use space_at_cmd_start
4411 unless there is sbrk() on the host. Assign time and space data
4412 to union fields of the appropriate length.
4413
4414 2002-06-20 Michal Ludvig <mludvig@suse.cz>
4415
4416 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
4417 x86_64_register_name. Return type changed to 'const char *'.
4418 (x86_64_register_name2nr): Rename to x86_64_register_number.
4419 (x86_64_gdbarch_init): Update to reflect the change.
4420 * x86-64-tdep.h: Ditto.
4421 * x86-64-linux-nat.c (x86_64_fxsave_offset)
4422 (supply_fpregset): Ditto.
4423
4424 2002-06-19 Andrew Cagney <cagney@redhat.com>
4425
4426 * regcache.h: Update copyright.
4427 (struct regcache, struct gdbarch): Add opaque declarations.
4428 (current_regcache): Declare global variable.
4429 (regcache_read, regcache_write): Add gdbarch parameter.
4430 (regcache_save, regcache_save_no_passthrough)
4431 (regcache_restore, regcache_restore_no_passthrough)
4432 (regcache_dup, regcache_dup_no_passthrough)
4433 (regcache_cpy, regcache_cpy_no_passthrough)
4434 (deprecated_grub_regcache_for_registers)
4435 (deprecated_grub_regcache_for_register_valid)
4436 (regcache_valid_p): Add function declarations.
4437
4438 * regcache.c: Update copyright.
4439 (regcache_descr_handle): New global variable.
4440 (struct regcache_descr): Define.
4441 (init_legacy_regcache_descr, init_regcache_descr): New functions.
4442 (regcache_descr, xfree_regcache_descr): New functions.
4443 (struct regcache): Define.
4444 (regcache_xmalloc, regcache_xfree): New functions.
4445 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
4446 (regcache_dup, regcache_dup_no_passthrough): New functions.
4447 (regcache_valid_p, regcache_read_as_address): New functions.
4448 (deprecated_grub_regcache_for_registers): New function.
4449 (deprecated_grub_regcache_for_register_valid): New function.
4450 (current_regcache): New global variable.
4451 (register_buffer): Add regcache parameter. Update calls.
4452 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
4453 (read_register_gen, write_register_gen): Update register_buffer
4454 call. Test for legacy_p instead of gdbarch_register_read_p or
4455 gdbarch_register_write_p.
4456 (regcache_collect): Update register_buffer call.
4457 (build_regcache): Rewrite. Use deprecated grub functions.
4458 (regcache_save, regcache_save_no_passthrough): New functions.
4459 (regcache_restore, regcache_restore_no_passthrough): New
4460 functions.
4461 (_initialize_regcache): Create the regcache_data_handle. Swap
4462 current_regcache global variable.
4463
4464 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
4465 parameter to regcache_read and regcache_write calls.
4466 (sh4_register_read): Ditto.
4467 (sh64_pseudo_register_read): Ditto.
4468 (sh64_register_read): Ditto.
4469 (sh_pseudo_register_write): Ditto.
4470 (sh4_register_write): Ditto.
4471 (sh64_pseudo_register_write): Ditto.
4472 (sh64_register_write): Ditto.
4473
4474 * defs.h (XCALLOC): Define.
4475
4476 2002-06-19 Grace Sainsbury <graces@redhat.com>
4477
4478 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
4479 * m68k-tdep.c (m68k_gdbarch_init): Added.
4480 (m68k_dump_tdep): Added.
4481
4482 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
4483
4484 * ada-lang.c (fill_in_ada_prototype): Update comment.
4485
4486 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
4487
4488 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
4489 MIPS_ABI_LAST.
4490 (mips_abi_string, mips_abi_strings): New.
4491 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
4492 (mips_gdbarch_init): Set tdep->found_abi. Don't set
4493 tdep->mips_abi_string. Honor mips_abi_string. Default to
4494 O32 if no ABI is found.
4495 (mips_dump_tdep): Use mips_abi_strings.
4496 (mips_abi_update): New function.
4497 (_initialize_mips_tdep): Initialize mips_abi_string. Add
4498 ``set mips abi'' and ``show mips abi''. Check the size of
4499 mips_abi_strings.
4500
4501 2002-06-19 Andrew Cagney <cagney@redhat.com>
4502
4503 * i386-linux-tdep.c (i386_linux_register_name): Make return type
4504 constant.
4505
4506 2002-06-18 Joel Brobecker <brobecker@gnat.com>
4507
4508 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
4509 current frame using only the first stack size adjustment. All
4510 subsequent size adjustments are not considered to be part of
4511 the "static" part of the current frame.
4512 Compute the address of the saved registers relative to the
4513 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
4514 in use in this frame.
4515
4516 2002-06-18 Don Howard <dhoward@redhat.com>
4517
4518 * valops.c (value_ind): Use value_at_lazy() when dereferencing
4519 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
4520 suggesting this solution.
4521
4522 2002-06-18 Andrew Cagney <ac131313@redhat.com>
4523
4524 * config/romp/xm-rtbsd.h: Delete file.
4525 * config/romp/rtbsd.mh: Delete file.
4526
4527 2002-06-18 Keith Seitz <keiths@redhat.com>
4528
4529 * breakpoint.c (condition_command): Post breakpoint_modify
4530 when a condition is added to an existing breakpoint.
4531 (commands_command): Likewise for commands.
4532 (set_ignore_count): Likewise for ignore counts.
4533 If no tty, do not simply return, still need to send event
4534 notification.
4535 (ignore_command): Only print a newline if the command came
4536 from a tty.
4537 Don't call breakpoints_changed, since this is now properly
4538 handled by set_ignore_count.
4539
4540 2002-06-18 Andrew Cagney <cagney@redhat.com>
4541
4542 * MAINTAINERS: Note that cris-elf target can be compiled with
4543 -Werror.
4544 * cris-tdep.c (cris_register_name): Make return type constant.
4545 (cris_breakpoint_from_pc): Ditto.
4546
4547 2002-06-18 Michal Ludvig <mludvig@suse.cz>
4548
4549 * frame.h (struct frame_info): Change type of context to
4550 'struct context'.
4551
4552 2002-06-17 Andrew Cagney <cagney@redhat.com>
4553
4554 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
4555 pointer.
4556 * gdbarch.h, gdbarch.c: Regenerate.
4557 * config/mips/tm-mips.h (mips_register_name): Update.
4558 * i386-tdep.h (i386_register_name): Update.
4559 * mips-tdep.c (mips_register_name): Update
4560 * alpha-tdep.c (alpha_register_name): Update.
4561 * arch-utils.c (legacy_register_name): Update.
4562 * arch-utils.h (legacy_register_name): Update.
4563 * avr-tdep.c (avr_register_name): Update.
4564 * ia64-tdep.c (ia64_register_name): Update.
4565 * i386-tdep.c (i386_register_name): Update.
4566 * sparc-tdep.c (sparc32_register_name): Update.
4567 (sparc64_register_name): Update.
4568 (sparclite_register_name): Update.
4569 (sparclet_register_name): Update.
4570 * sh-tdep.c (sh_generic_register_name): Update.
4571 (sh_sh_register_name): Update.
4572 (sh_sh3_register_name): Update.
4573 (sh_sh3e_register_name): Update.
4574 (sh_sh_dsp_register_name): Update.
4575 (sh_sh3_dsp_register_name): Update.
4576 (sh_sh4_register_name): Update.
4577 (sh_sh64_register_name): Update.
4578 * s390-tdep.c (s390_register_name): Update.
4579 * rs6000-tdep.c (rs6000_register_name): Update.
4580 * ns32k-tdep.c (ns32k_register_name_32082): Update.
4581 (ns32k_register_name_32382): Update.
4582 * d10v-tdep.c (d10v_ts2_register_name): Update.
4583 (d10v_ts3_register_name): Update.
4584 * xstormy16-tdep.c (xstormy16_register_name): Update.
4585 * vax-tdep.c (vax_register_name): Update.
4586 * v850-tdep.c (v850_register_name): Update.
4587 * m68hc11-tdep.c (m68hc11_register_name): Update.
4588 * mn10300-tdep.c (mn10300_generic_register_name): Update.
4589 (am33_register_name): Update.
4590
4591 2002-06-17 Grace Sainsbury <graces@redhat.com>
4592
4593 * m68k-tdep.c: Reindented.
4594
4595 2002-06-17 Andrew Cagney <ac131313@redhat.com>
4596
4597 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
4598 list of predefined types.
4599
4600 2002-06-16 Mark Kettenis <kettenis@gnu.org>
4601
4602 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
4603 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
4604 REGISTER_CONVERT_TO_RAW): Remove defines.
4605 (i386_register_virtual_type, i386_register_convertible,
4606 i386_register_convert_to_virtual, i386_register_convert_to_raw):
4607 Remove prototypes.
4608 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4609 macros mentioned above.
4610
4611 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
4612 (i386lynx_saved_pc_after_call): Remove prototype.
4613 * i386ly-tdep.c: Include "i386-tdep.h".
4614 (i386lynx_saved_pc_after_call): Make static. Use
4615 read_memory_nobpt instead of read_memory. Use
4616 read_memory_unsigned_integer instead of read_memory_integer.
4617 (i386lynx_init_abi): New function.
4618 (i386lynx_coff_osabi_sniffer): New function.
4619 (_initialize_i386bsd_tdep): New function.
4620
4621 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
4622 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
4623 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
4624 (i386_fix_call_dummy): Remove prototype.
4625 * i386-tdep.c (i386_call_dummy_words): New variable.
4626 (i386_gdbarch_init): Adjust for removal of the
4627 macros mentioned above.
4628
4629 2002-06-15 Andrew Cagney <ac131313@redhat.com>
4630
4631 * command.h (add_setshow_auto_boolean_cmd): Replace
4632 add_set_auto_boolean_cmd.
4633 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
4634 add_set_auto_boolean_cmd.
4635 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
4636 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
4637 mask-address'' command.
4638 (show_mask_address): Add cmd parameter.
4639 * remote.c (add_packet_config_cmd): Update. Change type of
4640 set_func and show_func to cmd_sfunc_ftype.
4641 (_initialize_remote): Update `set remote Z-packet'
4642 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
4643 (show_remote_protocol_e_packet_cmd): Ditto.
4644 (show_remote_protocol_E_packet_cmd): Ditto.
4645 (show_remote_protocol_P_packet_cmd): Ditto.
4646 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
4647 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
4648 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
4649 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
4650 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
4651 (show_remote_protocol_Z_packet_cmd): Ditto.
4652 (show_remote_protocol_binary_download_cmd): Ditto.
4653 (show_remote_cmd): Pass NULL to all of above.
4654
4655 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4656
4657 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
4658 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
4659 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
4660 POP_FRAME): Remove defines.
4661 (i386_push_arguments, i386_store_struct_return,
4662 i386_extract_return_value, i386_store_return_value,
4663 i386_extract_struct_value_address, i386_push_dummy_frame,
4664 i386_pop_frame): Renove prototypes.
4665 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4666 macros mentioned above.
4667
4668 2002-06-15 Andrew Cagney <ac131313@redhat.com>
4669
4670 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
4671 add_set_boolean_cmd.
4672 (add_setshow_cmd): New function.
4673 * command.h (add_setshow_boolean_cmd): Replace
4674 add_set_boolean_cmd.
4675 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
4676 and ``set rdiromatzero''.
4677 * maint.c (_initialize_maint_cmds): Update commented out code.
4678 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
4679 * target.c (initialize_targets): Update `set
4680 trust-readonly-sections'.
4681 * remote.c (_initialize_remote): Update `set remotebreak'.
4682
4683 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4684
4685 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
4686 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
4687 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
4688 fit into multi-arch framework.
4689 (i386_breakpoint_from_pc): New function.
4690 (i386_gdbarch_init): Adjust for removal of the macros mentioned
4691 above.
4692
4693 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
4694 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
4695 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
4696 (i386_frameless_function_invocation, i386_frame_num_args,
4697 i386_frame_init_saved_regs): Remove prototypes.
4698 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4699 macros mentioned above.
4700
4701 2002-06-15 Andrew Cagney <ac131313@redhat.com>
4702
4703 * cli/cli-decode.c (set_cmd_cfunc): Update.
4704 (set_cmd_sfunc): Update.
4705 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
4706 (set_cmd_sfunc, set_cmd_cfunc): Update.
4707 * cli/cli-decode.h: Update.
4708
4709 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4710
4711 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
4712 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
4713
4714 2002-06-15 Andrew Cagney <ac131313@redhat.com>
4715
4716 * defs.h (auto_boolean): Declare enum.
4717 * command.h (cmd_auto_boolean): Delete enum.
4718 * mips-tdep.c (mask_address_var): Update.
4719 (mips_mask_address_p): Update.
4720 (show_mask_address): Update.
4721 * remote.c (struct packet_config): Update.
4722 (update_packet_config): Update.
4723 (show_packet_config_cmd): Update.
4724 (packet_ok): Update.
4725 (add_packet_config_cmd): Update.
4726 (_initialize_remote):
4727 * command.h: Update.
4728 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
4729 (do_setshow_command): Update.
4730 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
4731 * cli/cli-decode.h: Update.
4732
4733 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4734
4735 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
4736 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
4737 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
4738 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
4739 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
4740 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
4741
4742 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
4743 list of DJGPP COFF targets.
4744
4745 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
4746 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
4747 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
4748 (FP0_REGNUM): Remove define.
4749 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
4750 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
4751 (i386_register_virtual_size): Remove protoype.
4752 * i386-tdep.c (i386_register_virtual_size): Removed.
4753 (i386_extract_return_value, i386_store_return_value): Use
4754 FP0_REGNUM instead of NUM_FREGS to determine whether the
4755 floating-point registers are available.
4756 (i386_gdbarch_init): Tweak FIXME about FPU registers.
4757 Adjust for removal of macros mentioned above.
4758
4759 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4760
4761 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
4762 comments.
4763 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
4764 Remove prototypes.
4765 (supply_gregset, fill_gregset): Remove use of register keyword and
4766 remove declaration for regmap. Use I386_NUM_GREGS instead of
4767 NUM_REGS and NUM_FREGS.
4768 (FPREGSET_FSAVE_OFFSET): Remove.
4769 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
4770 NUM_FREGS to determine whether the floating-point registers are
4771 available.
4772
4773 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
4774 gnu_store_registers): Replace usage of NUM_GREGS with
4775 I386_NUM_GREGS.
4776
4777 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
4778 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
4779 usage of NUM_GREGS with I386_NUM_GREGS.
4780
4781 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
4782
4783 * i386bsd-nat.c: Include "i386-tdep.h".
4784 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
4785 I386_NUM_GREGS.
4786
4787 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
4788 and associated comment. They no longer make any sense, since we
4789 don't use this file anymore on Linux.
4790
4791 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
4792 * i386-tdep.c (i386_register_offset, i386_register_size): Use
4793 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
4794 elements in these arrays.
4795 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
4796 MAX_NUM_REGS.
4797
4798 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4799
4800 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
4801 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
4802
4803 2002-06-14 Andrew Cagney <cagney@redhat.com>
4804
4805 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
4806 EXTRACT_RETURN_VALUE.
4807 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
4808 EXTRACT_STRUCT_VALUE_ADDRESS.
4809 * gdbarch.h, gdbarch.c: Regenerate.
4810
4811 * values.c (value_being_returned): Handle
4812 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
4813 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
4814
4815 * arm-linux-tdep.c (arm_linux_init_abi): Update.
4816 * arm-tdep.c (arm_gdbarch_init): Update.
4817 * avr-tdep.c (avr_gdbarch_init): Update.
4818 * cris-tdep.c (cris_gdbarch_init): Update.
4819 * d10v-tdep.c (d10v_gdbarch_init): Update.
4820 * ia64-tdep.c (ia64_gdbarch_init): Update.
4821 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4822 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4823 * s390-tdep.c (s390_gdbarch_init): Update.
4824 * sh-tdep.c (sh_gdbarch_init): Update.
4825 * s390-tdep.c (s390_gdbarch_init): Update.
4826 * sparc-tdep.c (sparc_gdbarch_init): Update.
4827 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4828 * v850-tdep.c (v850_gdbarch_init): Update.
4829 * vax-tdep.c (vax_gdbarch_init): Update.
4830 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
4831 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4832
4833 * config/arc/tm-arc.h: Update.
4834 * config/d30v/tm-d30v.h: Update.
4835 * config/fr30/tm-fr30.h: Update.
4836 * config/h8300/tm-h8300.h: Update.
4837 * config/h8500/tm-h8500.h: Update.
4838 * config/i386/tm-i386.h: Update.
4839 * config/i386/tm-ptx.h: Update.
4840 * config/i386/tm-symmetry.h: Update.
4841 * config/i960/tm-i960.h: Update.
4842 * config/m32r/tm-m32r.h: Update.
4843 * config/m68k/tm-delta68.h: Update.
4844 * config/m68k/tm-linux.h: Update.
4845 * config/m68k/tm-m68k.h: Update.
4846 * config/m88k/tm-m88k.h: Update.
4847 * config/mcore/tm-mcore.h: Update.
4848 * config/mips/tm-mips.h: Update.
4849 * config/mn10200/tm-mn10200.h: Update.
4850 * config/pa/tm-hppa.h: Update.
4851 * config/pa/tm-hppa64.h: Update.
4852 * config/sparc/tm-sp64.h: Update.
4853 * config/sparc/tm-sparc.h: Update.
4854 * config/sparc/tm-sparclet.h: Update.
4855 * config/z8k/tm-z8k.h: Update.
4856
4857 2002-06-14 Andrew Cagney <cagney@redhat.com>
4858
4859 * Makefile.in (i386_linux_tdep_h): Define.
4860 (i386_tdep_h, i387_tdep_h): Define.
4861 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
4862 $(i386_tdep_h) and $(i387_tdep_h).
4863 * i386-linux-nat.c: Include "i386-linux-tdep.h".
4864
4865 2002-06-14 Mark Kettenis <kettenis@gnu.org>
4866
4867 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
4868 Already covered by the default.
4869
4870 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
4871 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
4872 (i386_gdbarch_init): Initialize long_double_format and long_double
4873 bit.
4874
4875 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
4876 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
4877 Move these to ...
4878 * config/i386/i386sol2.mh: ... here.
4879 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
4880 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
4881 (SIGCONTEXT_PC_OFFSET): Remove define.
4882 (IN_SIGTRAMP): Remove define.
4883 * i386-sol2-tdep.c: New file.
4884
4885 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
4886 * config/i386/tm-i386nw.h: Removed.
4887
4888 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
4889 USE_STRUCT_CONVENTION): Remove defines.
4890 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
4891 (get_longjmp_target): Remove prototype.
4892 (IN_SIGTRAMP): Remove define.
4893 (i386bsd_in_sigtramp): Remove prototype.
4894 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
4895 function. Update comment accordingly
4896 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
4897 (FRAME_SAVED_PC): Remove define.
4898 (i386bsd_frame_saved_pc): Remove prototype.
4899 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
4900 GET_LONGJMP_TARGET): Remove defines.
4901 (get_longjmp_target): Remove prototype.
4902 (IN_SIGTRAMP): Remove define.
4903 (i386bsd_in_sigtramp): Remove prototype.
4904 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
4905 function. Update comment accordingly
4906 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
4907 (FRAME_SAVED_PC): Remove define.
4908 (i386bsd_frame_saved_pc): Remove prototype.
4909 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
4910 Remove prototype.
4911 (USE_STRUCT_CONVENTION): Remove prototype.
4912 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
4913 declaration.
4914 (_initialize_i386bsd_nat): Revise logic to determine some
4915 constants at compile time when compiling a native GDB. Warn if
4916 things don't match up with what we expect.
4917 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
4918 Remove variables.
4919 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
4920 to use date stored in `struct gdbarch_tdep'.
4921 (i386bsd_sigcontext_offset): Remove varaible.
4922 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
4923 stored in `struct gdbarch_tdep'.
4924 (i386bsd_frame_saved_pc): Make static.
4925 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
4926 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
4927 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
4928 i386fbsd4_sc_pc_offset): New variables.
4929 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
4930 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
4931 functions.
4932 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
4933 functions.
4934 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
4935 Modify the value of i386fbsd_sigtramp_start and
4936 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
4937 i386fbsd_sigtramp_end.
4938 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
4939 function.
4940
4941 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
4942 define to i386-linux-tdep.h.
4943 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
4944 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
4945 defines.
4946 (i386_linux_register_name, i386_linux_register_byte,
4947 i386_linux_register_raw_size): Remove prototypes.
4948 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
4949 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
4950 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
4951 TARGET_WRITE_PC): Remove defines.
4952 (i386_linux_in_sigtramp, i386_linux_frame_chain,
4953 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
4954 i386_linux_write_pc): Remove prototypes.
4955 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
4956 (get_longjmp_target): Remove prototype.
4957 * i386-linux-tdep.h: New file.
4958 * i386-linux-nat.c: Include "i386-linux-tdep.h".
4959 * i386-linux-tdep.c: Include "i386-tdep.h" and
4960 "i386-linux-tdep.h".
4961 (i386_linux_register_name, i386_linux_register_byte,
4962 i386_linux_register_raw_size, i386_linux_in_sigtramp,
4963 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
4964 Make static.
4965 (i386_linux_init_abi): New function.
4966 (_initialize_i386_linux_tdep): New function.
4967
4968 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
4969 (i386_saved_pc_after_call): Remove prototype.
4970 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
4971 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
4972 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
4973 (i386_register_name, i386_stab_reg_to_regnum,
4974 i386_dwarf_reg_to_regnum): Remove prototypes.
4975 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
4976 SIZEOF_SSE_REGS): Remove defines.
4977 (REGISTER_BYTES): Remove define.
4978 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
4979 (i386_register_byte, i386_register_raw_size): Remove prototypes.
4980 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
4981 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
4982 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
4983 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
4984 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
4985 (get_longjmp_target): Remove prototype.
4986 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
4987 (sigtramp_saved_pc): Remove define.
4988 (i386v4_sigtramp_saved_pc): Remove prototype.
4989 * config/i386/tm-go32.h (FRAME_CHAIN,
4990 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
4991 (i386go32_frame_saved_pc): Remove prototype.
4992 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
4993 (get_longjmp_target): Remove prototype.
4994 * i386-tdep.h: Include "osabi.h".
4995 (enum i386_abi): Removed.
4996 (enum struct_return): New enum.
4997 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
4998 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
4999 sc_pc_offset members.
5000 (i386_gdbarch_register_os_abi): Remove prototype.
5001 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
5002 I386_SSE_NUM_REGS): New defines.
5003 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
5004 I386_SSE_SIZEOF_REGS): New defines.
5005 (i386_register_name, i386_register_byte, i386_register_raw_size):
5006 New prototypes.
5007 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
5008 (i386bsd_sigtramp_saved_pc): New prototype.
5009 * i386-tdep.c: Don't include "elf-bfd.h".
5010 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
5011 i386_frame_chain, i386_saved_pc_after_call): Make static.
5012 (i386_frame_saved_pc): Rewrite to call architecture dependent
5013 function to deal with signal handlers. Make static.
5014 (i386go32_frame_saved_pc): Removed.
5015 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
5016 Removed.
5017 (i386_get_longjmp_target): New function.
5018 (default_struct_convention, pcc_struct_convention,
5019 reg_struct_convention, valid_conventions, struct_convention): New
5020 variables.
5021 (i386_use_struct_convention): New function.
5022 (i386v4_sigtramp_saved_pc): Renamed to
5023 i386_svr4_sigtramp_saved_pc. Made static. Moved.
5024 (i386_pc_in_sigtramp): New function.
5025 (i386_abi_names): Removed.
5026 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
5027 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
5028 Removed.
5029 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
5030 i386_gdbarch_register_os_abi): Removed.
5031 (struct i386_abi_handler): Removed.
5032 (i386_abi_handler_list): Removed.
5033 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
5034 functions.
5035 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
5036 i386_nw_init_abi): New functions.
5037 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
5038 Use set_gdbarch_xxx() calls instead of relying on macros for a
5039 number of calls.
5040 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
5041 (_initialize_i386_tdep): Add new 'struct-convcention' command.
5042 Register the various architecture variants defined in this file.
5043
5044 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
5045
5046 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
5047 (struct main_type): Remove arg_types member. Update comments for
5048 struct field.
5049 (TYPE_ARG_TYPES): Remove.
5050 (TYPE_FN_FIELD_ARGS): Update.
5051 (smash_to_method_type): Update prototype.
5052
5053 * c-typeprint.c (cp_type_print_method_args): Take method type
5054 instead of argument list. Use new argument layout. Simplify.
5055 (c_type_print_args): Use new argument layout. Simplify.
5056 (c_type_print_base): Update call to cp_type_print_method_args.
5057 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
5058 argument; use die->type instead. Update call to
5059 smash_to_method_type.
5060 (read_structure_scope): Update call to dwarf2_add_member_fn.
5061 * gdbtypes.c (allocate_stub_method): Update comment.
5062 (smash_to_method_type): Take new NARGS and VARARGS arguments.
5063 Use new argument layout.
5064 (check_stub_method): Use new argument layout. Don't count
5065 void as an argument.
5066 (print_arg_types): Update comments. Use new argument layout.
5067 (recursive_dump_type): Don't print arg_types member.
5068 * hpread.c (hpread_read_struct_type): Use new argument layout.
5069 (fixup_class_method_type): Likewise.
5070 (hpread_type_lookup): Likewise.
5071 * stabsread.c (read_type): Update calls to read_args and
5072 smash_to_method_type.
5073 (read_args): Use new argument layout. Simplify.
5074 * valops.c (typecmp): Use new argument layout. Update parameters
5075 and comments. Simplify.
5076 (hand_function_call): Use new argument layout.
5077 (search_struct_method): Update call to typecmp.
5078 (find_overload_match): Use new argument layout.
5079
5080 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
5081
5082 * NEWS: Mention multithreaded debug support for gdbserver.
5083
5084 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
5085
5086 * MAINTAINERS: Mention NEWS.
5087
5088 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
5089
5090 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
5091 (struct mips_objfile_private, compare_pdr_entries): New.
5092 (non_heuristic_proc_desc): Read the ".pdr" section if it
5093 is present.
5094
5095 2002-06-12 Andrew Cagney <ac131313@redhat.com>
5096
5097 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
5098 (arm_debug): New static variable.
5099 (_initialize_arm_tdep): Add ``set debug arm'' command.
5100
5101 2002-06-12 Andrew Cagney <ac131313@redhat.com>
5102
5103 * Makefile.in (sim_arm_h): Define.
5104 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
5105 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
5106 (arm_register_sim_regno): New function, map an internal REGNUM
5107 onto a simulator register number.
5108 (arm_gdbarch_init): Set register_sim_regno.
5109
5110 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
5111
5112 * MAINTAINERS: Add self.
5113
5114 2002-06-11 Jim Blandy <jimb@redhat.com>
5115
5116 * source.c (source_info): Mention whether the symtab has
5117 information about preprocessor macros.
5118
5119 Call the command `info macro', not `show macro'.
5120 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
5121 Fix error message.
5122 (_initialize_macrocmd): Register `info_macro_command' in
5123 `infolist', not `showlist'.
5124
5125 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
5126
5127 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
5128 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
5129 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
5130 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
5131 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
5132 unconditionally.
5133 (set_mipsfpu_single_command, set_mipsfpu_double_command)
5134 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
5135 (_initialize_mips_tdep): Remove dead code.
5136 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
5137 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
5138 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
5139 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
5140 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
5141 MIPS_LAST_FP_ARG_REGNUM): Remove.
5142
5143 2002-06-11 Michal Ludvig <mludvig@suse.cz>
5144
5145 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
5146 (unwind_tmp_obstack_free, parse_frame_info)
5147 (update_context, cfi_read_fp, cfi_write_fp)
5148 (cfi_frame_chain, cfi_init_extra_frame_info)
5149 (cfi_virtual_frame_pointer): Use the above function.
5150 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
5151
5152 2002-06-11 Corinna Vinschen <vinschen@redhat.com>
5153
5154 * v850-tdep.c (v850_type_is_scalar): New function.
5155 (v850_use_struct_convention): Match current gcc implementation
5156 as close as possible.
5157 (v850_push_arguments): Fix stack_offset handling. Don't write
5158 struct_addr into register. This is done by v850_store_struct_return.
5159 (v850_extract_return_value): Care for structs.
5160 (v850_store_return_value): Ditto.
5161 (v850_store_struct_return): Actually write address.
5162
5163 2002-06-11 Michal Ludvig <mludvig@suse.cz>
5164
5165 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
5166 without debug information too.
5167
5168 2002-06-10 Andrew Cagney <ac131313@redhat.com>
5169
5170 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
5171 Make multi-arch pure.
5172 * gdbarch.h, gdbarch.c: Re-generate.
5173 * arm-tdep.c (arm_print_float_info): Update.
5174 * arch-utils.h (default_print_float_info): Update.
5175 * arch-utils.c (default_print_float_info): Update.
5176 * infcmd.c (float_info): Update call.
5177
5178 2002-06-10 Andrew Cagney <ac131313@redhat.com>
5179
5180 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
5181 the front of the initialize list.
5182
5183 2002-06-10 Andrew Cagney <ac131313@redhat.com>
5184
5185 * infrun.c (struct inferior_status): Replace fields
5186 selected_frame_address and selected_level with field
5187 selected_frame_id.
5188 (save_inferior_status): Update. Use get_frame_id.
5189 (struct restore_selected_frame_args): Delete.
5190 (restore_selected_frame): Update. Use frame_find_by_id.
5191 (restore_inferior_status): Update.
5192
5193 * breakpoint.h (struct breakpoint): Change type of
5194 watchpoint_frame to frame_id.
5195 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
5196 call to get_current_frame.
5197 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
5198 get_current_frame.
5199 (watchpoint_check): Use frame_find_by_id.
5200
5201 * frame.h (record_selected_frame): Delete declaration.
5202 * stack.c (record_selected_frame): Delete function.
5203
5204 * frame.h (struct frame_id): Define.
5205 (get_frame_id): Declare.
5206 (frame_find_by_id): Declare.
5207 * frame.c (frame_find_by_id): New function.
5208 (get_frame_id): New function.
5209
5210 2002-06-10 Andrey Volkov <avolkov@transas.com>
5211
5212 * ser-e7kpc.c: Fix duplicated define and call of
5213 _initialize_ser_e7000pc
5214
5215 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
5216
5217 * signals/signals.c (target_signal_from_host): Fix #ifdef
5218 SIGRTMIN case.
5219 (do_target_signal_to_host): Likewise.
5220
5221 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
5222
5223 * mips-tdep.c (mips_find_abi_section): New function.
5224 (mips_gdbarch_init): Call it.
5225
5226 2002-06-09 Mark Kettenis <kettenis@gnu.org>
5227
5228 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
5229 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
5230 after Andrew's 2002-06-08 gdbarch change.
5231
5232 2002-06-09 Mark Kettenis <kettenis@gnu.org>
5233
5234 * i386-linux-nat.c (suppy_gregset): Don't supply
5235 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
5236 register cache.
5237 (fill_gregset): Don't fetch it under the same circumstances.
5238
5239 2002-06-09 Andrew Cagney <cagney@redhat.com>
5240
5241 * Makefile.in (callback_h): Define.
5242 (remote_sim_h): Update path to remote-sim.h.
5243 (remote-rdp.o): Add $(callback_h).
5244 (remote-sim.o): Use $(callback_h).
5245 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
5246 * remote-rdp.c: Include "gdb/callback.h".
5247
5248 2002-06-09 Mark Kettenis <kettenis@gnu.org>
5249
5250 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
5251 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
5252
5253 2002-06-08 Andrew Cagney <ac131313@redhat.com>
5254
5255 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
5256 * rdi-share/serpardr.c: Ditto.
5257 * rdi-share/unixcomm.c: Ditto.
5258 * rdi-share/serdrv.c: Ditto.
5259 * rdi-share/hostchan.h: Ditto.
5260 * rdi-share/hostchan.c: Ditto.
5261 * rdi-share/host.h: Ditto.
5262 * rdi-share/devsw.c: Ditto.
5263
5264 * objfiles.h: Change type of obj_private to void pointer.
5265 * pa64solib.c: Update copyright. Don't include "assert.h", use
5266 strcmp instead of STREQ, use LONGEST, do not use PTR
5267 * somsolib.c: Ditto.
5268
5269 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
5270 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
5271 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
5272
5273 2002-06-08 Andrew Cagney <ac131313@redhat.com>
5274
5275 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
5276 (default_get_saved_register): Delete function.
5277 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
5278 generic_unwind_get_saved_register.
5279 * gdbarch.h, gdbarch.c: Re-generate.
5280
5281 2002-06-08 Andrew Cagney <ac131313@redhat.com>
5282
5283 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
5284 generic_func_frame_chain_valid.
5285 * gdbarch.h, gdbarch.c: Re-generate.
5286 * blockframe.c (generic_func_frame_chain_valid): Only check
5287 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
5288 passing FP to PC_IN_CALL_DUMMY.
5289 Fix PR gdb/360.
5290
5291 2002-06-08 Andrew Cagney <ac131313@redhat.com>
5292
5293 * gdbarch.sh (struct gdbarch_data): Add field init_p.
5294 (register_gdbarch_data): Initialize init_p.
5295 (gdbarch_data): Initialize data pointer using the init function.
5296 (init_gdbarch_data): Delete function.
5297 (gdbarch_update_p): Update.
5298 (initialize_non_multiarch): Update.
5299 (struct gdbarch): Add field initialized_p.
5300 * gdbarch.h, gdbarch.c: Re-generate.
5301
5302 2002-06-07 Michal Ludvig <mludvig@suse.cz>
5303
5304 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
5305 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
5306 better do the things actually here.
5307 * x86-64-tdep.c (x86_64_register_name2nr): New.
5308 (x86_64_register_name): Renamed to x86_64_register_nr2name.
5309 (x86_64_gdbarch_init): Respect the above change.
5310 * x86-64-tdep.h (x86_64_register_name2nr)
5311 (x86_64_register_nr2name): Add prototypes.
5312 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
5313
5314 2002-06-06 Michael Snyder <msnyder@redhat.com>
5315
5316 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
5317 Delete extra braces and re-indent.
5318 (d10v_store_return_value): Char return values
5319 must be shifted over by one byte in R0.
5320 (d10v_extract_return_value): Delete extra braces, re-indent.
5321
5322 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
5323
5324 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
5325 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
5326 (d10v_integer_to_address): Rewrite.
5327 (d10v_frame_init_saved_regs): When reading fp and sp registers use
5328 the d10v specific functions which take care of converting to the
5329 correct space.
5330
5331 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
5332
5333 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
5334 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
5335
5336 2002-06-02 Andrew Cagney <ac131313@redhat.com>
5337
5338 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
5339 includes.
5340 * config/tm-linux.h: Ditto.
5341 * config/alpha/tm-alphalinux.h: Ditto.
5342 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
5343 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
5344 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
5345 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
5346 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
5347 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
5348 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
5349 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
5350 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
5351 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
5352 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
5353 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
5354 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
5355 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
5356 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
5357 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
5358 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
5359 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
5360 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
5361 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
5362 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
5363 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
5364 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
5365 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
5366 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
5367 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
5368 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
5369 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
5370 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
5371 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
5372 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
5373 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
5374 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
5375 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
5376 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
5377 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
5378 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
5379
5380 2002-05-04 Aidan Skinner <aidan@velvet.net>
5381
5382 * ada-exp.tab.c: New file
5383 * ada-exp.y: New file
5384 * ada-lang.c: New file
5385 * ada-lang.h: New file
5386 * ada-lex.c: New file
5387 * ada-lex.l: New file
5388 * ada-tasks.c: New file
5389 * ada-typeprint.c: New file
5390 * ada-valprint.c: New file
5391
5392 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
5393
5394 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
5395 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
5396
5397 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
5398
5399 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
5400 insetead of ppc-linux-tdep.o.
5401 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
5402 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
5403
5404 2002-06-02 Andrew Cagney <ac131313@redhat.com>
5405
5406 2002-05-07 Christian Groessler <chris@groessler.org>
5407 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
5408 bit register contents for little endian hosts.
5409
5410 2002-06-01 Andrew Cagney <ac131313@redhat.com>
5411
5412 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
5413 any maintainer.
5414
5415 2002-06-01 Andrew Cagney <ac131313@redhat.com>
5416
5417 * gdbarch.h: Regenerate.
5418
5419 2002-06-01 Andrew Cagney <ac131313@redhat.com>
5420
5421 * MAINTAINERS: Add everyone to write-after-approval list.
5422
5423 2002-06-01 Andrew Cagney <ac131313@redhat.com>
5424
5425 * stack.c (frame_info): Use frame_register_unwind instead of
5426 saved_regs. Mention when the SP is on the stack or in a register.
5427
5428 * frame.h (frame_register_unwind_ftype): Define. Document.
5429 (struct frame_info): Add field register_unwind and
5430 register_unwind_cache.
5431 (frame_register_unwind): Declare.
5432 (generic_unwind_get_saved_register): Declare.
5433
5434 * frame.c (frame_register_unwind): New function.
5435 (generic_unwind_get_saved_register): New function.
5436
5437 * blockframe.c (generic_call_dummy_register_unwind): New function.
5438 (frame_saved_regs_register_unwind): New function.
5439 (set_unwind_by_pc): New function.
5440 (create_new_frame): New function.
5441 (get_prev_frame): New function.
5442
5443 2002-05-30 Andrew Cagney <ac131313@redhat.com>
5444
5445 * a29k-share/: Delete directory.
5446 * remote-vx29k.c: Delete file.
5447
5448 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5449
5450 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
5451 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
5452
5453 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5454
5455 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
5456 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
5457 (sparc64nbsd-nat.o)
5458 (sparcnbsd-nat.o)
5459 (sparcnbsd-tdep.o): New dependency lists.
5460 * NEWS: Note new UltraSPARC NetBSD native configuration.
5461 * configure.host (sparc64-*-netbsd*): New host.
5462 * configure.tgt (sparc-*-netbsdelf*)
5463 (sparc-*-netbsd*): Set gdb_target to nbsd.
5464 (sparc64-*-netbsd*): New target.
5465 * sparc64nbsd-nat.c: New file.
5466 * sparcnbsd-nat.c: New file.
5467 * sparcnbsd-tdep.c: New file.
5468 * sparcnbsd-tdep.h: New file.
5469 * config/sparc/nbsd.mt: New file.
5470 * config/sparc/nbsd64.mh: New file.
5471 * config/sparc/nbsd64.mt: New file.
5472 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
5473 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
5474 (HOST_IPC): Remove.
5475 * config/sparc/nbsdaout.mt: Remove.
5476 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
5477 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
5478 (HOST_IPC): Remove.
5479 * config/sparc/nbsdelf.mt: Remove.
5480 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
5481 sparc-nat.c compatiblity defines.
5482 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
5483 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
5484 * config/sparc/tm-nbsd64.h: New file.
5485 * config/sparc/tm-nbsdaout.h: Remove.
5486 * config/sparc/xm-nbsd.h: Remove.
5487
5488 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5489
5490 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
5491 * sparc-tdep.c: Include osabi.h.
5492 (gdbarch_tdep): Add osabi member.
5493 (_initialize_sparc_tdep): Use gdbarch_register.
5494 (sparc_gdbarch_init): Use generic OS ABI framework.
5495 (sparc_dump_tdep): New function.
5496
5497 2002-05-30 Kevin Buettner <kevinb@redhat.com>
5498
5499 * corefile.c (do_captured_read_memory_integer): Return non-zero
5500 result.
5501 (safe_read_memory_integer): Copy result of memory read when
5502 status is non-zero. Also, add comments.
5503
5504 2002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
5505
5506 * Makefile.in (ppc_tdep_h): Define.
5507 (ppc-linux-nat.o)
5508 (ppc-linux-tdep.o)
5509 (rs6000-tdep.o): Use $(ppc_tdep_h).
5510 (ppc-sysv-tdep.o)
5511 (ppcnbsd-nat.o)
5512 (ppcnbsd-tdep.o): New dependency lists.
5513 * ppc-tdep.h: Use generic OS ABI framework.
5514 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
5515 (ppc_linux_init_abi): New functions.
5516 (ppc_sysv_abi_broken_use_struct_convention)
5517 (ppc_sysv_abi_use_struct_convention)
5518 (ppc_sysv_abi_push_arguments): Move to...
5519 * ppc-sysv-tdep.c: ...here.
5520 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
5521 * rs6000-tdep.c (process_note_abi_tag_sections)
5522 (get_elfosabi): Remove.
5523 (rs6000_gdbarch_init): Use generic OS ABI framework.
5524 (rs6000_dump_tdep): New function.
5525 (_initialize_rs6000_tdep): Use gdbarch_register.
5526 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
5527 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
5528 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
5529 of ppc-linux-tdep.o.
5530 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
5531 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
5532 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
5533 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
5534 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
5535 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
5536
5537 2002-05-29 Jim Blandy <jimb@redhat.com>
5538
5539 * macroscope.c (default_macro_scope): Put `void' in empty argument
5540 list.
5541
5542 2002-05-29 Andrew Cagney <ac131313@redhat.com>
5543
5544 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
5545 * arch-utils.c: Include "sim-regno.h".
5546 * gdbarch.sh: Don't include "sim-regno.h".
5547 * gdbarch.h, gdbarch.c: Regenerate.
5548 * sim-regno.h (legacy_register_sim_regno): Move declaration from
5549 here.
5550 * arch-utils.h (legacy_register_sim_regno): To here.
5551 * remote-sim.c (legacy_register_sim_regno): Move function from
5552 here.
5553 * arch-utils.c (legacy_register_sim_regno): To here.
5554
5555 2002-05-28 Andrew Cagney <ac131313@redhat.com>
5556
5557 * sim-regno.h: New file.
5558 * Makefile.in (sim_regno_h): Define.
5559 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
5560 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
5561 (legacy_register_sim_regno): New function.
5562 (one2one_register_sim_regno): New function.
5563 (gdbsim_fetch_register): Rewrite.
5564 (gdbsim_store_register): Only store a register when
5565 REGISTER_SIM_REGNO is valid.
5566 * d10v-tdep.c: Include "sim-regno.h".
5567 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
5568 (d10v_ts3_register_sim_regno): Ditto.
5569 * gdbarch.sh: Include "sim-regno.h".
5570 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
5571 * gdbarch.h, gdbarch.c: Regenerate.
5572 * arch-utils.h (default_register_sim_regno): Delete declaration.
5573 * arch-utils.c (default_register_sim_regno): Delete function.
5574
5575 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
5576
5577 * ppcnbsd-nat.c: Rewrite.
5578 * ppcnbsd-tdep.c: New file.
5579 * ppcnbsd-tdep.h: New file.
5580 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
5581 solib.o, and solib-svr4.o.
5582 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
5583 nbsd-tdep.o, and corelow.o.
5584
5585 2002-05-28 Andrew Cagney <ac131313@redhat.com>
5586
5587 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
5588 `tr' and `sed'. Mention that `broken' targets are not expected to
5589 build.
5590
5591 2002-05-27 Michal Ludvig <mludvig@suse.cz>
5592
5593 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
5594 Let PC point right after the prologue before looking up symbols.
5595
5596 2002-05-27 Martin M. Hunt <hunt@redhat.com>
5597
5598 * i386-tdep.c (i386_register_virtual_type): Return
5599 builtin_type_vec128i for SSE registers.
5600
5601 * gdbtypes.h (builtin_type_vec128i): Declare.
5602
5603 * gdbtypes.c (build_builtin_type_vec128i): New function.
5604 (builtin_type_v2_double, builtin_type_v4_int64): New types.
5605 (builtin_type_vec128i): New type for SSE2 128-bit registers.
5606 (build_gdbtypes): Initialize new builtin vector types.
5607 (_initialize_gdbtypes): Register new vector types with gdbarch.
5608
5609 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5610
5611 * MAINTAINERS: ns32k is not longer an obsolete candidate,
5612 since it has been multi-arch'd.
5613 * NEWS: Note that ns32k-*-* is now partial multi-arch.
5614 Move Alpha and VAX multi-arch news entries to same section
5615 as other multi-arch news.
5616
5617 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5618
5619 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
5620 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
5621 static. Rename some register numbers to put them in ns32k-tdep
5622 private namespace.
5623 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
5624 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
5625 functions.
5626 (_initialize_ns32k_tdep): Use gdbarch_register.
5627 * ns32k-tdep.h: New file.
5628 * ns32knbsd-tdep.c: New file.
5629 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
5630 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
5631 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
5632 REGISTER_BYTES, REGISTER_BYTE): Remove.
5633 * config/ns32k/tm-ns32k.h: New file.
5634 * config/ns32k/tm-umax.h: Remove.
5635
5636 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5637
5638 * ns32k-tdep.c (ns32k_saved_pc_after_call,
5639 ns32k_store_struct_return, ns32k_extract_return_value,
5640 ns32k_store_return_value, ns32k_extract_struct_value_address): New
5641 functions.
5642 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
5643 ns32k_saved_pc_after_call.
5644 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
5645 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
5646 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
5647 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
5648 ns32k_extract_struct_value_address.
5649
5650 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5651
5652 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
5653 ns32k_fix_call_dummy): New.
5654 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
5655 ns32k_call_dummy_words.
5656 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
5657 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
5658 CALL_DUMMY_NARGS): Remove.
5659 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
5660
5661 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5662
5663 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
5664 ns32k_frame_saved_pc, ns32k_frame_args_address,
5665 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
5666 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
5667 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
5668 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
5669 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
5670 (BREAKPOINT): Remove..
5671 (FRAME_CHAIN): Define as ns32k_frame_chain.
5672 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
5673 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
5674 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
5675 (FRAME_FIND_SAVED_REGS): Remove.
5676 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
5677 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
5678 (POP_FRAME): Define as ns32k_pop_frame.
5679
5680 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5681
5682 * ns32k-tdep.c (ns32k_register_byte_32082,
5683 ns32k_register_byte_32382, ns32k_register_raw_size,
5684 ns32k_register_virtual_size, ns32k_register_virtual_type): New
5685 functions.
5686 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
5687 ns32k_register_byte_32382.
5688 * config/ns32k/tm-umax.h: Update copyright years.
5689 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
5690 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
5691 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
5692 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
5693 (ns32k_get_enter_addr): Fix prototype.
5694
5695 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5696
5697 * ns32k-tdep.c: Update copyright years.
5698 (ns32k_register_name_32082): New function.
5699 (ns32k_register_name_32382): Ditto.
5700 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
5701 (REGISTER_NAME): Define as ns32k_register_name_32382.
5702 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
5703 (REGISTER_NAME): Define as ns32k_register_name_32082.
5704
5705 2002-05-24 Jim Blandy <jimb@redhat.com>
5706
5707 * dwarf2read.c (free_line_header): Use xfree, not free.
5708
5709 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
5710
5711 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
5712 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
5713
5714 2002-05-23 Andrew Cagney <ac131313@redhat.com>
5715
5716 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
5717
5718 2002-05-23 Andrew Cagney <ac131313@redhat.com>
5719
5720 From Ross Alexander at NEC Europe:
5721 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
5722
5723 2002-05-23 Michael Snyder <msnyder@redhat.com>
5724
5725 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
5726 for input, rather than parse_and_eval_address.
5727
5728 2002-05-23 Andrew Cagney <ac131313@redhat.com>
5729
5730 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
5731 * Makefile.in (sim_d10v_h): Update definition.
5732
5733 2002-05-24 Andrew Cagney <cagney@redhat.com>
5734
5735 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
5736 change `2002-05-22 Michael Snyder' below.
5737 (d10v_push_arguments): Ditto.
5738 (d10v_extract_return_value): Ditto.
5739
5740 2002-05-23 Jim Blandy <jimb@redhat.com>
5741
5742 * macrotab.c (check_for_redefinition): Don't complain if the new
5743 definition is the same as the previous one. Take more arguments
5744 to allow the comparison.
5745 (macro_define_object, macro_define_function): Pass more arguments
5746 to check_for_redefinition.
5747
5748 2002-05-22 Michael Snyder <msnyder@redhat.com>
5749
5750 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
5751 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
5752 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
5753 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
5754 Don't bail if return_pc is PC_IN_CALL_DUMMY.
5755 Add a temp variable to save a call (and a memory read).
5756 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
5757 if possible (so that PC_IN_CALL_DUMMY will work).
5758
5759 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
5760
5761 * MAINTAINERS: Remove status `OBSOLETE' from v850.
5762
5763 2002-05-22 Michal Ludvig <mludvig@suse.cz>
5764
5765 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
5766 fde->cie_ptr.
5767 (dwarf2_build_frame_info): Corrected handling of eh_frame.
5768 (dwarf2_build_frame_info): Add offset to fde->initial_location
5769 so that frames of shared libraries are mapped correctly.
5770 (execute_stack_op): Change type of 'result' from ULONGEST to
5771 CORE_ADDR.
5772
5773 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5774
5775 * config/alpha/tm-nbsd.h: Include solib.h.
5776
5777 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5778
5779 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
5780 assumptions about the host's byte order.
5781
5782 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5783
5784 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
5785 to dependency list.
5786 * alphanbsd-tdep.c: Include solib-svr4.h.
5787 * shnbsd-tdep.c: Ditto.
5788
5789 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5790
5791 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
5792 nbsd-tdep.h to dependency list.
5793 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
5794 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
5795 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
5796 nbsdaout.mh and nbsdelf.mh consistently.
5797 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
5798 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
5799 nbsdaout.mt and nbsdelf.mh consistently.
5800 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
5801 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
5802 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
5803 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
5804 a.out shared library stuff from here...
5805 * config/nm-nbsdaout.h: ...to here.
5806 * config/tm-nbsd.h: Remove.
5807 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
5808 * config/arm/nbsd.mh: Remove.
5809 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
5810 nbsd-tdep.o.
5811 * config/arm/nbsdaout.mh: New file.
5812 * config/arm/nbsdelf.mh: New file.
5813 * config/arm/nm-nbsdaout.h: New file.
5814 * config/i386/nbsd.mh: Remove.
5815 * config/i386/nbsd.mt: Remove.
5816 * config/i386/nbsdaout.mh: New file.
5817 * config/i386/nbsdaout.mt: New file.
5818 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
5819 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
5820 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
5821 i386_register_u_addr): Remove.
5822 * config/i386/nm-nbsdaout.h: New file.
5823 * config/i386/nm-nbsdelf.h: Remove.
5824 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
5825 (USE_STRUCT_CONVENTION): Remove.
5826 * config/i386/tm-nbsdaout.h: New file.
5827 * config/i386/tm-nbsdelf.h: Remove.
5828 * config/m68k/nbsd.mh: Remove.
5829 * config/m68k/nbsd.mt: Remove.
5830 * config/m68k/nbsdaout.mh: New file.
5831 * config/m68k/nbsdaout.mt: New file.
5832 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
5833 * config/m68k/nm-nbsdaout.h: New file.
5834 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
5835 (IN_SOLIB_CALL_TRAMPOLINE): Define.
5836 * config/ns32k/nbsd.mh: Remove.
5837 * config/ns32k/nbsd.mt: Remove.
5838 * config/ns32k/nbsdaout.mh: New file.
5839 * config/ns32k/nbsdaout.mt: New file.
5840 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
5841 * config/ns32k/nm-nbsdaout.h: New file.
5842 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
5843 (IN_SOLIB_CALL_TRAMPOLINE): Define.
5844 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
5845 (SVR4_SHARED_LIBS): Remove.
5846 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
5847 * config/sparc/nbsd.mh: Remove.
5848 * config/sparc/nbsd.mt: Remove.
5849 * config/sparc/nbsdaout.mh: New file.
5850 * config/sparc/nbsdaout.mt: New file.
5851 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
5852 * config/sparc/nbsdelf.mt: New file.
5853 * config/sparc/nm-nbsdaout.h: New file.
5854 * config/sparc/nm-nbsdelf.h: Remove.
5855 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
5856 * config/sparc/tm-nbsdaout.h: New file.
5857
5858 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5859
5860 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
5861 mipsnbsd-tdep.c
5862 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
5863
5864 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5865
5866 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
5867 shnbsd-nat.c.
5868 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
5869
5870 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5871
5872 * NEWS: Note new MIPS NetBSD native configuration.
5873 * configure.host (mips*-*-netbsd*): New host.
5874 * configure.tgt (mips*-*-netbsd*): New target.
5875 * mipsnbsd-nat.c: New file.
5876 * mipsnbsd-tdep.c: New file.
5877 * mipsnbsd-tdep.h: New file.
5878 * config/mips/nbsd.mh: New file.
5879 * config/mips/nbsd.mt: New file.
5880 * config/mips/nm-nbsd.h: New file.
5881 * config/mips/tm-nbsd.h: New file.
5882
5883 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5884
5885 * Makefile.in (SFILES): Add osabi.c.
5886 (COMMON_OBS): Add osabi.o.
5887 (osabi.o): New dependency list.
5888 * osabi.c: New file.
5889 * osabi.h: New file.
5890 * doc/gdbint.texinfo: Document new generic OS ABI framework.
5891
5892 * Makefile.in (alpha_tdep_h): Define and use instead of
5893 alpha-tdep.h.
5894 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
5895 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
5896 Remove.
5897 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
5898 * alpha-tdep.h: Include osabi.h.
5899 (alpha_abi): Remove.
5900 (gdbarch_tdep): Use generic OS ABI framework.
5901 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
5902 gdbarch_register_osabi.
5903 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
5904 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
5905 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
5906
5907 * Makefile.in (sh_tdep_h): Add osabi.h.
5908 * sh-tdep.h (sh_osabi): Remove.
5909 (gdbarch_tdep): Use generic OS ABI framework.
5910 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
5911 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
5912 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
5913 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
5914
5915 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
5916 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
5917 gdbarch_register_osabi.
5918 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
5919 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
5920 (get_elfosabi): Rename to...
5921 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
5922 ABI framework support routines.
5923 (arm_gdbarch_init): Use generic OS ABI framework.
5924 (arm_dump_tdep): Likewise.
5925 (_initialize_arm_tdep): Likewise.
5926 * arm-tdep.h: Include osabi.h.
5927 (arm_abi): Remove.
5928 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
5929 osabi member.
5930 (arm_gdbarch_register_os_abi): Remove prototype.
5931 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
5932 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
5933
5934 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
5935 * mips-tdep.c: Include osabi.h.
5936 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
5937 OS ABI framework.
5938
5939 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
5940
5941 * h8300-tdep.c: Fix formatting.
5942
5943 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
5944
5945 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
5946 printing vector registers.
5947
5948 2002-05-19 Andrew Cagney <ac131313@redhat.com>
5949
5950 From Fernando Nasser:
5951 * remote.c (remote_async_open_1): Re-throw the exception when the
5952 connection fails.
5953 (remote_cisco_open): Ditto.
5954 (remote_open_1): Ditto.
5955
5956 2002-05-19 Andrew Cagney <ac131313@redhat.com>
5957
5958 * remote.c (remote_start_remote_dummy): Add uiout parameter.
5959 (remote_start_remote): Add uiout parameter. Pass through to
5960 remote_start_remote_dummy.
5961 (remote_open_1): Use catch_exception instead of catch_errors.
5962 (remote_async_open_1): Ditto.
5963 (remote_cisco_open): Ditto.
5964
5965 2002-05-19 Andrew Cagney <ac131313@redhat.com>
5966
5967 * remote.c (remote_start_remote): Replace PTR with void pointer.
5968 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
5969 static.
5970
5971 2002-05-18 Andrew Cagney <ac131313@redhat.com>
5972
5973 * gdb_indent.sh: Allow the script to be run in the sim directory.
5974
5975 2002-05-18 Mark Kettenis <kettenis@gnu.org>
5976
5977 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
5978 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
5979
5980 * corelow.c (core_open): Only call set_gdbarch_from_file if
5981 exec_bfd is NULL.
5982
5983 2002-05-17 Andrey Volkov <avolkov@transas.com>
5984
5985 * h8300-tdep.c: Add support of EXR register
5986 * config/h8300/tm-h8300.h: Ditto.
5987
5988 2002-05-17 Andrey Volkov <avolkov@transas.com>
5989
5990 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
5991
5992 2002-05-17 Andrey Volkov <avolkov@transas.com>
5993
5994 * h8300-tdep.c: Change literal regnums to REGNO.
5995
5996 2002-05-17 Jim Blandy <jimb@redhat.com>
5997
5998 * NEWS: Note addition of macro support.
5999
6000 Expand preprocessor macros in C expressions.
6001 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
6002 (scan_macro_expansion, scanning_macro_expansion,
6003 finished_macro_expansion): New function declarations.
6004 (expression_macro_lookup_func, expression_macro_lookup_baton): New
6005 variable declarations.
6006 * parser-defs.h (expression_context_pc): New declaration.
6007 * parse.c (expression_context_pc): New variable.
6008 (parse_exp_1): Set expression_context_pc, as well as
6009 expression_context_block.
6010 * c-exp.y (yylex): If we're not already reading the result of a
6011 macro expansion, try to macro-expand the next token. When we're
6012 done scanning a macro expansion, switch back to the mainline text.
6013 Commas and `if's in a macro's expansion don't terminate the input.
6014 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
6015 (macro_original_text, macro_expanded_text,
6016 expression_macro_lookup_func, expression_macro_lookup_baton): New
6017 variables.
6018 (scan_macro_expansion, scanning_macro_expansion,
6019 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
6020 c_preprocess_and_parse): New functions.
6021 (c_language_defn, cplus_language_defn, asm_language_defn): Call
6022 c_preprocess_and_parse, instead of c_parse.
6023 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
6024 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
6025
6026 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
6027
6028 * sh-tdep.c (gdb_print_insn_sh64): Delete.
6029 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
6030 (sh_gdbarch_init): Always use gdb_print_insn_sh.
6031
6032 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
6033
6034 * NEWS: Add section for multi-arched targets. Add v850 to that section.
6035
6036 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
6037
6038 * Makefile.in (sh_tdep_h): Define and use.
6039 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
6040 register enum): Move to...
6041 * * sh-tdep.h: ...here.
6042 * sh-tdep.c: Include sh-tdep.h.
6043 * sh3-rom.c: Likewise.
6044 * shnbsd-tdep.c: Likewise.
6045
6046 2002-05-16 Michael Snyder <msnyder@redhat.com>
6047
6048 * arm-tdep.c: Spelling fix in comment.
6049
6050 2002-05-16 Jim Blandy <jimb@redhat.com>
6051
6052 Add commands for manually expanding macros and showing their
6053 definitions.
6054 * macrocmd.c, macroscope.c, macroscope.h: New files.
6055 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
6056 (macroscope_h): New variable.
6057 (HFILES_NO_SRCDIR): Add macroscope.h.
6058 (COMMON_OBS): Add macrocmd.o, macroscope.o.
6059 (macroscope.o, macrocmd.o): New rules.
6060
6061 Teach the Dwarf 2 reader to read macro information.
6062 * dwarf2read.c: #include "macrotab.h".
6063 (dwarf_macinfo_buffer): New variable.
6064 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
6065 dwarf_macinfo_size.
6066 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
6067 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
6068 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
6069 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
6070 dwarf2_macro_spaces_in_definition): New complaints.
6071 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
6072 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
6073 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
6074 the partial symbol table.
6075 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
6076 from what's recorded in the partial symbol table.
6077 (read_file_scope): If the compilation unit has a
6078 `DW_AT_macro_info' attribute, read its macro information.
6079 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
6080
6081 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
6082
6083 Fix PR gdb/546
6084 * ser-tcp.c: Don't include <netinet/udp.h>.
6085
6086 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
6087
6088 * MAINTAINERS: Update my email address.
6089
6090 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
6091
6092 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
6093 include file of the same name.
6094
6095 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
6096
6097 * configure.tgt: Mark v850 as multi-arched.
6098 * config/v850/tm-v850.h: Remove file.
6099 * config/v850/v850.mt: Eliminate TM_FILE.
6100
6101 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
6102
6103 * v850-tdep.c: Full multi-arch.
6104 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
6105 Define GDB_MULTI_ARCH to 2.
6106
6107 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
6108
6109 * p-exp.y (current_type): New static variable.
6110 Carries the type of the expression at the position that is parsed.
6111 (push_current_type, pop_current_type): Two new functions. Used
6112 to store/restore current_type in expression on specific tokens.
6113 (search_field): New static variable. Set to one after parsing a point
6114 as at that point only a FIELDNAME token should be searched.
6115 (FIELDNAME): New token. After a point only a token belonging to
6116 current_type type definition is allowed.
6117 (all over token rules): reset and change current_type according
6118 to rules.
6119 (exp '[' rule): insert implicit array index field if
6120 exp is a pascal string type.
6121
6122 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
6123
6124 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
6125 frame info. Use frame_info's saved_regs instead of matching member
6126 in extra_frame_info throughout.
6127 (v850_frame_init_saved_regs): New function.
6128 (v850_init_extra_frame_info): Move most functionality into
6129 v850_frame_init_saved_regs().
6130 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
6131 (v850_frame_find_saved_regs): Remove declaration.
6132 (FRAME_FIND_SAVED_REGS): Remove definition.
6133 (v850_frame_init_saved_regs): Add declaration.
6134 (FRAME_INIT_SAVED_REGS): Add definition.
6135
6136 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
6137
6138 * v850-tdep.c: Begin multi-arch'ing v850.
6139 (v850_target_architecture_hook): Remove function.
6140 (v850_gdbarch_init): New function. Add code previously in
6141 v850_target_architecture_hook().
6142 (_initialize_v850_tdep): Don't set target_architecture_hook.
6143 Call register_gdbarch_init() instead.
6144
6145 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
6146
6147 * gdbtypes.h (struct cplus_struct_type): Remove args field.
6148 * hpread.c (hpread_read_struct_type): Remove assignments to args.
6149 (fixup_class_method_type): Likewise.
6150
6151 2002-05-15 Jim Blandy <jimb@redhat.com>
6152
6153 Add macro structures to GDB's symbol tables. Nobody puts anything
6154 in them yet.
6155 * symtab.h (struct symtab): New member: `macro_table'.
6156 * buildsym.h (pending_macros): New global variable.
6157 * buildsym.c: #include "macrotab.h".
6158 (buildsym_init): Initialize `pending_macros'.
6159 (end_symtab): If we found macro information while reading a CU's
6160 debugging info, do build a symtab structure for it. Make the
6161 symtab point to the macro information, and clear the
6162 `pending_macros' pointer which held it while we were reading the
6163 debug info.
6164 (really_free_pendings): Free any pending macro table.
6165 * objfiles.h (struct objfile): New member: `macro_cache'.
6166 * objfiles.c (allocate_objfile): Set allocate and free functions
6167 for the macro cache's objstack.
6168 (free_objfile): Empty the macro cache's obstack.
6169 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
6170 set new allocate and free functions for it.
6171 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
6172 free functions for the macro cache's objstack. (Why is this
6173 function building its own objfile?)
6174 * symmisc.c (print_objfile_statistics): Print statistics on the
6175 macro bcache.
6176 * Makefile.in: Note that buildsym.o depends on macrotab.h.
6177
6178 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
6179
6180 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
6181 (REGISTER_U_ADDR): Delete definition.
6182 (arm_register_u_addr): Delete declaration.
6183
6184 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
6185
6186 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
6187 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
6188
6189 2002-05-14 Andrew Cagney <ac131313@redhat.com>
6190
6191 * regcache.c (register_valid): Revise comments refering to "Not
6192 available" and "unavailable".
6193 * frame.c (frame_register_read): Ditto.
6194 * findvar.c (value_of_register): Ditto.
6195
6196 2002-05-15 Andrew Cagney <cagney@redhat.com>
6197
6198 * Makefile.in (remote_sim_h): Replace remote-sim_h.
6199 (remote-sim.o): Update dependencies.
6200 (d10v-tdep.o): Specify dependencies.
6201 (sim_d10v_h): Define.
6202
6203 2002-05-14 Jim Blandy <jimb@redhat.com>
6204
6205 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
6206 * macrotab.c (macro_lookup_inclusion, find_definition,
6207 new_macro_table): Same.
6208
6209 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
6210 not `! strcmp ()'. This is a dubious improvement.
6211 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
6212
6213 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
6214 although it's not necessary, to avoid a warning.
6215
6216 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
6217
6218 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
6219 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
6220 TYPE_INSTANCE_FLAGS.
6221 (struct main_type): New.
6222 (struct type): Move most members to struct main_type. Change
6223 cv_type and as_type to new type_chain member. Add instance_flags.
6224 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
6225 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
6226 (finish_cv_type): Remove prototype.
6227 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
6228 Set TYPE_CHAIN.
6229 (alloc_type_instance): New function.
6230 (smash_type): New function.
6231 (make_pointer_type, make_reference_type, make_function_type)
6232 (smash_to_member_type, smash_to_method_type): Call smash_type.
6233 (make_qualified_type): New function.
6234 (make_type_with_address_space): Call make_qualified_type.
6235 (make_cv_type): Likewise.
6236 (finish_cv_type): Remove unnecessary function.
6237 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
6238 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
6239 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
6240 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
6241 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
6242 * hpread.c (hpread_read_struct_type): Likewise.
6243 * stabsread.c (read_struct_type): Likewise.
6244
6245 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
6246
6247 * configure.tgt: Add a catch all sh* target, for cases like
6248 sh[2,3,4]-elf and sh-hms.
6249
6250 2002-05-14 Keith Seitz <keiths@redhat.com>
6251
6252 * event-loop.c (create_file_handler): Don't do anything but
6253 update data when we are given a fd which we are already
6254 monitoring.
6255
6256 2002-05-14 Michal Ludvig <mludvig@suse.cz>
6257
6258 * dwarf2cfi.c (context_cpy): Copy registers correctly.
6259 (update_context): Use __func__ in warnings.
6260
6261 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
6262
6263 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
6264 and tcp_close to net_open and net_close.
6265 (net_open): Accept "udp:" and "tcp:" specifications. Connect
6266 using UDP if requested. Don't try to disable Nagle on UDP
6267 sockets.
6268 * remote.c (remote_serial_open): New function. Warn about UDP.
6269 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
6270
6271 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
6272
6273 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
6274
6275 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
6276
6277 * configure.tgt: Remove sh-hms target.
6278 * MAINTAINERS: Don't list sh-hms as a separate target.
6279
6280 2002-05-13 Jim Blandy <jimb@redhat.com>
6281
6282 Add first preprocessor macro-expansion files.
6283 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
6284 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
6285 (splay_tree_h, macroexp_h, macrotab_h): New variable.
6286 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
6287 (COMMON_OBS): Add macrotab.o, macroexp.o.
6288 (macroexp.o, macrotab.o): New rules.
6289
6290 2002-05-13 Andrew Cagney <ac131313@redhat.com>
6291
6292 * config/m88k/tm-m88k.h: Update copyright.
6293 (m88k_target_write_pc): Declare
6294 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
6295 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
6296 (SHIFT_INST_REGS): Update definition.
6297 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
6298 using old definition of TARGET_WRITE_PC.
6299 * regcache.c (generic_target_write_pc): Delete code handling
6300 NNPC_REGNUM.
6301 * gdbarch.sh (NNPC_REGNUM): Delete.
6302 * gdbarch.h, gdbarch.c: Regenerate.
6303
6304 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
6305
6306 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
6307 builtin reg number.
6308
6309 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
6310
6311 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
6312 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
6313 (gen_address_of, gen_struct_ref, gen_repeat): Use type
6314 access macros.
6315 * c-typeprint.c (cp_type_print_method_args): Likewise.
6316 (c_type_print_args): Likewise.
6317 * d10v-tdep.c (d10v_push_arguments): Likewise.
6318 (d10v_extract_return_value): Likewise.
6319 * expprint.c (print_subexp): Likewise.
6320 * gdbtypes.c (lookup_primitive_typename): Likewise.
6321 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
6322 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
6323 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
6324 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
6325 (TYPE_VECTOR): Likewise.
6326 * hpread.c (hpread_read_struct_type)
6327 (fix_static_member_physnames, fixup_class_method_type)
6328 (hpread_type_lookup): Likewise.
6329 * mdebugread.c (parse_symbol, parse_type): Likewise.
6330 * p-lang.c (is_pascal_string_type): Likewise.
6331 * valops.c (hand_function_call): Likewise.
6332 * x86-64-tdep.c (classify_argument): Likewise.
6333
6334 * hpread.c (hpread_read_function_type)
6335 (hpread_read_doc_function_type): Call replace_type.
6336 * dstread.c (create_new_type): Delete.
6337 (decode_dst_structure, process_dst_function): Call alloc_type.
6338 Use type access macros.
6339
6340 2002-05-12 Mark Kettenis <kettenis@gnu.org>
6341
6342 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
6343 the're not supported by the current architecture.
6344 (i387_fill_fxsave): Likewise.
6345
6346 2002-05-12 Fred Fish <fnf@redhat.com>
6347
6348 * symfile.c (default_symfile_offsets): Arrange for uninitialized
6349 sect_index_xxx members to index the first slot in section_offsets
6350 if all of the section_offsets are zero.
6351
6352 2002-05-12 Mark Kettenis <kettenis@gnu.org>
6353
6354 * configure.tgt (sparc-*openbsd): Remove entry accidentially
6355 checked in with last change.
6356
6357 2002-05-12 Mark Kettenis <kettenis@gnu.org>
6358
6359 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
6360 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
6361 config.sub.
6362
6363 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
6364
6365 * Makefile.in: Update dependencies.
6366
6367 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6368
6369 * language.c (local_hex_string_custom): Simplify. Do not depend
6370 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
6371
6372 * memattr.c (mem_info_command): Replace calls to
6373 longest_local_hex_string and longest_local_hex_string_custom.
6374 * buildsym.c (make_blockvector): Ditto.
6375 * solib.c (info_sharedlibrary_command): Ditto.
6376 * tracepoint.c (tracepoints_info): Ditto.
6377 * symtab.c (print_msymbol_info): Ditto.
6378
6379 * language.c (local_hex_string): Delete.
6380 (local_hex_string_custom): Delete.
6381 (longest_local_hex_string): Rename to local_hex_string.
6382 (longest_local_hex_string_custom): Rename to
6383 local_hex_string_custom.
6384 * language.h (local_hex_string): Change parameter type to LONGEST.
6385 (local_hex_string_custom): Ditto.
6386 (longest_local_hex_string): Delete declaration.
6387 (longest_local_hex_string_custom): Ditto.
6388
6389 * solib.c: Update copyright.
6390 * memattr.c: Update copyright.
6391
6392 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6393
6394 * arch-utils.h (legacy_register_to_value): Declare.
6395 (legacy_value_to_register): Declare.
6396 (legacy_convert_register_p): Declare.
6397 * arch-utils.c (legacy_register_to_value): New function.
6398 (legacy_value_to_register): New function.
6399 (legacy_convert_register_p): New function.
6400
6401 * gdbarch.sh (REGISTER_TO_VALUE): Define.
6402 (VALUE_TO_REGISTER): Define.
6403 (CONVERT_REGISTER_P): Define.
6404 * gdbarch.h, gdbarch.c: Regenerate.
6405
6406 * valops.c (value_assign): Use CONVERT_REGISTER_P and
6407 VALUE_TO_REGISTER.
6408 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
6409 CONVERT_REGISTER_P.
6410
6411 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
6412 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
6413
6414 * Makefile.in: Update dependencies for valops.c.
6415 * valops.c: Include "gdb_assert.h".
6416 (typecmp): Skip THIS parameter to methods.
6417 (find_method_list): Remove static_memfuncp argument,
6418 update callers. Check for stub methods.
6419 (find_value_oload_method_list): Don't set *static_memfuncp.
6420 (find_overload_match): Don't check for stub methods. Assert
6421 that methods are not stubbed. Handle static methods.
6422 (value_find_oload_method_list): Remove static_memfuncp argument.
6423 * gdbtypes.c (check_stub_method): Do not add THIS pointer
6424 to the argument list for static stub methods.
6425 * value.h (value_find_oload_method_list): Update prototype.
6426
6427 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6428
6429 * arch-utils.h (generic_register_size): Declare.
6430 (generic_register_raw_size, generic_register_virtual_size): Delete
6431 declarations.
6432 * arch-utils.c (generic_register_raw_size): Delete.
6433 (generic_register_size): New function.
6434 (generic_register_virtual_size): Delete.
6435
6436 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
6437 default generic_register_size.
6438 * gdbarch.h, gdbarch.c: Re-generate.
6439
6440 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
6441 register_virtual_size.
6442 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
6443 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6444
6445 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6446
6447 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
6448 * gdbarch.h, gdbarch.c: Regenerate.
6449 * gnu-v3-abi.c: Update copyright.
6450 (vtable_address_point_offset): Update.
6451 (gnuv3_rtti_type): Update.
6452 (gnuv3_baseclass_offset): Update.
6453 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
6454 (init_fetch_link_map_offsets): Update.
6455 * remote.c (get_remote_state): Update.
6456
6457 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
6458
6459 * TODO: Remove value_headof/value_from_vtable_info comment.
6460 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
6461 * values.c (value_headof, value_from_vtable_info): Delete.
6462 * value.h (value_from_vtable_info): Delete prototype.
6463
6464 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6465
6466 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
6467 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
6468 $(gdb_regex_h).
6469 (gdb_assert_h): Define.
6470 (gdb_wait_h): Define.
6471 (gdb_regex_h): Define.
6472
6473 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
6474
6475 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
6476 * linespec.c (find_methods): Handle GCC 3.x template constructors.
6477
6478 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6479
6480 * nbsd-tdep.c: Fix comment.
6481
6482 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6483
6484 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
6485 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
6486 (nbsd-tdep.o): New dependency list.
6487 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
6488 nbsd-tdep.h.
6489 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
6490 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
6491 * nbsd-tdep.c: New file.
6492 * nbsd-tdep.h: New file.
6493 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
6494 nbsd-tdep.h.
6495 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
6496 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
6497 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
6498 * config/sh/nbsd.mt (TDEPFILES): Ditto.
6499
6500 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6501
6502 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
6503 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
6504 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
6505 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
6506 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
6507 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
6508
6509 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6510
6511 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
6512 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6513 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
6514 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
6515 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
6516 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
6517 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
6518
6519 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6520
6521 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
6522 fetch_elfcore_registers to...
6523 * i386nbsd-tdep.c: ...here.
6524 (i386nbsd_use_struct_convention): Rename to...
6525 (i386nbsd_aout_use_struct_convention): ...this.
6526 (i386nbsd_supply_reg): New function.
6527 (i386nbsd_fill_reg): New function.
6528 (fetch_core_registers): Use i386nbsd_supply_reg.
6529 (fetch_elfcore_registers): Likewise.
6530 (_initialize_i386nbsd_tdep): New function.
6531 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
6532 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6533 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
6534 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
6535 (i386nbsd_aout_use_struct_convention): ...this.
6536
6537 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6538
6539 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
6540 (store_inferior_registers): Use shnbsd_fill_reg.
6541 * shnbsd-tdep.c (sh_nbsd_supply_registers,
6542 sh_nbsd_supply_register): Collapse into...
6543 (shnbsd_supply_reg): ...this.
6544 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
6545 (shnbsd_fill_reg): ...this.
6546 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
6547 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
6548 (fetch_core_registers): Use shnbsd_supply_reg.
6549 (fetch_elfcore_registers): Use shnbsd_supply_reg.
6550 (sh_nbsd_core_fns): Rename to...
6551 (shnbsd_core_fns): ...this.
6552 (sh_nbsd_elfcore_fns): Rename to...
6553 (shnbsd_elfcore_fns): ...this.
6554 (sh_nbsd_init_abi): Rename to...
6555 (shnbsd_init_abi): ...this.
6556 (_initialize_sh_nbsd_tdep): Rename to...
6557 (_initialize_shnbsd_tdep): ...this.
6558 * shnbsd-tdep.h (sh_nbsd_supply_registers,
6559 sh_nbsd_supply_register, sh_nbsd_fill_registers,
6560 sh_nbsd_fill_register): Remove prototypes.
6561 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
6562
6563 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6564
6565 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
6566 (i387-nat.o): Delete dependency list.
6567 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
6568 (x86-64-linux-nat.o): Likewise.
6569 * i387-nat.c: Delete file, moving contents to...
6570 * i387-tdep.c: ...here.
6571 * i387-nat.h: Rename...
6572 * i387-tdep.h: ...to this.
6573 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
6574 * i386-linux-nat.c: Likewise.
6575 * i386bsd-nat.c: Likewise.
6576 * i386gnu-nat.c: Likewise.
6577 * i386nbsd-nat.c: Likewise.
6578 * i386v4-nat.c: Likewise.
6579 * x86-64-linux-nat.c: Likewise.
6580 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
6581 * config/i386/go32.mh (NATDEPFILES): Likewise.
6582 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
6583 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
6584 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
6585 * config/i386/linux.mh (NATDEPFILES): Likewise.
6586 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
6587 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6588 * config/i386/obsd.mh (NATDEPFILES): Likewise.
6589 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
6590
6591 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6592
6593 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
6594 (alphanbsd-nat.o): Remove dependency list.
6595 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
6596 * alphanbsd-nat.c: Delete. Contents moved to...
6597 * alphanbsd-tdep.c: ...here.
6598 (_initialize_alphanbsd_tdep): Register core functions.
6599 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
6600
6601 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6602
6603 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
6604 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
6605 (alphanbsd-nat.o): Likewise.
6606 (alphabsd-tdep.o): New dependency list.
6607 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
6608 (fill_gregset): Use alphabsd_fill_reg.
6609 (supply_fpregset): Use alphabsd_supply_fpreg.
6610 (fill_fpregset): Use alphabsd_fill_fpreg.
6611 (fetch_inferior_registers): Use struct reg and struct fpreg
6612 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
6613 and alphabsd_supply_fpreg.
6614 (store_inferior_registers): Use struct reg and struct fpreg
6615 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
6616 and alphabsd_fill_fpreg.
6617 * alphabsd-tdep.c: New file.
6618 * alphabsd-tdep.h: New file.
6619 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
6620 (fetch_elfcore_registers): Use alphabsd_supply_reg and
6621 alphabsd_supply_fpreg.
6622 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
6623 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
6624
6625 2002-05-11 Eric Christopher <echristo@redhat.com>
6626
6627 * mips-tdep.c (mips_double_register_type): Fix thinko.
6628 (mips_single_register_type): Ditto.
6629 * MAINTAINERS: Add self.
6630
6631 2002-05-11 Mark Kettenis <kettenis@gnu.org>
6632
6633 * i387-nat.c (i387_supply_register, i387_fill_fsave,
6634 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
6635 right thing on architectures with different endianness and/or
6636 integer sizes.
6637
6638 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
6639
6640 From Christian Limpach <chris@Pin.LU>
6641 * configure.in: Change sed expression which comments out
6642 NATDEPFILES to also comment out continuation lines.
6643 * configure: Regenerate.
6644
6645 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
6646
6647 * sh-tdep.c: Clean up code erroneously reintroduced by previous
6648 big patch.
6649
6650 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
6651
6652 * sh-tdep.c: Include correct file.
6653
6654 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
6655
6656 New support for sh64-elf (sh5) target.
6657
6658 * configure.tgt: For sh64-elf target, default to sh-elf.
6659
6660 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
6661 (struct gdbarch_tdep): Add new fields for new registers and ABI
6662 info.
6663
6664 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
6665 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
6666 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
6667 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
6668 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
6669 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
6670 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
6671 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
6672 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
6673 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
6674 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
6675 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
6676 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
6677 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
6678 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
6679 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
6680 sh64_get_gdb_regnum, sh64_media_reg_base_num,
6681 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
6682 sign_extend, sh64_nofp_frame_init_saved_regs,
6683 sh64_init_extra_frame_info, sh64_get_saved_register,
6684 sh64_extract_struct_value_address, sh64_pop_frame,
6685 sh64_push_arguments, sh64_extract_return_value,
6686 sh64_store_return_value, sh64_show_media_regs,
6687 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
6688 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
6689 sh_sh64_register_virtual_type,
6690 sh_sh64_register_convert_to_virtual,
6691 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
6692 sh64_register_read, sh64_pseudo_register_write,
6693 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
6694 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
6695 sh64_do_pseudo_register, sh_compact_do_registers_info,
6696 sh64_do_registers_info, sh_gdbarch_init): New functions.
6697
6698 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
6699
6700 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
6701
6702 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
6703
6704 * linespec.c (decode_line_1): Check for a double quote after
6705 a filename correctly.
6706
6707 2002-05-10 Jim Blandy <jimb@redhat.com>
6708
6709 Properly track the size of the current objfile's .debug_line section.
6710 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
6711 (DWARF_LINE_SIZE): New macro.
6712 (dwarf2_build_psymtabs_hard): Record the line section's size in
6713 the partial symbol table.
6714 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
6715 symbol table.
6716
6717 2002-05-10 Petr Sorfa <petrs@caldera.com>
6718
6719 * ia64-tdep.c: Handle breakpoints on L instruction type
6720 in MLX instruction bundle by moving the breakpoint to
6721 the third slot (X instruction type) as L holds only data.
6722
6723 2002-05-10 Kevin Buettner <kevinb@redhat.com>
6724
6725 * dbxread.c (discarding_local_symbols_complaint): New complaint.
6726 (process_one_symbol): Complain about discarding local symbols
6727 due to a misplaced N_LBRAC entry.
6728
6729 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
6730
6731 From Daniel Berlin <dan@cgsoftware.com>
6732 * linespec.c (find_toplevel_char): '<' and '>' also increase and
6733 decrease the depth we are at, in the case of templates.
6734
6735 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
6736
6737 * mips-tdep.c (mips_float_register_type): New function.
6738 (mips_double_register_type): New function.
6739 (mips_print_register): Use them.
6740 (do_fp_register_row): Likewise.
6741
6742 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
6743
6744 * signals/signals.c (signals): Remove conditional compilation around
6745 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
6746 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
6747
6748 2002-05-09 Michael Snyder <msnyder@redhat.com>
6749
6750 * remote-rdp.c (remote_rdp_can_run): Remove.
6751
6752 2002-05-09 Tom Tromey <tromey@redhat.com>
6753
6754 * jv-valprint.c (java_val_print): Handle `char' as a special case
6755 of TYPE_CODE_INT.
6756
6757 2002-05-09 Michael Snyder <msnyder@redhat.com>
6758
6759 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
6760 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
6761 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
6762 str r(0123),[sp,#nn].
6763 (arm_skip_prologue): Ditto. Also make disassembly
6764 order-independent by placing it in a loop.
6765
6766 2002-05-06 Michael Snyder <msnyder@redhat.com>
6767
6768 * stabsread.c (read_type): Add recognition for new attribute:
6769 "@V;" means that an array type is actually a vector.
6770 This is analogous to the vector flag that's been added to dwarf2.
6771
6772 2002-05-09 Mark Kettenis <kettenis@gnu.org>
6773
6774 * i386-tdep.h (i386_abi): New enum.
6775 (struct gdbarch_tdep): Replace os_ident member with abi.
6776 (i386_gdbarch_register_os_abi): New prototype.
6777 * i386-tdep.c (i386_abi_names): New array.
6778 (process_note_abi_tag_sections): Removed.
6779 (process_note_sections): New function.
6780 (i386_elf_abi_from_note, i386_elf_abi): New functions.
6781 (struct i386_abi_handler): New struct.
6782 (i386_abi_handler_list): New variable.
6783 (i386_gdbarch_register_os_abi): New function.
6784 (i386_gdbarch_init): Adapt for the changes given above.
6785
6786 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
6787
6788 * gregset.h: Say "GNU/Linux".
6789
6790 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
6791
6792 * gdbtypes.c : Add new builtin type for 64 bit vectors.
6793 (build_gdbtypes): Build builtin_type_v2_float.
6794 (_initialize_gdbtypes): Register new builtin type.
6795
6796 2002-05-08 Andrew Cagney <ac131313@redhat.com>
6797
6798 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
6799 (clear_gdbarch_swap): New function.
6800 (initialize_non_multiarch): Call.
6801 (gdbarch_update_p): Before calling init(), swap out and clear the
6802 existing architecture.
6803 * gdbarch.c: Regenerate.
6804
6805 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6806
6807 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
6808 alphanbsd-tdep.c.
6809
6810 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6811
6812 * sh-nbsd-nat.c: Rename to...
6813 * shnbsd-nat.c: ...this.
6814 * sh-nbsd-tdep.c: Rename to...
6815 * shnbsd-tdep.c: ...this.
6816 * sh-nbsd-tdep.h: Rename to...
6817 * shnbsd-tdep.h: ...this.
6818 * config/sh/nbsd.mh: Use shnbsd-nat.o.
6819 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
6820
6821 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
6822
6823 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
6824 concatenation for command help messages.
6825
6826 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6827
6828 * NEWS: Note new sh*-*-netbsdelf* configuration.
6829 * configure.host: Set gdb_host_cpu to sh for all sh*.
6830 (sh*-*-netbsdelf*): New host.
6831 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
6832 (sh*-*-netbsdelf*): New target.
6833 * sh-nbsd-nat.c: New file.
6834 * sh-nbsd-tdep.c: New file.
6835 * sh-nbsd-tdep.h: New file.
6836 * config/sh/nbsd.mh: New file.
6837 * config/sh/nbsd.mt: New file.
6838 * config/sh/nm-nbsd.h: New file.
6839 * config/sh/tm-nbsd.h: New file.
6840
6841 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6842
6843 * sh-tdep.c (sh_osabi_names): Declare.
6844 (process_note_abi_tag_sections): New function.
6845 (get_elfosabi): Ditto.
6846 (sh_gdbarch_register_os_abi): Ditto.
6847 (sh_dump_tdep): Ditto.
6848 _initialize_sh_tdep): Use gdbarch_register to register
6849 sh_gdbarch_init and sh_dump_tdep.
6850 * config/sh/tm-sh.h (sh_osabi): Declare.
6851 (gdbarch_tdep): Add sh_osabi and osabi_name members.
6852
6853 2002-05-07 Andrew Cagney <ac131313@redhat.com>
6854
6855 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
6856 (thumb_scan_prologue): Ditto.
6857 (arm_find_callers_reg): Ditto.
6858 (arm_frame_chain): Ditto.
6859 (arm_init_extra_frame_info): Ditto.
6860 (arm_frame_saved_pc): Ditto.
6861 (arm_pop_frame): Ditto.
6862 (arm_push_return_address): New function.
6863 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
6864 call_dummy_location, call_dummy_breakpoint_offset_p,
6865 call_dummy_breakpoint_offset, call_dummy_p,
6866 call_dummy_stack_adjust_p, call_dummy_words,
6867 sizeof_call_dummy_words, call_dummy_start_offset,
6868 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
6869 call_dummy_address, push_return_address and push_dummy_frame for
6870 generic dummy frames.
6871
6872 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
6873
6874 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
6875 size computation for alloca.
6876 (sh_fp_frame_init_saved_regs): Likewise.
6877
6878 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
6879
6880 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
6881 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
6882 * arm-tdep.c (arm_store_return_value): Use them.
6883 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
6884 * remote-rdp.c (remote_rdp_fetch_register): Use
6885 ARM_MAX_REGISTER_RAW_SIZE.
6886 (remote_rdp_store_register): Likewise.
6887
6888 2002-05-07 Michal Ludvig <mludvig@suse.cz>
6889
6890 * dwarf2cfi.c: Code cleanup, removed unused variables,
6891 added default labels to switch {} statements.
6892 * x86-64-tdep.c: Ditto.
6893 * x86-64-linux-nat.c: Ditto.
6894
6895 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
6896
6897 * solib.h: Protect against multiple inclusion.
6898
6899 2002-05-06 Jim Blandy <jimb@redhat.com>
6900
6901 Add first preprocessor macro-expansion files.
6902 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
6903 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
6904 (splay_tree_h, macroexp_h, macrotab_h): New variable.
6905 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
6906 (COMMON_OBS): Add macrotab.o, macroexp.o.
6907 (macroexp.o, macrotab.o): New rules.
6908
6909 Separate the job of reading the line number info statement program
6910 header (...expialidocious) out into its own function.
6911 * dwarf2read.c (struct line_head, struct filenames, struct
6912 directories): Replace with...
6913 (struct line_header): New structure, containing the full
6914 contents of the statement program header, including the
6915 include directory and file name tables.
6916 (read_file_scope): If we have line number info, instead of just
6917 calling dwarf_decode_lines to do all the work, call
6918 dwarf_decode_line_header first to get a `struct line_header'
6919 containing the data in the statement program header, and then
6920 pass that to dwarf_decode_lines, which will pick up where that
6921 left off. Be sure to clean up the `struct line_header' object.
6922 (dwarf_decode_line_header, free_line_header, add_include_dir,
6923 add_file_name): New functions.
6924 (dwarf_decode_lines): Move all the code to read the statement
6925 program header into dwarf_decode_line_header. Take the line
6926 header it built as the first argument, instead of the offset to
6927 the compilation unit's line number info. Use the new `struct
6928 line_header' type instead of the old structures. No need to do
6929 cleanups here now, since we don't allocate anything.
6930 (dwarf2_statement_list_fits_in_line_number_section,
6931 dwarf2_line_header_too_long): New complaints.
6932
6933 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
6934
6935 * gdbtypes.c (init_vector_type): New function.
6936 (build_builtin_type_vec128): Simplify the representation of SIMD
6937 registers.
6938 (build_gdbtypes): Initialize new builtin vector types.
6939 (_initialize_gdbtypes): Register new vector types with gdbarch.
6940 (builtin_type_v4_float, builtin_type_v4_int32,
6941 builtin_type_v8_int16, builtin_type_v16_int8,
6942 builtin_type_v2_int32, builtin_type_v4_int16,
6943 builtin_type_v8_int8): New (renamed) SIMD types.
6944
6945 2002-05-06 Mark Kettenis <kettenis@gnu.org>
6946
6947 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
6948 (i387_fill_fxsave): Likewise.
6949
6950 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
6951
6952 * alpha-tdep.c (alpha_extract_return_value): Don't use
6953 non-constant array size in prototype.
6954
6955 2002-05-04 Andrew Cagney <ac131313@redhat.com>
6956
6957 From Brian Taylor <briant at model dot com>:
6958 * ui-out.c (ui_out_field_core_addr): Use the function
6959 longest_local_hex_string_custom'to format addresses > 32 bits
6960 wide.
6961
6962 * ui-out.c (ui_out_field_core_addr): Update comment.
6963
6964 2002-05-04 Andrew Cagney <ac131313@redhat.com>
6965
6966 * stack.c (select_and_print_frame): Make static. Delete the
6967 parameter `level'.
6968 (func_command): Update call.
6969 (select_frame_command): Delete code computing the frame level.
6970 * frame.h (select_and_print_frame): Delete declaration.
6971
6972 2002-05-04 Andrew Cagney <ac131313@redhat.com>
6973
6974 * sparc-tdep.c (sparc_get_saved_register): Comment why
6975 get_prev_frame call is safe.
6976
6977 2002-05-04 Andrew Cagney <ac131313@redhat.com>
6978
6979 * frame.h (select_frame): Delete level parameter.
6980 * stack.c (select_frame): Update. Use frame_relative_level to
6981 obtain the frame's level.
6982 (select_and_print_frame): Update call.
6983 (select_frame_command): Ditto.
6984 (up_silently_base): Ditto.
6985 (down_silently_base): Ditto.
6986 * ocd.c (ocd_start_remote): Ditto.
6987 * remote-rdp.c (remote_rdp_open): Ditto.
6988 * remote-mips.c (mips_initialize): Ditto.
6989 (common_open): Ditto.
6990 * remote-e7000.c (e7000_start_remote): Ditto.
6991 * m3-nat.c (select_thread): Ditto.
6992 * hppa-tdep.c (child_get_current_exception_event): Ditto.
6993 (child_get_current_exception_event): Ditto.
6994 * varobj.c (varobj_create): Ditto.
6995 (varobj_update): Ditto.
6996 (c_value_of_root): Ditto.
6997 * tracepoint.c (finish_tfind_command): Ditto.
6998 * corelow.c (core_open): Ditto.
6999 * arch-utils.c (generic_prepare_to_proceed): Ditto.
7000 * thread.c (info_threads_command): Ditto.
7001 (switch_to_thread): Ditto.
7002 * infrun.c (normal_stop): Ditto.
7003 (restore_selected_frame): Ditto.
7004 (restore_inferior_status): Ditto.
7005 * breakpoint.c (insert_breakpoints): Ditto.
7006 (watchpoint_check): Ditto.
7007 (bpstat_stop_status): Ditto.
7008 (do_enable_breakpoint): Ditto.
7009 * blockframe.c (flush_cached_frames): Ditto.
7010 (reinit_frame_cache): Ditto.
7011
7012 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7013
7014 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
7015 maintainer.
7016
7017 2002-05-04 Jim Blandy <jimb@redhat.com>
7018
7019 * gdbtypes.c (replace_type): Doc fix.
7020
7021 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7022
7023 * valprint.c (strcat_longest): Delete commented out function.
7024 Update copyright.
7025
7026 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7027
7028 * MAINTAINERS: Mark a29k as deleted.
7029 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
7030 Move new configurations to the top.
7031 * configure.tgt: Remove a29k.
7032 * config/a29k/tm-vx29k.h: Delete.
7033 * config/a29k/vx29k.mt: Delete.
7034 * config/a29k/tm-a29k.h: Delete.
7035 * config/a29k/a29k-udi.mt: Delete.
7036 * config/a29k/a29k.mt: Delete.
7037 * a29k-tdep.c: Delete.
7038 * remote-udi.c: Delete.
7039 * remote-mm.c: Delete.
7040 * remote-eb.c: Delete.
7041 * remote-adapt.c: Delete.
7042 * Makefile.in: Remove obsolete code.
7043 * config/s390/s390x.mt: Ditto.
7044 * config/s390/s390.mt: Ditto.
7045 * config/sparc/sparclynx.mh: Ditto.
7046 * config/sparc/linux.mh: Ditto.
7047 * config/pa/hppaosf.mh: Ditto.
7048 * config/pa/hppabsd.mh: Ditto.
7049 * config/ns32k/nbsd.mt: Ditto.
7050 * config/mips/vr5000.mt: Ditto.
7051 * config/m68k/sun3os4.mh: Ditto.
7052 * config/m68k/nbsd.mt: Ditto.
7053 * config/m68k/m68klynx.mh: Ditto.
7054 * config/m32r/m32r.mt: Ditto.
7055 * config/i386/x86-64linux.mt: Ditto.
7056 * config/i386/nbsdelf.mt: Ditto.
7057 * config/i386/nbsd.mt: Ditto.
7058 * config/i386/i386lynx.mh: Ditto.
7059
7060 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7061
7062 * target.c (debug_print_register): New function. Handle oversize
7063 registers.
7064 (debug_to_fetch_registers): Call.
7065 (debug_to_store_registers): Call.
7066
7067 2002-05-03 Jim Blandy <jimb@redhat.com>
7068
7069 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
7070 (read_type): Doc fix.
7071 * gdbtypes.c (replace_type): Doc fix.
7072
7073 * stabsread.c (multiply_defined_struct): New complaint.
7074 (read_struct_type): If the type we were passed isn't empty, or
7075 incomplete, don't read the new struct type into it; complain,
7076 and return the original type unchanged. Take a new `type_code'
7077 argument, which is the type code for the new type.
7078 (read_type): Rather than storing the type's type code here, pass
7079 it as an argument to read_struct_type, and let that take care of
7080 storing it. That way, we don't overwrite the original type code,
7081 so read_struct_type can use it to decide whether we're overwriting
7082 something we shouldn't.
7083 (complain_about_struct_wipeout): New function.
7084
7085 2002-05-03 Andrew Cagney <ac131313@redhat.com>
7086
7087 * gdbarch.sh: Assert that gdbarch is non-NULL.
7088 * gdbarch.c: Regenerate.
7089
7090 2002-05-03 Jason Merrill <jason@redhat.com>
7091
7092 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
7093 and return NULL.
7094
7095 2002-05-03 Michal Ludvig <mludvig@suse.cz>
7096
7097 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
7098 (x86_64_dwarf2gdb_regno_map_length),
7099 (x86_64_dwarf2_reg_to_regnum): Added.
7100 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
7101 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
7102 (_initialize_x86_64_tdep): Synced with the change above.
7103 (x86_64_skip_prologue): Reformulated message.
7104
7105 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
7106
7107 * f-exp.y: Also use new prev_lexptr variable
7108 to improve error reporting. Based on Michael Snyder
7109 2002-04-24 dated patch to c-exp.y.
7110 * jv-exp.y: Likewise.
7111 * m2-exp.y: Likewise.
7112
7113 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
7114
7115 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
7116 we are dealing with vectors.
7117
7118 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7119
7120 * config/m68k/tm-nbsd.h: Obvious fix,
7121 correct machine name.
7122
7123 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7124
7125 * p-typeprint.c (pascal_type_print_base): Add support
7126 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
7127
7128 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7129
7130 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
7131 for fondamental pascal 'char' type.
7132
7133 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7134
7135 * p-lang.h (is_pascal_string_type): Declaration changed,
7136 new sixth argument of type char ** added.
7137 * p-lang.c (is_pascal_string_type): Implementation
7138 changed. Args length_pos, length_size, string_pos, char_size
7139 can now be NULL. New argument arrayname set to the field
7140 name of the char array. Return value set to char array
7141 field index plus one.
7142 * p-valprint.c (pascal_val_print): Adapt to new declaration of
7143 is_pascal_string_type function.
7144
7145 2002-05-02 Andrew Cagney <cagney@redhat.com>
7146
7147 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
7148 <cagney@redhat.com> change.
7149 * gdbarch.c: Regenerate.
7150
7151 2002-05-02 Andrew Cagney <cagney@redhat.com>
7152
7153 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
7154 before probing for a new one. Detect errorenous gdbarch_init
7155 functions.
7156 * gdbarch.c: Regenerate.
7157
7158 2002-05-01 Andrew Cagney <cagney@redhat.com>
7159
7160 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
7161 * config/mcore/tm-mcore.h: Ditto. Update copyright.
7162 * config/v850/tm-v850.h: Ditto. Update copyright.
7163
7164 2002-04-30 Andrew Cagney <ac131313@redhat.com>
7165
7166 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
7167 current_gdbarch.
7168
7169 2002-04-30 Michael Snyder <msnyder@redhat.com>
7170
7171 * arm-tdep.c: Whitespace clean-ups.
7172 (arm_skip_prologue): Fix thinko; two lines
7173 should have been removed as part of 4/24 change.
7174
7175 2002-04-30 Kevin Buettner <kevinb@redhat.com>
7176
7177 * rs6000-tdep.c: Added comment describing how fpscr register
7178 numbers were chosen.
7179
7180 2002-04-30 Michael Snyder <msnyder@redhat.com>
7181
7182 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
7183
7184 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
7185
7186 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
7187 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
7188 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
7189
7190 2002-04-29 Kevin Buettner <kevinb@redhat.com>
7191
7192 From Louis Hamilton <hamilton@redhat.com>:
7193 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
7194 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
7195 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
7196 not bfd-private xcoff data, to determine wordsize.
7197 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
7198
7199 2002-04-29 Andrew Cagney <ac131313@redhat.com>
7200
7201 GDB 5.2 released from 5.2 branch.
7202
7203 2002-04-29 Michal Ludvig <mludvig@suse.cz>
7204
7205 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
7206 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
7207 (x86_64_register_info_table): Added comments with register numbers.
7208
7209 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
7210
7211 * rs6000-tdep.c (rs6000_extract_return_value,
7212 rs6000_store_return_value): Handle returning vectors.
7213 (rs6000_gdbarch_init): Use
7214 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
7215 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
7216 New function.
7217 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
7218 vectors.
7219 (ppc_sysv_abi_push_arguments): Handle vector parameters.
7220 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
7221
7222 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
7223
7224 * hpread.c (hpread_psymtab_to_symtab_1,
7225 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
7226 with fprintf_unfiltered (gdb_stderr,...).
7227
7228 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
7229
7230 * remote-array.c (printf_monitor, write_monitor,
7231 array_insert_breakpoint, array_remove_breakpoint ):
7232 Replace fprintf (stderr,...
7233 with fprintf_unfiltered (gdb_stderr,....
7234 * remote-es.c: Likewise.
7235 * remote-os9k.c: Likewise.
7236 * remote-st.c: Likewise.
7237
7238 2002-04-28 Andreas Schwab <schwab@suse.de>
7239
7240 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
7241 linux-proc.o and gcore.o.
7242
7243 2002-04-26 Michal Ludvig <mludvig@suse.cz>
7244
7245 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
7246 code without frame pointers.
7247
7248 2002-04-26 Andrew Cagney <ac131313@redhat.com>
7249
7250 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
7251 ON_STACK is needed.
7252
7253 2002-04-26 Ben Elliston <bje@redhat.com>
7254
7255 * target.c (do_xfer_memory): Correct reference to the new option
7256 "trust-readonly-sections".
7257
7258 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
7259
7260 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
7261 * gdbtypes.c (recursive_dump_type): Output the vector flag.
7262 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
7263 vectors.
7264 (read_array_type): Record the fact that this array type is really a
7265 vector (i.e. are passed in by value).
7266
7267 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
7268
7269 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
7270 * alpha-tdep.c (alpha_sigcontext_addr): New function.
7271 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
7272 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
7273 * alpha-linux-tdep.c: Include frame.h.
7274 (alpha_linux_sigcontext_addr): New function.
7275 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
7276 alpha_linux_sigcontext_addr.
7277 * alpha-osf1-tdep.c: Include gdbcore.h.
7278 (alpha_osf1_sigcontext_addr): New function.
7279 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
7280 alpha_osf1_sigcontext_addr.
7281 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
7282 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
7283
7284 2002-04-26 Andrew Cagney <ac131313@redhat.com>
7285
7286 * stack.c (selected_frame_level):
7287 (select_frame): Do not set selected_frame_level.
7288 * frame.h (selected_frame_level): Delete declaration.
7289
7290 2002-04-26 Andrew Cagney <ac131313@redhat.com>
7291
7292 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
7293 convert_from_func_ptr-addr when AIX / PowerOpen.
7294
7295 2002-04-25 Andrew Cagney <ac131313@redhat.com>
7296
7297 * valops.c (hand_function_call): Call
7298 generic_save_call_dummy_addr.
7299 * frame.h (generic_save_call_dummy_addr): Declare.
7300 * blockframe.c (struct dummy_frame): Add fields call_lo and
7301 call_hi.
7302 (generic_find_dummy_frame): Check for PC in range call_lo to
7303 call_hi instead of entry_point_address.
7304 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
7305 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
7306 (generic_save_call_dummy_addr): New function.
7307
7308 2002-04-24 David S. Miller <davem@redhat.com>
7309
7310 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
7311 sparc_skip_prologue.
7312 (sparc_skip_prologue): Kill frameless_p arg, and use line number
7313 information to find prologue when possible.
7314 (sparc_prologue_frameless_p): Call examine_prologue directly.
7315 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
7316 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
7317 second argument.
7318 (SKIP_PROLOGUE): Likewise.
7319
7320 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7321
7322 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
7323 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
7324 indicate that the condition it was testing is always true.
7325 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
7326 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
7327 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
7328
7329 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7330
7331 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
7332 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
7333 tdep->jb_pc and tdep->jb_elt_size.
7334 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
7335 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
7336 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
7337 * alpha-nat.c (get_longjmp_target): Remove.
7338 (JB_ELEMENT_SIZE): Ditto.
7339 (JB_PC): Ditto.
7340 * alpha-tdep.c (alpha_get_longjmp_target): New function.
7341 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
7342 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
7343 to alpha_get_longjmp_target.
7344 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
7345 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
7346 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
7347
7348 2002-04-25 Andrew Cagney <ac131313@redhat.com>
7349
7350 * README: Update to GDB 5.2.
7351
7352 2002-04-25 Andrew Cagney <ac131313@redhat.com>
7353
7354 * gdbarch.sh (LC_ALL): Set to `c'.
7355
7356 2002-04-25 Theodore A. Roth <troth@verinet.com>
7357
7358 * avr-tdep.c: Ran through gdb_indent.sh.
7359
7360 2002-04-25 Theodore A. Roth <troth@verinet.com>
7361
7362 * MAINTAINERS: Add myself as AVR maintainer.
7363 * NEWS: Note new target avr.
7364
7365 2002-04-25 Theodore A. Roth <troth@verinet.com>
7366
7367 * Makefile.in: Add support for AVR target.
7368 * configure.tgt: Add support for AVR target.
7369 * avr-tdep.c: New file
7370 * config/avr/avr.mt: New file.
7371
7372 2002-04-25 Theodore A. Roth <troth@verinet.com>
7373
7374 * MAINTAINERS: Add myself to write-after-approval.
7375
7376 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
7377
7378 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
7379 with fprintf_unfiltered (gdb_stderr,....
7380
7381 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
7382
7383 Fix PR gdb/508.
7384 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
7385
7386 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
7387
7388 * p-exp.y: Also use new prev_lexptr variable
7389 to improve error reporting. Based on Michael Snyder
7390 2002-04-24 dated patch to c-exp.y.
7391
7392 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7393
7394 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
7395 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
7396 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
7397 to 0.
7398 * config/alpha/tm-alpha.h: Remove forward decls of struct type
7399 and struct value.
7400 (FUNCTION_START_OFFSET): Remove.
7401 (BREAKPOINT): Ditto.
7402
7403 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7404
7405 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
7406 * NEWS: Ditto.
7407
7408 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7409
7410 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
7411 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
7412 alpha_linux_pc_in_sigtramp.
7413 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
7414 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
7415 alpha_osf1_pc_in_sigtramp.
7416 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
7417 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
7418 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
7419 alphafbsd_pc_in_sigtramp.
7420 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
7421 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
7422 alphanbsd_pc_in_sigtramp.
7423 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
7424 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
7425
7426 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7427
7428 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
7429
7430 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7431
7432 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
7433 alphanbsd-tdep.c.
7434 (alphanbsd-nat.o): New dependency list.
7435 (alphanbsd-tdep.o): Ditto.
7436 * NEWS: Note new native NetBSD/alpha configuration.
7437 * alphanbsd-nat.c: New file.
7438 * alphanbsd-tdep.c: Ditto.
7439 * configure.host (alpha*-*-netbsd*): New host.
7440 * configure.tgt (alpha*-*-netbsd*): New target.
7441 * config/alpha/nbsd.mh: New file.
7442 * config/alpha/nbsd.mt: Ditto.
7443 * config/alpha/nm-nbsd.h: Ditto.
7444 * config/alpha/tm-nbsd.h: Ditto.
7445
7446 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7447
7448 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
7449 (alpha-osf1-tdep.o): New dependency list.
7450 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
7451 and skip_sigtramp_frame members.
7452 * alpha-linux-tdep.c: Include gdbcore.h.
7453 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
7454 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
7455 * alpha-osf1-tdep.c: New file.
7456 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
7457 alpha-osf1-dep.c.
7458 (alpha_frame_past_sigtramp_frame): New function.
7459 (alpha_dynamic_sigtramp_offset): Ditto.
7460 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
7461 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
7462 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
7463 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
7464 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
7465 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
7466 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
7467 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
7468 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
7469 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
7470 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
7471 to find_solib_trampoline_target.
7472 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
7473 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
7474 (SKIP_TRAMPOLINE_CODE): Remove.
7475 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7476 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7477 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
7478 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
7479 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
7480 (PROC_SIGTRAMP_MAGIC): Ditto.
7481 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7482 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7483 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7484 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
7485 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
7486
7487 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7488
7489 * NEWS: Note that Alpha targets are now multi-arch.
7490
7491 2002-04-24 Michael Snyder <msnyder@redhat.com>
7492
7493 * parser-defs.h (prev_lexptr): New external variable.
7494 * parse.c (parse_exp_1): Set prev_lexptr to null before
7495 calling the language-specific parser.
7496 * c-exp.y (yylex): Set prev_lexptr to start of current token.
7497 (yyerror): Use prev_lexptr in error reporting.
7498
7499 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
7500
7501 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
7502 * gregset.h: If FILL_FPXREGSET is defined, provide
7503 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
7504 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
7505 is defined, call fill_fpxregset.
7506
7507 2002-04-24 Roland McGrath <roland@frob.com>
7508
7509 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
7510 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
7511 (supply_gregset, supply_fpregset): New functions.
7512
7513 * gnu-nat.c (gnu_find_memory_regions): New function.
7514 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
7515 (gnu_xfer_memory): Add a cast.
7516
7517 2002-04-24 Michael Snyder <msnyder@redhat.com>
7518
7519 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
7520 loop. Add handling for "str lr, [sp, #-4]!" and for saves
7521 of argument regs ("str r(0123), [r11, #-nn"]).
7522 (arm_skip_prologue): Better handling for frameless functions.
7523 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
7524 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
7525
7526 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
7527
7528 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
7529 NUM_PSEUDO_REGS can be used.
7530
7531 2002-04-24 Andrew Cagney <ac131313@redhat.com>
7532
7533 * arch-utils.h: Update copyright.
7534
7535 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
7536 * gdbarch.h, gdbarch.c: Re-generate.
7537
7538 * inferior.h (IN_SIGTRAMP): Delete definition.
7539 * arch-utils.c (legacy_pc_in_sigtramp): New function.
7540 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
7541
7542 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
7543 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
7544 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
7545 (find_proc_framesize): Ditto.
7546 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
7547 (alpha_init_extra_frame_info): Ditto.
7548 * infrun.c (handle_inferior_event): Ditto.
7549 (handle_inferior_event): Ditto.
7550 (check_sigtramp2): Ditto.
7551 * blockframe.c (create_new_frame): Ditto.
7552 (get_prev_frame): Ditto.
7553 * ppc-linux-tdep.c: Update comments.
7554 * i386-linux-tdep.c: Update comments.
7555 * breakpoint.c (bpstat_what): Update comment.
7556
7557 2002-04-24 David S. Miller <davem@redhat.com>
7558
7559 * i960-tdep.c (register_in_window_p): New function.
7560 (i960_find_saved_register): Use it instead of
7561 REGISTER_IN_WINDOW_P.
7562 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
7563
7564 * symtab.h (find_stab_function_addr): Kill extern.
7565 * minsyms.c (find_stab_function_addr): Remove from here...
7566 * dbxread.c: ... to here, and mark it static.
7567
7568 2002-04-20 David S. Miller <davem@redhat.com>
7569
7570 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
7571 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
7572
7573 2002-04-21 David S. Miller <davem@redhat.com>
7574
7575 * remote-vxsparc.c (vx_read_register): Fix typo, we want
7576 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
7577 (vx_write_register): Likewise.
7578
7579 2002-04-23 J. Brobecker <brobecker@gnat.com>
7580
7581 * source.c (is_regular_file): New function.
7582 (openp): Check wether file to open is a regular file
7583 to avoid opening directories.
7584
7585 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7586
7587 * findvar.c (extract_signed_integer): Cast printf argument
7588 to suppress format warning.
7589 (extract_unsigned_integer): Likewise.
7590 * infcmd.c (registers_info): Likewise.
7591 * top.c (get_prompt_1): Likewise.
7592 * valops.c (value_assign): Likewise.
7593 * valprint.c (print_decimal): Likewise.
7594
7595 2002-04-22 H.J. Lu (hjl@gnu.org)
7596
7597 * c-exp.y (typebase): Support
7598
7599 [long|long long|short] [signed|unsigned] [int|]
7600
7601 and
7602
7603 signed [long|long long|short] int
7604
7605 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7606
7607 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
7608 and vax-tdep.h.
7609 * vax-tdep.h: New file.
7610 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
7611 Make several routines static.
7612 (vax_get_saved_register): New function.
7613 (vax_gdbarch_init): New function.
7614 (_initialize_vax_tdep): Register vax_gdbarch_init.
7615 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
7616 Remove macros now under the control of gdbarch.
7617
7618 2002-04-22 Michael Snyder <msnyder@redhat.com>
7619
7620 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
7621 Some whitespace and coding standards tweaks.
7622
7623 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7624
7625 * vax-tdep.c: Include regcache.h.
7626 (vax_call_dummy_words): New.
7627 (sizeof_vax_call_dummy_words): New.
7628 (vax_fix_call_dummy): New function.
7629 (vax_saved_pc_after_call): Ditto.
7630 * config/vax/tm-vax.h: Don't include regcache.h.
7631 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
7632 (CALL_DUMMY): Remove.
7633 (CALL_DUMMY_WORDS): Define.
7634 (SIZEOF_CALL_DUMMY_WORDS): Define.
7635 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
7636
7637 2002-04-18 Michael Snyder <msnyder@redhat.com>
7638
7639 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
7640
7641 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7642
7643 * vax-tdep.c (vax_frame_chain): New function.
7644 (vax_push_dummy_frame): Ditto.
7645 (vax_pop_frame): Ditto.
7646 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
7647 (FRAMELESS_FUNCTION_INVOCATION): Use
7648 generic_frameless_function_invocation_not.
7649 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
7650 (POP_FRAME): Use vax_pop_frame.
7651
7652 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7653
7654 * vax-tdep.c (vax_store_struct_return): New function.
7655 (vax_extract_return_value): Ditto.
7656 (vax_store_return_value): Ditto.
7657 (vax_extract_struct_value_address): Ditto.
7658 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
7659 vax_store_struct_return.
7660 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
7661 (STORE_RETURN_VALUE): Use vax_store_return_value.
7662 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
7663
7664 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7665
7666 * vax-tdep.c (vax_frame_saved_pc): New function.
7667 (vax_frame_args_address_correct): Ditto.
7668 (vax_frame_args_address): Ditto.
7669 (vax_frame_locals_address): Ditto.
7670 (vax_frame_num_args): Move code to be in proximity to
7671 other frame-related functions.
7672 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
7673 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
7674 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
7675 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
7676 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
7677
7678 2002-04-22 H.J. Lu (hjl@gnu.org)
7679
7680 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
7681 includedir.
7682
7683 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7684
7685 * vax-tdep.c (vax_frame_init_saved_regs): New function.
7686 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
7687 (FRAME_INIT_SAVED_REGS): New macro.
7688
7689 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7690
7691 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
7692
7693 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7694
7695 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
7696 where needed.
7697 (fetch_osf_core_registers): Likewise.
7698 (supply_gregset): Likewise.
7699
7700 2002-04-22 J. Brobecker <brobecker@gnat.com>
7701
7702 * symfile.h (get_section_index): Define.
7703 * symfile.c (get_section_index): New function.
7704 * mdebugread.c (SC_IS_SBSS): New macro.
7705 (SC_IS_BSS): Return true for the scBss storage class only, as
7706 the scSBss storage class refers to the .sbss section.
7707 (parse_partial_symbols): Discard the symbols which associated
7708 section does not exist.
7709 Make sure to use the .sbss section index for symbols which
7710 storage class is scBss, rather than using the .bss section index.
7711
7712 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7713
7714 * vax-tdep.c: Update copyright years.
7715 (vax_register_name): New function.
7716 (vax_register_byte): Ditto.
7717 (vax_register_raw_size): Ditto.
7718 (vax_register_virtual_size): Ditto.
7719 (vax_register_virtual_type): Ditto.
7720 * config/vax/tm-vax.h: Update copyright years.
7721 (REGISTER_NAMES): Remove.
7722 (REGISTER_NAME): Define.
7723 (REGISTER_BYTE): Use vax_register_byte.
7724 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
7725 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
7726 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
7727
7728 2002-04-21 Andrew Cagney <ac131313@redhat.com>
7729
7730 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
7731 declaration
7732 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
7733
7734 2002-04-21 David S. Miller <davem@redhat.com>
7735
7736 * arch-utils.c (generic_prologue_frameless_p): Kill
7737 SKIP_PROLOGUE_FRAMELESS_P code.
7738 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
7739 references.
7740 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
7741 * arc-tdep.c (arc_prologue_frameless_p): Implement.
7742 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
7743 references.
7744 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
7745 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
7746 (sparc_gdbarch_init): Pass it to
7747 set_gdbarch_prologue_frameless_p.
7748
7749 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7750
7751 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
7752 (alphabsd-nat.o): New dependency list.
7753
7754 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7755
7756 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
7757 alphafbsd-tdep.c.
7758 (alpha-linux-tdep.o): New dependency list.
7759 (alphafbsd-tdep.o): Likewise.
7760
7761 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7762
7763 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
7764 to here...
7765 * alpha-tdep.c: ...from here.
7766 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
7767
7768 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7769
7770 * config/alpha/tm-alpha.h: Move alpha_software_single_step
7771 prototype from here...
7772 * alpha-tdep.h: ...to here.
7773
7774 2002-04-21 Andrew Cagney <ac131313@redhat.com>
7775
7776 * frame.h (selected_frame_level): Document as deprecated.
7777 (frame_relative_level): Declare.
7778 * stack.c (frame_relative_level): New function.
7779 (selected_frame_level): Document as deprecated.
7780 (select_frame): Do not set the selected_frame_level.
7781
7782 * stack.c (frame_info, record_selected_frame): Update.
7783 (frame_command, current_frame_command): Update.
7784 (up_silently_base, up_command, down_silently_base): Update.
7785 (down_command): Update.
7786 * inflow.c (kill_command): Update.
7787 * tracepoint.c (finish_tfind_command): Update.
7788 * corelow.c (core_open): Update.
7789 * thread.c (info_threads_command): Update.
7790 (do_captured_thread_select): Update.
7791 * infcmd.c (finish_command): Update.
7792 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
7793
7794 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7795
7796 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
7797
7798 2002-04-21 Andrew Cagney <ac131313@redhat.com>
7799
7800 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
7801 type const.
7802
7803 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7804
7805 * alphafbsd-tdep.c: Update copyright years. Include
7806 alpha-tdep.h.
7807 (alphafbsd_use_struct_convention): Make static.
7808 (alphafbsd_init_abi): New function.
7809 (_initialize_alphafbsd_tdep): New function.
7810 * config/alpha/tm-fbsd.h: Update copyright years.
7811 (USE_STRUCT_CONVENTION): Remove.
7812
7813 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7814
7815 * alpha-tdep.c (alpha_abi_handler): New structure to describe
7816 an Alpha ABI variant.
7817 (alpha_abi_handler_list): Declare.
7818 (alpha_gdbarch_register_os_abi): New function.
7819 (alpha_gdbarch_init): Give registered ABI variant handlers a
7820 chance to tweak the gdbarch once we have set up defaults.
7821 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
7822
7823 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7824
7825 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
7826 to standard_coerce_float_to_double.
7827 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
7828
7829 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7830
7831 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
7832 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
7833 from gdbarch_tdep rather than a constant.
7834 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
7835 the default text address for all Alpha Unix ABIs.
7836 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
7837 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
7838
7839 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7840
7841 * alpha-tdep.h: New file. Includes several Alpha target constants
7842 taken from...
7843 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
7844 let gdbarch deal with.
7845 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
7846 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
7847 to dependency list.
7848 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
7849 Alpha target register names.
7850 * alphabsd-nat.c: Likewise.
7851 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
7852 Alpha target register names. Make serveral routines static.
7853 (alpha_get_saved_register): New function.
7854 (alpha_abi_names): New.
7855 (process_note_abi_tag_sections): New function.
7856 (get_elfosabi): New function.
7857 (alpha_gdbarch_init): New function.
7858 (alpha_dump_tdep): New function.
7859 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
7860
7861 2002-04-21 Andrew Cagney <ac131313@redhat.com>
7862
7863 * frame.c (find_saved_register): Delete #ifdef
7864 HAVE_REGISTER_WINDOWS code.
7865 * config/sparc/tm-sparc.h: Update comments.
7866 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
7867
7868 2002-04-21 Andrew Cagney <ac131313@redhat.com>
7869
7870 * i960-tdep.c (i960_find_saved_register): New function.
7871 (i960_get_saved_register): New function.
7872 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
7873 (i960_get_saved_register): Declare.
7874 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
7875
7876 2002-04-20 David S. Miller <davem@redhat.com>
7877
7878 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
7879
7880 2002-04-20 Andrew Cagney <ac131313@redhat.com>
7881
7882 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
7883 instead of NUM_PSEUDO_REGS.
7884
7885 2002-04-20 David S. Miller <davem@redhat.com>
7886
7887 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
7888 GDB_MULTI_ARCH_PARTIAL
7889 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
7890 define, let tm-sp64.h do it.
7891
7892 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
7893
7894 * frame.c (find_saved_register): Avoid a NULL pointer
7895 dereference and actually walk the frame list.
7896
7897 2002-04-20 Andrew Cagney <ac131313@redhat.com>
7898
7899 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
7900 sorted in most most-recent-used order. Document.
7901 * gdbarch.h, gdbarch.c: Regenerate.
7902
7903 2002-04-19 Andrew Cagney <ac131313@redhat.com>
7904
7905 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
7906 instead of ->prev.
7907 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
7908 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
7909 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
7910 instead of ->prev.
7911
7912 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
7913
7914 Fix PR gdb/471.
7915 * gdbtypes.c (init_simd_type): Rewrite using new functions.
7916 (build_builtin_type_vec128): Ditto.
7917 (append_composite_type_field): Fix calculation of type length in
7918 union case.
7919
7920 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
7921
7922 * config/djgpp/README: Update.
7923
7924 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
7925 compiler warnings.
7926
7927 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
7928
7929 * alpha-tdep.c (setup_arbitrary_frame): Rename...
7930 (alpha_setup_arbitrary_frame): ...to this.
7931 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
7932 for alpha_setup_arbitrary_frame.
7933
7934 2002-04-18 Andrew Cagney <cagney@redhat.com>
7935
7936 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
7937 * gdbarch.h, gdbarch.c: Regenerate.
7938
7939 * defs.h (breakpoint_from_pc_fn): Delete type definition.
7940 * target.h (memory_breakpoint_from_pc): Update declaration.
7941 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
7942
7943 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
7944 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
7945 * mem-break.c (memory_breakpoint_from_pc): Ditto.
7946 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
7947 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
7948 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
7949 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
7950 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
7951 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
7952 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
7953 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
7954 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
7955
7956 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
7957 const pointer.
7958 * monitor.c (monitor_insert_breakpoint): Ditto.
7959 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
7960
7961 * config/mcore/tm-mcore.h: Update copyright.
7962 * mem-break.c: Ditto.
7963 * xstormy16-tdep.c: Ditto.
7964
7965 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
7966
7967 * p-exp.y: Add precedence rule for '^' token.
7968 This removes the shift/reduce conflicts.
7969 Remove the comment concerning these shift/reduce conflicts.
7970
7971 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
7972
7973 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
7974 (registers_powerpc_nofp): New register set for processors
7975 without floating point unit.
7976
7977 2002-04-18 David S. Miller <davem@redhat.com>
7978
7979 * MAINTAINERS: Add myself to write-after-approval.
7980
7981 2002-04-17 Michael Snyder <msnyder@redhat.com>
7982
7983 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
7984
7985 2002-04-17 Andrew Cagney <ac131313@redhat.com>
7986
7987 * rs6000-tdep.c (frame_initial_stack_address): Use
7988 frame_register_read to read the alloca_reg.
7989
7990 2002-04-17 Andrew Cagney <ac131313@redhat.com>
7991
7992 * frame.c (find_saved_register): Find saved registers in the next
7993 not prev frame.
7994 Fix PR gdb/365.
7995
7996 2002-04-17 Andrew Cagney <ac131313@redhat.com>
7997
7998 * gdbarch.sh (LANG): Set to ``c''.
7999
8000 2002-04-15 Andrew Cagney <ac131313@redhat.com>
8001
8002 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
8003
8004 2002-04-15 Andrew Cagney <ac131313@redhat.com>
8005
8006 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
8007 Update copyright.
8008
8009 * hpread.c (hpread_get_lntt): Add declaration.
8010 Also fix PR gdb/391.
8011
8012 2002-04-14 Andrew Cagney <ac131313@redhat.com>
8013
8014 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
8015 * aclocal.m4, configure: Re-generate.
8016 Fix PR gdb/391.
8017
8018 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
8019
8020 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
8021 instead of tm_print_insn.
8022
8023 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
8024
8025 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
8026
8027 2002-04-14 Andrew Cagney <ac131313@redhat.com>
8028
8029 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
8030 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
8031 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
8032
8033 2002-04-12 Don Howard <dhoward@redhat.com>
8034
8035 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
8036 max_user_call_depth.
8037 (init_cmd_lists): Initialize the new value;
8038 * cli/cli-script.c (execute_user_command): Limit the call depth of
8039 user defined commands. This avoids a core-dump when user commands
8040 are infinitly recursive.
8041
8042 2002-04-12 Kevin Buettner <kevinb@redhat.com>
8043
8044 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
8045 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
8046 from tdep struct instead of DEFAULT_LR_SAVE.
8047 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
8048 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
8049 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
8050
8051 2002-04-12 Michael Snyder <msnyder@redhat.com>
8052
8053 * Remote.c: Spelling fix.
8054 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
8055 If no symbol found for "sbrk", try "_sbrk".
8056 (make_output_phdrs): Use bfd_section_name.
8057 (gcore_copy_callback): Use bfd_section_name.
8058 * eval.c: Indentation fix-ups.
8059 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
8060 in case it gets applied to an address that is already
8061 in the instruction space.
8062 * cli/cli-decode.c (help_list): Allow long lines to wrap.
8063 * symfile.c: Fix indentation, long lines.
8064 * source.c: White space fix-up.
8065
8066 2002-04-12 Andrew Cagney <cagney@redhat.com>
8067
8068 * defs.h (read_relative_register_raw_bytes): Delete declaration.
8069 * frame.c (frame_register_read): New function. Return non-zero on
8070 success.
8071 (read_relative_register_raw_bytes_for_frame): Delete.
8072 (read_relative_register_raw_bytes): Delete.
8073 * frame.h (frame_register_read): Declare.
8074 * d30v-tdep.c: Update Copyright. Use frame_register_read.
8075 * sh-tdep.c: Ditto.
8076 * infcmd.c (do_registers_info): Ditto.
8077 * hppa-tdep.c: Ditto.
8078 * rs6000-tdep.c: Ditto.
8079 * h8500-tdep.c: Ditto.
8080 * mips-tdep.c: Ditto.
8081 * h8300-tdep.c: Ditto.
8082 * z8k-tdep.c: Ditto.
8083
8084 2002-04-12 Kevin Buettner <kevinb@redhat.com>
8085
8086 From Jimi X <jimix@watson.ibm.com>:
8087 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
8088 64-bit SysV ABI.
8089
8090 2002-04-12 Kevin Buettner <kevinb@redhat.com>
8091
8092 From Jimi X <jimix@watson.ibm.com>:
8093 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
8094 bfd info.
8095
8096 2002-04-12 Kevin Buettner <kevinb@redhat.com>
8097
8098 From Jimi X <jimix@watson.ibm.com>:
8099 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
8100 register sets for these processor variants.
8101
8102 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
8103
8104 * regformats/reg-ppc.dat: Support FPSCR.
8105
8106 2002-04-11 Kevin Buettner <kevinb@redhat.com>
8107
8108 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
8109 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
8110 Add fpscr as an invalid/unfetchable register.
8111 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
8112 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
8113 (fill_fpregset): Add support for register fpscr.
8114 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
8115 (fill_gregset): Account for the fact that register ``mq'' might
8116 not exist.
8117 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
8118 (registers_power): Add fpscr to register set at slot 71.
8119 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
8120 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
8121
8122 2002-04-11 Michael Snyder <msnyder@redhat.com>
8123
8124 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
8125 * configure: Regenerate.
8126 * config.in: Regenerate.
8127 * acconfig.h: Add define for _SYSCALL32.
8128 * core-sol2.c: Remove #define _SYSCALL32.
8129 * solib-legacy.c: Remove #define _SYSCALL32.
8130
8131 2002-04-10 Andrew Cagney <ac131313@redhat.com>
8132
8133 * stack.c (select_frame): Cleanup internal error message, do not
8134 use %p.
8135
8136 2002-04-10 Andrew Cagney <ac131313@redhat.com>
8137
8138 * stack.c (select_frame): Check that selected_frame and the
8139 specified level are as expected.
8140 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
8141 Update copyright.
8142 * frame.h (struct frame_info): Add field `level'. Update
8143 copyright.
8144 Work-in-progress PR gdb/464.
8145
8146 2002-04-10 Andrew Cagney <ac131313@redhat.com>
8147
8148 * maint.c (maint_print_section_info): Rename print_section_info.
8149 (print_bfd_section_info, print_objfile_section_info): Update.
8150 * inferior.h (struct gdbarch): Add opaque declaration.
8151 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
8152 * gdbarch.h: Regenerate.
8153
8154 2002-04-10 Michal Ludvig <mludvig@suse.cz>
8155
8156 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
8157 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
8158 (kernel_u_size): Added.
8159 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
8160 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
8161
8162 2002-04-04 Jim Ingham <jingham@apple.com>
8163
8164 * valarith.c (find_size_for_pointer_math): New function, either returns
8165 the size for a pointer's target, returns 1 for void *, or errors for
8166 incomplete types.
8167 (value_add, value_sub): use find_size_for_pointer_math.
8168
8169 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
8170
8171 * linux-low.c (linux_look_up_symbols): New hook.
8172 (linux_target_ops): Add linux_look_up_symbols.
8173 * remote-utils.c (decode_address): New function.
8174 (look_up_one_symbol): New function.
8175 * server.c (handle_query): Call target look_up_symbols hook.
8176 * server.h (look_up_one_symbol): Add prototype.
8177 * target.h (struct target_ops): Add look_up_symbols hook.
8178
8179 2002-04-09 Andrew Cagney <ac131313@redhat.com>
8180
8181 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
8182 override FP_REGNUM with frame->fp. Update copyright.
8183 * parse.c (num_std_regs, std_regs): Delete.
8184 (target_map_name_to_register): Do not search std_regs. Update
8185 function description.
8186 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
8187 declarations. Update copyright.
8188 Fix PR gdb/251.
8189
8190 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
8191
8192 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
8193 after the last symbol in a block.
8194
8195 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
8196
8197 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
8198 is non zero as a found symbol.
8199
8200 2002-04-08 Andrew Cagney <ac131313@redhat.com>
8201
8202 * findvar.c: Include "builtin-regs.h".
8203 (value_of_register): Call value_of_builtin_reg when applicable.
8204 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
8205 (target_map_name_to_register): Call
8206 builtin_reg_map_name_to_regnum.
8207 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
8208 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
8209 (builtin_regs_h): Define.
8210 (builtin-regs.o): New target.
8211 (findvar.o): Add $(builtin_regs_h).
8212 * builtin-regs.c, builtin-regs.h: New files.
8213 * std-regs.c: New file.
8214 Partial fix for PR gdb/251.
8215
8216 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8217
8218 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
8219 it's no longer required.
8220
8221 2002-04-08 Andrew Cagney <ac131313@redhat.com>
8222
8223 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
8224
8225 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8226
8227 From Jimi X <jimix@watson.ibm.com>:
8228 * rs6000-tdep.c (rs6000_software_single_step): Use
8229 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
8230 and size. Use target_insert_breakpoint() and
8231 target_remove_breakpoint() to insert and remove breakpoints
8232 instead of explicit memory reads and writes.
8233
8234 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8235
8236 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
8237 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
8238 ELF_OBJECT_FORMAT ifdef.
8239
8240 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8241
8242 From Jimi X <jimix@watson.ibm.com>:
8243 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
8244
8245 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8246
8247 From Jimi X <jimix@watson.ibm.com>:
8248 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
8249 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
8250
8251 2002-04-07 Mark Kettenis <kettenis@gnu.org>
8252
8253 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
8254 s/asprintf/xasprintf/.
8255 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
8256
8257 2002-04-07 Andrew Cagney <ac131313@redhat.com>
8258
8259 I believe Jeff Law denies responsability for this one:
8260 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
8261 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
8262 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
8263 Work-around for PR gdb/366.
8264
8265 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
8266
8267 * remote-e7000.c (write_small, e7000_read_inferior_memory,
8268 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
8269 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
8270
8271 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
8272
8273 * sh-tdep.c (sh_fp_frame_init_saved_regs,
8274 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
8275 information.
8276
8277 2002-04-07 Andrew Cagney <ac131313@redhat.com>
8278
8279 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
8280 maintainer.
8281
8282 2002-04-07 Andrew Cagney <ac131313@redhat.com>
8283
8284 * README (Reporting Bugs in GDB): Document the bug web page as the
8285 prefered way of submitting bugs.
8286 Fix PR gdb/402.
8287
8288 2002-04-06 Andrew Cagney <ac131313@redhat.com>
8289
8290 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
8291 -1. Update comment.
8292 * gdbarch.h, gdbarch.c: Re-generate.
8293
8294 2002-04-07 Andreas Schwab <schwab@suse.de>
8295
8296 * m68klinux-nat.c (fill_fpregset): Properly pass address of
8297 buffer to regcache_collect.
8298
8299 2002-04-06 Andrew Cagney <ac131313@redhat.com>
8300
8301 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
8302 * gdbarch.c, gdbarch.h: Re-generate.
8303
8304 2002-04-06 Andrew Cagney <ac131313@redhat.com>
8305
8306 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
8307 declaration. Fix -Werror.
8308
8309 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
8310
8311 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
8312 * gdbarch.c: Regenerate.
8313
8314 2002-04-05 Michael Snyder <msnyder@redhat.com>
8315
8316 * breakpoint.c (clear_command): Rewrite middle section to
8317 combine two loops with identical control conditions.
8318 Add a cleanup to eliminate a memory leak.
8319 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
8320
8321 2002-04-05 H.J. Lu (hjl@gnu.org)
8322
8323 * solib-svr4.c (bkpt_names): Add "__start".
8324
8325 2002-04-04 Andrew Cagney <ac131313@redhat.com>
8326
8327 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
8328 as test for 64 bit target.
8329
8330 2002-04-05 Andrew Cagney <ac131313@redhat.com>
8331
8332 * h8500-tdep.c (h8500_write_fp): Delete function.
8333 * dwarf2cfi.c (cfi_write_fp): Document as not used.
8334 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
8335 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
8336 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
8337 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
8338 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
8339 (s390_write_fp):
8340 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
8341 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
8342 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
8343 (d10v_write_fp): Delete function.
8344 * inferior.h (write_fp, generic_target_write_fp): Delete
8345 declarations.
8346 * regcache.c (generic_target_write_fp): Delete function.
8347 (write_fp): Delete function.
8348 * gdbarch.sh (TARGET_WRITE_FP): Delete.
8349 * gdbarch.h, gdbarch.c: Regenerate.
8350 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
8351 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
8352 (sparc64_write_fp): Delete declaration.
8353 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
8354 (h8500_write_fp): Delete declaration.
8355
8356 2002-04-04 Andrew Cagney <ac131313@redhat.com>
8357
8358 * sparc-tdep.c (sparc64_write_fp): Delete.
8359 (sparc_push_dummy_frame): Replace write_fp call with code to store
8360 the FP directly.
8361 (sparc_gdbarch_init): Do not initialize write_fp.
8362
8363 2002-04-05 Kevin Buettner <kevinb@redhat.com>
8364
8365 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
8366 clause.
8367
8368 2002-03-29 Jim Blandy <jimb@redhat.com>
8369
8370 * stack.c (get_selected_block): Add new argument `addr_in_block',
8371 used to return the exact code address we used to select the block,
8372 not just the block.
8373 * blockframe.c (get_frame_block, get_current_block): Same.
8374 * frame.h (get_frame_block, get_current_block,
8375 get_selected_block): Update declarations.
8376 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
8377 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
8378
8379 2002-04-05 Michael Snyder <msnyder@redhat.com>
8380
8381 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
8382 warning message.
8383
8384 2002-04-05 J. Brobecker <brobecker@gnat.com>
8385
8386 * utils.c (xfullpath): New function.
8387 * defs.h (xfullpath): Add declaration.
8388 * source.c (openp): Use xfullpath in place of gdb_realpath to
8389 avoid resolving the basename part of filenames when the
8390 associated file is a symbolic link. This fixes a potential
8391 inconsistency between the filenames known to GDB and the
8392 filenames it prints in the annotations.
8393 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
8394 to be able to match a filename with either the real filename, or
8395 the name of any symbolic link to this file.
8396 (lookup_partial_symtab): Ditto.
8397
8398 2002-04-04 Michael Snyder <msnyder@redhat.com>
8399
8400 * breakpoint.c: Add support for hardware breakpoints in overlays.
8401 (overlay_events_enabled): New state variable.
8402 (insert_breakpoints): Use overlay_events_enabled to decide
8403 whether to attempt to set a breakpoint at the overlay load addr.
8404 Handle bp_hardware_breakpoint as well as bp_breakpoint.
8405 (remove_breakpoint): Use overlay_events_enabled to decide
8406 whether breakpoints need to be removed from overlay load addr.
8407 Handle bp_hardware_breakpoint as well as bp_breakpoint.
8408 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
8409 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
8410 disable_overlay_breakpoints): Update overlay_events_enabled.
8411
8412 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
8413
8414 * dwarf2read.c (struct function_range): New.
8415 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
8416 (check_cu_functions): New.
8417 (read_file_scope): Initialize global function lists.
8418 Call dwarf_decode_line after processing children.
8419 (read_func_scope): Add to global function list.
8420 (dwarf_decode_lines): Call check_cu_functions everywhere
8421 record_line is called. Call record_line with a linenumber
8422 of 0 to mark sequence ends.
8423
8424 2002-04-04 Michal Ludvig <mludvig@suse.cz>
8425
8426 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
8427 change sync with glibc.
8428
8429 2002-04-03 Jim Blandy <jimb@redhat.com>
8430
8431 * configure.in: Call AC_C_INLINE.
8432 * configure: Regenerated.
8433
8434 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
8435
8436 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
8437 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
8438
8439 2002-03-31 Mark Kettenis <kettenis@gnu.org>
8440
8441 * NEWS: Mention gcore support on FreeBSD/i386.
8442
8443 * fbsd-proc.c: New file.
8444 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
8445 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
8446
8447 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
8448 while statement.
8449
8450 2002-03-29 Jim Blandy <jimb@redhat.com>
8451
8452 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
8453 unescaped newlines in string literals, but newer ones don't. So
8454 escape them.
8455
8456 2002-03-26 Michael Snyder <msnyder@redhat.com>
8457 Andrew Cagney <cagney@redhat.com>
8458
8459 * cli/cli-dump.c: New file. Dump memory to file,
8460 restore file to memory.
8461 * cli/cli-dump.h: New file.
8462 * Makefile.in: Add rules, dependencies for cli-dump.o.
8463 * NEWS: Mention new commands.
8464
8465 2002-03-28 Michael Snyder <msnyder@redhat.com>
8466
8467 * symfile.c (symbol_file_add): Move test for null symbols to later.
8468
8469 2002-03-27 Andrew Cagney <ac131313@redhat.com>
8470
8471 From veksler at il.ibm.com:
8472 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
8473 the xstrduped original path.
8474 Fix PR gdb/417.
8475
8476 2002-03-27 Michael Snyder <msnyder@redhat.com>
8477
8478 * breakpoint.c (_initialize_breakpoint): Clean up help string.
8479 * infcmd.c (_initialize_infcmd): Ditto.
8480 * language.c (_initialize_language): Ditto.
8481 * symfile.c (_initialize_symfile): Ditto.
8482 * top.c (_init_main): Ditto.
8483 * cli/cli-cmds.c (init_cli_cmds): Ditto.
8484
8485 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
8486
8487 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
8488 vector registers handling.
8489 (skip_prologue): Handle new AltiVec instructions. Fill in new
8490 fields of frame data.
8491 (frame_get_saved_regs): Fill in information for AltiVec registers.
8492
8493 2002-03-27 Jim Blandy <jimb@redhat.com>
8494
8495 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
8496 a function; leave this macro here to invoke that function.
8497 (symbol_init_mangled_name): Declaration for that function.
8498 * symtab.c (symbol_init_mangled_name): New function.
8499
8500 2002-03-27 Andrew Cagney <ac131313@redhat.com>
8501
8502 * valarith.c: Replace strerror with safe_strerror.
8503 * tracepoint.c: Ditto.
8504 * lin-lwp.c: Ditto.
8505 * go32-nat.c: Ditto.
8506 * inflow.c: Ditto.
8507 * gnu-nat.c: Ditto.
8508
8509 2002-03-27 Andreas Schwab <schwab@suse.de>
8510
8511 * event-top.c (command_line_handler): Remove useless if.
8512
8513 2002-03-27 Andreas Jaeger <aj@suse.de>
8514
8515 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
8516 comment.
8517
8518 2002-03-27 Michal Ludvig <mludvig@suse.cz>
8519
8520 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
8521 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
8522 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
8523 (x86_64_linux_dr_get_status, supply_gregset),
8524 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
8525 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
8526 (x86_64_register_info_table): Add.
8527 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
8528 (x86_64_register_raw_size, x86_64_register_virtual_type),
8529 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
8530 general x86_64_register_info_table.
8531 (i386_gdbarch_init): gdbarch_register_bytes is now set
8532 dynamicaly during initialization.
8533 * regformats/reg-x86-64.dat: Synced with changes to registers above.
8534 * gdbserver/linux-x86-64-low.c: Ditto.
8535
8536 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
8537
8538 * gdbserver/server.c (main): Call target_signal_to_host_p
8539 and target_signal_to_host on signals received from the remote.
8540 * gdbserver/remote-utils.c (prepare_resume_reply): Call
8541 target_signal_from_host on signals sent to the remote.
8542 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
8543 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
8544
8545 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
8546
8547 * signals/signals.c: Include "server.h" in gdbserver build.
8548 (target_signal_from_name): Don't use STREQ.
8549 (_initialize_signals): Likewise. Don't include function in
8550 gdbserver build.
8551
8552 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
8553
8554 * signals.c: Moved to...
8555 * signals/signals.c: Here.
8556 * Makefile (signals.o): Update.
8557
8558 2002-03-26 Jeff Law (law@redhat.com)
8559
8560 * somread.c (som_symtab_read): Remove some commented out code and
8561 updated related comments. Do not set the minimal symbol table to
8562 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
8563 in a dynamic executable.
8564 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
8565 where we are unable to find the minimal symbol for the given
8566 PC value.
8567
8568 2002-03-25 Jeff Law (law@redhat.com)
8569
8570 * linux-proc.c (read_mapping): Scan up to end of line for filename.
8571
8572 2002-03-25 Michal Ludvig <mludvig@suse.cz>
8573
8574 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
8575
8576 2002-03-23 Andrew Cagney <ac131313@redhat.com>
8577
8578 * command.h: Update copyright.
8579 (struct cmd_list_element): Replace definition with opaque
8580 declaration.
8581 (enum cmd_types): Document that it will eventually be moved to
8582 cli/cli-decode.h
8583 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
8584 (MALLOCED_REPLACEMENT): Delete macro.
8585 * Makefile.in (cli_decode_h): Add $(command_h).
8586 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
8587 * top.c: Include "cli/cli-decode.h".
8588 * completer.c: Include "cli/cli-decode.h".
8589 * maint.c: Include "cli/cli-decode.h".
8590 * cli/cli-decode.h: Include "command.h".
8591 (enum command_class): Delete.
8592 (enum cmd_types): Comment out.
8593 (enum cmd_auto_boolean): Delete.
8594 (enum var_types): Delete.
8595
8596 2002-03-23 Andrew Cagney <ac131313@redhat.com>
8597
8598 * cli/cli-decode.c: Include "gdb_assert.h".
8599 (add_set_or_show_cmd): New static function.
8600 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
8601 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
8602 all fields, such as func, from the set command.
8603
8604 2002-03-23 Andrew Cagney <ac131313@redhat.com>
8605
8606 * MAINTAINERS (sh-elf): Change warning flag to -w.
8607
8608 2002-03-23 Andrew Cagney <cagney@redhat.com>
8609
8610 * defs.h (error): Add printf format attribute.
8611 * thread-db.c (thread_from_lwp): Fix error format string.
8612 * stack.c (parse_frame_specification): Ditto.
8613 * cli/cli-decode.c (undef_cmd_error): Ditto.
8614 * scm-lang.c (scm_lookup_name): Ditto.
8615 * tracepoint.c (trace_error): Ditto.
8616 * remote-utils.c (usage): Ditto.
8617 * remote.c (compare_sections_command): Ditto.
8618 Fix PR gdb/328.
8619
8620 2002-03-22 Andrew Cagney <ac131313@redhat.com>
8621
8622 * gdbtypes.c (append_composite_type_field): New function.
8623 (init_composite_type): New function.
8624 * gdbtypes.h (append_composite_type_field): Declare.
8625 (init_composite_type): Ditto.
8626
8627 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
8628
8629 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
8630 function.
8631 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
8632 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
8633 structure returning convention for SYSV ABI case, but not
8634 for GNU/Linux, FreeBSD, or NetBSD.
8635
8636 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
8637
8638 * symtab.h (lookup_block_symbol): Add mangled_name argument
8639 to prototype.
8640
8641 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
8642 with new mangled_name argument.
8643 * linespec.c (decode_line_1): Likewise.
8644 * valops (value_of_this): Likewise.
8645 * symtab.c (lookup_transparent_type): Likewise.
8646 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
8647 (lookup_symbol): If we are given a mangled name, pass it down
8648 to lookup_symbol_aux.
8649 (lookup_block_symbol): If we are given a mangled name to check
8650 against, only return symbols which match it.
8651
8652 2002-03-22 Christopher Faylor <cgf@redhat.com>
8653
8654 * win32-nat.c (child_create_inferior): Check for proper shell to use
8655 here, in case the user changes it on the fly.
8656 (_initialize_inftarg): Remove shell path considerations.
8657
8658 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
8659
8660 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
8661 for gdbarch_max_register_raw_size and max_register_virtual_size.
8662 Adjust copyright year.
8663
8664 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
8665
8666 * dbxread.c (process_one_symbol): Extend the first N_SLINE
8667 in a function to cover the entire beginning of the function
8668 as well if it does not already.
8669
8670 2002-03-21 Tom Rix <trix@redhat.com>
8671
8672 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
8673 (rs6000_ptrace64): Renamed from ptrace64.
8674
8675 2002-03-20 Martin M. Hunt <hunt@redhat.com>
8676
8677 * gdbserver/remote-utils.c (remote_open): Don't call
8678 getprotobyname, we're all using TCP here so just use
8679 IPPROTO_TCP.
8680 * gdbserver/gdbreplay.c (remote_open): Ditto.
8681
8682 2002-03-20 Martin M. Hunt <hunt@redhat.com>
8683
8684 * regcache.c (_initialize_regcache): No need to call
8685 build_regcache() at this time; it gets called whenever
8686 the gdbarch changes.
8687
8688 2002-03-20 David O'Brien <obrien@FreeBSD.org>
8689
8690 * sparc-nat.c: Include sys/param.h where possible.
8691
8692 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
8693
8694 Fix PR gdb/422.
8695 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
8696 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
8697 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
8698 complex types.
8699 * stabsread.c (rs6000_builtin_type): Likewise.
8700 (read_sun_floating_type): Likewise.
8701
8702 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8703
8704 * stabsread.c (read_member_functions): Remove skip code for duplicate
8705 constructor/destructor methods. Use standard parsing for these
8706 methods and just do not chain them to the list of methods after
8707 parsing.
8708
8709 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
8710
8711 * coffread.c: Remove redundant static declarations. Replace
8712 occurrences of `PTR' with `void *'.
8713 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
8714 * top.h (quit_cover): Likewise.
8715 * defs.h (catch_errors): Likewise.
8716
8717 2002-03-18 Andrew Cagney <ac131313@redhat.com>
8718
8719 * defs.h (XMALLOC): Define.
8720 * gdb-events.sh (XMALLOC): Delete macro.
8721 * gdb-events.c, gdb-events.h: Regenerate.
8722 * gdbarch.sh (XMALLOC): Delete macro.
8723 * gdbarch.c: Regenerate.
8724 * serial.c (XMALLOC): Delete macro.
8725 * ui-file.c (XMALLOC): Ditto.
8726 * ser-unix.h (XMALLOC): Ditto.
8727 * sh-tdep.c (XMALLOC): Ditto.
8728 * ui-out.c (XMALLOC): Ditto.
8729 * utils.c (XMALLOC): Ditto.
8730 * i386-tdep.c (XMALLOC): Ditto.
8731 * gdb-events.c (XMALLOC): Ditto.
8732 * d10v-tdep.c (XMALLOC): Ditto.
8733 * cli-out.c (XMALLOC): Ditto.
8734
8735 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
8736 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
8737 * ui-file.c, ui-out.c: Ditto.
8738
8739 2002-03-18 Andrew Cagney <ac131313@redhat.com>
8740
8741 * command.h (struct cmd_list_element): Add field context.
8742 (set_cmd_context, get_cmd_context): Declare.
8743 * cli/cli-decode.h: Ditto.
8744 * cli/cli-decode.c (get_cmd_context): New function.
8745 (set_cmd_context): New function.
8746 (add_cmd): Initialize context.
8747 Part of fixing PR gdb/145 and PR gdb/146.
8748
8749 2002-03-17 Andrew Cagney <ac131313@redhat.com>
8750
8751 * cli/cli-decode.c (cmd_type): New function.
8752 * command.h (cmd_type): Declare.
8753 * infrun.c (set_schedlock_func): Call function cmd_type.
8754 * kod.c (kod_set_os): Call cmd_type.
8755 * cris-tdep.c (cris_version_update): Use function cmd_type.
8756 (cris_mode_update, cris_abi_update): Ditto.
8757
8758 * command.h: (execute_cmd_post_hook): Declare.
8759 (execute_cmd_pre_hook): Declare.
8760 * cli/cli-script.c (clear_hook_in_cleanup): New function.
8761 (execute_cmd_post_hook, execute_cmd_pre_hook): New
8762 functions. Execute pre/post hook while ensuring that afterwords
8763 hook_in is cleared.
8764 * top.c (execute_command): Use execute_cmd_post_hook, and
8765 execute_cmd_pre_hook to execute pre/post commands.
8766 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
8767 hook_stop_stub.
8768 (hook_stop_stub): Call execute_cmd_pre_hook.
8769
8770 2002-03-17 Andrew Cagney <ac131313@redhat.com>
8771
8772 * kod.c (kod_set_os): Revert previous change. Is called by ``info
8773 set'' and this leads to a core dump. Move xstrdup of
8774 operating_system to after check that it is not NULL.
8775
8776 2002-03-17 Andrew Cagney <ac131313@redhat.com>
8777
8778 * kod.c (kod_set_os): Remove unnecessary check that
8779 ``command->type'' is set_cmd.
8780
8781 * valprint.c (set_input_radix): Use input_radix.
8782 (set_output_radix): Use output_radix.
8783 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
8784 isn't reverted.
8785
8786 2002-03-16 Andrew Cagney <ac131313@redhat.com>
8787
8788 * value.h (struct value): Delete field ``substring_addr''. Change
8789 aligner fields to force_doublest_align, force_longest_align,
8790 force_core_addr_align and force_pointer_aligh.
8791
8792 * value.h (struct value): Fix typo in above change.
8793
8794 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8795
8796 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
8797 to fix internal_error from ``maintenance print architecture''.
8798
8799 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8800
8801 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
8802 for gcc versions after gcc-2.8.1.
8803
8804 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8805
8806 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
8807 for method resolution. Restore adjustment of ``this'' pointer after
8808 calling value_struct_elt, which was accidentally removed during the
8809 HP merge.
8810
8811 2002-03-15 Andrew Cagney <ac131313@redhat.com>
8812
8813 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
8814 value_of_register.
8815 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
8816 get_saved_register.
8817 * value.h (value_of_register): Update.
8818
8819 2002-03-14 Richard Henderson <rth@redhat.com>
8820
8821 * configure.in: Detect declaration for canonicalize_file_name.
8822 * utils.c (canonicalize_file_name): Declare, if needed.
8823 (gdb_realpath): Prefer realpath if available and usable.
8824 * config.in, configure: Rebuild.
8825
8826 2002-03-14 Richard Henderson <rth@redhat.com>
8827
8828 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
8829 a constant array bound.
8830
8831 * MAINTAINERS: Add myself to write-after-approval.
8832
8833 2002-03-14 Michael Snyder <msnyder@redhat.com>
8834
8835 * symfile.c (syms_from_objfile): Return immediately if no syms.
8836 (symbol_file_add): Return immediately if no syms.
8837 (find_sym_fns): Return immediately if no syms.
8838
8839 2002-03-13 Michal Ludvig <mludvig@suse.cz>
8840
8841 * gdbserver/remote-util.c (remote_open): Print remote-side's
8842 IP address when remote debugging over the network.
8843
8844 2002-03-12 David O'Brien <obrien@FreeBSD.org>
8845
8846 * config/sparc/fbsd.mh: Fix copyright.
8847 * config/sparc/fbsd.mt: Likewise.
8848
8849 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
8850
8851 * MAINTAINERS: Fix typo in name of gdb warnings option.
8852 (x86-64): Fix formating so that this can be parsed by awk.
8853
8854 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
8855
8856 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
8857 * defs.h: Include "gdb/signals.h".
8858 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
8859
8860 2002-03-10 Michal Ludvig <mludvig@suse.cz>
8861
8862 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
8863 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
8864 from x86-64-tdep.h
8865
8866 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
8867 Don Howard <dhoward@redhat.com>
8868
8869 * mips-tdep.c (ST0_FR): Define.
8870 (mips2_fp_compat): New function, temporarily disabled.
8871 (mips_read_fp_register_single): New function.
8872 (mips_read_fp_register_double): New function.
8873 (mips_print_register): Use them.
8874 (do_fp_register_row): Likewise.
8875
8876 2002-03-09 Andrew Cagney <ac131313@redhat.com>
8877
8878 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
8879 approval''.
8880
8881 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8882
8883 * stabsread.c (read_member_functions): Fix is_stub test for
8884 static member functions, improve comment.
8885
8886 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
8887
8888 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
8889 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
8890 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
8891 commands that set boolean values.
8892 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
8893 (arm_rdi_resume): Always initialize PC.
8894 (arm_rdi_open): Don't use rslt as a boolean.
8895 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
8896 (arm_rdi_fetch_registers, arm_rdi_store_registers)
8897 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
8898 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
8899
8900 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
8901
8902 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
8903 * configure: Rebuilt.
8904
8905 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
8906
8907 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
8908 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
8909
8910 2002-03-06 Andrew Cagney <ac131313@redhat.com>
8911
8912 * cli/cli-decode.c (set_cmd_completer): New function.
8913 * command.h (set_cmd_completer): Declare.
8914 * cli/cli-decode.h (set_cmd_completer): Ditto.
8915
8916 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
8917 * cli/cli-cmds.c (init_cli_cmds): Ditto.
8918 * win32-nat.c (_initialize_inftarg): Ditto.
8919 * remote-rdi.c (_initialize_remote_rdi): Ditto.
8920 * proc-api.c (_initialize_proc_api): Ditto.
8921 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
8922 * source.c (_initialize_source): Ditto.
8923 * exec.c (_initialize_exec): Ditto.
8924 * solib.c (_initialize_solib): Ditto.
8925 * top.c (init_main): Ditto.
8926 * tracepoint.c (_initialize_tracepoint): Ditto.
8927 * symfile.c (_initialize_symfile): Ditto.
8928 * printcmd.c (_initialize_printcmd): Ditto.
8929 * infcmd.c (_initialize_infcmd): Ditto.
8930 * corefile.c (_initialize_core): Ditto.
8931
8932 2002-03-05 Andrew Cagney <ac131313@redhat.com>
8933
8934 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
8935
8936 2002-03-05 Andrew Cagney <ac131313@redhat.com>
8937
8938 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
8939
8940 2002-03-05 Andrew Cagney <ac131313@redhat.com>
8941
8942 * NEWS: Update headings, 5.2 has branched.
8943
8944 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
8945
8946 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
8947 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
8948 (register_addr, REGISTER_RAW_SIZE): Likewise.
8949 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
8950 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
8951
8952 2002-03-03 Michal Ludvig <mludvig@suse.cz>
8953
8954 * MAINTAINERS (x86-64): Add myself.
8955 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
8956 changed value_ptr -> struct value *
8957
8958 2002-03-01 David O'Brien <obrien@FreeBSD.org>
8959
8960 * configure.host (sparc64-*-freebsd): Add.
8961 * configure.tgt: Likewise.
8962 * config/sparc/fbsd.mh: New file.
8963 * config/sparc/fbsd.mt: Likewise.
8964 * config/sparc/nm-fbsd.h: Likewise.
8965 * config/sparc/tm-fbsd.h: Likewise.
8966
8967 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
8968
8969 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
8970 regformats/reg-s390x.dat.
8971
8972 2002-03-01 Andrew Cagney <ac131313@redhat.com>
8973
8974 * utils.c: Add FIXME explaining true/false problem.
8975
8976 2002-02-28 Andrew Cagney <ac131313@redhat.com>
8977
8978 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
8979
8980 2002-02-28 Michael Chastain <mec@shout.net>
8981
8982 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
8983
8984 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
8985
8986 * gdbserver/linux-s390-low.c: New file.
8987 * regformats/reg-s390.dat: New file.
8988 * regformats/reg-s390x.dat: New file.
8989 * gdbserver/configure.srv: Add S/390.
8990 * gdbserver/Makefile.in: Add S/390.
8991 * configure.tgt: Enable gdbserver for S/390.
8992
8993 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
8994
8995 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
8996 first line of the doc string for "info dos", except at the end of
8997 the sentence, since the short help stops at the first period.
8998
8999 2002-02-28 Jason Merrill <jason@redhat.com>
9000
9001 * dwarf2read.c (dwarf_cfi_name): Add new codes.
9002
9003 2002-02-27 Fred Fish <fnf@redhat.com>
9004
9005 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
9006 comment (dumy -> dummy).
9007
9008 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9009
9010 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
9011
9012 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
9013
9014 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
9015
9016 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
9017
9018 * gdbserver/acconfig.h: New file.
9019 * gdbserver/i387-fp.c: New file.
9020 * gdbserver/i387-fp.h: New file.
9021 * gdbserver/linux-x86-64.c: New file.
9022 * regformats/reg-x86-64.dat: New file.
9023 * configure.tgt: Add x86_64-*-linux* gdbserver support.
9024 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
9025 * gdbserver/configure.in: Add support for regsets.
9026 * gdbserver/config.in: Regenerate.
9027 * gdbserver/configure: Regenerate.
9028 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
9029 * gdbserver/linux-low.h: New file.
9030 * gdbserver/linux-low.c: Include "linux-low.h". Add support
9031 for regsets.
9032 * gdbserver/linux-arm-low.c: Include "linux-low.h".
9033 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
9034 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
9035 * gdbserver/linux-mips-low.c: Include "linux-low.h".
9036 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
9037 * gdbserver/linux-sh-low.c: Include "linux-low.h".
9038 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
9039 "i387-fp.h". Add PTRACE_GETREGS and friends.
9040 * gdbserver/regcache.c (supply_register): New function.
9041 (supply_register_by_name): New function.
9042 (collect_register): New function.
9043 (collect_register_by_name): New function.
9044
9045 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
9046
9047 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
9048 (config.status): Add configure.srv dependency.
9049 (server_h): Add config.h dependency.
9050
9051 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
9052
9053 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
9054 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
9055 * gdbserver/configure.srv: Change i386-*-linux* to use
9056 reg-i386-linux.o.
9057
9058 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9059
9060 * x86-64-tdep.c: Re-indent. Update copyright date.
9061
9062 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9063
9064 From Michal Ludvig <mludvig@suse.cz>:
9065 * x86-64-tdep.c (value.h): Delete.
9066 (gdb_assert.h): Include.
9067 (x86_64_register_convert_to_virtual,
9068 x86_64_register_convert_to_raw ): Add check which lets only
9069 floating-point values to be converted.
9070 (value_push): Delete.
9071 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
9072 (i386_gdbarch_init): Number of register_bytes fixed.
9073
9074 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9075
9076 * MAINTAINERS: Add x86-64 target.
9077
9078 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9079
9080 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
9081 * osfsolib.c (solib_map_sections): Ditto.
9082 * irix5-nat.c (solib_map_sections): Ditto.
9083 * corelow.c (gdb_check_format): Ditto.
9084 * symfile.c (symfile_bfd_open): Ditto.
9085 * solib.c (solib_map_sections): Ditto.
9086 Fix PR gdb/354.
9087
9088 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9089
9090 * remote.c (_initialize_remote): By default, disable ``e'' and
9091 ``E'' step out-of-range packets.
9092
9093 2002-02-26 Andreas Schwab <schwab@suse.de>
9094
9095 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
9096 m68k_linux_frame_saved_pc.
9097 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
9098 in_sigtramp.
9099 (SIGCONTEXT_PC_OFFSET): Remove.
9100 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
9101 m68k_linux_sigtramp_saved_pc): New functions.
9102 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
9103 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
9104 (UCONTEXT_PC_OFFSET): Define.
9105 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
9106 non-RT and RT signal trampolines.
9107
9108 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
9109
9110 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
9111 (TARGET_NBPG, STACK_END_ADDR): Delete
9112 (VARIABLES_INSIDE_BLOCK): Delete.
9113
9114 2002-02-25 Andrew Cagney <ac131313@redhat.com>
9115
9116 * utils.c (perror_with_name): Make string parameter constant.
9117 (print_sys_errmsg): Ditto.
9118 (query): Ditto.
9119 * defs.h (perror_with_name): Update.
9120 (print_sys_errmsg): Update.
9121 (query): Update.
9122
9123 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
9124
9125 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
9126 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
9127
9128 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9129
9130 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
9131 if it already matches the current architecture from the exec file.
9132 Include arch-utils.h for gdbarch_info_init prototype.
9133 * Makefile.in (rs6000-nat.o): Update dependencies.
9134
9135 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
9136
9137 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
9138 list of exported variables.
9139
9140 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
9141
9142 * gdbserver/configure.srv: New file.
9143 * gdbserver/configure.in: Use configure.srv instead
9144 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
9145 from it.
9146 * gdbserver/configure: Regenerated.
9147 * gdbserver/terminal.h: New file.
9148 * gdbserver/Makefile.in: Update for configure changes. Remove
9149 more unneeded include paths.
9150
9151 2002-02-24 Andrew Cagney <ac131313@redhat.com>
9152
9153 From wiz at danbala:
9154 * config/sparc/tm-sp64.h: Fix grammar and typos.
9155 Fix PR gdb/287.
9156
9157 2002-02-24 Andrew Cagney <ac131313@redhat.com>
9158
9159 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
9160 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
9161 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
9162 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
9163 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
9164 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
9165 * s390-tdep.c: Ditto.
9166 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
9167 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
9168 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
9169 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
9170 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
9171 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
9172 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
9173 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
9174 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
9175 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
9176 Fix PR gdb/378.
9177
9178 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9179
9180 * lin-thread.c: Delete file.
9181 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
9182 to gdb_proc_service.h.
9183 * configure: Re-generate.
9184
9185 * ocd.c (ocd_open): Do not try to open the "ocd" device.
9186 * serial.c (serial_open): Delete check for "ocd".
9187 Fix PR gdb/349.
9188
9189 * Makefile.in (linux-thread.o): Delete target.
9190 * linux-thread.c: Delete file.
9191
9192 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
9193 renamed SH files to be consistent.
9194
9195 * symtab.c (sort_search_symbols): Use xfree.
9196
9197 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
9198
9199 * arm-linux-tdep.c (arm_linux_init_abi): Register
9200 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
9201 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
9202 definition with undef, since we don't want the sysvr4 definition.
9203 (SKIP_TRAMPOLINE_CODE): Likewise.
9204
9205 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9206
9207 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
9208
9209 * configure.in: (AC_CHECK_FUNCS) Added test for
9210 canonicalize_file_name Regenerated.
9211 * config.in, configure: Regenerated.
9212 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
9213 defined use canonicalize_file_name.
9214
9215 2002-02-23 Michael Chastain <mec@shout.net>
9216
9217 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
9218
9219 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9220
9221 * README: Remove references to cygnus.com.
9222 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
9223 dot com'' form. Remove references to cygnus.com and sourceware.
9224
9225 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9226
9227 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
9228 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
9229 1003.1-2001 no longer allows "head -1".
9230 * gdb/Makefile.in (version.c): Likewise.
9231 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
9232 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
9233 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
9234
9235 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9236
9237 * cli/cli-decode.c (cmd_cfunc_eq): New function.
9238 * command.h (cmd_cfunc_eq): Declare.
9239 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
9240
9241 * cli/cli-cmds.h (is_complete_command): Change parameter to a
9242 ``struct cmd_list_element *''.
9243 * cli/cli-cmds.c (is_complete_command): Update. Use
9244 cmd_cfunc_eq.
9245 * top.c (execute_command): Pass the command to
9246 is_complete_command.
9247 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
9248
9249 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9250
9251 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
9252 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
9253 architecture defines.
9254 * s390-tdep.c (s390_gdbarch_init): Likewise.
9255
9256 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
9257
9258 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
9259 (arm_linux_push_arguments): Likewise.
9260 (arm_linux_init_abi): Register them. Also register linux-specific
9261 call_dummy_words.
9262 (find_minsym_and_objfile): Use strcmp, not STREQ.
9263 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
9264 (arm_linux_call_dummy_words): Delete declaration.
9265 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
9266 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
9267 declarations.
9268 (LOWEST_PC): Delete.
9269
9270 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9271
9272 * maint.c (print_section_info): Do not prepend `0x' to filepos
9273 output, it will be handled by local_hex_string_custom.
9274
9275 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
9276
9277 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
9278 (store_newfpe_double, store_newfpe_extended, store_fpregister)
9279 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
9280
9281 2002-02-22 Jim Blandy <jimb@redhat.com>
9282
9283 Indicate that the bcache functions don't change the strings
9284 they're passed.
9285 * bcache.h (bcache, hash): Add `const' keywords to declarations.
9286 * bcache.c (bcache, hash): Add `const' keywords to definitions.
9287
9288 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
9289
9290 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
9291
9292 2002-02-21 Christopher Faylor <cgf@redhat.com>
9293
9294 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
9295 find the complete path to a loaded DLL.
9296
9297 2002-02-21 Fred Fish <fnf@redhat.com>
9298
9299 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
9300 that marks the end of the range of a function, enter a line number
9301 entry that has a line number of zero and a PC offset that matches
9302 the end of the function. This starts a range of PC's for which no
9303 line number information is known.
9304 * symtab.c (find_pc_sect_line): If our best fit is in a range of
9305 PC's for which no line number info is found (line number is zero)
9306 then we didn't find any valid line information.
9307 * symtab.h: Document use of zero line number entry.
9308
9309 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
9310
9311 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
9312 (have_ptrace_getvrregs): Define for run time checks.
9313 (gdb_vrregset_t): New type for Altivec register handling.
9314 (fetch_register, store_register): Fetch/store altivec register
9315 when needed.
9316 (fetch_altivec_register, store_altivec_register): New functions.
9317 (supply_vrregset, fill_vrregset): New functions.
9318 (fetch_altivec_registers, store_altivec_registers): New functions.
9319 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
9320 registers as well.
9321
9322 2002-02-21 Jiri Smid <smid@suse.cz>
9323
9324 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
9325
9326 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
9327
9328 * Makefile.in (armnbsd-nat.o): Update dependencies.
9329 * armnbsd-nat.c (supply_gregset): New function. Common code to
9330 supply the integer register set.
9331 (supply_fparegset): New function. Similar for FPA registers.
9332 (fetch_regs, fetch_fp_regs): Use them.
9333 (fetch_core_registers): Likewise.
9334 (fetch_elfcore_registers): New function.
9335 (arm_netbsd_elfcore_fns): New core-file type specification.
9336 (_initialize_arm_netbsd_nat): Register it.
9337
9338 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
9339
9340 * armnbsd-nat.c: Include gdbcore.h.
9341 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
9342 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
9343 'void' to declaration, to shut up ARI.
9344 (fetch_core_registers): Make static. Rewrite using supply_register.
9345 (arm_netbsd_core_fns): New core-file type specification.
9346 (_initialize_arm_netbsd_nat): New function.
9347
9348 2002-02-21 Christopher Faylor <cgf@redhat.com>
9349
9350 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
9351 value.
9352
9353 2002-02-20 Christopher Faylor <cgf@redhat.com>
9354
9355 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
9356 fails.
9357
9358 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9359
9360 * jv-exp.y (parse_number): Change type of implicit longs
9361 to builtin_type_uint64.
9362
9363 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9364
9365 * gdbserver/linux-low.c (mywait): Change argument to waitpid
9366 to be an integer instead of a `union wait'.
9367
9368 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9369
9370 * mips-linux-nat.c: Call the operating system GNU/Linux.
9371 * mips-linux-tdep.c: Likewise.
9372 * mips-tdep.c: Likewise.
9373
9374 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9375
9376 Fix PR gdb/265.
9377 * jv-exp.y (parse_number): Handle 64-bit integers.
9378
9379 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9380
9381 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
9382 AC_STDC_HEADERS to AC_HEADER_STDC.
9383 * gdbserver/configure: Regenerated.
9384
9385 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
9386
9387 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
9388 is defined.
9389 * sparc-tdep.c (get_longjmp_target): Likewise.
9390
9391 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
9392
9393 * News: Add news about ARM and Multi-arch. Mention the new target
9394 arm*-*-netbsd*.
9395
9396 2002-02-19 Jim Blandy <jimb@redhat.com>
9397
9398 * stabsread.c (error_type_complaint): Improve error message.
9399
9400 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
9401
9402 * gdbserver/README: Update documentation.
9403 * gdbserver/configure.in: Update configury to match documentation.
9404 * gdbserver/Makefile.in: Likewise.
9405 * gdbserver/configure: Regenerated.
9406 * gdbserver/aclocal.m4: New file, generated by aclocal.
9407 * gdbserver/config.in: New file, generated by autoheader.
9408
9409 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9410
9411 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
9412 armnbsd-nat.c.
9413
9414 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9415
9416 * arm-tdep.h (enum arm_float_model): New enum.
9417 (struct gdbarch_tdep): Add fp_model.
9418 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
9419 up floating-point conversions until we know the floating-point model
9420 in use by the inferior. Don't complain about being unable to
9421 determine the ABI of the inferior when we don't have one.
9422 (arm_extract_return_value): Support different floating-point models.
9423 (arm_store_return_value): Likewise.
9424 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
9425 ARM_FLOAT_SOFT.
9426 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
9427
9428 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9429
9430 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
9431 of ``current_gdbarch''.
9432
9433 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9434
9435 * armnbsd-nat.c : ANSIfy all function declarations.
9436 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
9437 (fetch_inferior_registers): Re-implement in terms of above.
9438 (store_register, store_regs, store_fp_register, store_fp_regs): New.
9439 (store_inferior_registers): Re-implement in terms of above.
9440
9441 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9442
9443 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
9444 kernel.
9445 * arm-linux-tdep.c: Likewise.
9446 * config/arm/tm-linux.h: Likewise.
9447
9448 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9449
9450 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
9451 * config/arm/nbsd.mt (TM_FILE): Delete.
9452 * config/arm/tm-nbsd.h: Delete.
9453
9454 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9455
9456 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
9457 Initialize CALL_DUMMY_LENGTH.
9458
9459 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9460
9461 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
9462 function.
9463 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
9464 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
9465 defines one thing and that is incorrect for this port.
9466 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
9467
9468 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9469
9470 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
9471
9472 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9473
9474 * win32-nat.c (display_selector): New function. Displays information
9475 about the information returned by GetThreadSelectorEntry API function.
9476 (display_selectors): New function. Displays the infomation of
9477 the selector given as argument, or of CS, DS ans FS selectors
9478 if no argument is given.
9479 ( _initialize_inftarg): Add "w32" as info prefix command.
9480 Add "info w32 selector" as command calling display_selectors.
9481
9482 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
9483
9484 * i386-tdep.c (get_longjmp_target): Fix compilation failure
9485 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
9486 if not defined.
9487
9488 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
9489
9490 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
9491
9492 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
9493
9494 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
9495 (arm_fix_call_dummy): Call it.
9496 (arm_call_dummy_breakpoint_offset): Delete.
9497 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
9498 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
9499
9500 2002-02-18 Andrew Cagney <ac131313@redhat.com>
9501
9502 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
9503 Default to func_frame_chain_valid.
9504 * gdbarch.h, gdbarch.c: Re-generate.
9505 * frame.h (FRAME_CHAIN_VALID): Delete definition.
9506
9507 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
9508
9509 * ppc-linux-nat.c: Update copyright.
9510 (fetch_register, store_register): Add tid parameter, don't compute
9511 tid here.
9512 (fetch_ppc_registers, store_ppc_registers): Add tid
9513 parameter. Pass it along to callees.
9514 (fetch_inferior_registers, store_inferior_registers): Compute tid
9515 here, and pass it to calleed functions.
9516 (fill_gregset, supply_fpregset): Clean up formatting.
9517
9518 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
9519
9520 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
9521 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
9522
9523 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
9524
9525 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
9526 * gdbarch.c gdbarch.h: Regenerate.
9527 * breakpoint.c (create_longjmp_breakpoint): Always compile this
9528 function.
9529 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
9530 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
9531 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
9532
9533 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
9534 * arm-tdep.c (arm_get_longjmp_target): New function.
9535 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
9536 this to a positive value register arm_get_longjmp_target as the
9537 longjmp handler.
9538 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
9539 (arm_linux_init_abi): Set up longjmp description in tdep.
9540 * armnbsd-nat.c (get_longjmp_target): Delete.
9541 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
9542 description in tdep.
9543 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
9544 (get_longjmp_target): Delete declaration.
9545 (GET_LONGJMP_TARGET): Delete.
9546 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
9547 (GET_LONGJMP_TARGET): Delete.
9548
9549 2002-02-17 Kevin Buettner <kevinb@redhat.com>
9550
9551 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
9552 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
9553 of ``current_gdbarch''.
9554
9555 2002-02-17 Tom Tromey <tromey@redhat.com>
9556
9557 * cli/cli-cmds.c (compare_strings): New function.
9558 (complete_command): Only print each unique item once.
9559 * completer.h (complete_line): Declare.
9560 * completer.c (complete_line): New function.
9561 (line_completion_function): Use it.
9562
9563 2002-02-16 Andrew Cagney <ac131313@redhat.com>
9564
9565 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
9566 * gdbarch.h, gdbarch.c: Re-generate.
9567
9568 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
9569
9570 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
9571
9572 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
9573
9574 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
9575 * valops.c (value_arg_coerce): Don't take the address of a reference
9576 to convert an argument to a reference.
9577
9578 2002-02-15 Christopher Faylor <cgf@redhat.com>
9579
9580 * win32-nat.c (get_image_name): New function.
9581 (handle_load_dll): Use get_image_name function.
9582 (get_child_debug_event): Avoid registering debug events until possibly
9583 execed process is started.
9584 (child_create_inferior): Allow invocation via shell so that command
9585 line redirection, etc. works ok.
9586 (_initialize_inftarg): Add new command: "set shell" to control whether
9587 a shell is used to start a process.
9588
9589 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
9590
9591 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
9592 instead of find_register_by_number.
9593 (cannot_store_register): Likewise.
9594
9595 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
9596
9597 * dwarf2read.c: Replace fprintf (stderr, ...) by
9598 fprintf_unfiltered (gdb_stderr, ...).
9599
9600 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
9601
9602 * gdbserver/gdbserver.1: Document --attach.
9603
9604 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
9605
9606 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
9607 descriptions.
9608 * arm-tdep.c (arm_default_arm_le_breakpoint)
9609 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
9610 (arm_default_thumb_be_breakpoint): New. Initialize them from
9611 traditional breakpoint defines.
9612 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
9613 (arm_gdbarch_init): Initialize new breakpoint variables.
9614 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
9615 (arm_linux_init_abi): Initialize linux-specific breakpoint.
9616 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
9617 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
9618 code out to ...
9619 (arm_netbsd_init_abi_common): ... here; new function.
9620 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
9621 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
9622 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
9623 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
9624
9625 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
9626
9627 * arm-tdep.h (enum arm_abi): New enum.
9628 (struct gdbarch_tdep): New structure.
9629 (LOWEST_PC): Provide a default.
9630 (arm_gdbarch_register_os_abi): Declare new function.
9631 * arm-tdep.c (arm_abi_names): New array.
9632 (process_note_abi_tag_sections): New function.
9633 (get_elfosabi): New function.
9634 (arm_gdbarch_register_os_abi): New function.
9635 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
9636 support for that ABI has been built in, then call the appropriate
9637 configuration routine. Use gdbarch_num_regs() to get the number
9638 of registers.
9639 (arm_dump_tdep): New function.
9640 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
9641 place-holder functions.
9642 (_initialize_arm_tdep): Register them.
9643 * config/arm/tm-arm.h (LOWEST_PC): Delete.
9644
9645 * armnbsd-tdep.c: New file.
9646 * Makefile.in (armnbsd-tdep.o): Add dependencies.
9647 * config/arm/nbsd.mt (TDEPFILES): Add it.
9648 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
9649
9650 * armnbsd-nat.c: Include regcache.h.
9651 * Makefile.in (armnbsd-nat.o): Update dependency list.
9652
9653 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
9654
9655 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9656
9657 * gdbserver/Makefile.in: Fix typos in target rules.
9658
9659 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9660
9661 Fix part of PR gdb/267.
9662 * linespec.c (find_methods): Handle constructors specially for now.
9663
9664 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
9665
9666 * arm-tdep.c (arm_push_arguments): Eliminate special float type
9667 handling.
9668 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
9669 standard_coerce_float_to_double().
9670
9671 2002-02-14 Christopher Faylor <cgf@redhat.com>
9672
9673 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
9674 GDBINIT_FILENAME.
9675
9676 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
9677
9678 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
9679 find_variant_by_name, because it confuses the multiarch
9680 framework. Return NULL if there isn't an architecture with the
9681 user supplied name, instead of forcing a different one without
9682 recording the change with the multiarch machinery.
9683 (find_variant_by_name): Delete.
9684
9685 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9686
9687 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
9688 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
9689
9690 2002-02-13 Martin M. Hunt <hunt@redhat.com>
9691
9692 * stack.c (print_frame_info_base): When calling
9693 print_frame_info_listing_hook, set current_source_symtab.
9694
9695 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9696
9697 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
9698 and remove unused $(INCLUDE_DIR).
9699 Add regcache.c to OBS.
9700 Add generated register protocol files to clean target.
9701 Update dependencies for new objects, obsolete old target code.
9702
9703 * gdbserver/linux-low.c: Remove all platform-specific code to
9704 new files. Remove various dead code. Update to use regcache
9705 functionality.
9706 * gdbserver/remote-utils.c (fromhex): Add return statement
9707 to quiet warning.
9708 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
9709 constant.
9710 (input_interrupt): Add integer parameter to match prototype
9711 of a signal handler.
9712 (outreg): Use register_data ().
9713 (prepare_resume_reply): Use gdbserver_expedite_regs.
9714 * gdbserver/server.c (main): Dynamically allocate own_buf because
9715 PBUFSIZ is no longer constant. Use registers_to_string () and
9716 registers_from_string ().
9717 * gdbserver/server.h: No longer include "defs.h". Add prototypes
9718 for error (), fatal (), and warning (). Update definition of
9719 PBUFSIZ to use regcache functionality. Add include guard.
9720 * gdbserver/utils.c (fatal): Add missing ``const''.
9721 (warning): New function.
9722
9723 * regformats/regdat.sh: Include "regcache.h" in generated files.
9724 Provide init_registers () function.
9725 * regformats/regdef.h: Add prototype for set_register_cache ().
9726 Add include guard.
9727
9728 * gdbserver/linux-arm-low.c: New file.
9729 * gdbserver/linux-i386-low.c: New file.
9730 * gdbserver/linux-ia64-low.c: New file.
9731 * gdbserver/linux-m68k-low.c: New file.
9732 * gdbserver/linux-mips-low.c: New file.
9733 * gdbserver/linux-ppc-low.c: New file.
9734 * gdbserver/linux-sh-low.c: New file.
9735
9736 * gdbserver/regcache.c: New file.
9737 * gdbserver/regcache.h: New file.
9738
9739 * gdbserver/low-linux.c: Removed obsolete file.
9740
9741 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9742
9743 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
9744 * config/i386/linux.mt: Likewise.
9745 * config/ia64/linux.mt: Likewise.
9746 * config/m68k/linux.mh: Likewise.
9747 * config/powerpc/linux.mh: Likewise.
9748 * config/mips/linux.mt: Likewise.
9749
9750 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
9751
9752 * config/i386/i386lynx.mh: Mark gdbserver variables
9753 as (currently) obsolete for this target.
9754 * config/i386/nbsd.mt: Likewise.
9755 * config/i386/nbsdelf.mt: Likewise.
9756 * config/m32r/m32r.mt: Likewise.
9757 * config/m68k/m68klynx.mh: Likewise.
9758 * config/m68k/nbsd.mt: Likewise.
9759 * config/m68k/sun3os4.mh: Likewise.
9760 * config/mips/vr5000.mt: Likewise.
9761 * config/ns32k/nbsd.mt: Likewise.
9762 * config/pa/hppabsd.mh: Likewise.
9763 * config/pa/hppaosf.mh: Likewise.
9764 * config/powerpc/nbsd.mt: Likewise.
9765 * config/rs6000/rs6000lynx.mh: Likewise.
9766 * config/s390/s390.mt: Likewise.
9767 * config/s390/s390x.mt: Likewise.
9768 * config/sparc/sparclynx.mh: Likewise.
9769 * config/sparc/sun4os4.mh: Likewise.
9770 * config/i386/x86-64linux.mt: Likewise.
9771 * config/sparc/linux.mh: Likewise.
9772
9773 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9774
9775 * configure.tgt: Configure gdbserver only for known working
9776 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
9777 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
9778 SUBDIRS if it is configured. Update comment for ${nativefile}.
9779 * configure: Regenerated.
9780
9781 2002-02-13 Michael Snyder <msnyder@redhat.com>
9782
9783 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
9784
9785 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
9786 (default_gcore_mach): Just return 0, work around a problem in bfd.
9787 (default_gcore_target): OK to return NULL if exec_bfd is null.
9788 (make_mem_sec): Use a cast, avoid a warning.
9789
9790 * procfs.c (find_memory_regions_callback): Use a cast instead of
9791 calling host_pointer_to_address (which complains if
9792 sizeof (host pointer) != sizeof (target pointer)).
9793 (procfs_make_note_section): Avoid overflow in psargs string.
9794
9795 * procfs.c (procfs_make_note_section): Make the default
9796 implementation return an error.
9797
9798 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
9799
9800 * procfs.c (procfs_make_note_section): Provide a default definition
9801 (for alpha-dec-osf4.0f). Fix typos.
9802
9803 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
9804
9805 * linux-proc.c: Add include of regcache.h.
9806 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
9807
9808 2002-02-13 Andrew Cagney <ac131313@redhat.com>
9809
9810 From 2002-01-18 Greg McGary <greg@mcgary.org>:
9811 * memattr.c (create_mem_region): Disallow useless empty region.
9812 Regions are half-open intervals, so allow [A..B) [B..C) as
9813 non-overlapping.
9814
9815 2002-02-13 Michael Chastain <mec@shout.net>
9816
9817 * defs.h: Kill CONST_PTR.
9818 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
9819 * c-lang.c (c_builtin_types): Likewise.
9820 * ch-lang.c (ch_builtin_types): Likewise.
9821 * f-lang.c (f_builtin_types): Likewise.
9822 * language.c (unknown_builtin_types): Likewise.
9823 * m2-lang.c (m2_builtin_types): Likewise.
9824 * p-lang.c (pascal_builtin_types): Likewise.
9825 * scm-lang.c (c_builtin_types): Likewise.
9826
9827 2002-02-13 Keith Seitz <keiths@redhat.com>
9828
9829 * arm-tdep.h (arm_get_next_pc): Add declaration.
9830
9831 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
9832
9833 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
9834 with other related struct-returning functions.
9835 (arm_extract_struct_value_address): New function.
9836 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
9837 initialize float_format, double_format and long_double_format as
9838 appropriate to the endianness of the target.
9839 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
9840 (arm_use_struct_convention): Delete declaration.
9841 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
9842
9843 2002-02-13 Keith Seitz <keiths@redhat.com>
9844
9845 * defs.h (core_addr_to_string_nz): New function.
9846
9847 2002-02-13 Mark Kettenis <kettenis@gnu.org>
9848
9849 Apply missing bits of 2002-01-15 patch.
9850 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
9851 (fill_fpregset): Use i387_fill_fsave.
9852
9853 2002-02-12 Keith Seitz <keiths@redhat.com>
9854
9855 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
9856 (core_addr_to_string_nz): New function.
9857
9858 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
9859
9860 * arm-linux-nat.c: Really include arm-tdep.h.
9861 * config/arm/tm-linux.h (struct type, struct value): Declare.
9862
9863 2002-02-11 Michael Snyder <msnyder@redhat.com>
9864
9865 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
9866 (gcore section): Ifdef for Solaris and Unixware only.
9867 (procfs_do_thread_registers): Unixware needs one lwpstatus
9868 per thread (not one prstatus or pstatus).
9869 (procfs_make_note_section): Iterate only over kernel threads (lwps),
9870 not over all gdb threads. For unixware, call elfcore_write_pstatus
9871 once before iterating over threads.
9872
9873 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
9874
9875 * arm-tdep.h: New file.
9876 * arm-tdep.c: Include arm-tdep.h.
9877 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
9878 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
9879 (arm_print_float_info, arm_register_type, convert_to_extended)
9880 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
9881 (arm_extract_return_value, arm_register_name): Make static.
9882 (arm_software_single_step): Similarly. Fix types in declaration.
9883 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
9884 (arm_store_return_value, arm_store_struct_return): New functions.
9885 (arm_gdbarch_init): Register the above functions. Also register
9886 call_dummy_start_offset, sizeof_call_dummy_words,
9887 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
9888 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
9889 max_register_virtual_size, register_size. Set up
9890 prologue_cache.saved_regs here, rather than ...
9891 (_initialize_arm_tdep): ... here.
9892 * config/arm/tm-arm.h (struct type, struct value): Delete forward
9893 declarations.
9894 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
9895 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
9896 (arm_print_float_info, arm_register_type, convert_to_extended)
9897 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
9898 (arm_extract_return_value, arm_register_name): Delete declarations.
9899 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
9900 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
9901 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
9902 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
9903 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
9904 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
9905 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
9906 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
9907 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
9908 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
9909 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
9910 (arm_get_next_pc): No-longer static -- these are needed by the RDI
9911 interface.
9912 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
9913 * remote-rdi.c remote-rdp.c: Likewise.
9914 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
9915 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
9916 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
9917 definition.
9918
9919 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
9920 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
9921 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
9922 from non-ARM_ prefixed definitions.
9923 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
9924 all uses of above.
9925 * remote-rdi.c remote-rdp.c: Likewise.
9926 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
9927
9928 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
9929
9930 * arm-tdep.c (arm_frameless_function_invocation)
9931 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
9932 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
9933 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
9934 (arm_pop_frame, arm_get_next_pc): Make static.
9935 (arm_gdbarch_init): Register above in gdbarch structure.
9936 (arm_read_fp): Renamed from arm_target_read_fp.
9937 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
9938 * config/arm/tm-arm.h (arm_frameless_function_invocation)
9939 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
9940 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
9941 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
9942 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
9943 (arm_pc_is_thumb_dummy): Delete declarations.
9944 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
9945 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
9946 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
9947 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
9948
9949 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
9950
9951 * symtab.c (compare_search_syms): New function.
9952 (sort_search_symbols): New function.
9953 (search_symbols): Sort symbols after searching rather than
9954 before.
9955
9956 2002-02-10 Andrew Cagney <ac131313@redhat.com>
9957
9958 * NEWS: Linux -> GNU/Linux.
9959
9960 2002-02-10 Andrew Cagney <ac131313@redhat.com>
9961
9962 * gdbarch.sh: For for level one methods, disallow a definition
9963 when partially multi-arched. Add comments explaining rationale.
9964 * gdbarch.h: Re-generate.
9965
9966 2002-02-10 Andrew Cagney <ac131313@redhat.com>
9967
9968 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
9969 multi-arch partial.
9970
9971 2002-02-10 Andrew Cagney <ac131313@redhat.com>
9972
9973 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
9974 field. Use diff -u.
9975 * gdbarch.c: Re-generate.
9976
9977 2002-02-10 Andrew Cagney <ac131313@redhat.com>
9978
9979 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
9980 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
9981 partial.
9982
9983 2002-02-10 Andrew Cagney <ac131313@redhat.com>
9984
9985 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
9986 multi-arch partial.
9987 (PUSH_ARGUMENTS): Switch to using predefault.
9988 * gdbarch.c: Regenerate.
9989
9990 2002-02-10 Andrew Cagney <ac131313@redhat.com>
9991
9992 * valops.c (PUSH_ARGUMENTS): Delete definition.
9993 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
9994 partial. Default to default_push_arguments.
9995 * gdbarch.h, gdbarch.c: Regenerate.
9996
9997 2002-02-09 Andrew Cagney <ac131313@redhat.com>
9998
9999 * defs.h (throw_exception): Rename return_to_top_level. Update
10000 comments.
10001 * utils.c (error_stream, internal_verror, quit): Ditto.
10002 * top.c (throw_exception, catcher): Ditto.
10003 * sparclet-rom.c (sparclet_load): Ditto.
10004 * remote.c (interrupt_query, minitelnet): Ditto.
10005 * remote-sds.c (interrupt_query): Ditto.
10006 * remote-mips.c (mips_error, mips_kill): Ditto.
10007 * ocd.c (interrupt_query): Ditto.
10008 * monitor.c (monitor_interrupt_query): Ditto.
10009 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
10010 * target.h: Update comment.
10011
10012 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
10013
10014 2002-02-09 Andrew Cagney <ac131313@redhat.com>
10015
10016 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
10017 default_double_format.
10018 * gdbarch.h, gdbarch.c: Re-generate.
10019 * findvar.c (floatformat_unknown): Delete variable definition.
10020 * doublest.h (floatformat_unknown): Delete variable declaration.
10021
10022 2002-02-09 Jim Blandy <jimb@redhat.com>
10023
10024 * stabsread.c (read_type): Add code to parse Sun's syntax for
10025 prototyped function types.
10026
10027 2002-02-09 Andrew Cagney <ac131313@redhat.com>
10028
10029 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
10030 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
10031
10032 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10033
10034 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
10035 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
10036 now _initialize_xcoffsolib gets called again and overrides the
10037 commands from solib.c in a native configuration.
10038
10039 2002-02-09 Mark Kettenis <kettenis@gnu.org>
10040
10041 * doublest.c (store_typed_floating): Don't try to return a value.
10042 Fixes PR gdb/290.
10043
10044 2002-02-08 Jim Blandy <jimb@redhat.com>
10045
10046 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
10047 is prototyped and has no arguments, print its argument list as
10048 `(void)'.
10049
10050 2002-02-08 Chris Demetriou <cgd@broadcom.com>
10051
10052 * MAINTAINERS (write-after-approval): Add myself.
10053 (paper-trail): I've escaped!
10054
10055 2002-02-08 Christopher Faylor <cgf@redhat.com>
10056
10057 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
10058 changes.
10059 (_initialize_check_for_gdb_ini): Ditto.
10060
10061 2002-02-08 Martin M. Hunt <hunt@redhat.com>
10062
10063 * win32-nat.c (cygwin_pid_to_str): Fix typo.
10064 xaprintf -> xasprintf.
10065
10066 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
10067
10068 * win32-nat.c: Remove use of printf and sprintf functions.
10069
10070 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
10071
10072 * arm-tdep.c (arm_frame_chain_valid): Make static.
10073 (arm_push_arguments): Likewise.
10074 (arm_gdbarch_init): New function.
10075 (_initialize_arm_tdep): Call it.
10076 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
10077 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
10078 (FRAME_CHAIN_VALID): Delete.
10079 (arm_frame_chain_valid): Delete declaration.
10080 (PUSH_ARGUMENTS): Delete.
10081 (arm_push_arguments): Delete declaration.
10082 (CALL_DUMMY_P): Delete.
10083
10084 2002-02-08 Andrew Cagney <ac131313@redhat.com>
10085 Corinna Vinschen <vinschen@redhat.com>
10086
10087 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
10088 on builtin float types.
10089
10090 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
10091
10092 * utils.c: Include <curses.h> before "bfd.h".
10093 * tui/tui-hooks.c: Likewise.
10094 * tui/tui.c: Likewise.
10095 * tui/tuiCommand.c: Likewise.
10096 * tui/tuiData.c: Likewise.
10097 * tui/tuiDataWin.c: Likewise.
10098 * tui/tuiDisassem.c: Likewise.
10099 * tui/tuiGeneralWin.c: Likewise.
10100 * tui/tuiIO.c: Likewise.
10101 * tui/tuiLayout.c: Likewise.
10102 * tui/tuiRegs.c: Likewise.
10103 * tui/tuiSource.c: Likewise.
10104 * tui/tuiSourceWin.c: Likewise.
10105 * tui/tuiStack.c: Likewise.
10106 * tui/tuiWin.c: Likewise.
10107
10108 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
10109
10110 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
10111 to include space for pseudoregs as well. Update loops accordingly.
10112 (sh_fp_frame_init_saved_regs): Ditto.
10113 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
10114
10115 2002-02-07 Andrew Cagney <ac131313@redhat.com>
10116
10117 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
10118 Add Richard Earnshaw to Arm maintainers.
10119
10120 2002-02-07 Andrew Cagney <ac131313@redhat.com>
10121
10122 * defs.h (warning_begin): Delete declaration.
10123
10124 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
10125 Delete macro.
10126
10127 2002-02-07 Michael Snyder <msnyder@redhat.com>
10128
10129 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
10130 Logic bug, remove misplaced else.
10131
10132 2002-02-07 Klee Dienes <klee@apple.com>
10133
10134 * fork-inferior.c (fork_inferior): Add '!' to the list of
10135 characters that need to be quoted when building a string for the
10136 shell. Quote '!' specifically with a backslash, since CSH chokes
10137 when trying to evaluate "str!str".
10138
10139 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
10140
10141 * rdi-share/host.h: Only provide a typedef for bool if it is not
10142 defined.
10143
10144 2002-02-04 Michael Snyder <msnyder@redhat.com>
10145
10146 * breakpoint.h (enum bptype): Add new overlay event bp type.
10147 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
10148
10149 * breakpoint.c (create_internal_breakpoint): New function.
10150 (internal_breakpoint_number): Moved into create_internal_breakpoint.
10151 (create_longjmp_breakpoint): Use create_internal_breakpoint.
10152 (create_thread_event_breakpoint): Ditto.
10153 (create_solib_event_breakpoint): Ditto.
10154 (create_overlay_event_breakpoint): New function.
10155 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
10156 (update_breakpoints_after_exec): Delete and re-initialize
10157 overlay event breakpoints after an exec. Add FIXME comment
10158 about longjmp breakpoint.
10159 (print_it_typical): Ignore overlay event breakpoints.
10160 (print_one_breakpoint): Ditto.
10161 (mention): Ditto.
10162 (bpstat_what): Do not stop for overlay event breakpoints.
10163 (delete_breakpoint): Don't delete overlay event breakpoints.
10164 (breakpoint_re_set_one): Delete the overlay event breakpoint.
10165 (breakpoint_re_set): Re-create overlay event breakpoint.
10166
10167 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
10168 (overlay_manual_command): Disable overlay breakpoints.
10169 (overlay_off_command): Disable overlay breakpoints.
10170
10171 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
10172
10173 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
10174 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
10175 to here from config/tm-arm.h.
10176 (coff_sym_is_thumb): Make static.
10177 (arm_elf_make_msymbol_special): New function.
10178 (arm_coff_make_msymbol_special): New function.
10179 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
10180 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
10181 (coff_sym_is_thumb): Delete declaration.
10182 (arm_elf_make_msymbol_special): Declare.
10183 (arm_coff_make_msymbol_special): Declare.
10184 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
10185 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
10186
10187 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
10188
10189 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
10190
10191 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
10192
10193 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
10194 * gdbarch.c gdbarch.h: Regenerate.
10195 * arch-utils.c (default_print_float_info): New function.
10196 * arch-utils.h (default_print_float_info): Prototype it.
10197 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
10198 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
10199 (PRINT_FLOAT_INFO): Document it.
10200
10201 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
10202 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
10203 (PRINT_FLOAT_INFO): Define.
10204
10205 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
10206
10207 * win32-nat.c (_initialize_check_for_gdb_ini):
10208 Add typecast to sprintf argument to suppress a warning.
10209
10210 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
10211
10212 * win32-nat.c (last_sig): Changed type of variable to target_signal,
10213 to allow easier handling of pass state.
10214 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
10215 that gives exception name and address.
10216 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
10217 and set last_sig value to ourstatus->value.sig. Some missing
10218 exceptions added.
10219 (child_continue): Correctly report continue_status.
10220 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
10221 TARGET_SIGNAL_0 (new default value).
10222 (child_resume): consider sig argument passed to decide if
10223 the exception should be passed to debuggee or not.
10224
10225 2002-02-05 Michael Snyder <msnyder@redhat.com>
10226
10227 * regcache.c (fetch_register): Call target_fetch_register
10228 only if we don't call FETCH_PSEUDO_REGISTER.
10229 (store_register): Call target_store_register only if we
10230 don't call STORE_PSEUDO_REGISTER.
10231
10232 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
10233
10234 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
10235 ELF_MAKE_MSYMBOL_SPECIAL.
10236 * gdbarch.c, gdbarch.h: Regenerate.
10237 * arch-utils.c (default_make_msymbol_special): New function.
10238 * arch-utils.h (default_make_msymbol_special): Export.
10239 * elfread.c (elf_symtab_read): Compile use of
10240 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
10241 multiarched.
10242 * coffread.c (coff_symtab_read): Ditto, for
10243 COFF_MAKE_MSYMBOL_SPECIAL.
10244
10245 2002-02-05 Jim Blandy <jimb@redhat.com>
10246
10247 * solib-svr4.c (svr4_truncate_ptr): New function.
10248 (svr4_relocate_section_addresses): Do the address arithmetic with
10249 the appropriate truncation for target addresses, even when
10250 CORE_ADDR is larger than a target address.
10251
10252 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10253
10254 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
10255 to (int *).
10256
10257 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10258
10259 * gdbserver/linux-low.c (kill_inferior): Remove commented out
10260 code.
10261
10262 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10263
10264 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
10265
10266 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10267
10268 * gdbserver/linux-low.c: Remove unused include files.
10269
10270 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10271
10272 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
10273 (read_inferior_memory): Use it.
10274 (write_inferior_memory): Likewise.
10275
10276 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10277
10278 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
10279 grubbing through sys_errlist.
10280
10281 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10282
10283 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
10284
10285 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
10286 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
10287
10288 2002-02-04 Andrew Cagney <ac131313@redhat.com>
10289
10290 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
10291 (do_sfunc, set_cmd_sfunc): New functions.
10292
10293 * command.h (struct cmd_list_element): Add field func.
10294 * cli/cli-decode.h (struct cmd_list_element): Ditto.
10295 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
10296 * cli/cli-decode.h: Ditto.
10297
10298 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
10299 (help_all, help_cmd_list): Ditto.
10300 (find_cmd, complete_on_cmdlist): Ditto.
10301 * top.c (execute_command): Ditto.
10302
10303 * cli/cli-setshow.c (do_setshow_command): Call func instead of
10304 function.sfunc.
10305
10306 * infcmd.c (notice_args_read): Fix function signature.
10307
10308 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
10309 * cli/cli-decode.c (add_set_cmd): Ditto.
10310 * utils.c (initialize_utils): Ditto.
10311 * maint.c (_initialize_maint_cmds): Ditto.
10312 * infrun.c (_initialize_infrun): Ditto.
10313 * demangle.c (_initialize_demangler): Ditto.
10314 * remote.c (add_packet_config_cmd): Ditto.
10315 * mips-tdep.c (_initialize_mips_tdep): Ditto.
10316 * cris-tdep.c (_initialize_cris_tdep): Ditto.
10317 * proc-api.c (_initialize_proc_api): Ditto.
10318 * kod.c (_initialize_kod): Ditto.
10319 * valprint.c (_initialize_valprint): Ditto.
10320 * top.c (init_main): Ditto.
10321 * infcmd.c (_initialize_infcmd): Ditto.
10322 * corefile.c (_initialize_core): Ditto.
10323 * arm-tdep.c (_initialize_arm_tdep): Ditto.
10324 * arch-utils.c (initialize_current_architecture): Ditto.
10325 (_initialize_gdbarch_utils): Ditto.
10326 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
10327
10328 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
10329 * wince.c (_initialize_inftarg): Ditto.
10330 * symfile.c (_initialize_symfile): Ditto.
10331 * mips-tdep.c (_initialize_mips_tdep): Ditto.
10332 * language.c (_initialize_language): Ditto.
10333 * arc-tdep.c (_initialize_arc_tdep): Ditto.
10334
10335 2002-02-04 Michael Snyder <msnyder@redhat.com>
10336
10337 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
10338
10339 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
10340
10341 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
10342 Add rules for building the register data files.
10343
10344 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
10345
10346 * regformats/regdat.sh: Add braces to the definition of
10347 expedite_regs_${arch}.
10348
10349 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
10350
10351 * regformats/regdef.h (struct reg): Add comment describing the
10352 requirements for offset and size fields.
10353
10354 2002-02-04 Andreas Schwab <schwab@suse.de>
10355
10356 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
10357 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
10358
10359 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
10360
10361 * gdbarch.sh (copyright): Update years in generated header.
10362 (SMASH_TEXT_ADDRESS): Add rule.
10363 * gdbarch.h, gdbarch.c: Re-generate.
10364 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
10365 * dbxread.c: Likewise.
10366 * dwarfread.c: Likewise.
10367 * elfread.c: Likewise.
10368 * somread.c: Likewise.
10369
10370 * arm-tdep.c (arm_smash_text_address): New function.
10371 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
10372
10373 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
10374
10375 Add support for hardware watchpoints on win32 native.
10376 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
10377 CONTEXT_DEBUG_REGISTERS.
10378 (dr variable): New variable. Static array containing a local copy
10379 of debug registers.
10380 (debug_registers_changed): New variable. Reflects when debug registers
10381 are changed and need to be written to inferior.
10382 (debug_registers_used): New variable. Reflects when any debug register
10383 was set, used when new threads are created.
10384 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
10385 i386-nat code.
10386 (thread_rec): Set dr array if id is the thread of current_event .
10387 (child_continue, child_resume): Change the debug registers for all
10388 threads if debug_registers_changed.
10389 (child_add_thread): Change the debug registers if debug_registers_used.
10390 * config/i386/cygwin.mh: Add use of i386-nat.o file.
10391 Link nm.h to new nm-cygwin.h file.
10392 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
10393 of hardware registers.
10394
10395 2002-02-03 Andrew Cagney <ac131313@redhat.com>
10396
10397 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
10398 Restore behavour broken by 2002-01-20 Andrew Cagney
10399 <ac131313@redhat.com> IEEE_FLOAT removal.
10400
10401 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
10402
10403 * c-valprint.c (c_val_print): Pass a proper valaddr to
10404 cp_print_class_method.
10405 * valops.c (search_struct_method): If there is only one method
10406 and args is NULL, return that method.
10407
10408 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
10409
10410 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
10411 accessing tag_name directly.
10412
10413 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
10414
10415 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
10416 of accessing tag_name directly.
10417
10418 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
10419
10420 PR gdb/280
10421 * gdbtypes.c (replace_type): New function.
10422 * gdbtypes.h (replace_type): Add prototype.
10423 * stabsread.c (read_type): Use replace_type.
10424
10425 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
10426
10427 * Makefile.in (memattr.o): Add missing dependencies rule.
10428
10429 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10430
10431 * breakpoint.c (break_at_finish_command): Really export.
10432 (break_at_finish_at_depth_command): Ditto.
10433 (tbreak_at_finish_command): Ditto.
10434 * hppa-tdep.c: Include completer.h.
10435 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
10436 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
10437
10438 2002-02-01 Andrew Cagney <ac131313@redhat.com>
10439
10440 * utils.c (do_write): New function.
10441 (error_stream): Rewrite combining the code from error_begin and
10442 verror.
10443 (verror): Rewrite using error_stream.
10444 (error_begin): Delete function.
10445
10446 2002-02-01 Andrew Cagney <ac131313@redhat.com>
10447
10448 * utils.c (error_begin): Make static.
10449 * defs.h (error_begin): Delete declaration.
10450
10451 * linespec.c (cplusplus_error): Replace cplusplus_hint.
10452 (decode_line_1): Use cplusplus_error instead of error_begin,
10453 cplusplus_hint and return_to_top_level.
10454 * coffread.c (coff_symfile_read): Use error instead of error_begin
10455 and return_to_top_level.
10456 * infrun.c (default_skip_permanent_breakpoint): Ditto.
10457
10458 2002-02-01 Andrew Cagney <ac131313@redhat.com>
10459
10460 * language.h (type_error, range_error): Make string parameter
10461 constant.
10462 * language.c (warning_pre_print): Delete extern declaration.
10463 * dwarfread.c (warning_pre_print): Ditto.
10464 * language.c (type_error, range_error): Rewrite to use verror and
10465 vwarning instead of warning_begin.
10466
10467 2002-02-01 Michael Snyder <msnyder@redhat.com>
10468
10469 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
10470 (set_ignore_count): Move misplaced comment back where it belongs.
10471
10472 2002-02-01 Andrew Cagney <ac131313@redhat.com>
10473
10474 * command.h (NO_FUNCTION): Delete macro.
10475 * cli/cli-decode.h (NO_FUNCTION): Ditto.
10476 * top.c (execute_command): Replace NO_FUNCTION with NULL.
10477 * tracepoint.c (_initialize_tracepoint): Ditto.
10478 * cli/cli-decode.c (add_set_cmd): Ditto.
10479 * cli/cli-cmds.c (init_cli_cmds): Ditto.
10480
10481 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
10482
10483 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
10484 Update ``this'' pointer when calling virtual functions.
10485
10486 2002-02-01 Michael Snyder <msnyder@redhat.com>
10487
10488 * breakpoint.c (create_temp_exception_breakpoint): Delete.
10489 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
10490
10491 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
10492
10493 * regformats/reg-arm.dat: New file.
10494 * regformats/reg-i386.dat: New file.
10495 * regformats/reg-ia64.dat: New file.
10496 * regformats/reg-m68k.dat: New file.
10497 * regformats/reg-mips.dat: New file.
10498 * regformats/reg-ppc.dat: New file.
10499 * regformats/reg-sh.dat: New file.
10500 * regformats/regdef.h: New file.
10501 * regformats/regdat.sh: New file.
10502
10503 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
10504
10505 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
10506 (arm_frame_args_address, arm_frame_locals_address): New functions.
10507 (arm_frame_num_args): New function.
10508 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
10509 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
10510 (FRMA_NUM_ARGS): Call arm_frame_num_args.
10511
10512 2002-01-31 Michael Snyder <msnyder@redhat.com>
10513
10514 * breakpoint.c (break_at_finish_command): Export.
10515 (break_at_finish_at_depth_command): Export.
10516 (tbreak_at_finish_command): Export.
10517 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
10518 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
10519 "txbreak" commands, which are HPPA specific.
10520
10521 * printcmd.c (disassemble_command): Remove an ancient
10522 artifact of an old merge.
10523
10524 * symfile.h (enum overlay_debugging_state):
10525 Define enum constant values for overlay mode.
10526 * symfile.c (overlay_debugging): Use enums instead of literals.
10527 (overlay_is_mapped, overlay_auto_command,
10528 overlay_manual_command): Ditto.
10529
10530 * breakpoint.c (insert_breakpoints, remove_breakpoint,
10531 breakpoint_here_p, breakpoint_inserted_here_p,
10532 breakpoint_thread_match, bpstat_stop_status,
10533 describe_other_breakpoints, check_duplicates, clear_command):
10534 Coding standard fixes.
10535
10536 * target.c (target_xfer_memory): Add spaces, coding standard.
10537 (do_xfer_memory): Add missing line to trust-readonly
10538 code: check bfd SEC_READONLY flag for section.
10539
10540 2002-01-31 Andrew Cagney <ac131313@redhat.com>
10541
10542 * PROBLEMS: Fix typo, 5.1->5.1.1.
10543
10544 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
10545
10546 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
10547 data symbols, since we search based on textlow and texthigh.
10548 (find_pc_sect_symtab): Likewise.
10549
10550 2002-01-30 Andrew Cagney <ac131313@redhat.com>
10551
10552 * defs.h (vwarning): Declare.
10553 * utils.c (vwarning): New function.
10554 (warning): Call vwarning.
10555 (warning_begin): Delete function.
10556
10557 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
10558 the warning message.
10559 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
10560 warning_begin.
10561
10562 2002-01-30 Michael Snyder <msnyder@redhat.com>
10563
10564 * NEWS: Mention "set trust-readonly-sections" command.
10565 Mention generate-core-file command.
10566
10567 2002-01-15 Michael Snyder <msnyder@redhat.com>
10568
10569 * target.c: New command, "set trust-readonly-sections on".
10570 (do_xfer_memory): Honor the suggestion to trust readonly sections
10571 by reading them from the object file instead of from the target.
10572 (initialize_targets): Register command "set trust-readonly-sections".
10573
10574 2002-01-29 Andrew Cagney <ac131313@redhat.com>
10575
10576 * parse.c (target_map_name_to_register): Simplify, search regs and
10577 pseudo-regs using a single loop.
10578
10579 2002-01-30 Andrew Cagney <ac131313@redhat.com>
10580
10581 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
10582
10583 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
10584
10585 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
10586 * config/i386/i386v42mp.mh: Add i387-nat.o .
10587 * i386v4-nat.c: Include i387-nat.h.
10588 (supply_fpregset): Use i387_supply_fsave.
10589 (fill_fpregset): Use i387_fill_fsave.
10590
10591 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
10592
10593 * arm-tdep.c (arm_call_dummy_words): Define.
10594 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
10595 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
10596 (CALL_DUMMY_WORDS): Define.
10597 (arm_call_dummy_words): Declare.
10598 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
10599 (arm_linux_call_dummy_words): Declare.
10600
10601 2002-01-30 Andreas Schwab <schwab@suse.de>
10602
10603 * m68klinux-nat.c: Fix last change to use regcache_collect
10604 instead of referencing registers[] directly.
10605
10606 2002-01-29 Andrew Cagney <ac131313@redhat.com>
10607
10608 * parse.c (target_map_name_to_register): Delete code wrapped in
10609 #ifdef REGISTER_NAME_ALIAS_HOOK.
10610
10611 2002-01-28 Michael Snyder <msnyder@redhat.com>
10612
10613 * regcache.c (legacy_read_register_gen): Need to be able to
10614 read pseudo-register as well as real register.
10615 (legacy_write_register_gen): Ditto.
10616
10617 2002-01-28 Andrew Cagney <ac131313@redhat.com>
10618
10619 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
10620 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
10621 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
10622 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
10623 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
10624 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
10625 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
10626 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
10627 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
10628 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
10629 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
10630 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
10631 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
10632 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
10633 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
10634 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
10635 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
10636 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
10637 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
10638 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
10639
10640 2002-01-28 Andrew Cagney <ac131313@redhat.com>
10641
10642 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
10643 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
10644 (initialize_current_architecture): Update target_byte_order using
10645 information from BFD.
10646 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
10647 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
10648
10649 2002-01-28 Andrew Cagney <ac131313@redhat.com>
10650
10651 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
10652 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
10653
10654 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
10655 #ifdef INVALID_FLOAT.
10656 * infcmd.c (do_registers_info): Ditto.
10657 * values.c (unpack_double): Ditto. Add comment.
10658
10659 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
10660 already commented out.
10661
10662 2002-01-26 Andreas Schwab <schwab@suse.de>
10663
10664 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
10665 * m68klinux-nat.c: Update ptrace interface for fetching/storing
10666 registers and add support for PTRACE_GETREGS.
10667
10668 2002-01-24 Andrew Cagney <ac131313@redhat.com>
10669
10670 GDB 5.1.1 released from 5.1 branch.
10671 * NEWS: Add 5.1.1 news.
10672 * README: Sync with 5.1 branch.
10673
10674 2002-01-23 Fred Fish <fnf@redhat.com>
10675
10676 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
10677 stabstring on initial malloc. Reallocing will copy it for us,
10678 if necessary.
10679
10680 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
10681
10682 * Makefile.in (hpread_h): Delete.
10683 (HFILES_NO_SRCDIR): Remove hpread.h.
10684 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
10685 (hpread.o): Update dependencies.
10686 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
10687
10688 * hp-psymtab-read.c: Remove file.
10689 * hp-symtab-read.c: Remove file.
10690 * hpread.h: Remove file.
10691
10692 * hpread.c: Merge all contents of hp-psymtab-read.c,
10693 hp-symtab-read.c and hpread.h into this file, as it was prior to
10694 January 1999.
10695
10696 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
10697 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
10698 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
10699 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
10700
10701 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
10702
10703 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
10704 fill_gregset): Call gdbarch_tdep() just once, assign result to
10705 variable and use that, instead of calling the function several
10706 times.
10707
10708 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
10709
10710 * configure.host: Accept sparcv9 as alias for sparc64.
10711 * configure.tgt: Likewise.
10712
10713 2002-01-22 Kevin Buettner <kevinb@redhat.com>
10714
10715 * solib-aix5.c (build_so_list_from_mapfile)
10716 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
10717 arguments is not reversed.
10718 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
10719 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
10720
10721 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
10722
10723 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
10724 modified version of obsolete sh_fetch_pseudo_register.
10725 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
10726 (sh4_register_read): New function.
10727 (sh_pseudo_register_write): New function. Renamed and modified
10728 version of obsolete sh_store_pseudo_register.
10729 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
10730 (sh4_register_write): New function.
10731 (sh_gdbarch_init): Remove setting of gdbarch function
10732 fetch_pseudo_register and store_pseudo_register. Remove setting of
10733 register_convert_to_raw, register_convert_to_virtual,
10734 register_convertible.
10735 (sh_sh4_register_convertible): Delete. No longer needed. All is
10736 taken care by architecture specific functions
10737 register_read/register_write.
10738 (sh_sh4_register_convert_to_virtual): Make static.
10739 (sh_sh4_register_convert_to_raw): Ditto.
10740
10741 2002-01-22 Andrew Cagney <ac131313@redhat.com>
10742
10743 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
10744 (floatformat_is_nan, floatformat_mantissa): Ditto.
10745
10746 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
10747 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
10748 builtin_type_ieee_double_little,
10749 builtin_type_ieee_double_littlebyte_bigword,
10750 builtin_type_m68881_ext, builtin_type_i960_ext,
10751 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
10752 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
10753 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
10754 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
10755
10756 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
10757
10758 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
10759 parameter. Set frameless flag if it exists and depended of
10760 whether the scanned function is frameless or not.
10761 (xstormy16_skip_prologue): If function is frameless, return
10762 result of xstormy16_scan_prologue().
10763 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
10764 call.
10765
10766 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
10767
10768 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
10769 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
10770 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
10771 sh_sh4_register_byte, sh_sh4_register_raw_size,
10772 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
10773 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
10774 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
10775 sh_store_pseudo_register, sh_do_pseudo_register): Call
10776 gdbarch_tdep() just once, assign result to variable and use that,
10777 instead of calling the function several times.
10778
10779 2002-01-20 Mark Kettenis <kettenis@gnu.org>
10780
10781 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
10782 macros instead of LAST_FPU_CTRL_REGNUM.
10783 (store_register): Likewise.
10784
10785 2002-01-21 Jim Blandy <jimb@redhat.com>
10786
10787 * infcmd.c (run_command): Check that the `exec' target layer's BFD
10788 is up-to-date before running the program, not just when a program
10789 exits.
10790
10791 2002-01-21 Fred Fish <fnf@redhat.com>
10792
10793 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
10794 when we have found all instructions we are looking for.
10795
10796 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
10797
10798 * arm-tdep.c (arm_register_name): New function.
10799 (arm_registers_names): Make static.
10800 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
10801 (arm_register_name): Declare.
10802 (REGISTER_NAME): Use it.
10803
10804 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
10805 Kevin Buettner <kevinb@redhat.com>
10806
10807 Convert arm targets to new FRAME interface.
10808 * arm-tdep.c (struct frame_extra_info): Remove fsr.
10809 (arm_frame_find_save_regs): Delete.
10810 (arm_frame_init_saved_regs): New.
10811 (arm_init_extra_frame_info): Alloacte saved_regs as required.
10812 Allocate extra_info as required. Convert all uses of fsr.regs
10813 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
10814 to use extra_info.
10815 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
10816 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
10817 (check_prologue_cache, save_prologue_cache): Likewise.
10818 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
10819 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
10820 (FRAME_FIND_SAVED_REGS): Delete.
10821 (arm_frame_find_saved_regs): Delete prototype.
10822 (arm_frame_init_saved_regs): New prototype.
10823 (FRAME_INIT_SAVED_REGS): Define.
10824
10825 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10826
10827 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
10828
10829 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10830
10831 From Jeff Law <law@redhat.com>:
10832 * infttrace.c: Include <sys/pstat.h>.
10833 (child_pid_to_exec_file): Revamp. Use pstat call to get the
10834 exec file if the ttrace equivalent fails.
10835
10836 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10837
10838 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
10839 (closeLogFile): Ditto.
10840
10841 2002-01-20 Michael Chastain <mec@shout.net>
10842
10843 * top.c (print_gdb_version): Bump copyright year to 2002.
10844
10845 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10846
10847 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
10848 Zannoni and Eli Zaretskii.
10849
10850 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
10851
10852 * buildsym.c: Update copyright years.
10853 * c-typeprint.c: Likewise.
10854 * dwarf2read.c: Likewise.
10855 * f-typeprint.c: Likewise.
10856 * gdbtypes.c: Likewise.
10857 * gdbtypes.h: Likewise.
10858 * hp-symtab-read.c: Likewise.
10859 * hpread.c: Likewise.
10860 * mdebugread.c: Likewise.
10861 * p-typeprint.c: Likewise.
10862
10863 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10864
10865 * remote-sim.c (gdbsim_open): Simplify code testing the macro
10866 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
10867 byte-order selectable.
10868 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
10869 * arch-utils.c: Ditto.
10870 (set_endian): Ditto.
10871 (set_endian_from_file): Ditto.
10872 * gdbserver/low-sim.c (create_inferior): Ditto.
10873 * gdbarch.sh: Ditto.
10874 * gdbarch.h: Re-generate.
10875 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10876 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
10877 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
10878 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10879 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10880 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10881 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
10882 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
10883 macro definition.
10884 * config/mips/tm-wince.h: Remove #undef of macro
10885 TARGET_BYTE_ORDER_SELECTABLE.
10886 * config/sh/tm-wince.h: Ditto.
10887
10888 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
10889
10890 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
10891 member function fields. Add accessor macro
10892 TYPE_FN_FIELD_ARTIFICIAL.
10893 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
10894 * c-typeprint.c (c_type_print_base): Skip artificial member
10895 functions.
10896
10897 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
10898
10899 * f-typeprint.c: Delete unused function f_type_print_args.
10900 * p-typeprint.c: Delete unused function pascal_type_print_args.
10901
10902 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
10903
10904 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
10905 comment. Add ``artificial'' to ``union field_location''.
10906
10907 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
10908
10909 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
10910 * mdebugread.c (parse_symbol): Likewise.
10911 * stabsread.c (define_symbol): Likewise.
10912 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
10913 initializing TYPE_FIELD_BITPOS to n (obsolete).
10914 (hpread_doc_function_type): Likewise.
10915 * hpread.c (hpread_function_type): Likewise.
10916
10917 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10918
10919 * configure.in (host_makefile_frag): Only require a host makefile
10920 fragment when a native build.
10921 * configure: Re-generate.
10922
10923 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10924
10925 * doublest.h (floatformat_from_type): Declare.
10926 * doublest.c (floatformat_from_type): New function.
10927 (convert_typed_floating): Use.
10928
10929 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
10930 call to function floatformat_from_type.
10931
10932 * gdbarch.sh (IEEE_FLOAT): Delete.
10933 * gdbarch.h, gdbarch.c: Re-generate.
10934 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
10935 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
10936 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
10937 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
10938 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
10939 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
10940 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
10941 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
10942 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
10943 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
10944 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
10945 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
10946
10947 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
10948 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
10949 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10950 * sh-tdep.c (sh_gdbarch_init): Ditto.
10951 * mips-tdep.c (mips_gdbarch_init): Ditto.
10952 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10953 * cris-tdep.c (cris_gdbarch_init): Ditto.
10954
10955 2002-01-20 Jiri Smid <smid@suse.cz>
10956
10957 * configure.host, configure.tgt: Support x86-64.
10958 * NEWS: Note new target x86-64.
10959
10960 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
10961 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
10962 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
10963 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
10964 x86-64-linux-nat.o): Fix dependencies.
10965
10966 2002-01-19 Andrew Cagney <ac131313@redhat.com>
10967
10968 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
10969 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
10970 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
10971 * config/sparc/xm-sun4os4.h: Delete file.
10972 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
10973
10974 2002-01-19 Andrew Cagney <ac131313@redhat.com>
10975
10976 * config/sparc/sparclynx.mh (XM_FILE): Delete.
10977 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
10978 * config/m68k/m68klynx.mh (XM_FILE): Delete.
10979 * config/i386/i386lynx.mh (XM_FILE): Delete.
10980 * config/rs6000/xm-rs6000ly.h: Delete file.
10981 * config/sparc/xm-sparclynx.h: Delete file.
10982 * config/m68k/xm-m68klynx.h: Delete file.
10983 * config/i386/xm-i386lynx.h: Delete file.
10984 * config/xm-lynx.h: Delete file.
10985 * config/djgpp/fnchange.lst: Update.
10986
10987 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
10988
10989 * alpha-tdep.c (alpha_register_byte): New function.
10990 (alpha_register_raw_size): Ditto.
10991 (alpha_register_virtual_size): Ditto.
10992 (alpha_skip_prologue_internal): Renamed from
10993 alpha_skip_prologue.
10994 (alpha_skip_prologue): New version that calls
10995 alpha_skip_prologue_internal.
10996 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
10997 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
10998 second argument from alpha_skip_prologue.
10999 (REGISTER_BYTE): Use alpha_register_byte.
11000 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
11001 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
11002 (FRAMELESS_FUNCTION_INVOCATION): Use
11003 generic_frameless_function_invocation_not.
11004 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
11005 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
11006
11007 2002-01-19 Andrew Cagney <ac131313@redhat.com>
11008
11009 * config/mips/xm-news-mips.h: Delete file.
11010 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
11011
11012 * config/m88k/xm-m88k.h: Delete file.
11013 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
11014 * config/m88k/xm-delta88v4.h: Ditto.
11015 * config/m88k/xm-delta88.h: Ditto.
11016
11017 * config/alpha/xm-fbsd.h: Delete file.
11018 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
11019
11020 * config/sparc/xm-sparc.h: Delete file.
11021 * Makefile.in (xm-sun4os4.h): Delete dependency.
11022 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
11023 * config/sparc/xm-sun4os4.h: Ditto.
11024 * config/sparc/xm-linux.h: Ditto.
11025
11026 * config/i386/xm-windows.h: Delete file.
11027
11028 2002-01-19 Andrew Cagney <ac131313@redhat.com>
11029
11030 * utils.c: Include <sys/param.h> for MAXPATHLEN.
11031 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
11032
11033 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11034
11035 * alpha-tdep.c (alpha_call_dummy_words): New.
11036 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
11037 (CALL_DUMMY_P): Define.
11038 (CALL_DUMMY_WORDS): Define.
11039 (SIZEOF_CALL_DUMMY_WORDS): Define.
11040
11041 2002-01-19 Per Bothner <per@bothner.com>
11042
11043 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
11044 isn't NULL, which can happen with some gcj-3.x-produced code.
11045
11046 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11047
11048 * alpha-tdep.c (alpha_register_virtual_type): New function.
11049 (alpha_init_frame_pc_first): Ditto.
11050 (alpha_fix_call_dummy): Ditto.
11051 (alpha_store_struct_return): Ditto.
11052 (alpha_extract_struct_value_address): Ditto.
11053 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
11054 alpha_register_virtual_type.
11055 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
11056 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
11057 alpha_extract_struct_value_address.
11058 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
11059 (INIT_FRAME_PC): Use init_frame_pc_noop.
11060 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
11061
11062 2002-01-19 Mark Kettenis <kettenis@gnu.org>
11063
11064 * i386gnu-nat.c: Include "i386-tdep.h".
11065 (fetch_fpregs): Simplify code dealing with uninitialized floating
11066 point states such that it doesn't require FP7_REGNUM.
11067
11068 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11069
11070 * alpha-tdep.c (frame_extra_info): New.
11071 (alpha_find_saved_regs): Make static. Use
11072 frame->extra_info.
11073 (alpha_frame_init_saved_regs): New function.
11074 (alpha_frame_saved_pc): Use frame->extra_info.
11075 (temp_saved_regs): Don't declare as struct frame_saved_regs.
11076 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
11077 (init_extra_frame_info): Rename to...
11078 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
11079 (alpha_print_extra_frame_info): New function.
11080 (alpha_frame_locals_address): Ditto.
11081 (alpha_frame_args_address): Ditto.
11082 (alpha_pop_frame): Use frame->extra_info.
11083 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
11084 alpha_frame_args_address.
11085 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
11086 (alpha_find_saved_regs): Remove prototype.
11087 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
11088 (EXTRA_FRAME_INFO): Remove.
11089 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
11090 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
11091
11092 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11093
11094 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
11095 (alpha_cannot_fetch_register): Ditto.
11096 (alpha_cannot_store_register): Ditto.
11097 (alpha_register_convertible): Ditto.
11098 (alpha_use_struct_convention): Ditto.
11099 * config/alpha/tm-alpha.h: Update copyright years.
11100 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
11101 (INNER_THAN): Use core_addr_lessthan.
11102 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
11103 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
11104 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
11105 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
11106 (FRAME_CHAIN): Remove unnecessary cast.
11107
11108 2002-01-18 Andrew Cagney <ac131313@redhat.com>
11109
11110 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
11111 obsolete.
11112
11113 2002-01-18 Andrew Cagney <ac131313@redhat.com>
11114
11115 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
11116 * monitor.c, remote-array.c, remote-bug.c: Ditto.
11117 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
11118 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
11119 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
11120 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
11121 * x86-64-linux-nat.c: Ditto.
11122
11123 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11124
11125 * alpha-tdep.c (alpha_register_name): New function.
11126 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
11127 (REGISTER_NAME): Define.
11128
11129 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11130
11131 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
11132
11133 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11134
11135 * alpha-tdep.c: Update copyright years.
11136 (alpha_next_pc): New function.
11137 (alpha_software_single_step): Ditto.
11138 * config/alpha/tm-alpha.h: Add prototype for
11139 alpha_software_single_step.
11140
11141 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11142
11143 * alphabsd-nat.c: Update copyright years.
11144 (fill_gregset): Use regcache_collect.
11145 (fill_fpregset): Likewise.
11146 (fetch_inferior_registers): Only fetch integer registers
11147 if requested to do so.
11148 (store_inferior_registers): Only store integer registers
11149 if requested to do so.
11150
11151 2002-01-17 Andrew Cagney <ac131313@redhat.com>
11152
11153 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
11154 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
11155 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
11156 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
11157 * config/alpha/fbsd.mh (XDEPFILES): Delete.
11158 * config/arm/linux.mh (XDEPFILES): Delete.
11159 * config/arm/nbsd.mh (XDEPFILES): Delete.
11160 * config/i386/i386dgux.mh (XDEPFILES): Delete.
11161 * config/i386/i386sol2.mh (XDEPFILES): Delete.
11162 * config/i386/i386m3.mh (XDEPFILES): Delete.
11163 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
11164 * config/i386/i386gnu.mh (XDEPFILES): Delete.
11165 * config/i386/fbsd.mh (XDEPFILES): Delete.
11166 * config/i386/i386bsd.mh (XDEPFILES): Delete.
11167 * config/i386/i386sco5.mh (XDEPFILES): Delete.
11168 * config/i386/i386v4.mh (XDEPFILES): Delete.
11169 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
11170 * config/i386/i386sco4.mh (XDEPFILES): Delete.
11171 * config/i386/i386aix.mh (XDEPFILES): Delete.
11172 * config/i386/go32.mh (XDEPFILES): Delete.
11173 * config/i386/cygwin.mh (XDEPFILES): Delete.
11174 * config/i386/i386lynx.mh (XDEPFILES): Delete.
11175 * config/i386/i386mach.mh (XDEPFILES): Delete.
11176 * config/i386/i386v32.mh (XDEPFILES): Delete.
11177 * config/i386/linux.mh (XDEPFILES): Delete.
11178 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
11179 * config/i386/ncr3000.mh (XDEPFILES): Delete.
11180 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
11181 * config/i386/i386sco.mh (XDEPFILES): Delete.
11182 * config/i386/i386v.mh (XDEPFILES): Delete.
11183 * config/i386/nbsd.mh (XDEPFILES): Delete.
11184 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
11185 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
11186 * config/i386/symmetry.mh (XDEPFILES): Delete.
11187 * config/i386/obsd.mh (XDEPFILES): Delete.
11188 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
11189 * config/ia64/linux.mh (XDEPFILES): Delete.
11190 * config/ia64/aix.mh (XDEPFILES): Delete.
11191 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
11192 * config/m68k/dpx2.mh (XDEPFILES): Delete.
11193 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
11194 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
11195 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
11196 * config/m68k/linux.mh (XDEPFILES): Delete.
11197 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
11198 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
11199 * config/m68k/nbsd.mh (XDEPFILES): Delete.
11200 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
11201 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
11202 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
11203 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
11204 * config/m88k/delta88.mh (XDEPFILES): Delete.
11205 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
11206 * config/m88k/m88k.mh (XDEPFILES): Delete.
11207 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
11208 * config/mips/linux.mh (XDEPFILES): Delete.
11209 * config/mips/irix6.mh (XDEPFILES): Delete.
11210 * config/mips/irix5.mh (XDEPFILES): Delete.
11211 * config/mips/irix4.mh (XDEPFILES): Delete.
11212 * config/mips/irix3.mh (XDEPFILES): Delete.
11213 * config/mips/decstation.mh (XDEPFILES): Delete.
11214 * config/mips/mipsm3.mh (XDEPFILES): Delete.
11215 (NATDEPFILES): Move core-aout.o to here.
11216 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
11217 * config/pa/hpux1020.mh (XDEPFILES): Delete.
11218 * config/pa/hppabsd.mh (XDEPFILES): Delete.
11219 * config/pa/hppahpux.mh (XDEPFILES): Delete.
11220 * config/pa/hpux11w.mh (XDEPFILES): Delete.
11221 * config/pa/hppaosf.mh (XDEPFILES): Delete.
11222 * config/pa/hpux11.mh (XDEPFILES): Delete.
11223 * config/powerpc/aix.mh (XDEPFILES): Delete.
11224 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
11225 * config/powerpc/linux.mh (XDEPFILES): Delete.
11226 * config/romp/rtbsd.mh: Rename XDEPFILES.
11227 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
11228 * config/rs6000/aix4.mh (XDEPFILES): Delete.
11229 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
11230 * config/s390/s390.mh (XDEPFILES): Delete.
11231 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
11232 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
11233 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
11234 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
11235 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
11236 * config/sparc/nbsd.mh (XDEPFILES): Delete.
11237 * config/sparc/linux.mh (XDEPFILES): Delete.
11238 * config/vax/vaxult.mh (XDEPFILES): Delete.
11239 * config/vax/vaxult2.mh (XDEPFILES): Delete.
11240 * Makefile.in (DEPFILES): Remove XDEPFILES.
11241
11242 2002-01-17 Andrew Cagney <ac131313@redhat.com>
11243
11244 * utils.c (internal_verror): Fix comments, default is yes not no.
11245 Update queries to match. Default to quit and dump core.
11246
11247 2002-01-17 Andrew Cagney <ac131313@redhat.com>
11248
11249 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
11250 copyright.
11251 * defs.h, event-top.c, gdbcmd.h: Ditto.
11252 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
11253 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
11254 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
11255 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
11256 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
11257 * mi/mi-main.c:Ditto.
11258
11259 * stack.c, symfile.c: Update copyright.
11260
11261 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
11262
11263 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
11264 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
11265 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
11266 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
11267
11268 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
11269
11270 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
11271 * gdbserver/low-lynx.c (myattach): Likewise.
11272 * gdbserver/low-nbsd.c (myattach): Likewise.
11273 * gdbserver/low-sim.c (myattach): Likewise.
11274 * gdbserver/low-sparc.c (myattach): Likewise.
11275 * gdbserver/low-sun3.c (myattach): Likewise.
11276
11277 * gdbserver/low-linux.c (myattach): New function.
11278
11279 * gdbserver/server.c (attach_inferior): New function.
11280 (main): Handle "--attach".
11281
11282 2002-01-16 Andrew Cagney <ac131313@redhat.com>
11283
11284 * MAINTAINERS (language support): Daniel Jacobwitz is C++
11285 maintainer.
11286
11287 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
11288
11289 * c-typeprint.c (is_type_conversion_operator): Add additional
11290 check for non-conversion operators.
11291
11292 2002-01-15 Michael Snyder <msnyder@redhat.com>
11293
11294 * linux-proc.c: Add "info proc" command, a la procfs.c.
11295 (read_mapping): New function, abstract and re-use code.
11296 (linux_find_memory_regions): Use new func read_mapping.
11297 (linux_info_proc_cmd): New function, implement "info proc".
11298 (_initialize_linux_proc): Add new command "info proc".
11299
11300 2002-01-15 Michael Snyder <msnyder@redhat.com>
11301
11302 * symfile.c (generic_load): Use bfd_map_over_sections method
11303 instead of manipulating bfd structure members directly.
11304 (add_section_size_callback): New function, bfd sections callback
11305 used by generic_load.
11306 (load_sections_callback): New function, bfd sections callback
11307 used by generic_load.
11308
11309 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
11310
11311 [Based on work by Jim Blandy]
11312 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
11313 (builtin_type_vec128): Export.
11314 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
11315 types.
11316 (builtin_type_vec128): New builtin type for 128 bit vector
11317 registers.
11318 (build_gdbtypes): Initialize builtin_type_v16qi and
11319 builtin_type_v8hi. Create the vec128 register builtin type
11320 structure.
11321 (build_builtin_type_vec128): New function.
11322 (_initialize_gdbtypes): Register builtin_type_v16qi and
11323 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
11324 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
11325 AltiVec register to new builtin type.
11326
11327 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
11328
11329 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
11330 to make_cv_type.
11331
11332 2002-01-14 Andrew Cagney <ac131313@redhat.com>
11333
11334 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
11335 CLEAN_UP_REGISTER_VALUE.
11336 * regcache.c (supply_register): Update only call.
11337
11338 2002-01-14 Andrew Cagney <ac131313@redhat.com>
11339
11340 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
11341 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
11342 a29k-*-vxworks* targets as obsolete.
11343
11344 2002-01-14 Michael Snyder <msnyder@redhat.com>
11345
11346 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
11347 until we can resolve portability issues.
11348 * gregset.h: Remove references to fpxregs.
11349 * gcore.c (gcore_command): Initialize note_sec to NULL.
11350
11351 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11352
11353 * signals.c (target_signal_to_name): Rewrite. Only use
11354 signals[].name when in bounds and non-NULL.
11355
11356 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11357
11358 From Petr Ledvina <ledvinap@kae.zcu.cz>:
11359 * signals.c (target_signal_to_name): Verify that SIG is within the
11360 bounds of the signals array.
11361
11362 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11363
11364 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
11365
11366 2002-01-13 Keith Seitz <keiths@redhat.com>
11367
11368 * stack.c (print_frame_info_base): Print the frame's pc
11369 only if when print_frame_info_listing_hook is not defined.
11370
11371 2002-01-13 Keith Seitz <keiths@redhat.com>
11372
11373 * varobj.c (varobj_set_value): Make sure that there were no
11374 errors evaluating the object before attempting to set its
11375 value.
11376 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
11377 so this offset adjustment is no longer necessary.
11378 (create_child): Don't set the error flag if the child is
11379 a CPLUS_FAKE_CHILD.
11380 (value_of_child): If value_fetch_lazy fails, return NULL
11381 so that callers will be notified that an error occurred.
11382 (c_value_of_variable): Delay check of variable's validity
11383 until later. We actually want all structs and unions to have
11384 the value "{...}".
11385 Do not return "???" for variables which could not be evaluated.
11386 This error condition must be returned to the caller so that it
11387 can get the error condition from gdb.
11388 (cplus_name_of_child): Adjust index for vptr before figuring
11389 out the name of the child.
11390 (cplus_value_of_child): If a child's (real) parent is not valid,
11391 don't even bother trying to give a value for it. Just return
11392 an error. Change all instances in this function.
11393 (cplus_type_of_child): If our parent is one of the "fake"
11394 parents, we need to get at the type of the real parent, and
11395 derive the child's true type using this information.
11396
11397 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11398
11399 From 2002-01-09 John Marshall <johnm@falch.net>:
11400 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
11401 sources.redhat.com, and tweak some related URLs which had
11402 suffered from linkrot.
11403
11404 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11405
11406 From Jeff law:
11407 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
11408 structures passed in registers.
11409
11410 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
11411
11412 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
11413 white space which prevented compilation. Reported by DSK
11414 <dsk@student.unsw.edu.au>.
11415
11416 2002-01-11 Michael Snyder <msnyder@redhat.com>
11417
11418 * symfile.c (build_section_addr_info_from_section_tab):
11419 Use bfd access method instead of manipulating bfd directly.
11420 (syms_from_objfile): Ditto.
11421 (simple_overlay_update_1): Ditto.
11422 (simple_overlay_update): Ditto.
11423 (generic_load): Ditto.
11424 (overlay_unmapped_address): FIXME comment, bfd access methods.
11425 (sections_overlap): FIXME comment, bfd access methods.
11426 (pc_in_mapped_range): FIXME comment, bfd access methods.
11427 (pc_in_unmapped_range): FIXME comment, bfd access methods.
11428 (section_is_mapped): FIXME comment, bfd access methods.
11429 (section_is_overlay): FIXME comment, bfd access methods.
11430
11431 * symfile.c (generic_load): Whitespace and long line cleanups.
11432 Remove duplicate variable, change several local variables to
11433 more appropriate data types.
11434 (print_transfer_performance): Use %lu instead of %ld for ulongs.
11435
11436 2002-01-12 Andrew Cagney <ac131313@redhat.com>
11437
11438 From Peter Schauer:
11439 * language.c (longest_local_hex_string_custom): Use phex_nz to
11440 convert NUM to a hex string.
11441
11442 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
11443
11444 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
11445 the function.
11446 Update Copyright year.
11447
11448 2002-01-12 Andrew Cagney <ac131313@redhat.com>
11449
11450 * language.c (longest_raw_hex_string): Delete unused function.
11451
11452 2002-01-11 Petr Sorfa <petrs@caldera.com>
11453
11454 * MAINTAINERS (write-after-approval): Add myself.
11455 * dwarf2read.c (read_tag_string_type): Handling of
11456 DW_AT_byte_size.
11457 (read_tag_string_type): FORTRAN fix to prevent propagation of
11458 first string size.
11459 (set_cu_language): Handling of DW_LANG_Fortran95
11460
11461 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
11462
11463 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
11464 GETPID(inferior_ptid).
11465 (store_inferior_registers): Likewise.
11466
11467 2002-01-10 Jason Merrill <jason@redhat.com>
11468
11469 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
11470 Fix DW_OP_minus.
11471
11472 2002-01-10 Andrew Cagney <ac131313@redhat.com>
11473
11474 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
11475 and bfd/elf32-sh-nbsd.c.
11476
11477 2002-01-10 Michael Snyder <msnyder@redhat.com>
11478
11479 * NEWS: Mention --pid and corefile/proc-id behavior change.
11480
11481 * Makefile.in: Add rules for gcore.o and linux-proc.o.
11482 * gcore.c: Include cli/cli-decode.h instead of command.h.
11483
11484 * main.c (captured_main): Add new command line option "--pid".
11485 If the second command line argument (following the symbol-file)
11486 begins with a digit, try to attach to it before trying to open
11487 it as a corefile.
11488 (print_gdb_help): Document the "--pid" argument.
11489
11490 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
11491
11492 * completer.c (command_completer): New function.
11493
11494 * completer.h <command_completer>: Add prototype.
11495
11496 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
11497 completer for the "help" command.
11498
11499 2002-01-09 Jason Merrill <jason@redhat.com>
11500
11501 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
11502
11503 2002-01-09 Michael Snyder <msnyder@redhat.com>
11504
11505 * i386-linux-nat.c (fill_fpxregset): Make global.
11506 (store_fpxregset): Ditto.
11507
11508 * gregset.h (gdb_fpxregset_t): Define.
11509 (supply_fpxregset): Prototype.
11510 (fill_fpxregset): Prototype.
11511
11512 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
11513
11514 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
11515
11516 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
11517 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
11518 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
11519
11520 2002-01-09 Andrew Cagney <ac131313@redhat.com>
11521
11522 * MAINTAINERS: Update target maintainer rules so that any
11523 Maintainer can approve a tested patch for a maintenance-only
11524 target.
11525
11526 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
11527
11528 * MAINTAINERS (write-after-approval): Add myself.
11529
11530 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
11531 IN_SIGTRAMP.
11532
11533 2002-01-08 Michael Snyder <msnyder@redhat.com>
11534
11535 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
11536 real name of the executable, rather than the /proc name.
11537
11538 2002-01-03 Michael Snyder <msnyder@redhat.com>
11539
11540 Implement a "generate-core-file" command in gdb, save target state.
11541 * gcore.c: New file. Implement new command 'generate-core-file'.
11542 Save a corefile image of the current state of the inferior.
11543 * linux-proc.c: Add linux-specific code for saving corefiles.
11544 * target.h (struct target_ops): Add new target vectors for saving
11545 corefiles; to_find_memory_regions and to_make_corefile_notes.
11546 (target_find_memory_regions): New macro.
11547 (target_make_corefile_notes): New macro.
11548 * target.c (update_current_target): Inherit new target methods.
11549 (dummy_find_memory_regions): New place-holder method.
11550 (dummy_make_corefile_notes): New place-holder method.
11551 (init_dummy_target): Initialize new dummy target vectors.
11552 * exec.c (exec_set_find_memory_regions): New function.
11553 Allow the exec_ops vector for memory regions to be taken over.
11554 (exec_make_note_section): New function, target vector method.
11555 * defs.h (exec_set_find_memory_regions): Export prototype.
11556 * procfs.c (proc_find_memory_regions): New function, corefile method.
11557 (procfs_make_note_section): New function, corefile method.
11558 (init_procfs_ops): Set new target vector pointers.
11559 (find_memory_regions_callback): New function.
11560 (procfs_do_thread_registers): New function.
11561 (procfs_corefile_thread_callback): New function.
11562 * sol-thread.c (sol_find_memory_regions): New function.
11563 (sol_make_note_section): New function.
11564 (init_sol_thread_ops): Initialize new target vectors.
11565 * inftarg.c (inftarg_set_find_memory_regions): New function.
11566 Allow to_find_memory_regions vector to be taken over.
11567 (inftarg_set_make_corefile_notes): New function.
11568 Allow to_make_corefile_notes vector to be taken over.
11569 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
11570 interface layer if not target_has_execution (may be a corefile).
11571 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
11572 * config/sparc/sun4sol2.mh: Ditto.
11573 * config/alpha/alpha-linux.mh: Ditto.
11574 * config/arm/linux.mh: Ditto.
11575 * config/i386/x86-64linux.mh: Ditto.
11576 * config/ia64/linux.mh: Ditto.
11577 * config/m68k/linux.mh: Ditto.
11578 * config/mips/linux.mh: Ditto.
11579 * config/powerpc/linux.mh: Ditto.
11580 * config/sparc/linux.mh: Ditto.
11581
11582 2002-01-07 Michael Snyder <msnyder@redhat.com>
11583
11584 * arm-linux-nat.c: Remove references to regcache.c internal data
11585 (registers[] and register_valid[]).
11586
11587 2002-01-07 Michael Snyder <msnyder@redhat.com>
11588
11589 * linux-proc.c: New file. Implement child_pid_to_exec_file,
11590 so that attaching to a pid will automatically read the process's
11591 symbol file and shlibs.
11592 * Makefile.in: Add rule for linux-proc.o.
11593 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
11594 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
11595 * config/arm/linux.mh: Ditto.
11596 * config/i386/linux.mh: Ditto.
11597 * config/i386/x86-64linux.mh: Ditto.
11598 * config/ia64/linux.mh: Ditto.
11599 * config/m68k/linux.mh: Ditto.
11600 * config/mips/linux.mh: Ditto.
11601 * config/powerpc/linux.mh: Ditto.
11602 * config/sparc/linux.mh: Ditto.
11603
11604 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
11605
11606 * win32-nat.c: Add i386-tdep.h dependency.
11607
11608 2002-01-07 Michael Snyder <msnyder@redhat.com>
11609
11610 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
11611 instead of bfd_get_arch_size. Don't bail out just because
11612 there's no exec_bfd.
11613
11614 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
11615 * p-valprint.c (pascal_object_print_value): Ditto.
11616 * somread.c (som_symtab_read): Ditto.
11617 * symfile.c (simple_free_overlay_region_table): Ditto.
11618 * valops.c (value_assign): Ditto.
11619
11620 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
11621 use tilde_expand and strerror for opening save-tracepoints file.
11622
11623 * thread-db.c (thread_db_new_objfile): Indendation fix.
11624
11625 * infptrace.c (GDB_MAX_ALLOCA): New define.
11626 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
11627 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
11628 can be overridden with whatever value is appropriate to the host).
11629 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
11630 alloca to allocate potentially large buffer.
11631 * rs6000-nat.c (child_xfer_memory): Ditto.
11632 * symm-nat.c (child_xfer_memory): Ditto.
11633 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
11634
11635 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
11636
11637 From Nick Clifton <nickc@redhat.com>
11638 * d10v-tdep.c: Set STACK_START to 0x200bffe.
11639
11640 2002-01-07 Michael Snyder <msnyder@redhat.com>
11641
11642 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
11643 Don't use exec_bfd if it's NULL.
11644
11645 2002-01-06 Mark Kettenis <kettenis@gnu.org>
11646
11647 * valops.c (value_arg_coerce): Fix formatting.
11648
11649 2002-01-06 Andrew Cagney <ac131313@redhat.com>
11650
11651 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
11652 * gnu-nat.c: Ditto.
11653
11654 2002-01-06 Andrew Cagney <ac131313@redhat.com>
11655
11656 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
11657 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
11658 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
11659 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
11660 z8k-coff have not been multi-arched. Update z8k-coff build
11661 status.
11662
11663 2002-01-06 Andrew Cagney <ac131313@redhat.com>
11664
11665 * MAINTAINERS: Mark a29k target as obsolete.
11666 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
11667 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
11668 comments.
11669 * NEWS: Note that a29k targets are obsolete.
11670 * a29k-tdep.c: Mark as obsolete.
11671 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
11672 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
11673 a29k-*-vxworks* targets as obsolete.
11674 * remote-adapt.c: Obsolete.
11675 * remote-eb.c: Obsolete.
11676 * remote-mm.c: Obsolete.
11677 * remote-udi.c: Obsolete.
11678 * config/a29k/a29k-udi.mt: Obsolete.
11679 * config/a29k/a29k.mt: Obsolete.
11680 * config/a29k/tm-a29k.h: Obsolete.
11681 * config/a29k/tm-vx29k.h: Obsolete.
11682 * config/a29k/vx29k.mt: Obsolete.
11683
11684 2002-01-05 Andrew Cagney <ac131313@redhat.com>
11685
11686 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
11687 with BFD_ENDIAN_BIG.
11688
11689 2002-01-05 Andrew Cagney <ac131313@redhat.com>
11690
11691 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
11692 * configure, config.in: Re-generate.
11693 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
11694 * defs.h: Do not include <endian.h>.
11695
11696 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
11697
11698 * acconfig.h (HAVE_PT_GETXMMREGS): New.
11699 * config.in: Regenerate.
11700 * configure.in: Update copyright years.
11701 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
11702 * configure: Regenerate.
11703 * i386bsd-nat.c: Update copyright years.
11704 (fill_gregset): Use regcache_collect.
11705 (fetch_inferior_registers): Only fetch integer registers
11706 if requested to do so. Add support for XMM registers
11707 using PT_GETXMMREGS.
11708 (store_inferior_registers): Only store integer registers
11709 if requested to do so. Add support for XMM registers
11710 using PT_SETXMMREGS.
11711 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
11712 (store_inferior_registers): Remove.
11713 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
11714 (fetch_elfcore_registers): New function.
11715 (i386nbsd_elfcore_fns): New.
11716 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
11717 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
11718 i386bsd-nat.o.
11719 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
11720 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
11721 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
11722 * config/i386/tm-nbsd.h: Update copyright years.
11723 (HAVE_SSE_REGS): Define.
11724 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
11725 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
11726 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
11727 (SIGCONTEXT_PC_OFFSET): Remove.
11728 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
11729
11730 2002-01-05 Andrew Cagney <ac131313@redhat.com>
11731
11732 * configure.tgt: Remove powerpc-*-macos* target.
11733 * config/m68k/xm-mpw.h: Delete file.
11734 * config/xm-mpw.h: Delete file.
11735 * ser-mac.c: Delete file.
11736 * mpw-make.sed: Delete file.
11737 * mpw-config.in: Delete file.
11738 * mac-xdep.c: Delete file.
11739 * mac-gdb.r: Delete file.
11740 * mac-defs.h: Delete file.
11741 * mac-nat.c: Delete file.
11742 * config/powerpc/macos.mh: Delete file.
11743 * config/powerpc/macos.mt: Delete file.
11744 * config/powerpc/nm-macos.h: Delete file.
11745 * config/powerpc/tm-macos.h: Delete file.
11746 * source.c (openp, open_source_file): Remove obsolete code.
11747 * top.c (gdb_readline): Ditto.
11748 * utils.c (query): Ditto.
11749 * event-top.c (display_gdb_prompt): Ditto.
11750 * Makefile.in (ser-mac.o): Delete obsolete target.
11751 * NEWS: Update.
11752
11753 2002-01-04 Andrew Cagney <ac131313@redhat.com>
11754
11755 * defs.h (BIG_ENDIAN): Delete macro definition.
11756 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
11757 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
11758 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
11759 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
11760 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
11761 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
11762 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
11763 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
11764 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
11765 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
11766 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
11767 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
11768 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
11769 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
11770 * gdbarch.c: Re-generate.
11771
11772 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
11773
11774 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
11775 for core files.
11776
11777 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
11778
11779 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
11780
11781 2002-01-04 Andrew Cagney <ac131313@redhat.com>
11782
11783 * value.h (value_ptr): Delete typedef.
11784
11785 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
11786
11787 * i386nbsd-nat.c: Update copyright years.
11788 Include i386-tdep.h.
11789
11790 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
11791
11792 * stabsread.c: Update copyright years.
11793
11794 From Debashis Mahata <debashis.mahata@wipro.com>:
11795 (read_struct_fields): Deal with Sun C compiler erroneous stab
11796 output for structs and unions.
11797 Fix PR gdb/269.
11798
11799 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
11800
11801 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
11802 prototype.
11803
11804 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
11805
11806 * cp-abi.c: Fix whitespace.
11807 (baseclass_offset): New wrapper function.
11808 * cp-abi.h (baseclass_offset): Add prototype.
11809 (struct cp_abi_ops): Add baseclass_offset pointer.
11810
11811 * valops.c (vb_match): Move to...
11812 * gnu-v2-abi.c (vb_match): here.
11813 * valops.c (baseclass_offset): Move to...
11814 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
11815
11816 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
11817
11818 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
11819 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
11820 * hpacc-abi.c (init_hpacc_ops): Likewise.
11821
11822 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
11823
11824 * valops.c (find_overload_match): Accept obj as a
11825 reference parameter. Update it before returning.
11826 * value.h (find_overload_match): Update prototype.
11827 * eval.c (evaluate_subexp_standard): Pass object to
11828 find_overload_match by reference.
11829
11830 2002-01-03 Andrew Cagney <ac131313@redhat.com>
11831
11832 * valarith.c: Replace value_ptr with struct value pointer. Remove
11833 register attribute from value declarations.
11834 * valops.c: Ditto.
11835 * value.h: Ditto.
11836 * scm-lang.c (scm_lookup_name): Ditto.
11837
11838 2002-01-03 Michael Snyder <msnyder@redhat.com>
11839
11840 Abstract the functionality of iterating over mapped memory
11841 regions into a general purpose iterator function.
11842 * procfs.c (iterate_over_mappings): New function, general purpose
11843 iterator for memory sections.
11844 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
11845 (solib_mappings_callback): New function, callback for above.
11846 (info_proc_mappings): Reimpliment using iterate_over_mappings.
11847 (info_mappings_callback): New function, callback for above.
11848
11849 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
11850
11851 2002-01-01 Mark Kettenis <kettenis@gnu.org>
11852
11853 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
11854 * i386-tdep.c: Include "elf-bfd.h".
11855 (process_note_abi_tag_sections): New function.
11856 (i386_gdbarch_init): Add code to recognize various OS/ABI
11857 combinations.
11858
11859 * maint.c (_initialize_maint_cmds): Add missing \ in
11860 string-literal.
11861
11862 For older changes see ChangeLog-2001
11863 \f
11864 Local Variables:
11865 mode: change-log
11866 left-margin: 8
11867 fill-column: 74
11868 version-control: never
11869 End: