parse.c: (length_of_subexp, prefixify_subexp): Handle
[binutils-gdb.git] / gdb / ChangeLog
1 2002-10-13 Adam Fedor <fedor@gnu.org>
2
3 * parse.c: (length_of_subexp, prefixify_subexp): Handle
4 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
5
6 2002-10-12 Adam Fedor <fedor@gnu.org>
7
8 * language.c (binop_result_type): Add language_objc to case.
9 (integral_type): Likewise.
10 (character_type): Likewise.
11 (string_type): Likewise.
12 (boolean_type): Likewise.
13 (structured_type): Likewise.
14 (binop_type_check): Likewise.
15
16 2002-10-11 Adam Fedor <fedor@gnu.org>
17
18 * printcmd.c (address_info): Print 'self' for ObjC.
19
20 2002-10-11 Adam Fedor <fedor@gnu.org>
21
22 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
23 OP_SELF.
24
25 2002-10-11 Adam Fedor <fedor@gnu.org>
26
27 * language.h (CAST_IS_CONVERSION): Add language_objc.
28
29 2002-10-11 Adam Fedor <fedor@gnu.org>
30
31 * defs.h (enum language): Add language_objc.
32
33 2002-10-11 Klee Dienes <kdienes@apple.com>
34
35 * findvar.c (read_memory_typed_address): New function.
36 * gdbcore.h (read_memory_typed_address): Add prototype.
37 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
38 to read a value destined for a CORE_ADDR, not read_memory_integer.
39 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
40 (f77_get_dynamic_lowerbound): Ditto.
41
42 2002-10-11 Martin M. Hunt <hunt@redhat.com>
43
44 * utils.c (string_to_core_addr): After turning string into
45 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
46 which will do necessary sign-extension, etc.
47
48 2002-10-11 Daniel Jacobowitz <drow@mvista.com>
49
50 * c-exp.y (THIS): Delete token and grammar rule.
51 (yylex): Don't return THIS.
52 * cp-valprint.c (vtbl_ptr_name_old): Delete.
53 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
54 * demangle.c (cplus_markers): Update comment. Put '$'
55 first. Remove CPLUS_MARKER.
56 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
57 * jv-exp.y (THIS): Delete token and grammar rule.
58 (yylex): Don't return THIS.
59 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
60 * objc-exp.y (THIS): Delete token and grammar rule.
61 (yylex): Don't return THIS.
62 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
63 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
64 (read_member_functions): Likewise for opname.
65 (read_tilde_fields): Use is_cplus_marker.
66
67 * defs.h (CPLUS_MARKER): Don't define.
68 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
69 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
70 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
71 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
72 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
73
74 * config/i386/tm-i386v4.h: Delete file.
75 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
76 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
77 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
78 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
79 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
80 * config/i386/i386sco5.mt (TM_FILE): Likewise.
81 * config/i386/i386v4.mt (TM_FILE): Likewise.
82 * config/i386/ncr3000.mt (TM_FILE): Likewise.
83
84 2002-10-10 Marko Mlinar <markom@opencores.org>
85
86 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
87 accidentially not commited 2002-10-09
88 * gdbarch.h, gdbarch.c: Re-generate.
89
90 2002-10-09 Marko Mlinar <markom@opencores.org>
91
92 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
93 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
94 * gdbarch.h, gdbarch.c: Re-generate.
95
96 2002-10-08 Petr Sorfa <petrs@caldera.com>
97
98 Revised and re-submitted by John Wolfe <jlw@caldera.com>
99
100 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
101 so we can work on more than one compilation unit at a time. This
102 helps prepare GDB to handle inter-CU die references.
103 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
104 the code to be defined before struct comp_unit_head.
105 (comp_unit_head): Added new members - offset, cu_head,
106 begin_die, next and dwarf2_abbrevs.
107 (dwarf2_abbrevs): Removed single static var; now member of
108 struct comp_unit_head.
109 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
110 members.
111 (psymtab_to_symtab_1): Changed to work with the new
112 struct comp_unit_head.
113 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
114 constructs the dwarf2_abbrevs[] inside the cu_header.
115 (dwarf2_empty_abbrev_table): Now expects a ptr to a
116 dwarf2_abbrev table to clean up.
117 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
118 handling of dwarf2_abbrevs inside the cu_header.
119 (read_partial_die): Now supports the call to the new
120 dwarf2_lookup_abbrev.
121 (read_full_die): Now supports the call to the new
122 dwarf2_lookup_abbrev.
123
124 2002-10-06 Christopher Faylor <cgf@redhat.com>
125
126 * Makefile.in (install-gdbtk): Add missing continuation backslash to
127 insure that shell variables, such as "transformed_name" are propagated
128 to later shell statements in rule.
129
130 2002-10-06 Mark Kettenis <kettenis@gnu.org>
131
132 * config/i386/nm-i386sco.h: Add protection against
133 multiple-inclusion. Include "i386/nm-i386v.h".
134 (REGISTER_U_ADDR): Remove define.
135 (i386_register_u_addr): Remove prototype.
136
137 2002-10-04 Michael Snyder <msnyder@redhat.com>
138
139 * m32r-stub.c (handle_exception): Make sure exception is "trap"
140 before treating it as a single-step event.
141
142 2002-10-03 Adam Fedor <fedor@gnu.org>
143
144 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
145 (objc_demangle): Remove assignment in if statements, Replace
146 free with xfree.
147 (add_msglist): Likewise.
148 (end_msglist): Likewise.
149 (complare_selectors): Likewise.
150 (selectors_info): Likewise.
151 (compare_classes): Likewise.
152 (classes_info): Likewise.
153 (print_object_command): Likewise.
154 (find_objc_msgcall_submethod): Replace PTR with void *.
155 * objc-lang.h: Remove check for __STDC__.
156
157 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
158
159 * ui-out.h (ui_out_field_fmt_int): New prototype.
160 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
161 of field width and alignment.
162 * stack.c (print_frame_info_base): When printing frame level, use
163 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
164 PR gdb/192
165
166 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
167
168 * MAINTAINERS: Add self to Write After Approval list.
169
170 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
171
172 * infcmd.c (interrupt_target_command_wrapper): Delete.
173 (interrupt_target_command): Make non static.
174 (nofp_registers_info): Make static.
175 * stack.c (return_command_wrapper): Delete.
176 (return_command): Make non static.
177
178 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
179
180 * event-top.c (gdb_setup_readline): New function. Code moved from
181 _initialize_event_loop().
182 (_initialize_event_loop): Call gdb_setup_readline().
183
184 2002-10-02 Andrew Cagney <ac131313@redhat.com>
185
186 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
187 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
188 * gdbarch.h, gdbarch.c: Re-generate.
189
190 2002-10-02 Daniel Jacobowitz <drow@mvista.com>
191
192 Fix PR gdb/778
193 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
194 before recursing.
195 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
196 of fill_in_vptr_fieldno.
197
198 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
199
200 * inferior.h (registers_info, stepi_command, nexti_command,
201 continue_command, interrupt_target_command): Export from infcmd.c.
202 * frame.h (args_info, selected_frame_level_changed_hook,
203 return_command): Export from stack.c.
204 * v850ice.c (stepi_command, nexti_command, continue_command): use
205 prototypes from inferior.h.
206 * tracepoint.c (registers_info, args_info, locals_info): Use
207 prototypes from frame.h and inferior.h.
208 * Makefile.in (mi-main.o): Add dependency on frame.h.
209
210 2002-10-02 Andrew Cagney <ac131313@redhat.com>
211
212 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
213 value in register 3 adjusted by ppc_gp0_regnum.
214
215 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
216
217 2002-10-02 Marko Mlinar <markom@opencores.org>
218
219 * MAINTAINERS: Add myself to the Write After Approval list.
220
221 2002-10-01 Alexandre Oliva <aoliva@redhat.com>
222
223 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
224 of the section for the N64 ABI, fixed.
225
226 * config/mips/tm-irix6.h: Include solib.h.
227
228 2002-10-01 Elena Zannoni <ezannoni@redhat.com>
229
230 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
231 GNU operators.
232
233 2002-10-01 Andrew Cagney <ac131313@redhat.com>
234
235 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
236 and that "mi0" syntax has been removed.
237
238 2002-09-30 David Carlton <carlton@math.stanford.edu>
239
240 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
241 * ppc-sysv-tdep.c: #include "gdb_string.h".
242 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
243 pacify GCC.
244
245 2002-10-01 Andrew Cagney <ac131313@redhat.com>
246
247 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
248 "vrsave"'s register number.
249
250 2002-09-30 Andrew Cagney <ac131313@redhat.com>
251
252 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
253 use frame_unwind_signed_register to obtain the PC.
254 (mips_frame_chain): Handle a generic dummy frame.
255 (mips_init_extra_frame_info): When a generic dummy frame, don't
256 re-compute the frame base.
257 (mips_pop_frame): Handle generic dummy frames.
258 (mips_gdbarch_init): When generic dummy frames, set
259 use_generic_dummy_frames, push_dummy_frame to
260 generic_push_dummy_frame, pc_in_call_dummy to
261 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
262 generic_save_dummy_frame_tos.
263
264 2002-09-30 Andrew Cagney <ac131313@redhat.com>
265
266 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
267 against TOP when TOP was explictly set.
268 (generic_push_dummy_frame): Set TOP to zero.
269
270 2002-09-30 Elena Zannoni <ezannoni@redhat.com>
271
272 * event-loop.c (start_event_loop): Rename variable 'result' to
273 'gdb_result', to avoid conflicts with upcoming intepreters changes.
274
275 2002-09-30 Keith Seitz <keiths@redhat.com>
276
277 * gdb-events.sh (selected_thread_changed): New event.
278 * gdb-events.c: Regenerated.
279 * gdb-events.h: Regenerated.
280
281 2002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
282
283 * MAINTAINERS: Add self to Write After Approval list.
284
285 2002-09-30 Fernando Nasser <fnasser@redhat.com>
286
287 * disasm.c: New file.
288 * disasm.h: New file.
289 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
290 (compare_lines): Ditto.
291 (dump_insns): Ditto.
292 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
293 argument.
294 (do_assembly_only): Ditto.
295 (do_disassembly): Renamed to gdb_disassembly and moved to
296 disasm.c. Sdded uiout argument.
297 * Makefile.in: Add new files. Reorder SFILES list. Update
298 dependencies. Include libgdb.a later in the insight executable.
299
300 2002-09-29 Andrew Cagney <ac131313@redhat.com>
301
302 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
303 bfd/elf64-alpha-fbsd.c.
304
305 2002-09-29 Andrew Cagney <ac131313@redhat.com>
306
307 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
308 i386gnu-tdep.c.
309
310 2002-09-29 Andrew Cagney <ac131313@redhat.com>
311
312 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
313 __FUNCTION__.
314 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
315 function name.
316 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
317 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
318 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
319 (S_msg_sig_post_reply): Ditto.
320
321 2002-09-28 Corinna Vinschen <vinschen@redhat.com>
322
323 * sh-tdep.c (sh_use_struct_convention): Use definition according
324 to ABI.
325 (sh_push_arguments): Store in register with correct endianess.
326 (sh_default_store_return_value): Ditto.
327 (sh_gdbarch_init): Set sizeof long double to 8.
328
329 2002-09-27 Mark Kettenis <kettenis@gnu.org>
330
331 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
332 Fix some whitespace problems.
333
334 2002-09-27 David Carlton <carlton@math.stanford.edu>
335
336 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
337 (mcore-tdep.o): Ditto.
338 (ns32k-tdep.o): Ditto.
339 (ns32knbsd-tdep.o): Ditto.
340 (sh3-rom.o): Ditto.
341 (vax-tdep.o): Ditto.
342 * cris-tdep.c: #include "gdb_string.h"
343 * mcore-tdep.c: Ditto.
344 * ns32k-tdep.c: Ditto.
345 * ns32knbsd-tdep.c: Ditto.
346 * sh3-rom.c: Ditto.
347 * vax-tdep.c: Ditto.
348
349 2002-09-27 David Carlton <carlton@math.stanford.edu>
350
351 * config/djgpp/fnchange.lst: Add entries for
352 gdb/testsuite/gdb.c++/m-static files.
353
354 2002-09-27 Jim Wilson <wilson@redhat.com>
355
356 * MAINTAINERS: Add myself to the Write After Approval list.
357
358 2002-09-26 Martin M. Hunt <hunt@redhat.com>
359
360 * mips-tdep.c (find_proc_desc): Initialize startaddr.
361
362
363 2002-09-26 Andrew Cagney <ac131313@redhat.com>
364
365 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
366 frame.
367
368 2002-09-26 Andrew Cagney <ac131313@redhat.com>
369
370 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
371 (rs6000_struct_return_address): Delete variable.
372 (rs6000_store_struct_return): Update.
373 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
374 deprecated_extract_struct_value_address.
375 (rs6000_frame_align): New function.
376 (rs6000_gdbarch_init): Set frame_align.
377
378 2002-09-26 Andrew Cagney <ac131313@redhat.com>
379
380 From Grace Sainsbury <graces@redhat.com>:
381 * Makefile.in (gdbtk-main.o): New target.
382 (gdb.o): New target.
383 (main_h): Define.
384 (main.o): Update dependencies.
385 (gdb$(EXEEXT)): Add gdb.o.
386 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
387 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
388 (SUBDIR_GDBTK_CLEAN): Set.
389 (install-gdbtk): Install the insight binary.
390 (uninstall-gdbtk): New target.
391 (all-gdbtk, clean-gdbtk): New rule.
392 * top.c (use_windows): Default to zero.
393 * main.c: Include "main.h".
394 (main): Delete.
395 (struct captured_main_args): Delete.
396 (gdb_main): New function.
397 * main.h: New file.
398 * gdb.c: New File.
399
400 2002-09-25 Andrew Cagney <cagney@redhat.com>
401
402 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
403 (frame_map_regnum_to_name): New function.
404 (frame_map_name_to_regnum): New function.
405 * frame.h (frame_map_name_to_regnum): Declare.
406 (frame_map_regnum_to_name): Declare.
407 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
408 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
409 * parse.c: Do not include "builtin-regs.h".
410 (target_map_name_to_register): Delete function.
411 (write_dollar_variable): Use frame_map_name_to_regnum.
412 * parser-defs.h (target_map_name_to_register): Delete declaration.
413 * expprint.c: Include "frame.h".
414 (print_subexp): Use frame_map_regnum_to_name.
415 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
416 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
417
418 2002-09-25 Andrew Cagney <ac131313@redhat.com>
419
420 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
421 wasn't saved, and the next innermost frame is a dummy, return the
422 dummy frame's link register.
423
424 2002-09-24 Jim Blandy <jimb@redhat.com>
425
426 Fix from Paul Breed:
427 * main.c (captured_main): Add a `break' after the case for 'b'.
428
429 2002-09-24 Keith Seitz <keiths@redhat.com>
430
431 * varobj.c (c_type_of_child): Use get_target_type instead
432 of TYPE_TARGET_TYPE.
433
434 2002-09-22 Fernando Nasser <fnasser@redhat.com>
435
436 * source.c (get_current_or_default_source_symtab_and_line): Remove
437 function.
438 (set_default_source_symtab_and_line): New function. Attempts to
439 determine a source file to list lines from if one is not currently
440 defined.
441 (get_current_source_symtab_and_line): Initialize sal.pc and
442 sal.end fields.
443 (set_current_source_symtab_and_line): Mark argument as const.
444 * source.h: Update declarations and comments.
445 * linespec.c (decode_line_1): Replace call to removed routine above.
446 * stack.c (print_frame_info_base): Ditto.
447 * cli/cli-cmds.c (edit_command): Ditto.
448 (list_command): Ditto.
449
450 2002-09-22 Fernando Nasser <fnasser@redhat.com>
451
452 * source.c (get_current_or_default_source_symtab_and_line): Initialize
453 sal.pc and sal.end fields.
454 (get_current_or_default_source_symtab_and_line): Ditto.
455 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
456 so we do not cause a new source symtab to be searched for (reverting an
457 unintentional change from the 2002-09-20 patch).
458 * scm-lang.c (scm_unpac): Ditto.
459
460 2002-09-21 Andrew Cagney <cagney@redhat.com>
461
462 * complaints.c (symfile_explanations): Remove new-line from
463 ``isolated_message''.
464 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
465 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
466
467 2002-09-20 Nick Clifton <nickc@redhat.com>
468
469 * NEWS: Announce that V850EA ISA is no longer supported.
470 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
471
472 2002-09-20 David Carlton <carlton@math.stanford.edu>
473
474 * Makefile.in (c-lang.o): Correct dependencies.
475 (utils.o): Gather dependencies.
476 (charset.o): Move.
477 * c-lang.c: #include "gdb_string.h"
478
479 2002-09-20 Fernando Nasser <fnasser@redhat.com>
480
481 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
482 * cli/cli-cmds.c (list_command): New function. Implements the new
483 cli edit command.
484 (_init_cli_cmds): Add new command definition.
485 * gdb.1: Document edit command.
486 * doc/gdb.texinfo: Document edit command.
487
488 2002-09-20 Fernando Nasser <fnasser@redhat.com>
489
490 * source.c: Make global variables current_source_symtab and
491 current_source_line static.
492 (list_command): Moved to cli/cli-cmds.c.
493 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
494 (get_first_line_listed): New accessor function.
495 (get_lines_to_list): New accessor function.
496 (get_current_source_symtab_and_line): New function. Retrieves the
497 position in the source code that we consider current.
498 (get_current_or_default_source_symtab_and_line): New function.
499 Like the above but attempts to determine a default position if one
500 is not currently defined.
501 (set_current_source_symtab_and_line): New function. Sets the source
502 code position considered current and returns the previously set one.
503 (clear_current_source_symtab_and_line): Reset stored information about
504 a current source line.
505 (_initialize_source): Remove registration for the "list" command and
506 its alias.
507 * source.h: Add declarations for the new functions above.
508 * symtab.h: Remove declarations for the global variables mentioned
509 above.
510 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
511 obtain current source line.
512 * linespec.c (decode_line_1): Ditto.
513 * macroscope.c (default_macro_scope): Ditto.
514 * scm-lang.c (scm_unpac): Ditto.
515 * stack.c (print_frame_info_base): Ditto.
516 * symfile.c (clear_symtab_users): Ditto.
517 * symtab.c (decode_line_spec): Ditto.
518 * cli/cli-cmds.c (list_command): Moved here from source.c.
519 (ambiguous_line_spec): Moved here from source.c.
520 (_init_cli_cmds): Add definition for "list" and its alias.
521 * Makefile.in: Update dependencies.
522
523 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
524
525 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
526 with what gcc thinks is correct.
527
528 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
529
530 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
531 multiple register push instruction.
532
533 2002-09-19 Jim Blandy <jimb@redhat.com>
534
535 Add support for distinct host and target character sets.
536 * charset.c, charset.h: New files.
537 * c-exp.y: #include "charset.h".
538 (yylex): Convert character and string literals to the target
539 character set, before returning them as the semantic value of the
540 token.
541 * c-lang.c: #include "charset.h".
542 (c_emit_char): Use charset-specific methods to recognize
543 characters with backslash escape forms, to decide which characters
544 to print literally and which to print using numeric escape
545 sequences, and to convert target characters to host characters
546 before printing.
547 * utils.c: #include "charset.h".
548 (no_control_char_error): New function.
549 (parse_escape): Use charset-specific methods to recognize
550 backslash escapes, parse `control character' notation, and convert
551 characters from the host character set to the target character set.
552 * configure.in: Set the default host character set.
553 Check where to find iconv, and what its argument types might be.
554 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
555 * Makefile.in (SFILES): List charset.c.
556 (COMMON_OBS): List charset.o.
557 (charset.o): New rule.
558 (charset_h): New header dependency variable.
559 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
560 (LIBICONV): New variable, set by configure.
561 (CLIBS): Include $(LIBICONV) here.
562 * aclocal.m4, config.in, configure: Regenerated.
563
564 2002-09-19 Joel Brobecker <brobecker@gnat.com>
565
566 * ada-exp.y: Add missing semicolons to end rules. Fixes a
567 bison 1.35 warning.
568
569 2002-09-19 Richard Earnshaw <rearnsha@arm.com>
570
571 * gdb_mbuild.sh: New file.
572
573 2002-09-19 Andrew Cagney <ac131313@redhat.com>
574
575 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
576
577 2002-09-18 Andrew Cagney <ac131313@redhat.com>
578
579 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
580 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
581 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
582 valops.c, value.h: Revert previous change.
583
584 2002-09-18 Michael Snyder <msnyder@redhat.com>
585
586 Preliminary support for Objective-C:
587 * defs.h (language_objc): New enum value.
588 (puts_filtered_tabular): Declaration only, exported from utils.c.
589 (skip_quoted): Delete, declared in completer.h.
590 * c-exp.y: Include completer.h.
591 * p-exp.y: Ditto.
592 * jv-exp.y: Ditto.
593 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
594 New operator enum values.
595 * language.h (CAST_IS_CONVERSION): Test for language_objc.
596 * language.c (binop_result_type): Handle language_objc case.
597 (integral_type, character_type, string_type, boolean_type,
598 structured_type, binop_type_check): Ditto.
599 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
600 (struct objc_specific): Add to general_symbol_info.
601 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
602 (SYMBOL_DEMANGLED_NAME): Handle objc case.
603 * parser-defs.h (struct objc_class_str): New struct type.
604 (start_msglist, end_msglist, add_msglist): Declaration only,
605 exported from objc-lang.c.
606 * value.h (value_of_local, value_nsstring,
607 call_function_by_hand_expecting_type): Exported from valops.c.
608 * valops.c (find_function_addr): Export.
609 (call_function_by_hand_expecting_type): New function.
610 (value_of_local): New function.
611 * symfile.c (init_filename_language_table): Add ".m" extension
612 for Objective-C.
613 * utils.c (puts_filtered_tabular): New function.
614 (fprintf_symbol_filtered): Add objc demangling support (disabled).
615 (set/show demangle): Extend help-string to refer to ObjC.
616 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
617 * stabsread.c (symbol_reference_defined): Objective-C symbols
618 may contain colons: make allowances when scanning stabs strings
619 for colons.
620 (objc_find_colon): New function.
621 * printcmd.c (address_info): If language == objc then print
622 "self" instead of "this".
623 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
624 OP_NSSTRING, and OP_SELF.
625 (prefixify_subexp): Ditto.
626 * source.c (print_source_lines): Mention objc in comment.
627 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
628 method names.
629
630 2002-09-18 Andrew Cagney <ac131313@redhat.com>
631
632 * complaints.h: Update copyright.
633 (struct complaints): Declare.
634 (struct complaint): Make `message' constant.
635 (internal_complaint): Declare.
636 (complaint): Declare.
637 (complaint_root): Delete declaration.
638 (symfile_complaints): Delete declaration.
639 (struct complaints): Add opaque declaration.
640 (clear_complaints): Add a complaints parameter.
641 * complaints.c: Update copyright.
642 (enum complaint_series): Define.
643 (complaint_root): Delete.
644 (struct complaints): Define.
645 (complaint_sentinel, symfile_complaint_book): New variables.
646 (symfile_explanations, symfile_complaints): New variables.
647 New variables.
648 (get_complaints): New function.
649 (vcomplaint): New function.
650 (complaint): New function.
651 (internal_complaint): New function.
652 (complain): Call vcomplain with symfile_complaint.
653 (clear_complaints): Rewrite.
654 (_initialize_complaints): Use add_setshow_command.
655 * Makefile.in (complaints.o): Update dependencies.
656 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
657 to call to clear_complaints.
658 (new_symfile_objfile, reread_symbols): Ditto.
659 (oldsyms_complaint): Delete.
660 (empty_symtab_complaint, unknown_option_complaint): Delete.
661 (free_named_symtabs): Use complaint instead of complain.
662
663 2002-09-18 Michael Snyder <msnyder@redhat.com>
664
665 Contributed by Apple Computer, Inc. Merged with current sources
666 by Adam Fedor <fedor@doc.com> [cagney].
667
668 * objc-lang.c: First clean-up round: comments, indentation.
669 * objc-lang.h: Ditto.
670 * objc-lang.y: Ditto.
671
672 2002-09-18 Andrew Cagney <ac131313@redhat.com>
673
674 * maint.c (maintenance_internal_error): Print the parameter as the
675 error message.
676 (maintenance_internal_warning): New function.
677 (_initialize_maint_cmds): Add command `maint internal-warning'.
678
679 * defs.h (internal_warning, internal_vwarning): Declare.
680 * utils.c (struct internal_problem): Define.
681 (internal_vproblem): New function.
682 (internal_warning): New function.
683 (internal_vwarning): New function.
684 (internal_warning_problem, internal_error_problem): New variables.
685 (internal_verror): Just call internal_vproblem.
686
687 2002-09-18 Michael Snyder <msnyder@redhat.com>
688
689 * objc-lang.c: New file, support for Objective-C.
690 Preliminary check-in, not yet integrated into gdb.
691 * objc-lang.h: New file.
692 * objc-exp.y: New file.
693
694 2002-09-18 Andrew Cagney <ac131313@redhat.com>
695
696 * infrun.c (signal_stop_update): Convert definition to ISO C.
697 (signal_print_update): Ditto.
698 (signal_pass_update): Ditto.
699 * inflow.c (terminal_save_ours): Ditto.
700
701 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
702 comments.
703
704 * config/djgpp/fnchange.lst: Handle name clashes between
705 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
706 bfd/coff-tic80.c.
707
708 * i386-linux-tdep.h: Fix tipo.
709
710 2002-09-18 Adam Fedor <fedor@gnu.org>
711
712 * MAINTAINERS: Add myself to the Write After Approval list.
713
714 2002-09-18 Jim Blandy <jimb@redhat.com>
715
716 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
717 texthigh and textlow to reader-specific structs caused
718 objfile_relocate to miss them. This is fixable, but the work that
719 the change was supposed to prepare GDB for never got done anyway.
720
721 2002-09-18 David Carlton <carlton@math.stanford.edu>
722
723 * MAINTAINERS: Alphabetize Write After Approval list.
724
725 2002-09-18 Daniel Jacobowitz <drow@mvista.com>
726
727 Fix PR gdb/709
728 * values.c (value_static_field): Call read_var_value.
729
730 2002-09-18 Andrew Cagney <ac131313@redhat.com>
731
732 * valops.c (hand_function_call): Align the initial stack pointer
733 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
734 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
735 return value.
736 * mips-tdep.c (mips_frame_align): New function.
737 (mips_gdbarch_init): Set frame_align.
738 * gdbarch.sh (FRAME_ALIGN): New method.
739 * gdbarch.h, gdbarch.c: Re-generate.
740
741 2002-09-18 Michal Ludvig <mludvig@suse.cz>
742
743 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
744 registers.
745
746 2002-09-17 Andrew Cagney <ac131313@redhat.com>
747
748 * NEWS: Mention that MIPS $fp behavior changed.
749 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
750 reference to FP_REGNUM.
751 (mipsnbsd_cannot_store_register): Ditto.
752 * mips-linux-nat.c: Update copyright.
753 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
754 (mips_linux_cannot_store_register): Ditto.
755 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
756 * config/mips/tm-mips.h: Update copyright.
757 (FP_REGNUM): Delete macro.
758 (MIPS_REGISTER_NAMES): Replace "fp" with "".
759 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
760 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
761 (mips_r3041_reg_names, mips_r3051_reg_names)
762 (mips_r3081_reg_names): Replace "fp" with "".
763 Fix PR gdb/480.
764
765 2002-09-17 Theodore A. Roth <troth@verinet.com>
766
767 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
768 generic_read_register_dummy() (PR gdb/703).
769 (avr_push_return_address): #if 0 out unused vars.
770 (avr_gdbarch_init): Enable use of avr_push_return_address().
771
772 2002-09-17 Michael Snyder <msnyder@redhat.com>
773
774 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
775 RTE will take care of it.
776
777 2002-09-17 Andrew Cagney <ac131313@redhat.com>
778
779 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
780 invalid, return SP_REGNUM.
781
782 2002-09-17 Michael Snyder <msnyder@redhat.com>
783
784 * mips-tdep.c (mips_pop_frame): Read saved values of floating
785 point registers without sign extension.
786
787 2002-09-17 Andrew Cagney <cagney@redhat.com>
788
789 * blockframe.c (deprecated_read_register_dummy): Rename
790 generic_read_register_dummy.
791 * frame.c (frame_unwind_signed_register): New function.
792 (frame_unwind_unsigned_register): New function.
793 * frame.h (frame_unwind_signed_register): Declare.
794 (frame_unwind_unsigned_register): Declare.
795 (deprecated_read_register_dummy): Rename
796 generic_read_register_dummy.
797
798 * h8300-tdep.c (h8300_frame_chain): Update.
799 (h8300_frame_saved_pc): Update.
800 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
801 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
802 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
803 (s390_frame_chain): Update.
804 * v850-tdep.c (v850_find_callers_reg): Update.
805 (v850_frame_saved_pc): Update.
806 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
807 (m32r_find_callers_reg): Update.
808 (m32r_frame_saved_pc): Update.
809 * sh-tdep.c (sh_find_callers_reg): Update.
810 (sh64_get_saved_pr): Update.
811 (sh_init_extra_frame_info): Update.
812 (sh_init_extra_frame_info): Update.
813 (sh64_init_extra_frame_info): Update.
814 (sh64_init_extra_frame_info): Update.
815 * mcore-tdep.c (mcore_find_callers_reg): Update.
816 (mcore_frame_saved_pc): Update.
817 (mcore_init_extra_frame_info): Update.
818 * i386-tdep.c (i386_frame_saved_pc): Update.
819 * ia64-tdep.c (ia64_frame_saved_pc): Update.
820 (ia64_init_extra_frame_info): Update.
821 (ia64_init_extra_frame_info): Update.
822 * d10v-tdep.c (d10v_frame_saved_pc): Update.
823 * cris-tdep.c (cris_init_extra_frame_info): Update.
824 * avr-tdep.c (avr_frame_chain): Update.
825 (avr_init_extra_frame_info): Update.
826 (avr_frame_saved_pc): Update.
827 * arm-tdep.c (arm_find_callers_reg): Update.
828 (arm_init_extra_frame_info): Update.
829 (arm_frame_saved_pc): Update.
830
831 2002-09-17 Tom Tromey <tromey@redhat.com>
832
833 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
834 is "'".
835
836 2002-09-17 Corinna Vinschen <vinschen@redhat.com>
837
838 * MAINTAINERS: Remove "non multi-arched" text from h8300.
839 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
840 NEXT_PROLOGUE_INSN.
841 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
842 NEXT_PROLOGUE_INSN.
843
844 2002-09-16 Joel Brobecker <brobecker@gnat.com>
845
846 * osfsolib.c: Remove file, replaced by solib-osf.c.
847 * Makefile.in: Remove compilation rules for osfsolib.c.
848
849 2002-09-16 David Carlton <carlton@math.stanford.edu>
850
851 * cp-valprint.c (cp_print_class_method): Correct args to
852 check_stub_method_group.
853
854 2002-09-16 Corinna Vinschen <vinschen@redhat.com>
855
856 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
857 `set architecture'. Unify naming convention of functions.
858 (h8300_skip_prologue): Improve prologue analysis.
859 (h8300_push_arguments): Rewritten to more closely match GCC's
860 bizarre argument-passing behavior, along with the comment describing
861 said behavior.
862 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
863 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
864 sim, remote-e7000.c, remote-hms.c and remote.c
865
866 2002-09-15 Mark Kettenis <kettenis@gnu.org>
867
868 * i386-tdep.c (gdb_print_insn_i386): Removed.
869 (i386_print_insn): New function.
870 (i386_gdbarch_init): Set print_insn to i386_print_insns.
871 (_initialize_i386_tdep): Don't initialize tm_print_insn and
872 tm_print_insn_info.
873
874 2002-09-14 Mark Kettenis <kettenis@gnu.org>
875
876 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
877 zero.
878
879 2002-09-14 Corinna Vinschen <vinschen@redhat.com>
880
881 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
882 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
883 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
884
885 2002-09-13 Christopher Faylor <cgf@redhat.com>
886
887 * win32-nat.c (child_create_inferior): Honor 'tty' command.
888
889 2002-09-13 Daniel Jacobowitz <drow@mvista.com>
890
891 * gdbtypes.c (check_stub_method): Make static.
892 (check_stub_method_group): New function.
893 * gdbtypes.h: Update prototypes.
894 * cp-support.c: New file.
895 * cp-support.h: New file.
896
897 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
898 (update_method_name_from_physname): New function.
899 (read_member_functions): Correct method names for operators
900 and v3 constructors/destructors. Separate v2 constructors and
901 destructors.
902 * Makefile.in (stabsread.o): Update dependencies.
903 (SFILES): Add cp-support.c.
904 (COMMON_OBS): Add cp-support.o.
905 (cp_support_h, cp-support.o): Add.
906
907 * cp-valprint.c (cp_print_class_method): Call
908 check_stub_method_group instead of check_stub_method. Remove
909 extraneous QUITs.
910 * p-valprint.c (pascal_object_print_class_method): Likewise.
911 * valops.c (search_struct_method): Likewise.
912 (find_method_list, value_struct_elt_for_reference): Likewise.
913
914 2002-09-13 Andrew Cagney <cagney@redhat.com>
915
916 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
917 * gdbarch.h, gdbarch.c: Regenerate.
918
919 2002-09-13 Andrew Cagney <ac131313@redhat.com>
920
921 * frame.c (find_saved_register): Delete function.
922 * frame.h (find_saved_register): Delete declaration.
923 Fix PR gdb/631.
924
925 Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
926
927 * mips-tdep.c (read_next_frame_reg): Re-hack using
928 frame_register_unwind.
929
930 Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
931
932 * mips-tdep.c (mips_get_saved_register): Re-hack using
933 frame_register_unwind.
934
935 2002-09-12 Joel Brobecker <brobecker@gnat.com>
936
937 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
938 vector. Will be useful for Interix.
939 * gdbarch.h, gdbarch.c: Regenerate.
940
941 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
942 name of the malloc function by NAME_OF_MALLOC.
943
944 2002-09-12 Joel Brobecker <brobecker@gnat.com>
945
946 * value.h (find_function_in_inferior): Add const keyword to
947 one of the parameters. Allows us to invoke this function with
948 a const char *.
949 * valops.c (find_function_in_inferior): Likewise.
950
951 2002-09-12 Joel Brobecker <brobecker@gnat.com>
952
953 * exec.c (xfer_memory): Fix compilation warning with old versions
954 of GCC.
955 * tracepoint.c (trace_find_tracepoint_command): Likewise.
956
957 2002-09-12 David Carlton <carlton@math.stanford.edu>
958
959 * symtab.h: Run through gdb_indent.h.
960 Add 2002 to Copyright year list.
961
962 2002-09-12 Alan Modra <amodra@bigpond.net.au>
963
964 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
965 mach constants.
966 * MAINTAINERS: Add myself to write after approval list.
967
968 2002-09-11 J. Brobecker <brobecker@gnat.com>
969
970 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
971
972 2002-09-11 J. Brobecker <brobecker@gnat.com>
973
974 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
975 Interix.
976
977 2002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
978
979 * procfs.c (do_detach): Clear current signal, not just fault.
980 Corrects problem with breakpoint trap signal leaking to detached
981 process on Tru64.
982
983 2002-09-10 Michael Snyder <msnyder@redhat.com>
984
985 * buildsym.c (finish_block): Protect against null pointer.
986
987 2002-09-10 Andrew Cagney <cagney@redhat.com>
988
989 * infcmd.c (default_print_registers_info): Send all output to
990 ``file'' instead of ``gdb_stdout''.
991
992 2002-09-10 Michael Snyder <msnyder@redhat.com>
993
994 * mips-tdep.c (mips_extract_struct_value_address): Make val a
995 LONGEST, and use signed register read (addresses are sign-
996 extended for mips).
997
998 2002-09-10 Stephane Carrez <stcarrez@nerim.fr>
999
1000 * event-loop.c (gdb_do_one_event): Make public.
1001 * event-loop.h (gdb_do_one_event): Declare.
1002
1003 2002-09-10 Jeff Law <law@redhat.com>
1004
1005 * infttrace.c (child_resume): Simplify and rework to avoid
1006 TT_PROC_CONTINUE.
1007
1008 2002-09-09 Fred Fish <fnf@intrinsity.com>
1009
1010 * printcmd.c (print_scalar_formatted): "len" is the number of
1011 target bytes, NOT the number of target bits.
1012
1013 2002-09-09 Elena Zannoni <ezannoni@redhat.com>
1014
1015 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
1016 * top.c (init_main): Set rl_terminal_name.
1017
1018 2002-09-08 Aidan Skinner <aidan@velvet.net>
1019
1020 * ada-lang.c (ada_array_bound, ada_type_match,
1021 _initialize_ada_language): Fix K&R definitions.
1022 * ada-tasks.c (get_current_task): Fix K&R definitions.
1023 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
1024
1025 2002-09-07 Christopher Faylor <cgf@redhat.com>
1026
1027 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
1028 Add XP.
1029
1030 2002-09-06 Mark Kettenis <kettenis@gnu.org>
1031
1032 * i386-tdep.c (i386_register_virtual_type,
1033 i386_register_convertible, i386_register_convert_to_virtual,
1034 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
1035 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
1036 (i386_gdbarch_init): Fix comment. Add comments on calls that set
1037 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
1038 Don't set push_arguments twice.
1039
1040 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
1041 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
1042 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
1043 sigtramp_end to NULL.
1044 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
1045 defines.
1046 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
1047
1048 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
1049 whitespace.
1050
1051 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
1052 * gdbarch.h, gdbarch.c: Re-generate.
1053 * blockframe.c (find_pc_sect_partial_function): Convert to use
1054 SIGTRAMP_START_P predicate.
1055
1056 2002-09-05 Michael Snyder <msnyder@redhat.com>
1057
1058 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
1059 generic_dummy_frame method and old method. Also distinguish
1060 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
1061 (arm_extract_return_value): Use new regcache method.
1062
1063 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
1064 adjustment that doesn't conform to the ABI.
1065 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
1066 saved regcache, not from current regcache.
1067
1068 2002-09-05 Andrew Cagney <ac131313@redhat.com>
1069
1070 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
1071 * README: Update.
1072
1073 2002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
1074
1075 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
1076 if arm_apcs_32 is false.
1077
1078 2002-09-04 Andrew Cagney <ac131313@redhat.com>
1079
1080 GDB 5.3 branch created.
1081
1082 2002-09-03 Theodore A. Roth <troth@verinet.com>
1083
1084 * gdb/avr-tdep.c (avr_gdbarch_init): Use
1085 generic_unwind_get_saved_register.
1086
1087 2002-09-03 David Carlton <carlton@math.stanford.edu>
1088
1089 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
1090 argument (PR gdb/653). Update call to smash_to_method_type.
1091 (read_structure_scope): Update call to dwarf2_add_member_fn.
1092
1093 2002-09-03 Michal Ludvig <mludvig@suse.cz>
1094
1095 * x86-64-linux-tdep.c: Include gdb_string.h
1096 * x86-64-linux-nat.c: Ditto.
1097
1098 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1099
1100 * ada-exp.y (yyname, yyrule): Remap global variables that appear
1101 when YYDEBUG is set to 1.
1102 * c-exp.y: Likewise.
1103 * f-exp.y: Likewise.
1104 * jv-exp.y: Likewise.
1105 * m2-exp.y: Likewise.
1106 * p-exp.y: Likewise.
1107
1108 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1109
1110 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
1111 dependency list.
1112 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
1113 solib_svr4_fetch_link_map_offsets to
1114 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
1115 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
1116 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
1117 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
1118 solib-svr4.o, and solib-legacy.o.
1119 * config/i386/tm-nbsd.h: Include solib.h.
1120
1121 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1122
1123 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
1124 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
1125 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
1126 comment noting that this needs its own target configuration.
1127 * config/i386/nbsd.mt: New file.
1128 * config/i386/nbsdaout.mt: Remove.
1129 * config/i386/nbsdelf.mt: Ditto.
1130 * config/i386/tm-nbsdaout.h: Ditto.
1131
1132 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1133
1134 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
1135 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
1136 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
1137 tdep->sigtramp_end.
1138 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
1139 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
1140 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
1141
1142 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1143
1144 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
1145 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
1146 * i386-tdep.h (i386bsd_init_abi): New prototype.
1147 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
1148 function declaration.
1149 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
1150 for NetBSD-a.out or NetBSD-ELF.
1151 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
1152 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
1153 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
1154 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
1155 and nbsd-tdep.h.
1156 (i386nbsd_pc_in_sigtramp): New function.
1157 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1158 i386nbsd_pc_in_sigtramp.
1159 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
1160 and i386nbsdelf_init_abi OS ABI handlers.
1161 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
1162 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
1163
1164 2002-09-02 Mark Kettenis <kettenis@gnu.org>
1165
1166 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
1167 registers if the target really has them.
1168
1169 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1170
1171 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
1172 than nbsd-tdep.h.
1173
1174 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1175
1176 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
1177 list.
1178 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
1179 (alphanbsd_skip_sigtramp_frame): New functions.
1180 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
1181 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
1182 to alphanbsd_sigcontext_addr.
1183
1184 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1185
1186 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
1187 list.
1188 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
1189 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
1190 nbsd_pc_in_sigtramp.
1191 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
1192 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
1193 * nbsd-tdep.c: Include gdb_string.h.
1194 (nbsd_pc_in_sigtramp): New function.
1195 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
1196 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
1197 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1198 ppcnbsd_pc_in_sigtramp.
1199 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
1200 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1201 shnbsd_pc_in_sigtramp.
1202 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
1203 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
1204 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
1205
1206 2002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
1207
1208 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
1209 watchpoints to NULL.
1210 (insert_breakpoints): set val field of watchpoints if NULL.
1211
1212
1213 2002-08-29 Jim Blandy <jimb@redhat.com>
1214
1215 * symtab.c (lookup_symbol_aux): In the cases where we find a
1216 minimal symbol of an appropriate name and use its address to
1217 select a symtab to read and search, use `name' (as passed to us)
1218 as the demangled name when searching the symtab's global and
1219 static blocks, not the minsym's name.
1220
1221 2002-08-29 Keith Seitz <keiths@redhat.com>
1222
1223 * stack.c (print_frame_info_base): Always set current_source_symtab
1224 and current_source_line.
1225
1226 2002-08-29 Donn Terry <donnte@microsoft.com>
1227
1228 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
1229
1230 2002-08-28 Keith Seitz <keiths@redhat.com>
1231
1232 * stack.c (select_frame): Add FIXME concerning selected-frame
1233 events.
1234 (select_frame_command): Send selected-frame-level-changed
1235 event notification, but only if the level actually changed.
1236 (up_silently_base): Add selected-frame-level-changed event
1237 notification.
1238 (down_silently_base): Likewise.
1239
1240 2002-08-28 Andrew Cagney <ac131313@redhat.com>
1241
1242 * Makefile.in: Update dependencies for all gdb/*.c files.
1243
1244 2002-08-27 Tom Tromey <tromey@redhat.com>
1245
1246 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
1247 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
1248 Update dependencies.
1249 * i387-tdep.c: Include gdb_string.h.
1250 * osabi.c: Likewise.
1251 * i386-linux-nat.c: Likewise.
1252 * lin-lwp.c: Likewise.
1253 * ax-gdb.c: Likewise.
1254 * signals/signals.c: Likewise.
1255 * jv-valprint.c: Likewise.
1256 * p-lang.c: Likewise.
1257 * c-valprint.c: Likewise.
1258 * cp-abi.c: Likewise.
1259
1260 2002-08-27 Elena Zannoni <ezannoni@redhat.com>
1261
1262 * cli/cli-script.h (copy_command_lines): Export.
1263 * breakpoint.c: Include cli/cli-script.h.
1264 * Makefile.in (breakpoint.o): Update dependencies.
1265
1266 2002-08-26 Michael Snyder <msnyder@redhat.com>
1267
1268 * breakpoint.c (insert_breakpoints): Protect all references
1269 to 'process_warning'. Shorten long lines.
1270
1271 2002-08-26 Joel Brobecker <brobecker@gnat.com>
1272
1273 * cli/cli-script.c (copy_command_lines): New function.
1274 * defs.h (copy_command_lines): Export.
1275 * testsuite/gdb.base/commands.exp: New tests for commands
1276 attached to a temporary breakpoint, and for commands that
1277 delete the breakpoint they are attached to.
1278
1279 2002-08-26 Michael Snyder <msnyder@redhat.com>
1280
1281 * breakpoint.c (bpstat_stop_status): Instead of copying the
1282 pointer to the breakpoint commands struct, make a new copy
1283 of the struct and point to that.
1284 (bpstat_clear): Free the commands struct.
1285 (bpstat_clear_actions): Free the commands struct.
1286 (bpstat_do_actions): Free the command actions. Also execute
1287 the local cleanups, instead of deleting them.
1288 (delete_breakpoint): Leave the commands field of the bpstat
1289 chain alone -- it will be freed later.
1290
1291 2002-08-26 Kevin Buettner <kevinb@redhat.com>
1292
1293 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
1294 deleted in 2002-08-20 commit. This function is still used by
1295 ppc-linux-nat.c.
1296
1297 2002-08-26 Keith Seitz <keiths@redhat.com>
1298
1299 * gdb-events.sh: Add selected-frame-level-changed event.
1300 * gdb-events.c: Regenerated.
1301 * gdb-events.h: Regenerated.
1302
1303 2002-08-26 Stephane Carrez <stcarrez@nerim.fr>
1304
1305 Fix PR gdb/393:
1306 * inflow.c (terminal_save_ours): New function to save terminal
1307 settings.
1308 * inferior.h (terminal_save_ours): Declare.
1309 * target.c (debug_to_terminal_save_ours): New function.
1310 (cleanup_target): Defaults to_terminal_save_ours.
1311 (update_current_target): Inherit to_terminal_save_ours.
1312 (setup_target_debug): Set to_terminal_save_ours.
1313 * target.h (target_terminal_save_ours): New to save terminal settings.
1314 (target_ops): New member to_terminal_save_ours.
1315 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
1316 * hpux-thread.c (init_hpux_thread_ops): Likewise.
1317 * inftarg.c (init_child_ops): Likewise.
1318 * m3-nat.c (init_m3_ops): Likewise.
1319 * procfs.c (init_procfs_ops): Likewise.
1320 * wince.c (init_child_ops): Likewise.
1321 * win32-nat.c (init_child_ops): Likewise.
1322 * sol-thread.c (init_sol_thread_ops): Likewise.
1323
1324 2002-08-26 Mark Kettenis <kettenis@gnu.org>
1325
1326 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
1327 use regcache_* functions.
1328 (i386_gdbarch_init): Set store_return_value instead of
1329 deprecated_store_return_value.
1330
1331 * regcache.c (regcache_raw_write_signed,
1332 regcache_raw_write_unsigned): New functions.
1333 * regcache.h (regcache_raw_write_signed,
1334 regcache_raw_write_unsigned): New prototypes.
1335
1336 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1337
1338 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
1339 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
1340 source file dependencies. Cleanup corresponding generator rules.
1341
1342 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1343
1344 * regcache.h (register_offset_hack): Declare.
1345 (regcache_cooked_read_using_offset_hack): Declare.
1346 (regcache_cooked_write_using_offset_hack): Declare.
1347
1348 * regcache.c (register_offset_hack): New function.
1349 (regcache_cooked_read_using_offset_hack): New function.
1350 (regcache_cooked_write_using_offset_hack): New function.
1351 (regcache_dump): Check that the registers, according to their
1352 offset, are packed hard against each other.
1353 (cooked_xfer_using_offset_hack): New function.
1354
1355 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1356
1357 * regcache.c (struct regcache_descr): Add field register_type.
1358 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
1359 in as a parameter
1360 (init_regcache_descr): Initialize register_type. Pass the descr
1361 to init_legacy_regcache_descr. Use register_type instead of
1362 REGISTER_VIRTUAL_TYPE.
1363 (register_type): New function.
1364 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
1365 * regcache.h (register_type): Declare.
1366
1367 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1368
1369 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
1370 instead of deprecated_store_return_value. Fix fallout from
1371 2002-08-23 Andrew Cagney <cagney@redhat.com>.
1372
1373 2002-08-25 Andrew Cagney <ac131313@redhat.com>
1374
1375 * regcache.c (max_register_size): New function.
1376 (init_legacy_regcache_descr): Ensure that max_register_size is
1377 large enough for REGISTER_VIRTUAL_SIZE.
1378 * regcache.h (max_register_size): Declare.
1379
1380 2002-08-24 Andrew Cagney <ac131313@redhat.com>
1381
1382 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
1383 store_return_value.
1384 (e500_extract_return_value): Change type of valbuf pointer to
1385 void.
1386
1387 2002-08-24 Mark Kettenis <kettenis@gnu.org>
1388
1389 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
1390 workaround.
1391
1392 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
1393 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
1394 long long) to prevent compiler warning on 64-bit systems.
1395
1396 2002-08-23 Andrew Cagney <cagney@redhat.com>
1397
1398 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
1399 (DEPRECATED_STORE_RETURN_VALUE): New method.
1400 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
1401 * gdbarch.h, gdbarch.c: Re-generate.
1402
1403 * values.c (set_return_value): Pass current_regcache to
1404 STORE_RETURN_VALUE.
1405 * arch-utils.h (legacy_store_return_value): Declare.
1406 * arch-utils.c (legacy_store_return_value): New function.
1407 (legacy_extract_return_value): Update parameters.
1408
1409 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
1410 STORE_RETURN_VALUE.
1411 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1412 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1413 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1414 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1415 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1416 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1417 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1418 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1419 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1420 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1421
1422 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1423 * i386-tdep.c (i386_extract_return_value): Update.
1424 * arch-utils.c (legacy_extract_return_value): Update.
1425 * frv-tdep.c (frv_gdbarch_init): Update.
1426 * cris-tdep.c (cris_gdbarch_init): Update.
1427 * d10v-tdep.c (d10v_gdbarch_init): Update.
1428 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1429 * m68k-tdep.c (m68k_gdbarch_init): Update.
1430 * mcore-tdep.c (mcore_gdbarch_init): Update.
1431 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1432 * s390-tdep.c (s390_gdbarch_init): Update.
1433 * sparc-tdep.c (sparc_gdbarch_init): Update.
1434 * sh-tdep.c (sh_gdbarch_init): Update.
1435 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1436 * v850-tdep.c (v850_gdbarch_init): Update.
1437 * avr-tdep.c (avr_gdbarch_init): Update.
1438 * ia64-tdep.c (ia64_gdbarch_init): Update.
1439 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1440 * vax-tdep.c (vax_gdbarch_init): Update.
1441 * alpha-tdep.c (alpha_gdbarch_init): Update.
1442 * arm-tdep.c (arm_gdbarch_init): Update.
1443 * mips-tdep.c (mips_gdbarch_init): Update.
1444 * i386-tdep.c (i386_gdbarch_init): Update.
1445
1446 2002-08-23 Andrew Cagney <ac131313@redhat.com>
1447
1448 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
1449 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
1450
1451 2002-08-24 Mark Kettenis <kettenis@gnu.org>
1452
1453 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
1454 problems.
1455
1456 2002-08-23 Joel Brobecker <brobecker@gnat.com>
1457
1458 * infrun.c (handle_inferior_event): Move a comment outside of a
1459 function call, in order to avoid indent reformatting this part
1460 of the code in an unreadable way.
1461
1462 2002-08-23 Grace Sainsbury <graces@redhat.com>
1463
1464 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
1465 when breakpoints fail. Move general breakpoint error messages to
1466 insert_breakpoints.
1467 * breakpoint.c (insert_breakpoints): Change warnings when
1468 breakpoints are nto inserted to specify the type. Remove call to
1469 memory_error when hardware breakpoints can't be inserted. Remove
1470 multiple calls to warning so all messages are sent to the user at
1471 once.
1472 (delete_breakpoints): Make insert error messsages more explicit.
1473
1474 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
1475
1476 * ChangeLog: Move gdbserver entries after GDB 5.2 to
1477 gdbserver/ChangeLog.
1478
1479 2002-08-23 Mark Kettenis <kettenis@gnu.org>
1480
1481 * i386-tdep.c: Include "objfiles.h".
1482 (i386_svr4_init_abi): Set in_solib_call_trampoline and
1483 skip_trampoline_code.
1484 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
1485 (CPLUS_MARKER): Define to '.'.
1486
1487 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
1488 member.
1489 (linux_corefile_thread_callback): Increase args->num_notes.
1490 (linux_make_note_section): Initialize thread_args.num_notes, and
1491 use it to determine whether notes for any threads were created.
1492
1493 2002-08-23 Donn Terry <donnte@microsoft.com>
1494
1495 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
1496 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
1497 and PCUNKILL.
1498 (write_with_trace): Conditionalize out the switch branch handling
1499 PCSHOLD if the corresponding macro is not defined. Likewise for
1500 PRSABORT and PRSTOP.
1501 This change will be needed by the Interix port.
1502
1503 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
1504
1505 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
1506 write_register wherever possible instead of manipulating the
1507 register bytes directly.
1508 Assign VALUE_CONTENTS to a variable and use that.
1509 The GPR numbers are now dependent on the architecture.
1510
1511 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
1512
1513 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
1514 ev_offset fields.
1515 (skip_prologue): Add support for BookE/e500 instructions.
1516 (e500_extract_return_value): New function.
1517 (frame_get_saved_regs): Add support for saving ev registers and
1518 pseudo gpr's.
1519 (e500_store_return_value): New function.
1520 (rs6000_gdbarch_init): Move up default intializations of
1521 deprecated_extract_return_value and store_return_value. Overwrite
1522 init of store_return_value with e500 specific version.
1523 Set extract_return_value for e500.
1524
1525 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
1526
1527 * blockframe.c (generic_call_dummy_register_unwind): Use
1528 regcache_cooked_read to catch cases in which the variable is
1529 stored in a pseudo register.
1530
1531 2002-08-22 Andrew Cagney <cagney@redhat.com>
1532
1533 * NEWS: Mention that the i960 has been made obsolete.
1534 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
1535 i960-tdep.c
1536 (remote-nrom.o): Obsolete target.
1537 (remote-nindy.o, i960-tdep.o): Ditto.
1538 * remote-nrom.c: Make file obsolete.
1539 * remote-nindy.c, remote-vx960.c: Ditto.
1540 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
1541 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
1542 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
1543 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
1544 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
1545 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
1546 i960-*-vxworks* obsolete.
1547 * MAINTAINERS: Note that the i960 is obsolete.
1548
1549 2002-08-21 Corinna Vinschen <vinschen@redhat.com
1550
1551 * aix-thread.c (aix_thread_detach): Disable thread debugging on
1552 detach to allow reinitialization.
1553
1554 2002-08-22 Andrew Cagney <ac131313@redhat.com>
1555
1556 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
1557 attempt).
1558
1559 2002-08-22 Jim Blandy <jimb@redhat.com>
1560
1561 * coffread.c (coff_symfile_read): Don't try to read the line
1562 number table from disk if the image file doesn't have a symbol
1563 table; we'll never actually look at the info anyway, and Windows
1564 ships DLL's with bogus file offsets for the line number data.
1565
1566 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
1567
1568 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
1569 an e500 executable.
1570
1571 2002-08-21 Michael Snyder <msnyder@redhat.com>
1572
1573 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
1574 (MSYMBOL_SIZE): Replace macro with function.
1575 (DEFAULT_MIPS_TYPE): Delete unused macro.
1576 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
1577 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
1578
1579 2002-08-21 Jim Blandy <jimb@redhat.com>
1580
1581 * valops.c (value_cast): Simplify and correct logic for doing a
1582 static cast from a pointer to a base class to a pointer to a
1583 derived class.
1584
1585 2002-08-21 Andrew Cagney <ac131313@redhat.com>
1586
1587 * infcmd.c (default_print_registers_info): Replace
1588 do_registers_info.
1589 (registers_info): Use gdbarch_print_registers_info instead of
1590 DO_REGISTERS_INFO.
1591 * inferior.h (default_print_registers_info): Replace
1592 do_registers_info.
1593 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
1594 (DO_REGISTERS_INFO): Change to a predicate function.
1595 * gdbarch.h, gdbarch.c: Regenerate.
1596
1597 2002-08-21 Keith Seitz <keiths@redhat.com>
1598
1599 * gdb-events.sh: Add target-changed event.
1600 * gdb-events.c: Regenerated.
1601 * gdb-events.c: Regenerated.
1602 * valops.c (value_assign): Add target-changed event notification
1603 to inlval_register, lval_memory, and lval_reg_frame_relative.
1604
1605 2002-08-21 Joel Brobecker <brobecker@gnat.com>
1606
1607 * NEWS: Add an entry regarding the improvement of the next/step
1608 operation on Alpha Tru64 multi-processor machines.
1609
1610 2002-08-21 Andrew Cagney <ac131313@redhat.com>
1611
1612 * Makefile.in: Update dependencies for mi/ cli/ and tui/
1613 directores.
1614 * Makefile.in: Update all _h macro definitions.
1615 * Makefile.in (install-gdbtk): Move to install section.
1616 (rdi-share/libangsd.a): Move to end of file.
1617
1618 2002-08-19 Andrew Cagney <ac131313@redhat.com>
1619
1620 * frame.c (frame_register_unwind): When a register, set addrp to
1621 the register's byte.
1622
1623 2002-08-20 Michael Snyder <msnyder@redhat.com>
1624
1625 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
1626 used locally, so move them from the target machine header to here.
1627 (mips_set_processor_type, mips_register_name, mips32_next_pc,
1628 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
1629 Make static.
1630 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
1631
1632 2002-08-20 Andrew Cagney <cagney@redhat.com>
1633
1634 * NEWS: Mention that the Apollo line was made obsolete.
1635 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
1636 m68*-hp-hpux* obsolete.
1637 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
1638 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
1639 * buildsym.c (make_blockvector): Make static.
1640 * buildsym.h (make_blockvector): Make extern declaration obsolete.
1641 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
1642 (ALLDEPFILES): Remove dstread.c.
1643 (dstread.o): Obsolete make rule.
1644 * dstread.c: Makefile obsolete.
1645 * dst.h: Ditto.
1646 * config/m68k/hp300hpux.mt: Ditto.
1647 * config/m68k/hp300hpux.mh: Ditto.
1648 * config/m68k/hp300bsd.mt: Ditto.
1649 * config/m68k/hp300bsd.mh: Ditto.
1650 * config/m68k/apollo68b.mt: Ditto.
1651 * config/m68k/apollo68v.mh: Ditto.
1652 * config/m68k/apollo68b.mh: Ditto.
1653
1654 2002-08-20 Michael Snyder <msnyder@redhat.com>
1655
1656 * mips-tdep.c (mips_in_return_stub): Make static.
1657 (mips_gdbarch_init): Set in_solib_return_trampoline.
1658 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
1659
1660 2002-08-20 Michael Snyder <msnyder@redhat.com>
1661
1662 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
1663 * gdbarch.c, gdbarch.h: Regenerate.
1664 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
1665 Add.
1666 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
1667
1668 2002-08-20 Michael Snyder <msnyder@redhat.com>
1669
1670 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
1671 (mips_gdbarch_init): Set skip_trampoline_code,
1672 in_solib_call_trampoline.
1673 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
1674 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
1675
1676 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1677
1678 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
1679
1680 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
1681 vector type for ev registers.
1682 (e500_pseudo_register_read): New function.
1683 (e500_pseudo_register_write): New function.
1684 (e500_dwarf2_reg_to_regnum): New function.
1685 (PPC_UISA_NOFP_SPRS): New macro.
1686 (PPC_EV_REGS): New macro.
1687 (PPC_GPRS_PSEUDO_REGS): New macro.
1688 (registers_e500): New register set for e500.
1689 (variants): Add e500 variant.
1690 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
1691 before setting architectural dependent variations. Initialize ev
1692 registers numbers. Add case for e500 architecture. Set the
1693 number of pseudo registers.
1694
1695 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1696
1697 * rs6000-tdep.c: Clean up comments.
1698
1699 2002-08-20 Andrew Cagney <cagney@redhat.com>
1700
1701 * h8300-tdep.c: Re-indent file.
1702
1703 2002-08-20 Jim Blandy <jimb@redhat.com>
1704
1705 * Makefile.in (LDFLAGS): Allow the configure script to establish a
1706 default for this.
1707
1708 2002-08-20 Keith Seitz <keiths@redhat.com>
1709
1710 * breakpoints.c (watch_command_1): Use internal breakpoint
1711 when setting a watchpoint_scope breakpoint.
1712
1713 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1714
1715 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
1716 (build_builtin_type_vec64i): Ditto.
1717 (build_builtin_type_vec128): Ditto.
1718 (build_builtin_type_vec128i): Ditto.
1719
1720 2002-08-19 Michael Snyder <msnyder@redhat.com>
1721
1722 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
1723 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
1724 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
1725 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
1726 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
1727 CALL_DUMMY_ADDRESS): Delete.
1728 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
1729 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
1730 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
1731 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
1732 push_return_address.
1733 (mips_register_raw_size, mips_eabi_use_struct_convention,
1734 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
1735 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
1736 mips_init_extra_frame_info, mips_eabi_push_arguments,
1737 mips_n32n64_push_arguments, mips_push_return_address,
1738 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
1739 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
1740
1741 2002-08-19 Michael Snyder <msnyder@redhat.com>
1742
1743 * mips-tdep.c (mips_frame_num_args): New function.
1744 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
1745 frame_saved_pc, frame_args_address, frame_locals_address,
1746 frame_num_args, and frame_args_skip.
1747 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
1748 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
1749 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
1750 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
1751
1752 2002-08-20 Michael Snyder <msnyder@redhat.com>
1753
1754 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
1755 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
1756 * mips-tdep.c (mips_store_struct_return): New function.
1757 (mips_extract_struct_value_address): New function.
1758 (mips_gdbarch_init): Set store_struct_return and
1759 extract_struct_value_address.
1760
1761 2002-08-20 David Carlton <carlton@math.stanford.edu>
1762
1763 * dwarf2read.c (dwarf2_build_psymtabs): Check that
1764 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
1765 (read_file_scope): Check that line_header is nonzero before
1766 decoding macro information.
1767
1768 2002-08-20 Mark Kettenis <kettenis@gnu.org>
1769
1770 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
1771 flag the general-purpose registers as floating-point on targets
1772 that don't support the floating-point registers.
1773
1774 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1775
1776 * rs6000-tdep.c (altivec_register_p): Delete.
1777 (rs6000_do_altivec_registers): Delete.
1778 (rs6000_altivec_registers_info): Delete.
1779 (rs6000_do_registers_info): Delete.
1780 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
1781 (rs6000_gdbarch_init): Remove setting of do_registers_info.
1782
1783 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1784
1785 * infcmd.c (do_registers_info): Print vector registers in hex
1786 format only.
1787 (print_vector_info): Check that printing registers
1788 makes sense.
1789 (print_float_info): Ditto.
1790
1791 2002-08-20 Andrew Cagney <ac131313@redhat.com>
1792
1793 * mips-tdep.c (mips_gdbarch_init): Update.
1794 (mips_o32_extract_return_value): Rewrite.
1795 (mips_o32_store_return_value): Rewrite.
1796 (mips_o32_xfer_return_value): New function.
1797 (mips_xfer_register): Tweak debug print message. Allow for
1798 buf_offset when dumping the value transfered.
1799
1800 2002-08-20 Andrew Cagney <ac131313@redhat.com>
1801
1802 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
1803 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
1804 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
1805 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
1806 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
1807
1808 2002-08-14 Michael Snyder <msnyder@redhat.com>
1809
1810 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
1811
1812 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
1813
1814 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
1815 register.
1816 (P): New macro to define a register as a pseudo register.
1817 (R, R4, R8, R16, FR32, R64, R0): Updated.
1818 (struct variant): Add new fields for number of pseudo registers
1819 and number of total registers.
1820 (tot_num_registers): New macro replacing....
1821 (num_registers): ...deleted macro.
1822 (num_registers): New function.
1823 (num_pseudo_registers): New function.
1824 (variants): Update all variants to intialize new fields correctly.
1825 Postpone initialization of number of pseudo regs and real regs.
1826 (init_variants): New function.
1827 (rs6000_gdbarch_init): Initialize variants. Update calculation of
1828 registers offsets.
1829
1830 2002-08-19 David Carlton <carlton@math.stanford.edu>
1831
1832 * valops.c (search_struct_field): Change error message to treat
1833 return value of 0 from value_static_field as meaning that field is
1834 optimized out.
1835 (value_struct_elt_for_reference): Ditto.
1836 * values.c (value_static_field): Treat an unresolved location the
1837 same as a nonexistent symbol. Fix PR gdb/635.
1838 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
1839 enclosed. Fix PR gdb/574.
1840 * MAINTAINERS: Add self to Write After Approval list.
1841
1842 2002-08-19 Andrew Cagney <ac131313@redhat.com>
1843
1844 * mips-tdep.c (mips_xfer_register): New function.
1845 (mips_n32n64_extract_return_value): Rewrite.
1846 (mips_gdbarch_init): For N32 and N64, set extract_return_value
1847 instead of deprecated_extract_return_value.
1848
1849 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
1850
1851 * rs6000-tdep.c (TDEP): Delete macro.
1852 (branch_dest): Replace use of TDEP macro with its body.
1853 (rs6000_pop_frame): Ditto.
1854 (rs6000_push_arguments): Ditto.
1855 (rs6000_skip_trampoline_code): Ditto.
1856 (rs6000_frame_saved_pc): Ditto.
1857 (rs6000_frame_chain): Ditto.
1858 (rs6000_register_name): Ditto.
1859 (rs6000_register_byte): Ditto.
1860 (rs6000_register_raw_size): Ditto.
1861 (rs6000_register_virtual_type): Ditto.
1862 (rs6000_register_convertible): Ditto.
1863 (rs6000_convert_from_func_ptr_addr): Ditto.
1864
1865 2002-08-19 Daniel Jacobowitz <drow@mvista.com>
1866
1867 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
1868 conditionally.
1869 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
1870 MIPS_LINUX_JB_ELEMENT_SIZE.
1871 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
1872 for MAX_REGISTER_RAW_SIZE arrays.
1873 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
1874 MIPS_LINUX_JB_ELEMENT_SIZE.
1875
1876 2002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
1877
1878 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
1879
1880 2002-08-19 Aidan Skinner <aidan@velvet.net>
1881
1882 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
1883 ada-valprint.c ada-tasks.c.
1884 (YYFILES): Add ada-exp.y.
1885 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
1886 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
1887 (ada-exp.tab.o): New target.
1888
1889 2002-08-18 Andrew Cagney <ac131313@redhat.com>
1890
1891 * regcache.c (regcache_xfer_part): New function.
1892 (regcache_raw_read_part): New function.
1893 (regcache_raw_write_part): New function.
1894 (regcache_cooked_read_part): New function.
1895 (regcache_cooked_write_part): New function.
1896 * regcache.h (regcache_raw_read_part): Declare.
1897 (regcache_raw_write_part): Declare.
1898 (regcache_cooked_read_part): Declare.
1899 (regcache_cooked_write_part): Declare.
1900
1901 2002-08-18 Daniel Jacobowitz <drow@mvista.com>
1902
1903 * remote.c (remote_open_1): Add async_p.
1904 (remote_async_open_1): Delete.
1905 (open_remote_target): Delete.
1906 (remote_open, extended_remote_open): Update calls to remote_open_1.
1907 (remote_async_open, extended_remote_async_open): Call
1908 remote_open_1 instead of remote_async_open_1.
1909
1910 2002-08-19 Mark Kettenis <kettenis@gnu.org>
1911
1912 * blockframe.c: Fix a few coding standard violations.
1913
1914 2002-08-19 Mark Kettenis <kettenis@gnu.org>
1915
1916 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
1917 here from ...
1918 * config/i386/tm-i386sco5.h: ... here. File removed.
1919 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
1920
1921 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
1922 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
1923 (TM_FILE): Set to tm-i386.h.
1924 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
1925 * config/i386/tm-i386v.h: Remove file.
1926 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
1927 instead of "i386/tm-i386v.h".
1928 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
1929 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
1930 "i386/tm-i386v.h".
1931 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
1932 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
1933 "i386/tm-i386.h".
1934
1935 2002-08-18 Mark Kettenis <kettenis@gnu.org>
1936
1937 * config/i386/nm-i386v.h: Add protection against
1938 multiple-inclusion.
1939 (i386_register_u_addr): Remove prototype.
1940 (register_u_addr): New prototype.
1941 (REGISTER_U_ADDR): Redefine accordingly.
1942 * i386v-nat.c: Improve several comments.
1943 (i386_register_u_addr): Change signature and rename to
1944 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
1945 ubase variable.
1946
1947 2002-08-18 Andrew Cagney <ac131313@redhat.com>
1948
1949 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
1950 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
1951 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
1952 deprecated_extract_return_value.
1953 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
1954 rename mips_o32o64_push_arguments.
1955 (mips_gdbarch_init): Update.
1956 (mips_extract_return_value): Delete.
1957 (mips_o32_extract_return_value): Clone mips_extract_return_value.
1958 (mips_o64_extract_return_value): Clone mips_extract_return_value.
1959 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
1960 (mips_n32n64_extract_return_value): Clone
1961 mips_extract_return_value.
1962 (mips_store_return_value): Delete.
1963 (mips_o32_store_return_value): Clone mips_store_return_value.
1964 (mips_o64_store_return_value): Clone mips_store_return_value.
1965 (mips_eabi_store_return_value): Clone mips_store_return_value.
1966 (mips_n32n64_store_return_value): Clone mips_store_return_value.
1967
1968 2002-08-18 Aidan Skinner <aidan@velvet.net>
1969
1970 * ada-lang.c: Use gdb_string.h instead of <string.h>.
1971 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
1972
1973 2002-08-18 Aidan Skinner <aidan@velvet.net>
1974
1975 * ada-lang.c: Run through gdb_indent.sh.
1976 * ada-lang.h: Run through gdb_indent.sh.
1977 * ada-tasks.c: Run through gdb_indent.sh.
1978 * ada-typeprint.c: Run through gdb_indent.sh.
1979 * ada-valprint.c: Run through gdb_indent.sh.
1980
1981 2002-08-18 Andrew Cagney <ac131313@redhat.com>
1982
1983 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
1984 ABI.
1985
1986 2002-08-18 Mark Kettenis <kettenis@gnu.org>
1987
1988 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
1989
1990 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
1991 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
1992
1993 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
1994 write_register_gen instead of write_register_bytes.
1995
1996 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
1997 i[3456]-*-osf1mk* configurations have been made obsolete.
1998 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
1999 i[3456]86-*-osf1mk* hosts obsolete.
2000 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
2001 targets obsolete.
2002 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
2003 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
2004 config/i386/i386m3.mt, config/i386/nm-m3.h,
2005 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
2006 config/i386/i386mk.mh, config/i386/i386mk.mt,
2007 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
2008 obsolete.
2009 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
2010 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
2011 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
2012
2013 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2014
2015 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
2016 (hppa_value_returned_from_stack): Declare.
2017 (hppa_extract_return_value): Declare.
2018 * config/pa/hppa.mt: New file.
2019 * configure.tgt: Recognize hppa*-*-*.
2020 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
2021
2022 2002-08-18 Mark Kettenis <kettenis@gnu.org>
2023
2024 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
2025 comment.
2026
2027 2002-08-17 Mark Kettenis <kettenis@gnu.org>
2028
2029 * top.c (gdb_rl_operate_and_get_next): Make sure
2030 operate-and-get-next functions correctly even when the history
2031 list is completely filled.
2032
2033 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2034
2035 * MAINTAINERS (Target Instruction Set Architectures): Rename
2036 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
2037 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
2038 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
2039 already listed under Host/Native.
2040
2041 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
2042 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
2043 mips*-*-*.
2044
2045 2002-08-17 Andrew Cagney <ac131313@redhat.com>
2046
2047 * config/ia64/ia64.mt: New file.
2048 * config/alpha/alpha.mt: New file.
2049 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
2050 ia64-linux-gnu. Mention that ia64-elf is broken.
2051 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
2052
2053 2002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
2054
2055 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
2056 generic_func_frame_valid instead of func_frame_valid.
2057
2058 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2059
2060 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
2061 procfs appears to be broken when debugging on multi-processor
2062 machines. So enable software single stepping in order to avoid
2063 using the procfs interface to do next/step operations, using
2064 internal breakpoints instead.
2065
2066 * infrun.c (handle_inferior_event): Readjust the stop_pc by
2067 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
2068 make this pc address equal to the value it would have if the
2069 system stepping capability was used. Also set a new flag used
2070 to ensure that we don't readjust the PC one more time later.
2071
2072 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
2073 address by DECR_PC_AFTER_BREAK when software single step is
2074 in use for this architecture, as this has already been taken
2075 care of in handle_inferior_event().
2076
2077 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2078
2079 * infrun.c (handle_inferior_event): Minor reformatting, to make
2080 a rather long condition expression easier to read.
2081
2082 2002-08-16 Andrew Cagney <ac131313@redhat.com>
2083
2084 * Makefile.in (gdbtk.o): Move to end of file.
2085 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
2086 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
2087 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
2088 (gdbtk-wrapper.o, gdbres.o): Ditto.
2089
2090 2002-08-16 Andrew Cagney <ac131313@redhat.com>
2091
2092 * Makefile.in (copying.o): Separate out compile rule.
2093 (hpux-thread.o, procfs.o, signals.o): Ditto.
2094 (v850ice.o, z8k-tdep.o): Ditto.
2095 (tui-file.o): Move to TUI section.
2096 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
2097 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
2098
2099 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2100
2101 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
2102 skip_trampoline_code, for better namespace-proofing.
2103
2104 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
2105
2106 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2107
2108 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
2109
2110 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2111
2112 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
2113 signal, check whether we hit a breakpoint before checking for a
2114 single step breakpoint. Otherwise, GDB fails to notice that a
2115 breakpoint has been hit when stepping onto a breakpoint.
2116
2117 2002-08-16 Keith Seitz <keiths@redhat.com>
2118
2119 * gdb-events.sh (clear_gdb_event_hooks): New function.
2120 * gdb-events.c: Regenerate.
2121 * gdb-events.h: Regenerate.
2122
2123 2002-08-16 Andrew Cagney <ac131313@redhat.com>
2124
2125 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
2126 not_a_sw_breakpoint.
2127 * breakpoint.h (bpstat_stop_status): Add parameter names.
2128
2129 2002-08-16 Grace Sainsbury <graces@redhat.com>
2130
2131 * remote.c (remote_insert_hw_breakpoint)
2132 (remote_remove_hw_breakpoint): Fix calculation of length field
2133 for Z-packet.
2134
2135 2002-08-15 Michael Snyder <msnyder@redhat.com>
2136
2137 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
2138 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
2139 (supply_fpregset): Ditto.
2140
2141 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
2142 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
2143 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
2144 (TARGET_READ_SP): Delete.
2145 (DO_REGISTERS_INFO): Delete.
2146 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
2147 Delete.
2148 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
2149 from macros to functions.
2150
2151 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
2152 (mips_register_convertible, mips_register_convert_to_virtual,
2153 mips_register_convert_to_raw): Make static.
2154 (mips_read_sp): New function.
2155 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
2156 (mips_do_registers_info): Make static.
2157 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
2158 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
2159 (mips_register_convert_from_type, mips_register_convert_to_type):
2160 New functions.
2161 (mips_gdbarch_init): Set up function_start_offset,
2162 register_virtual_size, pc_in_sigtramp.
2163
2164 2002-08-15 Andrew Cagney <ac131313@redhat.com>
2165
2166 * infcmd.c (vector_info): New function.
2167 (_initialize_infcmd): Add command "info vector".
2168 (print_vector_info): New function.
2169
2170 * gdbarch.sh (PRINT_VECTOR_INFO): New method
2171 * gdbarch.h, gdbarch.c: Regenerate.
2172
2173 2002-08-15 Andrew Cagney <ac131313@redhat.com>
2174
2175 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
2176 ``print_all''. Only print vector registers when ``print_all''.
2177
2178 2002-08-15 Andrew Cagney <ac131313@redhat.com>
2179
2180 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
2181 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
2182
2183 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
2184 Add `args' parameter.
2185 * gdbarch.h, gdbarch.c: Regenerate.
2186
2187 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
2188
2189 * infcmd.c (float_info): Call print_float_info.
2190 (print_float_info): New function. By default, print the
2191 floating-point registers.
2192
2193 * arch-utils.h (default_print_float_info): Delete declaration.
2194 * arch-utils.c (default_print_float_info): Delete function.
2195
2196 2002-08-16 Mark Kettenis <kettenis@gnu.org>
2197
2198 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
2199 out define.
2200
2201 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
2202 FRAME.
2203
2204 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
2205 * configure.host: Make i[3456]86-*-aix host obsolete.
2206 * configure.tgt: Make i[3456]86-*-aix target obsolete.
2207 * config/i386/i386aix.mh, config/i386/i386aix.mt,
2208 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
2209 config/i386/xm-i386aix.h: Make files obsolete.
2210 * i386aix-nat.c: Make file obsolete.
2211 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
2212 (i386aix-nat.o): Make target obsolete.
2213
2214 * config/i386/nm-gnu.h: Removed.
2215 * config/i386/nm-i386gnu.h: New file.
2216 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
2217 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
2218 Moved here from ...
2219 * config/i386/tm-i386gnu.h: ... here. Removed.
2220 * config/i386/xm-i386gnu.h: Removed.
2221 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
2222 (NAT_FILE): Set to nm-i386gnu.h.
2223 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
2224 * i386-tdep.c: New file.
2225 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
2226 (i386gnu-tdep.o): Specify dependencies.
2227
2228 2002-08-15 Mark Kettenis <kettenis@gnu.org>
2229
2230 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
2231 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
2232 Adjust a few comments to reflect reality a bit closer.
2233 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
2234 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
2235 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
2236 target_insert_watchpoint, target_remove_watchpoint):
2237 Move defines to ...
2238 * config/i386/nm-i386sco5.h: ... here.
2239 (kernel_u_size): Add prototype. Improve a few comments and add
2240 protection against multiple inclusion.
2241
2242 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
2243 out define.
2244
2245 * uw-thread.c (SP_ARG0): Define if not already defined.
2246 * config/i386/tm-i386.h (SO_ARG0): Remove define.
2247
2248 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
2249
2250 * config/i386/tm-i386.h: Don't include "regcache.h".
2251
2252 * i387-tdep.h (i387_print_float_info): New prototype.
2253 * i387-tdep.c (print_i387_value, print_i387_ext,
2254 print_i387_status_word, print_i387_control_word): Add `struct
2255 ui_file *' argument and use it for output.
2256 (i387_print_float_info): Renamed from i387_float_info. Add
2257 `struct gdbarch *' and `struct ui_file *' arguments and use the
2258 latter for output.
2259 * i386-tdep.c: Include "i387-tdep.h".
2260 (i386_gdbarch_init): Set print_float_info.
2261 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
2262 (FLOAT_INFO): Remove define.
2263
2264 2002-08-13 Michael Snyder <msnyder@redhat.com>
2265
2266 * mips-tdep.c (mips_push_arguments): Rename to
2267 mips_eabi_push_arguments, and tune for EABI.
2268 (MIPS_REGS_HAVE_HOME_P): Delete.
2269 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
2270 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
2271 Delete references to mips_regs_have_home_p.
2272
2273 2002-08-14 Keith Seitz <keiths@redhat.com>
2274
2275 * Makefile.in (install-gdbtk): Create insight plugin directory.
2276 Install plugins.tcl file.
2277
2278 2002-08-14 Keith Seitz <keiths@redhat.com>
2279
2280 * configure.in: Move SUBDIRS to near top of the file so that
2281 --enable options may add things to it.
2282 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
2283 * configure: Regenerate.
2284
2285 2002-08-13 Michael Snyder <msnyder@redhat.com>
2286
2287 * mips-tdep.c (mips_o32o64_push_arguments): New function,
2288 cloned from mips_push_arguments, tuned for o32/o64 ABI.
2289 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
2290
2291 2002-08-13 Andrew Cagney <ac131313@redhat.com>
2292
2293 * vax-tdep.c (vax_get_saved_register): Delete function.
2294 (vax_gdbarch_init): Update.
2295 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
2296 (ns32k_gdbarch_init): Update.
2297 * alpha-tdep.c (alpha_get_saved_register): Delete function.
2298 (alpha_gdbarch_init): Update.
2299
2300 2002-08-13 Andrew Cagney <cagney@redhat.com>
2301
2302 * regcache.c (init_regcache_descr): Overallocate the
2303 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
2304 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
2305 nr_raw_registers.
2306 (set_register_cached): Add range checking assertions. Use
2307 current_regcache.
2308
2309 2002-08-13 Mark Kettenis <kettenis@gnu.org>
2310
2311 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
2312 numbers for MMX registers.
2313
2314 2002-08-13 Andrew Cagney <cagney@redhat.com>
2315
2316 * i386-tdep.c (i386_gdbarch_init): Use
2317 generic_unwind_get_saved_register.
2318
2319 2002-08-13 Kevin Buettner <kevinb@redhat.com>
2320
2321 * procfs.c (procfs_can_use_hw_breakpoint): New function.
2322 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
2323 target vector.
2324 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
2325 Delete. Add comment regarding this now-deleted target method.
2326
2327 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2328
2329 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
2330 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
2331 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
2332 real PC and the page number (if it's within the memory bank window).
2333 (m68hc11_pseudo_register_write): Likewise when saving.
2334 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
2335 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
2336 (m68hc11_register_raw_size): And use 32-bit for it.
2337 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
2338 16K memory bank is used by the prog; also use the virtual pc.
2339
2340 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2341
2342 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
2343 (m68hc11_gdbarch_init): Install it in gdbarch.
2344 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
2345 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
2346 (MSYMBOL_SIZE): New for documentation.
2347 (insn_return_kind): Enum to specify how a function returns.
2348 (frame_extra_info): Cleanup and record the return mode.
2349 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
2350 register in address computation.
2351 (m68hc11_get_return_insn): New to obtain the return instruction used
2352 by the function.
2353 (m68hc11_frame_init_saved_regs): Take into account the return
2354 instruction used by the function for far and interrupt functions.
2355 (m68hc11_init_extra_frame_info): Take into account page register.
2356 (m68hc11_frame_args_address): Adjust according to the return mode.
2357 (show_regs): Print page register only when it's used.
2358
2359 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2360
2361 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
2362 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
2363 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
2364 registers.
2365 (m68hc11_register_raw_size): Likewise.
2366
2367 2002-08-13 Andrew Cagney <cagney@redhat.com>
2368
2369 * i386-tdep.c (i386_register_name): Handle mmx registers.
2370 (mmx_regnum_p): New function.
2371 (i386_mmx_names): New array.
2372 (mmx_num_regs): New variable.
2373 (i386_pseudo_register_read): New function.
2374 (i386_pseudo_register_write): New function.
2375 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
2376
2377 * regcache.c (regcache_raw_read_unsigned): New function.
2378 (regcache_raw_read_signed): New function.
2379 * regcache.h (regcache_raw_read_unsigned): Declare.
2380 (regcache_raw_read_signed): Declare.
2381
2382 2002-08-13 Andrew Cagney <cagney@redhat.com>
2383
2384 * regcache.c (regcache_raw_read_as_address): Delete function.
2385 (regcache_cooked_read_signed): New function.
2386 (regcache_cooked_read_unsigned): New function.
2387 * regcache.h (regcache_cooked_read_signed): Declare.
2388 (regcache_cooked_read_unsigned): Declare.
2389 (regcache_raw_read_as_address): Delete declaration.
2390
2391 * blockframe.c (generic_read_register_dummy): Use
2392 regcache_cooked_read_unsigned.
2393 * i386-tdep.c (i386_extract_struct_value_address): Use
2394 regcache_cooked_read_unsigned.
2395
2396 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2397
2398 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
2399 double sizes according to ELF ABI flags.
2400 (gdbarch_tdep): Record elf_flags.
2401
2402 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2403
2404 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
2405 (m6812_prolog): They can appear in 68HC12 function prologue.
2406 (m68hc11_frame_chain): Cleanup.
2407
2408 2002-08-12 Andrew Cagney <cagney@redhat.com>
2409
2410 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
2411 declarations.
2412 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
2413 (i386_linux_register_raw_size): Delete function.
2414 (i386_linux_init_abi): Update.
2415 * i386-tdep.c (i386_register_raw_size): Delete function.
2416 (i386_register_byte): Delete function.
2417 (i386_gdbarch_init): Update.
2418 (i386_register_size): Delete array.
2419 (i386_register_offset): Delete array.
2420
2421 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
2422 (REGISTER_RAW_SIZE): Delete macro.
2423 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
2424 (REGISTER_BYTE): Delete macro.
2425
2426 2002-08-11 Aidan Skinner <aidan@velvet.net>
2427
2428 * ada-lang.c (ada_lookup_partial_symbol)
2429 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
2430 prototype names so that grep ^func works properly.
2431
2432 * ada-lang.c (ada_array_element_type)
2433 (ada_lookup_partial_symbol): Fix typos in parameter list.
2434
2435 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
2436 Fix prototype names so that grep ^func works properly.
2437
2438 2002-08-10 Andrew Cagney <cagney@redhat.com>
2439 Elena Zannoni <ezannoni@redhat.com>
2440 Martin M. Hunt <hunt@redhat.com>
2441
2442 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
2443 (build_builtin_type_vec128i): Set the vector bit.
2444 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
2445 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
2446 (build_builtin_type_vec64): New function.
2447 (build_builtin_type_vec64i): New function.
2448 (build_gdbtypes): Initialize builtin_type_vec64 and
2449 builtin_type_vec64i.
2450
2451 2002-08-09 Andrew Cagney <cagney@redhat.com>
2452
2453 * regcache.c (regcache_dump): Compare the register offset
2454 with REGISTER_BYTE.
2455 * arch-utils.c (generic_register_byte): New function.
2456 * arch-utils.h (generic_register_byte): Declare.
2457 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
2458 * gdbarch.h, gdbarch.c: Regenerate.
2459
2460 2002-08-09 Andrew Cagney <cagney@redhat.com>
2461
2462 * regcache.c: Include "gdbcmd.h"
2463 (_initialize_regcache): Add commands "maintenance print
2464 registers", "maintenance print raw-registers" and "maintenance
2465 print cooked-registers".
2466 (enum regcache_dump_what): Define.
2467 (dump_endian_bytes): New function.
2468 (regcache_dump): New function.
2469 (regcache_print): New function.
2470 (maintenance_print_registers): New function.
2471 (maintenance_print_raw_registers): New function.
2472 (maintenance_print_cooked_registers): New function.
2473 * Makefile.in (regcache.o): Update dependencies.
2474
2475 2002-08-09 Michael Snyder <msnyder@redhat.com>
2476
2477 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
2478 (mips_push_arguments): Correct some comments. Use paddr_nz
2479 for printing addresses in debug output. Replace static
2480 allocation using MAX_REGISTER_RAW_SIZE with alloca.
2481 (mips_n32n64_push_arguments): New function, cloned from
2482 mips_push_arguments and tuned for the n32/n64 ABI.
2483 (mips_push_register): Buffer needs dynamic allocation.
2484 (mips_print_register): Ditto.
2485 (do_gp_register_row): Ditto.
2486 (mips_store_return_value): Ditto.
2487 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
2488
2489 2002-08-09 Don Howard <dhoward@redhat.com>
2490
2491 * memattr.c (mem_info_command): Print special case of upper bound
2492 as max CORE_ADDR + 1.
2493
2494 2002-08-08 Michael Snyder <msnyder@redhat.com>
2495
2496 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
2497 returns structs by ref if they're too big to fit in two registers.
2498
2499 2002-08-09 Kevin Buettner <kevinb@redhat.com>
2500
2501 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
2502 saved regs value.
2503 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
2504 mips_find_saved_regs().
2505 (mips_pop_frame): Likewise.
2506
2507 2002-08-09 Kevin Buettner <kevinb@redhat.com>
2508
2509 * blockframe.c (frame_saved_regs_register_unwind): Revise
2510 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
2511 frames are in use.
2512
2513 2002-08-09 Grace Sainsbury <graces@redhat.com>
2514
2515 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
2516 T-packets; the 'a' is not taken as a register number.
2517 (remote_check_watch_resources, remote_stopped_by_watchpoint)
2518 (remote_stopped_data_address): New functions; add to target
2519 vector.
2520 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
2521 prototypes to match other implementations of this
2522 function. replace integer argument with pointer -- the length
2523 field in the Z-packet is the length of what is pointed to or 1 if
2524 pointer is null. Add to target vector.
2525 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
2526 target vector.
2527
2528 From Mark Salter:
2529 * remote.c (remote_wait): Add support to extract optional
2530 watchpoint information from T-packet. Ignore unrecognized
2531 optional info in T-packet.
2532 (remote_async_wait): Ditto.
2533
2534 2002-08-09 Corinna Vinschen <vinschen@redhat.com>
2535
2536 * cli/cli-dump.c: Change fopen modes to use binary open modes
2537 as defined in include/fopen-bin.h throughout.
2538
2539 2002-08-08 Michael Snyder <msnyder@redhat.com>
2540
2541 * mips-tdep.c: Minor whitespace and indentation clean-ups.
2542
2543 2002-08-08 Kevin Buettner <kevinb@redhat.com>
2544
2545 * doublest.c (store_floating): Avoid floatformat_from_doublest()
2546 assertion failure by returning early after a warning.
2547
2548 2002-08-08 Kevin Buettner <kevinb@redhat.com>
2549
2550 * mips-tdep.c (mips_find_saved_regs): Make static.
2551 (mips_frame_init_saved_regs): New function.
2552 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
2553 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
2554 (mips_find_saved_regs): Delete declaration.
2555
2556 2002-08-08 Grace Sainsbury <graces@redhat.com>
2557
2558 * remote.c (remote_wait, remote_async_wait): Change
2559 thread_num from int to ULONGEST.
2560 (unpack_varlen_hex): Change result parameter from
2561 int * to ULONGEST *.
2562
2563 2002-08-08 Andrew Cagney <ac131313@redhat.com>
2564
2565 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
2566 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
2567 powerpc*-*-*.
2568 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
2569
2570 2002-08-08 Andrew Cagney <cagney@redhat.com>
2571
2572 * gcore.c (override_derive_stack_segment): Delete variable.
2573 (preempt_derive_stack_segment): Delete function.
2574 (derive_stack_segment): Delete function.
2575 (default_derive_stack_segment): Renamed to derive_stack_segment.
2576 (override_derive_heap_segment): Delete variable.
2577 (preempt_derive_heap_segment): Delete function.
2578 (derive_heap_segment): Delete function.
2579 (default_derive_heap_segment): Rename to derive_heap_segment.
2580
2581 2002-08-06 Michael Snyder <msnyder@redhat.com>
2582
2583 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
2584 * mips-tdep.c (mips_EABI_use_struct_convention,
2585 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
2586 New functions. (mips_use_struct_convention): Delete.
2587 (mips_gdbarch_init): set use_gdbarch_convention.
2588
2589 2002-08-06 Michael Snyder <msnyder@redhat.com>
2590
2591 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
2592 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
2593 mips_o32_reg_struct_has_addr): New functions.
2594 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
2595
2596 2002-08-07 Andrew Cagney <ac131313@redhat.com>
2597
2598 * regcache.c (pseudo_register): Delete function.
2599 (fetch_register): Delete function.
2600 (store_register): Delete function.
2601 (regcache_raw_read, legacy_read_register_gen): Use
2602 target_fetch_registers instead of fetch_register.
2603 (legacy_write_register_gen, regcache_raw_write): Use
2604 target_store_register instead of store_register.
2605 (write_register_bytes): Ditto.
2606
2607 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
2608 (STORE_PSEUDO_REGISTER): Delete.
2609 * gdbarch.h, gdbarch.c: Regenerate.
2610
2611 2002-08-06 Corinna Vinschen <vinschen@redhat.com>
2612
2613 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
2614 write dump file binary.
2615
2616 2002-08-05 Michael Snyder <msnyder@redhat.com>
2617
2618 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
2619 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
2620 (mips_gdbarch_init): Set N32 target to be mips64.
2621
2622 2002-08-06 Kevin Buettner <kevinb@redhat.com>
2623
2624 * frame.c (find_saved_register): Break out of loop once saved
2625 register address is found. Don't mention sparc in loop comment
2626 anymore.
2627
2628 2002-08-06 Kevin Buettner <kevinb@redhat.com>
2629
2630 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
2631 mips_default_saved_regsize to 8.
2632
2633 2002-08-06 Andrew Cagney <ac131313@redhat.com>
2634
2635 * gcore.c: Do not include <sys/procfs.h>.
2636 * Makefile.in (gcore.o): Update dependencies.
2637
2638 2002-08-06 Andrew Cagney <cagney@redhat.com>
2639
2640 * configure.tgt: Make arc-*-* obsolete.
2641 * NEWS: Mention that arc-*-* has been identifed as obsolete.
2642 * MAINTAINERS: Make arc-elf obsolete.
2643 * arc-tdep.c: Make file obsolete.
2644 * config/arc/arc.mt: Ditto.
2645 * config/arc/tm-arc.h: Ditto.
2646
2647 2002-08-05 Theodore A. Roth <troth@verinet.com>
2648
2649 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
2650
2651 2002-08-05 Andrew Cagney <ac131313@redhat.com>
2652
2653 * mcore-tdep.c (mcore_gdbarch_init): Use
2654 generic_unwind_get_saved_register instead of
2655 generic_get_saved_register.
2656 * v850-tdep.c (v850_gdbarch_init): Ditto.
2657 * frv-tdep.c (frv_gdbarch_init): Ditto.
2658 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2659 * s390-tdep.c (s390_gdbarch_init): Ditto.
2660 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2661 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
2662 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
2663
2664 2002-08-05 Joel Brobecker <brobecker@gnat.com>
2665
2666 * objfiles.h: Add missing #include "symfile.h"
2667
2668 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
2669
2670 2002-08-04 Andrew Cagney <ac131313@redhat.com>
2671
2672 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
2673 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
2674 of FIELD_BITSIZE.
2675
2676 2002-08-04 Daniel Jacobowitz <drow@mvista.com>
2677
2678 * NEWS: Cleanup and nitpick.
2679
2680 2002-08-03 Andrew Cagney <ac131313@redhat.com>
2681
2682 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
2683
2684 2002-08-03 Andrew Cagney <ac131313@redhat.com>
2685
2686 * Makefile.in (gdbtk-bp.o): Update dependencies.
2687 (gdbtk-register.o): Ditto.
2688 (gdbtk-varobj.o): Ditto.
2689
2690 2002-08-03 Andrew Cagney <cagney@redhat.com>
2691
2692 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
2693 m68hc11_fetch_pseudo_register.
2694 (m68hc11_pseudo_register_write): Replace
2695 m68hc11_store_pseudo_register.
2696 (m68hc11_gdbarch_init): Update.
2697
2698 Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
2699
2700 * gdbarch.sh: Include "gdb_string.h".
2701 * gdbarch.c: Regenerate.
2702
2703 * regcache.c: Include "gdb_string.h".
2704 * ax-general.c: Ditto.
2705 * varobj.c: Ditto.
2706 * std-regs.c: Ditto.
2707 * fbsd-proc.c: Ditto.
2708 * thread.c: Ditto.
2709
2710 * Makefile.in (regcache.o): Update dependencies.
2711 (thread.o, gdbarch.o): Ditto.
2712 (ax-general.o, gdbarch.o): Ditto.
2713 (varobj.o, std-regs.o): Ditto.
2714 (fbsd-proc.o): Specify dependencies.
2715
2716 2002-08-02 Andrew Cagney <cagney@redhat.com>
2717
2718 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
2719 regnum.
2720 (regcache_cooked_write): Ditto.
2721
2722 2002-08-02 Andrew Cagney <ac131313@redhat.com>
2723
2724 * regcache.c (regcache_cooked_read): New function.
2725 (regcache_cooked_write): New function.
2726 (read_register_gen): Rewrite using regcache_cooked_read.
2727 (write_register_gen): Rewrite using regcache_cooked_write.
2728
2729 * regcache.h (regcache_cooked_read, regcache_cooked_write):
2730 Declare.
2731
2732 2002-08-02 Andrew Cagney <cagney@redhat.com>
2733
2734 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
2735 Replace the architecture methods register_read and register_write.
2736 * gdbarch.h, gdbarch.c: Regenerate.
2737 * regcache.c (init_regcache_descr): Update.
2738 (read_register_gen): Update.
2739 (write_register_gen): Update.
2740 (supply_register): Update comment.
2741
2742 * sh-tdep.c (sh_gdbarch_init): Update.
2743 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
2744 `regcache' and `gdbarch' parameters. Make `buffer' a void
2745 pointer. Update code.
2746 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
2747 `regcache' and `gdbarch' parameters. Make `buffer' a constant
2748 void pointer. Update code.
2749 (sh64_register_write): Delete.
2750 (sh4_register_read): Delete.
2751 (sh64_register_read): Delete.
2752 (sh4_register_write): Delete.
2753 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
2754 void pointer, `to' parameter a void pointer.
2755 (sh_sh64_register_convert_to_raw): Ditto.
2756
2757 2002-08-01 Kevin Buettner <kevinb@redhat.com>
2758
2759 * mips-tdep.c (mips_register_virtual_type): Use architecture
2760 invariant return values.
2761
2762 2002-08-01 Andrew Cagney <cagney@redhat.com>
2763
2764 * linux-proc.c: Include "gdb_string.h".
2765 * Makefile.in (linux-proc.o): Update dependency list.
2766
2767 2002-08-01 Kevin Buettner <kevinb@redhat.com>
2768
2769 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
2770 comment.
2771
2772 2002-08-01 Grace Sainsbury <graces@redhat.com>
2773
2774 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
2775 to_insert_watchpoint, to_remove_watchpoint,
2776 to_stopped_by_watchpoint, to_stopped_data_address,
2777 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
2778 target vecctor. Define their corresponding macros so they call
2779 them.
2780
2781 * target.c: Add default and debug versions of for
2782 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
2783 to_insert_watchpoint, to_remove_watchpoint,
2784 to_stopped_by_watchpoint, to_stopped_data_address,
2785 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
2786
2787 2002-08-01 Kevin Buettner <kevinb@redhat.com>
2788
2789 * mips-tdep.c (mips_register_virtual_type): New function.
2790 (mips_gdbarch_init): Register mips_register_virtual_type()
2791 with gdbarch machinery.
2792 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
2793 this file instead of tm-bigmips.h.
2794 (MIPS_REGSIZE): Delete this macro.
2795 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
2796 multiarch version in mips-tdep.c will be found.
2797
2798 2002-08-01 Andrew Cagney <cagney@redhat.com>
2799
2800 * NEWS: Menion that CHILL has been made obsolete.
2801
2802 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
2803 * stabsread.c (read_range_type): Ditto.
2804 * gdbtypes.h: Ditto.
2805 * language.c (binop_type_check): Ditto.
2806 (binop_result_type): Ditto.
2807 (integral_type): Ditto.
2808 (character_type): Ditto.
2809 (string_type): Ditto.
2810 (boolean_type): Ditto.
2811 (structured_type): Ditto.
2812 (lang_bool_type): Ditto.
2813 (binop_type_check): Ditto.
2814 * language.h (_LANG_chill): Ditto.
2815 * dwarfread.c (set_cu_language): Ditto.
2816 * dwarfread.c (CHILL_PRODUCER): Ditto.
2817 * dwarfread.c (handle_producer): Ditto.
2818 * expression.h (enum exp_opcode): Ditto.
2819 * eval.c: Ditto for comments.
2820 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
2821 * expprint.c (print_subexp): Ditto.
2822 (print_subexp): Ditto.
2823 * valops.c (value_cast): Ditto.
2824 (search_struct_field): Ditto.
2825 * value.h (COERCE_VARYING_ARRAY): Ditto.
2826 * symfile.c (init_filename_language_table): Ditto.
2827 (add_psymbol_with_dem_name_to_list): Ditto.
2828 * valarith.c (value_binop): Ditto.
2829 (value_neg): Ditto.
2830 * valops.c (value_slice): Ditto.
2831 * symtab.h (union language_specific): Ditto.
2832 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
2833 (SYMBOL_DEMANGLED_NAME): Ditto.
2834 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
2835 * defs.h (enum language): Ditto.
2836 * symtab.c (got_symtab): Ditto.
2837 * utils.c (fprintf_symbol_filtered): Ditto.
2838
2839 * ch-typeprint.c: Make file obsolete.
2840 * ch-valprint.c: Make file obsolete.
2841 * ch-lang.h: Make file obsolete.
2842 * ch-exp.c: Make file obsolete.
2843 * ch-lang.c: Make file obsolete.
2844
2845 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
2846 CHILL_LIB.
2847 (TARGET_FLAGS_TO_PASS): Ditto.
2848 (CHILLFLAGS): Obsolete.
2849 (CHILL): Obsolete.
2850 (CHILL_FOR_TARGET): Obsolete.
2851 (CHILL_LIB): Obsolete.
2852 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
2853 ch-valprint.c.
2854 (HFILES_NO_SRCDIR): Remove ch-lang.h.
2855 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
2856 ch-lang.o.
2857 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
2858 targets.
2859
2860 2002-07-31 Joel Brobecker <brobecker@gnat.com>
2861
2862 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
2863 This does not change anything at the moment, but will be helpful
2864 later when full Ada support is integrated.
2865
2866 2002-07-31 Kevin Buettner <kevinb@redhat.com>
2867
2868 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
2869 help message.
2870
2871 2002-07-31 Kevin Buettner <kevinb@redhat.com>
2872
2873 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
2874 and save it in a local variable. Use variable in later test.
2875
2876 2002-07-31 Kevin Buettner <kevinb@redhat.com>
2877
2878 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
2879 test. (Thanks to Daniel Jacobowitz.)
2880
2881 2002-07-31 Kevin Buettner <kevinb@redhat.com>
2882
2883 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
2884 (mips_abi_strings): Add "n64".
2885 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
2886
2887 2002-07-31 Kevin Buettner <kevinb@redhat.com>
2888
2889 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
2890 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
2891
2892 2002-07-31 Kevin Buettner <kevinb@redhat.com>
2893
2894 * utils.c (host_pointer_to_address, address_to_host_pointer):
2895 Use gdb_assert() instead of explicit call to internal_error().
2896
2897 2002-07-30 Kevin Buettner <kevinb@redhat.com>
2898
2899 * Makefile.in (rs6000-nat.o): Update dependencies.
2900
2901 From Nicholas Duffek:
2902 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
2903 (aix-thread.o): New rule.
2904 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
2905 * config/powerpc/aix432.mh: New file.
2906
2907 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
2908
2909 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
2910 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
2911 (fetch_core_registers, ppc_linux_supply_gregset)
2912 (ppc_linux_supply_fpregset): New functions.
2913 (ppc_linux_regset_core_fns): New.
2914 (_initialize_ppc_linux_tdep): Call add_core_fns.
2915 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
2916 and ppc_linux_supply_gregset.
2917 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
2918 (supply_fpregset): Call ppc_linux_supply_fpregset.
2919 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
2920 corelow.o.
2921 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
2922
2923 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
2924
2925 * symtab.c (lookup_symbol): Demangle before lowercasing.
2926
2927 2002-07-30 Andrew Cagney <ac131313@redhat.com>
2928
2929 * symtab.h: Replace #include "gdb_obstack.h" with opaque
2930 declaration.
2931 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
2932 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
2933 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
2934 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
2935 "gdb_string.h".
2936 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
2937 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
2938 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
2939 (avr-tdep.o, mon960-rom.o): Ditto.
2940 (aout_stabs_gnu_h): Define.
2941 (symtab_h): Remove $(gdb_obstack_h).
2942
2943 2002-07-30 Jim Blandy <jimb@redhat.com>
2944
2945 Patch from David Carlton <carlton@math.stanford.edu>:
2946 * gdbinit.in: Move the `dir' commands that add GDB's own source
2947 directory to the search path to the end, so that the `gdb' source
2948 directory will be searched first.
2949
2950 2002-07-29 Andrew Cagney <ac131313@redhat.com>
2951
2952 * gdb_obstack.h: New file.
2953 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
2954 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
2955 * objfiles.h: Include "gdb_obstack.h".
2956 * Makefile.in (gdb_obstack_h): Define.
2957 (symtab_h): Add $(gdb_obstack_h).
2958 (objfiles_h): Add $(gdb_obstack_h).
2959
2960 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
2961 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
2962 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
2963 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
2964 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
2965 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
2966 * symfile.c, coffread.c, c-typeprint.c: Ditto.
2967 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
2968
2969 * Makefile.in (bcache.o): Update dependencies.
2970 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
2971 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
2972 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
2973 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
2974 (stabsread.o, symfile.o, symmisc.o): Ditto.
2975 (symtab.o, typeprint.o, macroexp.o): Ditto.
2976 (macrotab.o, mdebugread.o): Ditto.
2977 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
2978 (coff_ecoff_h, aout_aout64_h): Define.
2979 (aout_stabs_gnu_h, libaout_h): Define.
2980
2981 2002-07-29 Andrew Cagney <cagney@redhat.com>
2982
2983 * regcache.c (struct regcache_descr): Rename nr_registers to
2984 nr_cooked_registers. Revise comments describing the structure
2985 member fields.
2986 (init_regcache_descr): Update.
2987 (init_legacy_regcache_descr): Update.
2988 (read_register_gen, write_register_gen): When a cooked register in
2989 the raw register range, directly access the value from the raw
2990 register cache.
2991
2992 2002-07-29 Andrew Cagney <ac131313@redhat.com>
2993
2994 * z8k-tdep.c: Do not include "obstack.h".
2995 * h8300-tdep.c, h8500-tdep.c: Ditto.
2996 * m68hc11-tdep.c, sh-tdep.c: Ditto.
2997 * valprint.c, v850-tdep.c: Ditto.
2998 * d10v-tdep.c, mn10300-tdep.c: Ditto.
2999 * mn10200-tdep.c: Ditto.
3000
3001 * Makefile.in (z8k-tdep.o): Update dependencies.
3002 (m68hc11-tdep.o, valprint.o): Ditto.
3003 (v850-tdep.o, d10v-tdep.o): Ditto.
3004 (mn10300-tdep.o, sparc-tdep.o): Ditto.
3005 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
3006 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
3007 (sh_opc_h, gdb_sim_sh_h): Define.
3008 (elf_sh_h, elf_bfd_h): Define.
3009 (opcode_m68hc11_h): Define.
3010 (OPCODES_SRC, OPCODES_DIR): define.
3011 (OPCODES): Use $(OPCODES_DIR).
3012 (gdb_sim_d10v_h): Rename sim_d10v_h.
3013 (gdb_sim_arm_h): Rename sim_arm_h.
3014
3015 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3016
3017 * utils.c (host_pointer_to_address, address_to_host_pointer):
3018 Change internal_error() message to indicate function responsible
3019 for the error.
3020
3021 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3022
3023 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
3024 calls to local_hex_string_custom().
3025
3026 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3027
3028 * irix5-nat.c: Move IRIX shared library support from here...
3029 * solib-irix.c: ...to here. Revised substantially to work with
3030 generic solib framework.
3031
3032 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
3033 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
3034 * mips-irix-tdep.c: New file.
3035
3036 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
3037 (mips-irix-tdep.o, solib-irix.o): New rules.
3038 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
3039 solib-irix.o.
3040 * config/mips/irix6.mt (TDEPFILES): Likewise.
3041 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
3042
3043 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3044
3045 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
3046 disabled (via ``#if 0'') includes.
3047
3048 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3049
3050 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
3051 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
3052 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
3053 Add support for the fpscr register.
3054 * rs6000-nat.c (regmap, fetch_inferior_registers)
3055 (store_inferior_registers, fetch_core_registers): Likewise.
3056
3057 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3058
3059 * rs6000-nat.c (language.h): Include.
3060 (special_regs): Delete this array.
3061 (regmap): New function.
3062 (fetch_register, store_register): Use regmap() to map gdb
3063 register numbers to ptrace register numbers. Also, use
3064 outputs from regmap() to make decisions regarding type of
3065 ptrace() call to make. In particular, don't compare against
3066 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
3067 (fetch_inferior_registers, store_inferior_registers): Where
3068 possible, obtain register numbers from tdep struct. Don't
3069 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
3070 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
3071 (LAST_UISA_SP_REGNUM): Delete.
3072
3073 2002-07-25 Kevin Buettner <kevinb@redhat.com>
3074
3075 * rs6000-nat.c (ppc-tdep.h): Include.
3076 (fetch_registers, store_register, fetch_core_registers): Don't
3077 access registers[] directly. Instead, use supply_register() or
3078 regcache_collect() as appropriate.
3079 (find_toc_address): Format hex address with local_hex_string().
3080
3081 2002-07-25 Andrew Cagney <ac131313@redhat.com>
3082
3083 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
3084 bfd/elf32-frv.c.
3085
3086 2002-07-24 Tom Tromey <tromey@redhat.com>
3087
3088 * jv-exp.y: Marked all strings with _().
3089 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
3090 internal_error.
3091 (MethodInvocation, CastExpression, parse_number, yyerror,
3092 java_type_from_name, push_expression_name, yylex): Typo fixes.
3093
3094 2002-07-24 Daniel Jacobowitz <drow@mvista.com>
3095
3096 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
3097 (tee_file_flush, tee_file_write, tee_file_fputs)
3098 (tee_file_isatty): New.
3099 * ui-file.h (tee_file_new): Add prototype.
3100
3101 2002-07-24 Aidan Skinner <aidan@velvet.net>
3102
3103 * ada-lang.c: Change k&r style function definitions to prototyped
3104 form.
3105 * ada-typeprint.c: Change k&r style function definitions to prototyped
3106 form.
3107 * ada-valprint.c: Change k&r style function definitions to prototyped
3108 form.
3109
3110 2002-07-24 Andrew Cagney <cagney@redhat.com>
3111
3112 * README: Remove reference to remote-bug.
3113 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
3114 remote-bug.c.
3115 (m88k-nat.o): Delete rule.
3116 (m88k-tdep.o): Delete rule.
3117 (remote-bug.o): Delete rule.
3118 * MAINTAINERS: Mark as obsolete.
3119 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
3120 * m88k-tdep.c: Make file obsolete.
3121 * config/m88k/m88k.mh: Ditto.
3122 * config/m88k/delta88v4.mh: Ditto.
3123 * config/m88k/delta88v4.mt: Ditto.
3124 * config/m88k/delta88.mt: Ditto.
3125 * config/m88k/delta88.mh: Ditto.
3126 * remote-bug.c: Ditto.
3127 * config/m88k/tm-delta88.h: Ditto.
3128 * config/m88k/nm-delta88v4.h: Ditto.
3129 * config/m88k/xm-delta88.h: Ditto.
3130 * config/m88k/xm-dgux.h: Ditto.
3131 * config/m88k/tm-m88k.h: Ditto.
3132 * config/m88k/nm-m88k.h: Ditto.
3133 * config/m88k/tm-delta88v4.h: Ditto.
3134 * m88k-nat.c: Ditto.
3135 * cxux-nat.c: Ditto.
3136 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
3137 and m88*-*-* obsolete.
3138 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
3139 m88*-*-* obsolete.
3140
3141 2002-07-24 Andrew Cagney <cagney@redhat.com>
3142
3143 * findvar.c (extract_unsigned_integer): Make `addr' parameter
3144 constant. Same for local pointer variables.
3145 (extract_signed_integer): Ditto.
3146 * defs.h (extract_unsigned_integer): Update.
3147 (extract_signed_integer): Update.
3148
3149 2002-07-24 Andrew Cagney <cagney@redhat.com>
3150
3151 * regcache.c (regcache_raw_write): Change buf parameter to a
3152 constant void pointer.
3153 (regcache_raw_read): Change buf parameter to a void pointer.
3154 (legacy_write_register_gen): Change myaddr parameter a constant
3155 void pointer.
3156 (supply_register): Change val parameter to a const void pointer.
3157 * regcache.h (regcache_raw_write): Update declaration.
3158 (regcache_raw_read): Update declaration.
3159 (supply_register): Update declaration.
3160
3161 2002-07-24 Tom Tromey <tromey@redhat.com>
3162
3163 * defs.h (gdb_readline_wrapper): Declare.
3164 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
3165 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
3166 * top.c (gdb_readline_wrapper): New function.
3167 (command_line_input): Use it.
3168
3169 2002-07-24 Andrew Cagney <cagney@redhat.com>
3170
3171 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
3172 regcache_read and regcache_write.
3173 (regcache_raw_read_as_address): Replace regcache_read_as_address.
3174 * regcache.c: Update.
3175 * sh-tdep.c (sh64_push_arguments): Update comment.
3176 (sh_pseudo_register_read): Update.
3177 (sh_pseudo_register_write): Update.
3178 (sh4_register_read): Update.
3179 (sh4_register_write): Update.
3180 (sh64_pseudo_register_read): Update.
3181 (sh64_pseudo_register_write): Update.
3182 (sh64_register_read): Update.
3183 (sh64_register_write): Update.
3184 * i386-tdep.c (i386_extract_return_value): Update.
3185 (i386_extract_struct_value_address): Update.
3186 (i386_extract_return_value): Update.
3187 * blockframe.c (generic_read_register_dummy): Update.
3188 (generic_call_dummy_register_unwind): Update
3189 * infrun.c (write_inferior_status_register): Update.
3190
3191 2002-07-23 Jim Blandy <jimb@redhat.com>
3192
3193 * parser-defs.h (expression_context_pc): Make this extern.
3194 (Thanks to Michael Snyder.)
3195
3196 2002-07-23 Andrew Cagney <ac131313@redhat.com>
3197
3198 GDB 5.2.1 released from 5.2 branch.
3199 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
3200 * README: Update to mention 5.2.1.
3201
3202 2002-07-23 Mark Salter <msalter@redhat.com>
3203
3204 * remote.c (remote_read_bytes): Fix check for error.
3205
3206 2002-07-22 Kevin Buettner <kevinb@redhat.com>
3207
3208 * aix-thread.c (language.h): Include.
3209 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
3210 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
3211 Print newlines at end of debug messages.
3212 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
3213 (pdc_write_data): Use local_hex_string() instead of %llx formats.
3214
3215 2002-07-22 Kevin Buettner <kevinb@redhat.com>
3216
3217 * aix-thread.c (ppc-tdep.h): Include.
3218 (special_register_p): New function.
3219 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
3220 (store_regs_user_thread): Use register number information from
3221 gdbarch_tdep struct instead of hardcoded offsets relative to
3222 FIRST_UISA_SP_REGNUM.
3223 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
3224 special_register_p() instead of using FPLAST_REGNUM and
3225 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
3226 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
3227 will be MQ's register number.
3228
3229 2002-07-22 Michael Snyder <msnyder@redhat.com>
3230
3231 * aix-thread.c (ops): Rename to aix_thread_ops.
3232 (base_ops): Rename to base_target.
3233 (ops_attach): Rename to aix_thread_attach.
3234 (ops_detach): Rename to aix_thread_detach.
3235 (ops_resume): Rename to aix_thread_detach.
3236 (ops_wait): Rename to aix_thread_wait.
3237 (ops_kill): Rename to aix_thread_kill.
3238 (init_ops): Rename to init_aix_thread_ops.
3239 (ops_fetch_register): Rename to aix_thread_fetch_register.
3240 (ops_store_register): Rename to aix_thread_store_register.
3241 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
3242 (ops_thread_alive): Rename to aix_thread_thread_alive.
3243 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
3244 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
3245 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
3246 (fetch_regs_lib): Rename to fetch_regs_user_thread.
3247 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
3248 (store_regs_lib): Rename to store_regs_user_thread.
3249 (store_regs_kern): Rename to store_regs_kernel_thread.
3250
3251 2002-07-22 Michael Snyder <msnyder@redhat.com>
3252
3253 * aix-thread.c (ops_prepare_to_store): Eliminate.
3254 (init_ops): Don't initialize ops.prepare_to_store.
3255 (store_regs_kern): Pre-fetch register buffers from child,
3256 because some registers may not be in the cache. Copy
3257 regs from register cache only if they are cached.
3258 (store_regs_lib): Copy regs from register cache only
3259 if they are cached.
3260 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
3261 fill_gprs64): Ditto.
3262
3263 2002-07-22 Kevin Buettner <kevinb@redhat.com>
3264
3265 * aix-thread.c (gdb_assert.h): Include.
3266 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
3267 register sizes (from register cache) match size of buffer holding
3268 register data.
3269 (fill_sprs32): Change parameter types to match those in the ptrace()
3270 buffer.
3271 (store_regs_lib): Likewise, but for 32-bit temporary variables.
3272 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
3273
3274 2002-07-22 Michael Snyder <msnyder@redhat.com>
3275
3276 * aix-thread.c (supply_sprs64): Cosmetic change.
3277 (supply_sprs32): Cosmetic change.
3278 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
3279 (fill_sprs64): Use regcache_collect instead of read_register.
3280 (store_regs_lib): Use regcache_collect instead of
3281 read_register. Use fill_sprs32 instead of fill_sprs64,
3282 if debugging a 32-bit architecture.
3283 (store_regs_kern): Use fill_gprs64 etc. to pull the values
3284 out of the register cache, instead of passing a pointer into
3285 the register cache directly to ptrace. Use regcache_collect
3286 insteaad of read_register.
3287 (ops_prepare_to_store): Use target_read_registers instead
3288 of read_register_bytes.
3289
3290 2002-07-20 Aidan Skinner <aidan@velvet.net>
3291
3292 * MAINTAINERS: Add self under write after approval.
3293
3294 2002-07-20 Aidan Skinner <aidan@velvet.net>
3295
3296 * ada-tasks.c: Change k&r style function definitions to prototyped
3297 form.
3298
3299 2002-07-19 Andrew Cagney <ac131313@redhat.com>
3300
3301 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
3302 * x86-64-tdep.c: Include "objfiles.h".
3303 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
3304 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
3305
3306 2002-07-17 Michal Ludvig <michal@suse.cz>
3307
3308 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
3309 (update_context): Initialise cfa variable.
3310
3311 2002-07-17 Michael Snyder <msnyder@redhat.com>
3312
3313 * aix-thread.c: Shorten some long lines.
3314 Bring comments into line with code spec.
3315
3316 2002-07-18 Joel Brobecker <brobecker@gnat.com>
3317
3318 * infrun.c: Re-indent using gdb_indent.sh.
3319
3320 2002-07-18 Joel Brobecker <brobecker@gnat.com>
3321
3322 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
3323 Leave the indentation temporarily untouched, to minimize the diffs.
3324
3325 2002-07-18 Elena Zannoni <ezannoni@redhat.com>
3326
3327 * stabsread.c: Make os9k sections of the code obsolete,
3328 for real this time.
3329 * stabsread.h: Make os9k sections of the code obsolete.
3330
3331 2002-07-18 Michal Ludvig <mludvig@suse.cz>
3332
3333 * linux-low.c (regsets_store_inferior_registers): Add free()
3334 at the end of a loop to prevent memory leak.
3335 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
3336 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
3337 * config/sparc/tm-sp64linux.h: Make the rest of #endif
3338 line a comment.
3339 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
3340
3341 2002-07-17 Jim Blandy <jimb@redhat.com>
3342
3343 * macrocmd.c (info_macro_command): Remove newline from error
3344 message.
3345
3346 2002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
3347
3348 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
3349 (sh_gdbarch_init): Use it for sh-dsp.
3350
3351 2002-07-16 Kevin Buettner <kevinb@redhat.com>
3352
3353 * dwarf2read.c (read_initial_length): Handle older, non-standard,
3354 64-bit DWARF2 format.
3355
3356 2002-07-16 Joel Brobecker <brobecker@gnat.com>
3357
3358 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
3359 <sys/proc.h> when not available.
3360
3361 2002-07-16 Andrew Cagney <ac131313@redhat.com>
3362
3363 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
3364 * stabsread.c: Make os9k sections of the code obsolete.
3365 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
3366 * config/i386/i386os9k.mt: Make file obsolete.
3367 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
3368 (COMMON_OBS): Remove os9kread.o
3369 (SFILES): Remove os9kread.c.
3370 (os9kread.o, remote-os9k.o): Make target obsolete.
3371 * remote-os9k.c: Make file obsolete.
3372 * os9kread.c: Make file obsolete.
3373 * Makefile.in
3374
3375 2002-07-16 Andrew Cagney <ac131313@redhat.com>
3376
3377 * NEWS: Mention that the FR30 has been made obsolete.
3378 * fr30-tdep.c: Make file obsolete.
3379 * config/fr30/tm-fr30.h: Ditto.
3380 * config/fr30/fr30.mt: Ditto.
3381 * configure.tgt: Make fr30-*-elf obsolete.
3382 * MAINTAINERS: Make fr30-elf obsolete.
3383
3384 2002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
3385
3386 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
3387 found is not inside a section.
3388
3389 2002-07-15 Kevin Buettner <kevinb@redhat.com>
3390
3391 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
3392 strerror().
3393 (pdc_realloc): Use xrealloc() instead of realloc().
3394
3395 2002-07-15 Kevin Buettner <kevinb@redhat.com>
3396
3397 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
3398 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
3399 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
3400 macros.
3401
3402 2002-07-15 Kevin Buettner <kevinb@redhat.com>
3403
3404 * aix-thread.c (ptrace_check): Eliminate goto.
3405 (sync_threadlists): Eliminate gotos. Also, fix array overrun
3406 problem.
3407
3408 2002-07-15 Kevin Buettner <kevinb@redhat.com>
3409
3410 * aix-thread.c (gdbcmd.h): Include.
3411 (DEBUG, DBG, DBG2, dbg): Eliminate.
3412 (debug_aix_thread): New static global.
3413 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
3414 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
3415 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
3416 invocations to DBG and DBG2 macros to test against
3417 ``debug_aix_thread'' and call fprintf_unfiltered().
3418 (_initialize_aix_thread): Add new command "set debug aix-thread".
3419
3420 2002-07-15 Andrew Cagney <ac131313@redhat.com>
3421
3422 From Gerhard Tonn <TON@de.ibm.com>:
3423 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
3424 instead of supply_register.
3425
3426 2002-07-15 Andrew Cagney <ac131313@redhat.com>
3427
3428 * dwarf2cfi.c: Include "gdb_assert.h".
3429 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
3430 non-NULL.
3431 (update_context): Do not use __func__. Add missing ``break''.
3432 (update_context): Do not use __func__.
3433
3434 2002-07-15 Elena Zannoni <ezannoni@redhat.com>
3435
3436 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
3437 and its setting. Set gdbarch instruction printing functions
3438 directly. For non-rs6000 case use new function
3439 gdb_print_insn_powerpc.
3440 (gdb_print_insn_powerpc): New function.
3441
3442 2002-07-13 Andrew Cagney <ac131313@redhat.com>
3443
3444 * NEWS: Mention that the d30v has been marked obsolete.
3445 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
3446 * configure.tgt: Mark d30v-*-* as obsolete.
3447 * d30v-tdep.c: Mark file as obsolete.
3448 * config/d30v/d30v.mt: Ditto.
3449 * config/d30v/tm-d30v.h: Ditto.
3450
3451 2002-07-13 Aidan Skinner <aidan@velvet.net>
3452
3453 * ada-tasks.c (add_task_entry): replace calls to
3454 malloc() with xmalloc
3455 * ada-tasks.c (init_task_list): replace calls to free with xfree()
3456
3457 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
3458 ada_finish_decode_line_1, all_sals_for_line
3459 ada_breakpoint_rewrite): replace calls to free() with xfree()
3460
3461 2002-07-12 Kevin Buettner <kevinb@redhat.com>
3462
3463 From Nicholas Duffek (with minor changes by Martin Hunt,
3464 Louis Hamilton, and Kevin Buettner):
3465 * aix-thread.c: New file.
3466
3467 2002-07-12 Petr Sorfa <petrs@caldera.com>
3468
3469 * dwarf2read.c (dwarf2_invalid_attrib_class): New
3470 complaint for invalid attribute class or form.
3471 (read_func_scope): DW_AT_frame_base
3472 better handling of DW_AT_block*.
3473 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
3474 better handling of DW_AT_block*.
3475 (read_common_block): DW_AT_location
3476 better handling of DW_AT_block*.
3477 (read_partial_die): DW_AT_location better handling
3478 of DW_AT_block*.
3479 (new_symbol): DW_AT_external better handling of
3480 DW_AT_block*. Proper initialization of variable
3481 "addr".
3482 (attr_form_is_block): New function that returns true
3483 if the attribute's form is of DW_FORM_block*.
3484
3485 2002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
3486
3487 * valops.c (find_method_list): Remove comment about
3488 removed STATIC_MEMFUNCP argument.
3489 (value_find_oload_method_list): Likewise.
3490
3491 2002-07-12 Kevin Buettner <kevinb@redhat.com>
3492
3493 From Nicholas Duffek:
3494 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
3495 target_new_objfile_hook.
3496
3497 2002-07-12 Kevin Buettner <kevinb@redhat.com>
3498
3499 From Nicholas Duffek:
3500 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
3501 csect.
3502
3503 2002-07-12 Andrew Cagney <cagney@redhat.com>
3504
3505 * MAINTAINERS: Mention --enable-sim-build-warnings.
3506 (m68hc11-elf): Disable sim build warnings.
3507 (m32r-elf): Mark as broken obsolete candidate.
3508 (x86_64-linux-gnu): Mark as buildable with -Werror.
3509 (arm-elf): Change -w to ``,'' which enables warnings but not
3510 -Werror.
3511
3512 2002-07-12 Andrew Cagney <ac131313@redhat.com>
3513
3514 * bcache.h: Update copyright.
3515 (struct bstring, struct bcache): Move definition to "bcache.c".
3516 Replaced by opaque declaration.
3517 (bcache_xfree): Replace free_bcache.
3518 (bcache_xmalloc, bcache_memory_used): Declare.
3519
3520 * bcache.c: Update copyright.
3521 (struct bstring, struct bcache): Moved to here from "bcache.h".
3522 Update comments.
3523 (bcache_xmalloc, bcache_memory_used): New functions.
3524 (bcache_xfree): Replace function free_bcache.
3525
3526 * Makefile.in (objfiles.o): Add $(bcache_h).
3527 (objfiles_h): Remove $(bcache_h).
3528 (symfile.o): Add $(bcache_h).
3529
3530 * symmisc.c: Update copyright.
3531 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
3532 (print_objfile_statistics): Use bcache_memory_used.
3533
3534 * symfile.c: Include "bcache.h".
3535 (reread_symbols): Use bcache_xfree.
3536 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
3537 (add_psymbol_to_list): Pass psymbol_cache by value.
3538 (add_psymbol_with_dem_name_to_list): Ditto.
3539
3540 * objfiles.h: Update copyright.
3541 (struct bcache): Declare opaque. Do not include "bcache.h".
3542 (struct objfile): Change psymbol_cache and macro_cache to ``struct
3543 bcache'' pointers.
3544 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
3545
3546 * objfiles.c: Include "bcache.h". Update copyright.
3547 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
3548 macro_cache.
3549 (free_objfile): Use bcache_xfree.
3550
3551 2002-07-11 Grace Sainsbury <graces@redhat.com>
3552
3553 * monitor.c (monitor_fetch_register): Make name a constant.
3554 (monitor_store_register): Same.
3555
3556 2002-07-11 Daniel Jacobowitz <drow@mvista.com>
3557
3558 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
3559 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
3560 (finish_block) For non-function blocks, hash the symbol table. For
3561 function blocks, mark the symbol table as unhashed.
3562 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
3563 (msymbol_hash_iw): Likewise.
3564 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
3565 value.
3566 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
3567 (lookup_minimal_symbol): Likewise for both.
3568 * symtab.h (struct block): Add `hashtable' flag. Comment the
3569 hashtable.
3570 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
3571 (ALL_BLOCK_SYMBOLS): Update.
3572 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
3573 (struct symbol): Add `hash_next' pointer.
3574 * symtab.c (lookup_block_symbol): Search using the hash table when
3575 possible.
3576 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
3577 (search_symbols, find_addr_symbol): Likewise.
3578
3579 * dstread.c (process_dst_block): Clear hashtable bit for new block.
3580 (read_dst_symtab): Likewise.
3581 * jv-lang.c (get_java_class_symtab): Likewise.
3582 * mdebugread.c: Include "gdb_assert.h".
3583 (shrink_block): Assert that the block being modified is not hashed.
3584 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
3585 * symmisc.c (free_symtab_block): Walk the hash table when freeing
3586 symbols.
3587 (dump_symtab): Recognize hashed blocks.
3588 * printcmd.c (print_frame_args): Assert that function blocks do not
3589 have hashed symbol tables.
3590 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
3591 (fill_in_ada_prototype, debug_print_block): Likewise.
3592 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
3593
3594 2002-07-11 Corinna Vinschen <vinschen@redhat.com>
3595
3596 * stack.c (print_frame): Use result of frame_address_in_block()
3597 instead of fi->pc when evaluating symbols.
3598 (backtrace_command_1): Ditto.
3599
3600 2002-07-11 Andrew Cagney <cagney@redhat.com>
3601
3602 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
3603 Make static.
3604
3605 * arm-tdep.c (arm_register_name): Make return type constant.
3606
3607 2002-07-10 Andrew Cagney <ac131313@redhat.com>
3608
3609 * win32-nat.c (has_detach_ability): Convert to strict ISO C
3610 prototype.
3611 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
3612 * s390-tdep.c (s390_fp_regnum): Ditto.
3613 (s390_read_fp): Ditto.
3614 (s390_pop_frame): Ditto.
3615 (_initialize_s390_tdep): Ditto.
3616 * remote.c (get_remote_state): Ditto.
3617 * procfs.c (mappingflags): Ditto.
3618 * memattr.c (_initialize_mem): Ditto.
3619 * mcore-tdep.c (mcore_pop_frame): Ditto.
3620 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
3621 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
3622 * language.c (set_case_str): Ditto.
3623 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
3624 * frv-tdep.c (new_variant): Ditto.
3625 (frv_stopped_data_address): Ditto.
3626 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
3627 (context_alloc): Ditto.
3628 (frame_state_alloc): Ditto.
3629 (unwind_tmp_obstack_init): Ditto.
3630 (unwind_tmp_obstack_free): Ditto.
3631 (cfi_read_fp): Ditto.
3632 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
3633 (cris_pop_frame): Ditto.
3634 * c-lang.c (scanning_macro_expansion): Ditto.
3635 (finished_macro_expansion): Ditto.
3636 (c_preprocess_and_parse): Ditto.
3637 * gdbarch.sh: Ditto.
3638 * gdbarch.h, gdbarch.c: Regenerate.
3639 * config/mn10200/tm-mn10200.h: Adjust indentation.
3640 * target.c: Adjust indentation.
3641 * symtab.h: Adjust indentation.
3642 * stabsread.h: Adjust indentation.
3643 * remote-es.c: Adjust indentation.
3644 * os9kread.c: Adjust indentation.
3645
3646 2002-07-10 Andrew Cagney <ac131313@redhat.com>
3647
3648 * wince.c (_initialize_wince): Rename _initialize_inftarg.
3649 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
3650
3651 2002-07-10 Grace Sainsbury <graces@redhat.com>
3652
3653 * NEWS: Mention m68k, mcore multi-arching.
3654 * MAINTAINERS: Change status of m68k, mcore to reflect
3655 multi-arching.
3656
3657 2002-07-10 Daniel Jacobowitz <drow@mvista.com>
3658
3659 * valops.c (find_overload_match): Free oload_syms.
3660
3661 2002-07-09 Joel Brobecker <brobecker@gnat.com>
3662
3663 Define HAVE_SYS_PROC_H if sys/proc.h exists
3664 * configure.in: Add check for sys/proc.h
3665 * config.in: Regenerate.
3666 * configure: Regenerate.
3667
3668 2002-07-09 Grace Sainsbury <graces@redhat.com>
3669
3670 * config/m68k/tm-m68k.h: Remove macros wrapped in
3671 #if !GDB_MULTI_ARCH.
3672
3673 2002-07-08 Andrew Cagney <ac131313@redhat.com>
3674
3675 * config.in, configure: Regenerate.
3676
3677 2002-07-08 Mark Kettenis <kettenis@gnu.org>
3678
3679 * dwarf2cfi.c: Include "gcore.h".
3680 (execute_stack_op): Fix implementation of the
3681 DW_OP_deref and DW_OP_deref_size operators by letting do their
3682 lookup in the target.
3683
3684 2002-07-07 Mark Kettenis <kettenis@gnu.org>
3685
3686 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
3687 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
3688 tdep->sc_sp_offset.
3689
3690 2002-07-05 Daniel Jacobowitz <drow@mvista.com>
3691
3692 Fix PR gdb/595, gdb/602
3693 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
3694 Don't call value_cast, just read the vtable pointer; update comments
3695 to match.
3696
3697 2002-07-05 Grace Sainsbury <graces@redhat.com>
3698
3699 * config/mcore/tm-mcore.h: Remove file.
3700 * config/mcore/mcore.mt: Remove definition of TM_FILE
3701 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
3702
3703 2002-07-05 Mark Kettenis <kettenis@gnu.org>
3704
3705 * i386bsd-tdep.c: Include "gdb_string.h".
3706
3707 2002-07-04 Grace Sainsbury <graces@redhat.com>
3708
3709 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
3710 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
3711 mcore-tdep.
3712 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
3713 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
3714 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
3715 (RETVAL_REGNUM): Move macros from tm-mcore.h
3716 (mcore_reg_struct_has_addr): New function.
3717 (mcore_gdbarch_init): Added initializations for the macros removed
3718 from tm-mcore.h.
3719
3720 2002-07-04 Mark Kettenis <kettenis@gnu.org>
3721
3722 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
3723 traditonal string branding within the ELF header.
3724
3725 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
3726
3727 * symtab.c (remove_params): New function.
3728 (make_symbol_overload_list): Use it instead of cplus_demangle.
3729 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
3730
3731 2002-07-04 Mark Kettenis <kettenis@gnu.org>
3732
3733 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
3734
3735 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
3736 New variables.
3737 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
3738 and tdep->sigtramp_end.
3739 * i386obsd-nat.c: New file.
3740 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
3741
3742 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
3743 Don't call get_current_frame().
3744
3745 2002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
3746
3747 * i386-nat.c (child_post_startup_inferior): New function
3748 calling i386_cleanup_dregs if
3749 I386_USE_GENERIC_WATCHPOINTS is defined.
3750 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
3751 conditional to acknowledge that i386-nat.c has its
3752 own child_post_startup_inferior function.
3753
3754 2002-07-04 Mark Kettenis <kettenis@gnu.org>
3755
3756 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
3757 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
3758 instead of MAX_REGISTER_RAW_SIZE.
3759 (i386_extract_return_value, i386_extract_struct_value_address):
3760 Convert to use regcache.
3761 (i386_gdbarch_init): Set max_register_raw_size and
3762 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
3763 Set extract_return_value and extract_struct_value_address instead
3764 of their deprecated variants.
3765
3766 Convert i386 target to generic dummy frames.
3767 * i386-tdep.c: Include "symfile.h".
3768 (i386_frameless_signal_p): Consider a function to be frameless if
3769 the pc points at the first instruction of the function.
3770 (i386_frame_chain): Handle (generic) call dummies.
3771 (i386_frame_saved_pc): Likewise.
3772 (i386_frame_init_saved_regs): Remove code dealing with call
3773 dummies on the stack.
3774 (i386_push_dummy_frame): Removed.
3775 (i386_call_dummy_words): Removed.
3776 (i386_fix_call_dummy): Removed.
3777 (i386_push_return_address): New function.
3778 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
3779 parameter, and don't call get_current_frame.
3780 (i386_pop_frame): New function.
3781 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
3782 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
3783 entry_point_address, set call_dummy_breakpoint_offset to 0, set
3784 call_dummy_length to 0, set call_dummy_words to NULL, set
3785 sizeof_call_dummy_words to 0, set fix_call_dummy to
3786 generic_fix_call_dummy, set pc_in_call_dummy to
3787 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
3788 generic_push_dummy_frame, set push_return_address to
3789 i386_push_return_address and set frame_chain_valid to
3790 generic_file_frame_chain_valid.
3791
3792 2002-07-03 Andrew Cagney <ac131313@redhat.com>
3793
3794 * gdbarch.sh (struct regcache): Add opaque declaration.
3795 (EXTRACT_RETURN_VALUE): New architecture method.
3796 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
3797 * gdbarch.h, gdbarch.c: Regenerate.
3798 * arch-utils.c (legacy_extract_return_value): New function.
3799 * arch-utils.h (legacy_extract_return_value): Declare.
3800 * values.c (value_being_returned): Re-enable code handling
3801 EXTRACT_STRUCT_VALUE_ADDRESS. Move
3802 deprecated_grub_regcache_for_registers call to block handling
3803 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
3804 (EXTRACT_RETURN_VALUE): Do not define.
3805
3806 2002-07-03 Grace Sainsbury <graces@redhat.com>
3807
3808 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
3809 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
3810 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
3811 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
3812 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
3813 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
3814 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
3815 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
3816 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
3817 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
3818 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
3819 argument so the function fits the prototype in the architecture
3820 vector.
3821 (mcore_pop_frame): Remove argument so the function fits the
3822 prototype. Use get_current_frame instead of the argument.
3823 (mcore_push_arguments): Change type of struct_return so the
3824 function can be used in the architecture vector.
3825 (mcore_store_struct_return): Add.
3826 (mcore_frame_init_saved_regs): Add.
3827 (mcore_gdbarch_init): Add function calls to replace the macros
3828 removed from tm-mcore.h
3829
3830 2002-07-03 Andrew Cagney <ac131313@redhat.com>
3831
3832 * infcmd.c (print_return_value): Remove compatibility code calling
3833 deprecated_grub_regcache_for_registers.
3834
3835 * values.c: Include "regcache.h".
3836 (value_being_returned): Update. Use
3837 deprecated_grub_regcache_for_registers to extract the register
3838 buffer address.
3839 * value.h (value_being_returned): Change ``retbuf'' parameter to a
3840 ``struct regcache''.
3841 * Makefile.in (values.o): Add dependency on $(regcache_h).
3842
3843 * inferior.h (run_stack_dummy): Change type of second parameter to
3844 a ``struct regcache''.
3845 * valops.c (hand_function_call): Change type of retbuf to ``struct
3846 regcache''. Allocate using regcache_xmalloc, clean using
3847 make_cleanup_regcache_xfree.
3848 * infcmd.c (run_stack_dummy): Update. Use
3849 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
3850
3851 * regcache.c (do_regcache_xfree): New function.
3852 (make_cleanup_regcache_xfree): New function.
3853 * regcache.h (make_cleanup_regcache_xfree): Declare.
3854
3855 2002-07-03 Martin M. Hunt <hunt@redhat.com>
3856
3857 * event-top.c (command_line_handler): Don't read past
3858 beginning of buffer.
3859
3860 2002-07-03 Martin M. Hunt <hunt@redhat.com>
3861
3862 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
3863 struct frame_id.
3864 (varobj_create): Store frame_id for root.
3865 (varobj_gen_name): Use xasprintf.
3866 (varobj_update): Save and restore frame using get_frame_id() and
3867 frame_find_by_id().
3868 (create_child): Use xasprintf.
3869 (new_root_variable): Initialize frame_id.
3870 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
3871 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
3872 to prevent memory leak.
3873
3874 2002-07-03 Andrew Cagney <ac131313@redhat.com>
3875
3876 * valops.c (hand_function_call): Move declaration of retbuf to
3877 start of function, allocate using malloc, add a cleanup but before
3878 the inf_status cleanup, cleanup the buffer. Rename local variable
3879 old_chain to inf_status_cleanup.
3880
3881 2002-07-03 Martin M. Hunt <hunt@redhat.com>
3882
3883 * top.c (execute_command): Use cmd_func() and cmd_func_p().
3884
3885 * cli/cli-decode.c (cmd_func_p): New function.
3886 (cmd_func): New function.
3887
3888 * command.h: Add cmd_func() and cmd_func_p().
3889
3890 2002-07-03 Grace Sainsbury <graces@redhat.com>
3891
3892 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
3893 (REGISTER_SIZE): Remove.
3894 (MAX_REGISTER_RAW_SIZE): Remove.
3895 (REGISTER_VIRTUAL_TYPE): Remove.
3896 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
3897 (REGISTER_NAME): Remove.
3898 (USE_GENERIC_DUMMY_FRAMES): Remove.
3899 (CALL_DUMMY): Remove.
3900 (CALL_DUMMY_START_OFFSET): Remove.
3901 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
3902 (CALL_DUMMY_LOCATION): Remove.
3903 (FIX_CALL_DUMMY): Remove.
3904 (CALL_DUMMY_ADDRESS): Remove.
3905 (SIZEOF_CALL_DUMMY_WORDS): Remove.
3906 (SAVE_DUMMY_FRAME_TOS): Remove.
3907 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
3908 (mcore_register_virtual_type): New function.
3909 (mcore_register_byte): New function.
3910 (mcore_register_size): New function.
3911 (mcore_register_name): New function.
3912 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
3913 macros removed from tm-mcore.h.
3914 (mcore_dump_tdep): Add.
3915 (_initialize_mcore_tdep): Add gdbarch_register call.
3916
3917 2002-07-03 Mark Kettenis <kettenis@gnu.org>
3918
3919 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
3920 frameless_look_for_prologue, such that we actually call this
3921 function.
3922
3923 2002-07-02 Joel Brobecker <brobecker@gnat.com>
3924
3925 * frame.h (frame_address_in_block): New function.
3926
3927 * blockframe.c (frame_address_in_block): New function extracted
3928 from get_frame_block().
3929 (get_frame_block): Use frame_address_in_block().
3930 (block_innermost_frame): Use frame_address_in_block() to match
3931 the frame pc address against the block boundaries rather than
3932 the frame pc directly. This prevents a failure when a frame pc
3933 is actually a return-address pointing immediately after the end
3934 of the given block.
3935
3936 2002-07-02 Grace Sainsbury <graces@redhat.com>
3937
3938 * MAINTAINERS: Add self under write after approval.
3939
3940 2002-07-02 Grace Sainsbury <graces@redhat.com>
3941
3942 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
3943 used in architecture vector. The default is
3944 m68k_local_breakpoint_from_pc.
3945 (m68k_local_breakpoint_from_pc): Add.
3946 (enum): Add register numbers from tm-m68k.h.
3947 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
3948 vector.
3949 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
3950 GDB_MULTI_ARCH_PARTIAL.
3951 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
3952 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
3953 m68k-tdep.c.
3954 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
3955 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
3956 to enum in m68k-tdep.c
3957
3958 2002-07-02 Joel Brobecker <brobecker@gnat.com>
3959
3960 * solib-osf.c (open_map): Compute the list of shared libraries
3961 loaded by the inferior, rather than the list of libraries loaded
3962 by GDB itself. Otherwise, GDB ends up reading the symbols from
3963 the wrong shared libraries...
3964
3965 2002-07-02 Mark Kettenis <kettenis@gnu.org>
3966
3967 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
3968 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
3969 macros.
3970 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
3971 Remove functions.
3972 (FRAMELESS_SIGNAL): Remove function.
3973 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
3974 i386_linux_saved_pc_after_call): Removed.
3975 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
3976 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
3977 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
3978
3979 * i386-tdep.c (i386_frameless_signal_p): New function.
3980 (i386_frame_chain): Deal with frameless signals.
3981 (i386_sigtramp_saved_sp): New function.
3982 (i386_frame_saved_pc): Deal with frameless signals.
3983 (i386_saved_pc_after_call): Make sure the correct value is
3984 returned just after entry into a sigtramp.
3985 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
3986 i386fbsd4_sc_sp_offset): New variables.
3987 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
3988 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
3989 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
3990 similiar to what we already did for sc_pc_offset.
3991 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
3992 tdep->sc_sp_offset.
3993
3994 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
3995
3996 2002-07-02 Michal Ludvig <mludvig@suse.cz>
3997
3998 * config/i386/tm-x86-64linux.h: New.
3999 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
4000 definitions.
4001 * config/i386/nm-x86-64.h: Rename to ...
4002 * config/i386/nm-x86-64linux.h: ... this one.
4003 * config/i386/x86-64linux.mh: Reflect the above change.
4004
4005 2002-07-01 Mark Kettenis <kettenis@gnu.org>
4006
4007 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
4008 with sigcontext_addr. Add sc_sp_offset.
4009 (i386bsd_sigtramp_saved_pc): Remove prototype.
4010 (i386bsd_sicontext_addr): Add prototype.
4011 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
4012 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
4013 (i386_svr4_sigtramp_saved_pc): Removed.
4014 (i386_svr4_sigcontext_addr): New function.
4015 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
4016 Initialize tdep->sigcontext_addr instead. Initialize
4017 tdep->sc_pc_offset and tdep->sc_sp_offset.
4018 (i386_gdbarch_init): Likewise.
4019 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
4020 any more.
4021 (i386bsd_sigtramp_saved_pc): Remove function.
4022 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
4023 Initialize tdep->sigcontext_addr instead. Initialize
4024 tdep->sc_pc_offset.
4025 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
4026 of tdep->sigtramp_saved_pc.
4027 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
4028 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
4029 instead.
4030
4031 * i386-tdep.c (i386_frameless_function_invocation,
4032 i386_frame_num_args, i386_frame_init_saved_regs,
4033 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
4034 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
4035 i386_extract_return_value, i386_store_return_value,
4036 i386_extract_struct_value_address, i386_register_virtual_type,
4037 i386_register_convertible, i386_register_convert_to_virtual,
4038 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
4039 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
4040 static.
4041
4042 2002-07-01 Mark Kettenis <kettenis@gnu.org>
4043
4044 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
4045
4046 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
4047 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
4048 this macro. Include "value.h".
4049
4050 2002-06-30 Aidan Skinner <aidan@velvet.net>
4051
4052 * ada-exp.tab.c: remove as it's a generated file
4053 * ada-lex.c: remove as it's a generated file
4054
4055 2002-06-30 Mark Kettenis <kettenis@gnu.org>
4056
4057 * config/i386/tm-i386.h (struct frame_info, struct
4058 frame_saved_regs, struct value, struct type): Remove forward
4059 declarations.
4060
4061 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
4062 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
4063 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
4064 (FILL_FPXREGSET): Define.
4065
4066 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
4067
4068 * configure.tgt (i[3456]86-*-openbsd*): Fold into
4069 i[3456]86-*-netbsd* case.
4070 * config/i386/tm-obsd.h: Removed.
4071 * config/i386/obsd.mt: Removed.
4072 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
4073 core-aout.o.
4074 (MH_CFLAGS): Add -DYYDEBUG=0.
4075
4076 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
4077 i386nbsd_sc_pc_offset on OpenBSD too.
4078
4079 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
4080 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
4081 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
4082 define.
4083 * i386bsd-tdep.c: Include "arch-utils.h".
4084 (i386bsd_aout_in_solib_call_trampoline): New function.
4085 (i386bsd_init_abi): Set in_solib_call_trampoline to
4086 i386bsd_aout_in_solib_call_trampoline.
4087 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
4088 in_solib_call_trampoline to generic_in_solib_call_trampoline.
4089
4090 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4091
4092 * macrotab.h: Do not include "obstack.h" or "bcache.h".
4093 (struct obstack, struct bcache): Add opaque declarations.
4094 * Makefile.in (macrotab_h): Update
4095
4096 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4097
4098 * blockframe.c (generic_find_dummy_frame): Change return type to
4099 ``struct regcache''.
4100 (struct dummy_frame): Replace field ``registers'' with regcache, a
4101 struct regcache object.
4102 (generic_find_dummy_frame): Update.
4103 (generic_push_dummy_frame): Update. Use regcache_xfree,
4104 regcache_xmalloc and regcache_cpy.
4105 (generic_pop_dummy_frame): Update. Use regcache_cpy and
4106 regcache_xfree.
4107 (deprecated_generic_find_dummy_frame): Update.
4108 (generic_read_register_dummy): Update. Use
4109 regcache_read_as_address.
4110 (generic_call_dummy_register_unwind): Update. Use regcache_read.
4111 (generic_get_saved_register): Update. Use regcache_read.
4112
4113 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4114
4115 * Makefile.in (objfiles_h): Add $(bcache_h).
4116 * objfiles.h: Include "bcache.h".
4117
4118 * Makefile.in (symtab_h): Remove $(bcache_h).
4119 * symtab.h: Do not include "bcache.h".
4120
4121 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4122
4123 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
4124 generic_func_frame_chain_valid.
4125
4126 2002-06-28 David O'Brien <obrien@FreeBSD.org>
4127
4128 * config/i386/nm-fbsd.h: Include <sys/param.h>.
4129 * config/i386/tm-fbsd.h: Likewise.
4130
4131 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4132
4133 * rs6000-tdep.c (rs6000_gdbarch_init): Use
4134 generic_unwind_get_saved_register.
4135
4136 2002-06-27 Andrew Cagney <ac131313@redhat.com>
4137
4138 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
4139 * regcache.c (supply_register): Add missing argument to
4140 register_buffer call.
4141
4142 2002-06-27 Andrew Cagney <ac131313@redhat.com>
4143
4144 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
4145 Solaris /bin/grep does not not like it. From Peter Schauer.
4146
4147 2002-06-26 Tom Tromey <tromey@redhat.com>
4148
4149 * command.h (add_setshow_cmd): Declare.
4150 (add_setshow_cmd_full): Declare.
4151 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
4152 returns void. Use add_setshow_cmd_full.
4153 (add_setshow_cmd_full): New function.
4154 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
4155 (add_setshow_boolean_cmd): Likewise.
4156
4157 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4158
4159 * config/vax/tm-vax.h: Protect from multiple inclusion.
4160 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
4161 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
4162 * config/vax/tm-vaxbsd.h: ...here. New file.
4163 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
4164
4165 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4166
4167 * config/vax/tm-vax.h (BREAKPOINT): Remove.
4168 (BELIEVE_PCC_PROMOTION): Remove.
4169 (AP_REGNUM): Move to...
4170 * config/vax/nm-vax.h: ...here.
4171 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
4172 (vax_breakpoint_from_pc): New function.
4173 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
4174 and gdbarch_believe_pcc_promotion.
4175
4176 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4177
4178 * Makefile.in (vax_tdep_h): Define.
4179 (vax-tdep.o): Use $(vax_tdep_h).
4180 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
4181 (vax_dump_tdep): New function.
4182 (_initialize_vax_tdep): Register vax_dump_tdep.
4183 * vax-tdep.h: Include osabi.h.
4184 (struct gdbarch_tdep): New.
4185
4186 2002-06-26 Andrew Cagney <cagney@redhat.com>
4187
4188 * frame.h (deprecated_generic_find_dummy_frame): Rename
4189 generic_find_dummy_frame.
4190 * blockframe.c (generic_find_dummy_frame): Make static.
4191 (deprecated_generic_find_dummy_frame): New function.
4192 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
4193 generic_find_dummy_frame with deprecated_find_dummy_frame.
4194 (sh64_nofp_frame_init_saved_regs): Ditto.
4195 (sh_fp_frame_init_saved_regs): Ditto.
4196 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
4197 (s390_frame_chain): Ditto.
4198 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
4199
4200 2002-06-26 Grace Sainsbury <graces@redhat.com>
4201
4202 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
4203 gdbarch vector are at the top.
4204 (NUM_REGS): Remove.
4205 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
4206 (FRAME_ARGS_ADDRESS): Remove.
4207 (FRAME_LOCALS_ADDRESS): Remove.
4208 (FRAME_NUM_ARGS): Remove.
4209 (FRAME_ARGS_SKIP): Remove.
4210 * m68k-tdep.c (enum): Add eumeration of special register numbers.
4211 (m68k_gdbarch_init): Add gdbarch initializations for macros
4212 undefined in tm-m68k.h
4213
4214 2002-06-26 Grace Sainsbury <graces@redhat.com>
4215
4216 * monitor.h: Add the function regname to monitor_ops
4217 structure. This way NUM_REGS does not have to be a constant.
4218 * monitor.c (monitor_fetch_register): Added support for regname
4219 function. The function is called if the array regnames is NULL.
4220 (monitor_store_register): Same.
4221 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
4222 regnames array.
4223 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
4224 cpu32bug_cmds.regname to point to new function.
4225 * abug-rom.c (abug_regname): Same as above.
4226 (init_abug_cmds): Same.
4227 * dbug-rom.c (dbug_regname): Same as above.
4228 (init_dbug_cmds): Same.
4229 * remote-est.c (est_regname): Same.
4230 (init_est_cmds): Same.
4231 * rom68k-rom.c (rom68k_regname): Same.
4232 (init_rom68k_cmds): Same.
4233
4234 2002-06-25 Tom Tromey <tromey@redhat.com>
4235
4236 * breakpoint.c (delete_command): Don't repeat `delete' commands.
4237
4238 2002-06-25 Andrew Cagney <cagney@redhat.com>
4239
4240 * infrun.c (stop_registers): Change variable's type to ``struct
4241 regcache'''.
4242 (xmalloc_inferior_status): Delete function.
4243 (free_inferior_status): Delete function.
4244 (normal_stop): Use regcache_cpy.
4245 (struct inferior_status): Change type of fields ``stop_registers''
4246 and ``registers'' to ``struct regcache''.
4247 (write_inferior_status_register): Use regcache_write.
4248 (save_inferior_status): Instead of calling
4249 xmalloc_inferior_status, allocate the inf_status buffer directly.
4250 Use regcache_dup_no_passthrough and regcache_dup to save the
4251 buffers.
4252 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
4253 Replace the stop_registers regcache instead of overriding it. Use
4254 regcache_xfree. Instead of calling free_inferior_status, xfree
4255 the buffer directly.
4256 (discard_inferior_status): Use regcache_xfree. Instead of calling
4257 free_inferior_status, xfree the buffer directly.
4258 (build_infrun): Use regcache_xmalloc.
4259 (_initialize_infrun): Delete redundant call to build_infrun.
4260
4261 * Makefile.in (infcmd.o): Add $(regcache_h).
4262
4263 * infcmd.c: Include "regcache.h".
4264 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
4265 obtain the address of `stop_registers' register buffer.
4266 (print_return_value): Ditto.
4267
4268 * inferior.h (struct regcache): Add opaque declaration.
4269 (stop_registers): Change variable's declared type to ``struct
4270 regcache''.
4271
4272 2002-06-24 Tom Tromey <tromey@redhat.com>
4273
4274 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
4275 * target.c (initialize_targets): Fixed typo in
4276 trust-readonly-sections `show' documentation.
4277
4278 * main.c: Marked all strings with _().
4279
4280 2002-06-24 Don Howard <dhoward@redhat.com>
4281
4282 * memattr.c (create_mem_region): Treat hi == 0 as a special case
4283 that means max CORE_ADDR+1.
4284 (lookup_mem_region): Ditto.
4285 (mem_info_command): Ditto.
4286
4287 2002-06-24 Grace Sainsbury <graces@redhat.com>
4288
4289 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
4290 (REGISTER_BYTES_OK): Remove.
4291 (REGISTER_BYTES): Remove.
4292 (STORE_STRUCT_RETURN): Remove.
4293 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
4294 (STORE_RETURN_VALUE): Remove.
4295 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
4296 (FRAME_CHAIN): Remove.
4297 (FRAMELESS_FUNCTION_INVOCATION): Remove.
4298 (FRAME_SAVED_PC): Remove.
4299 * m68k-tdep.c (m68k_register_bytes_ok):Add.
4300 (m68k_store_struct_return): Add.
4301 (m68k_deprecated_extract_return_value): Add.
4302 (m68k_deprecated_extract_struct_value_address): Add.
4303 (m68k_store_return_value): Add.
4304 (m68k_frame_chain): Add.
4305 (m68k_frameless_function_invocation): Add.
4306 (m68k_frame_saved_pc): Add.
4307 (m68k_gdbarch_init): added set_gdbarch calls for new
4308 functions and deleted macros.
4309
4310 2002-06-23 Tom Tromey <tromey@redhat.com>
4311
4312 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
4313 (ALLDEPFILES): Likewise.
4314 (udiheaders): Removed.
4315 (udip2soc.o): Likewise.
4316 (udi2go32.o): Likewise.
4317 (udr.o): Likewise.
4318 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
4319
4320 2002-06-22 Andrew Cagney <ac131313@redhat.com>
4321
4322 * infrun.c (_initialize_infrun): Delete unnecessary call to
4323 build_infrun.
4324
4325 * regcache.h: Update comments describing the regcache_cpy family
4326 of functions.
4327 (regcache_save, regcache_restore): Delete declaration.
4328 (regcache_save_no_passthrough): Delete declaration.
4329 (regcache_restore_no_passthrough): Delete declaration.
4330 * regcache.c (regcache_save): Delete function.
4331 (regcache_save_no_passthrough): Delete function.
4332 (regcache_restore): Delete function.
4333 (regcache_restore_no_passthrough): Delete function.
4334
4335 2002-06-21 Andrew Cagney <ac131313@redhat.com>
4336
4337 * config/m68k/tm-m68k.h: Fix typo.
4338 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
4339 (m68k_frame_init_saved_regs): Declare.
4340
4341 2002-06-21 Jim Blandy <jimb@redhat.com>
4342
4343 Remove some vestiges of Harris 88k support.
4344 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
4345 register numbering quirk.
4346 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
4347 odd symbols occurring in Harris 88k ELF targets.
4348
4349 2002-06-21 Tom Tromey <tromey@redhat.com>
4350
4351 * gdb_locale.h: New file.
4352 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
4353 (defs_h): Added gdb_locale.h.
4354 * configure, config.in: Rebuilt.
4355 * configure.in (PACKAGE): Define.
4356 * defs.h: Include gdb_locale.h.
4357 * main.c (captured_main): Call setlocale, bindtextdomain,
4358 textdomain.
4359
4360 2002-06-21 Dave Brolley <brolley@redhat.com>
4361
4362 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
4363 * config/frv/frv.mt: New file.
4364 * config/frv/tm-frv.h: New file.
4365 * configure.tgt: Support frv-*-*.
4366 * Makefile.in (frv-tdep.o): New target.
4367 * frv-tdep.c: New file.
4368 * NEWS: Mention frv.
4369
4370 2002-06-21 Dave Brolley <brolley@redhat.com>
4371
4372 * MAINTAINERS: Add self to "Write After Approval" list.
4373
4374 2002-06-21 Grace Sainsbury <graces@redhat.com>
4375
4376 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
4377 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
4378 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
4379 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
4380 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
4381
4382 * m68k-tdep.c: Include arch-utils.h
4383 (m68k_register_raw_size): Add.
4384 (m68k_register_virtual_size): Add.
4385 (m68k_register_virtual_type): Add.
4386 (m68k_register_name): Add.
4387 (m68k_stack_align): Add.
4388 (m68k_register_byte): Add.
4389 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
4390 tm-m68k.h.
4391
4392 2002-06-21 Grace Sainsbury <graces@redhat.com>
4393
4394 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
4395 m68k_find_saved_regs.
4396 (m68k_pop_frame): Removed saved_regs structure, and replaced
4397 references to it with frame->saved_regs.
4398 (m68k_gdbarch_init): Added function calls to initialize the
4399 gdbarch structure.
4400 (m68k_fix_call_dummy): Add.
4401 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
4402 (CALL_DUMMY): Remove.
4403 (CALL_DUMMY_LENGTH): Remove.
4404 (CALL_DUMMY_START_OFFSET): Remove.
4405 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
4406 (FIX_CALL_DUMMY): Remove.
4407 (PUSH_DUMMY_FRAME): Remove.
4408 (POP_FRAME): Remove.
4409
4410 2002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
4411
4412 * parse.c (parse_fprintf): New function used to avoid calls to
4413 fprintf in bison parser generated debug code.
4414 * parser-defs.h: Declaration of new parse_fprintf function.
4415 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
4416 Set YYDEBUG to 1 by default.
4417 Set YYFPRINTF as parse_fprintf.
4418
4419 2002-06-21 Michal Ludvig <mludvig@suse.cz>
4420
4421 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
4422 encoding anymore.
4423 (pointer_encoding, enum ptr_encoding): New.
4424 (execute_cfa_program): Take care about pointer encoding.
4425 (dwarf2_build_frame_info): Only call parse_frame_info for
4426 .debug_frame and .eh_frame.
4427 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
4428 fixed augmentation handling, added relative addressing,
4429 ignore duplicate FDEs. Added comments.
4430 * dwarf2cfi.c: Reindented.
4431
4432 2002-06-20 Elena Zannoni <ezannoni@redhat.com>
4433
4434 * event-top.c (command_handler): Don't use space_at_cmd_start
4435 unless there is sbrk() on the host. Assign time and space data
4436 to union fields of the appropriate length.
4437
4438 2002-06-20 Michal Ludvig <mludvig@suse.cz>
4439
4440 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
4441 x86_64_register_name. Return type changed to 'const char *'.
4442 (x86_64_register_name2nr): Rename to x86_64_register_number.
4443 (x86_64_gdbarch_init): Update to reflect the change.
4444 * x86-64-tdep.h: Ditto.
4445 * x86-64-linux-nat.c (x86_64_fxsave_offset)
4446 (supply_fpregset): Ditto.
4447
4448 2002-06-19 Andrew Cagney <cagney@redhat.com>
4449
4450 * regcache.h: Update copyright.
4451 (struct regcache, struct gdbarch): Add opaque declarations.
4452 (current_regcache): Declare global variable.
4453 (regcache_read, regcache_write): Add gdbarch parameter.
4454 (regcache_save, regcache_save_no_passthrough)
4455 (regcache_restore, regcache_restore_no_passthrough)
4456 (regcache_dup, regcache_dup_no_passthrough)
4457 (regcache_cpy, regcache_cpy_no_passthrough)
4458 (deprecated_grub_regcache_for_registers)
4459 (deprecated_grub_regcache_for_register_valid)
4460 (regcache_valid_p): Add function declarations.
4461
4462 * regcache.c: Update copyright.
4463 (regcache_descr_handle): New global variable.
4464 (struct regcache_descr): Define.
4465 (init_legacy_regcache_descr, init_regcache_descr): New functions.
4466 (regcache_descr, xfree_regcache_descr): New functions.
4467 (struct regcache): Define.
4468 (regcache_xmalloc, regcache_xfree): New functions.
4469 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
4470 (regcache_dup, regcache_dup_no_passthrough): New functions.
4471 (regcache_valid_p, regcache_read_as_address): New functions.
4472 (deprecated_grub_regcache_for_registers): New function.
4473 (deprecated_grub_regcache_for_register_valid): New function.
4474 (current_regcache): New global variable.
4475 (register_buffer): Add regcache parameter. Update calls.
4476 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
4477 (read_register_gen, write_register_gen): Update register_buffer
4478 call. Test for legacy_p instead of gdbarch_register_read_p or
4479 gdbarch_register_write_p.
4480 (regcache_collect): Update register_buffer call.
4481 (build_regcache): Rewrite. Use deprecated grub functions.
4482 (regcache_save, regcache_save_no_passthrough): New functions.
4483 (regcache_restore, regcache_restore_no_passthrough): New
4484 functions.
4485 (_initialize_regcache): Create the regcache_data_handle. Swap
4486 current_regcache global variable.
4487
4488 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
4489 parameter to regcache_read and regcache_write calls.
4490 (sh4_register_read): Ditto.
4491 (sh64_pseudo_register_read): Ditto.
4492 (sh64_register_read): Ditto.
4493 (sh_pseudo_register_write): Ditto.
4494 (sh4_register_write): Ditto.
4495 (sh64_pseudo_register_write): Ditto.
4496 (sh64_register_write): Ditto.
4497
4498 * defs.h (XCALLOC): Define.
4499
4500 2002-06-19 Grace Sainsbury <graces@redhat.com>
4501
4502 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
4503 * m68k-tdep.c (m68k_gdbarch_init): Added.
4504 (m68k_dump_tdep): Added.
4505
4506 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
4507
4508 * ada-lang.c (fill_in_ada_prototype): Update comment.
4509
4510 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
4511
4512 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
4513 MIPS_ABI_LAST.
4514 (mips_abi_string, mips_abi_strings): New.
4515 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
4516 (mips_gdbarch_init): Set tdep->found_abi. Don't set
4517 tdep->mips_abi_string. Honor mips_abi_string. Default to
4518 O32 if no ABI is found.
4519 (mips_dump_tdep): Use mips_abi_strings.
4520 (mips_abi_update): New function.
4521 (_initialize_mips_tdep): Initialize mips_abi_string. Add
4522 ``set mips abi'' and ``show mips abi''. Check the size of
4523 mips_abi_strings.
4524
4525 2002-06-19 Andrew Cagney <cagney@redhat.com>
4526
4527 * i386-linux-tdep.c (i386_linux_register_name): Make return type
4528 constant.
4529
4530 2002-06-18 Joel Brobecker <brobecker@gnat.com>
4531
4532 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
4533 current frame using only the first stack size adjustment. All
4534 subsequent size adjustments are not considered to be part of
4535 the "static" part of the current frame.
4536 Compute the address of the saved registers relative to the
4537 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
4538 in use in this frame.
4539
4540 2002-06-18 Don Howard <dhoward@redhat.com>
4541
4542 * valops.c (value_ind): Use value_at_lazy() when dereferencing
4543 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
4544 suggesting this solution.
4545
4546 2002-06-18 Andrew Cagney <ac131313@redhat.com>
4547
4548 * config/romp/xm-rtbsd.h: Delete file.
4549 * config/romp/rtbsd.mh: Delete file.
4550
4551 2002-06-18 Keith Seitz <keiths@redhat.com>
4552
4553 * breakpoint.c (condition_command): Post breakpoint_modify
4554 when a condition is added to an existing breakpoint.
4555 (commands_command): Likewise for commands.
4556 (set_ignore_count): Likewise for ignore counts.
4557 If no tty, do not simply return, still need to send event
4558 notification.
4559 (ignore_command): Only print a newline if the command came
4560 from a tty.
4561 Don't call breakpoints_changed, since this is now properly
4562 handled by set_ignore_count.
4563
4564 2002-06-18 Andrew Cagney <cagney@redhat.com>
4565
4566 * MAINTAINERS: Note that cris-elf target can be compiled with
4567 -Werror.
4568 * cris-tdep.c (cris_register_name): Make return type constant.
4569 (cris_breakpoint_from_pc): Ditto.
4570
4571 2002-06-18 Michal Ludvig <mludvig@suse.cz>
4572
4573 * frame.h (struct frame_info): Change type of context to
4574 'struct context'.
4575
4576 2002-06-17 Andrew Cagney <cagney@redhat.com>
4577
4578 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
4579 pointer.
4580 * gdbarch.h, gdbarch.c: Regenerate.
4581 * config/mips/tm-mips.h (mips_register_name): Update.
4582 * i386-tdep.h (i386_register_name): Update.
4583 * mips-tdep.c (mips_register_name): Update
4584 * alpha-tdep.c (alpha_register_name): Update.
4585 * arch-utils.c (legacy_register_name): Update.
4586 * arch-utils.h (legacy_register_name): Update.
4587 * avr-tdep.c (avr_register_name): Update.
4588 * ia64-tdep.c (ia64_register_name): Update.
4589 * i386-tdep.c (i386_register_name): Update.
4590 * sparc-tdep.c (sparc32_register_name): Update.
4591 (sparc64_register_name): Update.
4592 (sparclite_register_name): Update.
4593 (sparclet_register_name): Update.
4594 * sh-tdep.c (sh_generic_register_name): Update.
4595 (sh_sh_register_name): Update.
4596 (sh_sh3_register_name): Update.
4597 (sh_sh3e_register_name): Update.
4598 (sh_sh_dsp_register_name): Update.
4599 (sh_sh3_dsp_register_name): Update.
4600 (sh_sh4_register_name): Update.
4601 (sh_sh64_register_name): Update.
4602 * s390-tdep.c (s390_register_name): Update.
4603 * rs6000-tdep.c (rs6000_register_name): Update.
4604 * ns32k-tdep.c (ns32k_register_name_32082): Update.
4605 (ns32k_register_name_32382): Update.
4606 * d10v-tdep.c (d10v_ts2_register_name): Update.
4607 (d10v_ts3_register_name): Update.
4608 * xstormy16-tdep.c (xstormy16_register_name): Update.
4609 * vax-tdep.c (vax_register_name): Update.
4610 * v850-tdep.c (v850_register_name): Update.
4611 * m68hc11-tdep.c (m68hc11_register_name): Update.
4612 * mn10300-tdep.c (mn10300_generic_register_name): Update.
4613 (am33_register_name): Update.
4614
4615 2002-06-17 Grace Sainsbury <graces@redhat.com>
4616
4617 * m68k-tdep.c: Reindented.
4618
4619 2002-06-17 Andrew Cagney <ac131313@redhat.com>
4620
4621 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
4622 list of predefined types.
4623
4624 2002-06-16 Mark Kettenis <kettenis@gnu.org>
4625
4626 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
4627 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
4628 REGISTER_CONVERT_TO_RAW): Remove defines.
4629 (i386_register_virtual_type, i386_register_convertible,
4630 i386_register_convert_to_virtual, i386_register_convert_to_raw):
4631 Remove prototypes.
4632 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4633 macros mentioned above.
4634
4635 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
4636 (i386lynx_saved_pc_after_call): Remove prototype.
4637 * i386ly-tdep.c: Include "i386-tdep.h".
4638 (i386lynx_saved_pc_after_call): Make static. Use
4639 read_memory_nobpt instead of read_memory. Use
4640 read_memory_unsigned_integer instead of read_memory_integer.
4641 (i386lynx_init_abi): New function.
4642 (i386lynx_coff_osabi_sniffer): New function.
4643 (_initialize_i386bsd_tdep): New function.
4644
4645 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
4646 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
4647 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
4648 (i386_fix_call_dummy): Remove prototype.
4649 * i386-tdep.c (i386_call_dummy_words): New variable.
4650 (i386_gdbarch_init): Adjust for removal of the
4651 macros mentioned above.
4652
4653 2002-06-15 Andrew Cagney <ac131313@redhat.com>
4654
4655 * command.h (add_setshow_auto_boolean_cmd): Replace
4656 add_set_auto_boolean_cmd.
4657 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
4658 add_set_auto_boolean_cmd.
4659 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
4660 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
4661 mask-address'' command.
4662 (show_mask_address): Add cmd parameter.
4663 * remote.c (add_packet_config_cmd): Update. Change type of
4664 set_func and show_func to cmd_sfunc_ftype.
4665 (_initialize_remote): Update `set remote Z-packet'
4666 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
4667 (show_remote_protocol_e_packet_cmd): Ditto.
4668 (show_remote_protocol_E_packet_cmd): Ditto.
4669 (show_remote_protocol_P_packet_cmd): Ditto.
4670 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
4671 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
4672 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
4673 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
4674 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
4675 (show_remote_protocol_Z_packet_cmd): Ditto.
4676 (show_remote_protocol_binary_download_cmd): Ditto.
4677 (show_remote_cmd): Pass NULL to all of above.
4678
4679 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4680
4681 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
4682 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
4683 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
4684 POP_FRAME): Remove defines.
4685 (i386_push_arguments, i386_store_struct_return,
4686 i386_extract_return_value, i386_store_return_value,
4687 i386_extract_struct_value_address, i386_push_dummy_frame,
4688 i386_pop_frame): Renove prototypes.
4689 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4690 macros mentioned above.
4691
4692 2002-06-15 Andrew Cagney <ac131313@redhat.com>
4693
4694 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
4695 add_set_boolean_cmd.
4696 (add_setshow_cmd): New function.
4697 * command.h (add_setshow_boolean_cmd): Replace
4698 add_set_boolean_cmd.
4699 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
4700 and ``set rdiromatzero''.
4701 * maint.c (_initialize_maint_cmds): Update commented out code.
4702 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
4703 * target.c (initialize_targets): Update `set
4704 trust-readonly-sections'.
4705 * remote.c (_initialize_remote): Update `set remotebreak'.
4706
4707 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4708
4709 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
4710 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
4711 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
4712 fit into multi-arch framework.
4713 (i386_breakpoint_from_pc): New function.
4714 (i386_gdbarch_init): Adjust for removal of the macros mentioned
4715 above.
4716
4717 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
4718 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
4719 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
4720 (i386_frameless_function_invocation, i386_frame_num_args,
4721 i386_frame_init_saved_regs): Remove prototypes.
4722 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4723 macros mentioned above.
4724
4725 2002-06-15 Andrew Cagney <ac131313@redhat.com>
4726
4727 * cli/cli-decode.c (set_cmd_cfunc): Update.
4728 (set_cmd_sfunc): Update.
4729 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
4730 (set_cmd_sfunc, set_cmd_cfunc): Update.
4731 * cli/cli-decode.h: Update.
4732
4733 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4734
4735 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
4736 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
4737
4738 2002-06-15 Andrew Cagney <ac131313@redhat.com>
4739
4740 * defs.h (auto_boolean): Declare enum.
4741 * command.h (cmd_auto_boolean): Delete enum.
4742 * mips-tdep.c (mask_address_var): Update.
4743 (mips_mask_address_p): Update.
4744 (show_mask_address): Update.
4745 * remote.c (struct packet_config): Update.
4746 (update_packet_config): Update.
4747 (show_packet_config_cmd): Update.
4748 (packet_ok): Update.
4749 (add_packet_config_cmd): Update.
4750 (_initialize_remote):
4751 * command.h: Update.
4752 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
4753 (do_setshow_command): Update.
4754 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
4755 * cli/cli-decode.h: Update.
4756
4757 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4758
4759 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
4760 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
4761 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
4762 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
4763 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
4764 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
4765
4766 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
4767 list of DJGPP COFF targets.
4768
4769 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
4770 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
4771 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
4772 (FP0_REGNUM): Remove define.
4773 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
4774 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
4775 (i386_register_virtual_size): Remove protoype.
4776 * i386-tdep.c (i386_register_virtual_size): Removed.
4777 (i386_extract_return_value, i386_store_return_value): Use
4778 FP0_REGNUM instead of NUM_FREGS to determine whether the
4779 floating-point registers are available.
4780 (i386_gdbarch_init): Tweak FIXME about FPU registers.
4781 Adjust for removal of macros mentioned above.
4782
4783 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4784
4785 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
4786 comments.
4787 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
4788 Remove prototypes.
4789 (supply_gregset, fill_gregset): Remove use of register keyword and
4790 remove declaration for regmap. Use I386_NUM_GREGS instead of
4791 NUM_REGS and NUM_FREGS.
4792 (FPREGSET_FSAVE_OFFSET): Remove.
4793 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
4794 NUM_FREGS to determine whether the floating-point registers are
4795 available.
4796
4797 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
4798 gnu_store_registers): Replace usage of NUM_GREGS with
4799 I386_NUM_GREGS.
4800
4801 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
4802 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
4803 usage of NUM_GREGS with I386_NUM_GREGS.
4804
4805 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
4806
4807 * i386bsd-nat.c: Include "i386-tdep.h".
4808 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
4809 I386_NUM_GREGS.
4810
4811 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
4812 and associated comment. They no longer make any sense, since we
4813 don't use this file anymore on Linux.
4814
4815 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
4816 * i386-tdep.c (i386_register_offset, i386_register_size): Use
4817 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
4818 elements in these arrays.
4819 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
4820 MAX_NUM_REGS.
4821
4822 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4823
4824 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
4825 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
4826
4827 2002-06-14 Andrew Cagney <cagney@redhat.com>
4828
4829 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
4830 EXTRACT_RETURN_VALUE.
4831 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
4832 EXTRACT_STRUCT_VALUE_ADDRESS.
4833 * gdbarch.h, gdbarch.c: Regenerate.
4834
4835 * values.c (value_being_returned): Handle
4836 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
4837 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
4838
4839 * arm-linux-tdep.c (arm_linux_init_abi): Update.
4840 * arm-tdep.c (arm_gdbarch_init): Update.
4841 * avr-tdep.c (avr_gdbarch_init): Update.
4842 * cris-tdep.c (cris_gdbarch_init): Update.
4843 * d10v-tdep.c (d10v_gdbarch_init): Update.
4844 * ia64-tdep.c (ia64_gdbarch_init): Update.
4845 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4846 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4847 * s390-tdep.c (s390_gdbarch_init): Update.
4848 * sh-tdep.c (sh_gdbarch_init): Update.
4849 * s390-tdep.c (s390_gdbarch_init): Update.
4850 * sparc-tdep.c (sparc_gdbarch_init): Update.
4851 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4852 * v850-tdep.c (v850_gdbarch_init): Update.
4853 * vax-tdep.c (vax_gdbarch_init): Update.
4854 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
4855 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4856
4857 * config/arc/tm-arc.h: Update.
4858 * config/d30v/tm-d30v.h: Update.
4859 * config/fr30/tm-fr30.h: Update.
4860 * config/h8300/tm-h8300.h: Update.
4861 * config/h8500/tm-h8500.h: Update.
4862 * config/i386/tm-i386.h: Update.
4863 * config/i386/tm-ptx.h: Update.
4864 * config/i386/tm-symmetry.h: Update.
4865 * config/i960/tm-i960.h: Update.
4866 * config/m32r/tm-m32r.h: Update.
4867 * config/m68k/tm-delta68.h: Update.
4868 * config/m68k/tm-linux.h: Update.
4869 * config/m68k/tm-m68k.h: Update.
4870 * config/m88k/tm-m88k.h: Update.
4871 * config/mcore/tm-mcore.h: Update.
4872 * config/mips/tm-mips.h: Update.
4873 * config/mn10200/tm-mn10200.h: Update.
4874 * config/pa/tm-hppa.h: Update.
4875 * config/pa/tm-hppa64.h: Update.
4876 * config/sparc/tm-sp64.h: Update.
4877 * config/sparc/tm-sparc.h: Update.
4878 * config/sparc/tm-sparclet.h: Update.
4879 * config/z8k/tm-z8k.h: Update.
4880
4881 2002-06-14 Andrew Cagney <cagney@redhat.com>
4882
4883 * Makefile.in (i386_linux_tdep_h): Define.
4884 (i386_tdep_h, i387_tdep_h): Define.
4885 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
4886 $(i386_tdep_h) and $(i387_tdep_h).
4887 * i386-linux-nat.c: Include "i386-linux-tdep.h".
4888
4889 2002-06-14 Mark Kettenis <kettenis@gnu.org>
4890
4891 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
4892 Already covered by the default.
4893
4894 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
4895 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
4896 (i386_gdbarch_init): Initialize long_double_format and long_double
4897 bit.
4898
4899 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
4900 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
4901 Move these to ...
4902 * config/i386/i386sol2.mh: ... here.
4903 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
4904 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
4905 (SIGCONTEXT_PC_OFFSET): Remove define.
4906 (IN_SIGTRAMP): Remove define.
4907 * i386-sol2-tdep.c: New file.
4908
4909 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
4910 * config/i386/tm-i386nw.h: Removed.
4911
4912 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
4913 USE_STRUCT_CONVENTION): Remove defines.
4914 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
4915 (get_longjmp_target): Remove prototype.
4916 (IN_SIGTRAMP): Remove define.
4917 (i386bsd_in_sigtramp): Remove prototype.
4918 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
4919 function. Update comment accordingly
4920 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
4921 (FRAME_SAVED_PC): Remove define.
4922 (i386bsd_frame_saved_pc): Remove prototype.
4923 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
4924 GET_LONGJMP_TARGET): Remove defines.
4925 (get_longjmp_target): Remove prototype.
4926 (IN_SIGTRAMP): Remove define.
4927 (i386bsd_in_sigtramp): Remove prototype.
4928 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
4929 function. Update comment accordingly
4930 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
4931 (FRAME_SAVED_PC): Remove define.
4932 (i386bsd_frame_saved_pc): Remove prototype.
4933 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
4934 Remove prototype.
4935 (USE_STRUCT_CONVENTION): Remove prototype.
4936 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
4937 declaration.
4938 (_initialize_i386bsd_nat): Revise logic to determine some
4939 constants at compile time when compiling a native GDB. Warn if
4940 things don't match up with what we expect.
4941 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
4942 Remove variables.
4943 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
4944 to use date stored in `struct gdbarch_tdep'.
4945 (i386bsd_sigcontext_offset): Remove varaible.
4946 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
4947 stored in `struct gdbarch_tdep'.
4948 (i386bsd_frame_saved_pc): Make static.
4949 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
4950 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
4951 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
4952 i386fbsd4_sc_pc_offset): New variables.
4953 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
4954 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
4955 functions.
4956 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
4957 functions.
4958 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
4959 Modify the value of i386fbsd_sigtramp_start and
4960 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
4961 i386fbsd_sigtramp_end.
4962 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
4963 function.
4964
4965 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
4966 define to i386-linux-tdep.h.
4967 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
4968 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
4969 defines.
4970 (i386_linux_register_name, i386_linux_register_byte,
4971 i386_linux_register_raw_size): Remove prototypes.
4972 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
4973 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
4974 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
4975 TARGET_WRITE_PC): Remove defines.
4976 (i386_linux_in_sigtramp, i386_linux_frame_chain,
4977 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
4978 i386_linux_write_pc): Remove prototypes.
4979 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
4980 (get_longjmp_target): Remove prototype.
4981 * i386-linux-tdep.h: New file.
4982 * i386-linux-nat.c: Include "i386-linux-tdep.h".
4983 * i386-linux-tdep.c: Include "i386-tdep.h" and
4984 "i386-linux-tdep.h".
4985 (i386_linux_register_name, i386_linux_register_byte,
4986 i386_linux_register_raw_size, i386_linux_in_sigtramp,
4987 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
4988 Make static.
4989 (i386_linux_init_abi): New function.
4990 (_initialize_i386_linux_tdep): New function.
4991
4992 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
4993 (i386_saved_pc_after_call): Remove prototype.
4994 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
4995 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
4996 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
4997 (i386_register_name, i386_stab_reg_to_regnum,
4998 i386_dwarf_reg_to_regnum): Remove prototypes.
4999 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
5000 SIZEOF_SSE_REGS): Remove defines.
5001 (REGISTER_BYTES): Remove define.
5002 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
5003 (i386_register_byte, i386_register_raw_size): Remove prototypes.
5004 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
5005 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
5006 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
5007 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
5008 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
5009 (get_longjmp_target): Remove prototype.
5010 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
5011 (sigtramp_saved_pc): Remove define.
5012 (i386v4_sigtramp_saved_pc): Remove prototype.
5013 * config/i386/tm-go32.h (FRAME_CHAIN,
5014 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
5015 (i386go32_frame_saved_pc): Remove prototype.
5016 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5017 (get_longjmp_target): Remove prototype.
5018 * i386-tdep.h: Include "osabi.h".
5019 (enum i386_abi): Removed.
5020 (enum struct_return): New enum.
5021 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
5022 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
5023 sc_pc_offset members.
5024 (i386_gdbarch_register_os_abi): Remove prototype.
5025 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
5026 I386_SSE_NUM_REGS): New defines.
5027 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
5028 I386_SSE_SIZEOF_REGS): New defines.
5029 (i386_register_name, i386_register_byte, i386_register_raw_size):
5030 New prototypes.
5031 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
5032 (i386bsd_sigtramp_saved_pc): New prototype.
5033 * i386-tdep.c: Don't include "elf-bfd.h".
5034 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
5035 i386_frame_chain, i386_saved_pc_after_call): Make static.
5036 (i386_frame_saved_pc): Rewrite to call architecture dependent
5037 function to deal with signal handlers. Make static.
5038 (i386go32_frame_saved_pc): Removed.
5039 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
5040 Removed.
5041 (i386_get_longjmp_target): New function.
5042 (default_struct_convention, pcc_struct_convention,
5043 reg_struct_convention, valid_conventions, struct_convention): New
5044 variables.
5045 (i386_use_struct_convention): New function.
5046 (i386v4_sigtramp_saved_pc): Renamed to
5047 i386_svr4_sigtramp_saved_pc. Made static. Moved.
5048 (i386_pc_in_sigtramp): New function.
5049 (i386_abi_names): Removed.
5050 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
5051 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
5052 Removed.
5053 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
5054 i386_gdbarch_register_os_abi): Removed.
5055 (struct i386_abi_handler): Removed.
5056 (i386_abi_handler_list): Removed.
5057 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
5058 functions.
5059 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
5060 i386_nw_init_abi): New functions.
5061 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
5062 Use set_gdbarch_xxx() calls instead of relying on macros for a
5063 number of calls.
5064 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
5065 (_initialize_i386_tdep): Add new 'struct-convcention' command.
5066 Register the various architecture variants defined in this file.
5067
5068 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
5069
5070 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
5071 (struct main_type): Remove arg_types member. Update comments for
5072 struct field.
5073 (TYPE_ARG_TYPES): Remove.
5074 (TYPE_FN_FIELD_ARGS): Update.
5075 (smash_to_method_type): Update prototype.
5076
5077 * c-typeprint.c (cp_type_print_method_args): Take method type
5078 instead of argument list. Use new argument layout. Simplify.
5079 (c_type_print_args): Use new argument layout. Simplify.
5080 (c_type_print_base): Update call to cp_type_print_method_args.
5081 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
5082 argument; use die->type instead. Update call to
5083 smash_to_method_type.
5084 (read_structure_scope): Update call to dwarf2_add_member_fn.
5085 * gdbtypes.c (allocate_stub_method): Update comment.
5086 (smash_to_method_type): Take new NARGS and VARARGS arguments.
5087 Use new argument layout.
5088 (check_stub_method): Use new argument layout. Don't count
5089 void as an argument.
5090 (print_arg_types): Update comments. Use new argument layout.
5091 (recursive_dump_type): Don't print arg_types member.
5092 * hpread.c (hpread_read_struct_type): Use new argument layout.
5093 (fixup_class_method_type): Likewise.
5094 (hpread_type_lookup): Likewise.
5095 * stabsread.c (read_type): Update calls to read_args and
5096 smash_to_method_type.
5097 (read_args): Use new argument layout. Simplify.
5098 * valops.c (typecmp): Use new argument layout. Update parameters
5099 and comments. Simplify.
5100 (hand_function_call): Use new argument layout.
5101 (search_struct_method): Update call to typecmp.
5102 (find_overload_match): Use new argument layout.
5103
5104 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
5105
5106 * NEWS: Mention multithreaded debug support for gdbserver.
5107
5108 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
5109
5110 * MAINTAINERS: Mention NEWS.
5111
5112 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
5113
5114 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
5115 (struct mips_objfile_private, compare_pdr_entries): New.
5116 (non_heuristic_proc_desc): Read the ".pdr" section if it
5117 is present.
5118
5119 2002-06-12 Andrew Cagney <ac131313@redhat.com>
5120
5121 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
5122 (arm_debug): New static variable.
5123 (_initialize_arm_tdep): Add ``set debug arm'' command.
5124
5125 2002-06-12 Andrew Cagney <ac131313@redhat.com>
5126
5127 * Makefile.in (sim_arm_h): Define.
5128 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
5129 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
5130 (arm_register_sim_regno): New function, map an internal REGNUM
5131 onto a simulator register number.
5132 (arm_gdbarch_init): Set register_sim_regno.
5133
5134 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
5135
5136 * MAINTAINERS: Add self.
5137
5138 2002-06-11 Jim Blandy <jimb@redhat.com>
5139
5140 * source.c (source_info): Mention whether the symtab has
5141 information about preprocessor macros.
5142
5143 Call the command `info macro', not `show macro'.
5144 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
5145 Fix error message.
5146 (_initialize_macrocmd): Register `info_macro_command' in
5147 `infolist', not `showlist'.
5148
5149 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
5150
5151 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
5152 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
5153 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
5154 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
5155 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
5156 unconditionally.
5157 (set_mipsfpu_single_command, set_mipsfpu_double_command)
5158 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
5159 (_initialize_mips_tdep): Remove dead code.
5160 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
5161 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
5162 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
5163 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
5164 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
5165 MIPS_LAST_FP_ARG_REGNUM): Remove.
5166
5167 2002-06-11 Michal Ludvig <mludvig@suse.cz>
5168
5169 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
5170 (unwind_tmp_obstack_free, parse_frame_info)
5171 (update_context, cfi_read_fp, cfi_write_fp)
5172 (cfi_frame_chain, cfi_init_extra_frame_info)
5173 (cfi_virtual_frame_pointer): Use the above function.
5174 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
5175
5176 2002-06-11 Corinna Vinschen <vinschen@redhat.com>
5177
5178 * v850-tdep.c (v850_type_is_scalar): New function.
5179 (v850_use_struct_convention): Match current gcc implementation
5180 as close as possible.
5181 (v850_push_arguments): Fix stack_offset handling. Don't write
5182 struct_addr into register. This is done by v850_store_struct_return.
5183 (v850_extract_return_value): Care for structs.
5184 (v850_store_return_value): Ditto.
5185 (v850_store_struct_return): Actually write address.
5186
5187 2002-06-11 Michal Ludvig <mludvig@suse.cz>
5188
5189 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
5190 without debug information too.
5191
5192 2002-06-10 Andrew Cagney <ac131313@redhat.com>
5193
5194 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
5195 Make multi-arch pure.
5196 * gdbarch.h, gdbarch.c: Re-generate.
5197 * arm-tdep.c (arm_print_float_info): Update.
5198 * arch-utils.h (default_print_float_info): Update.
5199 * arch-utils.c (default_print_float_info): Update.
5200 * infcmd.c (float_info): Update call.
5201
5202 2002-06-10 Andrew Cagney <ac131313@redhat.com>
5203
5204 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
5205 the front of the initialize list.
5206
5207 2002-06-10 Andrew Cagney <ac131313@redhat.com>
5208
5209 * infrun.c (struct inferior_status): Replace fields
5210 selected_frame_address and selected_level with field
5211 selected_frame_id.
5212 (save_inferior_status): Update. Use get_frame_id.
5213 (struct restore_selected_frame_args): Delete.
5214 (restore_selected_frame): Update. Use frame_find_by_id.
5215 (restore_inferior_status): Update.
5216
5217 * breakpoint.h (struct breakpoint): Change type of
5218 watchpoint_frame to frame_id.
5219 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
5220 call to get_current_frame.
5221 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
5222 get_current_frame.
5223 (watchpoint_check): Use frame_find_by_id.
5224
5225 * frame.h (record_selected_frame): Delete declaration.
5226 * stack.c (record_selected_frame): Delete function.
5227
5228 * frame.h (struct frame_id): Define.
5229 (get_frame_id): Declare.
5230 (frame_find_by_id): Declare.
5231 * frame.c (frame_find_by_id): New function.
5232 (get_frame_id): New function.
5233
5234 2002-06-10 Andrey Volkov <avolkov@transas.com>
5235
5236 * ser-e7kpc.c: Fix duplicated define and call of
5237 _initialize_ser_e7000pc
5238
5239 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
5240
5241 * signals/signals.c (target_signal_from_host): Fix #ifdef
5242 SIGRTMIN case.
5243 (do_target_signal_to_host): Likewise.
5244
5245 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
5246
5247 * mips-tdep.c (mips_find_abi_section): New function.
5248 (mips_gdbarch_init): Call it.
5249
5250 2002-06-09 Mark Kettenis <kettenis@gnu.org>
5251
5252 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
5253 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
5254 after Andrew's 2002-06-08 gdbarch change.
5255
5256 2002-06-09 Mark Kettenis <kettenis@gnu.org>
5257
5258 * i386-linux-nat.c (suppy_gregset): Don't supply
5259 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
5260 register cache.
5261 (fill_gregset): Don't fetch it under the same circumstances.
5262
5263 2002-06-09 Andrew Cagney <cagney@redhat.com>
5264
5265 * Makefile.in (callback_h): Define.
5266 (remote_sim_h): Update path to remote-sim.h.
5267 (remote-rdp.o): Add $(callback_h).
5268 (remote-sim.o): Use $(callback_h).
5269 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
5270 * remote-rdp.c: Include "gdb/callback.h".
5271
5272 2002-06-09 Mark Kettenis <kettenis@gnu.org>
5273
5274 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
5275 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
5276
5277 2002-06-08 Andrew Cagney <ac131313@redhat.com>
5278
5279 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
5280 * rdi-share/serpardr.c: Ditto.
5281 * rdi-share/unixcomm.c: Ditto.
5282 * rdi-share/serdrv.c: Ditto.
5283 * rdi-share/hostchan.h: Ditto.
5284 * rdi-share/hostchan.c: Ditto.
5285 * rdi-share/host.h: Ditto.
5286 * rdi-share/devsw.c: Ditto.
5287
5288 * objfiles.h: Change type of obj_private to void pointer.
5289 * pa64solib.c: Update copyright. Don't include "assert.h", use
5290 strcmp instead of STREQ, use LONGEST, do not use PTR
5291 * somsolib.c: Ditto.
5292
5293 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
5294 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
5295 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
5296
5297 2002-06-08 Andrew Cagney <ac131313@redhat.com>
5298
5299 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
5300 (default_get_saved_register): Delete function.
5301 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
5302 generic_unwind_get_saved_register.
5303 * gdbarch.h, gdbarch.c: Re-generate.
5304
5305 2002-06-08 Andrew Cagney <ac131313@redhat.com>
5306
5307 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
5308 generic_func_frame_chain_valid.
5309 * gdbarch.h, gdbarch.c: Re-generate.
5310 * blockframe.c (generic_func_frame_chain_valid): Only check
5311 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
5312 passing FP to PC_IN_CALL_DUMMY.
5313 Fix PR gdb/360.
5314
5315 2002-06-08 Andrew Cagney <ac131313@redhat.com>
5316
5317 * gdbarch.sh (struct gdbarch_data): Add field init_p.
5318 (register_gdbarch_data): Initialize init_p.
5319 (gdbarch_data): Initialize data pointer using the init function.
5320 (init_gdbarch_data): Delete function.
5321 (gdbarch_update_p): Update.
5322 (initialize_non_multiarch): Update.
5323 (struct gdbarch): Add field initialized_p.
5324 * gdbarch.h, gdbarch.c: Re-generate.
5325
5326 2002-06-07 Michal Ludvig <mludvig@suse.cz>
5327
5328 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
5329 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
5330 better do the things actually here.
5331 * x86-64-tdep.c (x86_64_register_name2nr): New.
5332 (x86_64_register_name): Renamed to x86_64_register_nr2name.
5333 (x86_64_gdbarch_init): Respect the above change.
5334 * x86-64-tdep.h (x86_64_register_name2nr)
5335 (x86_64_register_nr2name): Add prototypes.
5336 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
5337
5338 2002-06-06 Michael Snyder <msnyder@redhat.com>
5339
5340 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
5341 Delete extra braces and re-indent.
5342 (d10v_store_return_value): Char return values
5343 must be shifted over by one byte in R0.
5344 (d10v_extract_return_value): Delete extra braces, re-indent.
5345
5346 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
5347
5348 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
5349 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
5350 (d10v_integer_to_address): Rewrite.
5351 (d10v_frame_init_saved_regs): When reading fp and sp registers use
5352 the d10v specific functions which take care of converting to the
5353 correct space.
5354
5355 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
5356
5357 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
5358 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
5359
5360 2002-06-02 Andrew Cagney <ac131313@redhat.com>
5361
5362 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
5363 includes.
5364 * config/tm-linux.h: Ditto.
5365 * config/alpha/tm-alphalinux.h: Ditto.
5366 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
5367 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
5368 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
5369 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
5370 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
5371 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
5372 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
5373 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
5374 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
5375 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
5376 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
5377 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
5378 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
5379 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
5380 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
5381 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
5382 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
5383 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
5384 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
5385 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
5386 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
5387 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
5388 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
5389 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
5390 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
5391 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
5392 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
5393 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
5394 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
5395 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
5396 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
5397 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
5398 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
5399 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
5400 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
5401 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
5402 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
5403
5404 2002-05-04 Aidan Skinner <aidan@velvet.net>
5405
5406 * ada-exp.tab.c: New file
5407 * ada-exp.y: New file
5408 * ada-lang.c: New file
5409 * ada-lang.h: New file
5410 * ada-lex.c: New file
5411 * ada-lex.l: New file
5412 * ada-tasks.c: New file
5413 * ada-typeprint.c: New file
5414 * ada-valprint.c: New file
5415
5416 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
5417
5418 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
5419 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
5420
5421 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
5422
5423 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
5424 insetead of ppc-linux-tdep.o.
5425 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
5426 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
5427
5428 2002-06-02 Andrew Cagney <ac131313@redhat.com>
5429
5430 2002-05-07 Christian Groessler <chris@groessler.org>
5431 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
5432 bit register contents for little endian hosts.
5433
5434 2002-06-01 Andrew Cagney <ac131313@redhat.com>
5435
5436 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
5437 any maintainer.
5438
5439 2002-06-01 Andrew Cagney <ac131313@redhat.com>
5440
5441 * gdbarch.h: Regenerate.
5442
5443 2002-06-01 Andrew Cagney <ac131313@redhat.com>
5444
5445 * MAINTAINERS: Add everyone to write-after-approval list.
5446
5447 2002-06-01 Andrew Cagney <ac131313@redhat.com>
5448
5449 * stack.c (frame_info): Use frame_register_unwind instead of
5450 saved_regs. Mention when the SP is on the stack or in a register.
5451
5452 * frame.h (frame_register_unwind_ftype): Define. Document.
5453 (struct frame_info): Add field register_unwind and
5454 register_unwind_cache.
5455 (frame_register_unwind): Declare.
5456 (generic_unwind_get_saved_register): Declare.
5457
5458 * frame.c (frame_register_unwind): New function.
5459 (generic_unwind_get_saved_register): New function.
5460
5461 * blockframe.c (generic_call_dummy_register_unwind): New function.
5462 (frame_saved_regs_register_unwind): New function.
5463 (set_unwind_by_pc): New function.
5464 (create_new_frame): New function.
5465 (get_prev_frame): New function.
5466
5467 2002-05-30 Andrew Cagney <ac131313@redhat.com>
5468
5469 * a29k-share/: Delete directory.
5470 * remote-vx29k.c: Delete file.
5471
5472 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5473
5474 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
5475 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
5476
5477 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5478
5479 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
5480 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
5481 (sparc64nbsd-nat.o)
5482 (sparcnbsd-nat.o)
5483 (sparcnbsd-tdep.o): New dependency lists.
5484 * NEWS: Note new UltraSPARC NetBSD native configuration.
5485 * configure.host (sparc64-*-netbsd*): New host.
5486 * configure.tgt (sparc-*-netbsdelf*)
5487 (sparc-*-netbsd*): Set gdb_target to nbsd.
5488 (sparc64-*-netbsd*): New target.
5489 * sparc64nbsd-nat.c: New file.
5490 * sparcnbsd-nat.c: New file.
5491 * sparcnbsd-tdep.c: New file.
5492 * sparcnbsd-tdep.h: New file.
5493 * config/sparc/nbsd.mt: New file.
5494 * config/sparc/nbsd64.mh: New file.
5495 * config/sparc/nbsd64.mt: New file.
5496 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
5497 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
5498 (HOST_IPC): Remove.
5499 * config/sparc/nbsdaout.mt: Remove.
5500 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
5501 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
5502 (HOST_IPC): Remove.
5503 * config/sparc/nbsdelf.mt: Remove.
5504 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
5505 sparc-nat.c compatiblity defines.
5506 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
5507 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
5508 * config/sparc/tm-nbsd64.h: New file.
5509 * config/sparc/tm-nbsdaout.h: Remove.
5510 * config/sparc/xm-nbsd.h: Remove.
5511
5512 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5513
5514 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
5515 * sparc-tdep.c: Include osabi.h.
5516 (gdbarch_tdep): Add osabi member.
5517 (_initialize_sparc_tdep): Use gdbarch_register.
5518 (sparc_gdbarch_init): Use generic OS ABI framework.
5519 (sparc_dump_tdep): New function.
5520
5521 2002-05-30 Kevin Buettner <kevinb@redhat.com>
5522
5523 * corefile.c (do_captured_read_memory_integer): Return non-zero
5524 result.
5525 (safe_read_memory_integer): Copy result of memory read when
5526 status is non-zero. Also, add comments.
5527
5528 2002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
5529
5530 * Makefile.in (ppc_tdep_h): Define.
5531 (ppc-linux-nat.o)
5532 (ppc-linux-tdep.o)
5533 (rs6000-tdep.o): Use $(ppc_tdep_h).
5534 (ppc-sysv-tdep.o)
5535 (ppcnbsd-nat.o)
5536 (ppcnbsd-tdep.o): New dependency lists.
5537 * ppc-tdep.h: Use generic OS ABI framework.
5538 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
5539 (ppc_linux_init_abi): New functions.
5540 (ppc_sysv_abi_broken_use_struct_convention)
5541 (ppc_sysv_abi_use_struct_convention)
5542 (ppc_sysv_abi_push_arguments): Move to...
5543 * ppc-sysv-tdep.c: ...here.
5544 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
5545 * rs6000-tdep.c (process_note_abi_tag_sections)
5546 (get_elfosabi): Remove.
5547 (rs6000_gdbarch_init): Use generic OS ABI framework.
5548 (rs6000_dump_tdep): New function.
5549 (_initialize_rs6000_tdep): Use gdbarch_register.
5550 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
5551 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
5552 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
5553 of ppc-linux-tdep.o.
5554 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
5555 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
5556 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
5557 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
5558 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
5559 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
5560
5561 2002-05-29 Jim Blandy <jimb@redhat.com>
5562
5563 * macroscope.c (default_macro_scope): Put `void' in empty argument
5564 list.
5565
5566 2002-05-29 Andrew Cagney <ac131313@redhat.com>
5567
5568 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
5569 * arch-utils.c: Include "sim-regno.h".
5570 * gdbarch.sh: Don't include "sim-regno.h".
5571 * gdbarch.h, gdbarch.c: Regenerate.
5572 * sim-regno.h (legacy_register_sim_regno): Move declaration from
5573 here.
5574 * arch-utils.h (legacy_register_sim_regno): To here.
5575 * remote-sim.c (legacy_register_sim_regno): Move function from
5576 here.
5577 * arch-utils.c (legacy_register_sim_regno): To here.
5578
5579 2002-05-28 Andrew Cagney <ac131313@redhat.com>
5580
5581 * sim-regno.h: New file.
5582 * Makefile.in (sim_regno_h): Define.
5583 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
5584 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
5585 (legacy_register_sim_regno): New function.
5586 (one2one_register_sim_regno): New function.
5587 (gdbsim_fetch_register): Rewrite.
5588 (gdbsim_store_register): Only store a register when
5589 REGISTER_SIM_REGNO is valid.
5590 * d10v-tdep.c: Include "sim-regno.h".
5591 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
5592 (d10v_ts3_register_sim_regno): Ditto.
5593 * gdbarch.sh: Include "sim-regno.h".
5594 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
5595 * gdbarch.h, gdbarch.c: Regenerate.
5596 * arch-utils.h (default_register_sim_regno): Delete declaration.
5597 * arch-utils.c (default_register_sim_regno): Delete function.
5598
5599 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
5600
5601 * ppcnbsd-nat.c: Rewrite.
5602 * ppcnbsd-tdep.c: New file.
5603 * ppcnbsd-tdep.h: New file.
5604 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
5605 solib.o, and solib-svr4.o.
5606 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
5607 nbsd-tdep.o, and corelow.o.
5608
5609 2002-05-28 Andrew Cagney <ac131313@redhat.com>
5610
5611 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
5612 `tr' and `sed'. Mention that `broken' targets are not expected to
5613 build.
5614
5615 2002-05-27 Michal Ludvig <mludvig@suse.cz>
5616
5617 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
5618 Let PC point right after the prologue before looking up symbols.
5619
5620 2002-05-27 Martin M. Hunt <hunt@redhat.com>
5621
5622 * i386-tdep.c (i386_register_virtual_type): Return
5623 builtin_type_vec128i for SSE registers.
5624
5625 * gdbtypes.h (builtin_type_vec128i): Declare.
5626
5627 * gdbtypes.c (build_builtin_type_vec128i): New function.
5628 (builtin_type_v2_double, builtin_type_v4_int64): New types.
5629 (builtin_type_vec128i): New type for SSE2 128-bit registers.
5630 (build_gdbtypes): Initialize new builtin vector types.
5631 (_initialize_gdbtypes): Register new vector types with gdbarch.
5632
5633 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5634
5635 * MAINTAINERS: ns32k is not longer an obsolete candidate,
5636 since it has been multi-arch'd.
5637 * NEWS: Note that ns32k-*-* is now partial multi-arch.
5638 Move Alpha and VAX multi-arch news entries to same section
5639 as other multi-arch news.
5640
5641 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5642
5643 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
5644 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
5645 static. Rename some register numbers to put them in ns32k-tdep
5646 private namespace.
5647 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
5648 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
5649 functions.
5650 (_initialize_ns32k_tdep): Use gdbarch_register.
5651 * ns32k-tdep.h: New file.
5652 * ns32knbsd-tdep.c: New file.
5653 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
5654 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
5655 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
5656 REGISTER_BYTES, REGISTER_BYTE): Remove.
5657 * config/ns32k/tm-ns32k.h: New file.
5658 * config/ns32k/tm-umax.h: Remove.
5659
5660 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5661
5662 * ns32k-tdep.c (ns32k_saved_pc_after_call,
5663 ns32k_store_struct_return, ns32k_extract_return_value,
5664 ns32k_store_return_value, ns32k_extract_struct_value_address): New
5665 functions.
5666 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
5667 ns32k_saved_pc_after_call.
5668 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
5669 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
5670 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
5671 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
5672 ns32k_extract_struct_value_address.
5673
5674 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5675
5676 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
5677 ns32k_fix_call_dummy): New.
5678 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
5679 ns32k_call_dummy_words.
5680 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
5681 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
5682 CALL_DUMMY_NARGS): Remove.
5683 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
5684
5685 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5686
5687 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
5688 ns32k_frame_saved_pc, ns32k_frame_args_address,
5689 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
5690 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
5691 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
5692 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
5693 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
5694 (BREAKPOINT): Remove..
5695 (FRAME_CHAIN): Define as ns32k_frame_chain.
5696 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
5697 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
5698 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
5699 (FRAME_FIND_SAVED_REGS): Remove.
5700 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
5701 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
5702 (POP_FRAME): Define as ns32k_pop_frame.
5703
5704 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5705
5706 * ns32k-tdep.c (ns32k_register_byte_32082,
5707 ns32k_register_byte_32382, ns32k_register_raw_size,
5708 ns32k_register_virtual_size, ns32k_register_virtual_type): New
5709 functions.
5710 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
5711 ns32k_register_byte_32382.
5712 * config/ns32k/tm-umax.h: Update copyright years.
5713 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
5714 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
5715 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
5716 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
5717 (ns32k_get_enter_addr): Fix prototype.
5718
5719 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5720
5721 * ns32k-tdep.c: Update copyright years.
5722 (ns32k_register_name_32082): New function.
5723 (ns32k_register_name_32382): Ditto.
5724 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
5725 (REGISTER_NAME): Define as ns32k_register_name_32382.
5726 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
5727 (REGISTER_NAME): Define as ns32k_register_name_32082.
5728
5729 2002-05-24 Jim Blandy <jimb@redhat.com>
5730
5731 * dwarf2read.c (free_line_header): Use xfree, not free.
5732
5733 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
5734
5735 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
5736 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
5737
5738 2002-05-23 Andrew Cagney <ac131313@redhat.com>
5739
5740 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
5741
5742 2002-05-23 Andrew Cagney <ac131313@redhat.com>
5743
5744 From Ross Alexander at NEC Europe:
5745 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
5746
5747 2002-05-23 Michael Snyder <msnyder@redhat.com>
5748
5749 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
5750 for input, rather than parse_and_eval_address.
5751
5752 2002-05-23 Andrew Cagney <ac131313@redhat.com>
5753
5754 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
5755 * Makefile.in (sim_d10v_h): Update definition.
5756
5757 2002-05-24 Andrew Cagney <cagney@redhat.com>
5758
5759 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
5760 change `2002-05-22 Michael Snyder' below.
5761 (d10v_push_arguments): Ditto.
5762 (d10v_extract_return_value): Ditto.
5763
5764 2002-05-23 Jim Blandy <jimb@redhat.com>
5765
5766 * macrotab.c (check_for_redefinition): Don't complain if the new
5767 definition is the same as the previous one. Take more arguments
5768 to allow the comparison.
5769 (macro_define_object, macro_define_function): Pass more arguments
5770 to check_for_redefinition.
5771
5772 2002-05-22 Michael Snyder <msnyder@redhat.com>
5773
5774 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
5775 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
5776 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
5777 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
5778 Don't bail if return_pc is PC_IN_CALL_DUMMY.
5779 Add a temp variable to save a call (and a memory read).
5780 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
5781 if possible (so that PC_IN_CALL_DUMMY will work).
5782
5783 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
5784
5785 * MAINTAINERS: Remove status `OBSOLETE' from v850.
5786
5787 2002-05-22 Michal Ludvig <mludvig@suse.cz>
5788
5789 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
5790 fde->cie_ptr.
5791 (dwarf2_build_frame_info): Corrected handling of eh_frame.
5792 (dwarf2_build_frame_info): Add offset to fde->initial_location
5793 so that frames of shared libraries are mapped correctly.
5794 (execute_stack_op): Change type of 'result' from ULONGEST to
5795 CORE_ADDR.
5796
5797 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5798
5799 * config/alpha/tm-nbsd.h: Include solib.h.
5800
5801 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5802
5803 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
5804 assumptions about the host's byte order.
5805
5806 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5807
5808 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
5809 to dependency list.
5810 * alphanbsd-tdep.c: Include solib-svr4.h.
5811 * shnbsd-tdep.c: Ditto.
5812
5813 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5814
5815 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
5816 nbsd-tdep.h to dependency list.
5817 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
5818 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
5819 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
5820 nbsdaout.mh and nbsdelf.mh consistently.
5821 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
5822 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
5823 nbsdaout.mt and nbsdelf.mh consistently.
5824 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
5825 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
5826 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
5827 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
5828 a.out shared library stuff from here...
5829 * config/nm-nbsdaout.h: ...to here.
5830 * config/tm-nbsd.h: Remove.
5831 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
5832 * config/arm/nbsd.mh: Remove.
5833 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
5834 nbsd-tdep.o.
5835 * config/arm/nbsdaout.mh: New file.
5836 * config/arm/nbsdelf.mh: New file.
5837 * config/arm/nm-nbsdaout.h: New file.
5838 * config/i386/nbsd.mh: Remove.
5839 * config/i386/nbsd.mt: Remove.
5840 * config/i386/nbsdaout.mh: New file.
5841 * config/i386/nbsdaout.mt: New file.
5842 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
5843 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
5844 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
5845 i386_register_u_addr): Remove.
5846 * config/i386/nm-nbsdaout.h: New file.
5847 * config/i386/nm-nbsdelf.h: Remove.
5848 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
5849 (USE_STRUCT_CONVENTION): Remove.
5850 * config/i386/tm-nbsdaout.h: New file.
5851 * config/i386/tm-nbsdelf.h: Remove.
5852 * config/m68k/nbsd.mh: Remove.
5853 * config/m68k/nbsd.mt: Remove.
5854 * config/m68k/nbsdaout.mh: New file.
5855 * config/m68k/nbsdaout.mt: New file.
5856 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
5857 * config/m68k/nm-nbsdaout.h: New file.
5858 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
5859 (IN_SOLIB_CALL_TRAMPOLINE): Define.
5860 * config/ns32k/nbsd.mh: Remove.
5861 * config/ns32k/nbsd.mt: Remove.
5862 * config/ns32k/nbsdaout.mh: New file.
5863 * config/ns32k/nbsdaout.mt: New file.
5864 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
5865 * config/ns32k/nm-nbsdaout.h: New file.
5866 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
5867 (IN_SOLIB_CALL_TRAMPOLINE): Define.
5868 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
5869 (SVR4_SHARED_LIBS): Remove.
5870 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
5871 * config/sparc/nbsd.mh: Remove.
5872 * config/sparc/nbsd.mt: Remove.
5873 * config/sparc/nbsdaout.mh: New file.
5874 * config/sparc/nbsdaout.mt: New file.
5875 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
5876 * config/sparc/nbsdelf.mt: New file.
5877 * config/sparc/nm-nbsdaout.h: New file.
5878 * config/sparc/nm-nbsdelf.h: Remove.
5879 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
5880 * config/sparc/tm-nbsdaout.h: New file.
5881
5882 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5883
5884 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
5885 mipsnbsd-tdep.c
5886 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
5887
5888 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5889
5890 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
5891 shnbsd-nat.c.
5892 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
5893
5894 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5895
5896 * NEWS: Note new MIPS NetBSD native configuration.
5897 * configure.host (mips*-*-netbsd*): New host.
5898 * configure.tgt (mips*-*-netbsd*): New target.
5899 * mipsnbsd-nat.c: New file.
5900 * mipsnbsd-tdep.c: New file.
5901 * mipsnbsd-tdep.h: New file.
5902 * config/mips/nbsd.mh: New file.
5903 * config/mips/nbsd.mt: New file.
5904 * config/mips/nm-nbsd.h: New file.
5905 * config/mips/tm-nbsd.h: New file.
5906
5907 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5908
5909 * Makefile.in (SFILES): Add osabi.c.
5910 (COMMON_OBS): Add osabi.o.
5911 (osabi.o): New dependency list.
5912 * osabi.c: New file.
5913 * osabi.h: New file.
5914 * doc/gdbint.texinfo: Document new generic OS ABI framework.
5915
5916 * Makefile.in (alpha_tdep_h): Define and use instead of
5917 alpha-tdep.h.
5918 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
5919 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
5920 Remove.
5921 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
5922 * alpha-tdep.h: Include osabi.h.
5923 (alpha_abi): Remove.
5924 (gdbarch_tdep): Use generic OS ABI framework.
5925 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
5926 gdbarch_register_osabi.
5927 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
5928 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
5929 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
5930
5931 * Makefile.in (sh_tdep_h): Add osabi.h.
5932 * sh-tdep.h (sh_osabi): Remove.
5933 (gdbarch_tdep): Use generic OS ABI framework.
5934 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
5935 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
5936 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
5937 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
5938
5939 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
5940 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
5941 gdbarch_register_osabi.
5942 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
5943 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
5944 (get_elfosabi): Rename to...
5945 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
5946 ABI framework support routines.
5947 (arm_gdbarch_init): Use generic OS ABI framework.
5948 (arm_dump_tdep): Likewise.
5949 (_initialize_arm_tdep): Likewise.
5950 * arm-tdep.h: Include osabi.h.
5951 (arm_abi): Remove.
5952 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
5953 osabi member.
5954 (arm_gdbarch_register_os_abi): Remove prototype.
5955 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
5956 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
5957
5958 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
5959 * mips-tdep.c: Include osabi.h.
5960 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
5961 OS ABI framework.
5962
5963 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
5964
5965 * h8300-tdep.c: Fix formatting.
5966
5967 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
5968
5969 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
5970 printing vector registers.
5971
5972 2002-05-19 Andrew Cagney <ac131313@redhat.com>
5973
5974 From Fernando Nasser:
5975 * remote.c (remote_async_open_1): Re-throw the exception when the
5976 connection fails.
5977 (remote_cisco_open): Ditto.
5978 (remote_open_1): Ditto.
5979
5980 2002-05-19 Andrew Cagney <ac131313@redhat.com>
5981
5982 * remote.c (remote_start_remote_dummy): Add uiout parameter.
5983 (remote_start_remote): Add uiout parameter. Pass through to
5984 remote_start_remote_dummy.
5985 (remote_open_1): Use catch_exception instead of catch_errors.
5986 (remote_async_open_1): Ditto.
5987 (remote_cisco_open): Ditto.
5988
5989 2002-05-19 Andrew Cagney <ac131313@redhat.com>
5990
5991 * remote.c (remote_start_remote): Replace PTR with void pointer.
5992 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
5993 static.
5994
5995 2002-05-18 Andrew Cagney <ac131313@redhat.com>
5996
5997 * gdb_indent.sh: Allow the script to be run in the sim directory.
5998
5999 2002-05-18 Mark Kettenis <kettenis@gnu.org>
6000
6001 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
6002 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
6003
6004 * corelow.c (core_open): Only call set_gdbarch_from_file if
6005 exec_bfd is NULL.
6006
6007 2002-05-17 Andrey Volkov <avolkov@transas.com>
6008
6009 * h8300-tdep.c: Add support of EXR register
6010 * config/h8300/tm-h8300.h: Ditto.
6011
6012 2002-05-17 Andrey Volkov <avolkov@transas.com>
6013
6014 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
6015
6016 2002-05-17 Andrey Volkov <avolkov@transas.com>
6017
6018 * h8300-tdep.c: Change literal regnums to REGNO.
6019
6020 2002-05-17 Jim Blandy <jimb@redhat.com>
6021
6022 * NEWS: Note addition of macro support.
6023
6024 Expand preprocessor macros in C expressions.
6025 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
6026 (scan_macro_expansion, scanning_macro_expansion,
6027 finished_macro_expansion): New function declarations.
6028 (expression_macro_lookup_func, expression_macro_lookup_baton): New
6029 variable declarations.
6030 * parser-defs.h (expression_context_pc): New declaration.
6031 * parse.c (expression_context_pc): New variable.
6032 (parse_exp_1): Set expression_context_pc, as well as
6033 expression_context_block.
6034 * c-exp.y (yylex): If we're not already reading the result of a
6035 macro expansion, try to macro-expand the next token. When we're
6036 done scanning a macro expansion, switch back to the mainline text.
6037 Commas and `if's in a macro's expansion don't terminate the input.
6038 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
6039 (macro_original_text, macro_expanded_text,
6040 expression_macro_lookup_func, expression_macro_lookup_baton): New
6041 variables.
6042 (scan_macro_expansion, scanning_macro_expansion,
6043 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
6044 c_preprocess_and_parse): New functions.
6045 (c_language_defn, cplus_language_defn, asm_language_defn): Call
6046 c_preprocess_and_parse, instead of c_parse.
6047 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
6048 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
6049
6050 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
6051
6052 * sh-tdep.c (gdb_print_insn_sh64): Delete.
6053 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
6054 (sh_gdbarch_init): Always use gdb_print_insn_sh.
6055
6056 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
6057
6058 * NEWS: Add section for multi-arched targets. Add v850 to that section.
6059
6060 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
6061
6062 * Makefile.in (sh_tdep_h): Define and use.
6063 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
6064 register enum): Move to...
6065 * * sh-tdep.h: ...here.
6066 * sh-tdep.c: Include sh-tdep.h.
6067 * sh3-rom.c: Likewise.
6068 * shnbsd-tdep.c: Likewise.
6069
6070 2002-05-16 Michael Snyder <msnyder@redhat.com>
6071
6072 * arm-tdep.c: Spelling fix in comment.
6073
6074 2002-05-16 Jim Blandy <jimb@redhat.com>
6075
6076 Add commands for manually expanding macros and showing their
6077 definitions.
6078 * macrocmd.c, macroscope.c, macroscope.h: New files.
6079 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
6080 (macroscope_h): New variable.
6081 (HFILES_NO_SRCDIR): Add macroscope.h.
6082 (COMMON_OBS): Add macrocmd.o, macroscope.o.
6083 (macroscope.o, macrocmd.o): New rules.
6084
6085 Teach the Dwarf 2 reader to read macro information.
6086 * dwarf2read.c: #include "macrotab.h".
6087 (dwarf_macinfo_buffer): New variable.
6088 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
6089 dwarf_macinfo_size.
6090 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
6091 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
6092 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
6093 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
6094 dwarf2_macro_spaces_in_definition): New complaints.
6095 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
6096 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
6097 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
6098 the partial symbol table.
6099 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
6100 from what's recorded in the partial symbol table.
6101 (read_file_scope): If the compilation unit has a
6102 `DW_AT_macro_info' attribute, read its macro information.
6103 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
6104
6105 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
6106
6107 Fix PR gdb/546
6108 * ser-tcp.c: Don't include <netinet/udp.h>.
6109
6110 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
6111
6112 * MAINTAINERS: Update my email address.
6113
6114 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
6115
6116 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
6117 include file of the same name.
6118
6119 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
6120
6121 * configure.tgt: Mark v850 as multi-arched.
6122 * config/v850/tm-v850.h: Remove file.
6123 * config/v850/v850.mt: Eliminate TM_FILE.
6124
6125 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
6126
6127 * v850-tdep.c: Full multi-arch.
6128 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
6129 Define GDB_MULTI_ARCH to 2.
6130
6131 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
6132
6133 * p-exp.y (current_type): New static variable.
6134 Carries the type of the expression at the position that is parsed.
6135 (push_current_type, pop_current_type): Two new functions. Used
6136 to store/restore current_type in expression on specific tokens.
6137 (search_field): New static variable. Set to one after parsing a point
6138 as at that point only a FIELDNAME token should be searched.
6139 (FIELDNAME): New token. After a point only a token belonging to
6140 current_type type definition is allowed.
6141 (all over token rules): reset and change current_type according
6142 to rules.
6143 (exp '[' rule): insert implicit array index field if
6144 exp is a pascal string type.
6145
6146 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
6147
6148 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
6149 frame info. Use frame_info's saved_regs instead of matching member
6150 in extra_frame_info throughout.
6151 (v850_frame_init_saved_regs): New function.
6152 (v850_init_extra_frame_info): Move most functionality into
6153 v850_frame_init_saved_regs().
6154 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
6155 (v850_frame_find_saved_regs): Remove declaration.
6156 (FRAME_FIND_SAVED_REGS): Remove definition.
6157 (v850_frame_init_saved_regs): Add declaration.
6158 (FRAME_INIT_SAVED_REGS): Add definition.
6159
6160 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
6161
6162 * v850-tdep.c: Begin multi-arch'ing v850.
6163 (v850_target_architecture_hook): Remove function.
6164 (v850_gdbarch_init): New function. Add code previously in
6165 v850_target_architecture_hook().
6166 (_initialize_v850_tdep): Don't set target_architecture_hook.
6167 Call register_gdbarch_init() instead.
6168
6169 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
6170
6171 * gdbtypes.h (struct cplus_struct_type): Remove args field.
6172 * hpread.c (hpread_read_struct_type): Remove assignments to args.
6173 (fixup_class_method_type): Likewise.
6174
6175 2002-05-15 Jim Blandy <jimb@redhat.com>
6176
6177 Add macro structures to GDB's symbol tables. Nobody puts anything
6178 in them yet.
6179 * symtab.h (struct symtab): New member: `macro_table'.
6180 * buildsym.h (pending_macros): New global variable.
6181 * buildsym.c: #include "macrotab.h".
6182 (buildsym_init): Initialize `pending_macros'.
6183 (end_symtab): If we found macro information while reading a CU's
6184 debugging info, do build a symtab structure for it. Make the
6185 symtab point to the macro information, and clear the
6186 `pending_macros' pointer which held it while we were reading the
6187 debug info.
6188 (really_free_pendings): Free any pending macro table.
6189 * objfiles.h (struct objfile): New member: `macro_cache'.
6190 * objfiles.c (allocate_objfile): Set allocate and free functions
6191 for the macro cache's objstack.
6192 (free_objfile): Empty the macro cache's obstack.
6193 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
6194 set new allocate and free functions for it.
6195 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
6196 free functions for the macro cache's objstack. (Why is this
6197 function building its own objfile?)
6198 * symmisc.c (print_objfile_statistics): Print statistics on the
6199 macro bcache.
6200 * Makefile.in: Note that buildsym.o depends on macrotab.h.
6201
6202 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
6203
6204 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
6205 (REGISTER_U_ADDR): Delete definition.
6206 (arm_register_u_addr): Delete declaration.
6207
6208 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
6209
6210 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
6211 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
6212
6213 2002-05-14 Andrew Cagney <ac131313@redhat.com>
6214
6215 * regcache.c (register_valid): Revise comments refering to "Not
6216 available" and "unavailable".
6217 * frame.c (frame_register_read): Ditto.
6218 * findvar.c (value_of_register): Ditto.
6219
6220 2002-05-15 Andrew Cagney <cagney@redhat.com>
6221
6222 * Makefile.in (remote_sim_h): Replace remote-sim_h.
6223 (remote-sim.o): Update dependencies.
6224 (d10v-tdep.o): Specify dependencies.
6225 (sim_d10v_h): Define.
6226
6227 2002-05-14 Jim Blandy <jimb@redhat.com>
6228
6229 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
6230 * macrotab.c (macro_lookup_inclusion, find_definition,
6231 new_macro_table): Same.
6232
6233 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
6234 not `! strcmp ()'. This is a dubious improvement.
6235 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
6236
6237 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
6238 although it's not necessary, to avoid a warning.
6239
6240 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
6241
6242 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
6243 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
6244 TYPE_INSTANCE_FLAGS.
6245 (struct main_type): New.
6246 (struct type): Move most members to struct main_type. Change
6247 cv_type and as_type to new type_chain member. Add instance_flags.
6248 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
6249 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
6250 (finish_cv_type): Remove prototype.
6251 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
6252 Set TYPE_CHAIN.
6253 (alloc_type_instance): New function.
6254 (smash_type): New function.
6255 (make_pointer_type, make_reference_type, make_function_type)
6256 (smash_to_member_type, smash_to_method_type): Call smash_type.
6257 (make_qualified_type): New function.
6258 (make_type_with_address_space): Call make_qualified_type.
6259 (make_cv_type): Likewise.
6260 (finish_cv_type): Remove unnecessary function.
6261 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
6262 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
6263 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
6264 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
6265 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
6266 * hpread.c (hpread_read_struct_type): Likewise.
6267 * stabsread.c (read_struct_type): Likewise.
6268
6269 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
6270
6271 * configure.tgt: Add a catch all sh* target, for cases like
6272 sh[2,3,4]-elf and sh-hms.
6273
6274 2002-05-14 Keith Seitz <keiths@redhat.com>
6275
6276 * event-loop.c (create_file_handler): Don't do anything but
6277 update data when we are given a fd which we are already
6278 monitoring.
6279
6280 2002-05-14 Michal Ludvig <mludvig@suse.cz>
6281
6282 * dwarf2cfi.c (context_cpy): Copy registers correctly.
6283 (update_context): Use __func__ in warnings.
6284
6285 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
6286
6287 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
6288 and tcp_close to net_open and net_close.
6289 (net_open): Accept "udp:" and "tcp:" specifications. Connect
6290 using UDP if requested. Don't try to disable Nagle on UDP
6291 sockets.
6292 * remote.c (remote_serial_open): New function. Warn about UDP.
6293 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
6294
6295 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
6296
6297 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
6298
6299 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
6300
6301 * configure.tgt: Remove sh-hms target.
6302 * MAINTAINERS: Don't list sh-hms as a separate target.
6303
6304 2002-05-13 Jim Blandy <jimb@redhat.com>
6305
6306 Add first preprocessor macro-expansion files.
6307 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
6308 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
6309 (splay_tree_h, macroexp_h, macrotab_h): New variable.
6310 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
6311 (COMMON_OBS): Add macrotab.o, macroexp.o.
6312 (macroexp.o, macrotab.o): New rules.
6313
6314 2002-05-13 Andrew Cagney <ac131313@redhat.com>
6315
6316 * config/m88k/tm-m88k.h: Update copyright.
6317 (m88k_target_write_pc): Declare
6318 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
6319 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
6320 (SHIFT_INST_REGS): Update definition.
6321 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
6322 using old definition of TARGET_WRITE_PC.
6323 * regcache.c (generic_target_write_pc): Delete code handling
6324 NNPC_REGNUM.
6325 * gdbarch.sh (NNPC_REGNUM): Delete.
6326 * gdbarch.h, gdbarch.c: Regenerate.
6327
6328 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
6329
6330 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
6331 builtin reg number.
6332
6333 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
6334
6335 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
6336 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
6337 (gen_address_of, gen_struct_ref, gen_repeat): Use type
6338 access macros.
6339 * c-typeprint.c (cp_type_print_method_args): Likewise.
6340 (c_type_print_args): Likewise.
6341 * d10v-tdep.c (d10v_push_arguments): Likewise.
6342 (d10v_extract_return_value): Likewise.
6343 * expprint.c (print_subexp): Likewise.
6344 * gdbtypes.c (lookup_primitive_typename): Likewise.
6345 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
6346 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
6347 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
6348 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
6349 (TYPE_VECTOR): Likewise.
6350 * hpread.c (hpread_read_struct_type)
6351 (fix_static_member_physnames, fixup_class_method_type)
6352 (hpread_type_lookup): Likewise.
6353 * mdebugread.c (parse_symbol, parse_type): Likewise.
6354 * p-lang.c (is_pascal_string_type): Likewise.
6355 * valops.c (hand_function_call): Likewise.
6356 * x86-64-tdep.c (classify_argument): Likewise.
6357
6358 * hpread.c (hpread_read_function_type)
6359 (hpread_read_doc_function_type): Call replace_type.
6360 * dstread.c (create_new_type): Delete.
6361 (decode_dst_structure, process_dst_function): Call alloc_type.
6362 Use type access macros.
6363
6364 2002-05-12 Mark Kettenis <kettenis@gnu.org>
6365
6366 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
6367 the're not supported by the current architecture.
6368 (i387_fill_fxsave): Likewise.
6369
6370 2002-05-12 Fred Fish <fnf@redhat.com>
6371
6372 * symfile.c (default_symfile_offsets): Arrange for uninitialized
6373 sect_index_xxx members to index the first slot in section_offsets
6374 if all of the section_offsets are zero.
6375
6376 2002-05-12 Mark Kettenis <kettenis@gnu.org>
6377
6378 * configure.tgt (sparc-*openbsd): Remove entry accidentially
6379 checked in with last change.
6380
6381 2002-05-12 Mark Kettenis <kettenis@gnu.org>
6382
6383 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
6384 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
6385 config.sub.
6386
6387 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
6388
6389 * Makefile.in: Update dependencies.
6390
6391 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6392
6393 * language.c (local_hex_string_custom): Simplify. Do not depend
6394 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
6395
6396 * memattr.c (mem_info_command): Replace calls to
6397 longest_local_hex_string and longest_local_hex_string_custom.
6398 * buildsym.c (make_blockvector): Ditto.
6399 * solib.c (info_sharedlibrary_command): Ditto.
6400 * tracepoint.c (tracepoints_info): Ditto.
6401 * symtab.c (print_msymbol_info): Ditto.
6402
6403 * language.c (local_hex_string): Delete.
6404 (local_hex_string_custom): Delete.
6405 (longest_local_hex_string): Rename to local_hex_string.
6406 (longest_local_hex_string_custom): Rename to
6407 local_hex_string_custom.
6408 * language.h (local_hex_string): Change parameter type to LONGEST.
6409 (local_hex_string_custom): Ditto.
6410 (longest_local_hex_string): Delete declaration.
6411 (longest_local_hex_string_custom): Ditto.
6412
6413 * solib.c: Update copyright.
6414 * memattr.c: Update copyright.
6415
6416 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6417
6418 * arch-utils.h (legacy_register_to_value): Declare.
6419 (legacy_value_to_register): Declare.
6420 (legacy_convert_register_p): Declare.
6421 * arch-utils.c (legacy_register_to_value): New function.
6422 (legacy_value_to_register): New function.
6423 (legacy_convert_register_p): New function.
6424
6425 * gdbarch.sh (REGISTER_TO_VALUE): Define.
6426 (VALUE_TO_REGISTER): Define.
6427 (CONVERT_REGISTER_P): Define.
6428 * gdbarch.h, gdbarch.c: Regenerate.
6429
6430 * valops.c (value_assign): Use CONVERT_REGISTER_P and
6431 VALUE_TO_REGISTER.
6432 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
6433 CONVERT_REGISTER_P.
6434
6435 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
6436 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
6437
6438 * Makefile.in: Update dependencies for valops.c.
6439 * valops.c: Include "gdb_assert.h".
6440 (typecmp): Skip THIS parameter to methods.
6441 (find_method_list): Remove static_memfuncp argument,
6442 update callers. Check for stub methods.
6443 (find_value_oload_method_list): Don't set *static_memfuncp.
6444 (find_overload_match): Don't check for stub methods. Assert
6445 that methods are not stubbed. Handle static methods.
6446 (value_find_oload_method_list): Remove static_memfuncp argument.
6447 * gdbtypes.c (check_stub_method): Do not add THIS pointer
6448 to the argument list for static stub methods.
6449 * value.h (value_find_oload_method_list): Update prototype.
6450
6451 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6452
6453 * arch-utils.h (generic_register_size): Declare.
6454 (generic_register_raw_size, generic_register_virtual_size): Delete
6455 declarations.
6456 * arch-utils.c (generic_register_raw_size): Delete.
6457 (generic_register_size): New function.
6458 (generic_register_virtual_size): Delete.
6459
6460 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
6461 default generic_register_size.
6462 * gdbarch.h, gdbarch.c: Re-generate.
6463
6464 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
6465 register_virtual_size.
6466 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
6467 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6468
6469 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6470
6471 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
6472 * gdbarch.h, gdbarch.c: Regenerate.
6473 * gnu-v3-abi.c: Update copyright.
6474 (vtable_address_point_offset): Update.
6475 (gnuv3_rtti_type): Update.
6476 (gnuv3_baseclass_offset): Update.
6477 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
6478 (init_fetch_link_map_offsets): Update.
6479 * remote.c (get_remote_state): Update.
6480
6481 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
6482
6483 * TODO: Remove value_headof/value_from_vtable_info comment.
6484 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
6485 * values.c (value_headof, value_from_vtable_info): Delete.
6486 * value.h (value_from_vtable_info): Delete prototype.
6487
6488 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6489
6490 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
6491 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
6492 $(gdb_regex_h).
6493 (gdb_assert_h): Define.
6494 (gdb_wait_h): Define.
6495 (gdb_regex_h): Define.
6496
6497 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
6498
6499 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
6500 * linespec.c (find_methods): Handle GCC 3.x template constructors.
6501
6502 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6503
6504 * nbsd-tdep.c: Fix comment.
6505
6506 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6507
6508 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
6509 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
6510 (nbsd-tdep.o): New dependency list.
6511 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
6512 nbsd-tdep.h.
6513 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
6514 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
6515 * nbsd-tdep.c: New file.
6516 * nbsd-tdep.h: New file.
6517 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
6518 nbsd-tdep.h.
6519 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
6520 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
6521 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
6522 * config/sh/nbsd.mt (TDEPFILES): Ditto.
6523
6524 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6525
6526 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
6527 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
6528 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
6529 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
6530 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
6531 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
6532
6533 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6534
6535 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
6536 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6537 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
6538 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
6539 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
6540 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
6541 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
6542
6543 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6544
6545 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
6546 fetch_elfcore_registers to...
6547 * i386nbsd-tdep.c: ...here.
6548 (i386nbsd_use_struct_convention): Rename to...
6549 (i386nbsd_aout_use_struct_convention): ...this.
6550 (i386nbsd_supply_reg): New function.
6551 (i386nbsd_fill_reg): New function.
6552 (fetch_core_registers): Use i386nbsd_supply_reg.
6553 (fetch_elfcore_registers): Likewise.
6554 (_initialize_i386nbsd_tdep): New function.
6555 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
6556 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6557 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
6558 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
6559 (i386nbsd_aout_use_struct_convention): ...this.
6560
6561 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6562
6563 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
6564 (store_inferior_registers): Use shnbsd_fill_reg.
6565 * shnbsd-tdep.c (sh_nbsd_supply_registers,
6566 sh_nbsd_supply_register): Collapse into...
6567 (shnbsd_supply_reg): ...this.
6568 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
6569 (shnbsd_fill_reg): ...this.
6570 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
6571 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
6572 (fetch_core_registers): Use shnbsd_supply_reg.
6573 (fetch_elfcore_registers): Use shnbsd_supply_reg.
6574 (sh_nbsd_core_fns): Rename to...
6575 (shnbsd_core_fns): ...this.
6576 (sh_nbsd_elfcore_fns): Rename to...
6577 (shnbsd_elfcore_fns): ...this.
6578 (sh_nbsd_init_abi): Rename to...
6579 (shnbsd_init_abi): ...this.
6580 (_initialize_sh_nbsd_tdep): Rename to...
6581 (_initialize_shnbsd_tdep): ...this.
6582 * shnbsd-tdep.h (sh_nbsd_supply_registers,
6583 sh_nbsd_supply_register, sh_nbsd_fill_registers,
6584 sh_nbsd_fill_register): Remove prototypes.
6585 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
6586
6587 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6588
6589 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
6590 (i387-nat.o): Delete dependency list.
6591 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
6592 (x86-64-linux-nat.o): Likewise.
6593 * i387-nat.c: Delete file, moving contents to...
6594 * i387-tdep.c: ...here.
6595 * i387-nat.h: Rename...
6596 * i387-tdep.h: ...to this.
6597 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
6598 * i386-linux-nat.c: Likewise.
6599 * i386bsd-nat.c: Likewise.
6600 * i386gnu-nat.c: Likewise.
6601 * i386nbsd-nat.c: Likewise.
6602 * i386v4-nat.c: Likewise.
6603 * x86-64-linux-nat.c: Likewise.
6604 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
6605 * config/i386/go32.mh (NATDEPFILES): Likewise.
6606 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
6607 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
6608 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
6609 * config/i386/linux.mh (NATDEPFILES): Likewise.
6610 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
6611 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6612 * config/i386/obsd.mh (NATDEPFILES): Likewise.
6613 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
6614
6615 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6616
6617 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
6618 (alphanbsd-nat.o): Remove dependency list.
6619 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
6620 * alphanbsd-nat.c: Delete. Contents moved to...
6621 * alphanbsd-tdep.c: ...here.
6622 (_initialize_alphanbsd_tdep): Register core functions.
6623 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
6624
6625 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6626
6627 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
6628 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
6629 (alphanbsd-nat.o): Likewise.
6630 (alphabsd-tdep.o): New dependency list.
6631 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
6632 (fill_gregset): Use alphabsd_fill_reg.
6633 (supply_fpregset): Use alphabsd_supply_fpreg.
6634 (fill_fpregset): Use alphabsd_fill_fpreg.
6635 (fetch_inferior_registers): Use struct reg and struct fpreg
6636 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
6637 and alphabsd_supply_fpreg.
6638 (store_inferior_registers): Use struct reg and struct fpreg
6639 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
6640 and alphabsd_fill_fpreg.
6641 * alphabsd-tdep.c: New file.
6642 * alphabsd-tdep.h: New file.
6643 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
6644 (fetch_elfcore_registers): Use alphabsd_supply_reg and
6645 alphabsd_supply_fpreg.
6646 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
6647 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
6648
6649 2002-05-11 Eric Christopher <echristo@redhat.com>
6650
6651 * mips-tdep.c (mips_double_register_type): Fix thinko.
6652 (mips_single_register_type): Ditto.
6653 * MAINTAINERS: Add self.
6654
6655 2002-05-11 Mark Kettenis <kettenis@gnu.org>
6656
6657 * i387-nat.c (i387_supply_register, i387_fill_fsave,
6658 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
6659 right thing on architectures with different endianness and/or
6660 integer sizes.
6661
6662 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
6663
6664 From Christian Limpach <chris@Pin.LU>
6665 * configure.in: Change sed expression which comments out
6666 NATDEPFILES to also comment out continuation lines.
6667 * configure: Regenerate.
6668
6669 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
6670
6671 * sh-tdep.c: Clean up code erroneously reintroduced by previous
6672 big patch.
6673
6674 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
6675
6676 * sh-tdep.c: Include correct file.
6677
6678 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
6679
6680 New support for sh64-elf (sh5) target.
6681
6682 * configure.tgt: For sh64-elf target, default to sh-elf.
6683
6684 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
6685 (struct gdbarch_tdep): Add new fields for new registers and ABI
6686 info.
6687
6688 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
6689 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
6690 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
6691 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
6692 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
6693 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
6694 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
6695 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
6696 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
6697 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
6698 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
6699 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
6700 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
6701 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
6702 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
6703 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
6704 sh64_get_gdb_regnum, sh64_media_reg_base_num,
6705 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
6706 sign_extend, sh64_nofp_frame_init_saved_regs,
6707 sh64_init_extra_frame_info, sh64_get_saved_register,
6708 sh64_extract_struct_value_address, sh64_pop_frame,
6709 sh64_push_arguments, sh64_extract_return_value,
6710 sh64_store_return_value, sh64_show_media_regs,
6711 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
6712 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
6713 sh_sh64_register_virtual_type,
6714 sh_sh64_register_convert_to_virtual,
6715 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
6716 sh64_register_read, sh64_pseudo_register_write,
6717 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
6718 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
6719 sh64_do_pseudo_register, sh_compact_do_registers_info,
6720 sh64_do_registers_info, sh_gdbarch_init): New functions.
6721
6722 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
6723
6724 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
6725
6726 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
6727
6728 * linespec.c (decode_line_1): Check for a double quote after
6729 a filename correctly.
6730
6731 2002-05-10 Jim Blandy <jimb@redhat.com>
6732
6733 Properly track the size of the current objfile's .debug_line section.
6734 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
6735 (DWARF_LINE_SIZE): New macro.
6736 (dwarf2_build_psymtabs_hard): Record the line section's size in
6737 the partial symbol table.
6738 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
6739 symbol table.
6740
6741 2002-05-10 Petr Sorfa <petrs@caldera.com>
6742
6743 * ia64-tdep.c: Handle breakpoints on L instruction type
6744 in MLX instruction bundle by moving the breakpoint to
6745 the third slot (X instruction type) as L holds only data.
6746
6747 2002-05-10 Kevin Buettner <kevinb@redhat.com>
6748
6749 * dbxread.c (discarding_local_symbols_complaint): New complaint.
6750 (process_one_symbol): Complain about discarding local symbols
6751 due to a misplaced N_LBRAC entry.
6752
6753 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
6754
6755 From Daniel Berlin <dan@cgsoftware.com>
6756 * linespec.c (find_toplevel_char): '<' and '>' also increase and
6757 decrease the depth we are at, in the case of templates.
6758
6759 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
6760
6761 * mips-tdep.c (mips_float_register_type): New function.
6762 (mips_double_register_type): New function.
6763 (mips_print_register): Use them.
6764 (do_fp_register_row): Likewise.
6765
6766 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
6767
6768 * signals/signals.c (signals): Remove conditional compilation around
6769 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
6770 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
6771
6772 2002-05-09 Michael Snyder <msnyder@redhat.com>
6773
6774 * remote-rdp.c (remote_rdp_can_run): Remove.
6775
6776 2002-05-09 Tom Tromey <tromey@redhat.com>
6777
6778 * jv-valprint.c (java_val_print): Handle `char' as a special case
6779 of TYPE_CODE_INT.
6780
6781 2002-05-09 Michael Snyder <msnyder@redhat.com>
6782
6783 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
6784 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
6785 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
6786 str r(0123),[sp,#nn].
6787 (arm_skip_prologue): Ditto. Also make disassembly
6788 order-independent by placing it in a loop.
6789
6790 2002-05-06 Michael Snyder <msnyder@redhat.com>
6791
6792 * stabsread.c (read_type): Add recognition for new attribute:
6793 "@V;" means that an array type is actually a vector.
6794 This is analogous to the vector flag that's been added to dwarf2.
6795
6796 2002-05-09 Mark Kettenis <kettenis@gnu.org>
6797
6798 * i386-tdep.h (i386_abi): New enum.
6799 (struct gdbarch_tdep): Replace os_ident member with abi.
6800 (i386_gdbarch_register_os_abi): New prototype.
6801 * i386-tdep.c (i386_abi_names): New array.
6802 (process_note_abi_tag_sections): Removed.
6803 (process_note_sections): New function.
6804 (i386_elf_abi_from_note, i386_elf_abi): New functions.
6805 (struct i386_abi_handler): New struct.
6806 (i386_abi_handler_list): New variable.
6807 (i386_gdbarch_register_os_abi): New function.
6808 (i386_gdbarch_init): Adapt for the changes given above.
6809
6810 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
6811
6812 * gregset.h: Say "GNU/Linux".
6813
6814 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
6815
6816 * gdbtypes.c : Add new builtin type for 64 bit vectors.
6817 (build_gdbtypes): Build builtin_type_v2_float.
6818 (_initialize_gdbtypes): Register new builtin type.
6819
6820 2002-05-08 Andrew Cagney <ac131313@redhat.com>
6821
6822 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
6823 (clear_gdbarch_swap): New function.
6824 (initialize_non_multiarch): Call.
6825 (gdbarch_update_p): Before calling init(), swap out and clear the
6826 existing architecture.
6827 * gdbarch.c: Regenerate.
6828
6829 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6830
6831 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
6832 alphanbsd-tdep.c.
6833
6834 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6835
6836 * sh-nbsd-nat.c: Rename to...
6837 * shnbsd-nat.c: ...this.
6838 * sh-nbsd-tdep.c: Rename to...
6839 * shnbsd-tdep.c: ...this.
6840 * sh-nbsd-tdep.h: Rename to...
6841 * shnbsd-tdep.h: ...this.
6842 * config/sh/nbsd.mh: Use shnbsd-nat.o.
6843 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
6844
6845 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
6846
6847 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
6848 concatenation for command help messages.
6849
6850 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6851
6852 * NEWS: Note new sh*-*-netbsdelf* configuration.
6853 * configure.host: Set gdb_host_cpu to sh for all sh*.
6854 (sh*-*-netbsdelf*): New host.
6855 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
6856 (sh*-*-netbsdelf*): New target.
6857 * sh-nbsd-nat.c: New file.
6858 * sh-nbsd-tdep.c: New file.
6859 * sh-nbsd-tdep.h: New file.
6860 * config/sh/nbsd.mh: New file.
6861 * config/sh/nbsd.mt: New file.
6862 * config/sh/nm-nbsd.h: New file.
6863 * config/sh/tm-nbsd.h: New file.
6864
6865 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6866
6867 * sh-tdep.c (sh_osabi_names): Declare.
6868 (process_note_abi_tag_sections): New function.
6869 (get_elfosabi): Ditto.
6870 (sh_gdbarch_register_os_abi): Ditto.
6871 (sh_dump_tdep): Ditto.
6872 _initialize_sh_tdep): Use gdbarch_register to register
6873 sh_gdbarch_init and sh_dump_tdep.
6874 * config/sh/tm-sh.h (sh_osabi): Declare.
6875 (gdbarch_tdep): Add sh_osabi and osabi_name members.
6876
6877 2002-05-07 Andrew Cagney <ac131313@redhat.com>
6878
6879 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
6880 (thumb_scan_prologue): Ditto.
6881 (arm_find_callers_reg): Ditto.
6882 (arm_frame_chain): Ditto.
6883 (arm_init_extra_frame_info): Ditto.
6884 (arm_frame_saved_pc): Ditto.
6885 (arm_pop_frame): Ditto.
6886 (arm_push_return_address): New function.
6887 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
6888 call_dummy_location, call_dummy_breakpoint_offset_p,
6889 call_dummy_breakpoint_offset, call_dummy_p,
6890 call_dummy_stack_adjust_p, call_dummy_words,
6891 sizeof_call_dummy_words, call_dummy_start_offset,
6892 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
6893 call_dummy_address, push_return_address and push_dummy_frame for
6894 generic dummy frames.
6895
6896 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
6897
6898 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
6899 size computation for alloca.
6900 (sh_fp_frame_init_saved_regs): Likewise.
6901
6902 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
6903
6904 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
6905 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
6906 * arm-tdep.c (arm_store_return_value): Use them.
6907 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
6908 * remote-rdp.c (remote_rdp_fetch_register): Use
6909 ARM_MAX_REGISTER_RAW_SIZE.
6910 (remote_rdp_store_register): Likewise.
6911
6912 2002-05-07 Michal Ludvig <mludvig@suse.cz>
6913
6914 * dwarf2cfi.c: Code cleanup, removed unused variables,
6915 added default labels to switch {} statements.
6916 * x86-64-tdep.c: Ditto.
6917 * x86-64-linux-nat.c: Ditto.
6918
6919 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
6920
6921 * solib.h: Protect against multiple inclusion.
6922
6923 2002-05-06 Jim Blandy <jimb@redhat.com>
6924
6925 Add first preprocessor macro-expansion files.
6926 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
6927 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
6928 (splay_tree_h, macroexp_h, macrotab_h): New variable.
6929 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
6930 (COMMON_OBS): Add macrotab.o, macroexp.o.
6931 (macroexp.o, macrotab.o): New rules.
6932
6933 Separate the job of reading the line number info statement program
6934 header (...expialidocious) out into its own function.
6935 * dwarf2read.c (struct line_head, struct filenames, struct
6936 directories): Replace with...
6937 (struct line_header): New structure, containing the full
6938 contents of the statement program header, including the
6939 include directory and file name tables.
6940 (read_file_scope): If we have line number info, instead of just
6941 calling dwarf_decode_lines to do all the work, call
6942 dwarf_decode_line_header first to get a `struct line_header'
6943 containing the data in the statement program header, and then
6944 pass that to dwarf_decode_lines, which will pick up where that
6945 left off. Be sure to clean up the `struct line_header' object.
6946 (dwarf_decode_line_header, free_line_header, add_include_dir,
6947 add_file_name): New functions.
6948 (dwarf_decode_lines): Move all the code to read the statement
6949 program header into dwarf_decode_line_header. Take the line
6950 header it built as the first argument, instead of the offset to
6951 the compilation unit's line number info. Use the new `struct
6952 line_header' type instead of the old structures. No need to do
6953 cleanups here now, since we don't allocate anything.
6954 (dwarf2_statement_list_fits_in_line_number_section,
6955 dwarf2_line_header_too_long): New complaints.
6956
6957 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
6958
6959 * gdbtypes.c (init_vector_type): New function.
6960 (build_builtin_type_vec128): Simplify the representation of SIMD
6961 registers.
6962 (build_gdbtypes): Initialize new builtin vector types.
6963 (_initialize_gdbtypes): Register new vector types with gdbarch.
6964 (builtin_type_v4_float, builtin_type_v4_int32,
6965 builtin_type_v8_int16, builtin_type_v16_int8,
6966 builtin_type_v2_int32, builtin_type_v4_int16,
6967 builtin_type_v8_int8): New (renamed) SIMD types.
6968
6969 2002-05-06 Mark Kettenis <kettenis@gnu.org>
6970
6971 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
6972 (i387_fill_fxsave): Likewise.
6973
6974 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
6975
6976 * alpha-tdep.c (alpha_extract_return_value): Don't use
6977 non-constant array size in prototype.
6978
6979 2002-05-04 Andrew Cagney <ac131313@redhat.com>
6980
6981 From Brian Taylor <briant at model dot com>:
6982 * ui-out.c (ui_out_field_core_addr): Use the function
6983 longest_local_hex_string_custom'to format addresses > 32 bits
6984 wide.
6985
6986 * ui-out.c (ui_out_field_core_addr): Update comment.
6987
6988 2002-05-04 Andrew Cagney <ac131313@redhat.com>
6989
6990 * stack.c (select_and_print_frame): Make static. Delete the
6991 parameter `level'.
6992 (func_command): Update call.
6993 (select_frame_command): Delete code computing the frame level.
6994 * frame.h (select_and_print_frame): Delete declaration.
6995
6996 2002-05-04 Andrew Cagney <ac131313@redhat.com>
6997
6998 * sparc-tdep.c (sparc_get_saved_register): Comment why
6999 get_prev_frame call is safe.
7000
7001 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7002
7003 * frame.h (select_frame): Delete level parameter.
7004 * stack.c (select_frame): Update. Use frame_relative_level to
7005 obtain the frame's level.
7006 (select_and_print_frame): Update call.
7007 (select_frame_command): Ditto.
7008 (up_silently_base): Ditto.
7009 (down_silently_base): Ditto.
7010 * ocd.c (ocd_start_remote): Ditto.
7011 * remote-rdp.c (remote_rdp_open): Ditto.
7012 * remote-mips.c (mips_initialize): Ditto.
7013 (common_open): Ditto.
7014 * remote-e7000.c (e7000_start_remote): Ditto.
7015 * m3-nat.c (select_thread): Ditto.
7016 * hppa-tdep.c (child_get_current_exception_event): Ditto.
7017 (child_get_current_exception_event): Ditto.
7018 * varobj.c (varobj_create): Ditto.
7019 (varobj_update): Ditto.
7020 (c_value_of_root): Ditto.
7021 * tracepoint.c (finish_tfind_command): Ditto.
7022 * corelow.c (core_open): Ditto.
7023 * arch-utils.c (generic_prepare_to_proceed): Ditto.
7024 * thread.c (info_threads_command): Ditto.
7025 (switch_to_thread): Ditto.
7026 * infrun.c (normal_stop): Ditto.
7027 (restore_selected_frame): Ditto.
7028 (restore_inferior_status): Ditto.
7029 * breakpoint.c (insert_breakpoints): Ditto.
7030 (watchpoint_check): Ditto.
7031 (bpstat_stop_status): Ditto.
7032 (do_enable_breakpoint): Ditto.
7033 * blockframe.c (flush_cached_frames): Ditto.
7034 (reinit_frame_cache): Ditto.
7035
7036 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7037
7038 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
7039 maintainer.
7040
7041 2002-05-04 Jim Blandy <jimb@redhat.com>
7042
7043 * gdbtypes.c (replace_type): Doc fix.
7044
7045 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7046
7047 * valprint.c (strcat_longest): Delete commented out function.
7048 Update copyright.
7049
7050 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7051
7052 * MAINTAINERS: Mark a29k as deleted.
7053 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
7054 Move new configurations to the top.
7055 * configure.tgt: Remove a29k.
7056 * config/a29k/tm-vx29k.h: Delete.
7057 * config/a29k/vx29k.mt: Delete.
7058 * config/a29k/tm-a29k.h: Delete.
7059 * config/a29k/a29k-udi.mt: Delete.
7060 * config/a29k/a29k.mt: Delete.
7061 * a29k-tdep.c: Delete.
7062 * remote-udi.c: Delete.
7063 * remote-mm.c: Delete.
7064 * remote-eb.c: Delete.
7065 * remote-adapt.c: Delete.
7066 * Makefile.in: Remove obsolete code.
7067 * config/s390/s390x.mt: Ditto.
7068 * config/s390/s390.mt: Ditto.
7069 * config/sparc/sparclynx.mh: Ditto.
7070 * config/sparc/linux.mh: Ditto.
7071 * config/pa/hppaosf.mh: Ditto.
7072 * config/pa/hppabsd.mh: Ditto.
7073 * config/ns32k/nbsd.mt: Ditto.
7074 * config/mips/vr5000.mt: Ditto.
7075 * config/m68k/sun3os4.mh: Ditto.
7076 * config/m68k/nbsd.mt: Ditto.
7077 * config/m68k/m68klynx.mh: Ditto.
7078 * config/m32r/m32r.mt: Ditto.
7079 * config/i386/x86-64linux.mt: Ditto.
7080 * config/i386/nbsdelf.mt: Ditto.
7081 * config/i386/nbsd.mt: Ditto.
7082 * config/i386/i386lynx.mh: Ditto.
7083
7084 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7085
7086 * target.c (debug_print_register): New function. Handle oversize
7087 registers.
7088 (debug_to_fetch_registers): Call.
7089 (debug_to_store_registers): Call.
7090
7091 2002-05-03 Jim Blandy <jimb@redhat.com>
7092
7093 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
7094 (read_type): Doc fix.
7095 * gdbtypes.c (replace_type): Doc fix.
7096
7097 * stabsread.c (multiply_defined_struct): New complaint.
7098 (read_struct_type): If the type we were passed isn't empty, or
7099 incomplete, don't read the new struct type into it; complain,
7100 and return the original type unchanged. Take a new `type_code'
7101 argument, which is the type code for the new type.
7102 (read_type): Rather than storing the type's type code here, pass
7103 it as an argument to read_struct_type, and let that take care of
7104 storing it. That way, we don't overwrite the original type code,
7105 so read_struct_type can use it to decide whether we're overwriting
7106 something we shouldn't.
7107 (complain_about_struct_wipeout): New function.
7108
7109 2002-05-03 Andrew Cagney <ac131313@redhat.com>
7110
7111 * gdbarch.sh: Assert that gdbarch is non-NULL.
7112 * gdbarch.c: Regenerate.
7113
7114 2002-05-03 Jason Merrill <jason@redhat.com>
7115
7116 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
7117 and return NULL.
7118
7119 2002-05-03 Michal Ludvig <mludvig@suse.cz>
7120
7121 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
7122 (x86_64_dwarf2gdb_regno_map_length),
7123 (x86_64_dwarf2_reg_to_regnum): Added.
7124 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
7125 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
7126 (_initialize_x86_64_tdep): Synced with the change above.
7127 (x86_64_skip_prologue): Reformulated message.
7128
7129 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
7130
7131 * f-exp.y: Also use new prev_lexptr variable
7132 to improve error reporting. Based on Michael Snyder
7133 2002-04-24 dated patch to c-exp.y.
7134 * jv-exp.y: Likewise.
7135 * m2-exp.y: Likewise.
7136
7137 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
7138
7139 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
7140 we are dealing with vectors.
7141
7142 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7143
7144 * config/m68k/tm-nbsd.h: Obvious fix,
7145 correct machine name.
7146
7147 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7148
7149 * p-typeprint.c (pascal_type_print_base): Add support
7150 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
7151
7152 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7153
7154 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
7155 for fondamental pascal 'char' type.
7156
7157 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7158
7159 * p-lang.h (is_pascal_string_type): Declaration changed,
7160 new sixth argument of type char ** added.
7161 * p-lang.c (is_pascal_string_type): Implementation
7162 changed. Args length_pos, length_size, string_pos, char_size
7163 can now be NULL. New argument arrayname set to the field
7164 name of the char array. Return value set to char array
7165 field index plus one.
7166 * p-valprint.c (pascal_val_print): Adapt to new declaration of
7167 is_pascal_string_type function.
7168
7169 2002-05-02 Andrew Cagney <cagney@redhat.com>
7170
7171 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
7172 <cagney@redhat.com> change.
7173 * gdbarch.c: Regenerate.
7174
7175 2002-05-02 Andrew Cagney <cagney@redhat.com>
7176
7177 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
7178 before probing for a new one. Detect errorenous gdbarch_init
7179 functions.
7180 * gdbarch.c: Regenerate.
7181
7182 2002-05-01 Andrew Cagney <cagney@redhat.com>
7183
7184 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
7185 * config/mcore/tm-mcore.h: Ditto. Update copyright.
7186 * config/v850/tm-v850.h: Ditto. Update copyright.
7187
7188 2002-04-30 Andrew Cagney <ac131313@redhat.com>
7189
7190 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
7191 current_gdbarch.
7192
7193 2002-04-30 Michael Snyder <msnyder@redhat.com>
7194
7195 * arm-tdep.c: Whitespace clean-ups.
7196 (arm_skip_prologue): Fix thinko; two lines
7197 should have been removed as part of 4/24 change.
7198
7199 2002-04-30 Kevin Buettner <kevinb@redhat.com>
7200
7201 * rs6000-tdep.c: Added comment describing how fpscr register
7202 numbers were chosen.
7203
7204 2002-04-30 Michael Snyder <msnyder@redhat.com>
7205
7206 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
7207
7208 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
7209
7210 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
7211 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
7212 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
7213
7214 2002-04-29 Kevin Buettner <kevinb@redhat.com>
7215
7216 From Louis Hamilton <hamilton@redhat.com>:
7217 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
7218 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
7219 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
7220 not bfd-private xcoff data, to determine wordsize.
7221 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
7222
7223 2002-04-29 Andrew Cagney <ac131313@redhat.com>
7224
7225 GDB 5.2 released from 5.2 branch.
7226
7227 2002-04-29 Michal Ludvig <mludvig@suse.cz>
7228
7229 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
7230 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
7231 (x86_64_register_info_table): Added comments with register numbers.
7232
7233 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
7234
7235 * rs6000-tdep.c (rs6000_extract_return_value,
7236 rs6000_store_return_value): Handle returning vectors.
7237 (rs6000_gdbarch_init): Use
7238 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
7239 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
7240 New function.
7241 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
7242 vectors.
7243 (ppc_sysv_abi_push_arguments): Handle vector parameters.
7244 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
7245
7246 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
7247
7248 * hpread.c (hpread_psymtab_to_symtab_1,
7249 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
7250 with fprintf_unfiltered (gdb_stderr,...).
7251
7252 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
7253
7254 * remote-array.c (printf_monitor, write_monitor,
7255 array_insert_breakpoint, array_remove_breakpoint ):
7256 Replace fprintf (stderr,...
7257 with fprintf_unfiltered (gdb_stderr,....
7258 * remote-es.c: Likewise.
7259 * remote-os9k.c: Likewise.
7260 * remote-st.c: Likewise.
7261
7262 2002-04-28 Andreas Schwab <schwab@suse.de>
7263
7264 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
7265 linux-proc.o and gcore.o.
7266
7267 2002-04-26 Michal Ludvig <mludvig@suse.cz>
7268
7269 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
7270 code without frame pointers.
7271
7272 2002-04-26 Andrew Cagney <ac131313@redhat.com>
7273
7274 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
7275 ON_STACK is needed.
7276
7277 2002-04-26 Ben Elliston <bje@redhat.com>
7278
7279 * target.c (do_xfer_memory): Correct reference to the new option
7280 "trust-readonly-sections".
7281
7282 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
7283
7284 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
7285 * gdbtypes.c (recursive_dump_type): Output the vector flag.
7286 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
7287 vectors.
7288 (read_array_type): Record the fact that this array type is really a
7289 vector (i.e. are passed in by value).
7290
7291 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
7292
7293 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
7294 * alpha-tdep.c (alpha_sigcontext_addr): New function.
7295 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
7296 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
7297 * alpha-linux-tdep.c: Include frame.h.
7298 (alpha_linux_sigcontext_addr): New function.
7299 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
7300 alpha_linux_sigcontext_addr.
7301 * alpha-osf1-tdep.c: Include gdbcore.h.
7302 (alpha_osf1_sigcontext_addr): New function.
7303 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
7304 alpha_osf1_sigcontext_addr.
7305 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
7306 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
7307
7308 2002-04-26 Andrew Cagney <ac131313@redhat.com>
7309
7310 * stack.c (selected_frame_level):
7311 (select_frame): Do not set selected_frame_level.
7312 * frame.h (selected_frame_level): Delete declaration.
7313
7314 2002-04-26 Andrew Cagney <ac131313@redhat.com>
7315
7316 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
7317 convert_from_func_ptr-addr when AIX / PowerOpen.
7318
7319 2002-04-25 Andrew Cagney <ac131313@redhat.com>
7320
7321 * valops.c (hand_function_call): Call
7322 generic_save_call_dummy_addr.
7323 * frame.h (generic_save_call_dummy_addr): Declare.
7324 * blockframe.c (struct dummy_frame): Add fields call_lo and
7325 call_hi.
7326 (generic_find_dummy_frame): Check for PC in range call_lo to
7327 call_hi instead of entry_point_address.
7328 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
7329 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
7330 (generic_save_call_dummy_addr): New function.
7331
7332 2002-04-24 David S. Miller <davem@redhat.com>
7333
7334 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
7335 sparc_skip_prologue.
7336 (sparc_skip_prologue): Kill frameless_p arg, and use line number
7337 information to find prologue when possible.
7338 (sparc_prologue_frameless_p): Call examine_prologue directly.
7339 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
7340 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
7341 second argument.
7342 (SKIP_PROLOGUE): Likewise.
7343
7344 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7345
7346 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
7347 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
7348 indicate that the condition it was testing is always true.
7349 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
7350 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
7351 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
7352
7353 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7354
7355 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
7356 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
7357 tdep->jb_pc and tdep->jb_elt_size.
7358 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
7359 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
7360 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
7361 * alpha-nat.c (get_longjmp_target): Remove.
7362 (JB_ELEMENT_SIZE): Ditto.
7363 (JB_PC): Ditto.
7364 * alpha-tdep.c (alpha_get_longjmp_target): New function.
7365 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
7366 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
7367 to alpha_get_longjmp_target.
7368 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
7369 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
7370 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
7371
7372 2002-04-25 Andrew Cagney <ac131313@redhat.com>
7373
7374 * README: Update to GDB 5.2.
7375
7376 2002-04-25 Andrew Cagney <ac131313@redhat.com>
7377
7378 * gdbarch.sh (LC_ALL): Set to `c'.
7379
7380 2002-04-25 Theodore A. Roth <troth@verinet.com>
7381
7382 * avr-tdep.c: Ran through gdb_indent.sh.
7383
7384 2002-04-25 Theodore A. Roth <troth@verinet.com>
7385
7386 * MAINTAINERS: Add myself as AVR maintainer.
7387 * NEWS: Note new target avr.
7388
7389 2002-04-25 Theodore A. Roth <troth@verinet.com>
7390
7391 * Makefile.in: Add support for AVR target.
7392 * configure.tgt: Add support for AVR target.
7393 * avr-tdep.c: New file
7394 * config/avr/avr.mt: New file.
7395
7396 2002-04-25 Theodore A. Roth <troth@verinet.com>
7397
7398 * MAINTAINERS: Add myself to write-after-approval.
7399
7400 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
7401
7402 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
7403 with fprintf_unfiltered (gdb_stderr,....
7404
7405 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
7406
7407 Fix PR gdb/508.
7408 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
7409
7410 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
7411
7412 * p-exp.y: Also use new prev_lexptr variable
7413 to improve error reporting. Based on Michael Snyder
7414 2002-04-24 dated patch to c-exp.y.
7415
7416 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7417
7418 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
7419 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
7420 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
7421 to 0.
7422 * config/alpha/tm-alpha.h: Remove forward decls of struct type
7423 and struct value.
7424 (FUNCTION_START_OFFSET): Remove.
7425 (BREAKPOINT): Ditto.
7426
7427 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7428
7429 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
7430 * NEWS: Ditto.
7431
7432 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7433
7434 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
7435 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
7436 alpha_linux_pc_in_sigtramp.
7437 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
7438 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
7439 alpha_osf1_pc_in_sigtramp.
7440 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
7441 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
7442 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
7443 alphafbsd_pc_in_sigtramp.
7444 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
7445 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
7446 alphanbsd_pc_in_sigtramp.
7447 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
7448 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
7449
7450 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7451
7452 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
7453
7454 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7455
7456 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
7457 alphanbsd-tdep.c.
7458 (alphanbsd-nat.o): New dependency list.
7459 (alphanbsd-tdep.o): Ditto.
7460 * NEWS: Note new native NetBSD/alpha configuration.
7461 * alphanbsd-nat.c: New file.
7462 * alphanbsd-tdep.c: Ditto.
7463 * configure.host (alpha*-*-netbsd*): New host.
7464 * configure.tgt (alpha*-*-netbsd*): New target.
7465 * config/alpha/nbsd.mh: New file.
7466 * config/alpha/nbsd.mt: Ditto.
7467 * config/alpha/nm-nbsd.h: Ditto.
7468 * config/alpha/tm-nbsd.h: Ditto.
7469
7470 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7471
7472 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
7473 (alpha-osf1-tdep.o): New dependency list.
7474 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
7475 and skip_sigtramp_frame members.
7476 * alpha-linux-tdep.c: Include gdbcore.h.
7477 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
7478 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
7479 * alpha-osf1-tdep.c: New file.
7480 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
7481 alpha-osf1-dep.c.
7482 (alpha_frame_past_sigtramp_frame): New function.
7483 (alpha_dynamic_sigtramp_offset): Ditto.
7484 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
7485 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
7486 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
7487 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
7488 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
7489 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
7490 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
7491 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
7492 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
7493 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
7494 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
7495 to find_solib_trampoline_target.
7496 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
7497 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
7498 (SKIP_TRAMPOLINE_CODE): Remove.
7499 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7500 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7501 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
7502 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
7503 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
7504 (PROC_SIGTRAMP_MAGIC): Ditto.
7505 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7506 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7507 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7508 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
7509 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
7510
7511 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7512
7513 * NEWS: Note that Alpha targets are now multi-arch.
7514
7515 2002-04-24 Michael Snyder <msnyder@redhat.com>
7516
7517 * parser-defs.h (prev_lexptr): New external variable.
7518 * parse.c (parse_exp_1): Set prev_lexptr to null before
7519 calling the language-specific parser.
7520 * c-exp.y (yylex): Set prev_lexptr to start of current token.
7521 (yyerror): Use prev_lexptr in error reporting.
7522
7523 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
7524
7525 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
7526 * gregset.h: If FILL_FPXREGSET is defined, provide
7527 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
7528 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
7529 is defined, call fill_fpxregset.
7530
7531 2002-04-24 Roland McGrath <roland@frob.com>
7532
7533 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
7534 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
7535 (supply_gregset, supply_fpregset): New functions.
7536
7537 * gnu-nat.c (gnu_find_memory_regions): New function.
7538 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
7539 (gnu_xfer_memory): Add a cast.
7540
7541 2002-04-24 Michael Snyder <msnyder@redhat.com>
7542
7543 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
7544 loop. Add handling for "str lr, [sp, #-4]!" and for saves
7545 of argument regs ("str r(0123), [r11, #-nn"]).
7546 (arm_skip_prologue): Better handling for frameless functions.
7547 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
7548 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
7549
7550 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
7551
7552 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
7553 NUM_PSEUDO_REGS can be used.
7554
7555 2002-04-24 Andrew Cagney <ac131313@redhat.com>
7556
7557 * arch-utils.h: Update copyright.
7558
7559 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
7560 * gdbarch.h, gdbarch.c: Re-generate.
7561
7562 * inferior.h (IN_SIGTRAMP): Delete definition.
7563 * arch-utils.c (legacy_pc_in_sigtramp): New function.
7564 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
7565
7566 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
7567 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
7568 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
7569 (find_proc_framesize): Ditto.
7570 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
7571 (alpha_init_extra_frame_info): Ditto.
7572 * infrun.c (handle_inferior_event): Ditto.
7573 (handle_inferior_event): Ditto.
7574 (check_sigtramp2): Ditto.
7575 * blockframe.c (create_new_frame): Ditto.
7576 (get_prev_frame): Ditto.
7577 * ppc-linux-tdep.c: Update comments.
7578 * i386-linux-tdep.c: Update comments.
7579 * breakpoint.c (bpstat_what): Update comment.
7580
7581 2002-04-24 David S. Miller <davem@redhat.com>
7582
7583 * i960-tdep.c (register_in_window_p): New function.
7584 (i960_find_saved_register): Use it instead of
7585 REGISTER_IN_WINDOW_P.
7586 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
7587
7588 * symtab.h (find_stab_function_addr): Kill extern.
7589 * minsyms.c (find_stab_function_addr): Remove from here...
7590 * dbxread.c: ... to here, and mark it static.
7591
7592 2002-04-20 David S. Miller <davem@redhat.com>
7593
7594 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
7595 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
7596
7597 2002-04-21 David S. Miller <davem@redhat.com>
7598
7599 * remote-vxsparc.c (vx_read_register): Fix typo, we want
7600 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
7601 (vx_write_register): Likewise.
7602
7603 2002-04-23 J. Brobecker <brobecker@gnat.com>
7604
7605 * source.c (is_regular_file): New function.
7606 (openp): Check wether file to open is a regular file
7607 to avoid opening directories.
7608
7609 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7610
7611 * findvar.c (extract_signed_integer): Cast printf argument
7612 to suppress format warning.
7613 (extract_unsigned_integer): Likewise.
7614 * infcmd.c (registers_info): Likewise.
7615 * top.c (get_prompt_1): Likewise.
7616 * valops.c (value_assign): Likewise.
7617 * valprint.c (print_decimal): Likewise.
7618
7619 2002-04-22 H.J. Lu (hjl@gnu.org)
7620
7621 * c-exp.y (typebase): Support
7622
7623 [long|long long|short] [signed|unsigned] [int|]
7624
7625 and
7626
7627 signed [long|long long|short] int
7628
7629 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7630
7631 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
7632 and vax-tdep.h.
7633 * vax-tdep.h: New file.
7634 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
7635 Make several routines static.
7636 (vax_get_saved_register): New function.
7637 (vax_gdbarch_init): New function.
7638 (_initialize_vax_tdep): Register vax_gdbarch_init.
7639 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
7640 Remove macros now under the control of gdbarch.
7641
7642 2002-04-22 Michael Snyder <msnyder@redhat.com>
7643
7644 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
7645 Some whitespace and coding standards tweaks.
7646
7647 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7648
7649 * vax-tdep.c: Include regcache.h.
7650 (vax_call_dummy_words): New.
7651 (sizeof_vax_call_dummy_words): New.
7652 (vax_fix_call_dummy): New function.
7653 (vax_saved_pc_after_call): Ditto.
7654 * config/vax/tm-vax.h: Don't include regcache.h.
7655 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
7656 (CALL_DUMMY): Remove.
7657 (CALL_DUMMY_WORDS): Define.
7658 (SIZEOF_CALL_DUMMY_WORDS): Define.
7659 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
7660
7661 2002-04-18 Michael Snyder <msnyder@redhat.com>
7662
7663 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
7664
7665 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7666
7667 * vax-tdep.c (vax_frame_chain): New function.
7668 (vax_push_dummy_frame): Ditto.
7669 (vax_pop_frame): Ditto.
7670 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
7671 (FRAMELESS_FUNCTION_INVOCATION): Use
7672 generic_frameless_function_invocation_not.
7673 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
7674 (POP_FRAME): Use vax_pop_frame.
7675
7676 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7677
7678 * vax-tdep.c (vax_store_struct_return): New function.
7679 (vax_extract_return_value): Ditto.
7680 (vax_store_return_value): Ditto.
7681 (vax_extract_struct_value_address): Ditto.
7682 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
7683 vax_store_struct_return.
7684 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
7685 (STORE_RETURN_VALUE): Use vax_store_return_value.
7686 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
7687
7688 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7689
7690 * vax-tdep.c (vax_frame_saved_pc): New function.
7691 (vax_frame_args_address_correct): Ditto.
7692 (vax_frame_args_address): Ditto.
7693 (vax_frame_locals_address): Ditto.
7694 (vax_frame_num_args): Move code to be in proximity to
7695 other frame-related functions.
7696 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
7697 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
7698 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
7699 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
7700 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
7701
7702 2002-04-22 H.J. Lu (hjl@gnu.org)
7703
7704 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
7705 includedir.
7706
7707 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7708
7709 * vax-tdep.c (vax_frame_init_saved_regs): New function.
7710 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
7711 (FRAME_INIT_SAVED_REGS): New macro.
7712
7713 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7714
7715 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
7716
7717 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7718
7719 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
7720 where needed.
7721 (fetch_osf_core_registers): Likewise.
7722 (supply_gregset): Likewise.
7723
7724 2002-04-22 J. Brobecker <brobecker@gnat.com>
7725
7726 * symfile.h (get_section_index): Define.
7727 * symfile.c (get_section_index): New function.
7728 * mdebugread.c (SC_IS_SBSS): New macro.
7729 (SC_IS_BSS): Return true for the scBss storage class only, as
7730 the scSBss storage class refers to the .sbss section.
7731 (parse_partial_symbols): Discard the symbols which associated
7732 section does not exist.
7733 Make sure to use the .sbss section index for symbols which
7734 storage class is scBss, rather than using the .bss section index.
7735
7736 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7737
7738 * vax-tdep.c: Update copyright years.
7739 (vax_register_name): New function.
7740 (vax_register_byte): Ditto.
7741 (vax_register_raw_size): Ditto.
7742 (vax_register_virtual_size): Ditto.
7743 (vax_register_virtual_type): Ditto.
7744 * config/vax/tm-vax.h: Update copyright years.
7745 (REGISTER_NAMES): Remove.
7746 (REGISTER_NAME): Define.
7747 (REGISTER_BYTE): Use vax_register_byte.
7748 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
7749 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
7750 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
7751
7752 2002-04-21 Andrew Cagney <ac131313@redhat.com>
7753
7754 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
7755 declaration
7756 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
7757
7758 2002-04-21 David S. Miller <davem@redhat.com>
7759
7760 * arch-utils.c (generic_prologue_frameless_p): Kill
7761 SKIP_PROLOGUE_FRAMELESS_P code.
7762 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
7763 references.
7764 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
7765 * arc-tdep.c (arc_prologue_frameless_p): Implement.
7766 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
7767 references.
7768 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
7769 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
7770 (sparc_gdbarch_init): Pass it to
7771 set_gdbarch_prologue_frameless_p.
7772
7773 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7774
7775 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
7776 (alphabsd-nat.o): New dependency list.
7777
7778 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7779
7780 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
7781 alphafbsd-tdep.c.
7782 (alpha-linux-tdep.o): New dependency list.
7783 (alphafbsd-tdep.o): Likewise.
7784
7785 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7786
7787 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
7788 to here...
7789 * alpha-tdep.c: ...from here.
7790 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
7791
7792 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7793
7794 * config/alpha/tm-alpha.h: Move alpha_software_single_step
7795 prototype from here...
7796 * alpha-tdep.h: ...to here.
7797
7798 2002-04-21 Andrew Cagney <ac131313@redhat.com>
7799
7800 * frame.h (selected_frame_level): Document as deprecated.
7801 (frame_relative_level): Declare.
7802 * stack.c (frame_relative_level): New function.
7803 (selected_frame_level): Document as deprecated.
7804 (select_frame): Do not set the selected_frame_level.
7805
7806 * stack.c (frame_info, record_selected_frame): Update.
7807 (frame_command, current_frame_command): Update.
7808 (up_silently_base, up_command, down_silently_base): Update.
7809 (down_command): Update.
7810 * inflow.c (kill_command): Update.
7811 * tracepoint.c (finish_tfind_command): Update.
7812 * corelow.c (core_open): Update.
7813 * thread.c (info_threads_command): Update.
7814 (do_captured_thread_select): Update.
7815 * infcmd.c (finish_command): Update.
7816 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
7817
7818 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7819
7820 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
7821
7822 2002-04-21 Andrew Cagney <ac131313@redhat.com>
7823
7824 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
7825 type const.
7826
7827 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7828
7829 * alphafbsd-tdep.c: Update copyright years. Include
7830 alpha-tdep.h.
7831 (alphafbsd_use_struct_convention): Make static.
7832 (alphafbsd_init_abi): New function.
7833 (_initialize_alphafbsd_tdep): New function.
7834 * config/alpha/tm-fbsd.h: Update copyright years.
7835 (USE_STRUCT_CONVENTION): Remove.
7836
7837 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7838
7839 * alpha-tdep.c (alpha_abi_handler): New structure to describe
7840 an Alpha ABI variant.
7841 (alpha_abi_handler_list): Declare.
7842 (alpha_gdbarch_register_os_abi): New function.
7843 (alpha_gdbarch_init): Give registered ABI variant handlers a
7844 chance to tweak the gdbarch once we have set up defaults.
7845 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
7846
7847 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7848
7849 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
7850 to standard_coerce_float_to_double.
7851 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
7852
7853 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7854
7855 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
7856 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
7857 from gdbarch_tdep rather than a constant.
7858 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
7859 the default text address for all Alpha Unix ABIs.
7860 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
7861 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
7862
7863 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7864
7865 * alpha-tdep.h: New file. Includes several Alpha target constants
7866 taken from...
7867 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
7868 let gdbarch deal with.
7869 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
7870 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
7871 to dependency list.
7872 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
7873 Alpha target register names.
7874 * alphabsd-nat.c: Likewise.
7875 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
7876 Alpha target register names. Make serveral routines static.
7877 (alpha_get_saved_register): New function.
7878 (alpha_abi_names): New.
7879 (process_note_abi_tag_sections): New function.
7880 (get_elfosabi): New function.
7881 (alpha_gdbarch_init): New function.
7882 (alpha_dump_tdep): New function.
7883 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
7884
7885 2002-04-21 Andrew Cagney <ac131313@redhat.com>
7886
7887 * frame.c (find_saved_register): Delete #ifdef
7888 HAVE_REGISTER_WINDOWS code.
7889 * config/sparc/tm-sparc.h: Update comments.
7890 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
7891
7892 2002-04-21 Andrew Cagney <ac131313@redhat.com>
7893
7894 * i960-tdep.c (i960_find_saved_register): New function.
7895 (i960_get_saved_register): New function.
7896 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
7897 (i960_get_saved_register): Declare.
7898 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
7899
7900 2002-04-20 David S. Miller <davem@redhat.com>
7901
7902 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
7903
7904 2002-04-20 Andrew Cagney <ac131313@redhat.com>
7905
7906 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
7907 instead of NUM_PSEUDO_REGS.
7908
7909 2002-04-20 David S. Miller <davem@redhat.com>
7910
7911 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
7912 GDB_MULTI_ARCH_PARTIAL
7913 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
7914 define, let tm-sp64.h do it.
7915
7916 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
7917
7918 * frame.c (find_saved_register): Avoid a NULL pointer
7919 dereference and actually walk the frame list.
7920
7921 2002-04-20 Andrew Cagney <ac131313@redhat.com>
7922
7923 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
7924 sorted in most most-recent-used order. Document.
7925 * gdbarch.h, gdbarch.c: Regenerate.
7926
7927 2002-04-19 Andrew Cagney <ac131313@redhat.com>
7928
7929 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
7930 instead of ->prev.
7931 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
7932 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
7933 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
7934 instead of ->prev.
7935
7936 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
7937
7938 Fix PR gdb/471.
7939 * gdbtypes.c (init_simd_type): Rewrite using new functions.
7940 (build_builtin_type_vec128): Ditto.
7941 (append_composite_type_field): Fix calculation of type length in
7942 union case.
7943
7944 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
7945
7946 * config/djgpp/README: Update.
7947
7948 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
7949 compiler warnings.
7950
7951 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
7952
7953 * alpha-tdep.c (setup_arbitrary_frame): Rename...
7954 (alpha_setup_arbitrary_frame): ...to this.
7955 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
7956 for alpha_setup_arbitrary_frame.
7957
7958 2002-04-18 Andrew Cagney <cagney@redhat.com>
7959
7960 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
7961 * gdbarch.h, gdbarch.c: Regenerate.
7962
7963 * defs.h (breakpoint_from_pc_fn): Delete type definition.
7964 * target.h (memory_breakpoint_from_pc): Update declaration.
7965 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
7966
7967 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
7968 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
7969 * mem-break.c (memory_breakpoint_from_pc): Ditto.
7970 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
7971 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
7972 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
7973 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
7974 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
7975 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
7976 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
7977 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
7978 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
7979
7980 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
7981 const pointer.
7982 * monitor.c (monitor_insert_breakpoint): Ditto.
7983 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
7984
7985 * config/mcore/tm-mcore.h: Update copyright.
7986 * mem-break.c: Ditto.
7987 * xstormy16-tdep.c: Ditto.
7988
7989 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
7990
7991 * p-exp.y: Add precedence rule for '^' token.
7992 This removes the shift/reduce conflicts.
7993 Remove the comment concerning these shift/reduce conflicts.
7994
7995 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
7996
7997 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
7998 (registers_powerpc_nofp): New register set for processors
7999 without floating point unit.
8000
8001 2002-04-18 David S. Miller <davem@redhat.com>
8002
8003 * MAINTAINERS: Add myself to write-after-approval.
8004
8005 2002-04-17 Michael Snyder <msnyder@redhat.com>
8006
8007 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
8008
8009 2002-04-17 Andrew Cagney <ac131313@redhat.com>
8010
8011 * rs6000-tdep.c (frame_initial_stack_address): Use
8012 frame_register_read to read the alloca_reg.
8013
8014 2002-04-17 Andrew Cagney <ac131313@redhat.com>
8015
8016 * frame.c (find_saved_register): Find saved registers in the next
8017 not prev frame.
8018 Fix PR gdb/365.
8019
8020 2002-04-17 Andrew Cagney <ac131313@redhat.com>
8021
8022 * gdbarch.sh (LANG): Set to ``c''.
8023
8024 2002-04-15 Andrew Cagney <ac131313@redhat.com>
8025
8026 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
8027
8028 2002-04-15 Andrew Cagney <ac131313@redhat.com>
8029
8030 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
8031 Update copyright.
8032
8033 * hpread.c (hpread_get_lntt): Add declaration.
8034 Also fix PR gdb/391.
8035
8036 2002-04-14 Andrew Cagney <ac131313@redhat.com>
8037
8038 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
8039 * aclocal.m4, configure: Re-generate.
8040 Fix PR gdb/391.
8041
8042 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
8043
8044 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
8045 instead of tm_print_insn.
8046
8047 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
8048
8049 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
8050
8051 2002-04-14 Andrew Cagney <ac131313@redhat.com>
8052
8053 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
8054 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
8055 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
8056
8057 2002-04-12 Don Howard <dhoward@redhat.com>
8058
8059 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
8060 max_user_call_depth.
8061 (init_cmd_lists): Initialize the new value;
8062 * cli/cli-script.c (execute_user_command): Limit the call depth of
8063 user defined commands. This avoids a core-dump when user commands
8064 are infinitly recursive.
8065
8066 2002-04-12 Kevin Buettner <kevinb@redhat.com>
8067
8068 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
8069 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
8070 from tdep struct instead of DEFAULT_LR_SAVE.
8071 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
8072 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
8073 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
8074
8075 2002-04-12 Michael Snyder <msnyder@redhat.com>
8076
8077 * Remote.c: Spelling fix.
8078 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
8079 If no symbol found for "sbrk", try "_sbrk".
8080 (make_output_phdrs): Use bfd_section_name.
8081 (gcore_copy_callback): Use bfd_section_name.
8082 * eval.c: Indentation fix-ups.
8083 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
8084 in case it gets applied to an address that is already
8085 in the instruction space.
8086 * cli/cli-decode.c (help_list): Allow long lines to wrap.
8087 * symfile.c: Fix indentation, long lines.
8088 * source.c: White space fix-up.
8089
8090 2002-04-12 Andrew Cagney <cagney@redhat.com>
8091
8092 * defs.h (read_relative_register_raw_bytes): Delete declaration.
8093 * frame.c (frame_register_read): New function. Return non-zero on
8094 success.
8095 (read_relative_register_raw_bytes_for_frame): Delete.
8096 (read_relative_register_raw_bytes): Delete.
8097 * frame.h (frame_register_read): Declare.
8098 * d30v-tdep.c: Update Copyright. Use frame_register_read.
8099 * sh-tdep.c: Ditto.
8100 * infcmd.c (do_registers_info): Ditto.
8101 * hppa-tdep.c: Ditto.
8102 * rs6000-tdep.c: Ditto.
8103 * h8500-tdep.c: Ditto.
8104 * mips-tdep.c: Ditto.
8105 * h8300-tdep.c: Ditto.
8106 * z8k-tdep.c: Ditto.
8107
8108 2002-04-12 Kevin Buettner <kevinb@redhat.com>
8109
8110 From Jimi X <jimix@watson.ibm.com>:
8111 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
8112 64-bit SysV ABI.
8113
8114 2002-04-12 Kevin Buettner <kevinb@redhat.com>
8115
8116 From Jimi X <jimix@watson.ibm.com>:
8117 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
8118 bfd info.
8119
8120 2002-04-12 Kevin Buettner <kevinb@redhat.com>
8121
8122 From Jimi X <jimix@watson.ibm.com>:
8123 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
8124 register sets for these processor variants.
8125
8126 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
8127
8128 * regformats/reg-ppc.dat: Support FPSCR.
8129
8130 2002-04-11 Kevin Buettner <kevinb@redhat.com>
8131
8132 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
8133 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
8134 Add fpscr as an invalid/unfetchable register.
8135 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
8136 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
8137 (fill_fpregset): Add support for register fpscr.
8138 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
8139 (fill_gregset): Account for the fact that register ``mq'' might
8140 not exist.
8141 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
8142 (registers_power): Add fpscr to register set at slot 71.
8143 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
8144 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
8145
8146 2002-04-11 Michael Snyder <msnyder@redhat.com>
8147
8148 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
8149 * configure: Regenerate.
8150 * config.in: Regenerate.
8151 * acconfig.h: Add define for _SYSCALL32.
8152 * core-sol2.c: Remove #define _SYSCALL32.
8153 * solib-legacy.c: Remove #define _SYSCALL32.
8154
8155 2002-04-10 Andrew Cagney <ac131313@redhat.com>
8156
8157 * stack.c (select_frame): Cleanup internal error message, do not
8158 use %p.
8159
8160 2002-04-10 Andrew Cagney <ac131313@redhat.com>
8161
8162 * stack.c (select_frame): Check that selected_frame and the
8163 specified level are as expected.
8164 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
8165 Update copyright.
8166 * frame.h (struct frame_info): Add field `level'. Update
8167 copyright.
8168 Work-in-progress PR gdb/464.
8169
8170 2002-04-10 Andrew Cagney <ac131313@redhat.com>
8171
8172 * maint.c (maint_print_section_info): Rename print_section_info.
8173 (print_bfd_section_info, print_objfile_section_info): Update.
8174 * inferior.h (struct gdbarch): Add opaque declaration.
8175 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
8176 * gdbarch.h: Regenerate.
8177
8178 2002-04-10 Michal Ludvig <mludvig@suse.cz>
8179
8180 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
8181 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
8182 (kernel_u_size): Added.
8183 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
8184 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
8185
8186 2002-04-04 Jim Ingham <jingham@apple.com>
8187
8188 * valarith.c (find_size_for_pointer_math): New function, either returns
8189 the size for a pointer's target, returns 1 for void *, or errors for
8190 incomplete types.
8191 (value_add, value_sub): use find_size_for_pointer_math.
8192
8193 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
8194
8195 * linux-low.c (linux_look_up_symbols): New hook.
8196 (linux_target_ops): Add linux_look_up_symbols.
8197 * remote-utils.c (decode_address): New function.
8198 (look_up_one_symbol): New function.
8199 * server.c (handle_query): Call target look_up_symbols hook.
8200 * server.h (look_up_one_symbol): Add prototype.
8201 * target.h (struct target_ops): Add look_up_symbols hook.
8202
8203 2002-04-09 Andrew Cagney <ac131313@redhat.com>
8204
8205 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
8206 override FP_REGNUM with frame->fp. Update copyright.
8207 * parse.c (num_std_regs, std_regs): Delete.
8208 (target_map_name_to_register): Do not search std_regs. Update
8209 function description.
8210 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
8211 declarations. Update copyright.
8212 Fix PR gdb/251.
8213
8214 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
8215
8216 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
8217 after the last symbol in a block.
8218
8219 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
8220
8221 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
8222 is non zero as a found symbol.
8223
8224 2002-04-08 Andrew Cagney <ac131313@redhat.com>
8225
8226 * findvar.c: Include "builtin-regs.h".
8227 (value_of_register): Call value_of_builtin_reg when applicable.
8228 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
8229 (target_map_name_to_register): Call
8230 builtin_reg_map_name_to_regnum.
8231 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
8232 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
8233 (builtin_regs_h): Define.
8234 (builtin-regs.o): New target.
8235 (findvar.o): Add $(builtin_regs_h).
8236 * builtin-regs.c, builtin-regs.h: New files.
8237 * std-regs.c: New file.
8238 Partial fix for PR gdb/251.
8239
8240 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8241
8242 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
8243 it's no longer required.
8244
8245 2002-04-08 Andrew Cagney <ac131313@redhat.com>
8246
8247 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
8248
8249 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8250
8251 From Jimi X <jimix@watson.ibm.com>:
8252 * rs6000-tdep.c (rs6000_software_single_step): Use
8253 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
8254 and size. Use target_insert_breakpoint() and
8255 target_remove_breakpoint() to insert and remove breakpoints
8256 instead of explicit memory reads and writes.
8257
8258 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8259
8260 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
8261 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
8262 ELF_OBJECT_FORMAT ifdef.
8263
8264 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8265
8266 From Jimi X <jimix@watson.ibm.com>:
8267 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
8268
8269 2002-04-08 Kevin Buettner <kevinb@redhat.com>
8270
8271 From Jimi X <jimix@watson.ibm.com>:
8272 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
8273 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
8274
8275 2002-04-07 Mark Kettenis <kettenis@gnu.org>
8276
8277 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
8278 s/asprintf/xasprintf/.
8279 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
8280
8281 2002-04-07 Andrew Cagney <ac131313@redhat.com>
8282
8283 I believe Jeff Law denies responsability for this one:
8284 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
8285 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
8286 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
8287 Work-around for PR gdb/366.
8288
8289 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
8290
8291 * remote-e7000.c (write_small, e7000_read_inferior_memory,
8292 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
8293 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
8294
8295 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
8296
8297 * sh-tdep.c (sh_fp_frame_init_saved_regs,
8298 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
8299 information.
8300
8301 2002-04-07 Andrew Cagney <ac131313@redhat.com>
8302
8303 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
8304 maintainer.
8305
8306 2002-04-07 Andrew Cagney <ac131313@redhat.com>
8307
8308 * README (Reporting Bugs in GDB): Document the bug web page as the
8309 prefered way of submitting bugs.
8310 Fix PR gdb/402.
8311
8312 2002-04-06 Andrew Cagney <ac131313@redhat.com>
8313
8314 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
8315 -1. Update comment.
8316 * gdbarch.h, gdbarch.c: Re-generate.
8317
8318 2002-04-07 Andreas Schwab <schwab@suse.de>
8319
8320 * m68klinux-nat.c (fill_fpregset): Properly pass address of
8321 buffer to regcache_collect.
8322
8323 2002-04-06 Andrew Cagney <ac131313@redhat.com>
8324
8325 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
8326 * gdbarch.c, gdbarch.h: Re-generate.
8327
8328 2002-04-06 Andrew Cagney <ac131313@redhat.com>
8329
8330 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
8331 declaration. Fix -Werror.
8332
8333 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
8334
8335 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
8336 * gdbarch.c: Regenerate.
8337
8338 2002-04-05 Michael Snyder <msnyder@redhat.com>
8339
8340 * breakpoint.c (clear_command): Rewrite middle section to
8341 combine two loops with identical control conditions.
8342 Add a cleanup to eliminate a memory leak.
8343 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
8344
8345 2002-04-05 H.J. Lu (hjl@gnu.org)
8346
8347 * solib-svr4.c (bkpt_names): Add "__start".
8348
8349 2002-04-04 Andrew Cagney <ac131313@redhat.com>
8350
8351 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
8352 as test for 64 bit target.
8353
8354 2002-04-05 Andrew Cagney <ac131313@redhat.com>
8355
8356 * h8500-tdep.c (h8500_write_fp): Delete function.
8357 * dwarf2cfi.c (cfi_write_fp): Document as not used.
8358 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
8359 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
8360 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
8361 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
8362 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
8363 (s390_write_fp):
8364 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
8365 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
8366 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
8367 (d10v_write_fp): Delete function.
8368 * inferior.h (write_fp, generic_target_write_fp): Delete
8369 declarations.
8370 * regcache.c (generic_target_write_fp): Delete function.
8371 (write_fp): Delete function.
8372 * gdbarch.sh (TARGET_WRITE_FP): Delete.
8373 * gdbarch.h, gdbarch.c: Regenerate.
8374 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
8375 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
8376 (sparc64_write_fp): Delete declaration.
8377 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
8378 (h8500_write_fp): Delete declaration.
8379
8380 2002-04-04 Andrew Cagney <ac131313@redhat.com>
8381
8382 * sparc-tdep.c (sparc64_write_fp): Delete.
8383 (sparc_push_dummy_frame): Replace write_fp call with code to store
8384 the FP directly.
8385 (sparc_gdbarch_init): Do not initialize write_fp.
8386
8387 2002-04-05 Kevin Buettner <kevinb@redhat.com>
8388
8389 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
8390 clause.
8391
8392 2002-03-29 Jim Blandy <jimb@redhat.com>
8393
8394 * stack.c (get_selected_block): Add new argument `addr_in_block',
8395 used to return the exact code address we used to select the block,
8396 not just the block.
8397 * blockframe.c (get_frame_block, get_current_block): Same.
8398 * frame.h (get_frame_block, get_current_block,
8399 get_selected_block): Update declarations.
8400 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
8401 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
8402
8403 2002-04-05 Michael Snyder <msnyder@redhat.com>
8404
8405 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
8406 warning message.
8407
8408 2002-04-05 J. Brobecker <brobecker@gnat.com>
8409
8410 * utils.c (xfullpath): New function.
8411 * defs.h (xfullpath): Add declaration.
8412 * source.c (openp): Use xfullpath in place of gdb_realpath to
8413 avoid resolving the basename part of filenames when the
8414 associated file is a symbolic link. This fixes a potential
8415 inconsistency between the filenames known to GDB and the
8416 filenames it prints in the annotations.
8417 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
8418 to be able to match a filename with either the real filename, or
8419 the name of any symbolic link to this file.
8420 (lookup_partial_symtab): Ditto.
8421
8422 2002-04-04 Michael Snyder <msnyder@redhat.com>
8423
8424 * breakpoint.c: Add support for hardware breakpoints in overlays.
8425 (overlay_events_enabled): New state variable.
8426 (insert_breakpoints): Use overlay_events_enabled to decide
8427 whether to attempt to set a breakpoint at the overlay load addr.
8428 Handle bp_hardware_breakpoint as well as bp_breakpoint.
8429 (remove_breakpoint): Use overlay_events_enabled to decide
8430 whether breakpoints need to be removed from overlay load addr.
8431 Handle bp_hardware_breakpoint as well as bp_breakpoint.
8432 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
8433 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
8434 disable_overlay_breakpoints): Update overlay_events_enabled.
8435
8436 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
8437
8438 * dwarf2read.c (struct function_range): New.
8439 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
8440 (check_cu_functions): New.
8441 (read_file_scope): Initialize global function lists.
8442 Call dwarf_decode_line after processing children.
8443 (read_func_scope): Add to global function list.
8444 (dwarf_decode_lines): Call check_cu_functions everywhere
8445 record_line is called. Call record_line with a linenumber
8446 of 0 to mark sequence ends.
8447
8448 2002-04-04 Michal Ludvig <mludvig@suse.cz>
8449
8450 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
8451 change sync with glibc.
8452
8453 2002-04-03 Jim Blandy <jimb@redhat.com>
8454
8455 * configure.in: Call AC_C_INLINE.
8456 * configure: Regenerated.
8457
8458 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
8459
8460 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
8461 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
8462
8463 2002-03-31 Mark Kettenis <kettenis@gnu.org>
8464
8465 * NEWS: Mention gcore support on FreeBSD/i386.
8466
8467 * fbsd-proc.c: New file.
8468 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
8469 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
8470
8471 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
8472 while statement.
8473
8474 2002-03-29 Jim Blandy <jimb@redhat.com>
8475
8476 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
8477 unescaped newlines in string literals, but newer ones don't. So
8478 escape them.
8479
8480 2002-03-26 Michael Snyder <msnyder@redhat.com>
8481 Andrew Cagney <cagney@redhat.com>
8482
8483 * cli/cli-dump.c: New file. Dump memory to file,
8484 restore file to memory.
8485 * cli/cli-dump.h: New file.
8486 * Makefile.in: Add rules, dependencies for cli-dump.o.
8487 * NEWS: Mention new commands.
8488
8489 2002-03-28 Michael Snyder <msnyder@redhat.com>
8490
8491 * symfile.c (symbol_file_add): Move test for null symbols to later.
8492
8493 2002-03-27 Andrew Cagney <ac131313@redhat.com>
8494
8495 From veksler at il.ibm.com:
8496 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
8497 the xstrduped original path.
8498 Fix PR gdb/417.
8499
8500 2002-03-27 Michael Snyder <msnyder@redhat.com>
8501
8502 * breakpoint.c (_initialize_breakpoint): Clean up help string.
8503 * infcmd.c (_initialize_infcmd): Ditto.
8504 * language.c (_initialize_language): Ditto.
8505 * symfile.c (_initialize_symfile): Ditto.
8506 * top.c (_init_main): Ditto.
8507 * cli/cli-cmds.c (init_cli_cmds): Ditto.
8508
8509 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
8510
8511 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
8512 vector registers handling.
8513 (skip_prologue): Handle new AltiVec instructions. Fill in new
8514 fields of frame data.
8515 (frame_get_saved_regs): Fill in information for AltiVec registers.
8516
8517 2002-03-27 Jim Blandy <jimb@redhat.com>
8518
8519 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
8520 a function; leave this macro here to invoke that function.
8521 (symbol_init_mangled_name): Declaration for that function.
8522 * symtab.c (symbol_init_mangled_name): New function.
8523
8524 2002-03-27 Andrew Cagney <ac131313@redhat.com>
8525
8526 * valarith.c: Replace strerror with safe_strerror.
8527 * tracepoint.c: Ditto.
8528 * lin-lwp.c: Ditto.
8529 * go32-nat.c: Ditto.
8530 * inflow.c: Ditto.
8531 * gnu-nat.c: Ditto.
8532
8533 2002-03-27 Andreas Schwab <schwab@suse.de>
8534
8535 * event-top.c (command_line_handler): Remove useless if.
8536
8537 2002-03-27 Andreas Jaeger <aj@suse.de>
8538
8539 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
8540 comment.
8541
8542 2002-03-27 Michal Ludvig <mludvig@suse.cz>
8543
8544 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
8545 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
8546 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
8547 (x86_64_linux_dr_get_status, supply_gregset),
8548 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
8549 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
8550 (x86_64_register_info_table): Add.
8551 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
8552 (x86_64_register_raw_size, x86_64_register_virtual_type),
8553 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
8554 general x86_64_register_info_table.
8555 (i386_gdbarch_init): gdbarch_register_bytes is now set
8556 dynamicaly during initialization.
8557 * regformats/reg-x86-64.dat: Synced with changes to registers above.
8558 * gdbserver/linux-x86-64-low.c: Ditto.
8559
8560 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
8561
8562 * gdbserver/server.c (main): Call target_signal_to_host_p
8563 and target_signal_to_host on signals received from the remote.
8564 * gdbserver/remote-utils.c (prepare_resume_reply): Call
8565 target_signal_from_host on signals sent to the remote.
8566 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
8567 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
8568
8569 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
8570
8571 * signals/signals.c: Include "server.h" in gdbserver build.
8572 (target_signal_from_name): Don't use STREQ.
8573 (_initialize_signals): Likewise. Don't include function in
8574 gdbserver build.
8575
8576 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
8577
8578 * signals.c: Moved to...
8579 * signals/signals.c: Here.
8580 * Makefile (signals.o): Update.
8581
8582 2002-03-26 Jeff Law (law@redhat.com)
8583
8584 * somread.c (som_symtab_read): Remove some commented out code and
8585 updated related comments. Do not set the minimal symbol table to
8586 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
8587 in a dynamic executable.
8588 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
8589 where we are unable to find the minimal symbol for the given
8590 PC value.
8591
8592 2002-03-25 Jeff Law (law@redhat.com)
8593
8594 * linux-proc.c (read_mapping): Scan up to end of line for filename.
8595
8596 2002-03-25 Michal Ludvig <mludvig@suse.cz>
8597
8598 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
8599
8600 2002-03-23 Andrew Cagney <ac131313@redhat.com>
8601
8602 * command.h: Update copyright.
8603 (struct cmd_list_element): Replace definition with opaque
8604 declaration.
8605 (enum cmd_types): Document that it will eventually be moved to
8606 cli/cli-decode.h
8607 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
8608 (MALLOCED_REPLACEMENT): Delete macro.
8609 * Makefile.in (cli_decode_h): Add $(command_h).
8610 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
8611 * top.c: Include "cli/cli-decode.h".
8612 * completer.c: Include "cli/cli-decode.h".
8613 * maint.c: Include "cli/cli-decode.h".
8614 * cli/cli-decode.h: Include "command.h".
8615 (enum command_class): Delete.
8616 (enum cmd_types): Comment out.
8617 (enum cmd_auto_boolean): Delete.
8618 (enum var_types): Delete.
8619
8620 2002-03-23 Andrew Cagney <ac131313@redhat.com>
8621
8622 * cli/cli-decode.c: Include "gdb_assert.h".
8623 (add_set_or_show_cmd): New static function.
8624 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
8625 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
8626 all fields, such as func, from the set command.
8627
8628 2002-03-23 Andrew Cagney <ac131313@redhat.com>
8629
8630 * MAINTAINERS (sh-elf): Change warning flag to -w.
8631
8632 2002-03-23 Andrew Cagney <cagney@redhat.com>
8633
8634 * defs.h (error): Add printf format attribute.
8635 * thread-db.c (thread_from_lwp): Fix error format string.
8636 * stack.c (parse_frame_specification): Ditto.
8637 * cli/cli-decode.c (undef_cmd_error): Ditto.
8638 * scm-lang.c (scm_lookup_name): Ditto.
8639 * tracepoint.c (trace_error): Ditto.
8640 * remote-utils.c (usage): Ditto.
8641 * remote.c (compare_sections_command): Ditto.
8642 Fix PR gdb/328.
8643
8644 2002-03-22 Andrew Cagney <ac131313@redhat.com>
8645
8646 * gdbtypes.c (append_composite_type_field): New function.
8647 (init_composite_type): New function.
8648 * gdbtypes.h (append_composite_type_field): Declare.
8649 (init_composite_type): Ditto.
8650
8651 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
8652
8653 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
8654 function.
8655 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
8656 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
8657 structure returning convention for SYSV ABI case, but not
8658 for GNU/Linux, FreeBSD, or NetBSD.
8659
8660 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
8661
8662 * symtab.h (lookup_block_symbol): Add mangled_name argument
8663 to prototype.
8664
8665 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
8666 with new mangled_name argument.
8667 * linespec.c (decode_line_1): Likewise.
8668 * valops (value_of_this): Likewise.
8669 * symtab.c (lookup_transparent_type): Likewise.
8670 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
8671 (lookup_symbol): If we are given a mangled name, pass it down
8672 to lookup_symbol_aux.
8673 (lookup_block_symbol): If we are given a mangled name to check
8674 against, only return symbols which match it.
8675
8676 2002-03-22 Christopher Faylor <cgf@redhat.com>
8677
8678 * win32-nat.c (child_create_inferior): Check for proper shell to use
8679 here, in case the user changes it on the fly.
8680 (_initialize_inftarg): Remove shell path considerations.
8681
8682 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
8683
8684 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
8685 for gdbarch_max_register_raw_size and max_register_virtual_size.
8686 Adjust copyright year.
8687
8688 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
8689
8690 * dbxread.c (process_one_symbol): Extend the first N_SLINE
8691 in a function to cover the entire beginning of the function
8692 as well if it does not already.
8693
8694 2002-03-21 Tom Rix <trix@redhat.com>
8695
8696 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
8697 (rs6000_ptrace64): Renamed from ptrace64.
8698
8699 2002-03-20 Martin M. Hunt <hunt@redhat.com>
8700
8701 * gdbserver/remote-utils.c (remote_open): Don't call
8702 getprotobyname, we're all using TCP here so just use
8703 IPPROTO_TCP.
8704 * gdbserver/gdbreplay.c (remote_open): Ditto.
8705
8706 2002-03-20 Martin M. Hunt <hunt@redhat.com>
8707
8708 * regcache.c (_initialize_regcache): No need to call
8709 build_regcache() at this time; it gets called whenever
8710 the gdbarch changes.
8711
8712 2002-03-20 David O'Brien <obrien@FreeBSD.org>
8713
8714 * sparc-nat.c: Include sys/param.h where possible.
8715
8716 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
8717
8718 Fix PR gdb/422.
8719 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
8720 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
8721 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
8722 complex types.
8723 * stabsread.c (rs6000_builtin_type): Likewise.
8724 (read_sun_floating_type): Likewise.
8725
8726 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8727
8728 * stabsread.c (read_member_functions): Remove skip code for duplicate
8729 constructor/destructor methods. Use standard parsing for these
8730 methods and just do not chain them to the list of methods after
8731 parsing.
8732
8733 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
8734
8735 * coffread.c: Remove redundant static declarations. Replace
8736 occurrences of `PTR' with `void *'.
8737 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
8738 * top.h (quit_cover): Likewise.
8739 * defs.h (catch_errors): Likewise.
8740
8741 2002-03-18 Andrew Cagney <ac131313@redhat.com>
8742
8743 * defs.h (XMALLOC): Define.
8744 * gdb-events.sh (XMALLOC): Delete macro.
8745 * gdb-events.c, gdb-events.h: Regenerate.
8746 * gdbarch.sh (XMALLOC): Delete macro.
8747 * gdbarch.c: Regenerate.
8748 * serial.c (XMALLOC): Delete macro.
8749 * ui-file.c (XMALLOC): Ditto.
8750 * ser-unix.h (XMALLOC): Ditto.
8751 * sh-tdep.c (XMALLOC): Ditto.
8752 * ui-out.c (XMALLOC): Ditto.
8753 * utils.c (XMALLOC): Ditto.
8754 * i386-tdep.c (XMALLOC): Ditto.
8755 * gdb-events.c (XMALLOC): Ditto.
8756 * d10v-tdep.c (XMALLOC): Ditto.
8757 * cli-out.c (XMALLOC): Ditto.
8758
8759 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
8760 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
8761 * ui-file.c, ui-out.c: Ditto.
8762
8763 2002-03-18 Andrew Cagney <ac131313@redhat.com>
8764
8765 * command.h (struct cmd_list_element): Add field context.
8766 (set_cmd_context, get_cmd_context): Declare.
8767 * cli/cli-decode.h: Ditto.
8768 * cli/cli-decode.c (get_cmd_context): New function.
8769 (set_cmd_context): New function.
8770 (add_cmd): Initialize context.
8771 Part of fixing PR gdb/145 and PR gdb/146.
8772
8773 2002-03-17 Andrew Cagney <ac131313@redhat.com>
8774
8775 * cli/cli-decode.c (cmd_type): New function.
8776 * command.h (cmd_type): Declare.
8777 * infrun.c (set_schedlock_func): Call function cmd_type.
8778 * kod.c (kod_set_os): Call cmd_type.
8779 * cris-tdep.c (cris_version_update): Use function cmd_type.
8780 (cris_mode_update, cris_abi_update): Ditto.
8781
8782 * command.h: (execute_cmd_post_hook): Declare.
8783 (execute_cmd_pre_hook): Declare.
8784 * cli/cli-script.c (clear_hook_in_cleanup): New function.
8785 (execute_cmd_post_hook, execute_cmd_pre_hook): New
8786 functions. Execute pre/post hook while ensuring that afterwords
8787 hook_in is cleared.
8788 * top.c (execute_command): Use execute_cmd_post_hook, and
8789 execute_cmd_pre_hook to execute pre/post commands.
8790 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
8791 hook_stop_stub.
8792 (hook_stop_stub): Call execute_cmd_pre_hook.
8793
8794 2002-03-17 Andrew Cagney <ac131313@redhat.com>
8795
8796 * kod.c (kod_set_os): Revert previous change. Is called by ``info
8797 set'' and this leads to a core dump. Move xstrdup of
8798 operating_system to after check that it is not NULL.
8799
8800 2002-03-17 Andrew Cagney <ac131313@redhat.com>
8801
8802 * kod.c (kod_set_os): Remove unnecessary check that
8803 ``command->type'' is set_cmd.
8804
8805 * valprint.c (set_input_radix): Use input_radix.
8806 (set_output_radix): Use output_radix.
8807 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
8808 isn't reverted.
8809
8810 2002-03-16 Andrew Cagney <ac131313@redhat.com>
8811
8812 * value.h (struct value): Delete field ``substring_addr''. Change
8813 aligner fields to force_doublest_align, force_longest_align,
8814 force_core_addr_align and force_pointer_aligh.
8815
8816 * value.h (struct value): Fix typo in above change.
8817
8818 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8819
8820 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
8821 to fix internal_error from ``maintenance print architecture''.
8822
8823 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8824
8825 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
8826 for gcc versions after gcc-2.8.1.
8827
8828 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8829
8830 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
8831 for method resolution. Restore adjustment of ``this'' pointer after
8832 calling value_struct_elt, which was accidentally removed during the
8833 HP merge.
8834
8835 2002-03-15 Andrew Cagney <ac131313@redhat.com>
8836
8837 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
8838 value_of_register.
8839 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
8840 get_saved_register.
8841 * value.h (value_of_register): Update.
8842
8843 2002-03-14 Richard Henderson <rth@redhat.com>
8844
8845 * configure.in: Detect declaration for canonicalize_file_name.
8846 * utils.c (canonicalize_file_name): Declare, if needed.
8847 (gdb_realpath): Prefer realpath if available and usable.
8848 * config.in, configure: Rebuild.
8849
8850 2002-03-14 Richard Henderson <rth@redhat.com>
8851
8852 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
8853 a constant array bound.
8854
8855 * MAINTAINERS: Add myself to write-after-approval.
8856
8857 2002-03-14 Michael Snyder <msnyder@redhat.com>
8858
8859 * symfile.c (syms_from_objfile): Return immediately if no syms.
8860 (symbol_file_add): Return immediately if no syms.
8861 (find_sym_fns): Return immediately if no syms.
8862
8863 2002-03-13 Michal Ludvig <mludvig@suse.cz>
8864
8865 * gdbserver/remote-util.c (remote_open): Print remote-side's
8866 IP address when remote debugging over the network.
8867
8868 2002-03-12 David O'Brien <obrien@FreeBSD.org>
8869
8870 * config/sparc/fbsd.mh: Fix copyright.
8871 * config/sparc/fbsd.mt: Likewise.
8872
8873 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
8874
8875 * MAINTAINERS: Fix typo in name of gdb warnings option.
8876 (x86-64): Fix formating so that this can be parsed by awk.
8877
8878 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
8879
8880 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
8881 * defs.h: Include "gdb/signals.h".
8882 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
8883
8884 2002-03-10 Michal Ludvig <mludvig@suse.cz>
8885
8886 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
8887 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
8888 from x86-64-tdep.h
8889
8890 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
8891 Don Howard <dhoward@redhat.com>
8892
8893 * mips-tdep.c (ST0_FR): Define.
8894 (mips2_fp_compat): New function, temporarily disabled.
8895 (mips_read_fp_register_single): New function.
8896 (mips_read_fp_register_double): New function.
8897 (mips_print_register): Use them.
8898 (do_fp_register_row): Likewise.
8899
8900 2002-03-09 Andrew Cagney <ac131313@redhat.com>
8901
8902 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
8903 approval''.
8904
8905 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8906
8907 * stabsread.c (read_member_functions): Fix is_stub test for
8908 static member functions, improve comment.
8909
8910 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
8911
8912 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
8913 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
8914 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
8915 commands that set boolean values.
8916 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
8917 (arm_rdi_resume): Always initialize PC.
8918 (arm_rdi_open): Don't use rslt as a boolean.
8919 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
8920 (arm_rdi_fetch_registers, arm_rdi_store_registers)
8921 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
8922 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
8923
8924 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
8925
8926 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
8927 * configure: Rebuilt.
8928
8929 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
8930
8931 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
8932 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
8933
8934 2002-03-06 Andrew Cagney <ac131313@redhat.com>
8935
8936 * cli/cli-decode.c (set_cmd_completer): New function.
8937 * command.h (set_cmd_completer): Declare.
8938 * cli/cli-decode.h (set_cmd_completer): Ditto.
8939
8940 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
8941 * cli/cli-cmds.c (init_cli_cmds): Ditto.
8942 * win32-nat.c (_initialize_inftarg): Ditto.
8943 * remote-rdi.c (_initialize_remote_rdi): Ditto.
8944 * proc-api.c (_initialize_proc_api): Ditto.
8945 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
8946 * source.c (_initialize_source): Ditto.
8947 * exec.c (_initialize_exec): Ditto.
8948 * solib.c (_initialize_solib): Ditto.
8949 * top.c (init_main): Ditto.
8950 * tracepoint.c (_initialize_tracepoint): Ditto.
8951 * symfile.c (_initialize_symfile): Ditto.
8952 * printcmd.c (_initialize_printcmd): Ditto.
8953 * infcmd.c (_initialize_infcmd): Ditto.
8954 * corefile.c (_initialize_core): Ditto.
8955
8956 2002-03-05 Andrew Cagney <ac131313@redhat.com>
8957
8958 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
8959
8960 2002-03-05 Andrew Cagney <ac131313@redhat.com>
8961
8962 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
8963
8964 2002-03-05 Andrew Cagney <ac131313@redhat.com>
8965
8966 * NEWS: Update headings, 5.2 has branched.
8967
8968 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
8969
8970 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
8971 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
8972 (register_addr, REGISTER_RAW_SIZE): Likewise.
8973 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
8974 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
8975
8976 2002-03-03 Michal Ludvig <mludvig@suse.cz>
8977
8978 * MAINTAINERS (x86-64): Add myself.
8979 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
8980 changed value_ptr -> struct value *
8981
8982 2002-03-01 David O'Brien <obrien@FreeBSD.org>
8983
8984 * configure.host (sparc64-*-freebsd): Add.
8985 * configure.tgt: Likewise.
8986 * config/sparc/fbsd.mh: New file.
8987 * config/sparc/fbsd.mt: Likewise.
8988 * config/sparc/nm-fbsd.h: Likewise.
8989 * config/sparc/tm-fbsd.h: Likewise.
8990
8991 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
8992
8993 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
8994 regformats/reg-s390x.dat.
8995
8996 2002-03-01 Andrew Cagney <ac131313@redhat.com>
8997
8998 * utils.c: Add FIXME explaining true/false problem.
8999
9000 2002-02-28 Andrew Cagney <ac131313@redhat.com>
9001
9002 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
9003
9004 2002-02-28 Michael Chastain <mec@shout.net>
9005
9006 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
9007
9008 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
9009
9010 * gdbserver/linux-s390-low.c: New file.
9011 * regformats/reg-s390.dat: New file.
9012 * regformats/reg-s390x.dat: New file.
9013 * gdbserver/configure.srv: Add S/390.
9014 * gdbserver/Makefile.in: Add S/390.
9015 * configure.tgt: Enable gdbserver for S/390.
9016
9017 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
9018
9019 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
9020 first line of the doc string for "info dos", except at the end of
9021 the sentence, since the short help stops at the first period.
9022
9023 2002-02-28 Jason Merrill <jason@redhat.com>
9024
9025 * dwarf2read.c (dwarf_cfi_name): Add new codes.
9026
9027 2002-02-27 Fred Fish <fnf@redhat.com>
9028
9029 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
9030 comment (dumy -> dummy).
9031
9032 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9033
9034 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
9035
9036 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
9037
9038 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
9039
9040 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
9041
9042 * gdbserver/acconfig.h: New file.
9043 * gdbserver/i387-fp.c: New file.
9044 * gdbserver/i387-fp.h: New file.
9045 * gdbserver/linux-x86-64.c: New file.
9046 * regformats/reg-x86-64.dat: New file.
9047 * configure.tgt: Add x86_64-*-linux* gdbserver support.
9048 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
9049 * gdbserver/configure.in: Add support for regsets.
9050 * gdbserver/config.in: Regenerate.
9051 * gdbserver/configure: Regenerate.
9052 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
9053 * gdbserver/linux-low.h: New file.
9054 * gdbserver/linux-low.c: Include "linux-low.h". Add support
9055 for regsets.
9056 * gdbserver/linux-arm-low.c: Include "linux-low.h".
9057 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
9058 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
9059 * gdbserver/linux-mips-low.c: Include "linux-low.h".
9060 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
9061 * gdbserver/linux-sh-low.c: Include "linux-low.h".
9062 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
9063 "i387-fp.h". Add PTRACE_GETREGS and friends.
9064 * gdbserver/regcache.c (supply_register): New function.
9065 (supply_register_by_name): New function.
9066 (collect_register): New function.
9067 (collect_register_by_name): New function.
9068
9069 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
9070
9071 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
9072 (config.status): Add configure.srv dependency.
9073 (server_h): Add config.h dependency.
9074
9075 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
9076
9077 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
9078 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
9079 * gdbserver/configure.srv: Change i386-*-linux* to use
9080 reg-i386-linux.o.
9081
9082 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9083
9084 * x86-64-tdep.c: Re-indent. Update copyright date.
9085
9086 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9087
9088 From Michal Ludvig <mludvig@suse.cz>:
9089 * x86-64-tdep.c (value.h): Delete.
9090 (gdb_assert.h): Include.
9091 (x86_64_register_convert_to_virtual,
9092 x86_64_register_convert_to_raw ): Add check which lets only
9093 floating-point values to be converted.
9094 (value_push): Delete.
9095 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
9096 (i386_gdbarch_init): Number of register_bytes fixed.
9097
9098 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9099
9100 * MAINTAINERS: Add x86-64 target.
9101
9102 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9103
9104 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
9105 * osfsolib.c (solib_map_sections): Ditto.
9106 * irix5-nat.c (solib_map_sections): Ditto.
9107 * corelow.c (gdb_check_format): Ditto.
9108 * symfile.c (symfile_bfd_open): Ditto.
9109 * solib.c (solib_map_sections): Ditto.
9110 Fix PR gdb/354.
9111
9112 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9113
9114 * remote.c (_initialize_remote): By default, disable ``e'' and
9115 ``E'' step out-of-range packets.
9116
9117 2002-02-26 Andreas Schwab <schwab@suse.de>
9118
9119 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
9120 m68k_linux_frame_saved_pc.
9121 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
9122 in_sigtramp.
9123 (SIGCONTEXT_PC_OFFSET): Remove.
9124 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
9125 m68k_linux_sigtramp_saved_pc): New functions.
9126 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
9127 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
9128 (UCONTEXT_PC_OFFSET): Define.
9129 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
9130 non-RT and RT signal trampolines.
9131
9132 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
9133
9134 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
9135 (TARGET_NBPG, STACK_END_ADDR): Delete
9136 (VARIABLES_INSIDE_BLOCK): Delete.
9137
9138 2002-02-25 Andrew Cagney <ac131313@redhat.com>
9139
9140 * utils.c (perror_with_name): Make string parameter constant.
9141 (print_sys_errmsg): Ditto.
9142 (query): Ditto.
9143 * defs.h (perror_with_name): Update.
9144 (print_sys_errmsg): Update.
9145 (query): Update.
9146
9147 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
9148
9149 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
9150 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
9151
9152 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9153
9154 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
9155 if it already matches the current architecture from the exec file.
9156 Include arch-utils.h for gdbarch_info_init prototype.
9157 * Makefile.in (rs6000-nat.o): Update dependencies.
9158
9159 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
9160
9161 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
9162 list of exported variables.
9163
9164 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
9165
9166 * gdbserver/configure.srv: New file.
9167 * gdbserver/configure.in: Use configure.srv instead
9168 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
9169 from it.
9170 * gdbserver/configure: Regenerated.
9171 * gdbserver/terminal.h: New file.
9172 * gdbserver/Makefile.in: Update for configure changes. Remove
9173 more unneeded include paths.
9174
9175 2002-02-24 Andrew Cagney <ac131313@redhat.com>
9176
9177 From wiz at danbala:
9178 * config/sparc/tm-sp64.h: Fix grammar and typos.
9179 Fix PR gdb/287.
9180
9181 2002-02-24 Andrew Cagney <ac131313@redhat.com>
9182
9183 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
9184 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
9185 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
9186 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
9187 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
9188 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
9189 * s390-tdep.c: Ditto.
9190 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
9191 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
9192 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
9193 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
9194 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
9195 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
9196 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
9197 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
9198 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
9199 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
9200 Fix PR gdb/378.
9201
9202 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9203
9204 * lin-thread.c: Delete file.
9205 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
9206 to gdb_proc_service.h.
9207 * configure: Re-generate.
9208
9209 * ocd.c (ocd_open): Do not try to open the "ocd" device.
9210 * serial.c (serial_open): Delete check for "ocd".
9211 Fix PR gdb/349.
9212
9213 * Makefile.in (linux-thread.o): Delete target.
9214 * linux-thread.c: Delete file.
9215
9216 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
9217 renamed SH files to be consistent.
9218
9219 * symtab.c (sort_search_symbols): Use xfree.
9220
9221 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
9222
9223 * arm-linux-tdep.c (arm_linux_init_abi): Register
9224 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
9225 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
9226 definition with undef, since we don't want the sysvr4 definition.
9227 (SKIP_TRAMPOLINE_CODE): Likewise.
9228
9229 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9230
9231 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
9232
9233 * configure.in: (AC_CHECK_FUNCS) Added test for
9234 canonicalize_file_name Regenerated.
9235 * config.in, configure: Regenerated.
9236 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
9237 defined use canonicalize_file_name.
9238
9239 2002-02-23 Michael Chastain <mec@shout.net>
9240
9241 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
9242
9243 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9244
9245 * README: Remove references to cygnus.com.
9246 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
9247 dot com'' form. Remove references to cygnus.com and sourceware.
9248
9249 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9250
9251 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
9252 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
9253 1003.1-2001 no longer allows "head -1".
9254 * gdb/Makefile.in (version.c): Likewise.
9255 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
9256 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
9257 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
9258
9259 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9260
9261 * cli/cli-decode.c (cmd_cfunc_eq): New function.
9262 * command.h (cmd_cfunc_eq): Declare.
9263 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
9264
9265 * cli/cli-cmds.h (is_complete_command): Change parameter to a
9266 ``struct cmd_list_element *''.
9267 * cli/cli-cmds.c (is_complete_command): Update. Use
9268 cmd_cfunc_eq.
9269 * top.c (execute_command): Pass the command to
9270 is_complete_command.
9271 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
9272
9273 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9274
9275 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
9276 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
9277 architecture defines.
9278 * s390-tdep.c (s390_gdbarch_init): Likewise.
9279
9280 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
9281
9282 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
9283 (arm_linux_push_arguments): Likewise.
9284 (arm_linux_init_abi): Register them. Also register linux-specific
9285 call_dummy_words.
9286 (find_minsym_and_objfile): Use strcmp, not STREQ.
9287 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
9288 (arm_linux_call_dummy_words): Delete declaration.
9289 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
9290 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
9291 declarations.
9292 (LOWEST_PC): Delete.
9293
9294 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9295
9296 * maint.c (print_section_info): Do not prepend `0x' to filepos
9297 output, it will be handled by local_hex_string_custom.
9298
9299 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
9300
9301 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
9302 (store_newfpe_double, store_newfpe_extended, store_fpregister)
9303 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
9304
9305 2002-02-22 Jim Blandy <jimb@redhat.com>
9306
9307 Indicate that the bcache functions don't change the strings
9308 they're passed.
9309 * bcache.h (bcache, hash): Add `const' keywords to declarations.
9310 * bcache.c (bcache, hash): Add `const' keywords to definitions.
9311
9312 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
9313
9314 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
9315
9316 2002-02-21 Christopher Faylor <cgf@redhat.com>
9317
9318 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
9319 find the complete path to a loaded DLL.
9320
9321 2002-02-21 Fred Fish <fnf@redhat.com>
9322
9323 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
9324 that marks the end of the range of a function, enter a line number
9325 entry that has a line number of zero and a PC offset that matches
9326 the end of the function. This starts a range of PC's for which no
9327 line number information is known.
9328 * symtab.c (find_pc_sect_line): If our best fit is in a range of
9329 PC's for which no line number info is found (line number is zero)
9330 then we didn't find any valid line information.
9331 * symtab.h: Document use of zero line number entry.
9332
9333 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
9334
9335 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
9336 (have_ptrace_getvrregs): Define for run time checks.
9337 (gdb_vrregset_t): New type for Altivec register handling.
9338 (fetch_register, store_register): Fetch/store altivec register
9339 when needed.
9340 (fetch_altivec_register, store_altivec_register): New functions.
9341 (supply_vrregset, fill_vrregset): New functions.
9342 (fetch_altivec_registers, store_altivec_registers): New functions.
9343 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
9344 registers as well.
9345
9346 2002-02-21 Jiri Smid <smid@suse.cz>
9347
9348 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
9349
9350 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
9351
9352 * Makefile.in (armnbsd-nat.o): Update dependencies.
9353 * armnbsd-nat.c (supply_gregset): New function. Common code to
9354 supply the integer register set.
9355 (supply_fparegset): New function. Similar for FPA registers.
9356 (fetch_regs, fetch_fp_regs): Use them.
9357 (fetch_core_registers): Likewise.
9358 (fetch_elfcore_registers): New function.
9359 (arm_netbsd_elfcore_fns): New core-file type specification.
9360 (_initialize_arm_netbsd_nat): Register it.
9361
9362 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
9363
9364 * armnbsd-nat.c: Include gdbcore.h.
9365 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
9366 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
9367 'void' to declaration, to shut up ARI.
9368 (fetch_core_registers): Make static. Rewrite using supply_register.
9369 (arm_netbsd_core_fns): New core-file type specification.
9370 (_initialize_arm_netbsd_nat): New function.
9371
9372 2002-02-21 Christopher Faylor <cgf@redhat.com>
9373
9374 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
9375 value.
9376
9377 2002-02-20 Christopher Faylor <cgf@redhat.com>
9378
9379 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
9380 fails.
9381
9382 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9383
9384 * jv-exp.y (parse_number): Change type of implicit longs
9385 to builtin_type_uint64.
9386
9387 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9388
9389 * gdbserver/linux-low.c (mywait): Change argument to waitpid
9390 to be an integer instead of a `union wait'.
9391
9392 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9393
9394 * mips-linux-nat.c: Call the operating system GNU/Linux.
9395 * mips-linux-tdep.c: Likewise.
9396 * mips-tdep.c: Likewise.
9397
9398 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9399
9400 Fix PR gdb/265.
9401 * jv-exp.y (parse_number): Handle 64-bit integers.
9402
9403 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9404
9405 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
9406 AC_STDC_HEADERS to AC_HEADER_STDC.
9407 * gdbserver/configure: Regenerated.
9408
9409 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
9410
9411 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
9412 is defined.
9413 * sparc-tdep.c (get_longjmp_target): Likewise.
9414
9415 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
9416
9417 * News: Add news about ARM and Multi-arch. Mention the new target
9418 arm*-*-netbsd*.
9419
9420 2002-02-19 Jim Blandy <jimb@redhat.com>
9421
9422 * stabsread.c (error_type_complaint): Improve error message.
9423
9424 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
9425
9426 * gdbserver/README: Update documentation.
9427 * gdbserver/configure.in: Update configury to match documentation.
9428 * gdbserver/Makefile.in: Likewise.
9429 * gdbserver/configure: Regenerated.
9430 * gdbserver/aclocal.m4: New file, generated by aclocal.
9431 * gdbserver/config.in: New file, generated by autoheader.
9432
9433 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9434
9435 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
9436 armnbsd-nat.c.
9437
9438 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9439
9440 * arm-tdep.h (enum arm_float_model): New enum.
9441 (struct gdbarch_tdep): Add fp_model.
9442 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
9443 up floating-point conversions until we know the floating-point model
9444 in use by the inferior. Don't complain about being unable to
9445 determine the ABI of the inferior when we don't have one.
9446 (arm_extract_return_value): Support different floating-point models.
9447 (arm_store_return_value): Likewise.
9448 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
9449 ARM_FLOAT_SOFT.
9450 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
9451
9452 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9453
9454 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
9455 of ``current_gdbarch''.
9456
9457 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9458
9459 * armnbsd-nat.c : ANSIfy all function declarations.
9460 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
9461 (fetch_inferior_registers): Re-implement in terms of above.
9462 (store_register, store_regs, store_fp_register, store_fp_regs): New.
9463 (store_inferior_registers): Re-implement in terms of above.
9464
9465 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9466
9467 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
9468 kernel.
9469 * arm-linux-tdep.c: Likewise.
9470 * config/arm/tm-linux.h: Likewise.
9471
9472 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9473
9474 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
9475 * config/arm/nbsd.mt (TM_FILE): Delete.
9476 * config/arm/tm-nbsd.h: Delete.
9477
9478 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9479
9480 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
9481 Initialize CALL_DUMMY_LENGTH.
9482
9483 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9484
9485 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
9486 function.
9487 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
9488 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
9489 defines one thing and that is incorrect for this port.
9490 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
9491
9492 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9493
9494 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
9495
9496 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9497
9498 * win32-nat.c (display_selector): New function. Displays information
9499 about the information returned by GetThreadSelectorEntry API function.
9500 (display_selectors): New function. Displays the infomation of
9501 the selector given as argument, or of CS, DS ans FS selectors
9502 if no argument is given.
9503 ( _initialize_inftarg): Add "w32" as info prefix command.
9504 Add "info w32 selector" as command calling display_selectors.
9505
9506 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
9507
9508 * i386-tdep.c (get_longjmp_target): Fix compilation failure
9509 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
9510 if not defined.
9511
9512 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
9513
9514 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
9515
9516 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
9517
9518 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
9519 (arm_fix_call_dummy): Call it.
9520 (arm_call_dummy_breakpoint_offset): Delete.
9521 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
9522 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
9523
9524 2002-02-18 Andrew Cagney <ac131313@redhat.com>
9525
9526 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
9527 Default to func_frame_chain_valid.
9528 * gdbarch.h, gdbarch.c: Re-generate.
9529 * frame.h (FRAME_CHAIN_VALID): Delete definition.
9530
9531 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
9532
9533 * ppc-linux-nat.c: Update copyright.
9534 (fetch_register, store_register): Add tid parameter, don't compute
9535 tid here.
9536 (fetch_ppc_registers, store_ppc_registers): Add tid
9537 parameter. Pass it along to callees.
9538 (fetch_inferior_registers, store_inferior_registers): Compute tid
9539 here, and pass it to calleed functions.
9540 (fill_gregset, supply_fpregset): Clean up formatting.
9541
9542 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
9543
9544 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
9545 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
9546
9547 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
9548
9549 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
9550 * gdbarch.c gdbarch.h: Regenerate.
9551 * breakpoint.c (create_longjmp_breakpoint): Always compile this
9552 function.
9553 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
9554 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
9555 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
9556
9557 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
9558 * arm-tdep.c (arm_get_longjmp_target): New function.
9559 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
9560 this to a positive value register arm_get_longjmp_target as the
9561 longjmp handler.
9562 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
9563 (arm_linux_init_abi): Set up longjmp description in tdep.
9564 * armnbsd-nat.c (get_longjmp_target): Delete.
9565 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
9566 description in tdep.
9567 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
9568 (get_longjmp_target): Delete declaration.
9569 (GET_LONGJMP_TARGET): Delete.
9570 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
9571 (GET_LONGJMP_TARGET): Delete.
9572
9573 2002-02-17 Kevin Buettner <kevinb@redhat.com>
9574
9575 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
9576 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
9577 of ``current_gdbarch''.
9578
9579 2002-02-17 Tom Tromey <tromey@redhat.com>
9580
9581 * cli/cli-cmds.c (compare_strings): New function.
9582 (complete_command): Only print each unique item once.
9583 * completer.h (complete_line): Declare.
9584 * completer.c (complete_line): New function.
9585 (line_completion_function): Use it.
9586
9587 2002-02-16 Andrew Cagney <ac131313@redhat.com>
9588
9589 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
9590 * gdbarch.h, gdbarch.c: Re-generate.
9591
9592 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
9593
9594 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
9595
9596 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
9597
9598 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
9599 * valops.c (value_arg_coerce): Don't take the address of a reference
9600 to convert an argument to a reference.
9601
9602 2002-02-15 Christopher Faylor <cgf@redhat.com>
9603
9604 * win32-nat.c (get_image_name): New function.
9605 (handle_load_dll): Use get_image_name function.
9606 (get_child_debug_event): Avoid registering debug events until possibly
9607 execed process is started.
9608 (child_create_inferior): Allow invocation via shell so that command
9609 line redirection, etc. works ok.
9610 (_initialize_inftarg): Add new command: "set shell" to control whether
9611 a shell is used to start a process.
9612
9613 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
9614
9615 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
9616 instead of find_register_by_number.
9617 (cannot_store_register): Likewise.
9618
9619 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
9620
9621 * dwarf2read.c: Replace fprintf (stderr, ...) by
9622 fprintf_unfiltered (gdb_stderr, ...).
9623
9624 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
9625
9626 * gdbserver/gdbserver.1: Document --attach.
9627
9628 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
9629
9630 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
9631 descriptions.
9632 * arm-tdep.c (arm_default_arm_le_breakpoint)
9633 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
9634 (arm_default_thumb_be_breakpoint): New. Initialize them from
9635 traditional breakpoint defines.
9636 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
9637 (arm_gdbarch_init): Initialize new breakpoint variables.
9638 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
9639 (arm_linux_init_abi): Initialize linux-specific breakpoint.
9640 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
9641 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
9642 code out to ...
9643 (arm_netbsd_init_abi_common): ... here; new function.
9644 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
9645 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
9646 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
9647 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
9648
9649 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
9650
9651 * arm-tdep.h (enum arm_abi): New enum.
9652 (struct gdbarch_tdep): New structure.
9653 (LOWEST_PC): Provide a default.
9654 (arm_gdbarch_register_os_abi): Declare new function.
9655 * arm-tdep.c (arm_abi_names): New array.
9656 (process_note_abi_tag_sections): New function.
9657 (get_elfosabi): New function.
9658 (arm_gdbarch_register_os_abi): New function.
9659 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
9660 support for that ABI has been built in, then call the appropriate
9661 configuration routine. Use gdbarch_num_regs() to get the number
9662 of registers.
9663 (arm_dump_tdep): New function.
9664 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
9665 place-holder functions.
9666 (_initialize_arm_tdep): Register them.
9667 * config/arm/tm-arm.h (LOWEST_PC): Delete.
9668
9669 * armnbsd-tdep.c: New file.
9670 * Makefile.in (armnbsd-tdep.o): Add dependencies.
9671 * config/arm/nbsd.mt (TDEPFILES): Add it.
9672 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
9673
9674 * armnbsd-nat.c: Include regcache.h.
9675 * Makefile.in (armnbsd-nat.o): Update dependency list.
9676
9677 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
9678
9679 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9680
9681 * gdbserver/Makefile.in: Fix typos in target rules.
9682
9683 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9684
9685 Fix part of PR gdb/267.
9686 * linespec.c (find_methods): Handle constructors specially for now.
9687
9688 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
9689
9690 * arm-tdep.c (arm_push_arguments): Eliminate special float type
9691 handling.
9692 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
9693 standard_coerce_float_to_double().
9694
9695 2002-02-14 Christopher Faylor <cgf@redhat.com>
9696
9697 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
9698 GDBINIT_FILENAME.
9699
9700 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
9701
9702 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
9703 find_variant_by_name, because it confuses the multiarch
9704 framework. Return NULL if there isn't an architecture with the
9705 user supplied name, instead of forcing a different one without
9706 recording the change with the multiarch machinery.
9707 (find_variant_by_name): Delete.
9708
9709 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9710
9711 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
9712 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
9713
9714 2002-02-13 Martin M. Hunt <hunt@redhat.com>
9715
9716 * stack.c (print_frame_info_base): When calling
9717 print_frame_info_listing_hook, set current_source_symtab.
9718
9719 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9720
9721 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
9722 and remove unused $(INCLUDE_DIR).
9723 Add regcache.c to OBS.
9724 Add generated register protocol files to clean target.
9725 Update dependencies for new objects, obsolete old target code.
9726
9727 * gdbserver/linux-low.c: Remove all platform-specific code to
9728 new files. Remove various dead code. Update to use regcache
9729 functionality.
9730 * gdbserver/remote-utils.c (fromhex): Add return statement
9731 to quiet warning.
9732 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
9733 constant.
9734 (input_interrupt): Add integer parameter to match prototype
9735 of a signal handler.
9736 (outreg): Use register_data ().
9737 (prepare_resume_reply): Use gdbserver_expedite_regs.
9738 * gdbserver/server.c (main): Dynamically allocate own_buf because
9739 PBUFSIZ is no longer constant. Use registers_to_string () and
9740 registers_from_string ().
9741 * gdbserver/server.h: No longer include "defs.h". Add prototypes
9742 for error (), fatal (), and warning (). Update definition of
9743 PBUFSIZ to use regcache functionality. Add include guard.
9744 * gdbserver/utils.c (fatal): Add missing ``const''.
9745 (warning): New function.
9746
9747 * regformats/regdat.sh: Include "regcache.h" in generated files.
9748 Provide init_registers () function.
9749 * regformats/regdef.h: Add prototype for set_register_cache ().
9750 Add include guard.
9751
9752 * gdbserver/linux-arm-low.c: New file.
9753 * gdbserver/linux-i386-low.c: New file.
9754 * gdbserver/linux-ia64-low.c: New file.
9755 * gdbserver/linux-m68k-low.c: New file.
9756 * gdbserver/linux-mips-low.c: New file.
9757 * gdbserver/linux-ppc-low.c: New file.
9758 * gdbserver/linux-sh-low.c: New file.
9759
9760 * gdbserver/regcache.c: New file.
9761 * gdbserver/regcache.h: New file.
9762
9763 * gdbserver/low-linux.c: Removed obsolete file.
9764
9765 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9766
9767 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
9768 * config/i386/linux.mt: Likewise.
9769 * config/ia64/linux.mt: Likewise.
9770 * config/m68k/linux.mh: Likewise.
9771 * config/powerpc/linux.mh: Likewise.
9772 * config/mips/linux.mt: Likewise.
9773
9774 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
9775
9776 * config/i386/i386lynx.mh: Mark gdbserver variables
9777 as (currently) obsolete for this target.
9778 * config/i386/nbsd.mt: Likewise.
9779 * config/i386/nbsdelf.mt: Likewise.
9780 * config/m32r/m32r.mt: Likewise.
9781 * config/m68k/m68klynx.mh: Likewise.
9782 * config/m68k/nbsd.mt: Likewise.
9783 * config/m68k/sun3os4.mh: Likewise.
9784 * config/mips/vr5000.mt: Likewise.
9785 * config/ns32k/nbsd.mt: Likewise.
9786 * config/pa/hppabsd.mh: Likewise.
9787 * config/pa/hppaosf.mh: Likewise.
9788 * config/powerpc/nbsd.mt: Likewise.
9789 * config/rs6000/rs6000lynx.mh: Likewise.
9790 * config/s390/s390.mt: Likewise.
9791 * config/s390/s390x.mt: Likewise.
9792 * config/sparc/sparclynx.mh: Likewise.
9793 * config/sparc/sun4os4.mh: Likewise.
9794 * config/i386/x86-64linux.mt: Likewise.
9795 * config/sparc/linux.mh: Likewise.
9796
9797 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9798
9799 * configure.tgt: Configure gdbserver only for known working
9800 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
9801 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
9802 SUBDIRS if it is configured. Update comment for ${nativefile}.
9803 * configure: Regenerated.
9804
9805 2002-02-13 Michael Snyder <msnyder@redhat.com>
9806
9807 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
9808
9809 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
9810 (default_gcore_mach): Just return 0, work around a problem in bfd.
9811 (default_gcore_target): OK to return NULL if exec_bfd is null.
9812 (make_mem_sec): Use a cast, avoid a warning.
9813
9814 * procfs.c (find_memory_regions_callback): Use a cast instead of
9815 calling host_pointer_to_address (which complains if
9816 sizeof (host pointer) != sizeof (target pointer)).
9817 (procfs_make_note_section): Avoid overflow in psargs string.
9818
9819 * procfs.c (procfs_make_note_section): Make the default
9820 implementation return an error.
9821
9822 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
9823
9824 * procfs.c (procfs_make_note_section): Provide a default definition
9825 (for alpha-dec-osf4.0f). Fix typos.
9826
9827 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
9828
9829 * linux-proc.c: Add include of regcache.h.
9830 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
9831
9832 2002-02-13 Andrew Cagney <ac131313@redhat.com>
9833
9834 From 2002-01-18 Greg McGary <greg@mcgary.org>:
9835 * memattr.c (create_mem_region): Disallow useless empty region.
9836 Regions are half-open intervals, so allow [A..B) [B..C) as
9837 non-overlapping.
9838
9839 2002-02-13 Michael Chastain <mec@shout.net>
9840
9841 * defs.h: Kill CONST_PTR.
9842 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
9843 * c-lang.c (c_builtin_types): Likewise.
9844 * ch-lang.c (ch_builtin_types): Likewise.
9845 * f-lang.c (f_builtin_types): Likewise.
9846 * language.c (unknown_builtin_types): Likewise.
9847 * m2-lang.c (m2_builtin_types): Likewise.
9848 * p-lang.c (pascal_builtin_types): Likewise.
9849 * scm-lang.c (c_builtin_types): Likewise.
9850
9851 2002-02-13 Keith Seitz <keiths@redhat.com>
9852
9853 * arm-tdep.h (arm_get_next_pc): Add declaration.
9854
9855 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
9856
9857 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
9858 with other related struct-returning functions.
9859 (arm_extract_struct_value_address): New function.
9860 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
9861 initialize float_format, double_format and long_double_format as
9862 appropriate to the endianness of the target.
9863 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
9864 (arm_use_struct_convention): Delete declaration.
9865 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
9866
9867 2002-02-13 Keith Seitz <keiths@redhat.com>
9868
9869 * defs.h (core_addr_to_string_nz): New function.
9870
9871 2002-02-13 Mark Kettenis <kettenis@gnu.org>
9872
9873 Apply missing bits of 2002-01-15 patch.
9874 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
9875 (fill_fpregset): Use i387_fill_fsave.
9876
9877 2002-02-12 Keith Seitz <keiths@redhat.com>
9878
9879 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
9880 (core_addr_to_string_nz): New function.
9881
9882 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
9883
9884 * arm-linux-nat.c: Really include arm-tdep.h.
9885 * config/arm/tm-linux.h (struct type, struct value): Declare.
9886
9887 2002-02-11 Michael Snyder <msnyder@redhat.com>
9888
9889 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
9890 (gcore section): Ifdef for Solaris and Unixware only.
9891 (procfs_do_thread_registers): Unixware needs one lwpstatus
9892 per thread (not one prstatus or pstatus).
9893 (procfs_make_note_section): Iterate only over kernel threads (lwps),
9894 not over all gdb threads. For unixware, call elfcore_write_pstatus
9895 once before iterating over threads.
9896
9897 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
9898
9899 * arm-tdep.h: New file.
9900 * arm-tdep.c: Include arm-tdep.h.
9901 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
9902 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
9903 (arm_print_float_info, arm_register_type, convert_to_extended)
9904 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
9905 (arm_extract_return_value, arm_register_name): Make static.
9906 (arm_software_single_step): Similarly. Fix types in declaration.
9907 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
9908 (arm_store_return_value, arm_store_struct_return): New functions.
9909 (arm_gdbarch_init): Register the above functions. Also register
9910 call_dummy_start_offset, sizeof_call_dummy_words,
9911 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
9912 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
9913 max_register_virtual_size, register_size. Set up
9914 prologue_cache.saved_regs here, rather than ...
9915 (_initialize_arm_tdep): ... here.
9916 * config/arm/tm-arm.h (struct type, struct value): Delete forward
9917 declarations.
9918 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
9919 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
9920 (arm_print_float_info, arm_register_type, convert_to_extended)
9921 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
9922 (arm_extract_return_value, arm_register_name): Delete declarations.
9923 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
9924 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
9925 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
9926 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
9927 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
9928 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
9929 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
9930 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
9931 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
9932 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
9933 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
9934 (arm_get_next_pc): No-longer static -- these are needed by the RDI
9935 interface.
9936 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
9937 * remote-rdi.c remote-rdp.c: Likewise.
9938 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
9939 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
9940 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
9941 definition.
9942
9943 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
9944 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
9945 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
9946 from non-ARM_ prefixed definitions.
9947 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
9948 all uses of above.
9949 * remote-rdi.c remote-rdp.c: Likewise.
9950 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
9951
9952 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
9953
9954 * arm-tdep.c (arm_frameless_function_invocation)
9955 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
9956 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
9957 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
9958 (arm_pop_frame, arm_get_next_pc): Make static.
9959 (arm_gdbarch_init): Register above in gdbarch structure.
9960 (arm_read_fp): Renamed from arm_target_read_fp.
9961 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
9962 * config/arm/tm-arm.h (arm_frameless_function_invocation)
9963 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
9964 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
9965 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
9966 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
9967 (arm_pc_is_thumb_dummy): Delete declarations.
9968 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
9969 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
9970 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
9971 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
9972
9973 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
9974
9975 * symtab.c (compare_search_syms): New function.
9976 (sort_search_symbols): New function.
9977 (search_symbols): Sort symbols after searching rather than
9978 before.
9979
9980 2002-02-10 Andrew Cagney <ac131313@redhat.com>
9981
9982 * NEWS: Linux -> GNU/Linux.
9983
9984 2002-02-10 Andrew Cagney <ac131313@redhat.com>
9985
9986 * gdbarch.sh: For for level one methods, disallow a definition
9987 when partially multi-arched. Add comments explaining rationale.
9988 * gdbarch.h: Re-generate.
9989
9990 2002-02-10 Andrew Cagney <ac131313@redhat.com>
9991
9992 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
9993 multi-arch partial.
9994
9995 2002-02-10 Andrew Cagney <ac131313@redhat.com>
9996
9997 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
9998 field. Use diff -u.
9999 * gdbarch.c: Re-generate.
10000
10001 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10002
10003 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
10004 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
10005 partial.
10006
10007 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10008
10009 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
10010 multi-arch partial.
10011 (PUSH_ARGUMENTS): Switch to using predefault.
10012 * gdbarch.c: Regenerate.
10013
10014 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10015
10016 * valops.c (PUSH_ARGUMENTS): Delete definition.
10017 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
10018 partial. Default to default_push_arguments.
10019 * gdbarch.h, gdbarch.c: Regenerate.
10020
10021 2002-02-09 Andrew Cagney <ac131313@redhat.com>
10022
10023 * defs.h (throw_exception): Rename return_to_top_level. Update
10024 comments.
10025 * utils.c (error_stream, internal_verror, quit): Ditto.
10026 * top.c (throw_exception, catcher): Ditto.
10027 * sparclet-rom.c (sparclet_load): Ditto.
10028 * remote.c (interrupt_query, minitelnet): Ditto.
10029 * remote-sds.c (interrupt_query): Ditto.
10030 * remote-mips.c (mips_error, mips_kill): Ditto.
10031 * ocd.c (interrupt_query): Ditto.
10032 * monitor.c (monitor_interrupt_query): Ditto.
10033 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
10034 * target.h: Update comment.
10035
10036 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
10037
10038 2002-02-09 Andrew Cagney <ac131313@redhat.com>
10039
10040 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
10041 default_double_format.
10042 * gdbarch.h, gdbarch.c: Re-generate.
10043 * findvar.c (floatformat_unknown): Delete variable definition.
10044 * doublest.h (floatformat_unknown): Delete variable declaration.
10045
10046 2002-02-09 Jim Blandy <jimb@redhat.com>
10047
10048 * stabsread.c (read_type): Add code to parse Sun's syntax for
10049 prototyped function types.
10050
10051 2002-02-09 Andrew Cagney <ac131313@redhat.com>
10052
10053 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
10054 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
10055
10056 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10057
10058 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
10059 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
10060 now _initialize_xcoffsolib gets called again and overrides the
10061 commands from solib.c in a native configuration.
10062
10063 2002-02-09 Mark Kettenis <kettenis@gnu.org>
10064
10065 * doublest.c (store_typed_floating): Don't try to return a value.
10066 Fixes PR gdb/290.
10067
10068 2002-02-08 Jim Blandy <jimb@redhat.com>
10069
10070 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
10071 is prototyped and has no arguments, print its argument list as
10072 `(void)'.
10073
10074 2002-02-08 Chris Demetriou <cgd@broadcom.com>
10075
10076 * MAINTAINERS (write-after-approval): Add myself.
10077 (paper-trail): I've escaped!
10078
10079 2002-02-08 Christopher Faylor <cgf@redhat.com>
10080
10081 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
10082 changes.
10083 (_initialize_check_for_gdb_ini): Ditto.
10084
10085 2002-02-08 Martin M. Hunt <hunt@redhat.com>
10086
10087 * win32-nat.c (cygwin_pid_to_str): Fix typo.
10088 xaprintf -> xasprintf.
10089
10090 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
10091
10092 * win32-nat.c: Remove use of printf and sprintf functions.
10093
10094 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
10095
10096 * arm-tdep.c (arm_frame_chain_valid): Make static.
10097 (arm_push_arguments): Likewise.
10098 (arm_gdbarch_init): New function.
10099 (_initialize_arm_tdep): Call it.
10100 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
10101 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
10102 (FRAME_CHAIN_VALID): Delete.
10103 (arm_frame_chain_valid): Delete declaration.
10104 (PUSH_ARGUMENTS): Delete.
10105 (arm_push_arguments): Delete declaration.
10106 (CALL_DUMMY_P): Delete.
10107
10108 2002-02-08 Andrew Cagney <ac131313@redhat.com>
10109 Corinna Vinschen <vinschen@redhat.com>
10110
10111 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
10112 on builtin float types.
10113
10114 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
10115
10116 * utils.c: Include <curses.h> before "bfd.h".
10117 * tui/tui-hooks.c: Likewise.
10118 * tui/tui.c: Likewise.
10119 * tui/tuiCommand.c: Likewise.
10120 * tui/tuiData.c: Likewise.
10121 * tui/tuiDataWin.c: Likewise.
10122 * tui/tuiDisassem.c: Likewise.
10123 * tui/tuiGeneralWin.c: Likewise.
10124 * tui/tuiIO.c: Likewise.
10125 * tui/tuiLayout.c: Likewise.
10126 * tui/tuiRegs.c: Likewise.
10127 * tui/tuiSource.c: Likewise.
10128 * tui/tuiSourceWin.c: Likewise.
10129 * tui/tuiStack.c: Likewise.
10130 * tui/tuiWin.c: Likewise.
10131
10132 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
10133
10134 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
10135 to include space for pseudoregs as well. Update loops accordingly.
10136 (sh_fp_frame_init_saved_regs): Ditto.
10137 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
10138
10139 2002-02-07 Andrew Cagney <ac131313@redhat.com>
10140
10141 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
10142 Add Richard Earnshaw to Arm maintainers.
10143
10144 2002-02-07 Andrew Cagney <ac131313@redhat.com>
10145
10146 * defs.h (warning_begin): Delete declaration.
10147
10148 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
10149 Delete macro.
10150
10151 2002-02-07 Michael Snyder <msnyder@redhat.com>
10152
10153 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
10154 Logic bug, remove misplaced else.
10155
10156 2002-02-07 Klee Dienes <klee@apple.com>
10157
10158 * fork-inferior.c (fork_inferior): Add '!' to the list of
10159 characters that need to be quoted when building a string for the
10160 shell. Quote '!' specifically with a backslash, since CSH chokes
10161 when trying to evaluate "str!str".
10162
10163 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
10164
10165 * rdi-share/host.h: Only provide a typedef for bool if it is not
10166 defined.
10167
10168 2002-02-04 Michael Snyder <msnyder@redhat.com>
10169
10170 * breakpoint.h (enum bptype): Add new overlay event bp type.
10171 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
10172
10173 * breakpoint.c (create_internal_breakpoint): New function.
10174 (internal_breakpoint_number): Moved into create_internal_breakpoint.
10175 (create_longjmp_breakpoint): Use create_internal_breakpoint.
10176 (create_thread_event_breakpoint): Ditto.
10177 (create_solib_event_breakpoint): Ditto.
10178 (create_overlay_event_breakpoint): New function.
10179 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
10180 (update_breakpoints_after_exec): Delete and re-initialize
10181 overlay event breakpoints after an exec. Add FIXME comment
10182 about longjmp breakpoint.
10183 (print_it_typical): Ignore overlay event breakpoints.
10184 (print_one_breakpoint): Ditto.
10185 (mention): Ditto.
10186 (bpstat_what): Do not stop for overlay event breakpoints.
10187 (delete_breakpoint): Don't delete overlay event breakpoints.
10188 (breakpoint_re_set_one): Delete the overlay event breakpoint.
10189 (breakpoint_re_set): Re-create overlay event breakpoint.
10190
10191 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
10192 (overlay_manual_command): Disable overlay breakpoints.
10193 (overlay_off_command): Disable overlay breakpoints.
10194
10195 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
10196
10197 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
10198 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
10199 to here from config/tm-arm.h.
10200 (coff_sym_is_thumb): Make static.
10201 (arm_elf_make_msymbol_special): New function.
10202 (arm_coff_make_msymbol_special): New function.
10203 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
10204 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
10205 (coff_sym_is_thumb): Delete declaration.
10206 (arm_elf_make_msymbol_special): Declare.
10207 (arm_coff_make_msymbol_special): Declare.
10208 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
10209 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
10210
10211 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
10212
10213 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
10214
10215 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
10216
10217 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
10218 * gdbarch.c gdbarch.h: Regenerate.
10219 * arch-utils.c (default_print_float_info): New function.
10220 * arch-utils.h (default_print_float_info): Prototype it.
10221 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
10222 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
10223 (PRINT_FLOAT_INFO): Document it.
10224
10225 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
10226 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
10227 (PRINT_FLOAT_INFO): Define.
10228
10229 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
10230
10231 * win32-nat.c (_initialize_check_for_gdb_ini):
10232 Add typecast to sprintf argument to suppress a warning.
10233
10234 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
10235
10236 * win32-nat.c (last_sig): Changed type of variable to target_signal,
10237 to allow easier handling of pass state.
10238 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
10239 that gives exception name and address.
10240 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
10241 and set last_sig value to ourstatus->value.sig. Some missing
10242 exceptions added.
10243 (child_continue): Correctly report continue_status.
10244 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
10245 TARGET_SIGNAL_0 (new default value).
10246 (child_resume): consider sig argument passed to decide if
10247 the exception should be passed to debuggee or not.
10248
10249 2002-02-05 Michael Snyder <msnyder@redhat.com>
10250
10251 * regcache.c (fetch_register): Call target_fetch_register
10252 only if we don't call FETCH_PSEUDO_REGISTER.
10253 (store_register): Call target_store_register only if we
10254 don't call STORE_PSEUDO_REGISTER.
10255
10256 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
10257
10258 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
10259 ELF_MAKE_MSYMBOL_SPECIAL.
10260 * gdbarch.c, gdbarch.h: Regenerate.
10261 * arch-utils.c (default_make_msymbol_special): New function.
10262 * arch-utils.h (default_make_msymbol_special): Export.
10263 * elfread.c (elf_symtab_read): Compile use of
10264 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
10265 multiarched.
10266 * coffread.c (coff_symtab_read): Ditto, for
10267 COFF_MAKE_MSYMBOL_SPECIAL.
10268
10269 2002-02-05 Jim Blandy <jimb@redhat.com>
10270
10271 * solib-svr4.c (svr4_truncate_ptr): New function.
10272 (svr4_relocate_section_addresses): Do the address arithmetic with
10273 the appropriate truncation for target addresses, even when
10274 CORE_ADDR is larger than a target address.
10275
10276 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10277
10278 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
10279 to (int *).
10280
10281 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10282
10283 * gdbserver/linux-low.c (kill_inferior): Remove commented out
10284 code.
10285
10286 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10287
10288 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
10289
10290 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10291
10292 * gdbserver/linux-low.c: Remove unused include files.
10293
10294 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10295
10296 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
10297 (read_inferior_memory): Use it.
10298 (write_inferior_memory): Likewise.
10299
10300 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10301
10302 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
10303 grubbing through sys_errlist.
10304
10305 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
10306
10307 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
10308
10309 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
10310 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
10311
10312 2002-02-04 Andrew Cagney <ac131313@redhat.com>
10313
10314 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
10315 (do_sfunc, set_cmd_sfunc): New functions.
10316
10317 * command.h (struct cmd_list_element): Add field func.
10318 * cli/cli-decode.h (struct cmd_list_element): Ditto.
10319 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
10320 * cli/cli-decode.h: Ditto.
10321
10322 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
10323 (help_all, help_cmd_list): Ditto.
10324 (find_cmd, complete_on_cmdlist): Ditto.
10325 * top.c (execute_command): Ditto.
10326
10327 * cli/cli-setshow.c (do_setshow_command): Call func instead of
10328 function.sfunc.
10329
10330 * infcmd.c (notice_args_read): Fix function signature.
10331
10332 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
10333 * cli/cli-decode.c (add_set_cmd): Ditto.
10334 * utils.c (initialize_utils): Ditto.
10335 * maint.c (_initialize_maint_cmds): Ditto.
10336 * infrun.c (_initialize_infrun): Ditto.
10337 * demangle.c (_initialize_demangler): Ditto.
10338 * remote.c (add_packet_config_cmd): Ditto.
10339 * mips-tdep.c (_initialize_mips_tdep): Ditto.
10340 * cris-tdep.c (_initialize_cris_tdep): Ditto.
10341 * proc-api.c (_initialize_proc_api): Ditto.
10342 * kod.c (_initialize_kod): Ditto.
10343 * valprint.c (_initialize_valprint): Ditto.
10344 * top.c (init_main): Ditto.
10345 * infcmd.c (_initialize_infcmd): Ditto.
10346 * corefile.c (_initialize_core): Ditto.
10347 * arm-tdep.c (_initialize_arm_tdep): Ditto.
10348 * arch-utils.c (initialize_current_architecture): Ditto.
10349 (_initialize_gdbarch_utils): Ditto.
10350 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
10351
10352 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
10353 * wince.c (_initialize_inftarg): Ditto.
10354 * symfile.c (_initialize_symfile): Ditto.
10355 * mips-tdep.c (_initialize_mips_tdep): Ditto.
10356 * language.c (_initialize_language): Ditto.
10357 * arc-tdep.c (_initialize_arc_tdep): Ditto.
10358
10359 2002-02-04 Michael Snyder <msnyder@redhat.com>
10360
10361 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
10362
10363 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
10364
10365 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
10366 Add rules for building the register data files.
10367
10368 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
10369
10370 * regformats/regdat.sh: Add braces to the definition of
10371 expedite_regs_${arch}.
10372
10373 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
10374
10375 * regformats/regdef.h (struct reg): Add comment describing the
10376 requirements for offset and size fields.
10377
10378 2002-02-04 Andreas Schwab <schwab@suse.de>
10379
10380 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
10381 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
10382
10383 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
10384
10385 * gdbarch.sh (copyright): Update years in generated header.
10386 (SMASH_TEXT_ADDRESS): Add rule.
10387 * gdbarch.h, gdbarch.c: Re-generate.
10388 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
10389 * dbxread.c: Likewise.
10390 * dwarfread.c: Likewise.
10391 * elfread.c: Likewise.
10392 * somread.c: Likewise.
10393
10394 * arm-tdep.c (arm_smash_text_address): New function.
10395 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
10396
10397 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
10398
10399 Add support for hardware watchpoints on win32 native.
10400 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
10401 CONTEXT_DEBUG_REGISTERS.
10402 (dr variable): New variable. Static array containing a local copy
10403 of debug registers.
10404 (debug_registers_changed): New variable. Reflects when debug registers
10405 are changed and need to be written to inferior.
10406 (debug_registers_used): New variable. Reflects when any debug register
10407 was set, used when new threads are created.
10408 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
10409 i386-nat code.
10410 (thread_rec): Set dr array if id is the thread of current_event .
10411 (child_continue, child_resume): Change the debug registers for all
10412 threads if debug_registers_changed.
10413 (child_add_thread): Change the debug registers if debug_registers_used.
10414 * config/i386/cygwin.mh: Add use of i386-nat.o file.
10415 Link nm.h to new nm-cygwin.h file.
10416 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
10417 of hardware registers.
10418
10419 2002-02-03 Andrew Cagney <ac131313@redhat.com>
10420
10421 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
10422 Restore behavour broken by 2002-01-20 Andrew Cagney
10423 <ac131313@redhat.com> IEEE_FLOAT removal.
10424
10425 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
10426
10427 * c-valprint.c (c_val_print): Pass a proper valaddr to
10428 cp_print_class_method.
10429 * valops.c (search_struct_method): If there is only one method
10430 and args is NULL, return that method.
10431
10432 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
10433
10434 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
10435 accessing tag_name directly.
10436
10437 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
10438
10439 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
10440 of accessing tag_name directly.
10441
10442 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
10443
10444 PR gdb/280
10445 * gdbtypes.c (replace_type): New function.
10446 * gdbtypes.h (replace_type): Add prototype.
10447 * stabsread.c (read_type): Use replace_type.
10448
10449 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
10450
10451 * Makefile.in (memattr.o): Add missing dependencies rule.
10452
10453 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10454
10455 * breakpoint.c (break_at_finish_command): Really export.
10456 (break_at_finish_at_depth_command): Ditto.
10457 (tbreak_at_finish_command): Ditto.
10458 * hppa-tdep.c: Include completer.h.
10459 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
10460 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
10461
10462 2002-02-01 Andrew Cagney <ac131313@redhat.com>
10463
10464 * utils.c (do_write): New function.
10465 (error_stream): Rewrite combining the code from error_begin and
10466 verror.
10467 (verror): Rewrite using error_stream.
10468 (error_begin): Delete function.
10469
10470 2002-02-01 Andrew Cagney <ac131313@redhat.com>
10471
10472 * utils.c (error_begin): Make static.
10473 * defs.h (error_begin): Delete declaration.
10474
10475 * linespec.c (cplusplus_error): Replace cplusplus_hint.
10476 (decode_line_1): Use cplusplus_error instead of error_begin,
10477 cplusplus_hint and return_to_top_level.
10478 * coffread.c (coff_symfile_read): Use error instead of error_begin
10479 and return_to_top_level.
10480 * infrun.c (default_skip_permanent_breakpoint): Ditto.
10481
10482 2002-02-01 Andrew Cagney <ac131313@redhat.com>
10483
10484 * language.h (type_error, range_error): Make string parameter
10485 constant.
10486 * language.c (warning_pre_print): Delete extern declaration.
10487 * dwarfread.c (warning_pre_print): Ditto.
10488 * language.c (type_error, range_error): Rewrite to use verror and
10489 vwarning instead of warning_begin.
10490
10491 2002-02-01 Michael Snyder <msnyder@redhat.com>
10492
10493 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
10494 (set_ignore_count): Move misplaced comment back where it belongs.
10495
10496 2002-02-01 Andrew Cagney <ac131313@redhat.com>
10497
10498 * command.h (NO_FUNCTION): Delete macro.
10499 * cli/cli-decode.h (NO_FUNCTION): Ditto.
10500 * top.c (execute_command): Replace NO_FUNCTION with NULL.
10501 * tracepoint.c (_initialize_tracepoint): Ditto.
10502 * cli/cli-decode.c (add_set_cmd): Ditto.
10503 * cli/cli-cmds.c (init_cli_cmds): Ditto.
10504
10505 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
10506
10507 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
10508 Update ``this'' pointer when calling virtual functions.
10509
10510 2002-02-01 Michael Snyder <msnyder@redhat.com>
10511
10512 * breakpoint.c (create_temp_exception_breakpoint): Delete.
10513 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
10514
10515 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
10516
10517 * regformats/reg-arm.dat: New file.
10518 * regformats/reg-i386.dat: New file.
10519 * regformats/reg-ia64.dat: New file.
10520 * regformats/reg-m68k.dat: New file.
10521 * regformats/reg-mips.dat: New file.
10522 * regformats/reg-ppc.dat: New file.
10523 * regformats/reg-sh.dat: New file.
10524 * regformats/regdef.h: New file.
10525 * regformats/regdat.sh: New file.
10526
10527 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
10528
10529 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
10530 (arm_frame_args_address, arm_frame_locals_address): New functions.
10531 (arm_frame_num_args): New function.
10532 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
10533 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
10534 (FRMA_NUM_ARGS): Call arm_frame_num_args.
10535
10536 2002-01-31 Michael Snyder <msnyder@redhat.com>
10537
10538 * breakpoint.c (break_at_finish_command): Export.
10539 (break_at_finish_at_depth_command): Export.
10540 (tbreak_at_finish_command): Export.
10541 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
10542 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
10543 "txbreak" commands, which are HPPA specific.
10544
10545 * printcmd.c (disassemble_command): Remove an ancient
10546 artifact of an old merge.
10547
10548 * symfile.h (enum overlay_debugging_state):
10549 Define enum constant values for overlay mode.
10550 * symfile.c (overlay_debugging): Use enums instead of literals.
10551 (overlay_is_mapped, overlay_auto_command,
10552 overlay_manual_command): Ditto.
10553
10554 * breakpoint.c (insert_breakpoints, remove_breakpoint,
10555 breakpoint_here_p, breakpoint_inserted_here_p,
10556 breakpoint_thread_match, bpstat_stop_status,
10557 describe_other_breakpoints, check_duplicates, clear_command):
10558 Coding standard fixes.
10559
10560 * target.c (target_xfer_memory): Add spaces, coding standard.
10561 (do_xfer_memory): Add missing line to trust-readonly
10562 code: check bfd SEC_READONLY flag for section.
10563
10564 2002-01-31 Andrew Cagney <ac131313@redhat.com>
10565
10566 * PROBLEMS: Fix typo, 5.1->5.1.1.
10567
10568 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
10569
10570 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
10571 data symbols, since we search based on textlow and texthigh.
10572 (find_pc_sect_symtab): Likewise.
10573
10574 2002-01-30 Andrew Cagney <ac131313@redhat.com>
10575
10576 * defs.h (vwarning): Declare.
10577 * utils.c (vwarning): New function.
10578 (warning): Call vwarning.
10579 (warning_begin): Delete function.
10580
10581 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
10582 the warning message.
10583 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
10584 warning_begin.
10585
10586 2002-01-30 Michael Snyder <msnyder@redhat.com>
10587
10588 * NEWS: Mention "set trust-readonly-sections" command.
10589 Mention generate-core-file command.
10590
10591 2002-01-15 Michael Snyder <msnyder@redhat.com>
10592
10593 * target.c: New command, "set trust-readonly-sections on".
10594 (do_xfer_memory): Honor the suggestion to trust readonly sections
10595 by reading them from the object file instead of from the target.
10596 (initialize_targets): Register command "set trust-readonly-sections".
10597
10598 2002-01-29 Andrew Cagney <ac131313@redhat.com>
10599
10600 * parse.c (target_map_name_to_register): Simplify, search regs and
10601 pseudo-regs using a single loop.
10602
10603 2002-01-30 Andrew Cagney <ac131313@redhat.com>
10604
10605 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
10606
10607 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
10608
10609 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
10610 * config/i386/i386v42mp.mh: Add i387-nat.o .
10611 * i386v4-nat.c: Include i387-nat.h.
10612 (supply_fpregset): Use i387_supply_fsave.
10613 (fill_fpregset): Use i387_fill_fsave.
10614
10615 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
10616
10617 * arm-tdep.c (arm_call_dummy_words): Define.
10618 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
10619 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
10620 (CALL_DUMMY_WORDS): Define.
10621 (arm_call_dummy_words): Declare.
10622 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
10623 (arm_linux_call_dummy_words): Declare.
10624
10625 2002-01-30 Andreas Schwab <schwab@suse.de>
10626
10627 * m68klinux-nat.c: Fix last change to use regcache_collect
10628 instead of referencing registers[] directly.
10629
10630 2002-01-29 Andrew Cagney <ac131313@redhat.com>
10631
10632 * parse.c (target_map_name_to_register): Delete code wrapped in
10633 #ifdef REGISTER_NAME_ALIAS_HOOK.
10634
10635 2002-01-28 Michael Snyder <msnyder@redhat.com>
10636
10637 * regcache.c (legacy_read_register_gen): Need to be able to
10638 read pseudo-register as well as real register.
10639 (legacy_write_register_gen): Ditto.
10640
10641 2002-01-28 Andrew Cagney <ac131313@redhat.com>
10642
10643 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
10644 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
10645 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
10646 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
10647 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
10648 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
10649 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
10650 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
10651 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
10652 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
10653 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
10654 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
10655 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
10656 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
10657 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
10658 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
10659 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
10660 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
10661 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
10662 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
10663
10664 2002-01-28 Andrew Cagney <ac131313@redhat.com>
10665
10666 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
10667 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
10668 (initialize_current_architecture): Update target_byte_order using
10669 information from BFD.
10670 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
10671 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
10672
10673 2002-01-28 Andrew Cagney <ac131313@redhat.com>
10674
10675 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
10676 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
10677
10678 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
10679 #ifdef INVALID_FLOAT.
10680 * infcmd.c (do_registers_info): Ditto.
10681 * values.c (unpack_double): Ditto. Add comment.
10682
10683 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
10684 already commented out.
10685
10686 2002-01-26 Andreas Schwab <schwab@suse.de>
10687
10688 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
10689 * m68klinux-nat.c: Update ptrace interface for fetching/storing
10690 registers and add support for PTRACE_GETREGS.
10691
10692 2002-01-24 Andrew Cagney <ac131313@redhat.com>
10693
10694 GDB 5.1.1 released from 5.1 branch.
10695 * NEWS: Add 5.1.1 news.
10696 * README: Sync with 5.1 branch.
10697
10698 2002-01-23 Fred Fish <fnf@redhat.com>
10699
10700 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
10701 stabstring on initial malloc. Reallocing will copy it for us,
10702 if necessary.
10703
10704 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
10705
10706 * Makefile.in (hpread_h): Delete.
10707 (HFILES_NO_SRCDIR): Remove hpread.h.
10708 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
10709 (hpread.o): Update dependencies.
10710 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
10711
10712 * hp-psymtab-read.c: Remove file.
10713 * hp-symtab-read.c: Remove file.
10714 * hpread.h: Remove file.
10715
10716 * hpread.c: Merge all contents of hp-psymtab-read.c,
10717 hp-symtab-read.c and hpread.h into this file, as it was prior to
10718 January 1999.
10719
10720 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
10721 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
10722 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
10723 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
10724
10725 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
10726
10727 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
10728 fill_gregset): Call gdbarch_tdep() just once, assign result to
10729 variable and use that, instead of calling the function several
10730 times.
10731
10732 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
10733
10734 * configure.host: Accept sparcv9 as alias for sparc64.
10735 * configure.tgt: Likewise.
10736
10737 2002-01-22 Kevin Buettner <kevinb@redhat.com>
10738
10739 * solib-aix5.c (build_so_list_from_mapfile)
10740 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
10741 arguments is not reversed.
10742 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
10743 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
10744
10745 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
10746
10747 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
10748 modified version of obsolete sh_fetch_pseudo_register.
10749 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
10750 (sh4_register_read): New function.
10751 (sh_pseudo_register_write): New function. Renamed and modified
10752 version of obsolete sh_store_pseudo_register.
10753 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
10754 (sh4_register_write): New function.
10755 (sh_gdbarch_init): Remove setting of gdbarch function
10756 fetch_pseudo_register and store_pseudo_register. Remove setting of
10757 register_convert_to_raw, register_convert_to_virtual,
10758 register_convertible.
10759 (sh_sh4_register_convertible): Delete. No longer needed. All is
10760 taken care by architecture specific functions
10761 register_read/register_write.
10762 (sh_sh4_register_convert_to_virtual): Make static.
10763 (sh_sh4_register_convert_to_raw): Ditto.
10764
10765 2002-01-22 Andrew Cagney <ac131313@redhat.com>
10766
10767 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
10768 (floatformat_is_nan, floatformat_mantissa): Ditto.
10769
10770 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
10771 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
10772 builtin_type_ieee_double_little,
10773 builtin_type_ieee_double_littlebyte_bigword,
10774 builtin_type_m68881_ext, builtin_type_i960_ext,
10775 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
10776 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
10777 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
10778 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
10779
10780 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
10781
10782 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
10783 parameter. Set frameless flag if it exists and depended of
10784 whether the scanned function is frameless or not.
10785 (xstormy16_skip_prologue): If function is frameless, return
10786 result of xstormy16_scan_prologue().
10787 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
10788 call.
10789
10790 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
10791
10792 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
10793 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
10794 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
10795 sh_sh4_register_byte, sh_sh4_register_raw_size,
10796 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
10797 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
10798 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
10799 sh_store_pseudo_register, sh_do_pseudo_register): Call
10800 gdbarch_tdep() just once, assign result to variable and use that,
10801 instead of calling the function several times.
10802
10803 2002-01-20 Mark Kettenis <kettenis@gnu.org>
10804
10805 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
10806 macros instead of LAST_FPU_CTRL_REGNUM.
10807 (store_register): Likewise.
10808
10809 2002-01-21 Jim Blandy <jimb@redhat.com>
10810
10811 * infcmd.c (run_command): Check that the `exec' target layer's BFD
10812 is up-to-date before running the program, not just when a program
10813 exits.
10814
10815 2002-01-21 Fred Fish <fnf@redhat.com>
10816
10817 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
10818 when we have found all instructions we are looking for.
10819
10820 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
10821
10822 * arm-tdep.c (arm_register_name): New function.
10823 (arm_registers_names): Make static.
10824 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
10825 (arm_register_name): Declare.
10826 (REGISTER_NAME): Use it.
10827
10828 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
10829 Kevin Buettner <kevinb@redhat.com>
10830
10831 Convert arm targets to new FRAME interface.
10832 * arm-tdep.c (struct frame_extra_info): Remove fsr.
10833 (arm_frame_find_save_regs): Delete.
10834 (arm_frame_init_saved_regs): New.
10835 (arm_init_extra_frame_info): Alloacte saved_regs as required.
10836 Allocate extra_info as required. Convert all uses of fsr.regs
10837 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
10838 to use extra_info.
10839 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
10840 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
10841 (check_prologue_cache, save_prologue_cache): Likewise.
10842 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
10843 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
10844 (FRAME_FIND_SAVED_REGS): Delete.
10845 (arm_frame_find_saved_regs): Delete prototype.
10846 (arm_frame_init_saved_regs): New prototype.
10847 (FRAME_INIT_SAVED_REGS): Define.
10848
10849 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10850
10851 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
10852
10853 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10854
10855 From Jeff Law <law@redhat.com>:
10856 * infttrace.c: Include <sys/pstat.h>.
10857 (child_pid_to_exec_file): Revamp. Use pstat call to get the
10858 exec file if the ttrace equivalent fails.
10859
10860 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10861
10862 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
10863 (closeLogFile): Ditto.
10864
10865 2002-01-20 Michael Chastain <mec@shout.net>
10866
10867 * top.c (print_gdb_version): Bump copyright year to 2002.
10868
10869 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10870
10871 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
10872 Zannoni and Eli Zaretskii.
10873
10874 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
10875
10876 * buildsym.c: Update copyright years.
10877 * c-typeprint.c: Likewise.
10878 * dwarf2read.c: Likewise.
10879 * f-typeprint.c: Likewise.
10880 * gdbtypes.c: Likewise.
10881 * gdbtypes.h: Likewise.
10882 * hp-symtab-read.c: Likewise.
10883 * hpread.c: Likewise.
10884 * mdebugread.c: Likewise.
10885 * p-typeprint.c: Likewise.
10886
10887 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10888
10889 * remote-sim.c (gdbsim_open): Simplify code testing the macro
10890 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
10891 byte-order selectable.
10892 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
10893 * arch-utils.c: Ditto.
10894 (set_endian): Ditto.
10895 (set_endian_from_file): Ditto.
10896 * gdbserver/low-sim.c (create_inferior): Ditto.
10897 * gdbarch.sh: Ditto.
10898 * gdbarch.h: Re-generate.
10899 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10900 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
10901 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
10902 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10903 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10904 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10905 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
10906 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
10907 macro definition.
10908 * config/mips/tm-wince.h: Remove #undef of macro
10909 TARGET_BYTE_ORDER_SELECTABLE.
10910 * config/sh/tm-wince.h: Ditto.
10911
10912 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
10913
10914 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
10915 member function fields. Add accessor macro
10916 TYPE_FN_FIELD_ARTIFICIAL.
10917 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
10918 * c-typeprint.c (c_type_print_base): Skip artificial member
10919 functions.
10920
10921 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
10922
10923 * f-typeprint.c: Delete unused function f_type_print_args.
10924 * p-typeprint.c: Delete unused function pascal_type_print_args.
10925
10926 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
10927
10928 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
10929 comment. Add ``artificial'' to ``union field_location''.
10930
10931 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
10932
10933 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
10934 * mdebugread.c (parse_symbol): Likewise.
10935 * stabsread.c (define_symbol): Likewise.
10936 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
10937 initializing TYPE_FIELD_BITPOS to n (obsolete).
10938 (hpread_doc_function_type): Likewise.
10939 * hpread.c (hpread_function_type): Likewise.
10940
10941 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10942
10943 * configure.in (host_makefile_frag): Only require a host makefile
10944 fragment when a native build.
10945 * configure: Re-generate.
10946
10947 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10948
10949 * doublest.h (floatformat_from_type): Declare.
10950 * doublest.c (floatformat_from_type): New function.
10951 (convert_typed_floating): Use.
10952
10953 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
10954 call to function floatformat_from_type.
10955
10956 * gdbarch.sh (IEEE_FLOAT): Delete.
10957 * gdbarch.h, gdbarch.c: Re-generate.
10958 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
10959 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
10960 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
10961 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
10962 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
10963 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
10964 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
10965 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
10966 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
10967 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
10968 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
10969 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
10970
10971 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
10972 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
10973 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10974 * sh-tdep.c (sh_gdbarch_init): Ditto.
10975 * mips-tdep.c (mips_gdbarch_init): Ditto.
10976 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10977 * cris-tdep.c (cris_gdbarch_init): Ditto.
10978
10979 2002-01-20 Jiri Smid <smid@suse.cz>
10980
10981 * configure.host, configure.tgt: Support x86-64.
10982 * NEWS: Note new target x86-64.
10983
10984 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
10985 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
10986 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
10987 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
10988 x86-64-linux-nat.o): Fix dependencies.
10989
10990 2002-01-19 Andrew Cagney <ac131313@redhat.com>
10991
10992 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
10993 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
10994 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
10995 * config/sparc/xm-sun4os4.h: Delete file.
10996 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
10997
10998 2002-01-19 Andrew Cagney <ac131313@redhat.com>
10999
11000 * config/sparc/sparclynx.mh (XM_FILE): Delete.
11001 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
11002 * config/m68k/m68klynx.mh (XM_FILE): Delete.
11003 * config/i386/i386lynx.mh (XM_FILE): Delete.
11004 * config/rs6000/xm-rs6000ly.h: Delete file.
11005 * config/sparc/xm-sparclynx.h: Delete file.
11006 * config/m68k/xm-m68klynx.h: Delete file.
11007 * config/i386/xm-i386lynx.h: Delete file.
11008 * config/xm-lynx.h: Delete file.
11009 * config/djgpp/fnchange.lst: Update.
11010
11011 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11012
11013 * alpha-tdep.c (alpha_register_byte): New function.
11014 (alpha_register_raw_size): Ditto.
11015 (alpha_register_virtual_size): Ditto.
11016 (alpha_skip_prologue_internal): Renamed from
11017 alpha_skip_prologue.
11018 (alpha_skip_prologue): New version that calls
11019 alpha_skip_prologue_internal.
11020 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
11021 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
11022 second argument from alpha_skip_prologue.
11023 (REGISTER_BYTE): Use alpha_register_byte.
11024 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
11025 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
11026 (FRAMELESS_FUNCTION_INVOCATION): Use
11027 generic_frameless_function_invocation_not.
11028 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
11029 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
11030
11031 2002-01-19 Andrew Cagney <ac131313@redhat.com>
11032
11033 * config/mips/xm-news-mips.h: Delete file.
11034 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
11035
11036 * config/m88k/xm-m88k.h: Delete file.
11037 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
11038 * config/m88k/xm-delta88v4.h: Ditto.
11039 * config/m88k/xm-delta88.h: Ditto.
11040
11041 * config/alpha/xm-fbsd.h: Delete file.
11042 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
11043
11044 * config/sparc/xm-sparc.h: Delete file.
11045 * Makefile.in (xm-sun4os4.h): Delete dependency.
11046 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
11047 * config/sparc/xm-sun4os4.h: Ditto.
11048 * config/sparc/xm-linux.h: Ditto.
11049
11050 * config/i386/xm-windows.h: Delete file.
11051
11052 2002-01-19 Andrew Cagney <ac131313@redhat.com>
11053
11054 * utils.c: Include <sys/param.h> for MAXPATHLEN.
11055 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
11056
11057 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11058
11059 * alpha-tdep.c (alpha_call_dummy_words): New.
11060 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
11061 (CALL_DUMMY_P): Define.
11062 (CALL_DUMMY_WORDS): Define.
11063 (SIZEOF_CALL_DUMMY_WORDS): Define.
11064
11065 2002-01-19 Per Bothner <per@bothner.com>
11066
11067 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
11068 isn't NULL, which can happen with some gcj-3.x-produced code.
11069
11070 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11071
11072 * alpha-tdep.c (alpha_register_virtual_type): New function.
11073 (alpha_init_frame_pc_first): Ditto.
11074 (alpha_fix_call_dummy): Ditto.
11075 (alpha_store_struct_return): Ditto.
11076 (alpha_extract_struct_value_address): Ditto.
11077 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
11078 alpha_register_virtual_type.
11079 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
11080 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
11081 alpha_extract_struct_value_address.
11082 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
11083 (INIT_FRAME_PC): Use init_frame_pc_noop.
11084 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
11085
11086 2002-01-19 Mark Kettenis <kettenis@gnu.org>
11087
11088 * i386gnu-nat.c: Include "i386-tdep.h".
11089 (fetch_fpregs): Simplify code dealing with uninitialized floating
11090 point states such that it doesn't require FP7_REGNUM.
11091
11092 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11093
11094 * alpha-tdep.c (frame_extra_info): New.
11095 (alpha_find_saved_regs): Make static. Use
11096 frame->extra_info.
11097 (alpha_frame_init_saved_regs): New function.
11098 (alpha_frame_saved_pc): Use frame->extra_info.
11099 (temp_saved_regs): Don't declare as struct frame_saved_regs.
11100 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
11101 (init_extra_frame_info): Rename to...
11102 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
11103 (alpha_print_extra_frame_info): New function.
11104 (alpha_frame_locals_address): Ditto.
11105 (alpha_frame_args_address): Ditto.
11106 (alpha_pop_frame): Use frame->extra_info.
11107 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
11108 alpha_frame_args_address.
11109 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
11110 (alpha_find_saved_regs): Remove prototype.
11111 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
11112 (EXTRA_FRAME_INFO): Remove.
11113 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
11114 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
11115
11116 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11117
11118 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
11119 (alpha_cannot_fetch_register): Ditto.
11120 (alpha_cannot_store_register): Ditto.
11121 (alpha_register_convertible): Ditto.
11122 (alpha_use_struct_convention): Ditto.
11123 * config/alpha/tm-alpha.h: Update copyright years.
11124 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
11125 (INNER_THAN): Use core_addr_lessthan.
11126 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
11127 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
11128 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
11129 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
11130 (FRAME_CHAIN): Remove unnecessary cast.
11131
11132 2002-01-18 Andrew Cagney <ac131313@redhat.com>
11133
11134 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
11135 obsolete.
11136
11137 2002-01-18 Andrew Cagney <ac131313@redhat.com>
11138
11139 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
11140 * monitor.c, remote-array.c, remote-bug.c: Ditto.
11141 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
11142 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
11143 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
11144 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
11145 * x86-64-linux-nat.c: Ditto.
11146
11147 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11148
11149 * alpha-tdep.c (alpha_register_name): New function.
11150 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
11151 (REGISTER_NAME): Define.
11152
11153 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11154
11155 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
11156
11157 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11158
11159 * alpha-tdep.c: Update copyright years.
11160 (alpha_next_pc): New function.
11161 (alpha_software_single_step): Ditto.
11162 * config/alpha/tm-alpha.h: Add prototype for
11163 alpha_software_single_step.
11164
11165 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11166
11167 * alphabsd-nat.c: Update copyright years.
11168 (fill_gregset): Use regcache_collect.
11169 (fill_fpregset): Likewise.
11170 (fetch_inferior_registers): Only fetch integer registers
11171 if requested to do so.
11172 (store_inferior_registers): Only store integer registers
11173 if requested to do so.
11174
11175 2002-01-17 Andrew Cagney <ac131313@redhat.com>
11176
11177 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
11178 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
11179 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
11180 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
11181 * config/alpha/fbsd.mh (XDEPFILES): Delete.
11182 * config/arm/linux.mh (XDEPFILES): Delete.
11183 * config/arm/nbsd.mh (XDEPFILES): Delete.
11184 * config/i386/i386dgux.mh (XDEPFILES): Delete.
11185 * config/i386/i386sol2.mh (XDEPFILES): Delete.
11186 * config/i386/i386m3.mh (XDEPFILES): Delete.
11187 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
11188 * config/i386/i386gnu.mh (XDEPFILES): Delete.
11189 * config/i386/fbsd.mh (XDEPFILES): Delete.
11190 * config/i386/i386bsd.mh (XDEPFILES): Delete.
11191 * config/i386/i386sco5.mh (XDEPFILES): Delete.
11192 * config/i386/i386v4.mh (XDEPFILES): Delete.
11193 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
11194 * config/i386/i386sco4.mh (XDEPFILES): Delete.
11195 * config/i386/i386aix.mh (XDEPFILES): Delete.
11196 * config/i386/go32.mh (XDEPFILES): Delete.
11197 * config/i386/cygwin.mh (XDEPFILES): Delete.
11198 * config/i386/i386lynx.mh (XDEPFILES): Delete.
11199 * config/i386/i386mach.mh (XDEPFILES): Delete.
11200 * config/i386/i386v32.mh (XDEPFILES): Delete.
11201 * config/i386/linux.mh (XDEPFILES): Delete.
11202 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
11203 * config/i386/ncr3000.mh (XDEPFILES): Delete.
11204 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
11205 * config/i386/i386sco.mh (XDEPFILES): Delete.
11206 * config/i386/i386v.mh (XDEPFILES): Delete.
11207 * config/i386/nbsd.mh (XDEPFILES): Delete.
11208 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
11209 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
11210 * config/i386/symmetry.mh (XDEPFILES): Delete.
11211 * config/i386/obsd.mh (XDEPFILES): Delete.
11212 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
11213 * config/ia64/linux.mh (XDEPFILES): Delete.
11214 * config/ia64/aix.mh (XDEPFILES): Delete.
11215 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
11216 * config/m68k/dpx2.mh (XDEPFILES): Delete.
11217 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
11218 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
11219 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
11220 * config/m68k/linux.mh (XDEPFILES): Delete.
11221 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
11222 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
11223 * config/m68k/nbsd.mh (XDEPFILES): Delete.
11224 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
11225 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
11226 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
11227 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
11228 * config/m88k/delta88.mh (XDEPFILES): Delete.
11229 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
11230 * config/m88k/m88k.mh (XDEPFILES): Delete.
11231 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
11232 * config/mips/linux.mh (XDEPFILES): Delete.
11233 * config/mips/irix6.mh (XDEPFILES): Delete.
11234 * config/mips/irix5.mh (XDEPFILES): Delete.
11235 * config/mips/irix4.mh (XDEPFILES): Delete.
11236 * config/mips/irix3.mh (XDEPFILES): Delete.
11237 * config/mips/decstation.mh (XDEPFILES): Delete.
11238 * config/mips/mipsm3.mh (XDEPFILES): Delete.
11239 (NATDEPFILES): Move core-aout.o to here.
11240 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
11241 * config/pa/hpux1020.mh (XDEPFILES): Delete.
11242 * config/pa/hppabsd.mh (XDEPFILES): Delete.
11243 * config/pa/hppahpux.mh (XDEPFILES): Delete.
11244 * config/pa/hpux11w.mh (XDEPFILES): Delete.
11245 * config/pa/hppaosf.mh (XDEPFILES): Delete.
11246 * config/pa/hpux11.mh (XDEPFILES): Delete.
11247 * config/powerpc/aix.mh (XDEPFILES): Delete.
11248 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
11249 * config/powerpc/linux.mh (XDEPFILES): Delete.
11250 * config/romp/rtbsd.mh: Rename XDEPFILES.
11251 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
11252 * config/rs6000/aix4.mh (XDEPFILES): Delete.
11253 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
11254 * config/s390/s390.mh (XDEPFILES): Delete.
11255 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
11256 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
11257 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
11258 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
11259 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
11260 * config/sparc/nbsd.mh (XDEPFILES): Delete.
11261 * config/sparc/linux.mh (XDEPFILES): Delete.
11262 * config/vax/vaxult.mh (XDEPFILES): Delete.
11263 * config/vax/vaxult2.mh (XDEPFILES): Delete.
11264 * Makefile.in (DEPFILES): Remove XDEPFILES.
11265
11266 2002-01-17 Andrew Cagney <ac131313@redhat.com>
11267
11268 * utils.c (internal_verror): Fix comments, default is yes not no.
11269 Update queries to match. Default to quit and dump core.
11270
11271 2002-01-17 Andrew Cagney <ac131313@redhat.com>
11272
11273 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
11274 copyright.
11275 * defs.h, event-top.c, gdbcmd.h: Ditto.
11276 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
11277 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
11278 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
11279 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
11280 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
11281 * mi/mi-main.c:Ditto.
11282
11283 * stack.c, symfile.c: Update copyright.
11284
11285 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
11286
11287 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
11288 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
11289 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
11290 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
11291
11292 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
11293
11294 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
11295 * gdbserver/low-lynx.c (myattach): Likewise.
11296 * gdbserver/low-nbsd.c (myattach): Likewise.
11297 * gdbserver/low-sim.c (myattach): Likewise.
11298 * gdbserver/low-sparc.c (myattach): Likewise.
11299 * gdbserver/low-sun3.c (myattach): Likewise.
11300
11301 * gdbserver/low-linux.c (myattach): New function.
11302
11303 * gdbserver/server.c (attach_inferior): New function.
11304 (main): Handle "--attach".
11305
11306 2002-01-16 Andrew Cagney <ac131313@redhat.com>
11307
11308 * MAINTAINERS (language support): Daniel Jacobwitz is C++
11309 maintainer.
11310
11311 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
11312
11313 * c-typeprint.c (is_type_conversion_operator): Add additional
11314 check for non-conversion operators.
11315
11316 2002-01-15 Michael Snyder <msnyder@redhat.com>
11317
11318 * linux-proc.c: Add "info proc" command, a la procfs.c.
11319 (read_mapping): New function, abstract and re-use code.
11320 (linux_find_memory_regions): Use new func read_mapping.
11321 (linux_info_proc_cmd): New function, implement "info proc".
11322 (_initialize_linux_proc): Add new command "info proc".
11323
11324 2002-01-15 Michael Snyder <msnyder@redhat.com>
11325
11326 * symfile.c (generic_load): Use bfd_map_over_sections method
11327 instead of manipulating bfd structure members directly.
11328 (add_section_size_callback): New function, bfd sections callback
11329 used by generic_load.
11330 (load_sections_callback): New function, bfd sections callback
11331 used by generic_load.
11332
11333 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
11334
11335 [Based on work by Jim Blandy]
11336 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
11337 (builtin_type_vec128): Export.
11338 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
11339 types.
11340 (builtin_type_vec128): New builtin type for 128 bit vector
11341 registers.
11342 (build_gdbtypes): Initialize builtin_type_v16qi and
11343 builtin_type_v8hi. Create the vec128 register builtin type
11344 structure.
11345 (build_builtin_type_vec128): New function.
11346 (_initialize_gdbtypes): Register builtin_type_v16qi and
11347 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
11348 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
11349 AltiVec register to new builtin type.
11350
11351 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
11352
11353 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
11354 to make_cv_type.
11355
11356 2002-01-14 Andrew Cagney <ac131313@redhat.com>
11357
11358 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
11359 CLEAN_UP_REGISTER_VALUE.
11360 * regcache.c (supply_register): Update only call.
11361
11362 2002-01-14 Andrew Cagney <ac131313@redhat.com>
11363
11364 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
11365 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
11366 a29k-*-vxworks* targets as obsolete.
11367
11368 2002-01-14 Michael Snyder <msnyder@redhat.com>
11369
11370 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
11371 until we can resolve portability issues.
11372 * gregset.h: Remove references to fpxregs.
11373 * gcore.c (gcore_command): Initialize note_sec to NULL.
11374
11375 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11376
11377 * signals.c (target_signal_to_name): Rewrite. Only use
11378 signals[].name when in bounds and non-NULL.
11379
11380 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11381
11382 From Petr Ledvina <ledvinap@kae.zcu.cz>:
11383 * signals.c (target_signal_to_name): Verify that SIG is within the
11384 bounds of the signals array.
11385
11386 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11387
11388 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
11389
11390 2002-01-13 Keith Seitz <keiths@redhat.com>
11391
11392 * stack.c (print_frame_info_base): Print the frame's pc
11393 only if when print_frame_info_listing_hook is not defined.
11394
11395 2002-01-13 Keith Seitz <keiths@redhat.com>
11396
11397 * varobj.c (varobj_set_value): Make sure that there were no
11398 errors evaluating the object before attempting to set its
11399 value.
11400 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
11401 so this offset adjustment is no longer necessary.
11402 (create_child): Don't set the error flag if the child is
11403 a CPLUS_FAKE_CHILD.
11404 (value_of_child): If value_fetch_lazy fails, return NULL
11405 so that callers will be notified that an error occurred.
11406 (c_value_of_variable): Delay check of variable's validity
11407 until later. We actually want all structs and unions to have
11408 the value "{...}".
11409 Do not return "???" for variables which could not be evaluated.
11410 This error condition must be returned to the caller so that it
11411 can get the error condition from gdb.
11412 (cplus_name_of_child): Adjust index for vptr before figuring
11413 out the name of the child.
11414 (cplus_value_of_child): If a child's (real) parent is not valid,
11415 don't even bother trying to give a value for it. Just return
11416 an error. Change all instances in this function.
11417 (cplus_type_of_child): If our parent is one of the "fake"
11418 parents, we need to get at the type of the real parent, and
11419 derive the child's true type using this information.
11420
11421 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11422
11423 From 2002-01-09 John Marshall <johnm@falch.net>:
11424 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
11425 sources.redhat.com, and tweak some related URLs which had
11426 suffered from linkrot.
11427
11428 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11429
11430 From Jeff law:
11431 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
11432 structures passed in registers.
11433
11434 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
11435
11436 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
11437 white space which prevented compilation. Reported by DSK
11438 <dsk@student.unsw.edu.au>.
11439
11440 2002-01-11 Michael Snyder <msnyder@redhat.com>
11441
11442 * symfile.c (build_section_addr_info_from_section_tab):
11443 Use bfd access method instead of manipulating bfd directly.
11444 (syms_from_objfile): Ditto.
11445 (simple_overlay_update_1): Ditto.
11446 (simple_overlay_update): Ditto.
11447 (generic_load): Ditto.
11448 (overlay_unmapped_address): FIXME comment, bfd access methods.
11449 (sections_overlap): FIXME comment, bfd access methods.
11450 (pc_in_mapped_range): FIXME comment, bfd access methods.
11451 (pc_in_unmapped_range): FIXME comment, bfd access methods.
11452 (section_is_mapped): FIXME comment, bfd access methods.
11453 (section_is_overlay): FIXME comment, bfd access methods.
11454
11455 * symfile.c (generic_load): Whitespace and long line cleanups.
11456 Remove duplicate variable, change several local variables to
11457 more appropriate data types.
11458 (print_transfer_performance): Use %lu instead of %ld for ulongs.
11459
11460 2002-01-12 Andrew Cagney <ac131313@redhat.com>
11461
11462 From Peter Schauer:
11463 * language.c (longest_local_hex_string_custom): Use phex_nz to
11464 convert NUM to a hex string.
11465
11466 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
11467
11468 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
11469 the function.
11470 Update Copyright year.
11471
11472 2002-01-12 Andrew Cagney <ac131313@redhat.com>
11473
11474 * language.c (longest_raw_hex_string): Delete unused function.
11475
11476 2002-01-11 Petr Sorfa <petrs@caldera.com>
11477
11478 * MAINTAINERS (write-after-approval): Add myself.
11479 * dwarf2read.c (read_tag_string_type): Handling of
11480 DW_AT_byte_size.
11481 (read_tag_string_type): FORTRAN fix to prevent propagation of
11482 first string size.
11483 (set_cu_language): Handling of DW_LANG_Fortran95
11484
11485 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
11486
11487 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
11488 GETPID(inferior_ptid).
11489 (store_inferior_registers): Likewise.
11490
11491 2002-01-10 Jason Merrill <jason@redhat.com>
11492
11493 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
11494 Fix DW_OP_minus.
11495
11496 2002-01-10 Andrew Cagney <ac131313@redhat.com>
11497
11498 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
11499 and bfd/elf32-sh-nbsd.c.
11500
11501 2002-01-10 Michael Snyder <msnyder@redhat.com>
11502
11503 * NEWS: Mention --pid and corefile/proc-id behavior change.
11504
11505 * Makefile.in: Add rules for gcore.o and linux-proc.o.
11506 * gcore.c: Include cli/cli-decode.h instead of command.h.
11507
11508 * main.c (captured_main): Add new command line option "--pid".
11509 If the second command line argument (following the symbol-file)
11510 begins with a digit, try to attach to it before trying to open
11511 it as a corefile.
11512 (print_gdb_help): Document the "--pid" argument.
11513
11514 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
11515
11516 * completer.c (command_completer): New function.
11517
11518 * completer.h <command_completer>: Add prototype.
11519
11520 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
11521 completer for the "help" command.
11522
11523 2002-01-09 Jason Merrill <jason@redhat.com>
11524
11525 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
11526
11527 2002-01-09 Michael Snyder <msnyder@redhat.com>
11528
11529 * i386-linux-nat.c (fill_fpxregset): Make global.
11530 (store_fpxregset): Ditto.
11531
11532 * gregset.h (gdb_fpxregset_t): Define.
11533 (supply_fpxregset): Prototype.
11534 (fill_fpxregset): Prototype.
11535
11536 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
11537
11538 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
11539
11540 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
11541 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
11542 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
11543
11544 2002-01-09 Andrew Cagney <ac131313@redhat.com>
11545
11546 * MAINTAINERS: Update target maintainer rules so that any
11547 Maintainer can approve a tested patch for a maintenance-only
11548 target.
11549
11550 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
11551
11552 * MAINTAINERS (write-after-approval): Add myself.
11553
11554 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
11555 IN_SIGTRAMP.
11556
11557 2002-01-08 Michael Snyder <msnyder@redhat.com>
11558
11559 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
11560 real name of the executable, rather than the /proc name.
11561
11562 2002-01-03 Michael Snyder <msnyder@redhat.com>
11563
11564 Implement a "generate-core-file" command in gdb, save target state.
11565 * gcore.c: New file. Implement new command 'generate-core-file'.
11566 Save a corefile image of the current state of the inferior.
11567 * linux-proc.c: Add linux-specific code for saving corefiles.
11568 * target.h (struct target_ops): Add new target vectors for saving
11569 corefiles; to_find_memory_regions and to_make_corefile_notes.
11570 (target_find_memory_regions): New macro.
11571 (target_make_corefile_notes): New macro.
11572 * target.c (update_current_target): Inherit new target methods.
11573 (dummy_find_memory_regions): New place-holder method.
11574 (dummy_make_corefile_notes): New place-holder method.
11575 (init_dummy_target): Initialize new dummy target vectors.
11576 * exec.c (exec_set_find_memory_regions): New function.
11577 Allow the exec_ops vector for memory regions to be taken over.
11578 (exec_make_note_section): New function, target vector method.
11579 * defs.h (exec_set_find_memory_regions): Export prototype.
11580 * procfs.c (proc_find_memory_regions): New function, corefile method.
11581 (procfs_make_note_section): New function, corefile method.
11582 (init_procfs_ops): Set new target vector pointers.
11583 (find_memory_regions_callback): New function.
11584 (procfs_do_thread_registers): New function.
11585 (procfs_corefile_thread_callback): New function.
11586 * sol-thread.c (sol_find_memory_regions): New function.
11587 (sol_make_note_section): New function.
11588 (init_sol_thread_ops): Initialize new target vectors.
11589 * inftarg.c (inftarg_set_find_memory_regions): New function.
11590 Allow to_find_memory_regions vector to be taken over.
11591 (inftarg_set_make_corefile_notes): New function.
11592 Allow to_make_corefile_notes vector to be taken over.
11593 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
11594 interface layer if not target_has_execution (may be a corefile).
11595 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
11596 * config/sparc/sun4sol2.mh: Ditto.
11597 * config/alpha/alpha-linux.mh: Ditto.
11598 * config/arm/linux.mh: Ditto.
11599 * config/i386/x86-64linux.mh: Ditto.
11600 * config/ia64/linux.mh: Ditto.
11601 * config/m68k/linux.mh: Ditto.
11602 * config/mips/linux.mh: Ditto.
11603 * config/powerpc/linux.mh: Ditto.
11604 * config/sparc/linux.mh: Ditto.
11605
11606 2002-01-07 Michael Snyder <msnyder@redhat.com>
11607
11608 * arm-linux-nat.c: Remove references to regcache.c internal data
11609 (registers[] and register_valid[]).
11610
11611 2002-01-07 Michael Snyder <msnyder@redhat.com>
11612
11613 * linux-proc.c: New file. Implement child_pid_to_exec_file,
11614 so that attaching to a pid will automatically read the process's
11615 symbol file and shlibs.
11616 * Makefile.in: Add rule for linux-proc.o.
11617 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
11618 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
11619 * config/arm/linux.mh: Ditto.
11620 * config/i386/linux.mh: Ditto.
11621 * config/i386/x86-64linux.mh: Ditto.
11622 * config/ia64/linux.mh: Ditto.
11623 * config/m68k/linux.mh: Ditto.
11624 * config/mips/linux.mh: Ditto.
11625 * config/powerpc/linux.mh: Ditto.
11626 * config/sparc/linux.mh: Ditto.
11627
11628 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
11629
11630 * win32-nat.c: Add i386-tdep.h dependency.
11631
11632 2002-01-07 Michael Snyder <msnyder@redhat.com>
11633
11634 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
11635 instead of bfd_get_arch_size. Don't bail out just because
11636 there's no exec_bfd.
11637
11638 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
11639 * p-valprint.c (pascal_object_print_value): Ditto.
11640 * somread.c (som_symtab_read): Ditto.
11641 * symfile.c (simple_free_overlay_region_table): Ditto.
11642 * valops.c (value_assign): Ditto.
11643
11644 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
11645 use tilde_expand and strerror for opening save-tracepoints file.
11646
11647 * thread-db.c (thread_db_new_objfile): Indendation fix.
11648
11649 * infptrace.c (GDB_MAX_ALLOCA): New define.
11650 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
11651 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
11652 can be overridden with whatever value is appropriate to the host).
11653 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
11654 alloca to allocate potentially large buffer.
11655 * rs6000-nat.c (child_xfer_memory): Ditto.
11656 * symm-nat.c (child_xfer_memory): Ditto.
11657 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
11658
11659 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
11660
11661 From Nick Clifton <nickc@redhat.com>
11662 * d10v-tdep.c: Set STACK_START to 0x200bffe.
11663
11664 2002-01-07 Michael Snyder <msnyder@redhat.com>
11665
11666 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
11667 Don't use exec_bfd if it's NULL.
11668
11669 2002-01-06 Mark Kettenis <kettenis@gnu.org>
11670
11671 * valops.c (value_arg_coerce): Fix formatting.
11672
11673 2002-01-06 Andrew Cagney <ac131313@redhat.com>
11674
11675 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
11676 * gnu-nat.c: Ditto.
11677
11678 2002-01-06 Andrew Cagney <ac131313@redhat.com>
11679
11680 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
11681 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
11682 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
11683 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
11684 z8k-coff have not been multi-arched. Update z8k-coff build
11685 status.
11686
11687 2002-01-06 Andrew Cagney <ac131313@redhat.com>
11688
11689 * MAINTAINERS: Mark a29k target as obsolete.
11690 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
11691 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
11692 comments.
11693 * NEWS: Note that a29k targets are obsolete.
11694 * a29k-tdep.c: Mark as obsolete.
11695 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
11696 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
11697 a29k-*-vxworks* targets as obsolete.
11698 * remote-adapt.c: Obsolete.
11699 * remote-eb.c: Obsolete.
11700 * remote-mm.c: Obsolete.
11701 * remote-udi.c: Obsolete.
11702 * config/a29k/a29k-udi.mt: Obsolete.
11703 * config/a29k/a29k.mt: Obsolete.
11704 * config/a29k/tm-a29k.h: Obsolete.
11705 * config/a29k/tm-vx29k.h: Obsolete.
11706 * config/a29k/vx29k.mt: Obsolete.
11707
11708 2002-01-05 Andrew Cagney <ac131313@redhat.com>
11709
11710 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
11711 with BFD_ENDIAN_BIG.
11712
11713 2002-01-05 Andrew Cagney <ac131313@redhat.com>
11714
11715 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
11716 * configure, config.in: Re-generate.
11717 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
11718 * defs.h: Do not include <endian.h>.
11719
11720 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
11721
11722 * acconfig.h (HAVE_PT_GETXMMREGS): New.
11723 * config.in: Regenerate.
11724 * configure.in: Update copyright years.
11725 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
11726 * configure: Regenerate.
11727 * i386bsd-nat.c: Update copyright years.
11728 (fill_gregset): Use regcache_collect.
11729 (fetch_inferior_registers): Only fetch integer registers
11730 if requested to do so. Add support for XMM registers
11731 using PT_GETXMMREGS.
11732 (store_inferior_registers): Only store integer registers
11733 if requested to do so. Add support for XMM registers
11734 using PT_SETXMMREGS.
11735 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
11736 (store_inferior_registers): Remove.
11737 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
11738 (fetch_elfcore_registers): New function.
11739 (i386nbsd_elfcore_fns): New.
11740 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
11741 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
11742 i386bsd-nat.o.
11743 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
11744 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
11745 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
11746 * config/i386/tm-nbsd.h: Update copyright years.
11747 (HAVE_SSE_REGS): Define.
11748 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
11749 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
11750 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
11751 (SIGCONTEXT_PC_OFFSET): Remove.
11752 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
11753
11754 2002-01-05 Andrew Cagney <ac131313@redhat.com>
11755
11756 * configure.tgt: Remove powerpc-*-macos* target.
11757 * config/m68k/xm-mpw.h: Delete file.
11758 * config/xm-mpw.h: Delete file.
11759 * ser-mac.c: Delete file.
11760 * mpw-make.sed: Delete file.
11761 * mpw-config.in: Delete file.
11762 * mac-xdep.c: Delete file.
11763 * mac-gdb.r: Delete file.
11764 * mac-defs.h: Delete file.
11765 * mac-nat.c: Delete file.
11766 * config/powerpc/macos.mh: Delete file.
11767 * config/powerpc/macos.mt: Delete file.
11768 * config/powerpc/nm-macos.h: Delete file.
11769 * config/powerpc/tm-macos.h: Delete file.
11770 * source.c (openp, open_source_file): Remove obsolete code.
11771 * top.c (gdb_readline): Ditto.
11772 * utils.c (query): Ditto.
11773 * event-top.c (display_gdb_prompt): Ditto.
11774 * Makefile.in (ser-mac.o): Delete obsolete target.
11775 * NEWS: Update.
11776
11777 2002-01-04 Andrew Cagney <ac131313@redhat.com>
11778
11779 * defs.h (BIG_ENDIAN): Delete macro definition.
11780 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
11781 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
11782 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
11783 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
11784 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
11785 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
11786 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
11787 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
11788 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
11789 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
11790 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
11791 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
11792 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
11793 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
11794 * gdbarch.c: Re-generate.
11795
11796 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
11797
11798 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
11799 for core files.
11800
11801 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
11802
11803 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
11804
11805 2002-01-04 Andrew Cagney <ac131313@redhat.com>
11806
11807 * value.h (value_ptr): Delete typedef.
11808
11809 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
11810
11811 * i386nbsd-nat.c: Update copyright years.
11812 Include i386-tdep.h.
11813
11814 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
11815
11816 * stabsread.c: Update copyright years.
11817
11818 From Debashis Mahata <debashis.mahata@wipro.com>:
11819 (read_struct_fields): Deal with Sun C compiler erroneous stab
11820 output for structs and unions.
11821 Fix PR gdb/269.
11822
11823 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
11824
11825 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
11826 prototype.
11827
11828 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
11829
11830 * cp-abi.c: Fix whitespace.
11831 (baseclass_offset): New wrapper function.
11832 * cp-abi.h (baseclass_offset): Add prototype.
11833 (struct cp_abi_ops): Add baseclass_offset pointer.
11834
11835 * valops.c (vb_match): Move to...
11836 * gnu-v2-abi.c (vb_match): here.
11837 * valops.c (baseclass_offset): Move to...
11838 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
11839
11840 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
11841
11842 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
11843 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
11844 * hpacc-abi.c (init_hpacc_ops): Likewise.
11845
11846 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
11847
11848 * valops.c (find_overload_match): Accept obj as a
11849 reference parameter. Update it before returning.
11850 * value.h (find_overload_match): Update prototype.
11851 * eval.c (evaluate_subexp_standard): Pass object to
11852 find_overload_match by reference.
11853
11854 2002-01-03 Andrew Cagney <ac131313@redhat.com>
11855
11856 * valarith.c: Replace value_ptr with struct value pointer. Remove
11857 register attribute from value declarations.
11858 * valops.c: Ditto.
11859 * value.h: Ditto.
11860 * scm-lang.c (scm_lookup_name): Ditto.
11861
11862 2002-01-03 Michael Snyder <msnyder@redhat.com>
11863
11864 Abstract the functionality of iterating over mapped memory
11865 regions into a general purpose iterator function.
11866 * procfs.c (iterate_over_mappings): New function, general purpose
11867 iterator for memory sections.
11868 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
11869 (solib_mappings_callback): New function, callback for above.
11870 (info_proc_mappings): Reimpliment using iterate_over_mappings.
11871 (info_mappings_callback): New function, callback for above.
11872
11873 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
11874
11875 2002-01-01 Mark Kettenis <kettenis@gnu.org>
11876
11877 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
11878 * i386-tdep.c: Include "elf-bfd.h".
11879 (process_note_abi_tag_sections): New function.
11880 (i386_gdbarch_init): Add code to recognize various OS/ABI
11881 combinations.
11882
11883 * maint.c (_initialize_maint_cmds): Add missing \ in
11884 string-literal.
11885
11886 For older changes see ChangeLog-2001
11887 \f
11888 Local Variables:
11889 mode: change-log
11890 left-margin: 8
11891 fill-column: 74
11892 version-control: never
11893 End: